/* Landing StormZ — estilo Apple sobre o tema escuro do app (spec 2026-10-27). */
:root {
  --bg: #020304;
  --bg-alt: #07090c;
  --surface: #0a0c10;
  --surface-2: #0d1117;
  --text: #f5f5f7;
  --text-2: #a1a1aa;
  --text-3: #6b7280;
  --line: rgba(255, 255, 255, 0.08);
  --line-2: rgba(255, 255, 255, 0.14);
  --accent: #ef4036;
  --accent-hover: #ff5148;
  --accent-glow: rgba(239, 64, 54, 0.28);
  --cold: rgba(120, 160, 190, 0.16);
  --ok: #34d399;
  --radius: 28px;
  --radius-sm: 14px;
  --ease: cubic-bezier(0.22, 1, 0.36, 1);
  --nav-h: 56px;
}

*, *::before, *::after { box-sizing: border-box; }
html { scroll-behavior: smooth; scroll-padding-top: calc(var(--nav-h) + 16px); -webkit-text-size-adjust: 100%; }
body {
  margin: 0;
  background: var(--bg);
  color: var(--text);
  font-family: 'Inter', -apple-system, BlinkMacSystemFont, 'SF Pro Display', 'Segoe UI', system-ui, sans-serif;
  font-size: 17px;
  line-height: 1.5;
  -webkit-font-smoothing: antialiased;
  overflow-x: hidden;
}
img, svg { display: block; max-width: 100%; }
a { color: inherit; text-decoration: none; }
ul, ol { margin: 0; padding: 0; list-style: none; }
h1, h2, h3, p, figure { margin: 0; }
:focus-visible { outline: 2px solid var(--accent); outline-offset: 3px; border-radius: 6px; }

.skip { position: absolute; left: -9999px; top: 8px; z-index: 100; background: var(--text); color: #000; padding: 8px 14px; border-radius: 10px; }
.skip:focus { left: 8px; }

.wrap { width: min(1120px, 100% - 32px); margin-inline: auto; }
.wrap--narrow { width: min(820px, 100% - 32px); }

/* ---------- NAV ---------- */
.nav {
  position: fixed; inset: 0 0 auto 0; z-index: 50; height: var(--nav-h);
  background: rgba(2, 3, 4, 0.72);
  -webkit-backdrop-filter: saturate(180%) blur(20px);
  backdrop-filter: saturate(180%) blur(20px);
  border-bottom: 1px solid transparent;
  transition: border-color 0.3s;
}
.nav.is-scrolled { border-bottom-color: var(--line); }
.nav__inner { height: 100%; width: min(1120px, 100% - 32px); margin-inline: auto; display: flex; align-items: center; gap: 24px; }
.nav__brand { display: flex; align-items: center; gap: 10px; font-weight: 700; font-size: 17px; letter-spacing: -0.02em; }
.nav__brand img { border-radius: 8px; }
.nav__links { display: flex; gap: 28px; margin-left: auto; font-size: 13px; color: var(--text-2); }
.nav__links a { transition: color 0.2s; }
.nav__links a:hover { color: var(--text); }
.nav__actions { display: flex; align-items: center; gap: 14px; }
.nav__login { font-size: 13px; color: var(--text-2); transition: color 0.2s; }
.nav__login:hover { color: var(--text); }

.lang { display: inline-flex; padding: 2px; border-radius: 999px; border: 1px solid var(--line-2); }
.lang__btn {
  appearance: none; border: 0; background: transparent; color: var(--text-2);
  font-family: inherit; font-weight: 600; font-size: 11px; line-height: 1; letter-spacing: 0.04em; padding: 6px 10px; border-radius: 999px; cursor: pointer; transition: all 0.2s;
}
.lang__btn[aria-pressed='true'] { background: var(--text); color: #000; }

/* ---------- BOTÕES ---------- */
.btn {
  display: inline-flex; align-items: center; justify-content: center; gap: 8px;
  background: var(--accent); color: #fff; font-weight: 600; font-size: 15px;
  padding: 12px 22px; border-radius: 999px; border: 0; cursor: pointer;
  box-shadow: 0 8px 30px var(--accent-glow);
  transition: transform 0.25s var(--ease), background 0.2s, box-shadow 0.25s;
}
.btn:hover { background: var(--accent-hover); transform: translateY(-1px); box-shadow: 0 12px 40px var(--accent-glow); }
.btn:active { transform: scale(0.97); }
.btn--sm { font-size: 13px; padding: 8px 16px; box-shadow: none; }
.btn--lg { font-size: 17px; padding: 16px 30px; }
.btn--ghost { background: transparent; border: 1px solid var(--line-2); box-shadow: none; }
.btn--ghost:hover { background: rgba(255, 255, 255, 0.06); box-shadow: none; }
.link { font-size: 17px; color: var(--text); display: inline-flex; gap: 6px; align-items: center; opacity: 0.9; transition: opacity 0.2s, gap 0.2s; }
.link:hover { opacity: 1; gap: 10px; }

/* ---------- TIPOGRAFIA ---------- */
.eyebrow { font-size: 14px; font-weight: 600; letter-spacing: 0.04em; color: var(--accent); text-transform: uppercase; margin-bottom: 18px; }
.display {
  font-size: clamp(2.75rem, 9vw, 6.75rem); line-height: 1.02; letter-spacing: -0.045em; font-weight: 800;
  background: linear-gradient(180deg, #fff 30%, #9aa0aa 100%); -webkit-background-clip: text; background-clip: text; color: transparent;
  text-wrap: balance;
}
.display--md { font-size: clamp(2.25rem, 6.5vw, 4.5rem); }
.h2 { font-size: clamp(2rem, 5vw, 3.5rem); line-height: 1.07; letter-spacing: -0.035em; font-weight: 700; text-wrap: balance; }
.lead { font-size: clamp(1.1rem, 2.2vw, 1.4rem); line-height: 1.45; color: var(--text-2); max-width: 40rem; margin-inline: auto; text-wrap: pretty; }
.lead--dim { color: var(--text-3); }
.fineprint { font-size: 13px; color: var(--text-3); }
.fineprint--center { text-align: center; margin-top: 28px; }

/* ---------- HERO ---------- */
.hero { position: relative; padding: calc(var(--nav-h) + 72px) 0 40px; text-align: center; overflow: hidden; }
.hero__glow {
  position: absolute; inset: -20% -10% auto -10%; height: 90%;
  background: radial-gradient(60% 55% at 50% 0%, var(--cold), transparent 70%), radial-gradient(40% 40% at 50% 12%, var(--accent-glow), transparent 70%);
  pointer-events: none;
}
.hero__copy { position: relative; }
.hero__cta { margin-top: 36px; display: flex; flex-wrap: wrap; gap: 14px 28px; justify-content: center; align-items: center; }
.hero .lead { margin-top: 26px; }
.hero .fineprint { margin-top: 22px; }

/* Mockup do painel */
.device {
  position: relative; margin: 72px auto 0; max-width: 960px;
  border-radius: 24px; border: 1px solid var(--line-2);
  background: linear-gradient(180deg, rgba(255, 255, 255, 0.07), rgba(255, 255, 255, 0.02));
  box-shadow: 0 60px 120px rgba(0, 0, 0, 0.6), 0 0 0 1px rgba(255, 255, 255, 0.03) inset, 0 -40px 120px -40px var(--accent-glow);
  -webkit-backdrop-filter: blur(24px); backdrop-filter: blur(24px);
  transform: perspective(1600px) rotateX(6deg); transform-origin: 50% 0;
  transition: transform 0.9s var(--ease);
}
.device.is-in { transform: perspective(1600px) rotateX(0deg); }
.device__bar { display: flex; align-items: center; gap: 7px; padding: 14px 18px; border-bottom: 1px solid var(--line); }
.device__bar i { width: 11px; height: 11px; border-radius: 50%; background: rgba(255, 255, 255, 0.16); }
.device__bar span { margin-left: 12px; font-size: 12px; color: var(--text-3); font-weight: 600; letter-spacing: 0.04em; }
.device__body { display: grid; grid-template-columns: 1.5fr 1fr; grid-template-areas: 'signal goal' 'signal bot'; gap: 14px; padding: 18px; text-align: left; }
.device__cap { padding: 0 18px 14px; font-size: 11px; color: var(--text-3); text-align: right; }
.panel { background: rgba(255, 255, 255, 0.04); border: 1px solid var(--line); border-radius: 18px; padding: 20px; }
.panel--signal { grid-area: signal; display: flex; flex-direction: column; justify-content: center; min-height: 240px; position: relative; overflow: hidden; }
.panel--signal::after { content: ''; position: absolute; inset: auto -20% -50% -20%; height: 80%; background: radial-gradient(closest-side, var(--accent-glow), transparent); pointer-events: none; }
.panel--goal { grid-area: goal; }
.panel--bot { grid-area: bot; position: relative; }
.panel__label { font-size: 12px; color: var(--text-3); font-weight: 600; letter-spacing: 0.06em; text-transform: uppercase; }
.panel__big { font-size: clamp(1.6rem, 4vw, 2.4rem); font-weight: 800; letter-spacing: -0.03em; line-height: 1.1; margin-top: 10px; }
.panel__mid { font-size: 15px; font-weight: 600; margin-top: 8px; padding-right: 54px; }
.panel__sub { font-size: 13px; color: var(--text-2); margin-top: 8px; }
.chip { display: inline-flex; align-items: center; gap: 7px; font-size: 11px; font-weight: 700; letter-spacing: 0.06em; text-transform: uppercase; color: var(--ok); margin-bottom: 14px; }
.chip b { width: 8px; height: 8px; border-radius: 50%; background: var(--ok); box-shadow: 0 0 0 0 rgba(52, 211, 153, 0.6); animation: pulse 2s infinite; }
@keyframes pulse { 70% { box-shadow: 0 0 0 9px rgba(52, 211, 153, 0); } 100% { box-shadow: 0 0 0 0 rgba(52, 211, 153, 0); } }
.beads { display: flex; gap: 7px; margin-top: 22px; position: relative; z-index: 1; flex-wrap: wrap; }
.b { width: 22px; height: 22px; border-radius: 50%; display: block; }
.b--p { background: #3b82f6; }
.b--b { background: var(--accent); }
.b--t { background: #22c55e; }
.ring { width: 96px; height: 96px; margin: 12px 0 6px; }
.ring svg { transform: rotate(-90deg); }
.ring circle { fill: none; stroke-width: 10; }
.ring__bg { stroke: rgba(255, 255, 255, 0.09); }
.ring__fg { stroke: var(--accent); stroke-linecap: round; stroke-dasharray: 314; stroke-dashoffset: 314; transition: stroke-dashoffset 1.6s var(--ease) 0.4s; }
.device.is-in .ring__fg { stroke-dashoffset: 94; }
.toggle { position: absolute; right: 20px; bottom: 20px; width: 44px; height: 26px; border-radius: 999px; background: var(--ok); }
.toggle i { position: absolute; top: 3px; right: 3px; width: 20px; height: 20px; border-radius: 50%; background: #fff; }

/* ---------- STATEMENT ---------- */
.statement { padding: clamp(96px, 16vw, 200px) 0; text-align: center; }
.statement__text { font-size: clamp(2rem, 6vw, 4.25rem); line-height: 1.08; letter-spacing: -0.04em; font-weight: 700; color: var(--text-3); text-wrap: balance; }
.statement__text em { display: block; font-style: normal; color: var(--text); margin-top: 0.1em; }
.statement .lead { margin-top: 36px; }

/* ---------- SEÇÕES ---------- */
.section { padding: clamp(72px, 11vw, 140px) 0; }
.section--alt { background: var(--bg-alt); border-block: 1px solid var(--line); }
.section__head { text-align: center; margin-bottom: clamp(40px, 7vw, 80px); }
.section__head .lead { margin-top: 20px; }

/* Bento */
.bento { display: grid; grid-template-columns: repeat(4, 1fr); gap: 16px; }
.card {
  background: linear-gradient(180deg, rgba(255, 255, 255, 0.05), rgba(255, 255, 255, 0.02));
  border: 1px solid var(--line); border-radius: var(--radius); padding: 30px;
  transition: transform 0.4s var(--ease), border-color 0.3s, background 0.3s;
  min-height: 220px; display: flex; flex-direction: column;
}
.card:hover { transform: translateY(-4px); border-color: var(--line-2); }
.card--xl { grid-column: span 2; min-height: 300px; justify-content: flex-end; }
.card--wide { grid-column: span 2; }
.card--accent { background: radial-gradient(120% 100% at 100% 0%, var(--accent-glow), transparent 60%), linear-gradient(180deg, rgba(255, 255, 255, 0.05), rgba(255, 255, 255, 0.02)); }
.card h3 { font-size: clamp(1.25rem, 2.2vw, 1.6rem); letter-spacing: -0.025em; font-weight: 700; margin-top: auto; }
.card--xl h3 { font-size: clamp(1.6rem, 3vw, 2.2rem); }
.card p { margin-top: 10px; color: var(--text-2); font-size: 15px; line-height: 1.5; max-width: 34ch; }
.card--xl p, .card--wide p { max-width: 44ch; font-size: 16px; }
.ico { width: 34px; height: 34px; fill: none; stroke: var(--text); stroke-width: 1.6; stroke-linecap: round; stroke-linejoin: round; margin-bottom: 36px; }
.card--xl .ico { margin-bottom: auto; width: 40px; height: 40px; stroke: var(--accent); }
.ico--lg { width: 44px; height: 44px; stroke: var(--accent); margin-bottom: 24px; }

/* Passos */
.steps { display: grid; grid-template-columns: repeat(3, 1fr); gap: 16px; counter-reset: s; }
.step { padding: 32px 28px; border-radius: var(--radius); border: 1px solid var(--line); background: var(--surface); }
.step__n { display: grid; place-items: center; width: 44px; height: 44px; border-radius: 50%; background: var(--text); color: #000; font-weight: 800; font-size: 18px; margin-bottom: 28px; }
.step h3 { font-size: 1.4rem; letter-spacing: -0.025em; font-weight: 700; }
.step p { margin-top: 10px; color: var(--text-2); font-size: 15px; }

/* Controle */
.control { display: grid; grid-template-columns: 1fr 1.1fr; gap: clamp(32px, 6vw, 80px); align-items: center; padding: clamp(32px, 6vw, 72px); border-radius: 36px; border: 1px solid var(--line); background: radial-gradient(90% 90% at 0% 0%, var(--accent-glow), transparent 55%), var(--surface); }
.control .lead { margin: 18px 0 0; }
.checks { display: grid; gap: 14px; }
.checks li { display: flex; gap: 14px; align-items: flex-start; padding: 16px 18px; border-radius: var(--radius-sm); background: rgba(255, 255, 255, 0.04); border: 1px solid var(--line); font-size: 15px; color: var(--text); }
.checks svg { flex: none; width: 20px; height: 20px; margin-top: 2px; fill: none; stroke: var(--ok); stroke-width: 2.4; stroke-linecap: round; stroke-linejoin: round; }

/* Planos */
.plans { display: grid; grid-template-columns: repeat(3, 1fr); gap: 16px; align-items: stretch; }
.plans__loading { grid-column: 1 / -1; text-align: center; color: var(--text-3); padding: 40px 0; }
.plan { position: relative; display: flex; flex-direction: column; padding: 34px 30px; border-radius: var(--radius); border: 1px solid var(--line); background: var(--surface); }
.plan--hl { border-color: rgba(239, 64, 54, 0.55); background: radial-gradient(120% 70% at 50% 0%, var(--accent-glow), transparent 65%), var(--surface-2); box-shadow: 0 30px 80px -30px var(--accent-glow); }
.plan__badge { position: absolute; top: -13px; left: 50%; transform: translateX(-50%); background: var(--accent); color: #fff; font-size: 11px; font-weight: 700; letter-spacing: 0.06em; text-transform: uppercase; padding: 6px 14px; border-radius: 999px; white-space: nowrap; }
.plan__name { font-size: 1.3rem; font-weight: 700; letter-spacing: -0.02em; }
.plan__tag { color: var(--text-2); font-size: 14px; margin-top: 6px; min-height: 42px; }
.plan__price { margin: 22px 0 6px; display: flex; align-items: baseline; gap: 6px; }
.plan__amount { font-size: clamp(2.2rem, 4vw, 2.9rem); font-weight: 800; letter-spacing: -0.04em; line-height: 1; }
.plan__per { color: var(--text-3); font-size: 14px; }
.plan__list { margin: 24px 0 30px; display: grid; gap: 11px; font-size: 14.5px; color: var(--text-2); }
.plan__list li { display: flex; gap: 10px; align-items: flex-start; }
.plan__list svg { flex: none; width: 17px; height: 17px; margin-top: 3px; fill: none; stroke: var(--ok); stroke-width: 2.4; stroke-linecap: round; stroke-linejoin: round; }
.plan__list li.is-off { color: var(--text-3); text-decoration: line-through; text-decoration-color: rgba(255, 255, 255, 0.2); }
.plan__list li.is-off svg { stroke: var(--text-3); }
.plan .btn { margin-top: auto; width: 100%; }

/* FAQ */
.faq { border-top: 1px solid var(--line); }
.faq details { border-bottom: 1px solid var(--line); }
.faq summary { list-style: none; cursor: pointer; padding: 24px 40px 24px 0; font-size: clamp(1.05rem, 2vw, 1.3rem); font-weight: 600; letter-spacing: -0.015em; position: relative; }
.faq summary::-webkit-details-marker { display: none; }
.faq summary::after { content: '+'; position: absolute; right: 4px; top: 50%; transform: translateY(-50%); font-size: 28px; font-weight: 300; color: var(--text-2); transition: transform 0.3s var(--ease); }
.faq details[open] summary::after { transform: translateY(-50%) rotate(45deg); }
.faq details p { padding: 0 40px 26px 0; color: var(--text-2); max-width: 62ch; animation: fade 0.4s var(--ease); }
@keyframes fade { from { opacity: 0; transform: translateY(-6px); } }

/* CTA final */
.final { position: relative; padding: clamp(96px, 14vw, 180px) 0; text-align: center; overflow: hidden; border-top: 1px solid var(--line); }
.final__glow { position: absolute; inset: auto -10% -40% -10%; height: 90%; background: radial-gradient(50% 60% at 50% 100%, var(--accent-glow), transparent 70%); pointer-events: none; }
.final .wrap { position: relative; }
.final .lead { margin-top: 24px; }
.final .btn { margin-top: 40px; }

/* Rodapé */
.footer { border-top: 1px solid var(--line); padding: 48px 0 56px; background: var(--bg-alt); }
.footer__inner { display: grid; grid-template-columns: 1fr auto; gap: 28px 40px; align-items: start; }
.footer__brand { display: flex; align-items: center; gap: 10px; font-weight: 700; }
.footer__brand img { border-radius: 6px; }
.footer__links { display: flex; gap: 24px; font-size: 13px; color: var(--text-2); justify-self: end; }
.footer__links a:hover { color: var(--text); }
.footer__legal { grid-column: 1 / -1; display: flex; gap: 14px; align-items: flex-start; font-size: 12.5px; color: var(--text-3); max-width: 78ch; line-height: 1.55; }
.footer__legal strong { flex: none; border: 1.5px solid var(--text-3); border-radius: 8px; padding: 2px 8px; color: var(--text-2); font-size: 13px; }
.footer__copy { grid-column: 1 / -1; font-size: 12px; color: var(--text-3); }

/* ---------- REVELAÇÃO NO SCROLL ---------- */
.js .reveal { opacity: 0; transform: translateY(28px); transition: opacity 0.9s var(--ease), transform 0.9s var(--ease); }
.js .reveal.is-in { opacity: 1; transform: none; }
.js .device.reveal { transform: perspective(1600px) rotateX(6deg) translateY(28px); }
.js .device.reveal.is-in { transform: perspective(1600px) rotateX(0deg); }
.bento .reveal:nth-child(2n) { transition-delay: 0.08s; }
.bento .reveal:nth-child(3n) { transition-delay: 0.14s; }

/* ---------- RESPONSIVO ---------- */
@media (max-width: 960px) {
  .nav__links { display: none; }
  .nav__actions { margin-left: auto; }
  .bento { grid-template-columns: repeat(2, 1fr); }
  .card--xl, .card--wide { grid-column: span 2; }
  .steps { grid-template-columns: 1fr; }
  .control { grid-template-columns: 1fr; }
  .plans { grid-template-columns: 1fr; max-width: 480px; margin-inline: auto; }
  .plan--hl { order: -1; }
}
@media (max-width: 640px) {
  body { font-size: 16px; }
  .nav__login { display: none; }
  .hero { padding-top: calc(var(--nav-h) + 40px); }
  .device { margin-top: 48px; border-radius: 18px; }
  .device__body { grid-template-columns: 1fr; grid-template-areas: 'signal' 'goal' 'bot'; padding: 12px; }
  .panel--signal { min-height: 200px; }
  .bento { grid-template-columns: 1fr; }
  .card--xl, .card--wide { grid-column: auto; }
  .card, .card--xl { min-height: 190px; padding: 24px; }
  .footer__inner { grid-template-columns: 1fr; }
  .footer__links { justify-self: start; }
  .hero__cta .btn { width: 100%; }
}

@media (prefers-reduced-motion: reduce) {
  html { scroll-behavior: auto; }
  *, *::before, *::after { animation: none !important; transition: none !important; }
  .js .reveal, .js .device.reveal { opacity: 1; transform: none; }
  .device { transform: none; }
  .ring__fg { stroke-dashoffset: 94; }
}
