/* GoklahLabs — estilos da landing page
   Paleta: preto, branco, cinza, azul, violeta e lilás.
   Motivo visual: cantos chanfrados, herdados do "G" da logo. */

@font-face {
  font-family: "Unbounded";
  src: url("fonts/unbounded.woff2") format("woff2");
  font-weight: 200 900;
  font-display: swap;
  unicode-range: U+0000-00FF, U+0131, U+0152-0153, U+02BB-02BC, U+02C6, U+02DA, U+02DC, U+0304, U+0308, U+0329, U+2000-206F, U+20AC, U+2122, U+2191, U+2193, U+2212, U+2215, U+FEFF, U+FFFD;
}
@font-face {
  font-family: "Unbounded";
  src: url("fonts/unbounded-ext.woff2") format("woff2");
  font-weight: 200 900;
  font-display: swap;
  unicode-range: U+0100-02BA, U+02BD-02C5, U+02C7-02CC, U+02CE-02D7, U+02DD-02FF, U+0304, U+0308, U+0329, U+1D00-1DBF, U+1E00-1E9F, U+1EF2-1EFF, U+2020, U+20A0-20AB, U+20AD-20C0, U+2113, U+2C60-2C7F, U+A720-A7FF;
}
@font-face {
  font-family: "Instrument Sans";
  src: url("fonts/instrument-sans.woff2") format("woff2");
  font-weight: 400 700;
  font-display: swap;
  unicode-range: U+0000-00FF, U+0131, U+0152-0153, U+02BB-02BC, U+02C6, U+02DA, U+02DC, U+0304, U+0308, U+0329, U+2000-206F, U+20AC, U+2122, U+2191, U+2193, U+2212, U+2215, U+FEFF, U+FFFD;
}
@font-face {
  font-family: "Instrument Sans";
  src: url("fonts/instrument-sans-ext.woff2") format("woff2");
  font-weight: 400 700;
  font-display: swap;
  unicode-range: U+0100-02BA, U+02BD-02C5, U+02C7-02CC, U+02CE-02D7, U+02DD-02FF, U+0304, U+0308, U+0329, U+1D00-1DBF, U+1E00-1E9F, U+1EF2-1EFF, U+2020, U+20A0-20AB, U+20AD-20C0, U+2113, U+2C60-2C7F, U+A720-A7FF;
}

:root {
  --black: #000;
  --white: #f4f3fb;
  --gray: #a3a1b6;
  --gray-2: #6c6a7e;
  --line: rgba(255, 255, 255, 0.09);
  --surface: rgba(255, 255, 255, 0.03);
  --violet: #8b5cf6;
  --blue: #3b6bff;
  --lilac: #c9b8ff;
  --indigo: #6575d5;
  --grad: linear-gradient(120deg, var(--lilac) 0%, var(--violet) 45%, var(--blue) 100%);

  --display: "Unbounded", system-ui, sans-serif;
  --body: "Instrument Sans", system-ui, sans-serif;

  --cut: 12px;
  --wrap: 1160px;
  --gutter: clamp(16px, 4vw, 40px);
  --section: clamp(80px, 11vw, 140px);

  color-scheme: dark;
}

*,
*::before,
*::after { box-sizing: border-box; }

html { scroll-behavior: smooth; scroll-padding-top: 80px; -webkit-text-size-adjust: 100%; }

body {
  margin: 0;
  background: var(--black);
  color: var(--white);
  font-family: var(--body);
  font-size: 1.0625rem;
  line-height: 1.6;
  -webkit-font-smoothing: antialiased;
  overflow-x: hidden;
}

img, svg { display: block; max-width: 100%; }
a { color: inherit; }
h1, h2, h3 { font-family: var(--display); margin: 0; font-weight: 500; letter-spacing: -0.035em; }
p { margin: 0; }
ul, ol { margin: 0; padding: 0; list-style: none; }

:focus-visible { outline: 2px solid var(--lilac); outline-offset: 3px; }

.wrap { width: 100%; max-width: var(--wrap); margin-inline: auto; padding-inline: var(--gutter); }

.sr { position: absolute; width: 1px; height: 1px; overflow: hidden; clip: rect(0 0 0 0); white-space: nowrap; }

.skip {
  position: absolute; left: 16px; top: -60px; z-index: 100;
  background: var(--white); color: var(--black); padding: 10px 16px; text-decoration: none; font-weight: 700;
}
.skip:focus { top: 16px; }

/* Chanfro: canto superior esquerdo e inferior direito, como no "G" */
.cut {
  clip-path: polygon(var(--cut) 0, 100% 0, 100% calc(100% - var(--cut)), calc(100% - var(--cut)) 100%, 0 100%, 0 var(--cut));
}

/* ---------- Topo ---------- */
.topbar {
  position: fixed; inset: 0 0 auto; z-index: 50;
  transition: background-color .3s ease, border-color .3s ease;
  border-bottom: 1px solid transparent;
}
.topbar.is-scrolled {
  background: rgba(0, 0, 0, 0.78);
  -webkit-backdrop-filter: blur(14px);
  backdrop-filter: blur(14px);
  border-bottom-color: var(--line);
}
.topbar__inner { display: flex; align-items: center; justify-content: space-between; height: 68px; }

.brand { display: flex; align-items: center; gap: 10px; text-decoration: none; font-family: var(--display); font-weight: 600; font-size: .95rem; letter-spacing: -0.02em; }

.nav { display: flex; align-items: center; gap: 28px; font-size: .95rem; }
.nav a { text-decoration: none; color: var(--gray); transition: color .2s ease; }
.nav a:hover { color: var(--white); }
.nav__icon { display: grid; place-items: center; }
.nav__icon + .nav__icon { margin-left: -12px; }

.menu-toggle { display: none; }

/* ---------- Hero ---------- */
.hero {
  position: relative;
  min-height: 100vh;
  min-height: 100svh;
  display: grid;
  align-items: center;
  padding: 120px 0 80px;
  overflow: hidden;
  isolation: isolate;
}
.hero::before {
  /* grade sutil */
  content: "";
  position: absolute; inset: 0; z-index: -2;
  background-image:
    linear-gradient(rgba(255,255,255,.045) 1px, transparent 1px),
    linear-gradient(90deg, rgba(255,255,255,.045) 1px, transparent 1px);
  background-size: 64px 64px;
  -webkit-mask-image: radial-gradient(ellipse 70% 60% at 70% 45%, #000 0%, transparent 75%);
  mask-image: radial-gradient(ellipse 70% 60% at 70% 45%, #000 0%, transparent 75%);
}
.hero__light {
  position: absolute; z-index: -1;
  width: min(1100px, 140vw); aspect-ratio: 1;
  right: -18%; top: 50%;
  translate: 0 -50%;
  background:
    radial-gradient(circle at 42% 40%, rgba(139, 92, 246, .55) 0%, transparent 42%),
    radial-gradient(circle at 62% 58%, rgba(59, 107, 255, .45) 0%, transparent 40%),
    radial-gradient(circle at 50% 30%, rgba(201, 184, 255, .28) 0%, transparent 34%);
  filter: blur(40px);
  opacity: 0;
  animation: light-in 1.8s cubic-bezier(.2,.7,.2,1) .1s forwards, drift 22s ease-in-out 2s infinite alternate;
}
.hero__inner { display: grid; grid-template-columns: 1.25fr 1fr; gap: 48px; align-items: center; }

.hero h1 {
  font-size: clamp(2.3rem, 5.4vw, 4.6rem);
  line-height: 1.06;
  letter-spacing: -0.045em;
  max-width: 11ch;
  padding-bottom: .12em;  /* não cortar descendentes (g, p) com o texto em degradê */
  background: linear-gradient(180deg, #fff 30%, #c9c3e6 100%);
  -webkit-background-clip: text;
  background-clip: text;
  color: transparent;
}
.lead { margin-top: 28px; max-width: 54ch; color: var(--gray); font-size: clamp(1.05rem, 1.4vw, 1.2rem); }

.actions { display: flex; flex-wrap: wrap; gap: 14px; margin-top: 40px; }

.btn {
  --cut: 10px;
  position: relative;
  display: inline-flex; align-items: center; justify-content: center;
  min-height: 50px; padding: 0 26px;
  font-family: var(--body); font-weight: 600; font-size: 1rem; letter-spacing: 0;
  text-decoration: none;
  clip-path: polygon(var(--cut) 0, 100% 0, 100% calc(100% - var(--cut)), calc(100% - var(--cut)) 100%, 0 100%, 0 var(--cut));
  transition: filter .2s ease, background-color .2s ease;
}
.btn--primary { background: var(--grad); color: #fff; }
.btn--primary:hover { filter: brightness(1.12); }
.btn--ghost { background: rgba(255,255,255,.14); color: var(--white); isolation: isolate; }
.btn--ghost::before {
  content: ""; position: absolute; inset: 1px; z-index: -1; background: #050507;
  clip-path: inherit;
  transition: background-color .2s ease;
}
.btn--ghost:hover::before { background: #12101c; }
.btn:focus-visible { outline: none; filter: brightness(1.2); box-shadow: inset 0 0 0 2px var(--lilac); }

.hero__mark { display: grid; place-items: center; }
.hero__mark img {
  width: min(340px, 72vw); height: auto;
  opacity: 0; scale: .94;
  animation: mark-in 1.4s cubic-bezier(.2,.7,.2,1) .35s forwards;
}

@keyframes light-in { to { opacity: 1; } }
@keyframes mark-in { to { opacity: 1; scale: 1; } }
@keyframes drift {
  from { translate: 0 -50%; rotate: 0deg; }
  to { translate: -4% -46%; rotate: 14deg; }
}

/* ---------- Sobre ---------- */
.about { padding: var(--section) 0; border-top: 1px solid var(--line); }
.about__grid { display: grid; grid-template-columns: 1.1fr 1fr; gap: clamp(40px, 7vw, 110px); }
.about h2 { font-size: clamp(1.6rem, 3vw, 2.4rem); line-height: 1.15; max-width: 17ch; }
.about__grid > div:first-child p { margin-top: 24px; color: var(--gray); max-width: 50ch; }
.about__list h3 { font-size: 1rem; font-weight: 500; color: var(--gray); letter-spacing: 0; }
.about__list ul { margin-top: 18px; border-top: 1px solid var(--line); }
.about__list li {
  display: flex; align-items: center; gap: 14px;
  padding: 18px 0; border-bottom: 1px solid var(--line);
  font-family: var(--body); font-weight: 500; font-size: 1.15rem;
}
.about__list li::before {
  content: ""; flex: none; width: 10px; height: 10px; background: var(--grad);
  clip-path: polygon(3px 0, 100% 0, 100% 7px, 7px 100%, 0 100%, 0 3px);
}
.about__note { margin-top: 22px; color: var(--gray); font-size: .98rem; }
.about__note a { color: var(--lilac); text-underline-offset: 3px; }

/* ---------- Projetos ---------- */
.projects { padding: var(--section) 0; }
.section-head { display: flex; flex-wrap: wrap; align-items: baseline; justify-content: space-between; gap: 12px 32px; margin-bottom: 48px; }
.section-head h2 { font-size: clamp(1.6rem, 3vw, 2.4rem); line-height: 1.15; }
.section-head p { color: var(--gray); max-width: 44ch; }

.project-list { border-top: 1px solid var(--line); }
.project {
  position: relative;
  display: grid;
  grid-template-columns: 76px 1fr minmax(180px, auto);
  gap: 28px;
  align-items: center;
  padding: 28px 0;
  border-bottom: 1px solid var(--line);
}
.project::before {
  content: ""; position: absolute; left: 0; bottom: -1px; height: 1px; width: 100%;
  background: var(--grad);
  transform: scaleX(0); transform-origin: left;
  transition: transform .5s cubic-bezier(.2,.7,.2,1);
}
.project:hover::before { transform: scaleX(1); }

.project__mark {
  --cut: 14px;
  width: 76px; height: 76px;
  display: grid; place-items: center;
  clip-path: polygon(var(--cut) 0, 100% 0, 100% calc(100% - var(--cut)), calc(100% - var(--cut)) 100%, 0 100%, 0 var(--cut));
}
.project__mark img { width: 62%; height: auto; }
.project__mark--fycode { background: #15112e; }
.project__mark--goklah { background: #18205a; }
.project__mark--goklah img { width: 70%; }
.project__mark--sonora { background: #232323; }
.project__mark--sonora img { width: 100%; }
.project__mark--afinador { background: #161616; }
.project__mark--afinador img { width: 100%; }
.project__mark--troco { background: #f2f4ef; }
.project__mark--troco img { width: 74%; }

.project__title { display: flex; flex-wrap: wrap; align-items: center; gap: 10px 14px; }
.project h3 { font-size: clamp(1.15rem, 1.8vw, 1.45rem); }
.project__body p { margin-top: 6px; color: var(--gray); max-width: 62ch; }

.chip {
  font-size: .78rem; font-weight: 600; line-height: 1;
  padding: 6px 10px; border-radius: 999px;
  color: var(--lilac); background: rgba(139, 92, 246, .14); border: 1px solid rgba(139, 92, 246, .35);
}
.chip--live { color: #b9c8ff; background: rgba(59, 107, 255, .14); border-color: rgba(59, 107, 255, .4); }

.tags { display: flex; flex-wrap: wrap; justify-content: flex-end; gap: 8px; }
.tags li { font-size: .82rem; color: var(--gray); padding: 5px 10px; border: 1px solid var(--line); border-radius: 6px; }

/* ---------- Processo ---------- */
.process { padding: var(--section) 0; border-top: 1px solid var(--line); }
.steps { display: grid; grid-template-columns: repeat(5, 1fr); gap: 28px; position: relative; counter-reset: step; }
.steps::before {
  content: ""; position: absolute; top: 22px; left: 22px; right: 22px; height: 1px;
  background: linear-gradient(90deg, var(--lilac), var(--violet), var(--blue));
  opacity: .55;
}
.steps li { position: relative; }
.steps__n {
  --cut: 10px;
  position: relative;
  display: grid; place-items: center;
  width: 44px; height: 44px;
  font-family: var(--display); font-weight: 600; font-size: .9rem;
  background: #000;
  color: var(--white);
  isolation: isolate;
  clip-path: polygon(var(--cut) 0, 100% 0, 100% calc(100% - var(--cut)), calc(100% - var(--cut)) 100%, 0 100%, 0 var(--cut));
}
.steps__n::before {
  content: ""; position: absolute; inset: 0; z-index: -2; background: var(--grad);
}
.steps__n::after {
  content: ""; position: absolute; inset: 1px; z-index: -1; background: #07060d;
  clip-path: polygon(9px 0, 100% 0, 100% calc(100% - 9px), calc(100% - 9px) 100%, 0 100%, 0 9px);
}
.steps h3 { margin-top: 22px; font-size: .98rem; line-height: 1.35; letter-spacing: -0.03em; }
.steps p { margin-top: 8px; color: var(--gray); font-size: .96rem; }

/* ---------- Segurança ---------- */
.security { padding: 0 0 var(--section); }
.security__panel {
  --cut: 28px;
  position: relative;
  display: grid; grid-template-columns: 1.2fr 1fr; gap: clamp(32px, 6vw, 80px);
  padding: clamp(32px, 6vw, 72px);
  background:
    radial-gradient(120% 140% at 0% 0%, rgba(139, 92, 246, .22) 0%, transparent 55%),
    radial-gradient(100% 120% at 100% 100%, rgba(59, 107, 255, .2) 0%, transparent 55%),
    #07060d;
  clip-path: polygon(var(--cut) 0, 100% 0, 100% calc(100% - var(--cut)), calc(100% - var(--cut)) 100%, 0 100%, 0 var(--cut));
}
.security__icon { margin-bottom: 26px; }
.security h2 { font-size: clamp(1.6rem, 3vw, 2.4rem); line-height: 1.15; max-width: 14ch; }
.security__text p { margin-top: 22px; color: #c3c0d6; max-width: 52ch; }
.checks { align-self: center; border-top: 1px solid rgba(255,255,255,.12); }
.checks li {
  display: flex; align-items: center; gap: 14px;
  padding: 16px 0; border-bottom: 1px solid rgba(255,255,255,.12);
}
.checks li::before {
  content: ""; flex: none; width: 20px; height: 20px;
  background: no-repeat center / 20px url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 20 20'%3E%3Cpath d='m5 10.5 3.2 3.2L15 6.8' fill='none' stroke='%23c9b8ff' stroke-width='2' stroke-linecap='round' stroke-linejoin='round'/%3E%3C/svg%3E");
}

/* ---------- Contato ---------- */
.contact { padding: var(--section) 0; border-top: 1px solid var(--line); text-align: center; position: relative; overflow: hidden; isolation: isolate; }
.contact::before {
  content: ""; position: absolute; z-index: -1; left: 50%; bottom: -60%;
  width: 900px; height: 600px; translate: -50% 0;
  background: radial-gradient(closest-side, rgba(139, 92, 246, .28), transparent);
}
.contact h2 { font-size: clamp(2rem, 4.4vw, 3.4rem); line-height: 1.08; letter-spacing: -0.045em; }
.contact p { margin: 18px auto 0; color: var(--gray); max-width: 46ch; }
.btn--lg { min-height: 58px; padding: 0 34px; font-size: 1.08rem; gap: 12px; }
.contact__tg { margin-top: 40px; }
.contact__alt { margin-top: 28px !important; font-size: .95rem; }
.contact__mail {
  display: inline-block; margin-top: 6px;
  font-family: var(--body); font-weight: 500;
  font-size: clamp(1.2rem, 3vw, 1.7rem); letter-spacing: -0.01em;
  text-decoration: none; overflow-wrap: anywhere;
  background-image: var(--grad);
  background-size: 100% 2px; background-repeat: no-repeat; background-position: 0 100%;
  padding-bottom: 6px;
  transition: background-size .2s ease, color .2s ease;
}
.contact__mail:hover { color: var(--lilac); background-size: 100% 3px; }
.mail-options { display: flex; flex-wrap: wrap; justify-content: center; gap: 10px; margin-top: 22px; }
.mail-options a {
  font: 500 .92rem/1 var(--body); color: var(--white);
  padding: 10px 16px; border-radius: 8px;
  background: var(--surface); border: 1px solid rgba(255, 255, 255, .14);
  text-decoration: none; cursor: pointer;
  transition: border-color .2s ease, background-color .2s ease;
}
.mail-options a:hover { border-color: rgba(201, 184, 255, .6); background: rgba(139, 92, 246, .12); }
.contact .mail-status { min-height: 1.4em; margin-top: 8px; font-size: .9rem; color: var(--lilac); }
.mail-options { margin-top: 10px; }
.contact__gh { display: flex; width: fit-content; align-items: center; gap: 10px; margin: 18px auto 0; color: var(--gray); text-decoration: none; font-size: .98rem; }
.contact__gh:hover { color: var(--white); }

/* ---------- Rodapé ---------- */
.footer { border-top: 1px solid var(--line); padding: 40px 0; font-size: .92rem; }
.footer__inner { display: grid; grid-template-columns: 1fr auto; gap: 24px 40px; align-items: center; }
.footer__brand { display: flex; align-items: center; gap: 12px; }
.footer__brand strong { display: block; font-family: var(--display); font-weight: 600; font-size: .9rem; letter-spacing: -0.02em; }
.footer__brand span { color: var(--gray); }
.footer__links { display: flex; flex-wrap: wrap; gap: 24px; }
.footer__links a { color: var(--gray); text-decoration: none; }
.footer__links a:hover { color: var(--white); }
.footer__copy { grid-column: 1 / -1; color: var(--gray-2); padding-top: 24px; border-top: 1px solid var(--line); }

/* ---------- Responsivo ---------- */
@media (max-width: 960px) {
  .hero__inner { grid-template-columns: 1fr; }
  .hero__mark { order: -1; justify-items: start; }
  .hero__mark img { width: 150px; }
  .hero__light { right: auto; left: -30%; top: 28%; }
  .about__grid { grid-template-columns: 1fr; }
  .security__panel { grid-template-columns: 1fr; }
  .steps { grid-template-columns: 1fr; gap: 0; }
  .steps::before { top: 22px; bottom: 22px; left: 22px; right: auto; width: 1px; height: auto; background: linear-gradient(180deg, var(--lilac), var(--violet), var(--blue)); }
  .steps li { display: grid; grid-template-columns: 44px 1fr; column-gap: 20px; padding-bottom: 32px; }
  .steps li:last-child { padding-bottom: 0; }
  .steps__n { grid-row: span 2; }
  .steps h3 { margin-top: 10px; }
  .project { grid-template-columns: 64px 1fr; gap: 16px 20px; align-items: start; }
  .project__mark { width: 64px; height: 64px; --cut: 12px; }
  .tags { grid-column: 2; justify-content: flex-start; }
}

@media (max-width: 760px) {
  .menu-toggle {
    display: grid; place-items: center;
    width: 44px; height: 44px; margin-right: -10px;
    background: none; border: 0; color: var(--white); cursor: pointer;
  }
  .menu-toggle__bars, .menu-toggle__bars::before, .menu-toggle__bars::after {
    display: block; width: 20px; height: 2px; background: currentColor; transition: transform .25s ease, opacity .25s ease;
  }
  .menu-toggle__bars { position: relative; }
  .menu-toggle__bars::before, .menu-toggle__bars::after { content: ""; position: absolute; left: 0; }
  .menu-toggle__bars::before { top: -6px; }
  .menu-toggle__bars::after { top: 6px; }
  .menu-toggle[aria-expanded="true"] .menu-toggle__bars { background: transparent; }
  .menu-toggle[aria-expanded="true"] .menu-toggle__bars::before { transform: translateY(6px) rotate(45deg); }
  .menu-toggle[aria-expanded="true"] .menu-toggle__bars::after { transform: translateY(-6px) rotate(-45deg); }

  .nav {
    position: fixed; inset: 68px 0 auto; flex-direction: column; align-items: stretch; gap: 0;
    padding: 8px var(--gutter) 20px;
    background: rgba(0, 0, 0, .94);
    -webkit-backdrop-filter: blur(14px);
    backdrop-filter: blur(14px);
    border-bottom: 1px solid var(--line);
    visibility: hidden; opacity: 0; translate: 0 -8px;
    transition: opacity .2s ease, translate .2s ease, visibility 0s linear .2s;
  }
  .nav.is-open { visibility: visible; opacity: 1; translate: 0 0; transition: opacity .2s ease, translate .2s ease; }
  .nav a { padding: 14px 0; font-size: 1.05rem; color: var(--white); border-bottom: 1px solid var(--line); }
  .nav a:last-child { border-bottom: 0; }
  .nav__icon { justify-items: start; }
  .nav__icon + .nav__icon { margin-left: 0; }
  .topbar.menu-open { background: rgba(0, 0, 0, .94); border-bottom-color: var(--line); }

  .hero { padding-top: 100px; }
  .actions .btn { flex: 1 1 auto; }
  .footer__inner { grid-template-columns: 1fr; }
}

@media (prefers-reduced-motion: reduce) {
  html { scroll-behavior: auto; }
  *, *::before, *::after { animation-duration: .01ms !important; animation-iteration-count: 1 !important; transition-duration: .01ms !important; }
  .hero__light { animation: none; opacity: 1; }
  .hero__mark img { animation: none; opacity: 1; scale: 1; }
}

/* ---------- 404 ---------- */
.notfound { min-height: 100vh; min-height: 100svh; display: grid; align-items: center; background: radial-gradient(60% 50% at 50% 40%, rgba(139, 92, 246, .22), transparent 70%); }
.notfound h1 { margin-top: 28px; font-size: clamp(1.7rem, 4.4vw, 2.8rem); letter-spacing: -0.04em; }
.notfound p { margin: 14px 0 32px; color: var(--gray); }
