/* Sirius Jus — landing page
   Estrutura, formas e movimento do sistema "Vellum" (grade, pílulas de 99px,
   superfícies elevadas, moldura em gradiente, ritmo de 6px), sobre a paleta
   escura da marca. */

:root {
  color-scheme: dark;

  /* Marca */
  --bg: #070917;
  --bg-2: #0B0F2A;
  --surface: #0E1230;
  --surface-2: #121739;
  --accent: #5BC0EB;
  --accent-2: #7DD3FC;

  /* Vellum */
  --primary: #C3C7E8;
  --secondary: #6F739A;
  --tertiary: #8B8FB5;
  --neutral: #EEF0FF;
  --on-primary: #0A0720;

  --text: var(--neutral);
  --text-2: #A9ADCF;
  --line: rgba(238, 240, 255, 0.09);

  /* Ritmo (base 6px) */
  --s1: 6px;
  --s2: 12px;
  --s3: 18px;
  --s4: 24px;
  --s6: 36px;
  --s8: 48px;
  --s12: 72px;
  --s16: 96px;
  --section-pad: clamp(72px, 10vw, 132px);
  --gutter: clamp(16px, 4vw, 40px);
  --maxw: 1200px;

  /* Formas */
  --r-sm: 7px;
  --r-md: 14px;
  --r-lg: 28px;
  --r-pill: 99px;

  /* Profundidade */
  --shadow-elev:
    inset 0 1px 0 rgba(255, 255, 255, 0.06),
    0 2px 6px rgba(0, 0, 0, 0.5),
    0 20px 46px -18px rgba(91, 192, 235, 0.35);
  --ring: inset 0 0 0 1px rgba(238, 240, 255, 0.11);
  --shell: linear-gradient(180deg, rgba(255, 255, 255, 0.55), rgba(222, 214, 255, 0.22) 58%, rgba(125, 211, 252, 0.6));

  /* Movimento */
  --ease: cubic-bezier(0.16, 1, 0.3, 1);
  --t-fast: 300ms;
  --t-med: 450ms;
  --t-slow: 1100ms;
}

*, *::before, *::after { box-sizing: border-box; }
html { scroll-behavior: smooth; scroll-padding-top: 84px; -webkit-text-size-adjust: 100%; }
body {
  margin: 0;
  background: var(--bg);
  color: var(--text);
  font-family: "Inter", ui-sans-serif, system-ui, -apple-system, "Segoe UI", sans-serif;
  font-size: 16px;
  line-height: 1.7;
  -webkit-font-smoothing: antialiased;
  overflow-x: hidden;
}
img, svg { display: block; max-width: 100%; }
a { color: inherit; }
h1, h2, h3, p { margin: 0; }
:focus-visible { outline: 2px solid var(--accent-2); outline-offset: 3px; border-radius: 4px; }

.skip {
  position: absolute; left: var(--s2); top: -60px; z-index: 100;
  padding: var(--s1) var(--s3); background: var(--primary); color: var(--on-primary);
  border-radius: var(--r-pill); font-weight: 650; text-decoration: none;
}
.skip:focus { top: var(--s2); }

/* ---------- Fundo ---------- */
.backdrop { position: fixed; inset: 0; z-index: -1; pointer-events: none; }
.sky {
  position: absolute; inset: 0;
  background:
    radial-gradient(1200px 700px at 50% -10%, #16204A 0%, transparent 60%),
    radial-gradient(900px 600px at 85% 110%, rgba(91, 192, 235, 0.10), transparent 60%),
    linear-gradient(180deg, var(--bg-2), var(--bg) 60%);
}
/* estrelas estáticas do fallback (sem WebGL) */
.sky::after {
  content: ""; position: absolute; inset: 0;
  background-image:
    radial-gradient(1.4px 1.4px at 12% 18%, #BDEBFF, transparent),
    radial-gradient(1.2px 1.2px at 38% 9%, #BDEBFF, transparent),
    radial-gradient(1.6px 1.6px at 62% 14%, #FFFFFF, transparent),
    radial-gradient(1.2px 1.2px at 88% 7%, #BDEBFF, transparent),
    radial-gradient(1.4px 1.4px at 7% 42%, #BDEBFF, transparent),
    radial-gradient(1.2px 1.2px at 92% 34%, #FFFFFF, transparent),
    radial-gradient(1.4px 1.4px at 20% 48%, #BDEBFF, transparent),
    radial-gradient(1.2px 1.2px at 74% 26%, #BDEBFF, transparent);
  opacity: 0.9;
}
#field { position: absolute; inset: 0; width: 100%; height: 100%; opacity: 0; transition: opacity var(--t-slow) var(--ease); }
#field.is-on { opacity: 1; }
.veil { position: absolute; inset: 0; background: radial-gradient(120% 80% at 50% 30%, transparent 40%, rgba(7, 9, 23, 0.7) 100%); }
.grain {
  position: absolute; inset: 0; opacity: 0.06; mix-blend-mode: overlay;
  background-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' width='160' height='160'%3E%3Cfilter id='n'%3E%3CfeTurbulence type='fractalNoise' baseFrequency='.9' numOctaves='2' stitchTiles='stitch'/%3E%3C/filter%3E%3Crect width='100%25' height='100%25' filter='url(%23n)'/%3E%3C/svg%3E");
}

/* ---------- Tipografia ---------- */
.display {
  font-size: clamp(40px, 7.2vw, 84px);
  font-weight: 640;
  line-height: 0.98;
  letter-spacing: -0.05em;
  text-wrap: balance;
  padding-bottom: 0.1em; /* background-clip:text corta descendentes com entrelinha < 1 */
  background: linear-gradient(180deg, #FFFFFF 20%, var(--primary) 100%);
  -webkit-background-clip: text; background-clip: text; color: transparent;
}
.display--md { font-size: clamp(34px, 5.4vw, 64px); }
.title {
  font-size: clamp(30px, 4.2vw, 50px);
  font-weight: 640;
  line-height: 1.05;
  letter-spacing: -0.04em;
  text-wrap: balance;
  color: var(--text);
}
.lead { font-size: clamp(16px, 1.6vw, 18.5px); color: var(--text-2); max-width: 640px; text-wrap: pretty; }
.sub { font-size: 16px; color: var(--text-2); max-width: 620px; text-wrap: pretty; }
.eyebrow {
  font-size: 13.5px; font-weight: 660; letter-spacing: 0.22em; text-transform: uppercase;
  color: var(--tertiary);
}
.pill {
  display: inline-flex; align-items: center; gap: var(--s1);
  padding: var(--s1) var(--s3);
  font-size: 13.5px; font-weight: 660; letter-spacing: 0.02em;
  color: var(--primary);
  border-radius: var(--r-pill);
  background: rgba(195, 199, 232, 0.06);
  box-shadow: var(--ring);
}
.pill::before { content: ""; width: 6px; height: 6px; border-radius: 50%; background: var(--accent); box-shadow: 0 0 10px var(--accent); }

/* ---------- Botões ---------- */
.btn {
  display: inline-flex; align-items: center; justify-content: center; gap: 10px;
  padding: 16px 26px;
  font: inherit; font-size: 15px; font-weight: 660; letter-spacing: 0.02em; line-height: 1;
  text-decoration: none; white-space: nowrap;
  border: 0; border-radius: var(--r-pill); cursor: pointer;
  transition: transform var(--t-fast) var(--ease), box-shadow var(--t-fast) var(--ease), background-color var(--t-fast) ease, color var(--t-fast) ease;
}
.btn--sm { padding: 12px 20px; font-size: 14px; }
.btn--primary {
  color: var(--on-primary);
  background: linear-gradient(180deg, #E3E6FF, var(--primary));
  box-shadow: inset 0 1px 0 #FFFFFF, 0 2px 6px rgba(0, 0, 0, 0.5), 0 20px 46px -18px rgba(185, 168, 255, 0.8);
}
.btn--primary:hover { transform: translateY(-2px); box-shadow: inset 0 1px 0 #FFFFFF, 0 4px 10px rgba(0, 0, 0, 0.5), 0 26px 50px -16px rgba(125, 211, 252, 0.75); }
.btn--ghost { color: var(--text); background: rgba(238, 240, 255, 0.04); box-shadow: var(--ring); }
.btn--ghost:hover { background: rgba(238, 240, 255, 0.09); transform: translateY(-2px); }
.btn--link { padding: 6px; color: var(--primary); border-radius: 0; background: none; }
.btn--link:hover { color: #FFFFFF; }
.ico { width: 18px; height: 18px; fill: none; stroke: currentColor; stroke-width: 1.8; stroke-linejoin: round; }

/* ---------- Navegação ---------- */
.nav {
  position: fixed; top: 0; left: 0; right: 0; z-index: 50;
  padding: var(--s2) var(--gutter);
  transition: background-color var(--t-med) ease, box-shadow var(--t-med) ease, backdrop-filter var(--t-med) ease;
}
.nav.is-scrolled {
  background: rgba(7, 9, 23, 0.72);
  -webkit-backdrop-filter: blur(14px) saturate(140%); backdrop-filter: blur(14px) saturate(140%);
  box-shadow: 0 1px 0 var(--line);
}
.nav__inner { max-width: var(--maxw); margin: 0 auto; display: flex; align-items: center; gap: var(--s4); }
.brand { display: inline-flex; align-items: center; gap: 10px; text-decoration: none; }
.brand__star { width: 26px; height: 26px; filter: drop-shadow(0 0 8px rgba(125, 211, 252, 0.8)); }
.brand__word { font-size: 21px; font-weight: 700; letter-spacing: -0.03em; color: #FFFFFF; }
.brand__word span { color: var(--accent); }
.nav__links { display: flex; gap: var(--s4); margin-left: auto; }
.nav__links a { font-size: 14.5px; font-weight: 500; color: var(--text-2); text-decoration: none; transition: color var(--t-fast) ease; }
.nav__links a:hover { color: #FFFFFF; }
.nav__actions { display: flex; align-items: center; gap: var(--s2); }
.nav__login--mobile { display: none; }
.nav__toggle { display: none; }

/* ---------- Seções ---------- */
.hero {
  position: relative;
  min-height: 100svh;
  display: flex; flex-direction: column; align-items: center; justify-content: center;
  gap: var(--s4);
  padding: 132px var(--gutter) var(--s16);
  text-align: center;
}
.hero .display { max-width: 15ch; }
.hero .lead { margin-inline: auto; }
.hero__star { position: relative; width: clamp(88px, 11vw, 132px); aspect-ratio: 1; margin-bottom: var(--s2); }
.hero__star svg { position: relative; width: 100%; height: 100%; filter: drop-shadow(0 0 18px rgba(125, 211, 252, 0.9)) drop-shadow(0 0 48px rgba(91, 192, 235, 0.6)); animation: star-breathe 6s ease-in-out infinite; }
.hero__halo { position: absolute; inset: -120%; border-radius: 50%; background: radial-gradient(closest-side, rgba(91, 192, 235, 0.28), rgba(91, 192, 235, 0.06) 55%, transparent 75%); animation: halo 6s ease-in-out infinite; }
@keyframes star-breathe { 50% { transform: scale(1.06) rotate(2deg); } }
@keyframes halo { 50% { opacity: 0.65; transform: scale(0.92); } }
.hero__cta { display: flex; flex-wrap: wrap; justify-content: center; gap: var(--s2); margin-top: var(--s1); }
.hero__note { font-size: 13.5px; color: var(--secondary); letter-spacing: 0.02em; }

.strip { padding: 0 var(--gutter); }
.strip__grid {
  list-style: none; margin: 0 auto; padding: 0; max-width: var(--maxw);
  display: grid; grid-template-columns: repeat(4, 1fr);
  border-top: 1px solid var(--line); border-bottom: 1px solid var(--line);
}
.strip__grid li { padding: var(--s6) var(--s4); display: grid; gap: var(--s1); }
.strip__grid li + li { border-left: 1px solid var(--line); }
.strip__grid strong { font-size: clamp(22px, 2.4vw, 28px); font-weight: 640; letter-spacing: -0.04em; color: var(--accent-2); line-height: 1.1; }
.strip__grid span { font-size: 14.5px; color: var(--text-2); line-height: 1.55; }

.section { max-width: calc(var(--maxw) + 2 * var(--gutter)); margin: 0 auto; padding: var(--section-pad) var(--gutter) 0; }
.section--narrow { max-width: calc(820px + 2 * var(--gutter)); }
.section__head { display: grid; justify-items: center; gap: var(--s3); text-align: center; margin-bottom: var(--s12); }
.section__head .sub { margin-inline: auto; }
.section__head--left { justify-items: start; text-align: left; margin-bottom: 0; }
.section__head--left .sub { margin-inline: 0; }

/* Cartões elevados */
.features { display: grid; grid-template-columns: repeat(4, 1fr); gap: 16px; }
.card {
  position: relative;
  padding: var(--s4);
  display: grid; align-content: start; gap: var(--s2);
  border-radius: var(--r-md);
  background: linear-gradient(180deg, rgba(18, 23, 57, 0.85), rgba(14, 18, 48, 0.7));
  box-shadow: var(--ring), var(--shadow-elev);
  transition: transform var(--t-med) var(--ease), box-shadow var(--t-med) var(--ease);
}
.card:hover { transform: translateY(-4px); box-shadow: inset 0 0 0 1px rgba(125, 211, 252, 0.28), var(--shadow-elev); }
.card h3 { font-size: 17px; font-weight: 640; letter-spacing: -0.02em; color: #FFFFFF; }
.card p { font-size: 14.5px; line-height: 1.65; color: var(--text-2); }
.card__ico {
  width: 42px; height: 42px; display: grid; place-items: center; margin-bottom: var(--s1);
  border-radius: 12px;
  background: radial-gradient(circle at 30% 20%, rgba(125, 211, 252, 0.28), rgba(91, 192, 235, 0.06));
  box-shadow: inset 0 0 0 1px rgba(125, 211, 252, 0.25);
}
.card__ico svg { width: 22px; height: 22px; fill: none; stroke: var(--accent-2); stroke-width: 1.6; stroke-linecap: round; stroke-linejoin: round; }

/* Passos */
.steps { list-style: none; margin: 0; padding: 0; display: grid; grid-template-columns: repeat(3, 1fr); gap: 16px; counter-reset: s; position: relative; }
.step { position: relative; padding: var(--s6) var(--s4) var(--s4); border-top: 1px solid var(--line); display: grid; gap: var(--s2); }
.step::before {
  content: ""; position: absolute; top: -1px; left: 0; height: 1px; width: 0;
  background: linear-gradient(90deg, var(--accent-2), transparent);
  transition: width var(--t-slow) var(--ease) 200ms;
}
.step.is-in::before { width: 100%; }
.step__n { font-size: 13.5px; font-weight: 660; letter-spacing: 0.2em; color: var(--accent); }
.step h3 { font-size: 22px; font-weight: 640; letter-spacing: -0.03em; color: #FFFFFF; }
.step p { color: var(--text-2); font-size: 15px; }

/* Moldura em gradiente (shell) */
.shell { padding: 1px; border-radius: var(--r-lg); background: var(--shell); box-shadow: 0 2px 6px rgba(0, 0, 0, 0.5), 0 40px 90px -30px rgba(91, 192, 235, 0.45); }
.shell__inner { border-radius: calc(var(--r-lg) - 1px); background: var(--surface); overflow: hidden; }

.preview__tabs {
  display: flex; flex-wrap: wrap; justify-content: center; gap: var(--s1);
  width: fit-content; margin: 0 auto var(--s4); padding: var(--s1);
  border-radius: var(--r-pill); background: rgba(238, 240, 255, 0.04); box-shadow: var(--ring);
}
.preview__tabs button {
  padding: 10px 18px; border: 0; border-radius: var(--r-pill);
  font: inherit; font-size: 14px; font-weight: 600; color: var(--text-2);
  background: transparent; cursor: pointer;
  transition: background-color var(--t-fast) ease, color var(--t-fast) ease;
}
.preview__tabs button:hover { color: #FFFFFF; }
.preview__tabs button[aria-selected="true"] { color: var(--on-primary); background: var(--primary); }
.preview__bar { display: flex; gap: 7px; padding: 12px 16px; border-bottom: 1px solid var(--line); background: var(--surface-2); }
.preview__bar i { width: 10px; height: 10px; border-radius: 50%; background: rgba(238, 240, 255, 0.14); }
.preview__img { width: 100%; height: auto; aspect-ratio: 16 / 10; object-fit: cover; object-position: top left; transition: opacity var(--t-fast) ease; }
.preview__img.is-swapping { opacity: 0; }

/* Segurança */
.split { display: grid; grid-template-columns: 1fr 1.1fr; gap: var(--s12); align-items: start; }
.checks { list-style: none; margin: 0; padding: 0; display: grid; gap: 10px; }
.checks li {
  position: relative; padding: var(--s3) var(--s3) var(--s3) 58px;
  border-radius: var(--r-md); background: rgba(14, 18, 48, 0.6); box-shadow: var(--ring);
  color: var(--text-2); font-size: 15px; line-height: 1.6;
}
.checks li::before {
  content: ""; position: absolute; left: 18px; top: 20px; width: 24px; height: 24px; border-radius: 50%;
  background: rgba(125, 211, 252, 0.14) url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 24 24' fill='none' stroke='%237DD3FC' stroke-width='2.4' stroke-linecap='round' stroke-linejoin='round'%3E%3Cpath d='m6 12 4 4 8-8'/%3E%3C/svg%3E") center / 14px no-repeat;
  box-shadow: inset 0 0 0 1px rgba(125, 211, 252, 0.3);
}
.checks b { color: #FFFFFF; font-weight: 620; }

/* CTA de planos */
.shell--cta { max-width: 980px; margin: 0 auto; }
.cta { position: relative; display: grid; justify-items: center; gap: var(--s3); padding: clamp(48px, 7vw, 84px) clamp(24px, 6vw, 72px); text-align: center; background: radial-gradient(600px 300px at 50% 0%, rgba(91, 192, 235, 0.16), transparent 70%), var(--surface); }
.cta .sub { margin-inline: auto; }
.cta__star { width: 44px; height: 44px; filter: drop-shadow(0 0 14px rgba(125, 211, 252, 0.9)); }

/* FAQ */
.faq { display: grid; gap: 10px; }
.faq details { border-radius: var(--r-md); background: rgba(14, 18, 48, 0.6); box-shadow: var(--ring); transition: box-shadow var(--t-fast) ease; }
.faq details[open] { box-shadow: inset 0 0 0 1px rgba(125, 211, 252, 0.25); }
.faq summary {
  list-style: none; cursor: pointer; position: relative;
  padding: var(--s3) 60px var(--s3) var(--s4);
  font-size: 16.5px; font-weight: 600; letter-spacing: -0.01em; color: #FFFFFF;
}
.faq summary::-webkit-details-marker { display: none; }
.faq summary::after {
  content: ""; position: absolute; right: 24px; top: 50%; width: 12px; height: 12px; margin-top: -6px;
  background: linear-gradient(var(--accent-2), var(--accent-2)) center / 12px 2px no-repeat,
              linear-gradient(var(--accent-2), var(--accent-2)) center / 2px 12px no-repeat;
  transition: transform var(--t-fast) var(--ease);
}
.faq details[open] summary::after { transform: rotate(45deg); }
.faq details p { padding: 0 var(--s4) var(--s4); color: var(--text-2); font-size: 15px; }
.faq details a { color: var(--accent-2); }

/* CTA final */
.final { display: grid; justify-items: center; gap: var(--s4); padding: var(--section-pad) var(--gutter); text-align: center; }
.final .display { max-width: 16ch; }
.final__star { width: 56px; height: 56px; filter: drop-shadow(0 0 16px rgba(125, 211, 252, 0.9)); animation: star-breathe 6s ease-in-out infinite; }

/* Rodapé */
.footer { border-top: 1px solid var(--line); padding: var(--s8) var(--gutter); background: rgba(7, 9, 23, 0.6); }
.footer__inner { max-width: var(--maxw); margin: 0 auto; display: grid; grid-template-columns: auto 1fr auto; align-items: center; gap: var(--s2) var(--s6); }
.footer__tag { font-size: 12px; font-weight: 660; letter-spacing: 0.24em; text-transform: uppercase; color: var(--tertiary); }
.footer__links { display: flex; flex-wrap: wrap; gap: var(--s4); }
.footer__links a { font-size: 14px; color: var(--text-2); text-decoration: none; }
.footer__links a:hover { color: #FFFFFF; }
.footer__copy { grid-column: 1 / -1; font-size: 13px; color: var(--secondary); }

/* ---------- Revelação ao rolar ---------- */
.js .reveal { opacity: 0; transform: translateY(24px); transition: opacity var(--t-slow) var(--ease), transform var(--t-slow) var(--ease); transition-delay: var(--d, 0ms); }
.js .reveal.is-in { opacity: 1; transform: none; }

/* ---------- Responsivo ---------- */
@media (max-width: 1080px) {
  .features { grid-template-columns: repeat(2, 1fr); }
  .strip__grid { grid-template-columns: repeat(2, 1fr); }
  .strip__grid li:nth-child(3) { border-left: 0; }
  .strip__grid li:nth-child(n+3) { border-top: 1px solid var(--line); }
  .split { grid-template-columns: 1fr; gap: var(--s8); }
}
@media (max-width: 880px) {
  .nav__toggle {
    display: grid; place-content: center; gap: 6px; width: 44px; height: 44px; padding: 0;
    border: 0; border-radius: 50%; background: rgba(238, 240, 255, 0.06); box-shadow: var(--ring); cursor: pointer;
  }
  .nav__toggle span { display: block; width: 18px; height: 2px; border-radius: 2px; background: var(--text); transition: transform var(--t-fast) var(--ease); }
  .nav.is-open .nav__toggle span:first-child { transform: translateY(4px) rotate(45deg); }
  .nav.is-open .nav__toggle span:last-child { transform: translateY(-4px) rotate(-45deg); }
  .nav__actions { margin-left: auto; }
  .nav__actions .nav__login { display: none; }
  .nav__links {
    position: absolute; top: 100%; left: var(--s2); right: var(--s2);
    flex-direction: column; gap: 0; padding: var(--s1);
    border-radius: var(--r-md); background: var(--surface); box-shadow: var(--ring), var(--shadow-elev);
    opacity: 0; transform: translateY(-8px); visibility: hidden;
    transition: opacity var(--t-fast) var(--ease), transform var(--t-fast) var(--ease), visibility 0s linear var(--t-fast);
  }
  .nav.is-open .nav__links { opacity: 1; transform: none; visibility: visible; transition-delay: 0s; }
  .nav.is-open { background: rgba(7, 9, 23, 0.9); }
  .nav__links a { padding: 14px var(--s3); border-radius: 10px; font-size: 16px; }
  .nav__links a:hover { background: rgba(238, 240, 255, 0.05); }
  .nav__login--mobile { display: block; color: var(--primary) !important; }
  .steps { grid-template-columns: 1fr; }
  .footer__inner { grid-template-columns: 1fr; }
}
@media (max-width: 560px) {
  .nav__actions .btn--primary { display: none; }
  .features { grid-template-columns: 1fr; }
  .strip__grid { grid-template-columns: 1fr; }
  .strip__grid li + li { border-left: 0; border-top: 1px solid var(--line); }
  .strip__grid li { padding: var(--s4) var(--s1); }
  .hero__cta .btn { width: 100%; }
  .preview__tabs button { padding: 8px 12px; font-size: 13px; }
}

@media (prefers-reduced-motion: reduce) {
  html { scroll-behavior: auto; }
  *, *::before, *::after { animation: none !important; transition-duration: 1ms !important; transition-delay: 0ms !important; }
  .js .reveal { opacity: 1; transform: none; }
}
