/* Página inicial da Nevdin. Tokens do Brand Kit v1.0 (design/tokens.css). */
:root {
  color-scheme: dark;
  --brand-primary: #9333EA;
  --brand-secondary: #6366F1;
  --brand-accent: #22D3EE;
  --bg: #0B0A14;
  --bg-2: #100E1C;
  --surface: #151321;
  --surface-2: #1B1929;
  --component: #242136;
  --hover: #302C45;
  --line: #353149;
  --text: #F1F0F7;
  --muted: #B4B0C7;
  --action: #4338CA;
  --action-hover: #3730A3;
  --font-brand: "Exo 2", "Space Grotesk", system-ui, sans-serif;
  --font-heading: "Space Grotesk", Inter, system-ui, sans-serif;
  --font-body: Inter, system-ui, -apple-system, "Segoe UI", sans-serif;
  font: 16px/1.6 var(--font-body);
  background: var(--bg);
  color: var(--text);
}
*, *::before, *::after { box-sizing: border-box; }
body { margin: 0; background: var(--bg); }
a { color: inherit; }
:focus-visible { outline: 3px solid var(--brand-accent); outline-offset: 3px; border-radius: 6px; }
img { max-width: 100%; height: auto; }
.wrap { width: min(1180px, calc(100% - 32px)); margin-inline: auto; }
.visually-hidden { 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: 10; padding: 10px 14px; border-radius: 8px; background: var(--text); color: var(--bg); font-weight: 600; }
.skip:focus { top: 12px; }

/* Marca: N com o degradê oficial, resto em branco (como no logo). */
.wordmark { font-family: var(--font-brand); font-style: italic; font-weight: 800; letter-spacing: -.01em; }
.brand { display: inline-flex; align-items: center; gap: 10px; font-size: 1.4rem; text-decoration: none; }
.brand img { display: block; }

/* Cabeçalho */
.site-header { position: sticky; top: 0; z-index: 5; background: color-mix(in srgb, var(--bg) 88%, transparent); backdrop-filter: blur(10px); border-bottom: 1px solid #ffffff10; }
.nav { display: flex; align-items: center; gap: 24px; min-height: 68px; }
.nav nav { display: flex; gap: 4px; margin-left: auto; }
.nav-link { padding: 8px 12px; border-radius: 8px; color: var(--muted); font-weight: 500; text-decoration: none; }
.nav-link:hover { color: var(--text); background: var(--surface); }

/* Botões */
.button {
  display: inline-flex; align-items: center; justify-content: center; gap: 8px;
  min-height: 52px; padding: 0 26px; border: 1px solid transparent; border-radius: 999px;
  font: 600 1rem/1 var(--font-body); text-decoration: none; transition: background-color 200ms ease, transform 200ms ease;
}
.button small { font-weight: 500; opacity: .8; }
.button.small { min-height: 40px; padding: 0 18px; font-size: .92rem; }
.primary { background: var(--action); color: #fff; }
.primary:hover { background: var(--action-hover); }
.secondary { background: var(--component); border-color: var(--line); color: var(--text); }
.secondary:hover { background: var(--hover); }
.light { background: var(--text); color: #14121f; }
.light:hover { background: #fff; }
@media (prefers-reduced-motion: no-preference) { .button:hover { transform: translateY(-1px); } }

/* Topo */
.hero { position: relative; overflow: hidden; border-bottom: 1px solid #ffffff0d; background: radial-gradient(60% 70% at 78% 40%, #9333ea1f, transparent 70%), var(--bg); }
.hero-grid { display: grid; grid-template-columns: 1.1fr .9fr; align-items: center; gap: 32px; padding-block: clamp(48px, 9vw, 120px); }
.eyebrow { margin: 0 0 14px; color: var(--brand-accent); font-size: .82rem; font-weight: 600; letter-spacing: .08em; text-transform: uppercase; }
h1, h2, h3 { font-family: var(--font-heading); margin: 0; }
h1 { font-size: clamp(2.6rem, 6.2vw, 4.9rem); font-weight: 700; line-height: 1.02; letter-spacing: -.035em; }
h1 span { color: #C4B5FD; }
.intro { max-width: 46ch; margin: 22px 0 30px; color: var(--muted); font-size: clamp(1.05rem, 1.6vw, 1.2rem); }
.actions { display: flex; flex-wrap: wrap; gap: 12px; }
.actions.center { justify-content: center; }
.platforms { margin: 18px 0 0; color: var(--muted); font-size: .92rem; }
.platforms a { color: var(--text); text-underline-offset: 3px; }
.hero-art { display: grid; place-items: center; }
.hero-art img { width: min(440px, 92%); filter: drop-shadow(0 24px 48px #00000080); }

/* Seções em zigue-zague, como uma vitrine */
.showcase { display: grid; gap: clamp(28px, 5vw, 56px); padding-block: clamp(56px, 9vw, 112px); }
.feature { display: grid; grid-template-columns: 1fr 1.15fr; align-items: center; gap: clamp(24px, 6vw, 80px); padding: clamp(24px, 4vw, 48px); border: 1px solid var(--line); border-radius: 24px; background: var(--surface); }
.feature.reverse .feature-copy { order: 2; }
.feature h3 { font-size: clamp(1.6rem, 3vw, 2.4rem); line-height: 1.12; letter-spacing: -.02em; }
.feature p { margin: 16px 0 0; color: var(--muted); font-size: 1.05rem; max-width: 44ch; }

.mock { min-width: 0; overflow: hidden; border: 1px solid var(--line); border-radius: 14px; background: var(--surface-2); font-size: .85rem; box-shadow: 0 20px 40px #00000059; }
.mock:not(.call):not(.roles) { display: grid; grid-template-columns: minmax(110px, 34%) 1fr; }
.mock-side { display: flex; flex-direction: column; gap: 2px; padding: 14px 10px; background: var(--bg-2); color: var(--muted); }
.mock-side strong { color: var(--text); margin: 0 6px 6px; font-family: var(--font-heading); }
.mock-side small { margin: 10px 6px 2px; font-size: .68rem; font-weight: 600; letter-spacing: .06em; text-transform: uppercase; }
.mock-side span { padding: 5px 8px; border-radius: 6px; }
.mock-side .on { background: var(--hover); color: var(--text); }
.mock-chat { padding: 0 14px 12px; }
.mock-title { padding: 12px 0; border-bottom: 1px solid var(--line); font-weight: 600; }
.msg { display: flex; gap: 10px; margin-top: 12px; }
.msg p { margin: 0; color: var(--muted); }
.av { display: grid; place-items: center; flex: none; width: 32px; height: 32px; border-radius: 50%; color: #0B0A14; font-weight: 700; }
.av.big { width: 56px; height: 56px; font-size: 1.3rem; }
.a1 { background: #C4B5FD; } .a2 { background: #67E8F9; } .a3 { background: #FCD34D; }
.mock.call { display: grid; grid-template-columns: 1fr 1fr; gap: 8px; padding: 8px; background: var(--bg-2); }
.tile { position: relative; display: grid; place-items: center; aspect-ratio: 16 / 10; border-radius: 10px; background: var(--component); }
.tile span { position: absolute; left: 8px; bottom: 6px; padding: 1px 8px; border-radius: 6px; background: #0b0a14b3; font-size: .75rem; }
.tile.speaking { box-shadow: inset 0 0 0 2px #22C55E; }
.tile.screen { background: linear-gradient(135deg, #312E81, #1E1B4B); }
.mock.roles { display: grid; gap: 8px; padding: 16px; }
.role { display: flex; align-items: center; gap: 10px; padding: 10px 12px; border-radius: 10px; background: var(--component); font-weight: 600; }
.role i { width: 12px; height: 12px; border-radius: 50%; background: var(--c); }
.role span { margin-left: auto; color: var(--muted); font-weight: 500; }
.perm { display: flex; align-items: center; justify-content: space-between; padding: 8px 12px; color: var(--muted); }
.toggle { position: relative; width: 40px; height: 24px; border-radius: 999px; background: #4B4763; }
.toggle::after { content: ""; position: absolute; top: 3px; left: 3px; width: 18px; height: 18px; border-radius: 50%; background: #fff; }
.toggle.on { background: #16A34A; }
.toggle.on::after { left: 19px; }

.more { padding-bottom: clamp(56px, 9vw, 112px); }
.more h2, .cta h2 { font-size: clamp(1.8rem, 3.4vw, 2.6rem); letter-spacing: -.02em; text-align: center; }
.more-grid { display: grid; grid-template-columns: repeat(4, 1fr); gap: 16px; margin: 32px 0 0; padding: 0; list-style: none; }
.more-grid li { display: grid; gap: 6px; padding: 22px; border: 1px solid var(--line); border-radius: 16px; background: var(--surface); }
.more-grid strong { font-family: var(--font-heading); font-size: 1.1rem; }
.more-grid span { color: var(--muted); }

.cta { display: grid; justify-items: center; gap: 10px; margin-bottom: clamp(56px, 9vw, 112px); padding: clamp(36px, 6vw, 64px) 24px; border: 1px solid var(--line); border-radius: 28px; background: var(--surface); text-align: center; }
.cta p { margin: 0 0 14px; color: var(--muted); }

.footer { border-top: 1px solid var(--line); background: var(--bg-2); }
.footer-grid { display: flex; justify-content: space-between; gap: 24px; flex-wrap: wrap; padding-block: 40px; }
.footer p { margin: 8px 0 0; color: var(--muted); }
.footer nav { display: flex; gap: 8px 24px; flex-wrap: wrap; align-items: flex-start; }
.footer nav a { color: var(--muted); text-decoration: none; }
.footer nav a:hover { color: var(--text); text-decoration: underline; }

@media (max-width: 900px) {
  .hero-grid, .feature { grid-template-columns: 1fr; }
  .hero-art { order: -1; }
  .hero-art img { width: min(240px, 60%); }
  .feature.reverse .feature-copy { order: 0; }
  .more-grid { grid-template-columns: 1fr 1fr; }
}
@media (max-width: 560px) {
  .nav nav { display: none; }
  .nav .button { margin-left: auto; }
  .actions .button { flex: 1 1 100%; }
  .more-grid { grid-template-columns: 1fr; }
  .mock:not(.call):not(.roles) { grid-template-columns: 1fr; }
  .mock-side { display: none; }
}

@media (prefers-reduced-motion: no-preference) {
  [data-reveal] { transition: opacity 450ms ease, transform 450ms cubic-bezier(.2, .65, .3, 1); }
  .reveal-pending { opacity: 0; transform: translateY(16px); }
  .reveal-pending:focus-within { opacity: 1; transform: none; }
}

/* Tela de "login concluído" (volta do Google para os apps). */
.done-page { min-height: 100vh; display: grid; place-items: center; padding: 16px; background: radial-gradient(60% 60% at 50% 30%, #9333ea22, transparent 70%), var(--bg); }
.done-card { display: grid; justify-items: center; gap: 12px; width: min(440px, 100%); padding: 32px 24px; border: 1px solid var(--line); border-radius: 24px; background: var(--surface); text-align: center; }
.done-card h1 { font-size: clamp(1.6rem, 4vw, 2rem); }
.done-card p { margin: 0; color: var(--muted); }
.done-card .done-hint { color: var(--text); font-weight: 500; }
.done-nevi { width: 140px; height: 140px; }
