:root {
  --ink: #fff8ea;
  --muted: #d9d6ec;
  --night: #101536;
  --panel: rgba(25, 31, 73, 0.66);
  --panel-strong: rgba(18, 23, 58, 0.82);
  --line: rgba(255, 248, 234, 0.22);
  --gold: #ffe9a7;
  --gold-strong: #ffd979;
  --rose: #f5a8bc;
  --mint: #9bd7c5;
  font-family:
    Inter, ui-sans-serif, system-ui, -apple-system, BlinkMacSystemFont, "Segoe UI",
    sans-serif;
}

* {
  box-sizing: border-box;
}

html {
  scroll-behavior: smooth;
}

body {
  margin: 0;
  color: var(--ink);
  background: #111637;
}

a {
  color: inherit;
}

.hero {
  min-height: 92vh;
  position: relative;
  overflow: hidden;
  background:
    linear-gradient(90deg, rgba(12, 18, 48, 0.44), rgba(12, 18, 48, 0.2)),
    url("../assets/dreamscape-bg.png") center/cover no-repeat;
}

.sky {
  position: absolute;
  inset: 0;
  background:
    radial-gradient(circle at 82% 18%, rgba(255, 233, 167, 0.2), transparent 13rem),
    radial-gradient(circle at 18% 28%, rgba(155, 215, 197, 0.16), transparent 16rem),
    linear-gradient(180deg, rgba(13, 18, 45, 0.18), rgba(13, 18, 45, 0.72));
  animation: breathe 14s ease-in-out infinite alternate;
}

.hero-inner,
.section,
.footer {
  width: min(1120px, calc(100% - 40px));
  margin: 0 auto;
}

.hero-inner {
  position: relative;
  min-height: 92vh;
  display: flex;
  flex-direction: column;
}

.nav {
  display: flex;
  align-items: center;
  justify-content: space-between;
  padding: 26px 0;
}

.brand,
.nav-link,
.button {
  text-decoration: none;
}

.brand {
  display: inline-flex;
  align-items: center;
  gap: 12px;
  font-weight: 900;
  font-size: 22px;
}

.brand img {
  width: 38px;
  height: 38px;
  border-radius: 10px;
}

.nav-link {
  padding: 11px 16px;
  border: 1px solid var(--line);
  border-radius: 8px;
  background: rgba(255, 255, 255, 0.08);
  font-weight: 750;
}

.nav-links {
  display: flex;
  gap: 10px;
}

.hero-copy {
  width: min(690px, 100%);
  margin: auto 0 11vh;
}

.eyebrow,
.section-label {
  margin: 0 0 14px;
  color: var(--gold);
  font-size: 14px;
  font-weight: 900;
  letter-spacing: 0.08em;
  text-transform: uppercase;
}

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

h1 {
  margin-bottom: 22px;
  font-size: clamp(44px, 7vw, 78px);
  line-height: 0.96;
  letter-spacing: 0;
}

h2 {
  margin-bottom: 16px;
  font-size: clamp(30px, 4vw, 48px);
  line-height: 1.05;
  letter-spacing: 0;
}

h3 {
  margin-bottom: 10px;
  font-size: 24px;
  letter-spacing: 0;
}

.lead,
.section p,
.footer {
  color: var(--muted);
  font-size: 19px;
  line-height: 1.65;
}

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

.button {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  min-height: 54px;
  padding: 0 22px;
  border-radius: 8px;
  font-weight: 900;
}

.button.primary {
  color: #19102a;
  background: linear-gradient(180deg, var(--gold), var(--gold-strong));
  box-shadow: 0 16px 34px rgba(255, 217, 121, 0.24);
}

.button.secondary {
  border: 1px solid var(--line);
  background: rgba(255, 255, 255, 0.09);
}

.section {
  padding: 86px 0;
}

.intro,
.preview {
  display: grid;
  grid-template-columns: 0.95fr 1.05fr;
  gap: 70px;
  align-items: center;
}

.feature-grid {
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  gap: 18px;
  padding-top: 20px;
}

.feature-grid article,
.phone,
.cta {
  border: 1px solid var(--line);
  border-radius: 8px;
  background: var(--panel);
  backdrop-filter: blur(18px);
}

.feature-grid article {
  min-height: 240px;
  padding: 24px;
}

.feature-grid span {
  display: block;
  margin-bottom: 28px;
  color: var(--gold);
  font-weight: 900;
}

.feature-grid p {
  font-size: 16px;
}

.preview {
  padding-top: 44px;
}

.phone {
  width: min(390px, 100%);
  justify-self: center;
  padding: 24px;
  background:
    linear-gradient(180deg, rgba(39, 48, 98, 0.78), rgba(15, 20, 52, 0.9)),
    url("../assets/dreamscape-bg.png") 26% 34%/260% auto no-repeat;
  box-shadow: 0 28px 90px rgba(0, 0, 0, 0.35);
}

.phone-top {
  display: flex;
  justify-content: space-between;
  align-items: baseline;
  margin-bottom: 22px;
  font-weight: 900;
  font-size: 24px;
}

.phone-top small,
.choice small {
  color: var(--muted);
  font-size: 14px;
  font-weight: 750;
}

.choice,
.story-card {
  border: 1px solid var(--line);
  border-radius: 8px;
  padding: 18px;
  margin-bottom: 12px;
  background: rgba(255, 255, 255, 0.08);
}

.choice strong {
  display: block;
  font-size: 22px;
}

.choice.active {
  color: #1b1430;
  border-color: rgba(255, 233, 167, 0.8);
  background: linear-gradient(180deg, var(--gold), #ffe4a1);
}

.choice.active small {
  color: #33294a;
}

.story-card {
  margin-top: 22px;
  background: var(--panel-strong);
}

.story-card p {
  margin: 0;
  color: var(--ink);
  font-size: 17px;
}

.cta {
  margin-top: 38px;
  padding: 48px;
  text-align: center;
  background:
    linear-gradient(180deg, rgba(28, 35, 83, 0.78), rgba(22, 26, 65, 0.9)),
    radial-gradient(circle at 30% 20%, rgba(245, 168, 188, 0.2), transparent 16rem),
    radial-gradient(circle at 75% 25%, rgba(155, 215, 197, 0.14), transparent 14rem);
}

.cta p {
  max-width: 680px;
  margin: 0 auto 26px;
}

.footer {
  display: flex;
  justify-content: space-between;
  gap: 22px;
  padding: 28px 0 40px;
  border-top: 1px solid var(--line);
  font-size: 14px;
}

.footer a {
  margin-left: 16px;
  color: var(--ink);
  text-decoration-color: rgba(255, 248, 234, 0.42);
  text-underline-offset: 4px;
}

.legal-page {
  min-height: 100vh;
  background:
    linear-gradient(180deg, rgba(17, 22, 55, 0.84), rgba(17, 22, 55, 0.96)),
    url("../assets/dreamscape-bg.png") center/cover fixed no-repeat;
}

.legal-wrap {
  width: min(880px, calc(100% - 40px));
  margin: 0 auto;
  padding: 42px 0 90px;
}

.legal-brand {
  margin-bottom: 64px;
}

.legal-wrap h1 {
  margin-bottom: 58px;
  font-size: clamp(48px, 8vw, 82px);
}

.legal-wrap h2 {
  margin-bottom: 18px;
  font-size: clamp(26px, 4vw, 42px);
}

.legal-wrap section {
  padding: 34px 0;
  border-top: 1px solid var(--line);
}

.legal-wrap p {
  max-width: 760px;
  color: var(--muted);
  font-size: 20px;
  line-height: 1.7;
}

.legal-wrap a {
  color: var(--gold);
}

@keyframes breathe {
  from {
    transform: scale(1);
    opacity: 0.82;
  }

  to {
    transform: scale(1.035);
    opacity: 1;
  }
}

@media (max-width: 820px) {
  .hero-inner,
  .section,
  .footer {
    width: min(100% - 28px, 620px);
  }

  .hero,
  .hero-inner {
    min-height: 88vh;
  }

  .nav {
    padding-top: 18px;
  }

  .brand {
    font-size: 20px;
  }

  .nav-links {
    display: none;
  }

  .hero-copy {
    margin-bottom: 8vh;
  }

  h1 {
    font-size: 46px;
  }

  .lead,
  .section p {
    font-size: 18px;
  }

  .intro,
  .preview,
  .feature-grid {
    grid-template-columns: 1fr;
  }

  .section {
    padding: 56px 0;
  }

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

  .cta {
    padding: 32px 20px;
  }

  .footer {
    flex-direction: column;
  }

  .footer a {
    display: inline-block;
    margin: 0 16px 0 0;
  }
}
