:root {
  --gold: #d9a640;
  --deep-gold: #b88526;
  --royal: #1f3866;
  --midnight: #0f142b;
  --burgundy: #731f38;
  --cream: #faf2e0;
  --sepia: #8c6b4d;
  --emerald: #268c73;
  --glass: rgba(255, 255, 255, 0.06);
  --line: rgba(217, 166, 64, 0.28);
  --shadow: 0 24px 60px rgba(0, 0, 0, 0.35);
  --radius: 18px;
  --shell: min(1120px, calc(100% - 40px));
}

*,
*::before,
*::after {
  box-sizing: border-box;
}

html {
  scroll-behavior: smooth;
}

body {
  margin: 0;
  font-family: "Inter", system-ui, sans-serif;
  color: var(--cream);
  background:
    radial-gradient(circle at 12% 18%, rgba(217, 166, 64, 0.12), transparent 28%),
    radial-gradient(circle at 88% 12%, rgba(38, 140, 115, 0.08), transparent 24%),
    linear-gradient(160deg, var(--midnight) 0%, var(--royal) 42%, var(--burgundy) 100%);
  line-height: 1.65;
}

img {
  display: block;
  max-width: 100%;
}

a {
  color: var(--gold);
  text-decoration: none;
}

a:hover {
  text-decoration: underline;
}

.shell {
  width: var(--shell);
  margin: 0 auto;
}

.page-glow {
  position: fixed;
  inset: 0;
  pointer-events: none;
  background:
    radial-gradient(circle at 50% 0%, rgba(217, 166, 64, 0.08), transparent 35%),
    radial-gradient(circle at 0% 100%, rgba(115, 31, 56, 0.18), transparent 40%);
  z-index: -1;
}

.site-header {
  position: sticky;
  top: 0;
  z-index: 20;
  backdrop-filter: blur(14px);
  background: rgba(15, 20, 43, 0.78);
  border-bottom: 1px solid var(--line);
}

.header-inner {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 20px;
  padding: 16px 0;
}

.brand {
  display: inline-flex;
  align-items: center;
  gap: 10px;
  color: var(--cream);
  text-decoration: none;
  font-weight: 700;
  letter-spacing: 0.04em;
}

.brand-mark {
  width: 34px;
  height: 34px;
  display: grid;
  place-items: center;
  border-radius: 10px;
  background: linear-gradient(135deg, var(--gold), var(--deep-gold));
  color: var(--midnight);
  font-size: 1rem;
}

.brand-text {
  font-family: "Cormorant Garamond", Georgia, serif;
  font-size: 1.35rem;
}

.site-nav {
  display: flex;
  align-items: center;
  gap: 22px;
}

.site-nav a {
  color: rgba(250, 242, 224, 0.86);
  font-size: 0.92rem;
  font-weight: 500;
  text-decoration: none;
}

.site-nav a:hover {
  color: var(--gold);
  text-decoration: none;
}

.menu-toggle {
  display: none;
  width: 42px;
  height: 42px;
  border: 1px solid var(--line);
  border-radius: 12px;
  background: transparent;
  padding: 0;
}

.menu-toggle span {
  display: block;
  width: 18px;
  height: 2px;
  margin: 4px auto;
  background: var(--cream);
}

.masthead {
  padding: 72px 0 48px;
}

.masthead-grid {
  display: grid;
  grid-template-columns: 1.05fr 0.95fr;
  gap: 48px;
  align-items: center;
}

.eyebrow {
  margin: 0 0 12px;
  color: var(--gold);
  text-transform: uppercase;
  letter-spacing: 0.18em;
  font-size: 0.78rem;
  font-weight: 700;
}

.masthead h1 {
  margin: 0 0 18px;
  font-family: "Cormorant Garamond", Georgia, serif;
  font-size: clamp(2.8rem, 6vw, 4.6rem);
  line-height: 1.02;
  font-weight: 700;
}

.masthead h1 em {
  color: var(--gold);
  font-style: italic;
}

.lede {
  margin: 0 0 28px;
  max-width: 34rem;
  color: rgba(250, 242, 224, 0.84);
  font-size: 1.05rem;
}

.masthead-actions {
  display: flex;
  flex-wrap: wrap;
  gap: 14px;
  margin-bottom: 28px;
}

.btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  min-height: 48px;
  padding: 0 22px;
  border-radius: 999px;
  font-weight: 600;
  text-decoration: none;
  transition: transform 0.2s ease, background 0.2s ease, border-color 0.2s ease;
}

.btn:hover {
  transform: translateY(-1px);
  text-decoration: none;
}

.btn-gold {
  background: linear-gradient(135deg, var(--gold), var(--deep-gold));
  color: var(--midnight);
}

.btn-ghost {
  border: 1px solid var(--line);
  color: var(--cream);
  background: rgba(255, 255, 255, 0.03);
}

.masthead-facts {
  list-style: none;
  margin: 0;
  padding: 0;
  display: flex;
  flex-wrap: wrap;
  gap: 18px;
}

.masthead-facts li {
  min-width: 120px;
  padding: 14px 16px;
  border: 1px solid var(--line);
  border-radius: 14px;
  background: var(--glass);
}

.masthead-facts strong {
  display: block;
  font-size: 1.5rem;
  color: var(--gold);
  line-height: 1.1;
}

.masthead-facts span {
  font-size: 0.82rem;
  color: rgba(250, 242, 224, 0.72);
}

.masthead-device {
  position: relative;
  min-height: 560px;
}

.device-frame {
  position: relative;
  width: min(290px, 100%);
  margin: 0 auto;
  padding: 14px 10px 18px;
  border-radius: 34px;
  background: linear-gradient(180deg, #1a2440, #0b1020);
  border: 2px solid rgba(217, 166, 64, 0.45);
  box-shadow: var(--shadow);
}

.device-notch {
  width: 92px;
  height: 18px;
  margin: 0 auto 10px;
  border-radius: 0 0 14px 14px;
  background: #0b1020;
}

.device-frame img {
  width: 100%;
  border-radius: 24px;
}

.device-card {
  position: absolute;
  width: min(240px, 78%);
  padding: 16px 18px;
  border-radius: 16px;
  background: rgba(15, 20, 43, 0.92);
  border: 1px solid var(--line);
  box-shadow: var(--shadow);
}

.device-card strong {
  display: block;
  margin: 4px 0;
  font-family: "Cormorant Garamond", Georgia, serif;
  font-size: 1.25rem;
}

.device-card p {
  margin: 0;
  font-size: 0.88rem;
  color: rgba(250, 242, 224, 0.72);
}

.card-label {
  display: inline-block;
  font-size: 0.72rem;
  letter-spacing: 0.14em;
  text-transform: uppercase;
  color: var(--gold);
}

.card-a {
  top: 36px;
  left: 0;
}

.card-b {
  right: 0;
  bottom: 42px;
}

.registry-band {
  padding: 10px 0 34px;
  overflow: hidden;
}

.registry-track {
  display: grid;
  grid-template-columns: repeat(6, minmax(150px, 1fr));
  gap: 14px;
}

.registry-plate {
  padding: 18px 16px;
  border-radius: 16px;
  background: linear-gradient(180deg, rgba(217, 166, 64, 0.12), rgba(255, 255, 255, 0.03));
  border: 1px solid var(--line);
  text-align: center;
}

.registry-plate span {
  display: block;
  color: var(--gold);
  font-size: 0.78rem;
  letter-spacing: 0.12em;
  text-transform: uppercase;
}

.registry-plate strong {
  display: block;
  margin: 8px 0 4px;
  font-family: "Cormorant Garamond", Georgia, serif;
  font-size: 1.15rem;
}

.registry-plate em {
  font-style: normal;
  font-size: 0.82rem;
  color: rgba(250, 242, 224, 0.68);
}

.section-block {
  padding: 84px 0;
}

.section-head {
  max-width: 760px;
  margin-bottom: 42px;
}

.section-kicker {
  margin: 0 0 10px;
  color: var(--gold);
  text-transform: uppercase;
  letter-spacing: 0.16em;
  font-size: 0.76rem;
  font-weight: 700;
}

.section-head h2 {
  margin: 0 0 14px;
  font-family: "Cormorant Garamond", Georgia, serif;
  font-size: clamp(2rem, 4vw, 3rem);
  line-height: 1.08;
}

.section-intro {
  margin: 0;
  color: rgba(250, 242, 224, 0.8);
}

.ledger-list {
  display: grid;
  gap: 18px;
}

.ledger-row {
  display: grid;
  grid-template-columns: 72px 1fr;
  gap: 22px;
  padding: 24px 26px;
  border-radius: var(--radius);
  background: var(--glass);
  border: 1px solid var(--line);
}

.ledger-index {
  font-family: "Cormorant Garamond", Georgia, serif;
  font-size: 2rem;
  color: var(--gold);
  line-height: 1;
}

.ledger-row h3 {
  margin: 0 0 8px;
  font-family: "Cormorant Garamond", Georgia, serif;
  font-size: 1.55rem;
}

.ledger-row p {
  margin: 0;
  color: rgba(250, 242, 224, 0.78);
}

.section-timeline {
  background: linear-gradient(180deg, rgba(255, 255, 255, 0.02), rgba(0, 0, 0, 0.12));
  border-block: 1px solid var(--line);
}

.timeline-demo {
  display: grid;
  grid-template-columns: 1.1fr 0.9fr;
  gap: 28px;
  align-items: stretch;
}

.timeline-stage {
  padding: 28px;
  border-radius: 22px;
  background: rgba(15, 20, 43, 0.72);
  border: 1px solid var(--line);
  box-shadow: var(--shadow);
}

.timeline-era {
  margin: 0 0 8px;
  color: var(--gold);
  font-size: 0.82rem;
  letter-spacing: 0.12em;
  text-transform: uppercase;
}

.timeline-stage h3 {
  margin: 0 0 12px;
  font-family: "Cormorant Garamond", Georgia, serif;
  font-size: 2rem;
  line-height: 1.1;
}

.timeline-stage p {
  margin: 0 0 22px;
  color: rgba(250, 242, 224, 0.8);
}

.timeline-meta {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 14px;
  margin: 0;
}

.timeline-meta div {
  padding: 12px 14px;
  border-radius: 12px;
  background: rgba(255, 255, 255, 0.04);
  border: 1px solid rgba(255, 255, 255, 0.06);
}

.timeline-meta dt {
  margin: 0 0 4px;
  font-size: 0.72rem;
  letter-spacing: 0.1em;
  text-transform: uppercase;
  color: rgba(250, 242, 224, 0.55);
}

.timeline-meta dd {
  margin: 0;
  font-weight: 600;
}

.timeline-controls {
  padding: 28px;
  border-radius: 22px;
  background: rgba(115, 31, 56, 0.22);
  border: 1px solid var(--line);
}

.timeline-controls label {
  display: block;
  margin-bottom: 14px;
  font-size: 0.82rem;
  letter-spacing: 0.1em;
  text-transform: uppercase;
  color: rgba(250, 242, 224, 0.68);
}

#timeline-range {
  width: 100%;
  accent-color: var(--gold);
}

.timeline-labels {
  display: flex;
  justify-content: space-between;
  gap: 8px;
  margin-top: 10px;
  font-size: 0.74rem;
  color: rgba(250, 242, 224, 0.62);
}

.timeline-note {
  margin: 18px 0 0;
  font-size: 0.88rem;
  color: rgba(250, 242, 224, 0.68);
}

.screen-gallery {
  display: grid;
  grid-template-columns: repeat(12, 1fr);
  gap: 18px;
}

.screen-shot {
  margin: 0;
  padding: 14px;
  border-radius: 22px;
  background: var(--glass);
  border: 1px solid var(--line);
}

.screen-shot.featured {
  grid-column: span 6;
}

.screen-shot:not(.featured) {
  grid-column: span 3;
}

.screen-shot img {
  width: 100%;
  border-radius: 18px;
  border: 1px solid rgba(217, 166, 64, 0.22);
}

.screen-shot figcaption {
  margin-top: 12px;
  font-size: 0.88rem;
  color: rgba(250, 242, 224, 0.72);
}

.about-grid {
  display: grid;
  grid-template-columns: 0.9fr 1.1fr;
  gap: 36px;
  align-items: start;
}

.about-copy p {
  margin: 0 0 16px;
  color: rgba(250, 242, 224, 0.8);
}

.about-closer {
  margin-top: 22px !important;
  color: var(--cream) !important;
}

.section-privacy {
  background: rgba(0, 0, 0, 0.14);
  border-top: 1px solid var(--line);
}

.effective-date {
  margin-top: 14px;
  color: rgba(250, 242, 224, 0.62);
  font-size: 0.92rem;
}

.policy-list {
  margin: 0;
  padding: 0;
  list-style: none;
  display: grid;
  gap: 18px;
}

.policy-list li {
  padding: 22px 24px;
  border-radius: 16px;
  background: var(--glass);
  border: 1px solid var(--line);
}

.policy-list h3 {
  margin: 0 0 8px;
  font-family: "Cormorant Garamond", Georgia, serif;
  font-size: 1.35rem;
}

.policy-list p {
  margin: 0;
  color: rgba(250, 242, 224, 0.78);
}

.support-panel {
  padding-bottom: 96px;
}

.support-grid {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 18px;
}

.support-card {
  padding: 24px;
  border-radius: 18px;
  background: var(--glass);
  border: 1px solid var(--line);
}

.support-label {
  margin: 0 0 8px;
  color: var(--gold);
  text-transform: uppercase;
  letter-spacing: 0.12em;
  font-size: 0.76rem;
  font-weight: 700;
}

.support-card a {
  font-size: 1.2rem;
  font-weight: 600;
}

.support-note,
.support-card ul {
  margin: 12px 0 0;
  color: rgba(250, 242, 224, 0.72);
}

.support-card li + li {
  margin-top: 8px;
}

.site-footer {
  border-top: 1px solid var(--line);
  background: rgba(15, 20, 43, 0.92);
  padding: 28px 0 36px;
}

.footer-inner {
  display: grid;
  gap: 18px;
  justify-items: center;
  text-align: center;
}

.footer-nav {
  display: flex;
  flex-wrap: wrap;
  gap: 18px;
  justify-content: center;
}

.footer-nav a {
  color: rgba(250, 242, 224, 0.76);
  text-decoration: none;
}

.footer-copy {
  margin: 0;
  color: rgba(250, 242, 224, 0.55);
  font-size: 0.88rem;
}

.reveal {
  opacity: 0;
  transform: translateY(18px);
  transition: opacity 0.6s ease, transform 0.6s ease;
}

.reveal.is-visible {
  opacity: 1;
  transform: translateY(0);
}

@media (max-width: 980px) {
  .masthead-grid,
  .timeline-demo,
  .about-grid,
  .support-grid {
    grid-template-columns: 1fr;
  }

  .registry-track {
    grid-template-columns: repeat(3, minmax(0, 1fr));
  }

  .screen-shot.featured,
  .screen-shot:not(.featured) {
    grid-column: span 4;
  }

  .masthead-device {
    min-height: auto;
    padding-top: 20px;
  }

  .card-a,
  .card-b {
    position: static;
    width: 100%;
    margin-top: 14px;
  }
}

@media (max-width: 720px) {
  .menu-toggle {
    display: block;
  }

  .site-nav {
    position: absolute;
    top: 100%;
    right: 20px;
    left: 20px;
    display: none;
    flex-direction: column;
    align-items: flex-start;
    padding: 16px;
    border-radius: 16px;
    background: rgba(15, 20, 43, 0.96);
    border: 1px solid var(--line);
  }

  .site-nav.is-open {
    display: flex;
  }

  .registry-track {
    grid-template-columns: repeat(2, minmax(0, 1fr));
  }

  .ledger-row {
    grid-template-columns: 1fr;
    gap: 10px;
  }

  .screen-shot.featured,
  .screen-shot:not(.featured) {
    grid-column: span 12;
  }

  .timeline-meta {
    grid-template-columns: 1fr;
  }
}
