/* ============================================================
   WeGo — landing page
   Direção: "fluxo engenheirado" — editorial, preciso, com uma
   corrente blue→green percorrendo a página como fio condutor.
   ============================================================ */

:root {
  /* marca (extraído do logo) */
  --blue:        #2240CC;
  --blue-bright: #2E66E6;
  --green:       #23C13A;

  /* tinta / papel */
  --ink:      #0B1020;   /* texto e seções escuras */
  --ink-2:    #141B30;
  --paper:    #F4F5F7;   /* fundo da página */
  --card:     #FFFFFF;
  --muted:    #5B6478;   /* texto secundário */
  --muted-d:  #9AA3B4;   /* texto secundário no escuro */
  --line:     #E3E6EC;   /* hairlines */
  --line-d:   rgba(255,255,255,.12);

  --flow: linear-gradient(100deg, var(--blue) 0%, var(--blue-bright) 48%, var(--green) 100%);

  --font-display: "Bricolage Grotesque", "Hanken Grotesk", sans-serif;
  --font-body:    "Hanken Grotesk", system-ui, sans-serif;
  --font-mono:    "IBM Plex Mono", ui-monospace, monospace;

  --maxw: 1180px;
  --pad:  clamp(20px, 5vw, 64px);
  --r:    16px;

  --ease: cubic-bezier(.22,.61,.36,1);
}

* { box-sizing: border-box; margin: 0; padding: 0; }

html { scroll-behavior: smooth; -webkit-text-size-adjust: 100%; }

body {
  font-family: var(--font-body);
  background: var(--paper);
  color: var(--ink);
  line-height: 1.55;
  -webkit-font-smoothing: antialiased;
  text-rendering: optimizeLegibility;
  overflow-x: hidden;
  /* textura sutil de grão para dar atmosfera */
  background-image:
    radial-gradient(1200px 600px at 75% -5%, rgba(34,64,204,.05), transparent 60%),
    radial-gradient(900px 500px at -10% 30%, rgba(35,193,58,.04), transparent 55%);
}

img { max-width: 100%; display: block; }
a { color: inherit; text-decoration: none; }

::selection { background: var(--green); color: var(--ink); }

/* ---------- tipografia base ---------- */
h1, h2, h3 { font-family: var(--font-display); font-weight: 700; line-height: 1.04; letter-spacing: -.02em; }

.eyebrow {
  font-family: var(--font-mono);
  font-size: .72rem;
  font-weight: 500;
  letter-spacing: .22em;
  text-transform: uppercase;
  color: var(--blue);
  display: inline-flex;
  align-items: center;
  gap: .6em;
}
.eyebrow::before {
  content: "";
  width: 26px; height: 2px;
  background: var(--flow);
  display: inline-block;
}
.eyebrow--light { color: var(--green); }

.strike { text-decoration: line-through; text-decoration-color: var(--muted); opacity: .55; }
.hl {
  background: var(--flow);
  -webkit-background-clip: text; background-clip: text;
  color: transparent;
}

/* ---------- botões ---------- */
.btn {
  --b: var(--ink);
  display: inline-flex; align-items: center; gap: .5em;
  font-family: var(--font-mono);
  font-size: .82rem; font-weight: 500; letter-spacing: .04em;
  padding: .95em 1.5em;
  border-radius: 100px;
  border: 1.5px solid transparent;
  cursor: pointer;
  transition: transform .25s var(--ease), box-shadow .25s var(--ease), background .25s, color .25s, border-color .25s;
  white-space: nowrap;
}
.btn--primary {
  background: var(--ink); color: #fff;
  box-shadow: 0 1px 0 rgba(0,0,0,.04);
}
.btn--primary::after {
  content: ""; /* ponto verde — sela de marca */
}
.btn--primary:hover { transform: translateY(-2px); box-shadow: 0 14px 30px -12px rgba(11,16,32,.55); }
.btn--lg { font-size: .92rem; padding: 1.1em 1.9em; }

.btn--ghost {
  border-color: var(--line);
  color: var(--ink);
  background: transparent;
}
.btn--ghost:hover { border-color: var(--ink); transform: translateY(-2px); }
.btn--ghost-light { border-color: var(--line-d); color: #fff; }
.btn--ghost-light:hover { border-color: #fff; }
.btn__arrow { transition: transform .25s var(--ease); }
.btn--ghost:hover .btn__arrow { transform: translateY(3px); }

/* ============================================================
   NAV
   ============================================================ */
.nav {
  position: sticky; top: 0; z-index: 100;
  transition: background .3s, border-color .3s, backdrop-filter .3s;
  border-bottom: 1px solid transparent;
}
.nav.is-stuck {
  background: rgba(244,245,247,.82);
  backdrop-filter: saturate(150%) blur(12px);
  border-bottom-color: var(--line);
}
.nav__inner {
  max-width: var(--maxw); margin: 0 auto;
  padding: 16px var(--pad);
  display: flex; align-items: center; justify-content: space-between; gap: 24px;
}
.nav__logo { height: 26px; width: auto; }
.nav__links { display: flex; align-items: center; gap: clamp(14px, 2.4vw, 34px); }
.nav__links a {
  font-family: var(--font-mono); font-size: .82rem; letter-spacing: .03em;
  color: var(--ink); opacity: .72; transition: opacity .2s;
}
.nav__links a:hover { opacity: 1; }
.nav__cta {
  opacity: 1 !important;
  background: var(--ink); color: #fff !important;
  padding: .6em 1.1em; border-radius: 100px;
  transition: transform .2s var(--ease);
}
.nav__cta:hover { transform: translateY(-2px); }

@media (max-width: 720px) {
  .nav__links a:not(.nav__cta) { display: none; }
}

/* ============================================================
   HERO
   ============================================================ */
.hero {
  position: relative;
  max-width: var(--maxw); margin: 0 auto;
  padding: clamp(48px, 9vw, 110px) var(--pad) clamp(60px, 10vw, 130px);
  min-height: min(86vh, 820px);
  display: flex; flex-direction: column; justify-content: center;
  overflow: hidden;
}
.hero__flow {
  position: absolute; inset: 0; z-index: 0; pointer-events: none;
  opacity: .9;
}
.flowsvg { width: 100%; height: 100%; }
.flowsvg__line {
  fill: none; stroke: url(#grad-flow); stroke-width: 3;
  stroke-linecap: round;
  stroke-dasharray: 14 14;
  filter: drop-shadow(0 6px 22px rgba(46,102,230,.25));
  animation: flowdash 2.4s linear infinite;
}
.flowsvg__ghost {
  fill: none; stroke: var(--blue); stroke-width: 1; opacity: .07;
}
.flowsvg__ghost--2 { stroke: var(--green); opacity: .06; }

@keyframes flowdash { to { stroke-dashoffset: -280; } }

.hero__inner { position: relative; z-index: 1; max-width: 880px; }
.eyebrow--hero { margin-bottom: 28px; }

.hero__title {
  font-size: clamp(2.7rem, 7.4vw, 5.6rem);
  font-weight: 800;
  letter-spacing: -.035em;
  margin-bottom: 30px;
}
.hero__title-sub {
  display: block;
  font-weight: 600;
  color: transparent;
  background: var(--flow);
  -webkit-background-clip: text; background-clip: text;
  margin-top: .08em;
}
.hero__lede {
  font-size: clamp(1.05rem, 1.9vw, 1.32rem);
  color: var(--muted);
  max-width: 620px;
  line-height: 1.6;
}
.hero__lede strong { color: var(--ink); font-weight: 700; }
.hero__lede em { font-style: normal; color: var(--blue); font-weight: 600; }
.hero__actions { margin-top: 40px; display: flex; flex-wrap: wrap; gap: 14px; }

/* ============================================================
   STATEMENT BAND
   ============================================================ */
.band {
  border-top: 1px solid var(--line);
  border-bottom: 1px solid var(--line);
  background: var(--card);
  padding: clamp(40px, 7vw, 86px) var(--pad);
}
.band__text {
  max-width: var(--maxw); margin: 0 auto;
  font-family: var(--font-display);
  font-weight: 600;
  font-size: clamp(1.5rem, 4vw, 2.9rem);
  letter-spacing: -.025em;
  line-height: 1.14;
}

/* ============================================================
   SECTION base
   ============================================================ */
.section {
  max-width: var(--maxw); margin: 0 auto;
  padding: clamp(64px, 11vw, 150px) var(--pad);
}
.section__head { max-width: 760px; margin-bottom: clamp(40px, 6vw, 72px); }
.section__head--center { margin-left: auto; margin-right: auto; text-align: center; }
.section__head--center .eyebrow { justify-content: center; }
.section__title {
  font-size: clamp(1.9rem, 4.6vw, 3.4rem);
  margin: 22px 0 24px;
}
.section__lede {
  font-size: clamp(1.02rem, 1.6vw, 1.22rem);
  color: var(--muted); line-height: 1.6; max-width: 64ch;
}
.section__lede--light { color: var(--muted-d); margin-inline: auto; }
.section__lede strong { color: var(--ink); }
.section__lede--light strong { color: #fff; }
.section__lede em { font-style: normal; color: var(--blue); font-weight: 600; }
.section__lede--light em { color: var(--green); }

/* dark variant */
.section--dark {
  max-width: none; position: relative; overflow: hidden;
  background: var(--ink); color: #fff;
}
.section--dark .section__title { color: #fff; }
.section--dark > .section__head,
.section--dark > .mechs,
.section--dark > .cta__inner { max-width: var(--maxw); margin-inline: auto; }

/* ============================================================
   CICLO
   ============================================================ */
.cycle {
  list-style: none;
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  gap: 1px;
  background: var(--line);
  border: 1px solid var(--line);
  border-radius: var(--r);
  overflow: hidden;
}
.cycle__step {
  background: var(--card);
  padding: 26px 22px 30px;
  position: relative;
  transition: background .3s var(--ease), transform .3s var(--ease);
}
.cycle__step::before {
  content: ""; position: absolute; left: 0; top: 0; height: 3px; width: 0;
  background: var(--flow); transition: width .45s var(--ease);
}
.cycle__step:hover { background: #fff; }
.cycle__step:hover::before { width: 100%; }
.cycle__n {
  font-family: var(--font-mono); font-size: .78rem; font-weight: 600;
  color: var(--blue); letter-spacing: .08em;
}
.cycle__step h3 { font-size: 1.04rem; margin: 14px 0 8px; letter-spacing: -.01em; }
.cycle__step p { font-size: .9rem; color: var(--muted); line-height: 1.45; }

.ciclo__foot {
  margin-top: 40px; max-width: 56ch;
  font-size: clamp(1.05rem, 1.8vw, 1.28rem);
  font-family: var(--font-display); font-weight: 500; letter-spacing: -.01em;
  color: var(--ink); line-height: 1.4;
}

@media (max-width: 900px) { .cycle { grid-template-columns: repeat(2, 1fr); } }
@media (max-width: 460px) { .cycle { grid-template-columns: 1fr; } }

/* ============================================================
   ABORDAGEM (dark)
   ============================================================ */
.abordagem__bg {
  position: absolute; inset: 0; z-index: 0; pointer-events: none;
  background:
    radial-gradient(700px 380px at 12% 0%, rgba(46,102,230,.20), transparent 60%),
    radial-gradient(620px 420px at 90% 100%, rgba(35,193,58,.16), transparent 60%);
}
.abordagem > * { position: relative; z-index: 1; }

.mechs {
  display: grid; grid-template-columns: repeat(3, 1fr);
  gap: clamp(16px, 2.4vw, 28px);
  margin-top: clamp(36px, 5vw, 56px);
}
.mech {
  border: 1px solid var(--line-d);
  border-radius: var(--r);
  padding: 34px 30px 38px;
  background: linear-gradient(180deg, rgba(255,255,255,.035), rgba(255,255,255,0));
  transition: transform .35s var(--ease), border-color .35s, background .35s;
}
.mech:hover { transform: translateY(-6px); border-color: rgba(255,255,255,.28); }
.mech__idx {
  font-family: var(--font-mono); font-size: .8rem; font-weight: 600; letter-spacing: .1em;
  color: var(--green);
  display: inline-block; margin-bottom: 20px;
  padding-bottom: 8px; border-bottom: 2px solid; border-image: var(--flow) 1;
}
.mech h3 { font-size: 1.3rem; color: #fff; margin-bottom: 12px; letter-spacing: -.015em; }
.mech p { font-size: .96rem; color: var(--muted-d); line-height: 1.55; }
.mech p em { font-style: normal; color: #fff; font-weight: 600; }

@media (max-width: 820px) { .mechs { grid-template-columns: 1fr; } }

/* ============================================================
   PLATAFORMA / MÓDULOS
   ============================================================ */
.acts { display: grid; gap: clamp(30px, 4vw, 50px); }
.act__label {
  font-family: var(--font-mono); font-size: .82rem; letter-spacing: .14em;
  text-transform: uppercase; color: var(--ink);
  display: flex; align-items: center; gap: 12px;
  margin-bottom: 22px; padding-bottom: 16px;
  border-bottom: 1px solid var(--line);
}
.act__num {
  width: 30px; height: 30px; border-radius: 8px;
  display: inline-grid; place-items: center;
  background: var(--flow); color: #fff; font-weight: 600; font-size: .9rem;
  letter-spacing: 0;
}
.modgrid {
  list-style: none;
  display: grid; grid-template-columns: repeat(4, 1fr);
  gap: 1px; background: var(--line);
  border: 1px solid var(--line); border-radius: var(--r); overflow: hidden;
}
.mod {
  background: var(--card); padding: 26px 24px 30px;
  position: relative; transition: background .3s, transform .3s var(--ease);
}
.mod:hover { background: #fff; }
.mod__dot {
  width: 10px; height: 10px; border-radius: 50%;
  background: var(--blue); display: block; margin-bottom: 18px;
  transition: transform .3s var(--ease), background .3s;
  box-shadow: 0 0 0 0 rgba(34,64,204,.3);
}
.mod:hover .mod__dot { transform: scale(1.25); background: var(--green); }
.mod h3 { font-size: 1.12rem; margin-bottom: 9px; letter-spacing: -.015em; }
.mod p { font-size: .9rem; color: var(--muted); line-height: 1.48; }
.mod--kernel { background: linear-gradient(180deg, rgba(34,64,204,.05), rgba(35,193,58,.04)); }
.mod--kernel .mod__dot { background: var(--green); }

@media (max-width: 980px) { .modgrid { grid-template-columns: repeat(2, 1fr); } }
@media (max-width: 480px) { .modgrid { grid-template-columns: 1fr; } }

/* ============================================================
   DIFERENCIAÇÃO
   ============================================================ */
.diffs { display: grid; grid-template-columns: repeat(3, 1fr); gap: clamp(20px, 3vw, 40px); }
.diff { border-top: 3px solid var(--ink); padding-top: 22px; }
.diff:nth-child(1) { border-image: var(--flow) 1; }
.diff:nth-child(2) { border-image: var(--flow) 1; }
.diff:nth-child(3) { border-image: var(--flow) 1; }
.diff h3 { font-size: 1.28rem; margin-bottom: 12px; letter-spacing: -.015em; }
.diff p { color: var(--muted); font-size: .98rem; line-height: 1.55; }
@media (max-width: 820px) { .diffs { grid-template-columns: 1fr; gap: 28px; } }

/* ============================================================
   CTA FINAL (dark)
   ============================================================ */
.cta { text-align: center; }
.cta__flow { position: absolute; inset: 0; z-index: 0; opacity: .5; pointer-events: none; }
.flowsvg--cta .flowsvg__line { stroke-width: 2.5; }
.cta__inner { position: relative; z-index: 1; max-width: 720px; margin: 0 auto; }
.cta .eyebrow { justify-content: center; }
.cta__title {
  font-size: clamp(2rem, 5.4vw, 3.6rem);
  color: #fff; margin: 22px 0 22px; letter-spacing: -.03em;
}
.cta__lede { color: var(--muted-d); font-size: clamp(1.02rem, 1.7vw, 1.2rem); line-height: 1.6; margin-inline: auto; max-width: 52ch; }
.cta__actions { margin-top: 40px; display: flex; gap: 14px; justify-content: center; flex-wrap: wrap; }

/* ============================================================
   FOOTER
   ============================================================ */
.footer { background: var(--ink); color: #fff; border-top: 1px solid var(--line-d); }
.footer__inner {
  max-width: var(--maxw); margin: 0 auto; padding: clamp(40px, 6vw, 70px) var(--pad);
  display: flex; flex-wrap: wrap; gap: 32px; justify-content: space-between; align-items: flex-end;
}
.footer__logo { height: 28px; margin-bottom: 18px; }
.footer__brand p { color: var(--muted-d); max-width: 42ch; font-size: .96rem; }
.footer__meta { text-align: right; }
.footer__origin { font-size: .95rem; color: var(--muted-d); }
.footer__origin strong { color: #fff; }
.footer__copy { font-family: var(--font-mono); font-size: .76rem; color: var(--muted-d); margin-top: 8px; letter-spacing: .03em; }
@media (max-width: 620px) { .footer__inner { flex-direction: column; align-items: flex-start; } .footer__meta { text-align: left; } }

/* ============================================================
   REVEAL ON SCROLL
   ============================================================ */
.reveal { opacity: 0; transform: translateY(26px); transition: opacity .7s var(--ease), transform .7s var(--ease); }
.reveal.is-in { opacity: 1; transform: none; }
.reveal[data-d="1"] { transition-delay: .08s; }
.reveal[data-d="2"] { transition-delay: .16s; }
.reveal[data-d="3"] { transition-delay: .24s; }
.reveal[data-d="4"] { transition-delay: .32s; }
.reveal[data-d="5"] { transition-delay: .40s; }

/* ============================================================
   MOTION SAFE
   ============================================================ */
@media (prefers-reduced-motion: reduce) {
  * { animation: none !important; transition: none !important; scroll-behavior: auto !important; }
  .reveal { opacity: 1; transform: none; }
}

/* focus visível */
a:focus-visible, .btn:focus-visible {
  outline: 3px solid var(--blue-bright); outline-offset: 3px; border-radius: 6px;
}
