:root {
  --black: #050505;
  --black-soft: #0d0b0b;
  --panel: rgba(16, 14, 15, 0.82);
  --panel-solid: #111010;
  --line: rgba(239, 232, 218, 0.14);
  --text: #efe8da;
  --muted: #b9aea0;
  --red: #b4141a;
  --red-dark: #62090d;
  --gold: #b9975b;
  --silver: #d6d2ca;
  --shadow: 0 24px 80px rgba(0, 0, 0, 0.55);
  color-scheme: dark;
}

* {
  box-sizing: border-box;
}

html {
  scroll-behavior: smooth;
}

body {
  margin: 0;
  min-width: 320px;
  background:
    radial-gradient(circle at 80% 0%, rgba(180, 20, 26, 0.18), transparent 34rem),
    linear-gradient(180deg, #050505 0%, #0d0b0b 48%, #050505 100%);
  color: var(--text);
  font-family: Inter, system-ui, -apple-system, BlinkMacSystemFont, "Segoe UI", sans-serif;
}

button,
input {
  font: inherit;
}

a {
  color: inherit;
  text-decoration: none;
}

.site-shell {
  overflow: hidden;
}

.hero {
  position: relative;
  min-height: 100vh;
  isolation: isolate;
  padding: 28px clamp(18px, 4vw, 64px) 72px;
}

.hero__backdrop {
  position: absolute;
  inset: 0;
  z-index: -2;
  background-image:
    linear-gradient(90deg, rgba(5, 5, 5, 0.92) 0%, rgba(5, 5, 5, 0.72) 43%, rgba(5, 5, 5, 0.3) 100%),
    linear-gradient(180deg, rgba(5, 5, 5, 0.08) 0%, rgba(5, 5, 5, 0.72) 100%),
    url("assets/hero-bg.png");
  background-size: cover;
  background-position: center;
}

.hero::after {
  content: "";
  position: absolute;
  inset: 0;
  z-index: -1;
  background-image:
    linear-gradient(rgba(239, 232, 218, 0.04) 1px, transparent 1px),
    linear-gradient(90deg, rgba(239, 232, 218, 0.04) 1px, transparent 1px);
  background-size: 76px 76px;
  mask-image: linear-gradient(180deg, rgba(0, 0, 0, 0.64), transparent 88%);
  pointer-events: none;
}

.nav {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 24px;
  max-width: 1220px;
  margin: 0 auto;
}

.brand,
.nav__links,
.auth-actions {
  display: flex;
  align-items: center;
}

.brand {
  gap: 12px;
  color: var(--text);
  font-weight: 700;
  letter-spacing: 0.08em;
  text-transform: uppercase;
}

.brand__mark {
  display: grid;
  width: 42px;
  height: 42px;
  place-items: center;
  border: 1px solid rgba(185, 151, 91, 0.6);
  border-radius: 50%;
  color: var(--gold);
  font-family: Cinzel, serif;
}

.nav__links {
  gap: 22px;
  color: var(--muted);
  font-size: 0.9rem;
}

.nav__links a:hover {
  color: var(--text);
}

.auth-actions {
  gap: 10px;
}

.nav-button,
.link-button,
.modal-close {
  border: 0;
  cursor: pointer;
  color: var(--text);
}

.nav-button {
  min-height: 38px;
  border: 1px solid rgba(239, 232, 218, 0.16);
  border-radius: 999px;
  padding: 0 14px;
  background: rgba(5, 5, 5, 0.42);
  font-size: 0.82rem;
  font-weight: 800;
}

.nav-button--filled {
  border-color: rgba(180, 20, 26, 0.7);
  background: rgba(180, 20, 26, 0.8);
}

.is-hidden {
  display: none !important;
}

.hero__content {
  display: grid;
  grid-template-columns: minmax(0, 1fr) minmax(340px, 460px);
  align-items: center;
  gap: clamp(32px, 6vw, 84px);
  max-width: 1220px;
  min-height: calc(100vh - 102px);
  margin: 0 auto;
  padding-top: 40px;
}

.hero__copy {
  max-width: 720px;
}

.eyebrow,
.panel-kicker {
  margin: 0 0 14px;
  color: var(--gold);
  font-size: 0.78rem;
  font-weight: 700;
  letter-spacing: 0.16em;
  text-transform: uppercase;
}

h1,
h2,
h3 {
  margin: 0;
  font-family: Cinzel, Georgia, serif;
  font-weight: 600;
  line-height: 1.05;
}

h1 {
  max-width: 760px;
  font-size: clamp(3rem, 7vw, 6.8rem);
}

h2 {
  font-size: clamp(2rem, 4vw, 3.8rem);
}

h3 {
  font-size: 1.4rem;
}

.hero__lead {
  max-width: 610px;
  margin: 24px 0 0;
  color: var(--silver);
  font-size: clamp(1rem, 1.8vw, 1.22rem);
  line-height: 1.75;
}

.hero__proof {
  display: flex;
  flex-wrap: wrap;
  gap: 10px;
  margin-top: 30px;
}

.hero__proof span,
.delivery-preview span {
  border: 1px solid rgba(239, 232, 218, 0.13);
  border-radius: 999px;
  padding: 10px 14px;
  background: rgba(5, 5, 5, 0.48);
  color: var(--muted);
  font-size: 0.88rem;
}

.flow-card,
.checkout-card,
.report-panel {
  border: 1px solid var(--line);
  border-radius: 8px;
  background: var(--panel);
  box-shadow: var(--shadow);
  backdrop-filter: blur(18px);
}

.flow-card {
  min-height: 540px;
  padding: 22px;
}

.progress {
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  gap: 8px;
  margin-bottom: 24px;
}

.progress__item {
  border-bottom: 2px solid rgba(239, 232, 218, 0.12);
  padding-bottom: 10px;
  color: rgba(239, 232, 218, 0.42);
  font-size: 0.72rem;
  font-weight: 700;
  text-transform: uppercase;
}

.progress__item.is-active {
  border-color: var(--red);
  color: var(--text);
}

.step-panel {
  display: none;
}

.step-panel.is-visible {
  display: block;
}

.panel-heading {
  margin-bottom: 22px;
}

.panel-heading p:not(.panel-kicker),
.section-heading p,
.report-copy p,
.checkout-card p {
  color: var(--muted);
  line-height: 1.7;
}

label {
  display: block;
  margin-bottom: 16px;
}

label span {
  display: block;
  margin-bottom: 8px;
  color: var(--silver);
  font-size: 0.86rem;
  font-weight: 700;
}

input {
  width: 100%;
  border: 1px solid rgba(239, 232, 218, 0.16);
  border-radius: 8px;
  outline: none;
  padding: 15px 16px;
  background: rgba(5, 5, 5, 0.56);
  color: var(--text);
}

input:focus {
  border-color: rgba(185, 151, 91, 0.7);
  box-shadow: 0 0 0 3px rgba(185, 151, 91, 0.13);
}

.privacy-note {
  margin: 4px 0 18px;
  color: rgba(239, 232, 218, 0.54);
  font-size: 0.85rem;
}

.button {
  display: inline-flex;
  min-height: 50px;
  align-items: center;
  justify-content: center;
  border: 0;
  border-radius: 8px;
  padding: 0 20px;
  cursor: pointer;
  font-weight: 800;
}

.button--primary {
  width: 100%;
  background: linear-gradient(135deg, var(--red), var(--red-dark));
  color: #fff5ec;
  box-shadow: 0 16px 44px rgba(180, 20, 26, 0.28);
}

.button--ghost {
  border: 1px solid rgba(239, 232, 218, 0.17);
  background: rgba(239, 232, 218, 0.04);
  color: var(--text);
}

.button--disabled {
  width: 100%;
  cursor: not-allowed;
  background: rgba(239, 232, 218, 0.09);
  color: rgba(239, 232, 218, 0.48);
}

.button-row {
  display: grid;
  grid-template-columns: 1fr;
  gap: 12px;
}

.reading-section,
.full-report,
.checkout-shell,
.account-section {
  max-width: 1220px;
  margin: 0 auto;
  padding: 86px clamp(18px, 4vw, 64px);
}

.section-heading {
  max-width: 720px;
  margin-bottom: 30px;
}

.reading-grid {
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  gap: 16px;
}

.reading-card {
  min-height: 260px;
  border: 1px solid var(--line);
  border-radius: 8px;
  padding: 24px;
  background:
    linear-gradient(145deg, rgba(180, 20, 26, 0.08), transparent 48%),
    rgba(16, 14, 15, 0.72);
}

.reading-card p {
  color: var(--muted);
  line-height: 1.72;
}

.reading-card--locked {
  opacity: 0.72;
}

.delivery-actions {
  display: grid;
  grid-template-columns: minmax(0, 1fr) minmax(320px, 430px);
  gap: 24px;
  align-items: start;
  border: 1px solid var(--line);
  border-radius: 8px;
  margin-top: 18px;
  padding: 24px;
  background: rgba(16, 14, 15, 0.78);
  box-shadow: var(--shadow);
}

.delivery-actions p {
  color: var(--muted);
  line-height: 1.7;
}

.delivery-controls {
  display: grid;
  gap: 14px;
}

.email-form {
  display: grid;
  gap: 12px;
}

.status-message {
  grid-column: 1 / -1;
  min-height: 22px;
  margin: 0;
  color: var(--gold);
  font-weight: 700;
}

.card-number {
  display: inline-block;
  margin-bottom: 34px;
  color: var(--gold);
  font-family: Cinzel, serif;
}

.full-report {
  display: grid;
  grid-template-columns: minmax(0, 1fr) minmax(320px, 440px);
  gap: 34px;
  align-items: center;
}

.report-panel,
.checkout-card {
  padding: 26px;
}

.price-line,
.checkout-summary {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 18px;
  border-bottom: 1px solid var(--line);
  margin-bottom: 18px;
  padding-bottom: 18px;
}

.price-line strong,
.checkout-summary strong {
  color: var(--gold);
  font-family: Cinzel, serif;
  font-size: 2rem;
}

ul {
  margin: 0 0 22px;
  padding-left: 20px;
  color: var(--muted);
  line-height: 1.9;
}

.checkout-shell {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 18px;
  padding-top: 34px;
}

.delivery-preview {
  display: flex;
  flex-wrap: wrap;
  gap: 10px;
  margin: 24px 0;
}

.account-section {
  padding-top: 34px;
}

.account-layout {
  display: grid;
  grid-template-columns: minmax(300px, 420px) minmax(0, 1fr);
  gap: 18px;
}

.account-card {
  border: 1px solid var(--line);
  border-radius: 8px;
  padding: 24px;
  background:
    linear-gradient(145deg, rgba(185, 151, 91, 0.08), transparent 44%),
    rgba(16, 14, 15, 0.72);
}

.account-card p,
.empty-state {
  color: var(--muted);
  line-height: 1.7;
}

.saved-readings {
  display: grid;
  gap: 12px;
}

.saved-reading {
  border: 1px solid rgba(239, 232, 218, 0.12);
  border-radius: 8px;
  padding: 16px;
  background: rgba(5, 5, 5, 0.35);
}

.saved-reading h4 {
  margin: 0 0 8px;
  color: var(--text);
  font-family: Cinzel, Georgia, serif;
}

.saved-reading p {
  margin: 0;
  color: var(--muted);
  line-height: 1.6;
}

.modal-backdrop {
  position: fixed;
  inset: 0;
  z-index: 20;
  display: grid;
  place-items: center;
  padding: 18px;
  background: rgba(0, 0, 0, 0.72);
  backdrop-filter: blur(12px);
}

.auth-modal {
  position: relative;
  width: min(100%, 460px);
  border: 1px solid rgba(239, 232, 218, 0.16);
  border-radius: 8px;
  padding: 28px;
  background: #100e0f;
  box-shadow: var(--shadow);
}

.modal-close {
  position: absolute;
  top: 14px;
  right: 14px;
  width: 36px;
  height: 36px;
  border-radius: 50%;
  background: rgba(239, 232, 218, 0.08);
  font-size: 1.4rem;
}

.auth-note {
  color: var(--muted);
  line-height: 1.7;
}

.link-button {
  margin-top: 18px;
  padding: 0;
  background: transparent;
  color: var(--gold);
  font-weight: 800;
}

@media (max-width: 900px) {
  .nav {
    align-items: flex-start;
    flex-wrap: wrap;
  }

  .nav__links {
    display: none;
  }

  .hero__content,
  .full-report,
  .checkout-shell,
  .account-layout,
  .delivery-actions {
    grid-template-columns: 1fr;
  }

  .hero__content {
    min-height: auto;
    padding-top: 72px;
  }

  .flow-card {
    min-height: 0;
  }

  .reading-grid {
    grid-template-columns: 1fr;
  }
}

@media (max-width: 560px) {
  .hero {
    padding-inline: 16px;
  }

  .progress {
    grid-template-columns: repeat(2, 1fr);
  }

  h1 {
    font-size: 3rem;
  }
}
