/* ============================================================
   Aeris One — site styles
   Component + layout styles, hand-translated from the design
   package into plain CSS. Tokens come from assets/ds/*.css.
   ============================================================ */

/* ---- Reset / base ------------------------------------------ */
*, *::before, *::after { box-sizing: border-box; }
html { -webkit-text-size-adjust: 100%; scrollbar-gutter: stable; }
body {
  margin: 0;
  font-family: var(--font-sans);
  color: var(--text-body);
  background: var(--surface-page);
  line-height: var(--lh-normal);
  -webkit-font-smoothing: antialiased;
  text-rendering: optimizeLegibility;
  overflow-x: hidden;
}
img, svg { display: block; max-width: 100%; }
a { color: var(--text-link); }
h1, h2, h3, h4, p, ul, figure { margin: 0; }
ul { padding: 0; list-style: none; }

/* Visible focus for keyboard users (a11y) */
:focus-visible {
  outline: 3px solid var(--border-focus);
  outline-offset: 2px;
  border-radius: 4px;
}
.skip-link {
  position: absolute; left: -9999px; top: 0; z-index: 100;
  background: var(--brand); color: #fff; padding: 10px 16px;
  border-radius: 0 0 var(--radius-sm) 0; font-weight: 600; text-decoration: none;
}
.skip-link:focus { left: 0; }

/* ---- Layout helpers ---------------------------------------- */
.container { max-width: var(--container-max); margin: 0 auto; padding-left: 24px; padding-right: 24px; }
/* Reading column: full 1200 gutter (aligns with nav + heroes), but content
   is capped to a comfortable measure and LEFT-aligned to that gutter. */
.reading { max-width: var(--container-max); margin: 0 auto; padding: 0 var(--gutter); }
.reading > * { max-width: 760px; }
.section { padding: 88px 0; }
.section--tight { padding: 64px 0 96px; }

.eyebrow {
  display: inline-block;
  font-family: var(--font-mono);
  font-size: var(--text-xs);
  font-weight: var(--fw-semibold);
  letter-spacing: var(--ls-wide);
  text-transform: uppercase;
  color: var(--brand);
}
.eyebrow--inverse { color: var(--iris-300); }

.lead { font-size: var(--text-md); line-height: var(--lh-relaxed); color: var(--text-body); }

/* ---- Buttons ----------------------------------------------- */
.btn {
  display: inline-flex; align-items: center; justify-content: center; gap: 8px;
  font-family: var(--font-sans); font-weight: var(--fw-semibold);
  border: 1px solid transparent; border-radius: var(--radius-md);
  text-decoration: none; cursor: pointer; white-space: nowrap;
  transition: background var(--dur-fast) var(--ease-out),
              box-shadow var(--dur-fast) var(--ease-out),
              border-color var(--dur-fast) var(--ease-out),
              transform var(--dur-fast) var(--ease-out);
}
.btn:active { transform: translateY(0.5px); }
.btn--sm { height: 38px; padding: 0 16px; font-size: var(--text-sm); }
.btn--md { height: 44px; padding: 0 20px; font-size: var(--text-base); }
.btn--lg { height: 52px; padding: 0 28px; font-size: var(--text-md); }

.btn--primary { background: var(--brand); color: var(--text-on-brand); border-color: var(--brand); }
.btn--primary:hover { background: var(--brand-hover); box-shadow: var(--shadow-brand); }

.btn--secondary { background: var(--surface-card); color: var(--text-strong); border-color: var(--border-default); }
.btn--secondary:hover { background: var(--surface-hover); }

.btn--ghost { background: transparent; color: var(--brand); border-color: var(--border-brand); }
.btn--ghost:hover { background: var(--brand-subtle); }

/* On dark surfaces */
.btn--on-dark { background: var(--violet-600); color: #fff; border-color: var(--violet-500); }
.btn--on-dark:hover { background: var(--violet-700); box-shadow: 0 8px 24px -6px rgba(84,10,171,.8); }

/* ---- Site navigation --------------------------------------- */
.nav {
  position: sticky; top: 0; z-index: 50;
  background: color-mix(in srgb, var(--surface-card) 86%, transparent);
  backdrop-filter: blur(12px); -webkit-backdrop-filter: blur(12px);
  border-bottom: 1px solid var(--border-subtle);
}
.nav__bar { display: flex; align-items: center; gap: 28px; padding-top: 12px; padding-bottom: 12px; }
.nav__logo { display: inline-flex; align-items: center; flex: none; }
.nav__logo img { height: 22px; }
.nav__links { display: flex; align-items: center; gap: 2px; margin-left: 6px; }
.nav__link {
  font-size: var(--text-sm); font-weight: var(--fw-semibold); color: var(--text-body);
  text-decoration: none; padding: 8px 12px; border-radius: var(--radius-sm); white-space: nowrap;
}
.nav__link:hover { background: var(--surface-hover); }
.nav__link[aria-current="page"] { color: var(--brand); background: var(--brand-subtle); }
.nav__actions { margin-left: auto; display: flex; align-items: center; gap: 10px; }
.nav__burger {
  display: none; width: 38px; height: 38px; align-items: center; justify-content: center;
  border: 1px solid var(--border-subtle); background: var(--surface-card);
  border-radius: var(--radius-sm); cursor: pointer; color: var(--text-strong);
}
.nav__mobile { display: none; border-top: 1px solid var(--border-subtle); background: var(--surface-card); padding: 8px 16px 16px; flex-direction: column; gap: 2px; }
.nav__mobile.is-open { display: flex; }
.nav__mobile a { padding: 12px; font-size: var(--text-md); font-weight: var(--fw-semibold); color: var(--text-body); text-decoration: none; border-radius: var(--radius-sm); }
.nav__mobile a:hover { background: var(--surface-hover); }

.nav__cta-full { display: inline; }
.nav__cta-short { display: none; }

@media (max-width: 820px) {
  .nav__links { display: none; }
  .nav__burger { display: inline-flex; }
}
@media (max-width: 480px) {
  .nav__cta-full { display: none; }
  .nav__cta-short { display: inline; }
}
@media (max-width: 400px) {
  .nav .container { padding-left: 16px; padding-right: 16px; }
  .nav__bar { gap: 14px; }
}

/* ---- Hero (dark gradient + particle wave) ------------------ */
.hero-dark {
  position: relative; overflow: hidden; color: var(--text-on-dark);
  background:
    radial-gradient(70% 60% at 8% 0%, rgba(141,93,255,.28), transparent 58%),
    radial-gradient(80% 90% at 100% 100%, rgba(84,10,171,.52), transparent 60%),
    linear-gradient(165deg, #1c1140 0%, #120a26 55%, #050210 100%);
}
.hero-dark--compact {
  background:
    radial-gradient(80% 70% at 12% 0%, rgba(141,93,255,.26), transparent 60%),
    linear-gradient(165deg, #221545, #150a28);
}
.hero-dark__wave {
  position: absolute; left: -20px; right: -20px; bottom: -40px; height: 420px; pointer-events: none;
  background-image: radial-gradient(rgba(141,93,255,.65) 1px, transparent 1.7px);
  background-size: 18px 18px;
  -webkit-mask-image: radial-gradient(120% 100% at 50% 130%, #000 0%, transparent 68%);
  mask-image: radial-gradient(120% 100% at 50% 130%, #000 0%, transparent 68%);
  opacity: .55; animation: aon-wave 9s linear infinite alternate;
}
@keyframes aon-wave { 0% { transform: translate3d(0,0,0); } 100% { transform: translate3d(-16px,0,0); } }
@media (prefers-reduced-motion: reduce) { .hero-dark__wave { animation: none; } }

.hero-dark__inner { position: relative; z-index: 1; }

/* Prerelease landing grid */
.prerelease {
  min-height: calc(100vh - 64px); display: flex; align-items: center;
}
.prerelease__grid { display: grid; grid-template-columns: 1.15fr .85fr; gap: 64px; align-items: center; padding: 72px 0; }
.prerelease__grid > * { min-width: 0; }
.prerelease__badge {
  display: inline-flex; align-items: center; gap: 9px;
  font-family: var(--font-mono); font-size: var(--text-xs); font-weight: var(--fw-semibold);
  letter-spacing: .22em; text-transform: uppercase; color: var(--iris-300);
  background: rgba(141,93,255,.10); border: 1px solid rgba(141,93,255,.28);
  border-radius: var(--radius-pill); padding: 7px 14px;
}
.prerelease__badge .dot { width: 7px; height: 7px; border-radius: 50%; background: var(--iris-400); box-shadow: 0 0 0 4px rgba(143,125,255,.22); }
.prerelease__headline { font-size: 58px; font-weight: var(--fw-extra); line-height: 1.04; letter-spacing: -0.025em; color: #fff; margin: 22px 0 0; text-wrap: balance; overflow-wrap: anywhere; hyphens: auto; }
.prerelease__headline em { font-style: normal; color: var(--iris-400); }
.prerelease__sub { font-size: 19px; line-height: 1.6; color: rgba(239,234,247,.82); max-width: 46ch; margin: 20px 0 0; }
.prerelease__list { margin: 38px 0 0; display: flex; flex-direction: column; gap: 18px; max-width: 50ch; }
.prerelease__list li { display: flex; gap: 14px; align-items: center; font-size: 16.5px; line-height: 1.4; color: rgba(239,234,247,.9); }
.prerelease__list svg { flex: none; }

/* Email capture card */
.signup-card {
  background: rgba(27,17,51,.6); border: 1px solid rgba(255,255,255,.12);
  border-radius: var(--radius-xl); box-shadow: 0 30px 80px -30px rgba(84,10,171,.7);
  backdrop-filter: blur(10px); -webkit-backdrop-filter: blur(10px); padding: 34px;
}
.signup-card h2 { font-size: 21px; font-weight: var(--fw-bold); letter-spacing: -0.015em; color: #fff; }
.signup-card p { font-size: 15px; line-height: 1.55; color: rgba(239,234,247,.72); margin: 8px 0 22px; }
.signup-card__cta { width: 100%; }
.signup-social { margin-top: 22px; padding-top: 20px; border-top: 1px solid rgba(255,255,255,.12); }
.signup-social__label { display: block; font-size: 13px; color: rgba(239,234,247,.6); margin-bottom: 12px; }
.signup-social__links { display: flex; gap: 10px; flex-wrap: wrap; }
.signup-social__links a {
  display: inline-flex; align-items: center; gap: 8px; padding: 10px 16px;
  font-size: 14px; font-weight: var(--fw-semibold); color: #fff; text-decoration: none;
  background: rgba(255,255,255,.06); border: 1px solid rgba(255,255,255,.18);
  border-radius: var(--radius-md);
  transition: background var(--dur-fast) var(--ease-out), border-color var(--dur-fast) var(--ease-out);
}
.signup-social__links a:hover { background: rgba(255,255,255,.12); border-color: var(--iris-400); }
.signup-social__links svg { flex: none; }
[hidden] { display: none !important; }

/* ---- Generic content sections ------------------------------ */
.page-head { position: relative; overflow: hidden; color: var(--text-on-dark); }
.page-head__inner { position: relative; z-index: 1; padding: 80px var(--gutter) 72px; }
.page-head h1 { font-size: 44px; font-weight: var(--fw-extra); line-height: 1.1; letter-spacing: -0.02em; color: #fff; margin: 18px 0 0; max-width: 24ch; text-wrap: balance; overflow-wrap: anywhere; hyphens: auto; }
.page-head .lead { color: rgba(239,234,247,.82); max-width: 62ch; margin: 20px 0 0; font-size: 19px; }
.page-head .stamp { font-family: var(--font-mono); font-size: 13px; letter-spacing: .04em; color: rgba(239,234,247,.6); margin: 14px 0 0; }

.two-col { display: grid; grid-template-columns: 1fr 1fr; gap: 48px; align-items: center; }
.section-title { font-size: 30px; font-weight: var(--fw-extra); letter-spacing: -0.02em; color: var(--text-strong); line-height: 1.12; margin: 14px 0 0; text-wrap: balance; }
.section-body { font-size: 16.5px; line-height: var(--lh-relaxed); color: var(--text-body); margin: 16px 0 0; }
.section-body + .section-body { margin-top: 14px; }

/* Cards */
.card { background: var(--surface-card); border: 1px solid var(--border-subtle); border-radius: var(--radius-lg); box-shadow: var(--shadow-sm); padding: 18px 20px; }
.feature-row { display: flex; gap: 14px; align-items: flex-start; }
.feature-row .ico { flex: none; width: 44px; height: 44px; border-radius: var(--radius-md); background: var(--brand-subtle); color: var(--brand); display: inline-flex; align-items: center; justify-content: center; }
.feature-row strong { color: var(--text-strong); font-size: 15.5px; }
.feature-row p { margin: 2px 0 0; font-size: 14px; color: var(--text-body); }
.stack { display: flex; flex-direction: column; gap: 14px; }

.pull-quote { margin: 22px 0 0; padding: 16px 20px; border-left: 3px solid var(--brand); background: var(--brand-subtle); border-radius: 0 var(--radius-md) var(--radius-md) 0; }
.pull-quote p { margin: 0; font-size: 15.5px; line-height: 1.6; color: var(--text-strong); }

.media { width: 100%; height: 360px; object-fit: cover; border-radius: var(--radius-lg); }

.band { background: var(--surface-card); border-top: 1px solid var(--border-subtle); border-bottom: 1px solid var(--border-subtle); }

.split-card { display: flex; gap: 36px; align-items: center; background: var(--surface-card); border: 1px solid var(--border-subtle); border-radius: var(--radius-xl); box-shadow: var(--shadow-sm); padding: 36px 40px; flex-wrap: wrap; }
.split-card img { width: 300px; height: auto; flex: none; border-radius: var(--radius-md); }
.split-card .body { flex: 1; min-width: 300px; }

.cta-center { max-width: 760px; margin: 0 auto; text-align: center; }
.cta-center h2 { font-size: 32px; font-weight: var(--fw-extra); letter-spacing: -0.02em; color: var(--text-strong); line-height: 1.1; text-wrap: balance; }
.cta-center p { font-size: 16.5px; line-height: var(--lh-relaxed); color: var(--text-body); margin: 14px auto 0; max-width: 52ch; }
.cta-center .actions { margin-top: 28px; display: flex; gap: 12px; justify-content: center; flex-wrap: wrap; }

/* ---- Legal / prose pages ----------------------------------- */
.prose h2 { font-size: 22px; font-weight: var(--fw-bold); letter-spacing: -0.01em; color: var(--text-strong); margin: 40px 0 0; }
.prose h2:first-child { margin-top: 0; }
.prose p { font-size: 16px; line-height: 1.7; color: var(--text-body); margin: 14px 0 0; }
.prose ul { margin: 14px 0 0; padding-left: 22px; list-style: disc; display: flex; flex-direction: column; gap: 8px; }
.prose li { font-size: 16px; line-height: 1.6; color: var(--text-body); }
.prose a { color: var(--text-link); font-weight: var(--fw-semibold); }
.placeholder-note {
  margin: 0 0 32px; padding: 14px 18px; border-radius: var(--radius-md);
  background: var(--warning-bg); border: 1px solid var(--warning-500);
  color: var(--warning-700); font-size: 14px; line-height: 1.6;
}

/* Contact business card */
.business-card { max-width: 620px; margin: 32px 0 0; padding: 0; overflow: hidden; }
.business-card__head { display: flex; align-items: center; gap: 16px; padding: 26px 28px; border-bottom: 1px solid var(--border-subtle); }
.business-card__head img { flex: none; width: 48px; height: 48px; }
.business-card__name { font-size: 19px; font-weight: var(--fw-bold); letter-spacing: -0.01em; color: var(--text-strong); margin: 0; }
.business-card__tag { font-size: 13.5px; line-height: 1.45; color: var(--text-muted); margin: 3px 0 0; }
.business-card__body { padding: 26px 28px; display: grid; grid-template-columns: 1fr 1fr; gap: 24px 28px; }
.business-card__row { display: grid; grid-template-columns: 40px 1fr; column-gap: 14px; align-items: center; }
.business-card__row .ico { width: 40px; height: 40px; border-radius: var(--radius-md); background: var(--brand-subtle); color: var(--brand); display: inline-flex; align-items: center; justify-content: center; }
.business-card__label { font-family: var(--font-mono); font-size: var(--text-xs); letter-spacing: .04em; text-transform: uppercase; color: var(--text-muted); margin: 0; }
.business-card__value { font-size: 16px; color: var(--text-strong); margin: 2px 0 0; line-height: 1.45; }
.business-card__value--soft { font-size: 15px; font-weight: 400; color: var(--text-body); line-height: 1.5; }
.business-card__value a { color: var(--text-link); text-decoration: none; font-weight: var(--fw-semibold); }
.business-card__value a:hover { text-decoration: underline; }
.business-card__social { display: flex; gap: 16px; }
.business-card__social a { font-size: 15px; }
@media (max-width: 560px) {
  .business-card__body { grid-template-columns: 1fr; gap: 18px; }
}

/* ---- Footer ------------------------------------------------ */
.footer { background: var(--ink-900); color: rgba(239,234,247,.72); padding: 72px 0 32px; }
.footer__grid { display: grid; grid-template-columns: 1.8fr 1fr 1.2fr; gap: 40px; }
.footer__brand img { height: 30px; margin-bottom: 16px; }
.footer__brand p { font-size: 14px; line-height: 1.65; color: rgba(239,234,247,.6); max-width: 38ch; }
.footer h4 { font-size: 12px; font-weight: var(--fw-bold); letter-spacing: .06em; text-transform: uppercase; color: rgba(239,234,247,.5); margin: 0 0 16px; }
.footer ul { display: flex; flex-direction: column; gap: 11px; }
.footer a { font-size: 14px; color: rgba(239,234,247,.72); text-decoration: none; }
.footer a:hover { color: #fff; }
.footer__mail a { color: var(--iris-300); }
.footer__bottom { max-width: var(--container-max); margin: 48px auto 0; padding: 24px 24px 0; border-top: 1px solid rgba(255,255,255,.08); }
.footer__bottom span { font-size: 13px; color: rgba(239,234,247,.45); }

/* ---- Cookie banner ----------------------------------------- */
.cookie {
  position: fixed; left: 0; right: 0; bottom: 0; z-index: 60; padding: 16px;
  display: flex; justify-content: center; pointer-events: none;
}
.cookie__inner {
  pointer-events: auto; max-width: 920px; width: 100%;
  background: var(--surface-card); border: 1px solid var(--border-subtle);
  border-radius: var(--radius-lg); box-shadow: var(--shadow-xl);
  padding: 20px 22px; display: flex; align-items: center; gap: 20px; flex-wrap: wrap;
}
.cookie__text { flex: 1; min-width: 260px; }
.cookie__text strong { display: block; margin: 0 0 4px; font-size: 15px; font-weight: var(--fw-semibold); color: var(--text-strong); }
.cookie__text p { margin: 0; font-size: 13.5px; line-height: 1.6; color: var(--text-body); }
.cookie__text a { color: var(--text-link); font-weight: var(--fw-semibold); }
.cookie__actions { display: flex; gap: 10px; flex-wrap: wrap; }

/* ---- Responsive -------------------------------------------- */
@media (max-width: 900px) {
  .two-col { grid-template-columns: 1fr; gap: 36px; }
}
@media (max-width: 880px) {
  .prerelease__grid { grid-template-columns: 1fr; gap: 44px; }
  .prerelease__headline { font-size: 46px; }
  .footer__grid { grid-template-columns: 1fr 1fr; }
}
@media (max-width: 640px) {
  .section { padding: 64px 0; }
  .page-head h1 { font-size: 34px; }
  .footer__grid { grid-template-columns: 1fr; gap: 32px; }
}
@media (max-width: 520px) {
  .prerelease__headline { font-size: 34px; }
}
@media (max-width: 380px) {
  .prerelease__headline { font-size: 29px; }
}
