/* =========================================================
   NOVA — Shared design system
   ========================================================= */

:root {
  /* Palette — pulled directly from the app screens */
  --void: #07040E;
  --void-2: #0E0820;
  --midnight: #1A0B2E;
  --plum: #2A0E3F;
  --magenta: #5C1B47;
  --magenta-glow: #8B1F5C;

  --gold: #F5A623;
  --gold-soft: #E8B36B;
  --cyan: #0EA5E9;
  --pink: #E11D48;
  --violet: #7C3AED;

  --ink: #FFFFFF;
  --ink-2: rgba(255, 255, 255, 0.78);
  --ink-3: rgba(255, 255, 255, 0.56);
  --ink-4: rgba(255, 255, 255, 0.36);
  --ink-5: rgba(255, 255, 255, 0.14);
  --ink-line: rgba(255, 255, 255, 0.08);

  --serif: "Cormorant Garamond", "Didot", "Playfair Display", serif;
  --sans: "Inter", "Helvetica Neue", system-ui, sans-serif;
  --mono: "JetBrains Mono", "SF Mono", ui-monospace, monospace;

  --maxw: 1320px;
  --gutter: clamp(20px, 4vw, 56px);
}

* { box-sizing: border-box; }
html, body { margin: 0; padding: 0; }
html { scroll-behavior: smooth; }
body {
  background: var(--void);
  color: var(--ink);
  font-family: var(--sans);
  font-weight: 300;
  font-size: 16px;
  line-height: 1.55;
  -webkit-font-smoothing: antialiased;
  text-rendering: optimizeLegibility;
  overflow-x: hidden;
}

img { max-width: 100%; display: block; }
a { color: inherit; text-decoration: none; }
button { font: inherit; color: inherit; background: none; border: 0; cursor: pointer; }

/* =========================================================
   COSMIC BACKGROUND — fixed, layered
   ========================================================= */
.cosmos {
  position: fixed; inset: 0; z-index: -1;
  background:
    radial-gradient(ellipse 90% 60% at 50% 110%, rgba(225, 29, 72, 0.35) 0%, transparent 55%),
    radial-gradient(ellipse 70% 55% at 15% 80%, rgba(124, 58, 237, 0.32) 0%, transparent 60%),
    radial-gradient(ellipse 60% 50% at 85% 30%, rgba(14, 165, 233, 0.14) 0%, transparent 60%),
    radial-gradient(ellipse 100% 80% at 50% 0%, #16092B 0%, #0A0517 45%, #060310 100%);
}
.cosmos::before {
  /* fine grain */
  content: ""; position: absolute; inset: 0;
  background-image: radial-gradient(rgba(255,255,255,0.4) 1px, transparent 1px);
  background-size: 3px 3px;
  opacity: 0.015;
  mix-blend-mode: screen;
}
#starfield { position: fixed; inset: 0; z-index: -1; pointer-events: none; }

/* =========================================================
   TYPE
   ========================================================= */
.serif { font-family: var(--serif); font-weight: 400; }
.serif-i { font-family: var(--serif); font-style: italic; font-weight: 400; }

.eyebrow {
  font-family: var(--sans);
  font-size: 11px;
  font-weight: 500;
  letter-spacing: 0.28em;
  text-transform: uppercase;
  color: var(--gold);
}
.eyebrow.muted { color: var(--ink-3); }
.eyebrow .dot {
  display: inline-block; width: 4px; height: 4px; border-radius: 50%;
  background: var(--gold); vertical-align: middle; margin: 0 12px 3px;
}

h1, h2, h3, h4 { margin: 0; font-weight: 400; letter-spacing: -0.01em; }
.h-display {
  font-family: var(--serif);
  font-size: clamp(56px, 9.5vw, 168px);
  line-height: 0.92;
  letter-spacing: -0.02em;
}
.h-1 {
  font-family: var(--serif);
  font-size: clamp(40px, 6vw, 96px);
  line-height: 0.98;
  letter-spacing: -0.015em;
}
.h-2 {
  font-family: var(--serif);
  font-size: clamp(32px, 4.2vw, 64px);
  line-height: 1.02;
}
.h-3 {
  font-family: var(--serif);
  font-size: clamp(24px, 2.6vw, 36px);
  line-height: 1.1;
}
.lead {
  font-size: clamp(16px, 1.3vw, 19px);
  line-height: 1.55;
  color: var(--ink-2);
  max-width: 60ch;
  font-weight: 300;
}
.kicker {
  font-family: var(--mono);
  font-size: 11px;
  letter-spacing: 0.18em;
  text-transform: uppercase;
  color: var(--ink-3);
}

/* italic stylized accents in serif */
.h-display em, .h-1 em, .h-2 em {
  font-style: italic;
  font-weight: 400;
  color: var(--gold-soft);
}

/* =========================================================
   LAYOUT
   ========================================================= */
.wrap {
  width: 100%;
  max-width: var(--maxw);
  margin: 0 auto;
  padding: 0 var(--gutter);
}
section { position: relative; padding: clamp(80px, 10vw, 160px) 0; }
.section-rule {
  width: 100%; height: 1px; background: var(--ink-line);
}

/* =========================================================
   NAV
   ========================================================= */
.nav {
  position: fixed; top: 0; left: 0; right: 0; z-index: 50;
  padding: 18px var(--gutter);
  display: flex; align-items: center; justify-content: space-between;
  transition: background .4s ease, backdrop-filter .4s ease, border-color .4s ease;
  border-bottom: 1px solid transparent;
}
.nav.is-scrolled {
  background: rgba(7, 4, 14, 0.7);
  backdrop-filter: blur(18px) saturate(1.2);
  -webkit-backdrop-filter: blur(18px) saturate(1.2);
  border-bottom-color: var(--ink-line);
}
.nav-brand {
  display: flex; align-items: center; gap: 12px;
  font-family: var(--serif); font-size: 22px; letter-spacing: 0.32em;
  white-space: nowrap;
}
.nav-brand > span { white-space: nowrap; }
.nav-brand .nav-logo { width: 28px; height: 28px; }
@media (max-width: 760px) {
  .nav-brand { font-size: 18px; letter-spacing: 0.22em; gap: 8px; }
}
@media (max-width: 420px) {
  .nav-brand { font-size: 16px; letter-spacing: 0.18em; }
}
.nav-links {
  display: flex; gap: 36px; align-items: center;
  font-size: 13px; color: var(--ink-2); letter-spacing: 0.04em;
}
.nav-links a:hover { color: var(--ink); }
.nav-cta {
  padding: 10px 18px; border-radius: 999px;
  border: 1px solid var(--ink-line);
  background: rgba(255,255,255,0.03);
  font-size: 12px; letter-spacing: 0.18em; text-transform: uppercase;
  display: inline-flex; align-items: center; gap: 8px;
  transition: background .2s, border-color .2s;
}
.nav-cta:hover { background: rgba(255,255,255,0.08); border-color: rgba(255,255,255,0.2); }
@media (max-width: 760px) {
  .nav-links { display: none; }
}

/* =========================================================
   ATOM LOGO (orbital) — div-based, three thin ellipses
   ========================================================= */
.atom {
  position: relative;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  vertical-align: middle;
}
.atom-spin {
  position: relative;
  width: 100%; height: 100%;
  display: inline-flex; align-items: center; justify-content: center;
  animation: atom-container-spin 15s linear infinite;
}
.atom-ring {
  position: absolute;
  top: 50%; left: 50%;
  width: 100%; height: 22%;
  border-radius: 50%;
  border-style: solid;
  border-width: 1.5px;
}
.atom-ring-1 { border-color: #0EA5E9; transform: translate(-50%, -50%) rotate(0deg); }
.atom-ring-2 { border-color: #E11D48; transform: translate(-50%, -50%) rotate(60deg); }
.atom-ring-3 { border-color: #7C3AED; transform: translate(-50%, -50%) rotate(120deg); }
.atom-spark {
  position: relative;
  color: #fff;
  font-size: 0.42em;
  line-height: 1;
  text-shadow: 0 0 8px rgba(255,255,255,0.9), 0 0 14px rgba(245,166,35,0.5);
  z-index: 2;
}
@keyframes atom-container-spin {
  from { transform: rotate(0deg); }
  to   { transform: rotate(360deg); }
}

/* =========================================================
   BUTTONS
   ========================================================= */
.btn {
  display: inline-flex; align-items: center; gap: 10px;
  padding: 14px 22px; border-radius: 999px;
  font-size: 13px; letter-spacing: 0.16em; text-transform: uppercase;
  font-weight: 500;
  transition: transform .2s, background .2s, border-color .2s;
}
.btn:hover { transform: translateY(-1px); }
.btn-primary {
  background: var(--ink); color: #0A0517;
  box-shadow: 0 8px 40px rgba(255,255,255,0.18);
}
.btn-primary:hover { background: #fff; box-shadow: 0 12px 50px rgba(255,255,255,0.25); }
.btn-ghost {
  border: 1px solid var(--ink-line);
  background: rgba(255,255,255,0.02);
  color: var(--ink-2);
}
.btn-ghost:hover { color: var(--ink); border-color: rgba(255,255,255,0.25); background: rgba(255,255,255,0.05); }

.store-btn {
  display: inline-flex; align-items: center; gap: 12px;
  padding: 12px 22px;
  border-radius: 14px;
  background: #000;
  color: #fff;
  border: 1px solid rgba(255,255,255,0.18);
  font-family: var(--sans);
  transition: transform .2s, border-color .2s, background .2s;
  text-decoration: none;
}
.store-btn:hover {
  transform: translateY(-2px);
  background: #0a0517;
  border-color: rgba(245,166,35,0.55);
}
.store-btn:focus-visible { outline: 2px solid var(--gold-soft); outline-offset: 3px; }
.store-btn .store-icon-wrap { display: inline-flex; align-items: center; justify-content: center; }
.store-btn .store-icon { width: 26px; height: 26px; flex: 0 0 26px; color: #fff; fill: #fff; display: block; }
.store-btn .store-text { display: flex; flex-direction: column; line-height: 1; text-align: left; color: #fff; }
.store-btn .store-text .small { font-size: 10px; letter-spacing: 0.14em; opacity: 0.75; text-transform: uppercase; color: #fff; }
.store-btn .store-text .big { font-size: 17px; font-weight: 600; margin-top: 4px; letter-spacing: -0.01em; color: #fff; }

/* =========================================================
   PHONE FRAME — iPhone 15 Pro style with dynamic island
   ========================================================= */
.phone {
  position: relative;
  width: 100%;
  aspect-ratio: 1290 / 2558;
  border-radius: 13.5% / 7%;
  background: #0a0a0e;
  padding: 12px;
  box-shadow:
    0 0 0 1.5px #2a2a30,
    inset 0 0 0 2px #050507,
    0 60px 120px rgba(0,0,0,0.7),
    0 30px 80px rgba(124, 58, 237, 0.18),
    0 0 0 1px rgba(255,255,255,0.02);
}
.phone-screen {
  width: 100%; height: 100%;
  border-radius: 11.5% / 6%;
  overflow: hidden;
  background: #0a0517;
  position: relative;
}
.phone-screen img {
  width: 100%; height: 100%; object-fit: cover; object-position: center top;
}
/* Dynamic Island — hidden because clean screenshots include their own
   logo/header at the top; overlaying the notch covers the NOVA mark. */
.phone-notch { display: none; }
/* Side buttons — subtle, only on edges */
.phone-side-btns {
  position: absolute; left: -3px; top: 0; bottom: 0; width: 3px;
  pointer-events: none;
}
.phone-side-btns span {
  position: absolute; left: 0; width: 3px;
  background: #1a1a1e;
  border-radius: 2px 0 0 2px;
}
.phone-side-btns .btn-action { top: 14%; height: 4%; }
.phone-side-btns .btn-vol-up { top: 22%; height: 7%; }
.phone-side-btns .btn-vol-dn { top: 31%; height: 7%; }
.phone-power {
  position: absolute; right: -3px; top: 24%; width: 3px; height: 12%;
  background: #1a1a1e;
  border-radius: 0 2px 2px 0;
}
.phone-glow {
  position: absolute; inset: -10% -8%;
  background: radial-gradient(ellipse 60% 50% at 50% 60%, rgba(225,29,72,0.32), transparent 60%),
              radial-gradient(ellipse 50% 40% at 30% 30%, rgba(124,58,237,0.36), transparent 60%);
  filter: blur(60px);
  z-index: -1;
  opacity: 0.85;
}

/* =========================================================
   FX
   ========================================================= */
.divider-stars {
  display: flex; align-items: center; gap: 14px;
  color: var(--gold); font-size: 11px; letter-spacing: 0.32em; text-transform: uppercase;
  font-weight: 500;
}
.divider-stars::before, .divider-stars::after {
  content: ""; flex: 1; height: 1px;
  background: linear-gradient(to right, transparent, var(--ink-line), transparent);
}

.shimmer {
  background: linear-gradient(120deg, var(--ink) 0%, var(--gold-soft) 50%, var(--ink) 100%);
  background-size: 200% 100%;
  -webkit-background-clip: text; background-clip: text;
  color: transparent;
  animation: shimmer 8s linear infinite;
}
@keyframes shimmer { to { background-position: -200% 0; } }

/* sign glyph row */
.zodiac-strip {
  display: flex; gap: clamp(12px, 3vw, 36px);
  font-family: var(--serif);
  font-size: clamp(20px, 2vw, 28px);
  color: var(--ink-3);
  letter-spacing: 0.1em;
  white-space: nowrap;
}
.zodiac-strip span { transition: color .3s; }
.zodiac-strip span:hover { color: var(--gold); }

/* card hover lift */
.lift { transition: transform .35s ease, box-shadow .35s ease; }
.lift:hover { transform: translateY(-4px); }

/* fade-in on scroll */
.reveal { opacity: 0; transform: translateY(24px); transition: opacity 1s ease, transform 1s ease; }
.reveal.in { opacity: 1; transform: translateY(0); }

/* =========================================================
   FOOTER
   ========================================================= */
.foot {
  border-top: 1px solid var(--ink-line);
  padding: 80px var(--gutter) 40px;
  background: rgba(7, 4, 14, 0.6);
  position: relative;
  z-index: 1;
}
.foot-grid {
  max-width: var(--maxw); margin: 0 auto;
  display: grid;
  grid-template-columns: 1.4fr repeat(4, 1fr);
  gap: 48px;
}
@media (max-width: 900px) {
  .foot-grid { grid-template-columns: 1fr 1fr; }
}
.foot h5 {
  font-family: var(--mono); font-size: 11px; font-weight: 500;
  letter-spacing: 0.2em; text-transform: uppercase;
  color: var(--ink-4); margin-bottom: 20px;
}
.foot ul { list-style: none; padding: 0; margin: 0; display: flex; flex-direction: column; gap: 12px; }
.foot a { color: var(--ink-2); font-size: 14px; }
.foot a:hover { color: var(--gold); }
.foot-bottom {
  max-width: var(--maxw); margin: 64px auto 0;
  padding-top: 28px; border-top: 1px solid var(--ink-line);
  display: flex; justify-content: space-between; gap: 24px; flex-wrap: wrap;
  font-size: 12px; color: var(--ink-4); font-family: var(--mono); letter-spacing: 0.06em;
}
