/* ── Reset ─────────────────────────────────── */
*, *::before, *::after { box-sizing: border-box; margin: 0; padding: 0; }
html { scroll-behavior: smooth; -webkit-font-smoothing: antialiased; }
img  { display: block; max-width: 100%; }
a    { color: inherit; text-decoration: none; }

/* ── Tokens ─────────────────────────────────── */
:root {
  --bg:      #080810;
  --surface: #12121e;
  --raised:  #1a1a2e;
  --border:  #252540;
  --primary: #e2d9f8;
  --muted:   #8b7fb8;
  --dim:     #4a4070;
  --accent:  #9b7fe8;
  --brand:   #9b7fe8;
  --brand-g: rgba(155,127,232,0.18);
  --serif:   'Playfair Display', Georgia, serif;
  --sans:    'DM Sans', system-ui, sans-serif;
  --rad-sm:  6px;
  --rad-md:  12px;
  --rad-lg:  20px;
}

/* ── Body ──────────────────────────────────── */
body {
  background: var(--bg);
  color: var(--primary);
  font-family: var(--sans);
  font-size: 1rem;
  line-height: 1.6;
  overflow-x: hidden;
}

/* ── Nav ───────────────────────────────────── */
.nav {
  position: fixed; top: 0; left: 0; right: 0; z-index: 100;
  padding: 1.5rem clamp(1.5rem, 4vw, 3.5rem);
  display: flex; align-items: center; justify-content: space-between;
  transition: background .4s, backdrop-filter .4s;
}
.nav.scrolled {
  background: rgba(8,8,16,.88);
  backdrop-filter: blur(18px); -webkit-backdrop-filter: blur(18px);
  border-bottom: 1px solid var(--border);
}
.nav__logo {
  display: flex; align-items: center; gap: .6rem;
}
.nav__logo-icon {
  width: 32px; height: 32px;
  background: var(--surface); border-radius: 6px;
  display: flex; align-items: center; justify-content: center;
}
.nav__logo-icon svg { width: 22px; height: 22px; }
.nav__logo-text {
  display: flex; flex-direction: column; line-height: 1.1;
}
.nav__logo-name {
  font-family: var(--sans); font-size: 1.15rem; font-weight: 700;
  background: linear-gradient(90deg, #e0368c, #e8a035);
  -webkit-background-clip: text; -webkit-text-fill-color: transparent;
  background-clip: text;
}
.nav__logo-sub {
  font-family: var(--sans); font-size: .5rem; font-weight: 500;
  letter-spacing: .28em; text-transform: uppercase; color: var(--muted);
}
.nav__links { display: flex; align-items: center; gap: 2.5rem; list-style: none; }
.nav__links a { font-size: .85rem; font-weight: 500; color: var(--muted); letter-spacing: .04em; transition: color .2s; padding: .5rem .25rem; }
.nav__links a:hover, .nav__links a.active { color: var(--primary); }

/* ── Nav Dropdown ─────────────────────────── */
.nav__dropdown { position: relative; }
.nav__dropdown-toggle {
  font-size: .85rem; font-weight: 500; color: var(--muted);
  letter-spacing: .04em; transition: color .2s; padding: .5rem .25rem;
  cursor: pointer; background: none; border: none; font-family: var(--sans);
  display: flex; align-items: center; gap: .3rem;
}
.nav__dropdown-toggle:hover, .nav__dropdown.open .nav__dropdown-toggle { color: var(--primary); }
.nav__dropdown-toggle svg { width: 12px; height: 12px; stroke: currentColor; fill: none; stroke-width: 2; transition: transform .2s; }
.nav__dropdown.open .nav__dropdown-toggle svg { transform: rotate(180deg); }
.nav__dropdown-menu {
  position: absolute; top: calc(100% + .5rem); left: 50%; transform: translateX(-50%);
  background: var(--surface); border: 1px solid var(--border); border-radius: var(--rad-md);
  padding: .5rem 0; min-width: 180px;
  opacity: 0; pointer-events: none; transform: translateX(-50%) translateY(-4px);
  transition: opacity .2s, transform .2s;
  box-shadow: 0 8px 32px rgba(0,0,0,.4);
}
.nav__dropdown.open .nav__dropdown-menu {
  opacity: 1; pointer-events: all; transform: translateX(-50%) translateY(0);
}
.nav__dropdown-menu a {
  display: flex; align-items: center; gap: .6rem;
  padding: .6rem 1.25rem; font-size: .85rem; font-weight: 500;
  color: var(--muted); transition: color .15s, background .15s;
}
.nav__dropdown-menu a:hover { color: var(--primary); background: var(--raised); }
.nav__dropdown-menu .nav__app-dot {
  width: 8px; height: 8px; border-radius: 50%; flex-shrink: 0;
}
.nav__cta {
  background: var(--brand); color: #fff;
  font-size: .8rem; font-weight: 600; letter-spacing: .06em; text-transform: uppercase;
  padding: .7rem 1.4rem; border-radius: 100px; min-height: 44px; display: inline-flex; align-items: center;
  transition: box-shadow .2s, transform .2s;
}
.nav__cta:hover { box-shadow: 0 0 24px var(--brand-g); transform: translateY(-1px); }

/* ── Mobile Nav ────────────────────────────── */
.nav__hamburger { display: none; flex-direction: column; gap: 5px; cursor: pointer; background: none; border: none; padding: 10px; z-index: 101; min-width: 44px; min-height: 44px; align-items: center; justify-content: center; }
.nav__hamburger span { display: block; width: 22px; height: 2px; background: var(--primary); border-radius: 2px; transition: transform .3s, opacity .3s; }
.nav__hamburger.open span:nth-child(1) { transform: translateY(7px) rotate(45deg); }
.nav__hamburger.open span:nth-child(2) { opacity: 0; }
.nav__hamburger.open span:nth-child(3) { transform: translateY(-7px) rotate(-45deg); }
.nav__mobile { position: fixed; inset: 0; background: rgba(8,8,16,.97); z-index: 99; display: flex; flex-direction: column; align-items: center; justify-content: center; gap: 1.75rem; opacity: 0; pointer-events: none; transition: opacity .35s ease; }
.nav__mobile.open { opacity: 1; pointer-events: all; }
.nav__mobile__link { font-family: var(--serif); font-size: clamp(1.4rem, 5vw, 1.9rem); font-weight: 700; color: var(--primary); letter-spacing: -.02em; transition: color .2s; padding: .5rem 1rem; min-height: 44px; display: inline-flex; align-items: center; }
.nav__mobile__link:hover { color: var(--brand); }

/* ── Shared Utilities ──────────────────────── */
.container        { max-width: 1200px; margin: 0 auto; padding: 0 clamp(1.5rem, 5vw, 4rem); }
.container--mid   { max-width: 960px;  margin: 0 auto; padding: 0 clamp(1.5rem, 5vw, 4rem); }
.container--narrow{ max-width: 720px;  margin: 0 auto; padding: 0 clamp(1.5rem, 5vw, 4rem); }
.eyebrow { font-size: .7rem; font-weight: 500; letter-spacing: .22em; text-transform: uppercase; color: var(--brand); }
.divider { height: 1px; background: var(--border); margin: 0 clamp(1.5rem, 5vw, 4rem); }
.reveal { opacity: 0; transform: translateY(28px); transition: opacity .7s ease, transform .7s ease; }
.reveal.visible { opacity: 1; transform: translateY(0); }

/* ── Footer ────────────────────────────────── */
.footer { padding: 2rem clamp(1.5rem, 4vw, 3.5rem); border-top: 1px solid var(--border); display: flex; align-items: center; justify-content: space-between; flex-wrap: wrap; gap: 1rem; }
.footer__links { display: flex; gap: 2rem; flex-wrap: wrap; align-items: center; }
.footer__nav-main, .footer__nav-legal { display: flex; gap: 2rem; }
.footer__links a { font-size: .8rem; color: var(--muted); transition: color .2s; padding: .5rem .25rem; min-height: 44px; display: inline-flex; align-items: center; }
.footer__links a:hover { color: var(--primary); }
.footer__legal-link { color: var(--dim) !important; }
.footer__legal-link:hover { color: var(--muted) !important; }
.footer__divider { color: var(--dim); font-size: .8rem; }
.footer__copy { font-size: .75rem; color: var(--dim); }
.footer__company { color: var(--dim); transition: color .2s; }
.footer__company:hover { color: var(--muted); }

/* ── Waitlist Form ────────────────────────── */
.waitlist { padding: clamp(5rem,8vw,9rem) 0; }
.waitlist__inner {
  max-width: 560px; margin: 0 auto; text-align: center;
}
.waitlist__title {
  font-family: var(--serif); font-size: clamp(1.6rem, 3vw, 2.2rem);
  font-weight: 700; margin-bottom: .75rem;
}
.waitlist__text {
  font-size: clamp(.95rem, 1.4vw, 1.05rem); color: var(--muted);
  line-height: 1.7; margin-bottom: 1.5rem;
}
.waitlist__form { display: flex; gap: .75rem; max-width: 440px; margin: 0 auto; }
.waitlist__input {
  flex: 1; background: var(--surface); border: 1px solid var(--border);
  border-radius: 100px; padding: .75rem 1.25rem; min-height: 44px;
  font-family: var(--sans); font-size: .9rem; color: var(--primary);
  outline: none; transition: border-color .2s;
}
.waitlist__input::placeholder { color: var(--dim); }
.waitlist__input:focus { border-color: var(--accent); }
.waitlist__input:disabled { opacity: .5; }
.waitlist__submit {
  background: var(--brand); color: #fff; border: none; cursor: pointer;
  font-family: var(--sans); font-size: .85rem; font-weight: 600;
  letter-spacing: .04em; padding: .75rem 1.75rem; border-radius: 100px;
  min-height: 44px; white-space: nowrap;
  transition: box-shadow .2s, transform .2s, opacity .2s;
}
.waitlist__submit:hover { box-shadow: 0 0 24px var(--brand-g); transform: translateY(-1px); }
.waitlist__submit:disabled { opacity: .6; cursor: default; transform: none; box-shadow: none; }
.waitlist__note { font-size: .85rem; min-height: 1.2em; margin-top: .75rem; }
.waitlist__note--success { color: #5bb8a0; }
.waitlist__note--error { color: #e0368c; }
.waitlist__count { font-size: .8rem; color: var(--dim); margin-top: .5rem; }
.waitlist__consent {
  display: flex; align-items: flex-start; gap: .5rem;
  max-width: 440px; margin: 0 auto 1.25rem; text-align: left;
}
.waitlist__consent input[type="checkbox"] {
  margin-top: .25rem; accent-color: var(--brand); min-width: 16px; min-height: 16px;
}
.waitlist__consent label {
  font-size: .8rem; color: var(--muted); line-height: 1.5; cursor: pointer;
}

@media (max-width: 480px) {
  .waitlist__form { flex-direction: column; }
}

/* ── Skip Link ─────────────────────────────── */
.skip-link { position: absolute; top: -100px; left: 0; background: var(--brand); color: #fff; padding: .75rem 1.5rem; z-index: 200; font-size: .85rem; font-weight: 500; transition: top .2s; }
.skip-link:focus { top: 0; }

/* ── Split Text Block ─────────────────────── */
.split__text {
  display: flex;
  flex-direction: column;
  justify-content: center;
}

/* ── Image Drag Protection ─────────────────── */
img { -webkit-user-drag: none; }

/* ── Mobile Breakpoints ───────────────────── */
@media (max-width: 900px) {
  .nav__links { display: none; }
  .nav__cta.desktop-only { display: none; }
  .nav__hamburger { display: flex; }
}
