:root {
  --night-1: #030814;
  --night-2: #08182f;
  --night-3: #0f2a4d;
  --panel: rgba(8, 21, 40, 0.88);
  --panel-solid: #0a1c35;
  --line: rgba(146, 194, 255, 0.16);
  --snow: #eef5ff;
  --text: #cfe0f5;
  --muted: #8ba6c6;
  --gold: #ffc65c;
  --gold-deep: #f2a127;
  --red: #e8515b;
  --green: #35b57c;
  --ice: #7fd5ff;
  --radius: 18px;
  --shadow: 0 24px 60px rgba(0, 0, 0, 0.45);
}

* { box-sizing: border-box; }

html { scroll-behavior: smooth; }

body {
  margin: 0;
  font-family: "Inter", system-ui, -apple-system, "Segoe UI", sans-serif;
  color: var(--text);
  background: linear-gradient(180deg, var(--night-1) 0%, var(--night-2) 34%, var(--night-3) 62%, #0a1e3a 100%);
  background-attachment: fixed;
  line-height: 1.65;
  overflow-x: hidden;
}

h1, h2, h3, h4 {
  font-family: "Fraunces", Georgia, serif;
  color: var(--snow);
  line-height: 1.15;
  margin: 0 0 .6rem;
  font-weight: 700;
}

p { margin: 0 0 1rem; }
a { color: inherit; text-decoration: none; }

/* ---------- Scene ---------- */
#snow {
  position: fixed;
  inset: 0;
  z-index: 1;
  pointer-events: none;
}

.scene {
  position: fixed;
  inset: 0;
  z-index: 0;
  pointer-events: none;
  overflow: hidden;
}

/* Keeps the skyline from competing with body copy scrolling over it */
.scene::after {
  content: "";
  position: absolute;
  inset: 0;
  background: linear-gradient(
    180deg,
    rgba(3, 8, 20, 0) 0%,
    rgba(3, 8, 20, 0) 52%,
    rgba(5, 14, 30, 0.22) 74%,
    rgba(6, 16, 32, 0.45) 100%
  );
}

.moon {
  position: absolute;
  top: 9%;
  right: 12%;
  width: 92px;
  height: 92px;
  border-radius: 50%;
  background: radial-gradient(circle at 35% 35%, #fffdf3, #f3e6c0 60%, #dcc894);
  box-shadow: 0 0 50px 18px rgba(255, 244, 205, 0.18), 0 0 140px 60px rgba(255, 240, 190, 0.08);
}

.stars {
  position: absolute;
  inset: 0 0 45% 0;
  background-image:
    radial-gradient(1.6px 1.6px at 12% 22%, #fff, transparent),
    radial-gradient(1.4px 1.4px at 28% 9%, #e6f2ff, transparent),
    radial-gradient(1.8px 1.8px at 46% 28%, #fff, transparent),
    radial-gradient(1.3px 1.3px at 62% 14%, #dce9ff, transparent),
    radial-gradient(1.6px 1.6px at 78% 34%, #fff, transparent),
    radial-gradient(1.2px 1.2px at 88% 18%, #d8e8ff, transparent),
    radial-gradient(1.5px 1.5px at 8% 44%, #fff, transparent),
    radial-gradient(1.3px 1.3px at 36% 48%, #e3efff, transparent),
    radial-gradient(1.7px 1.7px at 68% 44%, #fff, transparent),
    radial-gradient(1.2px 1.2px at 94% 52%, #fff, transparent);
  opacity: .85;
  animation: twinkle 6s ease-in-out infinite alternate;
}

@keyframes twinkle { from { opacity: .45; } to { opacity: .95; } }

.skyline {
  position: absolute;
  left: 0;
  right: 0;
  bottom: 0;
  width: 100%;
  height: 46vh;
  min-height: 300px;
  opacity: .88;
}

.skyline .trees-far path { fill: #061529; }
.skyline .house .body { fill: #04101f; }
.skyline .house .roof { fill: #061626; }
.skyline .house .door { fill: #0a1c2e; }
.skyline .house .window {
  fill: var(--gold);
  opacity: .55;
  filter: drop-shadow(0 0 10px rgba(255, 198, 92, .55));
  animation: windowFlicker 7s ease-in-out infinite alternate;
}
.skyline .house:nth-of-type(2) .window { animation-delay: -2.5s; }
.skyline .house:nth-of-type(3) .window { animation-delay: -4.5s; }

@keyframes windowFlicker { from { opacity: .38; } to { opacity: .7; } }

.skyline .lights {
  fill: none;
  stroke: var(--gold);
  stroke-width: 5;
  stroke-linecap: round;
  stroke-dasharray: 0.35 3.4;
  filter: drop-shadow(0 0 6px rgba(255, 198, 92, .95));
  animation: lightsRun 3.2s linear infinite, lightsHue 9s linear infinite;
}
.skyline .house:nth-of-type(2) .lights { animation-delay: -1.1s, -3s; }
.skyline .house:nth-of-type(3) .lights { animation-delay: -2.2s, -6s; }

@keyframes lightsRun { to { stroke-dashoffset: -7.5; } }
@keyframes lightsHue {
  0%   { stroke: #ffc65c; }
  33%  { stroke: #e8515b; }
  66%  { stroke: #4fd39a; }
  100% { stroke: #ffc65c; }
}

.skyline .ground path { fill: #0d2745; }

/* ---------- Layout ---------- */
main, .nav, .footer { position: relative; z-index: 2; }

.section {
  max-width: 1160px;
  margin: 0 auto;
  padding: 5.5rem 1.5rem;
}

section[id] { scroll-margin-top: 90px; }

.section-title {
  font-size: clamp(2rem, 4vw, 2.9rem);
  text-align: center;
  text-shadow: 0 2px 26px rgba(3, 8, 20, .95), 0 0 60px rgba(3, 8, 20, .8);
}

.section-sub {
  text-align: center;
  color: var(--muted);
  max-width: 620px;
  margin: 0 auto 3rem;
  font-size: 1.05rem;
  text-shadow: 0 2px 18px rgba(3, 8, 20, .95);
}

/* ---------- Nav ---------- */
.nav {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 1rem;
  padding: 1rem 1.5rem;
  max-width: 1240px;
  margin: 0 auto;
  position: sticky;
  top: 0;
  backdrop-filter: blur(14px);
  background: rgba(3, 8, 20, 0.55);
  border-bottom: 1px solid var(--line);
  z-index: 50;
}

.brand {
  display: inline-flex;
  align-items: center;
  gap: .6rem;
  font-family: "Fraunces", serif;
  font-size: 1.22rem;
  color: var(--snow);
  letter-spacing: -.01em;
}
.brand strong { color: var(--gold); font-weight: 700; }

.bulb {
  width: 13px;
  height: 13px;
  border-radius: 50%;
  background: var(--gold);
  box-shadow: 0 0 12px 3px rgba(255, 198, 92, .7);
  animation: lightsHue 9s linear infinite;
}

.nav-links {
  display: flex;
  gap: 1.9rem;
  font-size: .94rem;
  color: var(--muted);
}
.nav-links a { transition: color .2s; }
.nav-links a:hover { color: var(--snow); }

/* ---------- Buttons ---------- */
.btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: .5rem;
  padding: .9rem 1.6rem;
  border-radius: 999px;
  font-weight: 600;
  font-size: .97rem;
  border: 1px solid transparent;
  cursor: pointer;
  transition: transform .18s ease, box-shadow .18s ease, background .18s ease;
  white-space: nowrap;
}
.btn:hover { transform: translateY(-2px); }

.btn-primary {
  background: linear-gradient(135deg, var(--gold), var(--gold-deep));
  color: #2a1704;
  box-shadow: 0 10px 30px rgba(255, 176, 60, .28);
}
.btn-primary:hover { box-shadow: 0 16px 40px rgba(255, 176, 60, .4); }

.btn-outline {
  border-color: rgba(255, 198, 92, .45);
  color: var(--gold);
  background: rgba(255, 198, 92, .06);
}
.btn-outline:hover { background: rgba(255, 198, 92, .13); }

.btn-ghost {
  border-color: var(--line);
  color: var(--text);
  background: rgba(255, 255, 255, .03);
}
.btn-ghost:hover { background: rgba(255, 255, 255, .08); }

.btn-sm { padding: .62rem 1.15rem; font-size: .9rem; }
.btn-block { width: 100%; }

/* ---------- Hero ---------- */
.hero {
  max-width: 900px;
  margin: 0 auto;
  padding: 6rem 1.5rem 4.5rem;
  text-align: center;
}

.eyebrow {
  text-transform: uppercase;
  letter-spacing: .16em;
  font-size: .74rem;
  font-weight: 600;
  color: var(--gold);
  margin-bottom: 1.4rem;
}

.hero h1 {
  font-size: clamp(2.5rem, 6.2vw, 4.3rem);
  letter-spacing: -.02em;
  margin-bottom: 1.4rem;
}

.glow {
  color: var(--gold);
  text-shadow: 0 0 34px rgba(255, 198, 92, .5);
}

.lede {
  font-size: clamp(1.03rem, 1.9vw, 1.2rem);
  color: var(--text);
  max-width: 680px;
  margin: 0 auto 2.2rem;
}

.hero-cta {
  display: flex;
  gap: .9rem;
  justify-content: center;
  flex-wrap: wrap;
  margin-bottom: 2.6rem;
}

.hero-points {
  list-style: none;
  padding: 0;
  margin: 0;
  display: flex;
  gap: 1.6rem;
  justify-content: center;
  flex-wrap: wrap;
  font-size: .92rem;
  color: var(--muted);
}
.hero-points li::before {
  content: "✦";
  color: var(--gold);
  margin-right: .5rem;
}

/* ---------- Strip ---------- */
.strip {
  border-top: 1px solid var(--line);
  border-bottom: 1px solid var(--line);
  background: rgba(3, 10, 22, .55);
  backdrop-filter: blur(8px);
}
.strip-inner {
  max-width: 1160px;
  margin: 0 auto;
  padding: 1.6rem 1.5rem;
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  gap: 1.2rem;
  text-align: center;
}
.strip-inner div { display: flex; flex-direction: column; gap: .2rem; }
.strip-inner strong { color: var(--snow); font-size: 1rem; }
.strip-inner span { color: var(--muted); font-size: .84rem; }

/* ---------- Steps ---------- */
.steps {
  list-style: none;
  padding: 0;
  margin: 0;
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(230px, 1fr));
  gap: 1.1rem;
  counter-reset: step;
}
.steps li {
  background: var(--panel);
  border: 1px solid var(--line);
  border-radius: var(--radius);
  padding: 1.7rem 1.4rem;
  backdrop-filter: blur(10px);
  transition: transform .2s ease, border-color .2s ease;
}
.steps li:hover { transform: translateY(-4px); border-color: rgba(255, 198, 92, .35); }
.step-num {
  font-family: "Fraunces", serif;
  font-size: 1.5rem;
  color: var(--gold);
  display: block;
  margin-bottom: .5rem;
}
.steps h3 { font-size: 1.1rem; }
.steps p { color: var(--muted); font-size: .92rem; margin: 0; }

/* ---------- Pricing ---------- */
.tiers {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(290px, 1fr));
  gap: 1.4rem;
  align-items: stretch;
}

.tier {
  position: relative;
  background: var(--panel);
  border: 1px solid var(--line);
  border-radius: 22px;
  padding: 2rem 1.7rem;
  display: flex;
  flex-direction: column;
  backdrop-filter: blur(12px);
  transition: transform .22s ease, border-color .22s ease, box-shadow .22s ease;
}
.tier:hover {
  transform: translateY(-6px);
  border-color: rgba(255, 198, 92, .4);
  box-shadow: var(--shadow);
}

.tier.featured {
  border-color: rgba(255, 198, 92, .55);
  background: linear-gradient(180deg, rgba(255, 198, 92, .09), rgba(9, 24, 45, .85));
  box-shadow: 0 0 0 1px rgba(255, 198, 92, .2), var(--shadow);
}

.ribbon {
  position: absolute;
  top: -13px;
  left: 50%;
  transform: translateX(-50%);
  background: linear-gradient(135deg, var(--red), #c33a45);
  color: #fff;
  font-size: .72rem;
  font-weight: 700;
  letter-spacing: .09em;
  text-transform: uppercase;
  padding: .35rem 1rem;
  border-radius: 999px;
  white-space: nowrap;
  box-shadow: 0 6px 18px rgba(232, 81, 91, .35);
}

.tier-tag {
  font-size: .72rem;
  letter-spacing: .16em;
  text-transform: uppercase;
  color: var(--muted);
  margin-bottom: .35rem;
}
.tier h3 { font-size: 1.6rem; margin-bottom: .8rem; }

.tier-price {
  display: flex;
  align-items: baseline;
  gap: .4rem;
  margin-bottom: .5rem;
}
.tier-price .amt {
  font-family: "Fraunces", serif;
  font-size: 2.5rem;
  color: var(--gold);
  line-height: 1;
}
.tier-price .per { color: var(--muted); font-size: .92rem; }

.tier-note {
  color: var(--muted);
  font-size: .9rem;
  border-bottom: 1px solid var(--line);
  padding-bottom: 1.2rem;
  margin-bottom: 1.2rem;
}

.tier-list {
  list-style: none;
  padding: 0;
  margin: 0 0 1.4rem;
  display: grid;
  gap: .7rem;
  font-size: .93rem;
  flex: 1;
}
.tier-list li {
  position: relative;
  padding-left: 1.6rem;
}
.tier-list li::before {
  content: "✓";
  position: absolute;
  left: 0;
  top: 0;
  color: var(--green);
  font-weight: 700;
}
.tier-list strong { color: var(--snow); }

.tier-fit {
  font-size: .86rem;
  color: var(--muted);
  background: rgba(255, 255, 255, .035);
  border-radius: 12px;
  padding: .8rem .9rem;
  margin-bottom: 1.3rem;
}
.tier-fit strong { color: var(--text); }

/* ---------- Callout ---------- */
.callout {
  margin-top: 3rem;
  background: linear-gradient(135deg, rgba(53, 181, 124, .1), rgba(9, 24, 45, .8));
  border: 1px solid rgba(53, 181, 124, .3);
  border-radius: 22px;
  padding: 2.2rem;
  backdrop-filter: blur(10px);
}
.callout h4 {
  font-size: 1.25rem;
  color: var(--green);
  margin-bottom: .8rem;
}
.callout p { color: var(--text); max-width: 760px; }
.callout strong { color: var(--snow); }

.math {
  display: flex;
  align-items: center;
  gap: 1rem;
  flex-wrap: wrap;
  margin-top: 1.6rem;
}
.math > div:not(.op) {
  background: rgba(3, 12, 25, .65);
  border: 1px solid var(--line);
  border-radius: 14px;
  padding: .9rem 1.2rem;
  min-width: 140px;
}
.math span { display: block; font-size: .78rem; color: var(--muted); }
.math strong { font-family: "Fraunces", serif; font-size: 1.5rem; color: var(--snow); }
.math .op { color: var(--muted); font-size: 1.3rem; }
.math .win { border-color: rgba(53, 181, 124, .5); }
.math .win strong { color: var(--green); }

/* ---------- Split cards ---------- */
.split {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(300px, 1fr));
  gap: 1.4rem;
}
.card {
  background: var(--panel);
  border: 1px solid var(--line);
  border-radius: 22px;
  padding: 2rem 1.8rem;
  backdrop-filter: blur(10px);
}
.card h3 { font-size: 1.35rem; margin-bottom: 1.1rem; }
.card ul { list-style: none; padding: 0; margin: 0; display: grid; gap: .7rem; font-size: .95rem; }
.card li { position: relative; padding-left: 1.7rem; }
.card li::before { position: absolute; left: 0; top: 0; font-weight: 700; }
.card strong { color: var(--snow); }

.card.yes { border-color: rgba(53, 181, 124, .34); }
.card.yes h3 { color: var(--green); }
.card.yes li::before { content: "✓"; color: var(--green); }

.card.no { border-color: rgba(232, 81, 91, .3); }
.card.no h3 { color: var(--red); }
.card.no li::before { content: "✕"; color: var(--red); }

/* ---------- FAQ ---------- */
.faq { max-width: 820px; margin: 0 auto; display: grid; gap: .8rem; }
.faq details {
  background: var(--panel);
  border: 1px solid var(--line);
  border-radius: 14px;
  padding: 1.1rem 1.4rem;
  backdrop-filter: blur(10px);
  transition: border-color .2s;
}
.faq details[open] { border-color: rgba(255, 198, 92, .35); }
.faq summary {
  cursor: pointer;
  font-weight: 600;
  color: var(--snow);
  list-style: none;
  display: flex;
  justify-content: space-between;
  align-items: center;
  gap: 1rem;
}
.faq summary::-webkit-details-marker { display: none; }
.faq summary::after {
  content: "+";
  color: var(--gold);
  font-size: 1.4rem;
  line-height: 1;
  transition: transform .2s;
}
.faq details[open] summary::after { transform: rotate(45deg); }
.faq p { color: var(--muted); margin: .9rem 0 0; font-size: .95rem; }

/* ---------- Apply ---------- */
.apply-grid {
  display: grid;
  grid-template-columns: 1fr 1.15fr;
  gap: 3rem;
  align-items: start;
  background: rgba(4, 13, 27, .7);
  border: 1px solid var(--line);
  border-radius: 26px;
  padding: 3rem;
  backdrop-filter: blur(14px);
  box-shadow: var(--shadow);
}
.apply-copy h2 { font-size: clamp(1.9rem, 3.4vw, 2.6rem); }
.apply-copy p { color: var(--muted); }
.apply-points { list-style: none; padding: 0; margin: 1.6rem 0 0; display: grid; gap: .6rem; font-size: .93rem; }
.apply-points li::before { content: "✦"; color: var(--gold); margin-right: .55rem; }

.apply-contact {
  background: rgba(3, 10, 22, .78);
  border: 1px solid var(--line);
  border-radius: 20px;
  padding: 2.2rem;
  text-align: center;
}
.contact-eyebrow {
  margin: 0;
  font-size: .78rem;
  letter-spacing: .16em;
  text-transform: uppercase;
  color: var(--muted);
}
.contact-email {
  display: block;
  margin: .8rem 0 0;
  font-family: "Fraunces", Georgia, serif;
  font-size: clamp(1.35rem, 3.2vw, 1.9rem);
  color: var(--gold);
  text-decoration: none;
  word-break: break-word;
}
.contact-email:hover { text-decoration: underline; }
.contact-note { color: var(--muted); font-size: .92rem; margin: 1.1rem 0 1.8rem; }

/* ---------- Footer ---------- */
.footer {
  border-top: 1px solid var(--line);
  background: rgba(2, 7, 16, .8);
  backdrop-filter: blur(12px);
  padding: 3rem 1.5rem 2rem;
}
.footer-inner {
  max-width: 1160px;
  margin: 0 auto;
  display: flex;
  justify-content: space-between;
  gap: 2rem;
  flex-wrap: wrap;
}
.footer-inner p { color: var(--muted); font-size: .9rem; margin: .7rem 0 0; max-width: 320px; }
.footer-links { display: flex; gap: 1.6rem; flex-wrap: wrap; font-size: .9rem; color: var(--muted); }
.footer-links a:hover { color: var(--gold); }
.copyright {
  max-width: 1160px;
  margin: 2.4rem auto 0;
  padding-top: 1.4rem;
  border-top: 1px solid var(--line);
  color: var(--muted);
  font-size: .8rem;
}

/* ---------- Reveal ---------- */
.reveal { opacity: 0; transform: translateY(24px); transition: opacity .6s ease, transform .6s ease; }
.reveal.visible { opacity: 1; transform: none; }

/* ---------- Responsive ---------- */
@media (max-width: 900px) {
  .nav-links { display: none; }
  .moon { width: 52px; height: 52px; top: 4.5%; right: 6%; }
  .apply-grid { grid-template-columns: 1fr; padding: 2rem 1.4rem; gap: 2rem; }
  .strip-inner { grid-template-columns: repeat(2, 1fr); }
}

@media (max-width: 560px) {
  .section { padding: 3.5rem 1.2rem; }
  .hero { padding: 3.5rem 1.2rem 3rem; }
  .apply-contact { padding: 1.6rem 1.2rem; }
  .math { flex-direction: column; align-items: stretch; gap: .5rem; }
  .math > div:not(.op) { min-width: 0; padding: .7rem .9rem; }
  .math .op { text-align: center; }
  .math strong { font-size: 1.25rem; }
  .callout { padding: 1.5rem 1.2rem; }
  .hero-points { flex-direction: column; gap: .5rem; }
}

@media (prefers-reduced-motion: reduce) {
  * { animation: none !important; transition: none !important; }
  .reveal { opacity: 1; transform: none; }
  html { scroll-behavior: auto; }
}
