:root {
  --ink: #050202;
  --ember: #3b0505;
  --red: #7a1111;
  --red-bright: #a83232;
  --gold: #d6a84f;
  --soft-gold: #f6d889;
  --paper: #fff8e7;
  --muted: rgba(255, 248, 231, 0.72);
  --line: rgba(214, 168, 79, 0.35);
  --glass: rgba(5, 2, 2, 0.72);
  --shadow: rgba(214, 168, 79, 0.24);
  --display: "Cormorant Garamond", Georgia, serif;
  --body: "Nunito Sans", Verdana, sans-serif;
}

* {
  box-sizing: border-box;
}

html {
  scroll-behavior: smooth;
}

body {
  margin: 0;
  color: var(--paper);
  font-family: var(--body);
  background:
    linear-gradient(180deg, rgba(5, 2, 2, 0.3), var(--ink) 68%),
    var(--ink) url("assets/portal-background.png") center top / cover fixed;
}

body::before {
  position: fixed;
  inset: 0;
  z-index: -1;
  pointer-events: none;
  content: "";
  background-image: radial-gradient(rgba(246, 216, 137, 0.12) 1px, transparent 1px);
  background-size: 28px 28px;
  opacity: 0.24;
}

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

button,
a {
  -webkit-tap-highlight-color: transparent;
}

.hero {
  min-height: 100vh;
  padding: 24px clamp(18px, 4vw, 72px) 64px;
}

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

.brand {
  display: inline-flex;
  align-items: center;
  gap: 10px;
  min-width: 0;
  color: var(--soft-gold);
  font-weight: 800;
}

.brand img {
  width: 38px;
  height: 38px;
  border-radius: 8px;
  box-shadow: 0 0 18px var(--shadow);
}

.brand span {
  overflow-wrap: anywhere;
}

.nav-links {
  display: flex;
  gap: clamp(12px, 3vw, 30px);
  color: var(--muted);
  font-size: 0.92rem;
  font-weight: 700;
}

.nav-links a:hover,
.nav-links a:focus-visible {
  color: var(--soft-gold);
}

.hero-grid {
  display: grid;
  grid-template-columns: minmax(0, 1fr) minmax(300px, 440px);
  align-items: center;
  gap: clamp(34px, 7vw, 96px);
  max-width: 1180px;
  min-height: calc(100vh - 92px);
  margin: 0 auto;
}

.hero-copy {
  max-width: 720px;
}

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

h1,
h2,
h3,
p {
  margin-top: 0;
}

h1,
h2 {
  font-family: var(--display);
  font-weight: 700;
  line-height: 0.96;
}

h1 {
  max-width: 760px;
  margin-bottom: 24px;
  font-size: clamp(4rem, 13vw, 9.6rem);
  text-wrap: balance;
}

h2 {
  margin-bottom: 0;
  font-size: clamp(2.6rem, 7vw, 6rem);
  text-wrap: balance;
}

h3 {
  margin-bottom: 10px;
  color: var(--soft-gold);
  font-family: var(--display);
  font-size: 1.7rem;
}

.lead {
  max-width: 620px;
  color: var(--muted);
  font-size: clamp(1.05rem, 2vw, 1.28rem);
  line-height: 1.75;
}

.hero-actions {
  display: flex;
  flex-wrap: wrap;
  gap: 12px;
  margin-top: 32px;
}

.button {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  min-height: 48px;
  padding: 0 20px;
  border: 1px solid var(--line);
  border-radius: 8px;
  font: 800 0.94rem var(--body);
  cursor: pointer;
  transition: transform 180ms ease, border-color 180ms ease, background 180ms ease;
}

.button:hover,
.button:focus-visible {
  transform: translateY(-2px);
  border-color: var(--soft-gold);
  outline: none;
}

.button.primary {
  color: #1b0904;
  background: linear-gradient(135deg, var(--soft-gold), var(--gold));
}

.button.ghost {
  color: var(--soft-gold);
  background: rgba(5, 2, 2, 0.42);
}

.proof {
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  gap: 12px;
  max-width: 570px;
  margin: 40px 0 0;
}

.proof div {
  padding-top: 14px;
  border-top: 1px solid var(--line);
}

.proof dt {
  color: var(--soft-gold);
  font-family: var(--display);
  font-size: 2.35rem;
  font-weight: 700;
}

.proof dd {
  margin: 0;
  color: var(--muted);
  font-size: 0.9rem;
}

.phone-stage {
  position: relative;
  display: grid;
  place-items: center;
  min-height: 620px;
}

.moon-disc {
  position: absolute;
  width: min(82vw, 420px);
  aspect-ratio: 1;
  border: 1px solid rgba(246, 216, 137, 0.28);
  border-radius: 50%;
  background:
    radial-gradient(circle at 50% 35%, rgba(246, 216, 137, 0.22), transparent 38%),
    radial-gradient(circle, rgba(122, 17, 17, 0.52), rgba(5, 2, 2, 0.12) 68%);
  box-shadow: 0 0 60px rgba(214, 168, 79, 0.18);
}

.phone-shell {
  position: relative;
  width: min(88vw, 330px);
  min-height: 604px;
  padding: 13px;
  border: 1px solid rgba(246, 216, 137, 0.48);
  border-radius: 34px;
  background: linear-gradient(145deg, rgba(246, 216, 137, 0.2), rgba(5, 2, 2, 0.88));
  box-shadow: 0 32px 70px rgba(0, 0, 0, 0.42), 0 0 44px rgba(214, 168, 79, 0.18);
}

.phone-screen {
  min-height: 578px;
  padding: 28px 20px;
  border-radius: 24px;
  background:
    linear-gradient(180deg, rgba(5, 2, 2, 0.28), rgba(5, 2, 2, 0.84)),
    url("assets/portal-background.png") center / cover;
  overflow: hidden;
}

.phone-date {
  margin-bottom: 18px;
  color: var(--muted);
  font-size: 0.82rem;
  text-align: center;
  text-transform: capitalize;
}

.phone-kicker {
  color: var(--soft-gold);
  font-family: var(--display);
  font-size: 2rem;
  font-weight: 700;
  text-align: center;
}

.daily-card,
.quote-card {
  border: 1px solid var(--line);
  border-radius: 8px;
  background: rgba(5, 2, 2, 0.72);
  box-shadow: inset 0 0 34px rgba(214, 168, 79, 0.08);
}

.daily-card {
  padding: 20px;
}

.category-pill {
  display: inline-flex;
  align-items: center;
  min-height: 30px;
  padding: 0 10px;
  border: 1px solid var(--line);
  border-radius: 999px;
  color: var(--soft-gold);
  font-size: 0.78rem;
  font-weight: 800;
}

.proverb {
  margin: 18px 0;
  color: var(--paper);
  font-family: var(--display);
  font-size: 1.65rem;
  line-height: 1.18;
}

.explanation,
.reflection {
  color: var(--muted);
  font-size: 0.94rem;
  line-height: 1.55;
}

.reflection {
  color: var(--soft-gold);
  font-weight: 700;
}

.phone-actions {
  display: grid;
  gap: 10px;
  margin-top: 18px;
}

.phone-actions span {
  padding: 12px;
  border: 1px solid var(--line);
  border-radius: 8px;
  color: var(--soft-gold);
  background: rgba(5, 2, 2, 0.5);
  font-size: 0.85rem;
  font-weight: 800;
  text-align: center;
}

.section {
  max-width: 1180px;
  margin: 0 auto;
  padding: 82px clamp(18px, 4vw, 72px);
}

.section-heading {
  display: grid;
  grid-template-columns: minmax(220px, 0.68fr) minmax(0, 1fr);
  gap: clamp(20px, 6vw, 74px);
  align-items: end;
  margin-bottom: 44px;
}

.section-heading.narrow {
  display: block;
  max-width: 780px;
}

.feature-grid {
  display: grid;
  grid-template-columns: repeat(4, minmax(0, 1fr));
  gap: 1px;
  background: var(--line);
  border: 1px solid var(--line);
}

.feature-grid article {
  min-height: 250px;
  padding: 28px;
  background: rgba(5, 2, 2, 0.82);
}

.feature-grid p,
.timeline p {
  color: var(--muted);
  line-height: 1.65;
}

.icon {
  display: inline-flex;
  margin-bottom: 44px;
  color: var(--gold);
  font-size: 0.78rem;
  font-weight: 900;
}

.preview-panel {
  position: relative;
  display: grid;
  grid-template-columns: 120px minmax(0, 1fr) auto;
  align-items: center;
  gap: 24px;
  padding: clamp(20px, 5vw, 44px);
  border: 1px solid var(--line);
  border-radius: 8px;
  background: linear-gradient(135deg, rgba(59, 5, 5, 0.86), rgba(5, 2, 2, 0.9));
}

.quote-mark {
  color: rgba(246, 216, 137, 0.28);
  font-family: var(--display);
  font-size: 13rem;
  line-height: 0.7;
}

.quote-card {
  padding: 28px;
}

.quote-card p {
  margin: 18px 0;
  color: var(--paper);
  font-family: var(--display);
  font-size: clamp(1.85rem, 4vw, 3.6rem);
  line-height: 1.04;
}

.quote-card small {
  color: var(--soft-gold);
  font-size: 1rem;
  font-weight: 800;
  line-height: 1.5;
}

.routine {
  display: grid;
  grid-template-columns: minmax(260px, 0.75fr) minmax(0, 1fr);
  gap: clamp(28px, 8vw, 96px);
  align-items: start;
}

.timeline {
  display: grid;
  gap: 0;
  margin: 0;
  padding: 0;
  list-style: none;
}

.timeline li {
  display: grid;
  grid-template-columns: 110px minmax(0, 1fr);
  gap: 24px;
  padding: 24px 0;
  border-top: 1px solid var(--line);
}

.timeline span {
  color: var(--soft-gold);
  font-weight: 900;
}

.test-invite {
  display: grid;
  grid-template-columns: minmax(0, 1fr) minmax(280px, 440px);
  gap: clamp(36px, 6vw, 72px);
  align-items: start;
}

.test-copy h2 {
  max-width: 760px;
  margin-bottom: 24px;
  font-size: clamp(2.8rem, 6vw, 5.3rem);
  line-height: 1.02;
}

.test-copy p:not(.eyebrow) {
  max-width: 600px;
  color: var(--muted);
  font-size: 1.05rem;
  line-height: 1.7;
}

.test-form {
  display: grid;
  gap: 16px;
  padding: clamp(20px, 4vw, 32px);
  border: 1px solid var(--line);
  border-radius: 8px;
  background: linear-gradient(145deg, rgba(59, 5, 5, 0.82), rgba(5, 2, 2, 0.88));
  box-shadow: inset 0 0 42px rgba(214, 168, 79, 0.08);
}

.test-form label {
  display: grid;
  gap: 8px;
  color: var(--soft-gold);
  font-size: 0.88rem;
  font-weight: 900;
}

.test-form input {
  width: 100%;
  min-height: 48px;
  padding: 0 14px;
  border: 1px solid rgba(214, 168, 79, 0.42);
  border-radius: 8px;
  color: var(--paper);
  background: rgba(5, 2, 2, 0.62);
  font: 700 1rem var(--body);
}

.test-form input:focus {
  border-color: var(--soft-gold);
  outline: 2px solid rgba(246, 216, 137, 0.18);
  outline-offset: 2px;
}

.test-form .button {
  width: 100%;
  margin-top: 4px;
}

.form-message {
  min-height: 48px;
  margin: 0;
  color: var(--soft-gold);
  font-weight: 800;
  line-height: 1.45;
}

.hidden-frame {
  position: absolute;
  width: 0;
  height: 0;
  border: 0;
  opacity: 0;
  pointer-events: none;
}

.footer {
  display: flex;
  justify-content: space-between;
  gap: 16px;
  padding: 28px clamp(18px, 4vw, 72px);
  border-top: 1px solid var(--line);
  background: rgba(5, 2, 2, 0.86);
}

.footer p {
  margin: 0;
  color: var(--soft-gold);
  font-weight: 900;
}

.footer p a {
  color: inherit;
  text-decoration: none;
}

.footer p a:hover {
  text-decoration: underline;
}

@media (max-width: 1080px) {
  .test-invite {
    grid-template-columns: 1fr;
  }

  .test-copy h2 {
    max-width: 820px;
  }
}

@media (max-width: 900px) {
  .hero-grid,
  .section-heading,
  .routine {
    grid-template-columns: 1fr;
  }

  .hero-grid {
    padding-top: 48px;
  }

  .phone-stage {
    min-height: auto;
  }

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

  .preview-panel {
    grid-template-columns: 1fr;
  }

  .quote-mark {
    display: none;
  }
}

@media (max-width: 620px) {
  .topbar,
  .footer {
    align-items: flex-start;
    flex-direction: column;
  }

  .nav-links {
    width: 100%;
    justify-content: space-between;
  }

  .hero {
    padding-bottom: 44px;
  }

  h1 {
    font-size: clamp(3.2rem, 18vw, 5rem);
  }

  .proof,
  .feature-grid,
  .timeline li {
    grid-template-columns: 1fr;
  }

  .feature-grid article {
    min-height: 0;
  }

  .phone-shell {
    min-height: 0;
  }

  .phone-screen {
    min-height: 540px;
  }

  .test-copy h2 {
    font-size: clamp(2.5rem, 13vw, 4.2rem);
  }
}
