:root {
  --bg: #07060b;
  --card: #12101a;
  --line: rgba(255, 255, 255, .1);
  --text: #f6f2ff;
  --muted: #a39cb8;
  --pink: #ff3d8b;
  --orange: #ffb547;
  --cyan: #3de0ff;
  --grad: linear-gradient(90deg, var(--pink), var(--orange));
  color-scheme: dark;
}
* { box-sizing: border-box; }
html { scroll-behavior: smooth; }
body {
  margin: 0; background: var(--bg); color: var(--text);
  font: 17px/1.5 ui-sans-serif, system-ui, -apple-system, "Segoe UI", Roboto, sans-serif;
  -webkit-font-smoothing: antialiased;
}
a { color: inherit; }
:focus-visible { outline: 3px solid var(--cyan); outline-offset: 3px; border-radius: 6px; }
.skip { position: absolute; left: -999px; top: 8px; background: #fff; color: #000; padding: 8px 12px; z-index: 10; }
.skip:focus { left: 8px; }

/* Barra */
.bar {
  position: fixed; inset: 0 0 auto; z-index: 5; display: flex; justify-content: space-between; align-items: center;
  padding: 14px max(16px, env(safe-area-inset-left)); backdrop-filter: blur(10px); background: rgba(7, 6, 11, .55);
}
.brand { display: flex; gap: 10px; align-items: center; font-weight: 800; text-decoration: none; letter-spacing: -.01em; }
.bar-cta { font-weight: 800; text-decoration: none; padding: 8px 16px; border-radius: 999px; border: 1px solid var(--line); min-height: 40px; display: inline-flex; align-items: center; }
.bar-cta:hover { border-color: var(--pink); }

/* Hero */
.hero { position: relative; min-height: min(100svh, 980px); display: grid; place-items: center; overflow: hidden; padding: 96px 16px 64px; text-align: center; }
.hero::before {
  content: ""; position: absolute; inset: auto -20% -45% -20%; height: 80%;
  background: radial-gradient(closest-side, rgba(255, 61, 139, .45), rgba(255, 181, 71, .18) 55%, transparent);
  filter: blur(20px); animation: glow 8s ease-in-out infinite alternate;
}
#neural { position: absolute; inset: 0; width: 100%; height: 100%; opacity: .5; }
.hero-in { position: relative; max-width: 960px; }
h1 {
  margin: 0; font-size: clamp(2.6rem, 9vw, 6.5rem); line-height: .95; font-weight: 900; letter-spacing: -.045em;
  animation: rise .8s cubic-bezier(.2, .8, .2, 1) both;
}
.hot { background: var(--grad); -webkit-background-clip: text; background-clip: text; color: transparent; }
.sub { margin: 28px 0 6px; font-size: clamp(1.15rem, 2.6vw, 1.6rem); font-weight: 700; animation: rise .8s .15s both; }
.paren { color: var(--cyan); }
.for { margin: 0 0 34px; color: var(--muted); font-size: clamp(1rem, 2vw, 1.2rem); animation: rise .8s .25s both; }
.btn {
  display: inline-flex; align-items: center; justify-content: center; min-height: 52px; padding: 0 30px; border-radius: 999px;
  background: var(--grad); color: #140812; font-weight: 900; font-size: 1.05rem; text-decoration: none;
  box-shadow: 0 10px 40px rgba(255, 61, 139, .35); transition: transform .2s, box-shadow .2s; animation: rise .8s .35s both;
}
.btn:hover { transform: translateY(-2px); box-shadow: 0 14px 50px rgba(255, 61, 139, .5); }
.btn-sm { min-height: 44px; padding: 0 22px; font-size: .95rem; animation: none; box-shadow: none; }
.stats { display: flex; justify-content: center; gap: clamp(24px, 6vw, 64px); margin: 48px 0 0; animation: rise .8s .45s both; }
.stats div { display: flex; flex-direction: column-reverse; }
.stats dt { color: var(--muted); font-size: .85rem; text-transform: uppercase; letter-spacing: .12em; font-weight: 700; }
.stats dd { margin: 0; font-size: clamp(2.2rem, 5vw, 3.2rem); font-weight: 900; letter-spacing: -.03em; font-variant-numeric: tabular-nums; }

/* Como jogar */
.how, .start, .crews { max-width: 1100px; margin: 0 auto; padding: 88px 16px; }
h2 { margin: 0 0 32px; font-size: clamp(1.8rem, 4vw, 2.6rem); font-weight: 900; letter-spacing: -.03em; text-align: center; }
.steps { list-style: none; margin: 0; padding: 0; display: grid; gap: 16px; grid-template-columns: repeat(3, 1fr); }
.step { position: relative; padding: 28px 24px; border-radius: 20px; background: var(--card); border: 1px solid var(--line); min-width: 0; }
.step:hover { border-color: rgba(255, 61, 139, .5); }
.num { display: block; font-size: 2.6rem; font-weight: 900; line-height: 1; background: var(--grad); -webkit-background-clip: text; background-clip: text; color: transparent; }
.step h3 { margin: 14px 0 6px; font-size: 1.35rem; letter-spacing: -.02em; }
.step p { margin: 0 0 16px; color: var(--muted); }
.say { color: var(--text) !important; font-weight: 700; font-size: 1.1rem; }
.code { display: flex; gap: 8px; align-items: flex-start; padding: 12px; border-radius: 12px; background: #000; border: 1px solid var(--line); }
.code code { flex: 1; min-width: 0; font: .8rem/1.5 ui-monospace, SFMono-Regular, Menlo, monospace; color: #e7defa; white-space: pre-wrap; overflow-wrap: anywhere; }
.copy { flex: none; min-height: 40px; padding: 0 14px; border-radius: 8px; border: 1px solid var(--line); background: #1d1a28; color: var(--text); font: inherit; font-size: .85rem; font-weight: 800; cursor: pointer; }
.copy:disabled { opacity: .4; cursor: not-allowed; }
.note { margin: 14px 0 0 !important; color: var(--orange) !important; font-weight: 700; font-size: .9rem; }
.code.flash { animation: flash 1.4s ease-out; }
.one { max-width: 760px; margin: 0 auto; display: flex; flex-direction: column; align-items: center; gap: 18px; text-align: center; }
.one .code { width: 100%; text-align: left; padding: 18px 20px; }
.one .code code { font-size: .9rem; }
.one .note { margin: 0 !important; }
.fine { margin: 0; color: var(--muted); font-size: .9rem; }
.soon { margin: 24px 0 0; text-align: center; color: var(--muted); font-size: .9rem; }

/* Crews */
.crews { padding-top: 0; }
.crews ul { list-style: none; margin: 0; padding: 0; display: flex; flex-wrap: wrap; justify-content: center; gap: 10px; }
.crews a { display: inline-flex; align-items: center; min-height: 44px; padding: 0 18px; border-radius: 999px; border: 1px solid var(--line); text-decoration: none; font-weight: 700; }
.crews a:hover { border-color: var(--orange); color: var(--orange); }

.foot { padding: 32px 16px 48px; text-align: center; color: var(--muted); font-size: .85rem; border-top: 1px solid var(--line); }
.foot p { margin: 4px 0; }

/* 404 */
.nf { min-height: 100svh; display: grid; place-items: center; text-align: center; padding: 16px; }
.nf h1 { font-size: clamp(2.4rem, 8vw, 5rem); margin-bottom: 28px; }

/* How it works: trilha com pacote viajando e nós que acendem */
.how { padding-bottom: 40px; }
.flow { --p: 0; position: relative; max-width: 900px; margin: 0 auto; }
.nodes { list-style: none; margin: 0; padding: 0; display: grid; grid-template-columns: repeat(5, 1fr); position: relative; }
.node {
  display: flex; flex-direction: column; align-items: center; gap: 10px; width: 100%; padding: 0; border: 0; background: none;
  color: var(--muted); font: inherit; font-weight: 800; cursor: pointer;
}
.ico {
  display: grid; place-items: center; width: clamp(52px, 11vw, 88px); aspect-ratio: 1; border-radius: 50%;
  background: var(--card); border: 2px solid var(--line); transition: transform .5s cubic-bezier(.2, .8, .2, 1), border-color .4s, box-shadow .4s, background .4s;
}
.ico svg { width: 46%; height: 46%; fill: none; stroke: currentColor; stroke-width: 2; stroke-linecap: round; stroke-linejoin: round; }
.lbl { font-size: clamp(.75rem, 2.4vw, .95rem); transition: color .4s; }
.node.done .ico { border-color: rgba(255, 61, 139, .55); color: var(--pink); }
.node.done .lbl { color: var(--text); }
.node.on .ico { transform: scale(1.14); border-color: var(--orange); color: #140812; background: var(--grad); box-shadow: 0 0 0 8px rgba(255, 181, 71, .12), 0 0 40px rgba(255, 61, 139, .55); }
.node.on .ico svg { animation: pop .6s cubic-bezier(.2, .8, .2, 1); }
.node.on .lbl { color: var(--text); }
.track { position: absolute; left: 10%; right: 10%; top: calc(clamp(52px, 11vw, 88px) / 2); height: 3px; background: var(--line); border-radius: 3px; }
.track-fill { position: absolute; inset: 0 auto 0 0; width: calc(var(--p) * 100%); background: var(--grad); border-radius: 3px; transition: width .9s cubic-bezier(.5, 0, .2, 1); }
.packet {
  position: absolute; top: 50%; left: calc(var(--p) * 100%); width: 14px; height: 14px; margin: -7px 0 0 -7px; border-radius: 50%;
  background: #fff; box-shadow: 0 0 16px 4px var(--orange); transition: left .9s cubic-bezier(.5, 0, .2, 1);
}
.cap { margin: 40px 0 0; text-align: center; font-size: clamp(1.3rem, 3.4vw, 2rem); font-weight: 800; letter-spacing: -.02em; min-height: 2.6em; }
.cap.in { animation: rise .5s both; }

@keyframes pop { 0% { transform: scale(.4) rotate(-12deg); } 100% { transform: none; } }
@keyframes flash { 0% { border-color: var(--orange); box-shadow: 0 0 0 4px rgba(255, 181, 71, .35); } 100% { box-shadow: 0 0 0 0 transparent; } }
@keyframes rise { from { opacity: 0; transform: translateY(18px); } }
@keyframes glow { to { transform: translateY(-6%) scale(1.08); opacity: .8; } }

@media (max-width: 820px) { .steps { grid-template-columns: 1fr; } }
@media (prefers-reduced-motion: reduce) {
  *, *::before, *::after { animation: none !important; transition: none !important; }
  html { scroll-behavior: auto; }
}

.start { padding-top: 24px; }

/* Páginas de texto (terms) */
.doc { max-width: 720px; margin: 0 auto; padding: 48px 16px 80px; }
.doc h1 { font-size: clamp(2rem, 6vw, 3rem); margin: 16px 0 8px; }
.doc h2 { text-align: left; font-size: 1.3rem; margin: 32px 0 8px; }
.doc p, .doc li { color: var(--muted); }
.doc a { color: var(--cyan); }
.doc .muted { font-size: .9rem; }
