:root {
  --gold: #e4c27a;
  --gold-deep: #c9a056;
  --ink: #f6edd8;
  --muted: rgba(246, 237, 216, 0.72);
  --night: #08060c;
  --panel: rgba(18, 14, 24, 0.88);
  --line: rgba(228, 194, 122, 0.22);
  --fog: 8, 6, 12;
}

html[data-theme="light"] {
  color-scheme: light;
  --ink: #1c140c;
  --muted: rgba(28, 20, 12, 0.68);
  --night: #f3ebe0;
  --panel: rgba(255, 250, 242, 0.9);
  --line: rgba(160, 120, 48, 0.28);
  --fog: 243, 235, 224;
}

* { box-sizing: border-box; }

html, body {
  margin: 0;
  color: var(--ink);
  background: var(--night);
  font-family: Onest, "Segoe UI", sans-serif;
}

html { height: 100%; }

body {
  min-height: 100%;
  overflow-x: hidden;
  touch-action: pan-y;
}

.stage,
.vignette,
.corner,
.stage-poster {
  position: fixed;
  inset: 0;
  width: 100%;
  height: 100%;
  min-height: 100vh;
  min-height: 100dvh;
  pointer-events: none;
}

.stage { z-index: 0; }

.stage-poster {
  background: var(--night) url("./media/poster.webp") center / cover no-repeat;
  z-index: 0;
}

#sphere {
  position: absolute;
  inset: 0;
  width: 100%;
  height: 100%;
  display: block;
  z-index: 1;
  opacity: 0;
  transition: opacity 0.35s ease;
}

#sphere.is-on { opacity: 1; }

.vignette {
  z-index: 2;
  background:
    radial-gradient(ellipse at 50% 44%, transparent 22%, rgba(var(--fog), 0.28) 52%, rgba(var(--fog), 0.88) 100%),
    linear-gradient(180deg, rgba(var(--fog), 0.62) 0%, transparent 24%, transparent 58%, rgba(var(--fog), 0.82) 100%),
    linear-gradient(90deg, rgba(var(--fog), 0.58) 0%, transparent 36%, transparent 68%, rgba(var(--fog), 0.42) 100%);
}

.corner {
  z-index: 3;
  background: linear-gradient(to top left, rgba(var(--fog), 0.96) 0%, rgba(var(--fog), 0.55) 38%, transparent 68%);
}

.load {
  position: fixed;
  top: 1.25rem;
  left: 50%;
  z-index: 8;
  width: min(10rem, 38vw);
  transform: translateX(-50%);
  pointer-events: none;
  transition: opacity 0.45s ease, transform 0.45s ease;
}

.load.is-gone {
  opacity: 0;
  transform: translate(-50%, -8px);
}

.load-label {
  display: block;
  margin-bottom: 0.35rem;
  text-align: center;
  font-family: "Cormorant Garamond", Georgia, serif;
  font-size: 0.78rem;
  letter-spacing: 0.22em;
  text-transform: uppercase;
  color: var(--gold);
}

.load-track {
  height: 1px;
  background: rgba(228, 194, 122, 0.22);
}

.load-track i {
  display: block;
  width: 0;
  height: 100%;
  background: var(--gold);
}

.chrome {
  position: fixed;
  top: 0;
  left: 0;
  right: 0;
  z-index: 9;
  display: flex;
  justify-content: space-between;
  align-items: center;
  padding: 1.15rem 1.4rem 0;
  pointer-events: none;
}

.chrome a,
.chrome button { pointer-events: auto; }

.btn-back {
  display: inline-flex;
  align-items: center;
  background: var(--gold);
  color: #1a1208;
  font-weight: 700;
  font-size: 0.84rem;
  letter-spacing: 0.02em;
  padding: 0.62rem 1.05rem;
  border-radius: 999px;
  text-decoration: none;
  box-shadow: 0 10px 28px rgba(228, 194, 122, 0.32);
}

.chrome-tools {
  display: flex;
  align-items: center;
  gap: 0.4rem;
  pointer-events: auto;
}
.locale {
  display: inline-flex;
  border: 1px solid var(--line);
  border-radius: 999px;
  overflow: hidden;
  background: rgba(var(--fog), 0.45);
  backdrop-filter: blur(10px);
}

.locale button {
  border: 0;
  background: transparent;
  color: var(--muted);
  padding: 0.38rem 0.72rem;
  cursor: pointer;
  font: 600 0.72rem/1 Onest, sans-serif;
  letter-spacing: 0.08em;
}

.locale button.is-on {
  background: var(--gold);
  color: #1a1208;
}

.progress {
  position: fixed;
  top: 0;
  left: 0;
  right: 0;
  z-index: 10;
  height: 2px;
  background: transparent;
  pointer-events: none;
}

.progress i {
  display: block;
  width: 0;
  height: 100%;
  background: linear-gradient(90deg, transparent, var(--gold));
}

.scroll-track {
  height: 620vh;
  pointer-events: none;
}

.scene {
  position: fixed;
  left: 0;
  right: 0;
  top: 0;
  bottom: 0;
  z-index: 5;
  display: flex;
  flex-direction: column;
  justify-content: flex-end;
  width: min(40rem, calc(100% - 2.8rem));
  margin: 0 0 6.5rem 1.4rem;
  opacity: 0;
  transform: translate3d(0, 18px, 0);
  pointer-events: none;
  text-shadow: 0 10px 36px rgba(0, 0, 0, 0.45);
}

.scene-hero {
  opacity: 1;
  transform: none;
}

.scene.is-on {
  opacity: 1;
  transform: translate3d(0, 0, 0);
}

.scene-cta.is-on { pointer-events: auto; }

.eyebrow,
.kicker {
  margin: 0 0 0.55rem;
  color: var(--gold);
  letter-spacing: 0.24em;
  text-transform: uppercase;
  font-size: 0.72rem;
  font-weight: 600;
}

.kicker { letter-spacing: 0.32em; }

h1, h2 {
  margin: 0;
  font-family: "Cormorant Garamond", Georgia, serif;
  font-weight: 600;
  letter-spacing: -0.02em;
  line-height: 0.94;
}

h1 {
  font-size: clamp(3.6rem, 9vw, 7.2rem);
}

h2 {
  font-size: clamp(2.1rem, 5.4vw, 3.8rem);
  max-width: 18ch;
}

.lead {
  max-width: 28rem;
  margin: 0.9rem 0 0;
  color: var(--muted);
  font-size: 1.05rem;
  line-height: 1.55;
}

.actions {
  display: flex;
  flex-wrap: wrap;
  gap: 0.7rem;
  margin-top: 1.35rem;
}

.btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  padding: 0.78rem 1.15rem;
  border-radius: 999px;
  text-decoration: none;
  border: 0;
  cursor: pointer;
  font: 600 0.9rem/1 Onest, sans-serif;
  color: #1a1208;
  background: linear-gradient(135deg, #f0d59a, var(--gold-deep));
  box-shadow: 0 10px 30px rgba(201, 160, 86, 0.28);
}

.btn.ghost {
  color: var(--ink);
  background: rgba(255, 255, 255, 0.06);
  border: 1px solid rgba(228, 194, 122, 0.35);
  box-shadow: none;
}

.btn:focus-visible,
.btn-back:focus-visible,
.locale button:focus-visible {
  outline: 2px solid var(--gold);
  outline-offset: 3px;
}

.by {
  margin: 1.15rem 0 0;
  font-size: 0.82rem;
  letter-spacing: 0.06em;
  color: rgba(246, 237, 216, 0.55);
}

.hint {
  position: fixed;
  left: 50%;
  bottom: 1.2rem;
  z-index: 6;
  margin: 0;
  transform: translateX(-50%);
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 0.35rem;
  font-size: 0.72rem;
  letter-spacing: 0.22em;
  text-transform: uppercase;
  color: var(--gold);
  pointer-events: none;
  transition: opacity 0.4s ease;
}

.hint.is-gone { opacity: 0; }

.chevron {
  width: 7px;
  height: 7px;
  border-right: 1px solid var(--gold);
  border-bottom: 1px solid var(--gold);
  transform: rotate(45deg);
  animation: drop 1.6s ease-in-out infinite;
}

.noscript {
  position: relative;
  z-index: 6;
  padding: 1rem 1.4rem;
}

.dock {
  position: fixed;
  left: 50%;
  bottom: 1rem;
  z-index: 8;
  transform: translateX(-50%) translateY(12px);
  display: flex;
  flex-wrap: wrap;
  justify-content: center;
  gap: 0.45rem;
  max-width: calc(100% - 1.6rem);
  padding: 0.4rem;
  border-radius: 999px;
  background: rgba(var(--fog), 0.62);
  border: 1px solid var(--line);
  backdrop-filter: blur(14px);
  opacity: 0;
  pointer-events: none;
  transition: opacity 0.35s ease, transform 0.35s ease;
}

.dock.is-on {
  opacity: 1;
  pointer-events: auto;
  transform: translateX(-50%) translateY(0);
}

.dock .btn {
  padding: 0.62rem 0.95rem;
  font-size: 0.78rem;
  box-shadow: none;
}

.sheet {
  position: relative;
  z-index: 6;
  padding: 12vh 0 5rem;
  background: linear-gradient(180deg, rgba(8, 6, 12, 0) 0, var(--night) 9vh, var(--night) 100%);
}

.sheet-inner {
  width: min(58rem, calc(100% - 2.4rem));
  margin: 0 auto;
}

.sheet-inner h2 { max-width: 18ch; }

.sheet-lead {
  max-width: 40rem;
  margin: 1rem 0 0;
  color: var(--muted);
  font-size: 1.05rem;
  line-height: 1.6;
}

.pillars {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 1rem;
  margin: 2.4rem 0 3.2rem;
}

.pillars article,
.faq-item {
  padding: 1.2rem 1.2rem 1.3rem;
  border: 1px solid var(--line);
  border-radius: 1.1rem;
  background: var(--panel);
}

.pillars h3,
.steps h3,
.faq-item h3 {
  margin: 0;
  font-family: "Cormorant Garamond", Georgia, serif;
  font-size: 1.55rem;
  font-weight: 600;
  letter-spacing: -0.02em;
  line-height: 1.15;
}

.pillars p,
.steps p,
.faq-item p {
  margin: 0.55rem 0 0;
  color: var(--muted);
  font-size: 0.98rem;
  line-height: 1.62;
}

.howto,
.faq,
.order {
  margin-top: 3.2rem;
}

.steps {
  list-style: none;
  margin: 1.4rem 0 0;
  padding: 0;
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 1rem;
  counter-reset: step;
}

.steps li {
  counter-increment: step;
  padding: 1.2rem;
  border: 1px solid var(--line);
  border-radius: 1.1rem;
  background: var(--panel);
}

.steps li::before {
  content: counter(step, decimal-leading-zero);
  display: block;
  margin-bottom: 0.7rem;
  color: var(--gold);
  letter-spacing: 0.28em;
  font-size: 0.72rem;
  font-weight: 600;
}

.faq-list {
  display: flex;
  flex-direction: column;
  gap: 0.75rem;
  margin-top: 1.4rem;
  max-width: 44rem;
}

.byline {
  margin: 1.4rem 0 0;
  font-size: 0.88rem;
  letter-spacing: 0.03em;
  color: rgba(246, 237, 216, 0.55);
}

.lead-form {
  position: relative;
  display: flex;
  flex-direction: column;
  gap: 0.85rem;
  margin-top: 1.4rem;
  max-width: 40rem;
}

.lead-row {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 0.75rem;
}

.lead-form label {
  display: flex;
  flex-direction: column;
  gap: 0.35rem;
  font-size: 0.88rem;
  color: var(--muted);
}

.lead-form input,
.lead-form textarea {
  width: 100%;
  border: 1px solid var(--line);
  border-radius: 14px;
  padding: 0.75rem 0.9rem;
  font: inherit;
  color: var(--ink);
  background: rgba(255, 255, 255, 0.05);
}

.lead-form input:focus,
.lead-form textarea:focus {
  outline: none;
  border-color: var(--gold);
  box-shadow: 0 0 0 3px rgba(228, 194, 122, 0.16);
}

.lead-form button[type="submit"] { align-self: flex-start; }
.lead-form button[disabled] { opacity: 0.65; cursor: wait; }

.form-legal {
  margin: 0;
  font-size: 0.8rem;
  line-height: 1.45;
  color: var(--muted);
  max-width: 36rem;
}

.lead-status { min-height: 1.3em; margin: 0; font-size: 0.92rem; }
.lead-status.is-success { color: var(--gold); font-weight: 600; }
.lead-status.is-error { color: #e8a0a0; font-weight: 600; }

.hp-field {
  position: absolute !important;
  left: 0 !important;
  top: 0 !important;
  width: 1px !important;
  height: 1px !important;
  margin: 0 !important;
  padding: 0 !important;
  overflow: hidden !important;
  clip: rect(0, 0, 0, 0) !important;
  clip-path: inset(50%) !important;
  border: 0 !important;
  opacity: 0 !important;
  pointer-events: none !important;
}

.foot {
  position: relative;
  z-index: 6;
  display: flex;
  flex-wrap: wrap;
  justify-content: space-between;
  gap: 0.65rem 1rem;
  padding: 1.2rem 1.4rem 5.5rem;
  background: var(--night);
  color: var(--muted);
  font-size: 0.88rem;
}

.foot a {
  color: var(--gold);
  text-decoration: none;
  font-weight: 600;
}

@keyframes drop {
  0%, 100% { opacity: 0.35; transform: rotate(45deg) translateY(-3px); }
  50% { opacity: 1; transform: rotate(45deg) translateY(4px); }
}

@media (max-width: 860px) {
  .pillars,
  .steps { grid-template-columns: 1fr; }
}

@media (max-width: 720px) {
  .scene {
    justify-content: flex-end;
    margin: 0 0 5.8rem 1.1rem;
    width: calc(100% - 2.2rem);
  }

  h1 { font-size: clamp(3.1rem, 18vw, 4.6rem); }
  h2 { font-size: clamp(1.85rem, 8vw, 2.6rem); }

  .lead-row { grid-template-columns: 1fr; }

  .dock {
    border-radius: 1.1rem;
    bottom: 0.7rem;
  }

  .dock .btn { flex: 1 1 auto; }
}

@media (prefers-reduced-motion: reduce) {
  .scroll-track { height: 0; }
  .hint, .load, .progress, .chevron { display: none; }
  .scene {
    position: relative;
    inset: auto;
    opacity: 1;
    transform: none;
    margin: 0 auto;
    padding: 18vh 1.4rem 4vh;
    width: min(40rem, calc(100% - 2.4rem));
    pointer-events: auto;
  }
  #sphere { opacity: 1; }
  .stage-poster {
    background-image: url("./media/cover.webp");
  }
  .dock {
    opacity: 1;
    pointer-events: auto;
    transform: translateX(-50%);
  }
  .sheet {
    padding-top: 4vh;
    background: var(--night);
  }
}
