/* The Velvet Room — AI Operating Systems
   Design system matched to the velvetsite Vercel build. */

:root {
  --ink: #0d1320;
  --ink-mid: #16202f;
  --velvet: #2b1a2f;
  --gold: #b4665d;
  --gold-lt: #f0b4a5;
  --cream: #f8f4ef;
  --warm: #ede6dc;
  --muted: #8a97a8;
  --hairline: rgba(237, 230, 220, 0.10);
  --serif: "Cormorant Garamond", Georgia, serif;
  --sans: "Jost", ui-sans-serif, system-ui, sans-serif;
}

* { box-sizing: border-box; margin: 0; padding: 0; }
html { scroll-behavior: smooth; }
body {
  background: var(--ink);
  color: var(--cream);
  font-family: var(--sans);
  font-weight: 300;
  line-height: 1.6;
  -webkit-font-smoothing: antialiased;
}
img { max-width: 100%; display: block; }
a { color: inherit; }

.container { max-width: 1400px; margin: 0 auto; padding-left: 20px; padding-right: 20px; }
@media (min-width: 768px) { .container { padding-left: 40px; padding-right: 40px; } }

/* ---------- Type ---------- */
.serif { font-family: var(--serif); }
.eyebrow {
  font-size: 12px; font-weight: 500; text-transform: uppercase;
  letter-spacing: 0.32em; color: var(--gold-lt); margin-bottom: 28px;
}
h1, h2, .display { font-family: var(--serif); font-weight: 500; color: var(--cream); }
h1 { font-size: 2.6rem; line-height: 1.08; }
@media (min-width: 768px) { h1 { font-size: 3.75rem; } }
@media (min-width: 1024px) { h1 { font-size: 3.8rem; } }
h2 { font-size: 2.1rem; line-height: 1.12; }
@media (min-width: 768px) { h2 { font-size: 2.9rem; } }
.lede { font-size: 1.125rem; font-weight: 300; color: rgba(237, 230, 220, 0.8); max-width: 36rem; }
em.accent { font-style: italic; color: var(--gold-lt); }

/* ---------- Buttons ---------- */
.btn {
  display: inline-flex; align-items: center; justify-content: center; white-space: nowrap;
  border-radius: 999px; font-weight: 500; text-transform: uppercase; text-decoration: none;
  font-size: 13px; letter-spacing: 0.08em; padding: 12px 26px; cursor: pointer;
  transition: all .3s ease;
}
.btn-gold {
  background: linear-gradient(to bottom, var(--gold-lt), var(--gold));
  color: var(--ink);
  box-shadow: 0 10px 30px rgba(180, 102, 93, 0.28);
}
.btn-gold:hover { transform: translateY(-2px); box-shadow: 0 14px 40px rgba(180, 102, 93, 0.4); }
.btn-gold:active { transform: translateY(0) scale(0.98); }
.btn-ghost {
  border: 1px solid rgba(237, 230, 220, 0.25); color: var(--warm); background: transparent;
}
.btn-ghost:hover { border-color: var(--gold-lt); color: var(--gold-lt); }

/* ---------- Header ---------- */
header.site {
  position: fixed; inset: 0 0 auto 0; z-index: 50;
  border-bottom: 1px solid transparent; background: transparent;
  transition: background-color .5s ease, border-color .5s ease;
}
header.site.scrolled {
  background: rgba(13, 19, 32, 0.88);
  border-bottom-color: var(--hairline);
  backdrop-filter: blur(10px);
}
header.site .inner {
  display: flex; height: 64px; align-items: center; justify-content: space-between;
}
@media (min-width: 768px) { header.site .inner { height: 72px; } }
header.site img.logo { height: 44px; width: auto; }
@media (min-width: 768px) { header.site img.logo { height: 48px; } }
header.site .btn { padding: 10px 24px; }

/* ---------- Hero ---------- */
.hero {
  position: relative; display: flex; min-height: 100dvh; align-items: center; overflow: hidden;
}
.hero .bg {
  position: absolute; inset: 0; pointer-events: none;
  background: radial-gradient(ellipse at 75% 35%, #2b1a2f 0%, #0d1320 62%);
}
.hero .veil {
  position: absolute; inset: 0;
  background: linear-gradient(to right, var(--ink), rgba(13,19,32,0.72), rgba(13,19,32,0.15));
}
.hero .fade {
  position: absolute; left: 0; right: 0; bottom: 0; height: 160px;
  background: linear-gradient(to top, var(--ink), transparent);
}
.hero canvas { position: absolute; inset: 0; width: 100%; height: 100%; }
.hero .content { position: relative; z-index: 10; width: 100%; padding-top: 96px; padding-bottom: 80px; }
.hero .content .inner-max { max-width: 68rem; }
.hero h1 .line { display: block; overflow: hidden; padding-bottom: 4px; }
.hero h1 .line > span { display: block; transform: translateY(112%); transition: transform 1s cubic-bezier(.16,1,.3,1); }
.hero.loaded h1 .line > span { transform: translateY(0); }
.hero .lede { margin-top: 32px; }
.hero .ctas { margin-top: 40px; display: flex; flex-wrap: wrap; align-items: center; gap: 16px; }

/* ---------- Reveal on scroll ---------- */
.reveal { opacity: 0; transform: translateY(30px); transition: opacity .9s ease, transform .9s cubic-bezier(.16,1,.3,1); }
.reveal.in { opacity: 1; transform: translateY(0); }
.reveal.d1 { transition-delay: .12s; } .reveal.d2 { transition-delay: .24s; } .reveal.d3 { transition-delay: .36s; }

/* ---------- Stat band ---------- */
.band { border-top: 1px solid var(--hairline); border-bottom: 1px solid var(--hairline); }
.band .grid3 { display: grid; grid-template-columns: 1fr; }
.band .cell { padding: 48px 32px; border-bottom: 1px solid var(--hairline); }
.band .cell:last-child { border-bottom: none; }
@media (min-width: 768px) {
  .band .grid3 { grid-template-columns: repeat(3, 1fr); }
  .band .cell { padding: 64px 48px; border-bottom: none; border-right: 1px solid var(--hairline); }
  .band .cell:last-child { border-right: none; }
}
.band .num { font-family: var(--serif); font-size: 3.75rem; font-weight: 500; color: var(--gold-lt); }
@media (min-width: 768px) { .band .num { font-size: 4.5rem; } }
.band p { margin-top: 16px; max-width: 30ch; font-size: 14px; color: var(--muted); }

/* ---------- Sections ---------- */
section.block { padding: 112px 0; }
@media (min-width: 768px) { section.block { padding: 160px 0; } }
.two-col { display: grid; grid-template-columns: 1fr; gap: 56px; align-items: center; }
@media (min-width: 1024px) { .two-col { grid-template-columns: 1.1fr 0.9fr; gap: 80px; } }
.prose p { margin-top: 20px; color: rgba(237, 230, 220, 0.78); max-width: 38rem; }
.prose p strong { color: var(--cream); font-weight: 500; }

/* ---------- Audit card ---------- */
.audit-card {
  background: var(--cream); color: var(--ink); border-radius: 14px;
  padding: 34px 34px 28px; box-shadow: 0 30px 80px rgba(0,0,0,0.45);
  max-width: 480px; margin-left: auto; margin-right: auto;
}
.audit-card .tags { display: flex; gap: 10px; margin-bottom: 8px; flex-wrap: wrap; }
.audit-card .tag {
  font-size: 10px; font-weight: 600; text-transform: uppercase; letter-spacing: 0.18em;
  border: 1px solid rgba(13,19,32,0.25); border-radius: 999px; padding: 3px 10px; color: rgba(13,19,32,0.6);
}
.audit-card h3 { font-family: var(--serif); font-size: 1.6rem; font-weight: 700; margin-top: 8px; }
.audit-card .sub { font-size: 11px; text-transform: uppercase; letter-spacing: 0.16em; color: rgba(13,19,32,0.55); margin-top: 2px; }
.audit-card ul { list-style: none; margin-top: 28px; }
.audit-card li { display: flex; align-items: baseline; gap: 12px; padding: 8px 0; border-bottom: 1px dashed rgba(13,19,32,0.15); }
.audit-card li .label { flex: 1; min-width: 0; font-size: 15px; line-height: 1.35; color: rgba(13,19,32,0.8); }
.audit-card li .hrs { font-family: var(--serif); font-size: 1.35rem; font-weight: 700; color: var(--gold); white-space: nowrap; }
.audit-card li .hrs small { font-family: var(--sans); font-size: 10px; text-transform: uppercase; letter-spacing: .08em; color: rgba(13,19,32,0.5); }
.audit-card .total { display: flex; align-items: baseline; justify-content: space-between; margin-top: 20px; padding-top: 16px; border-top: 2px solid var(--ink); }
.audit-card .total .lbl { font-size: 13px; font-weight: 600; text-transform: uppercase; letter-spacing: 0.16em; color: rgba(13,19,32,0.7); }
.audit-card .total .n { font-family: var(--serif); font-size: 2.4rem; font-weight: 700; color: var(--gold); }
.audit-card .note { margin-top: 6px; text-align: right; font-size: 12px; font-style: italic; color: rgba(13,19,32,0.6); }

/* ---------- Quote ---------- */
.quote { text-align: center; max-width: 56rem; margin: 0 auto; }
.quote .mark { font-family: var(--serif); font-size: 5rem; line-height: 0.6; color: var(--gold-lt); }
.quote blockquote { font-family: var(--serif); font-size: 1.9rem; font-weight: 500; line-height: 1.3; margin-top: 24px; }
@media (min-width: 768px) { .quote blockquote { font-size: 2.5rem; } }
.quote cite { display: block; margin-top: 24px; font-family: var(--sans); font-style: normal; font-size: 13px; text-transform: uppercase; letter-spacing: 0.16em; color: var(--muted); }

/* ---------- Velvet band ---------- */
.velvet-band { border-top: 1px solid var(--hairline); border-bottom: 1px solid var(--hairline); background: rgba(43, 26, 47, 0.4); }

/* ---------- Build ---------- */
.krf { display: grid; grid-template-columns: 1fr; gap: 16px; margin-top: 56px; }
@media (min-width: 768px) { .krf { grid-template-columns: repeat(3, 1fr); } }
.krf .card { border: 1px solid var(--hairline); border-radius: 12px; padding: 28px; }
.krf .card.k { background: rgba(22, 32, 47, 0.6); }
.krf .card.r { background: rgba(43, 26, 47, 0.6); }
.krf .card.f { background: rgba(180, 102, 93, 0.15); }
.krf h3 { font-family: var(--serif); font-size: 1.5rem; font-weight: 500; }
.krf p { margin-top: 8px; font-size: 14.5px; color: rgba(237,230,220,0.75); }

.tabs { display: flex; justify-content: center; gap: 6px; margin-top: 72px; border: 1px solid var(--hairline); border-radius: 999px; width: max-content; margin-left: auto; margin-right: auto; padding: 5px; }
.tabs button {
  position: relative; border: 0; border-radius: 999px; padding: 10px 28px; cursor: pointer;
  font-family: var(--sans); font-size: 13px; font-weight: 500; text-transform: uppercase; letter-spacing: 0.1em;
  background: transparent; color: var(--muted); transition: color .3s ease, background-color .3s ease;
}
.tabs button.active { background: linear-gradient(to bottom, var(--gold-lt), var(--gold)); color: var(--ink); }

.modules { display: grid; grid-template-columns: 1fr; gap: 14px; margin-top: 40px; }
@media (min-width: 640px) { .modules { grid-template-columns: repeat(2, 1fr); } }
@media (min-width: 1024px) { .modules { grid-template-columns: repeat(3, 1fr); } }
.module { border: 1px solid var(--hairline); border-radius: 12px; padding: 24px; transition: border-color .3s ease, transform .3s ease; background: rgba(22,32,47,0.25); }
.module:hover { border-color: rgba(240, 180, 165, 0.4); transform: translateY(-3px); }
.module i { font-size: 26px; color: var(--gold-lt); }
.module h4 { font-family: var(--serif); font-size: 1.3rem; font-weight: 500; margin-top: 12px; color: var(--cream); }
.module p { margin-top: 6px; font-size: 14px; color: rgba(237,230,220,0.7); }

/* ---------- Steps ---------- */
.steps { display: grid; grid-template-columns: 1fr; gap: 0; margin-top: 64px; border-top: 1px solid var(--hairline); }
.step { display: grid; grid-template-columns: 64px 1fr; gap: 20px; padding: 40px 0; border-bottom: 1px solid var(--hairline); }
@media (min-width: 768px) { .step { grid-template-columns: 90px 260px 1fr; gap: 32px; padding: 48px 0; } }
.step .n { font-family: var(--serif); font-size: 2.6rem; font-weight: 500; color: rgba(240,180,165,0.5); line-height: 1; }
.step .head h3 { font-family: var(--serif); font-size: 1.7rem; font-weight: 500; }
.step .head .tag {
  display: inline-block; margin-top: 8px; font-size: 10px; font-weight: 600; text-transform: uppercase;
  letter-spacing: 0.18em; border: 1px solid rgba(240,180,165,0.4); color: var(--gold-lt);
  border-radius: 999px; padding: 3px 10px;
}
.step .body strong { display: block; font-weight: 500; color: var(--cream); margin-bottom: 6px; font-size: 1.05rem; }
.step .body p { font-size: 15px; color: rgba(237,230,220,0.72); max-width: 44rem; }
@media (max-width: 767px) { .step .body { grid-column: 2; } }

/* ---------- FAQ ---------- */
.faq { max-width: 56rem; margin: 56px auto 0; }
.faq details { border-bottom: 1px solid var(--hairline); }
.faq summary {
  cursor: pointer; list-style: none; display: flex; justify-content: space-between; align-items: center;
  padding: 24px 0; font-family: var(--serif); font-size: 1.35rem; font-weight: 500; color: var(--cream);
}
.faq summary::-webkit-details-marker { display: none; }
.faq summary::after { content: "+"; font-family: var(--sans); font-weight: 300; font-size: 1.6rem; color: var(--gold-lt); transition: transform .3s ease; }
.faq details[open] summary::after { transform: rotate(45deg); }
.faq details p { padding: 0 0 24px; color: rgba(237,230,220,0.75); max-width: 46rem; }

/* ---------- Calculator ---------- */
.calc { max-width: 56rem; margin: 0 auto; }
.calc .row { display: flex; align-items: center; gap: 20px; padding: 18px 0; border-bottom: 1px solid var(--hairline); flex-wrap: wrap; }
.calc .row label { flex: 1 1 260px; font-size: 15px; color: rgba(237,230,220,0.8); }
.calc .row input[type=range] { flex: 1 1 200px; accent-color: var(--gold); }
.calc .row output { font-family: var(--serif); font-size: 1.5rem; font-weight: 600; color: var(--gold-lt); min-width: 84px; text-align: right; }
.calc .row output small { font-family: var(--sans); font-size: 11px; text-transform: uppercase; letter-spacing: .08em; color: var(--muted); }
.calc .total { text-align: center; margin-top: 48px; }
.calc .total .n { font-family: var(--serif); font-size: 5rem; font-weight: 500; color: var(--gold-lt); line-height: 1; }
.calc .total p { margin: 16px auto 0; max-width: 30rem; color: rgba(237,230,220,0.8); }
.calc .cta { text-align: center; margin-top: 40px; }

/* ---------- Final CTA ---------- */
.final { position: relative; overflow: hidden; text-align: center; }
.final .glow { position: absolute; inset: 0; background: radial-gradient(ellipse at 50% 100%, rgba(43,26,47,0.9) 0%, var(--ink) 65%); pointer-events: none; }
.final .content { position: relative; z-index: 2; max-width: 46rem; margin: 0 auto; }
.final p { margin-top: 24px; color: rgba(237,230,220,0.78); }
.final .btn { margin-top: 40px; }

/* ---------- Footer ---------- */
footer.site { border-top: 1px solid var(--hairline); padding: 32px 0; }
footer.site .inner { display: flex; flex-wrap: wrap; gap: 12px; align-items: center; justify-content: space-between; font-size: 12px; text-transform: uppercase; letter-spacing: 0.12em; color: var(--muted); }
footer.site a { color: var(--muted); text-decoration: none; }
footer.site a:hover { color: var(--gold-lt); }

@media (prefers-reduced-motion: reduce) {
  .reveal, .hero h1 .line > span { transition: none; opacity: 1; transform: none; }
}
