/* ════════════════════════════════════════════════════════════════════════
   WUniverse — global styles
   Ported from the Claude Design prototype (WUniverse Home.dc.html).
   ════════════════════════════════════════════════════════════════════════ */

:root {
  --bg:          #070611;
  --ink:         #F2EFEA;
  --ink-bright:  #F5F2ED;
  --ink-soft:    #F4F1EC;
  --gold:        #ECB17C;
  --gold-hi:     #F3C28F;
  --on-gold:     #231809;
  --green:       #8FE0A8;
  --muted-1:     #A6A2B2;
  --muted-2:     #9A96A6;
  --muted-3:     #B4B0C0;
  --muted-4:     #8B8799;
  --muted-5:     #6E6A7C;
  --muted-6:     #5E5A6E;
  --hair:        rgba(255,255,255,0.07);
  --hair-soft:   rgba(255,255,255,0.06);
  --card:        rgba(255,255,255,0.02);
  --grain:       none; /* set at runtime by constellation.js */
  --f-head: 'Plus Jakarta Sans', sans-serif;
  --f-eyebrow: 'Comfortaa', sans-serif;
  --f-app: 'Outfit', sans-serif;
  --f-body: 'Nunito', sans-serif;
}

* { box-sizing: border-box; }
html { scroll-behavior: smooth; }
body {
  margin: 0;
  background: var(--bg);
  color: var(--ink);
  font-family: var(--f-body);
  -webkit-font-smoothing: antialiased;
  overflow-x: hidden;
}
a { color: inherit; }
button { font-family: inherit; }
::selection { background: rgba(236,177,124,0.30); color: #fff; }
@keyframes breathe { 0%,100% { opacity: 0.65; } 50% { opacity: 1; } }
@keyframes spin { to { transform: rotate(1turn); } }
@keyframes twinkle { 0%,100% { opacity: 0.45; } 50% { opacity: 1; } }

/* ── Cosmic background (fixed layers) ─────────────────────────────────── */
.bg-base {
  position: fixed; inset: 0; z-index: -4; pointer-events: none;
  background:
    radial-gradient(1300px 950px at 76% -4%, rgba(96,74,184,0.30), transparent 60%),
    radial-gradient(1080px 880px at 6% 104%, rgba(44,92,168,0.24), transparent 60%),
    radial-gradient(820px 760px at 50% 44%, rgba(236,177,124,0.06), transparent 70%),
    linear-gradient(178deg,#080614,#0A0817 48%,#070510);
}
.bg-band-1 {
  position: fixed; top: 18%; left: -32%; width: 168%; height: 360px; z-index: -4;
  pointer-events: none; transform: rotate(-22deg);
  background: linear-gradient(90deg, transparent, rgba(126,94,210,0.18) 26%, rgba(74,120,202,0.15) 50%, rgba(86,200,190,0.08) 68%, transparent);
  filter: blur(72px);
}
.bg-band-2 {
  position: fixed; bottom: 2%; right: -28%; width: 150%; height: 320px; z-index: -4;
  pointer-events: none; transform: rotate(-13deg);
  background: linear-gradient(90deg, transparent, rgba(218,118,170,0.10) 38%, rgba(126,94,210,0.12) 64%, transparent);
  filter: blur(82px);
}
.sky {
  position: fixed; inset: 0; width: 100%; height: 100%; z-index: -3; pointer-events: none;
}
.grain {
  position: fixed; inset: 0; z-index: -1; opacity: 0.05; mix-blend-mode: overlay;
  pointer-events: none; background-image: var(--grain); background-size: 150px 150px;
}

/* ── Nav ──────────────────────────────────────────────────────────────── */
.nav {
  position: sticky; top: 0; z-index: 200;
  display: flex; align-items: center; justify-content: space-between; gap: 24px;
  padding: 16px clamp(20px,5vw,64px);
  backdrop-filter: blur(16px); -webkit-backdrop-filter: blur(16px);
  background: rgba(7,6,15,0.55); border-bottom: 1px solid var(--hair-soft);
}
.wordmark { display: inline-flex; align-items: center; gap: 11px; text-decoration: none; color: var(--ink-soft); }
.wordmark .mark { font-family: var(--f-head); font-size: 1.05rem; color: var(--gold); text-shadow: 0 0 14px rgba(236,177,124,0.7); }
.wordmark .mark-img {
  width: 32px; height: 32px; border-radius: 9px; display: block; flex: none;
  border: 1px solid rgba(236,177,124,0.55);
  box-shadow: 0 0 0 0.5px rgba(236,177,124,0.25), 0 0 10px rgba(236,177,124,0.18);
}
.wordmark .name { font-family: var(--f-head); font-weight: 700; font-size: 1.35rem; letter-spacing: -0.02em; }
.nav-links { display: flex; align-items: center; gap: clamp(16px,3vw,34px); }
.nav-link { text-decoration: none; color: var(--muted-3); font-size: 0.95rem; transition: color .2s ease; }
.nav-link:hover { color: var(--ink-soft); }
.nav-cta {
  text-decoration: none; display: inline-flex; align-items: center; gap: 8px;
  padding: 9px 16px; border: 1px solid rgba(255,255,255,0.16); border-radius: 100px;
  color: var(--ink-soft); font-size: 0.9rem; font-weight: 600;
  transition: background .2s ease, border-color .2s ease;
}
.nav-cta:hover { background: rgba(255,255,255,0.06); border-color: rgba(236,177,124,0.5); }

/* ── Eyebrow ──────────────────────────────────────────────────────────── */
.eyebrow {
  display: inline-flex; align-items: center; gap: 10px;
  font-family: var(--f-eyebrow); font-weight: 600; font-size: 0.7rem;
  text-transform: uppercase; letter-spacing: 0.24em; color: var(--gold); white-space: nowrap;
}
.eyebrow .dot { width: 6px; height: 6px; border-radius: 50%; background: var(--gold); box-shadow: 0 0 10px var(--gold); }

/* ── Hero ─────────────────────────────────────────────────────────────── */
.hero {
  position: relative; display: flex; flex-direction: column; align-items: center;
  text-align: center; gap: 24px; max-width: 1080px; margin: 0 auto;
  padding: clamp(46px,8vh,92px) clamp(20px,5vw,64px) clamp(10px,2vh,24px);
}
.hero h1 {
  margin: 0; font-family: var(--f-head); font-weight: 600;
  font-size: clamp(2.5rem,5.4vw,4.6rem); line-height: 1.06; letter-spacing: -0.025em;
  color: var(--ink-bright); max-width: 15em; text-wrap: balance;
}
.hero h1 .accent { color: var(--gold); font-weight: 700; }
.hero p {
  margin: 0; font-size: clamp(1.05rem,1.6vw,1.2rem); line-height: 1.6;
  color: var(--muted-1); max-width: 33em; text-wrap: pretty;
}
.hero-hint {
  display: inline-flex; align-items: center; gap: 9px; font-family: var(--f-eyebrow);
  font-weight: 600; font-size: 0.68rem; letter-spacing: 0.14em; text-transform: uppercase;
  color: var(--muted-5); margin-top: 2px; white-space: nowrap;
}
.hero-hint span { color: var(--gold); }

/* ── Constellation stage ──────────────────────────────────────────────── */
.apps {
  position: relative; display: flex; flex-direction: column; align-items: center;
  padding: clamp(8px,2vh,24px) clamp(12px,3vw,40px) clamp(48px,8vh,90px);
}
.stage { position: relative; width: min(980px,94vw); aspect-ratio: 1000/520; margin: 0 auto; }
.stage-glow {
  position: absolute; left: 50%; top: 50%; width: 74%; height: 64%;
  transform: translate(-50%,-50%); border-radius: 50%;
  background: radial-gradient(ellipse, rgba(126,94,210,0.10), rgba(236,177,124,0.05) 50%, transparent 72%);
  filter: blur(30px);
}
.stage .chart { position: absolute; inset: 0; z-index: 10; will-change: transform; }
.stage .lines { position: absolute; inset: 0; z-index: 20; }
.stage .planets { position: absolute; inset: 0; z-index: 30; }

/* ── Readout ──────────────────────────────────────────────────────────── */
.readout {
  display: flex; flex-direction: column; align-items: center; gap: 13px;
  min-height: 196px; text-align: center; margin-top: clamp(18px,3.5vh,36px);
}
.readout .status {
  display: inline-flex; align-items: center; gap: 8px; font-family: var(--f-eyebrow);
  font-weight: 600; font-size: 0.68rem; text-transform: uppercase; letter-spacing: 0.18em;
  white-space: nowrap; color: var(--gold);
}
.readout .status .dot { width: 7px; height: 7px; border-radius: 50%; background: currentColor; box-shadow: 0 0 8px currentColor; }
.readout .status.is-live { color: var(--green); }
.readout .status.is-soon { color: var(--gold); }
.readout h2 {
  margin: 0; font-family: var(--f-app); font-weight: 600;
  font-size: clamp(2rem,4.4vw,2.9rem); line-height: 1.05; letter-spacing: -0.015em; color: var(--ink-soft);
}
.readout .tag { margin: 0; font-size: 1.05rem; line-height: 1.55; color: var(--muted-2); max-width: 26em; }
.readout .meta {
  font-family: var(--f-eyebrow); font-weight: 600; font-size: 0.64rem;
  letter-spacing: 0.18em; text-transform: uppercase; color: var(--muted-6);
}
.cta {
  text-decoration: none; display: inline-flex; align-items: center; gap: 9px; margin-top: 6px;
  padding: 12px 24px; border-radius: 100px; background: var(--gold); color: var(--on-gold);
  font-weight: 700; font-size: 0.98rem; box-shadow: 0 8px 28px rgba(236,177,124,0.28);
  transition: background .2s ease, transform .2s ease;
}
.cta:hover { background: var(--gold-hi); transform: translateY(-2px); }
.cta-soon {
  margin-top: 6px; font-family: var(--f-eyebrow); font-weight: 600; font-size: 0.7rem;
  letter-spacing: 0.12em; text-transform: uppercase; color: var(--muted-5); padding: 12px 0;
}
[hidden] { display: none !important; }

/* ── Legend chips ─────────────────────────────────────────────────────── */
.chips { display: flex; flex-wrap: wrap; justify-content: center; gap: 10px; margin-top: clamp(26px,4.5vh,44px); max-width: 760px; }
.chip {
  appearance: none; cursor: pointer; display: inline-flex; align-items: center; gap: 8px;
  padding: 8px 14px; border-radius: 100px; border: 1px solid rgba(255,255,255,0.12);
  background: rgba(255,255,255,0.02); color: var(--muted-3);
  font-size: 0.86rem; font-family: var(--f-app); font-weight: 500; transition: all .25s ease;
}
.chip:hover, .chip.is-active { border-color: rgba(236,177,124,0.6); background: rgba(236,177,124,0.10); color: var(--ink-soft); }
.chip .chip-dot { width: 9px; height: 9px; border-radius: 50%; flex: none; }
.chip .chip-greek { font-family: var(--f-app); font-weight: 600; font-size: 0.72rem; opacity: 0.6; }
.chip .chip-status { font-family: var(--f-eyebrow); font-weight: 600; font-size: 0.58rem; letter-spacing: 0.08em; text-transform: uppercase; opacity: 0.55; }

/* ── Studio section ───────────────────────────────────────────────────── */
.studio { position: relative; max-width: 1200px; margin: 0 auto; padding: clamp(56px,9vh,110px) clamp(20px,5vw,64px); }
.studio h2 {
  margin: 22px 0 0; font-family: var(--f-head); font-weight: 600;
  font-size: clamp(1.9rem,3.8vw,3rem); line-height: 1.1; letter-spacing: -0.01em;
  color: var(--ink-bright); max-width: 18em; text-wrap: balance;
}
.studio h2 .accent { color: var(--gold); font-weight: 700; }
.grid-cards { display: grid; grid-template-columns: repeat(auto-fit,minmax(248px,1fr)); gap: 20px; margin-top: 48px; }
.card {
  display: flex; flex-direction: column; gap: 14px; padding: 30px;
  border: 1px solid var(--hair); border-radius: 20px; background: var(--card);
}
.card .n { font-family: var(--f-eyebrow); font-weight: 600; font-size: 0.78rem; color: var(--gold); letter-spacing: 0.08em; }
.card h3 { margin: 0; font-family: var(--f-eyebrow); font-weight: 600; font-size: 1.35rem; color: var(--ink); }
.card p { margin: 0; font-size: 0.98rem; line-height: 1.6; color: var(--muted-2); text-wrap: pretty; }

/* ── Footer ───────────────────────────────────────────────────────────── */
.footer { position: relative; border-top: 1px solid var(--hair); margin-top: clamp(20px,5vh,60px); }
.footer-top {
  max-width: 1200px; margin: 0 auto; padding: clamp(48px,7vh,80px) clamp(20px,5vw,64px) 32px;
  display: grid; grid-template-columns: repeat(auto-fit,minmax(200px,1fr)); gap: 40px;
}
.footer-brand { display: flex; flex-direction: column; gap: 18px; min-width: 240px; }
.footer-brand p { margin: 0; font-size: 0.95rem; line-height: 1.55; color: var(--muted-4); max-width: 24em; }
.footer-col { display: flex; flex-direction: column; gap: 14px; }
.footer-col-head { font-family: var(--f-eyebrow); font-weight: 600; font-size: 0.66rem; text-transform: uppercase; letter-spacing: 0.16em; color: var(--muted-5); }
.footer-link { text-decoration: none; color: var(--muted-3); font-size: 0.95rem; transition: color .2s ease; }
.footer-link.app { font-family: var(--f-app); font-weight: 500; }
.footer-link:hover { color: var(--ink-soft); }
.notify-btn {
  align-self: flex-start; text-decoration: none; display: inline-flex; align-items: center; gap: 9px;
  margin-top: 2px; padding: 11px 20px; border-radius: 100px;
  border: 1px solid rgba(236,177,124,0.45); background: rgba(236,177,124,0.08);
  color: var(--gold); font-family: var(--f-app); font-weight: 600; font-size: 0.92rem;
  transition: background .2s ease, border-color .2s ease, transform .2s ease;
}
.notify-btn:hover { background: rgba(236,177,124,0.16); border-color: rgba(236,177,124,0.7); transform: translateY(-1px); }
.notify-btn span { transition: transform .2s ease; }
.notify-btn:hover span { transform: translateX(3px); }
.footer-bottom {
  max-width: 1200px; margin: 0 auto; padding: 20px clamp(20px,5vw,64px) 40px;
  border-top: 1px solid rgba(255,255,255,0.05);
  display: flex; flex-wrap: wrap; align-items: center; justify-content: space-between; gap: 14px;
}
.copyright { font-family: var(--f-eyebrow); font-weight: 600; font-size: 0.7rem; letter-spacing: 0.06em; color: var(--muted-5); }
.footer-social { display: flex; gap: 18px; }
.footer-social a { text-decoration: none; color: var(--muted-4); font-size: 0.85rem; transition: color .2s ease; }
.footer-social a:hover { color: var(--gold); }

/* ════════════════════════════════════════════════════════════════════════
   App marketing page (/<app>)
   ════════════════════════════════════════════════════════════════════════ */
.app-hero {
  position: relative; max-width: 1080px; margin: 0 auto; text-align: center;
  display: flex; flex-direction: column; align-items: center; gap: 22px;
  padding: clamp(40px,7vh,80px) clamp(20px,5vw,64px) clamp(24px,4vh,48px);
}
.app-planet {
  position: relative; width: 180px; height: 180px; border-radius: 50%; margin-bottom: 6px;
  box-shadow: inset 0 0 18px rgba(5,4,12,0.35), 0 0 60px rgba(255,255,255,0.04);
}
.app-planet::after {
  content: ''; position: absolute; inset: -38%; border-radius: 50%; pointer-events: none;
  background: radial-gradient(circle, var(--planet-halo), transparent 62%);
  animation: breathe 6s ease-in-out infinite;
}
.app-planet .sheen {
  position: absolute; left: 24%; top: 18%; width: 40px; height: 20px; border-radius: 50%;
  background: radial-gradient(ellipse, rgba(255,255,255,0.4), transparent 70%); filter: blur(3px); transform: rotate(-16deg);
}
.app-greek { font-family: var(--f-app); font-weight: 600; color: var(--gold); letter-spacing: 0.1em; }
.app-hero h1 {
  margin: 0; font-family: var(--f-app); font-weight: 600;
  font-size: clamp(2.6rem,6vw,4.4rem); line-height: 1.04; letter-spacing: -0.02em; color: var(--ink-bright);
}
.app-hero .tagline {
  margin: 0; font-family: var(--f-head); font-weight: 600;
  font-size: clamp(1.3rem,2.6vw,1.9rem); line-height: 1.25; color: var(--gold); max-width: 18em;
}
.app-hero .lede { margin: 0; font-size: clamp(1.02rem,1.5vw,1.18rem); line-height: 1.6; color: var(--muted-1); max-width: 34em; text-wrap: pretty; }
.app-actions { display: flex; flex-wrap: wrap; gap: 14px; align-items: center; justify-content: center; margin-top: 4px; }
.app-section { max-width: 1080px; margin: 0 auto; padding: clamp(32px,6vh,72px) clamp(20px,5vw,64px); }
.app-section > .eyebrow { margin-bottom: 26px; }
.app-back {
  display: inline-flex; align-items: center; gap: 9px; text-decoration: none;
  font-family: var(--f-eyebrow); font-weight: 600; font-size: 0.72rem; letter-spacing: 0.14em;
  text-transform: uppercase; color: var(--muted-3); transition: color .2s ease;
}
.app-back:hover { color: var(--gold); }
.legal-body { max-width: 760px; margin: 0 auto; padding: clamp(20px,4vh,40px) clamp(20px,5vw,64px) clamp(48px,8vh,90px); }
.legal-body h1 { font-family: var(--f-head); font-weight: 600; font-size: clamp(2rem,4vw,2.8rem); color: var(--ink-bright); letter-spacing: -0.02em; }
.legal-body h2 { font-family: var(--f-eyebrow); font-weight: 600; font-size: 1.2rem; color: var(--ink); margin-top: 36px; }
.legal-body p, .legal-body li { font-size: 1rem; line-height: 1.7; color: var(--muted-1); }
.legal-body a { color: var(--gold); }
.legal-meta { font-family: var(--f-eyebrow); font-size: 0.72rem; letter-spacing: 0.1em; text-transform: uppercase; color: var(--muted-5); }

/* ── Responsive ───────────────────────────────────────────────────────── */
@media (max-width: 640px) {
  .nav-links { gap: 16px; }
  .nav-link { display: none; }
  /* let single-line eyebrows/hints wrap instead of overflowing */
  .eyebrow, .hero-hint, .readout .status { white-space: normal; text-align: center; }
  .hero-hint { letter-spacing: 0.1em; }
  .footer-bottom { justify-content: flex-start; }
  .footer-top { gap: 28px; }
  .footer-col-head--spacer { display: none; } /* drop empty gap when columns stack */
}
@media (prefers-reduced-motion: reduce) {
  html { scroll-behavior: auto; }
  .app-planet::after { animation: none; }
}
