/* Nexora — site institucional. Tokens do kit de marca (brand/colors/tokens.css). Mobile-first. */
:root {
  --ink: #0F1A33;
  --ink-2: #1A2647;
  --ink-3: #2B3A5E;
  --muted: #5A6680;
  --line: #DDE1E8;
  --line-2: #ECEEF2;
  --paper: #F6F5F1;
  --white: #FFFFFF;
  --signal: #FF6A3D;
  --signal-text: #C23C12;
  --signal-soft: #FFF1EB;
  --periwinkle: #7B93FF;
  --bubble: #E3E8F2;
  --font-display: 'Sora', 'Segoe UI', system-ui, sans-serif;
  --font-body: 'Instrument Sans', system-ui, -apple-system, sans-serif;
  --font-mono: 'IBM Plex Mono', ui-monospace, 'SFMono-Regular', monospace;
  --gutter: clamp(20px, 5vw, 40px);
  --max: 1160px;
  --radius-lg: clamp(20px, 3vw, 28px);
  --ease: cubic-bezier(0.2, 0, 0, 1);
}

*, *::before, *::after { box-sizing: border-box; }
html { -webkit-text-size-adjust: 100%; scroll-behavior: smooth; scroll-padding-top: 88px; }
body {
  margin: 0;
  background: var(--paper);
  color: var(--ink);
  font: 400 17px/1.6 var(--font-body);
  -webkit-font-smoothing: antialiased;
  text-rendering: optimizeLegibility;
}
img, svg { display: block; max-width: 100%; }
a { color: var(--signal-text); text-underline-offset: 3px; }
a:hover { color: var(--ink); }
:focus-visible { outline: 3px solid var(--periwinkle); outline-offset: 3px; border-radius: 6px; }

.wrap { width: 100%; max-width: var(--max); margin: 0 auto; padding-inline: var(--gutter); }
.eyebrow { font: 500 14px/1.4 var(--font-mono); letter-spacing: 0.02em; color: var(--signal-text); margin: 0; }
h1, h2, h3 { font-family: var(--font-display); font-weight: 600; margin: 0; text-wrap: balance; }
h1 { font-size: clamp(36px, 10.4vw, 80px); line-height: 1.02; letter-spacing: -0.045em; }
h2 { font-size: clamp(30px, 5.4vw, 50px); line-height: 1.08; letter-spacing: -0.035em; }
h3 { font-size: clamp(20px, 2.6vw, 24px); line-height: 1.25; letter-spacing: -0.02em; }
p { margin: 0; text-wrap: pretty; }
.dot { color: var(--signal); }
.lead { font-size: clamp(18px, 2.2vw, 21px); line-height: 1.55; color: var(--ink-3); max-width: 34em; }
.mono { font-family: var(--font-mono); }

/* ---------- cabeçalho ---------- */
.header {
  position: sticky; top: 0; z-index: 20;
  background: color-mix(in srgb, var(--paper) 88%, transparent);
  backdrop-filter: saturate(1.4) blur(12px);
  -webkit-backdrop-filter: saturate(1.4) blur(12px);
  border-bottom: 1px solid transparent;
  transition: border-color 200ms var(--ease);
}
.header.scrolled { border-bottom-color: var(--line); }
.header .wrap { display: flex; align-items: center; justify-content: space-between; gap: 16px; min-height: 68px; }
.brand { display: inline-flex; align-items: center; gap: 10px; text-decoration: none; color: var(--ink); }
.brand span { font: 600 24px/1 var(--font-display); letter-spacing: -0.035em; margin-top: -3px; }
.nav { display: none; align-items: center; gap: 28px; font-size: 15px; }
.nav a { color: var(--ink-3); text-decoration: none; }
.nav a:hover { color: var(--ink); }

/* ---------- botões ---------- */
.btn {
  display: inline-flex; align-items: center; justify-content: center; gap: 12px;
  min-height: 56px; padding: 12px 24px; border-radius: 999px; border: 2px solid transparent;
  font: 600 17px/1.2 var(--font-display); text-decoration: none; cursor: pointer;
  transition: transform 180ms var(--ease), background-color 180ms var(--ease), border-color 180ms var(--ease);
}
.btn:hover { transform: translateY(-2px); }
.btn small { display: block; font: 400 12.5px/1.3 var(--font-mono); opacity: 0.78; margin-top: 2px; }
.btn-text { display: flex; flex-direction: column; align-items: flex-start; text-align: left; }
.btn-signal { background: var(--signal); color: var(--ink); }
.btn-signal:hover { background: #FF7F59; color: var(--ink); }
.btn-ink { background: var(--ink); color: var(--white); }
.btn-ink:hover { background: var(--ink-2); color: var(--white); }
.btn-sm { min-height: 44px; padding: 8px 18px; font-size: 15px; }
.btn-soon {
  background: transparent; color: var(--muted); border-color: var(--line); cursor: default;
}
.btn-soon:hover { transform: none; color: var(--muted); }
.on-dark .btn-soon { color: #A8B0C2; border-color: var(--ink-3); }
.badge {
  display: inline-block; font: 500 11.5px/1 var(--font-mono); letter-spacing: 0.04em; text-transform: uppercase;
  padding: 5px 8px; border-radius: 999px; background: var(--line-2); color: var(--ink-3);
}
.on-dark .badge { background: var(--ink-3); color: var(--white); }
.actions { display: flex; flex-wrap: wrap; gap: 12px; }
.actions .btn { flex: 1 1 240px; }

/* ---------- hero ---------- */
.hero { padding-block: clamp(36px, 7vw, 88px) clamp(56px, 9vw, 112px); }
.hero .wrap { display: grid; gap: clamp(40px, 6vw, 72px); align-items: center; }
.hero-copy { display: flex; flex-direction: column; gap: 24px; }

.chat {
  background: var(--white); border: 1px solid var(--line); border-radius: var(--radius-lg);
  padding: clamp(16px, 2.6vw, 24px); display: flex; flex-direction: column; gap: 12px;
  box-shadow: 0 30px 70px -40px rgba(15, 26, 51, 0.45), 0 2px 6px rgba(15, 26, 51, 0.04);
  max-width: 480px; width: 100%; justify-self: center;
}
.chat-head { display: flex; align-items: center; gap: 12px; padding-bottom: 12px; border-bottom: 1px solid var(--line-2); }
.chat-head img { width: 40px; height: 40px; border-radius: 50%; }
.chat-head strong { font-size: 16px; line-height: 1.2; }
.chat-head .status { display: block; font: 400 12.5px/1.3 var(--font-body); color: var(--muted); }
.chat-head .tag { margin-left: auto; font: 400 11.5px/1.3 var(--font-mono); color: var(--muted); text-align: right; }
.msg { max-width: 88%; padding: 11px 15px; font-size: 15px; line-height: 1.5; }
.msg-me { align-self: flex-end; background: var(--bubble); border-radius: 18px 18px 6px 18px; }
.msg-bot { align-self: flex-start; background: var(--paper); border-radius: 18px 18px 18px 6px; display: flex; flex-direction: column; gap: 10px; }
.file { display: flex; align-items: center; gap: 10px; }
.file svg { flex-shrink: 0; }
.cite {
  align-self: flex-start; display: inline-flex; align-items: center; gap: 8px;
  font: 400 12px/1.4 var(--font-mono); color: var(--signal-text); background: var(--signal-soft);
  border-radius: 8px; padding: 6px 10px;
}
.cite::before { content: ""; width: 8px; height: 8px; border-radius: 4px; background: var(--signal); flex-shrink: 0; }
.quote { border-left: 3px solid var(--signal); padding-left: 10px; color: var(--ink-3); font-size: 14.5px; }

.proof { list-style: none; margin: 4px 0 0; padding: 0; display: flex; flex-wrap: wrap; gap: 8px 20px; font-size: 14.5px; color: var(--ink-3); }
.proof li { position: relative; padding-left: 14px; }
.proof li::before { content: ""; position: absolute; left: 0; top: 0.62em; width: 6px; height: 6px; border-radius: 3px; background: var(--signal); }
.proof strong { color: var(--ink); font-weight: 600; }

/* ---------- seções ---------- */
.section { padding-block: clamp(64px, 10vw, 112px); }
.section-white { background: var(--white); border-block: 1px solid var(--line); }
.section-head { display: flex; flex-direction: column; gap: 16px; max-width: 760px; margin-bottom: clamp(36px, 6vw, 56px); }

.steps { display: grid; gap: clamp(28px, 4vw, 32px); counter-reset: step; margin: 0; padding: 0; list-style: none; }
.step { border-top: 2px solid var(--ink); padding-top: 22px; display: flex; flex-direction: column; gap: 10px; }
.step .num { font: 500 14px/1 var(--font-mono); color: var(--signal-text); }
.step p { color: var(--ink-3); }

.cards { display: grid; gap: 16px; }
.card {
  background: var(--white); border: 1px solid var(--line); border-radius: var(--radius-lg);
  padding: clamp(24px, 3.4vw, 32px); display: flex; flex-direction: column; gap: 12px;
}
.card-dark { background: var(--ink); border-color: var(--ink); color: var(--white); }
.card-dark p { color: #C9D0DE; }
.card p { color: var(--ink-3); }
.card .mark { width: 14px; height: 14px; border-radius: 7px; background: var(--signal); }

.uses { display: grid; gap: 1px; background: var(--line); border: 1px solid var(--line); border-radius: var(--radius-lg); overflow: hidden; }
.use { background: var(--white); padding: clamp(24px, 3.4vw, 32px); display: flex; flex-direction: column; gap: 10px; }
.use p { color: var(--ink-3); }

.privacy { display: grid; gap: clamp(28px, 5vw, 56px); border-top: 2px solid var(--ink); padding-top: 32px; }
.facts { display: grid; gap: 24px; }
.fact { display: flex; flex-direction: column; gap: 6px; }
.fact span { color: var(--ink-3); }

.faq { max-width: 820px; }
.faq details { border-bottom: 1px solid var(--line); }
.faq details:first-of-type { border-top: 1px solid var(--line); }
.faq summary {
  list-style: none; cursor: pointer; display: flex; justify-content: space-between; align-items: center; gap: 16px;
  min-height: 64px; padding-block: 18px; font: 600 clamp(17px, 2.2vw, 20px)/1.35 var(--font-display);
}
.faq summary::-webkit-details-marker { display: none; }
.faq summary::after {
  content: ""; flex-shrink: 0; width: 22px; height: 22px;
  background: linear-gradient(var(--signal-text), var(--signal-text)) center / 14px 2.2px no-repeat,
              linear-gradient(var(--signal-text), var(--signal-text)) center / 2.2px 14px no-repeat;
  transition: transform 200ms var(--ease);
}
.faq details[open] summary::after { transform: rotate(45deg); }
.faq details p { padding-bottom: 22px; color: var(--ink-3); max-width: 40em; }

/* ---------- chamada final e rodapé ---------- */
.final { background: var(--ink); color: var(--white); }
.final .wrap { display: grid; gap: 48px; align-items: center; padding-block: clamp(64px, 10vw, 120px); }
.final p, .final-lead { color: #C9D0DE; }
.final-copy { display: flex; flex-direction: column; gap: 20px; }
.qr { display: none; flex-direction: column; align-items: center; gap: 10px; }
.qr img { width: 172px; height: 172px; border-radius: 20px; background: var(--white); padding: 10px; }
.qr span { font: 400 13px/1 var(--font-mono); color: #A8B0C2; }
.footer { border-top: 1px solid var(--ink-3); }
.footer .wrap {
  display: flex; flex-wrap: wrap; gap: 16px; justify-content: space-between; align-items: center;
  padding-block: 24px calc(32px + env(safe-area-inset-bottom, 0px)); font-size: 14px; color: #A8B0C2;
}
.footer nav { display: flex; flex-wrap: wrap; gap: 20px; align-items: center; }
.footer a { color: #C9D0DE; }
.footer .powered { font: 400 13px/1 var(--font-mono); letter-spacing: 0.02em; }
.footer .powered strong { color: var(--white); font-weight: 500; }
.footer-brand { display: flex; align-items: center; gap: 10px; }

/* barra fixa no celular: o botão principal sempre à mão */
.mobile-cta {
  position: fixed; inset-inline: 0; bottom: 0; z-index: 30;
  padding: 12px var(--gutter) calc(12px + env(safe-area-inset-bottom, 0px));
  background: color-mix(in srgb, var(--paper) 92%, transparent);
  backdrop-filter: blur(12px); -webkit-backdrop-filter: blur(12px);
  border-top: 1px solid var(--line);
  transform: translateY(110%); transition: transform 240ms var(--ease);
}
.mobile-cta.show { transform: none; }
.mobile-cta .btn { width: 100%; }
.has-mobile-cta .footer .wrap { padding-bottom: calc(96px + env(safe-area-inset-bottom, 0px)); }

.only-desktop { display: none; }
@media (max-width: 420px) {
  .header .btn-sm { min-height: 40px; padding: 6px 14px; font-size: 14px; }
  .brand span { font-size: 22px; }
}

/* ---------- telas maiores ---------- */
@media (min-width: 720px) {
  .nav { display: flex; }
  .steps { grid-template-columns: repeat(3, 1fr); }
  .cards { grid-template-columns: repeat(2, 1fr); }
  .uses { grid-template-columns: repeat(2, 1fr); }
  .facts { grid-template-columns: repeat(3, 1fr); }
  .actions .btn { flex: 0 0 auto; }
  .mobile-cta { display: none; }
  .has-mobile-cta .footer .wrap { padding-bottom: calc(32px + env(safe-area-inset-bottom, 0px)); }
}
@media (min-width: 960px) {
  .hero .wrap { grid-template-columns: 1.1fr 0.9fr; }
  .chat { justify-self: end; }
  .privacy { grid-template-columns: 1fr 2fr; }
  .cards-4 { grid-template-columns: repeat(4, 1fr); }
  .uses { grid-template-columns: repeat(4, 1fr); }
  .final .wrap { grid-template-columns: 1fr auto; }
  .qr { display: flex; }
  .only-desktop { display: inline; }
  .only-mobile { display: none; }
  .qr-row { display: flex; gap: 20px; }
}

@media (prefers-reduced-motion: reduce) {
  html { scroll-behavior: auto; }
  *, *::before, *::after { transition: none !important; }
}
