/* NocturneSuite design system — gold + blue/violet accents on a night-blue field. */
:root {
  --bg: #08090e;
  --surface: #121521;
  --elevated: #1a1e2e;
  --fg: #f6f3eb;
  --muted: #aaa8b5;
  --subtle: #7a7688;
  --accent: #e1bf75;
  --accent-fg: #171108;
  --violet: #9275ff;
  --cyan: #63d7ef;
  --border: #292d3c;
  --danger: #ff9ba7;
  --ok: #91edbf;
  --font-sans: "Figtree", ui-sans-serif, system-ui, -apple-system, "Segoe UI", sans-serif;
  --font-display: "Instrument Serif", "Liberation Serif", Georgia, serif;
  --shadow-soft: 0 20px 70px #0004;
}
* { box-sizing: border-box }
html { scroll-behavior: smooth; color-scheme: dark }
body {
  margin: 0;
  background:
    radial-gradient(circle at 10% -10%, #34265e 0, transparent 33%),
    radial-gradient(circle at 90% 0, #153a45 0, transparent 28%),
    var(--bg);
  color: var(--fg);
  font: 16px/1.55 var(--font-sans);
  -webkit-font-smoothing: antialiased;
}
h1, h2, h3 { font-family: var(--font-display); font-weight: 400; letter-spacing: -0.02em; line-height: 1.08; margin: 0; text-wrap: balance }
p { margin: 0; text-wrap: pretty }
a { color: inherit }
.wrap, .section { width: min(1200px, calc(100% - 32px)); margin-inline: auto }
.section { padding-block: 72px }

/* nav */
.nav {
  min-height: 68px; padding: 12px max(16px, calc((100% - 1200px) / 2));
  display: flex; justify-content: space-between; align-items: center; gap: 20px;
  border-bottom: 1px solid var(--border);
  background: #09090bd9; backdrop-filter: blur(14px); -webkit-backdrop-filter: blur(14px);
  position: sticky; top: 0; z-index: 5;
}
.brand { display: flex; align-items: center; gap: 10px; font-family: var(--font-display); font-size: 1.35rem; letter-spacing: -0.01em; color: var(--fg); text-decoration: none }
.brand .mark {
  width: 28px; height: 28px; fill: var(--accent); border-radius: 10px; padding: 4px;
  background: conic-gradient(from 210deg, var(--accent), var(--violet), var(--cyan), var(--accent));
  box-shadow: 0 0 25px #9a78ff66;
}
.nav nav, .footer nav { display: flex; gap: 18px; flex-wrap: wrap }
.nav a:not(.brand), .footer a { color: var(--muted); font-size: .9rem; text-decoration: none }
.nav a:not(.brand):hover, .footer a:hover { color: var(--accent) }

/* hero — X profile banner: navy field, gold rules, circular VR portrait */
.hero {
  position: relative; overflow: hidden; min-height: 72vh;
  display: flex; flex-direction: column; justify-content: center;
  background:
    radial-gradient(circle at 12% 42%, #3d2a9a66, transparent 42%),
    linear-gradient(90deg, #0c0a16 0%, #0a0b12 55%, #08070c 100%);
}
.hero-rule { height: 1px; width: 100%; background: var(--accent); opacity: .75; flex-shrink: 0 }
.hero-inner {
  position: relative; width: min(1200px, calc(100% - 32px)); margin-inline: auto;
  display: grid; grid-template-columns: minmax(0, 1fr) 18rem; align-items: center; gap: 48px;
  padding: 72px 0;
}
.hero-aside { display: flex; flex-direction: column; align-items: center; gap: 22px }
.hero-portrait {
  width: 16rem; height: 16rem; border-radius: 50%; object-fit: cover;
  box-shadow: 0 0 0 2px var(--accent), 0 24px 60px #0008;
}
.hero-swatches { display: flex; gap: 8px }
.swatch { width: 22px; height: 22px; border-radius: 4px }
.swatch-ink { background: #0a0a0c; border: 1px solid #4a4a52 }
.swatch-cream { background: #f3efe4 }
.swatch-gold { background: var(--accent) }
.eyebrow { font-size: 11px; font-weight: 500; letter-spacing: .18em; text-transform: uppercase; color: var(--accent) }
.hero h1 { margin-top: 16px; max-width: 48rem; font-size: clamp(2.6rem, 7vw, 5.4rem); line-height: .95 }
.lead { margin-top: 20px; max-width: 36rem; color: var(--muted); font-size: 1.05rem }
.cta-row { margin-top: 32px; display: flex; flex-wrap: wrap; gap: 12px }

/* features + idea */
.features { display: grid; grid-template-columns: repeat(3, 1fr); gap: 40px }
.features h2 { font-size: 1.5rem }
.features p { margin-top: 12px; color: var(--muted); font-size: .95rem }
.idea-panel { border: 1px solid var(--border); background: var(--surface); border-radius: 18px; padding: 40px 48px; box-shadow: var(--shadow-soft) }
.idea-panel h2 { margin-top: 12px; max-width: 48rem; font-size: clamp(1.75rem, 3.5vw, 2.4rem) }
.idea-panel .muted { margin-top: 16px; max-width: 42rem }
.tagline { margin-top: 24px; font-family: var(--font-display); font-size: 1.3rem; color: var(--fg) }

/* panels + sections */
.panel { border: 1px solid var(--border); background: var(--surface); border-radius: 18px; padding: 28px; box-shadow: var(--shadow-soft) }
.panel h2 { font-size: 1.5rem }
.panel .muted { margin-top: 8px; font-size: .95rem }
.members { display: grid; grid-template-columns: 1fr 1fr; gap: 18px; align-items: start }
.section-heading { display: flex; justify-content: space-between; align-items: end; gap: 20px; margin-bottom: 18px }
.section-heading h2 { margin-top: 10px; font-size: 1.9rem }
.actions { display: flex; gap: 10px; flex-wrap: wrap; align-items: center }

/* buttons */
.button, .link-button {
  border: 1px solid var(--border); background: transparent; color: var(--fg);
  border-radius: 12px; padding: 10px 18px; font: 600 .92rem var(--font-sans);
  cursor: pointer; text-decoration: none; display: inline-flex; justify-content: center; align-items: center;
  transition: border-color .15s ease, color .15s ease, background .15s ease;
  touch-action: manipulation;
}
.button:hover { border-color: var(--accent); color: var(--accent) }
.button.primary { background: linear-gradient(135deg, var(--accent), #b18431); color: var(--accent-fg); border-color: #ffe6a3 }
.button.primary:hover { filter: brightness(1.08) }
.button:focus-visible, .link-button:focus-visible, .nav a:focus-visible, .footer a:focus-visible, .brand:focus-visible {
  outline: 2px solid var(--accent); outline-offset: 2px; border-radius: 8px
}
.link-button { background: none; border: none; padding: 8px 0; color: var(--accent); font-weight: 500; display: inline-flex }
.link-button:hover { color: #ffe6a3 }
.danger { color: var(--danger) }

/* forms */
form { display: grid; gap: 12px; margin-top: 16px }
label { display: grid; gap: 6px; font-size: .82rem; font-weight: 500; color: var(--muted) }
input, select, textarea {
  font: inherit; color: var(--fg); background: #0e0e11;
  border: 1px solid var(--border); border-radius: 10px; padding: 10px 12px; width: 100%;
}
textarea { min-height: 120px; resize: vertical }
input:focus, select:focus, textarea:focus { outline: 3px solid #9275ff55; border-color: var(--violet) }
.check-row { display: grid; grid-template-columns: auto 1fr; align-items: start; gap: 10px; color: var(--muted) }
.check-row input { width: 18px; height: 18px; margin: 2px 0 0; padding: 0; accent-color: var(--accent) }
.privacy-note { color: var(--subtle); font-size: .78rem }

/* states + JS-generated */
.status { min-height: 24px; color: var(--accent); margin: 12px 0 0; font-size: .9rem }
.muted { color: var(--muted) }
.assurance-state { margin-top: 18px; padding: 14px 16px; border: 1px solid var(--border); border-radius: 12px; background: #0e0e11; color: var(--muted); font-size: .95rem }
.assurance-state.is-pending { border-color: #e1bf7566; color: #f0d99f; background: #2a21142e }
.assurance-state.is-complete { border-color: #9eceb366; color: var(--ok); background: #11201a }
.assurance-state.is-error { border-color: #e8a0a866; color: var(--danger); background: #231417 }
#ageForm { padding: 20px; border: 1px solid var(--border); border-radius: 14px; background: #0e0e1180 }
.assurance-panel { display: grid; grid-template-columns: 1.15fr .85fr; gap: 28px; align-items: start }

/* library */
.grid { display: grid; gap: 16px }
.library-grid { grid-template-columns: repeat(auto-fit, minmax(240px, 1fr)) }
.panel.video { display: grid; gap: 10px; padding: 16px }
.panel.video h3 { font-size: 1.2rem }
.panel.video .thumb {
  position: relative; display: block; width: 100%; aspect-ratio: 16/9;
  border: 0; padding: 0; border-radius: 12px; overflow: hidden;
  background: #0e0e11; cursor: pointer;
}
.panel.video .thumb img { width: 100%; height: 100%; object-fit: cover }
.panel.video .thumb .badge { position: absolute; left: 10px; bottom: 10px; background: #09090bd9; padding: 4px 8px; border-radius: 999px }
.player-stage { margin-bottom: 24px; display: grid; gap: 16px }
.player-frame { position: relative; aspect-ratio: 16/9; border-radius: 18px; overflow: hidden; border: 1px solid var(--border); background: #000 }
.player-frame iframe { position: absolute; inset: 0; width: 100%; height: 100%; border: 0 }
.player-meta h3 { font-size: 1.6rem }
.player-meta p { margin-top: 8px }
.badge { color: var(--accent); font-size: .8rem; font-weight: 500 }
.why { color: var(--muted); font-size: .82rem; font-style: italic; min-height: 1.2em }
.taste-summary {
  margin: 8px 0 16px; padding: 14px 16px; border: 1px solid #e1bf7533;
  border-radius: 14px; background: #16130e; color: #f0d99f; font-size: .98rem;
}
.taste-tags { display: flex; flex-wrap: wrap; gap: 8px; margin: 0 0 18px }
.taste-chip {
  border: 1px solid var(--border); border-radius: 999px; padding: 4px 10px;
  font-size: .78rem; letter-spacing: .04em; color: var(--accent);
}
.taste-chip.avoid { color: var(--muted); border-style: dashed }
.sampler-choice { display: flex; gap: 8px; flex-wrap: wrap }
.sampler-choice .button.is-on { border-color: var(--accent); color: var(--accent) }
.empty { grid-column: 1 / -1; padding: 32px; border: 1px dashed var(--border); border-radius: 18px; text-align: center }
.empty p { margin-top: 8px; color: var(--muted); font-size: .92rem }

/* tickets */
.ticket { padding: 14px 0; border-bottom: 1px solid var(--border); font-size: .95rem }
.ticket:last-child { border: 0 }
.ticket p { margin: .3rem 0 }

/* footer */
.footer { border-top: 1px solid var(--border); padding: 36px 0 48px; color: var(--muted); font-size: .88rem; width: min(1200px, calc(100% - 32px)); margin-inline: auto }
.footer p { max-width: 60rem }
.footer nav { margin-top: 14px }

@media (prefers-reduced-motion: reduce) {
  html { scroll-behavior: auto }
  *, *::before, *::after { animation-duration: .01ms !important; animation-iteration-count: 1 !important; transition-duration: .01ms !important; scroll-behavior: auto !important }
}
@media (max-width: 860px) {
  .features { grid-template-columns: 1fr; gap: 28px }
  .assurance-panel { grid-template-columns: 1fr }
}
@media (max-width: 720px) {
  .nav { align-items: flex-start; flex-direction: column; padding-block: 14px }
  .hero { min-height: 68vh }
  .hero-inner { grid-template-columns: 1fr; padding: 48px 0; gap: 32px }
  .hero-portrait { width: 12rem; height: 12rem }
  .members { grid-template-columns: 1fr }
  .section { padding-block: 48px }
  .section-heading { align-items: flex-start; flex-direction: column }
  .idea-panel { padding: 28px }
}
