:root {
  --bg: 0 0% 4%;
  --fg: 0 0% 90%;
  --muted: 0 0% 55%;
  --border: 0 0% 16%;
  --card: 0 0% 7%;
  --surface: 0 0% 10%;
  --chrome: #b9bfc6;
  --chrome-mid: #798086;
  --chrome-hi: #abb3ba;
  --accent: #a5002f;
  --accent-soft: rgba(165, 0, 47, 0.35);
  --radius: 0.5rem;
  --font: "DM Sans", system-ui, sans-serif;
  --display: "Space Grotesk", system-ui, sans-serif;
  --max: 1080px;
}

*,
*::before,
*::after {
  box-sizing: border-box;
}

html {
  scroll-behavior: smooth;
  overflow-x: hidden;
}

body {
  margin: 0;
  min-height: 100vh;
  font-family: var(--font);
  color: hsl(var(--fg));
  background: hsl(var(--bg));
  -webkit-font-smoothing: antialiased;
  overflow-x: hidden;
}

img {
  display: block;
  max-width: 100%;
}

a {
  color: inherit;
  text-decoration: none;
}

code {
  font-family: ui-monospace, "SF Mono", Consolas, monospace;
  font-size: 0.92em;
  color: #ffb3c4;
}

/* Atmosphere — Mozeraid-style grid + spotlight */
.bg-grid {
  position: fixed;
  inset: 0;
  z-index: 0;
  pointer-events: none;
  background-image:
    linear-gradient(rgba(255, 255, 255, 0.035) 1px, transparent 1px),
    linear-gradient(90deg, rgba(255, 255, 255, 0.035) 1px, transparent 1px);
  background-size: 56px 56px;
  mask-image: radial-gradient(ellipse 70% 60% at 50% 35%, #000 20%, transparent 75%);
}

.bg-glow {
  position: fixed;
  inset: 0;
  z-index: 0;
  pointer-events: none;
  background:
    radial-gradient(ellipse 55% 45% at 50% 28%, rgba(165, 0, 47, 0.12), transparent 60%),
    radial-gradient(ellipse 50% 40% at 50% 32%, rgba(120, 128, 140, 0.14), transparent 65%);
  animation: glow-breathe 8s ease-in-out infinite;
}

@keyframes glow-breathe {
  0%, 100% { opacity: 0.85; transform: scale(1); }
  50% { opacity: 1; transform: scale(1.03); }
}

.nav,
main,
.footer {
  position: relative;
  z-index: 1;
}

/* Nav */
.nav {
  position: sticky;
  top: 0;
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 1.5rem;
  padding: 1rem 1.75rem;
  backdrop-filter: blur(16px);
  -webkit-backdrop-filter: blur(16px);
  background: hsl(var(--bg) / 0.72);
  border-bottom: 1px solid hsl(var(--border) / 0.55);
  z-index: 20;
}

.nav-brand {
  display: inline-flex;
  align-items: center;
  gap: 0.65rem;
  font-family: var(--display);
  font-weight: 600;
  font-size: 1.05rem;
  letter-spacing: -0.02em;
}

.nav-brand img {
  width: 28px;
  height: 28px;
  border-radius: 6px;
}

.nav-links {
  display: flex;
  align-items: center;
  gap: 1.75rem;
}

.nav-links a:not(.btn) {
  font-size: 0.9rem;
  color: hsl(var(--muted));
  transition: color 0.2s ease;
}

.nav-links a:not(.btn):hover {
  color: hsl(var(--fg));
}

.nav-toggle {
  display: none;
  width: 40px;
  height: 40px;
  border: 1px solid hsl(var(--border));
  border-radius: var(--radius);
  background: transparent;
  padding: 0;
  cursor: pointer;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  gap: 6px;
}

.nav-toggle span {
  display: block;
  width: 16px;
  height: 1.5px;
  background: hsl(var(--fg));
  transition: transform 0.25s ease, opacity 0.25s ease;
}

.nav-toggle[aria-expanded="true"] span:first-child {
  transform: translateY(3.75px) rotate(45deg);
}

.nav-toggle[aria-expanded="true"] span:last-child {
  transform: translateY(-3.75px) rotate(-45deg);
}

/* Buttons — chrome metal like Mozeraid */
.btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 0.4rem;
  padding: 0.65rem 1.15rem;
  border-radius: var(--radius);
  font-family: var(--font);
  font-size: 0.9rem;
  font-weight: 500;
  border: 1px solid transparent;
  cursor: pointer;
  transition: transform 0.2s ease, box-shadow 0.25s ease, background 0.25s ease, border-color 0.25s ease;
}

.btn-chrome {
  color: #0a0a0a;
  background: linear-gradient(180deg, #f0f2f4 0%, #c5cad0 48%, #e8ebef 100%);
  box-shadow: 0 0 0 1px rgba(255, 255, 255, 0.12), 0 8px 24px -10px rgba(115, 128, 140, 0.45);
}

.btn-chrome:hover {
  transform: translateY(-1px);
  box-shadow: 0 0 30px -5px rgba(115, 128, 140, 0.45), 0 10px 28px -12px rgba(0, 0, 0, 0.6);
}

.btn-ghost {
  color: hsl(var(--fg) / 0.85);
  background: transparent;
  border-color: hsl(var(--border));
}

.btn-ghost:hover {
  border-color: hsl(var(--muted));
  background: hsl(var(--surface) / 0.6);
}

.btn-lg {
  padding: 0.9rem 1.6rem;
  font-size: 1rem;
}

/* Hero */
.hero {
  min-height: calc(100vh - 65px);
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  text-align: center;
  padding: 4.5rem 1.5rem 5rem;
  max-width: 920px;
  margin: 0 auto;
}

.eyebrow {
  display: inline-flex;
  align-items: center;
  gap: 0.55rem;
  margin: 0 0 1.75rem;
  font-size: 0.72rem;
  font-weight: 500;
  letter-spacing: 0.14em;
  text-transform: uppercase;
  color: hsl(var(--muted));
}

.eyebrow .dot {
  width: 6px;
  height: 6px;
  border-radius: 50%;
  background: var(--accent);
  box-shadow: 0 0 12px var(--accent-soft);
  animation: pulse-dot 2.4s ease-in-out infinite;
}

@keyframes pulse-dot {
  0%, 100% { opacity: 1; transform: scale(1); }
  50% { opacity: 0.55; transform: scale(0.85); }
}

.hero-brand {
  margin: 0;
  font-family: var(--display);
  font-size: clamp(4.5rem, 14vw, 8.5rem);
  font-weight: 700;
  letter-spacing: -0.06em;
  line-height: 0.92;
  background: linear-gradient(135deg, #f4f5f6 0%, #878c92 45%, #e4e7ea 100%);
  -webkit-background-clip: text;
  background-clip: text;
  -webkit-text-fill-color: transparent;
}

.hero-line {
  margin: 1.35rem 0 0;
  font-family: var(--display);
  font-size: clamp(1.35rem, 3.2vw, 2rem);
  font-weight: 500;
  letter-spacing: -0.03em;
  color: hsl(var(--fg) / 0.92);
}

.hero-sub {
  margin: 1rem auto 0;
  max-width: 34rem;
  font-size: 1.05rem;
  line-height: 1.55;
  font-weight: 300;
  color: hsl(var(--muted));
}

.hero-actions {
  display: flex;
  flex-wrap: wrap;
  gap: 0.75rem;
  justify-content: center;
  margin-top: 2rem;
}

/* Sections */
.section {
  max-width: var(--max);
  margin: 0 auto;
  padding: 6.5rem 1.5rem;
}

.section-tight {
  padding-top: 2rem;
}

.section-kicker {
  margin: 0 0 0.75rem;
  font-size: 0.72rem;
  font-weight: 500;
  letter-spacing: 0.14em;
  text-transform: uppercase;
  color: hsl(var(--muted));
}

.section-title {
  margin: 0;
  font-family: var(--display);
  font-size: clamp(2rem, 4.5vw, 3rem);
  font-weight: 600;
  letter-spacing: -0.04em;
  line-height: 1.1;
}

.section-sub {
  margin: 0.9rem 0 0;
  max-width: 34rem;
  font-size: 1.05rem;
  line-height: 1.55;
  font-weight: 300;
  color: hsl(var(--muted));
}

/* Features — list rows, not card grid clutter */
.feature-list {
  display: grid;
  gap: 0;
  margin-top: 3.5rem;
  border-top: 1px solid hsl(var(--border));
}

.feature {
  display: grid;
  grid-template-columns: 1fr;
  gap: 0.35rem;
  padding: 2.25rem 0;
  border-bottom: 1px solid hsl(var(--border));
}

@media (min-width: 800px) {
  .feature {
    grid-template-columns: 140px 1.1fr 1.4fr;
    gap: 2rem;
    align-items: start;
  }

  .feature h3,
  .feature .feature-role {
    grid-column: 2;
  }

  .feature > p:not(.feature-role),
  .feature ul {
    grid-column: 3;
  }

  .feature-meta {
    grid-row: 1 / span 4;
  }
}

.feature-meta {
  display: flex;
  align-items: center;
  gap: 0.75rem;
  margin-bottom: 0.5rem;
}

.feature-num {
  font-family: var(--display);
  font-size: 0.85rem;
  color: hsl(var(--muted));
  letter-spacing: 0.06em;
}

.feature-status {
  font-size: 0.7rem;
  letter-spacing: 0.08em;
  text-transform: uppercase;
  color: #ffb3c4;
  border: 1px solid var(--accent-soft);
  background: rgba(165, 0, 47, 0.12);
  padding: 0.2rem 0.5rem;
  border-radius: 999px;
}

.feature h3 {
  margin: 0;
  font-family: var(--display);
  font-size: 1.55rem;
  font-weight: 600;
  letter-spacing: -0.03em;
}

.feature-role {
  margin: 0.15rem 0 0.75rem;
  font-size: 0.95rem;
  color: hsl(var(--muted));
}

.feature > p:not(.feature-role) {
  margin: 0 0 1rem;
  line-height: 1.55;
  color: hsl(var(--fg) / 0.82);
  font-weight: 300;
}

.feature ul {
  margin: 0;
  padding: 0;
  list-style: none;
  display: grid;
  gap: 0.45rem;
}

.feature li {
  position: relative;
  padding-left: 1rem;
  font-size: 0.95rem;
  color: hsl(var(--muted));
  line-height: 1.45;
}

.feature li::before {
  content: "";
  position: absolute;
  left: 0;
  top: 0.55em;
  width: 5px;
  height: 5px;
  border-radius: 1px;
  background: var(--accent);
}

/* Steps */
.steps {
  list-style: none;
  margin: 3rem 0 0;
  padding: 0;
  display: grid;
  gap: 1.25rem;
}

@media (min-width: 800px) {
  .steps {
    grid-template-columns: repeat(3, 1fr);
    gap: 2rem;
  }
}

.step {
  padding: 1.5rem 0 0;
  border-top: 1px solid hsl(var(--border));
}

.step-num {
  display: block;
  margin-bottom: 1rem;
  font-family: var(--display);
  font-size: 0.85rem;
  letter-spacing: 0.08em;
  color: hsl(var(--muted));
}

.step h3 {
  margin: 0 0 0.5rem;
  font-family: var(--display);
  font-size: 1.25rem;
  font-weight: 600;
  letter-spacing: -0.02em;
}

.step p {
  margin: 0;
  font-size: 0.98rem;
  line-height: 1.55;
  font-weight: 300;
  color: hsl(var(--muted));
}

/* CTA */
.cta-section {
  text-align: center;
  padding-bottom: 7rem;
}

.cta-section .section-sub {
  margin-left: auto;
  margin-right: auto;
}

.cta-actions {
  margin-top: 2rem;
}

.cta-note {
  margin: 0.9rem 0 0;
  font-size: 0.85rem;
  color: hsl(var(--muted));
}

.cta-points {
  display: flex;
  flex-wrap: wrap;
  justify-content: center;
  gap: 1.5rem;
  list-style: none;
  margin: 2.5rem 0 0;
  padding: 0;
  font-size: 0.85rem;
  color: hsl(var(--muted));
}

.cta-points li {
  position: relative;
  padding-left: 1rem;
}

.cta-points li::before {
  content: "";
  position: absolute;
  left: 0;
  top: 0.45em;
  width: 5px;
  height: 5px;
  border-radius: 1px;
  background: var(--accent);
}

/* Pricing */
.pricing-grid {
  margin-top: 3rem;
  display: grid;
  justify-content: center;
}

.price-card {
  width: min(100%, 420px);
  padding: 2rem 1.75rem 1.75rem;
  border: 1px solid hsl(var(--border));
  border-radius: calc(var(--radius) + 4px);
  background:
    linear-gradient(180deg, hsl(var(--surface) / 0.9), hsl(var(--card) / 0.55));
}

.price-card-featured {
  box-shadow: 0 0 0 1px rgba(165, 0, 47, 0.18), 0 24px 60px -36px rgba(165, 0, 47, 0.45);
}

.price-eyebrow {
  margin: 0 0 0.65rem;
  font-size: 0.72rem;
  font-weight: 500;
  letter-spacing: 0.14em;
  text-transform: uppercase;
  color: #ffb3c4;
}

.price-card h3 {
  margin: 0;
  font-family: var(--display);
  font-size: 1.75rem;
  font-weight: 600;
  letter-spacing: -0.03em;
}

.price-tagline {
  margin: 0.35rem 0 0;
  color: hsl(var(--muted));
  font-weight: 300;
}

.price-amount {
  display: flex;
  align-items: baseline;
  gap: 0.55rem;
  margin: 1.4rem 0 1.25rem;
  font-family: var(--display);
  font-size: 3rem;
  font-weight: 600;
  letter-spacing: -0.04em;
  line-height: 1;
}

.price-period {
  font-family: var(--font);
  font-size: 0.95rem;
  font-weight: 400;
  color: hsl(var(--muted));
}

.price-perks {
  list-style: none;
  margin: 0 0 1.5rem;
  padding: 0;
  display: grid;
  gap: 0.55rem;
}

.price-perks li {
  position: relative;
  padding-left: 1rem;
  color: hsl(var(--fg) / 0.82);
  font-size: 0.95rem;
  font-weight: 300;
  line-height: 1.45;
}

.price-perks li::before {
  content: "";
  position: absolute;
  left: 0;
  top: 0.55em;
  width: 5px;
  height: 5px;
  border-radius: 1px;
  background: var(--accent);
}

.price-cta {
  width: 100%;
}

.pricing-fine {
  margin: 1.25rem 0 0;
  text-align: center;
  font-size: 0.85rem;
  color: hsl(var(--muted));
}

/* Checkout modal */
.modal[hidden] {
  display: none;
}

.modal {
  position: fixed;
  inset: 0;
  z-index: 50;
  display: grid;
  place-items: center;
  padding: 1.25rem;
}

.modal-backdrop {
  position: absolute;
  inset: 0;
  background: rgba(0, 0, 0, 0.72);
  backdrop-filter: blur(8px);
}

.modal-panel {
  position: relative;
  width: min(100%, 420px);
  padding: 1.75rem 1.5rem 1.5rem;
  border: 1px solid hsl(var(--border));
  border-radius: calc(var(--radius) + 4px);
  background: hsl(0 0% 6%);
  box-shadow: 0 30px 80px -30px rgba(0, 0, 0, 0.9);
  animation: modal-in 0.28s ease;
}

@keyframes modal-in {
  from { opacity: 0; transform: translateY(10px) scale(0.98); }
  to { opacity: 1; transform: none; }
}

.modal-close {
  position: absolute;
  top: 0.75rem;
  right: 0.85rem;
  width: 2rem;
  height: 2rem;
  border: 0;
  background: transparent;
  color: hsl(var(--muted));
  font-size: 1.4rem;
  line-height: 1;
  cursor: pointer;
}

.modal-close:hover {
  color: hsl(var(--fg));
}

.modal-panel h2 {
  margin: 0.35rem 0 0;
  font-family: var(--display);
  font-size: 1.75rem;
  letter-spacing: -0.03em;
}

.modal-sub {
  margin: 0.5rem 0 1.35rem;
  color: hsl(var(--muted));
  font-weight: 300;
}

.checkout-form {
  display: grid;
  gap: 0.9rem;
}

.checkout-form label {
  display: grid;
  gap: 0.4rem;
  font-size: 0.85rem;
  color: hsl(var(--muted));
}

.checkout-form input {
  width: 100%;
  padding: 0.8rem 0.9rem;
  border: 1px solid hsl(var(--border));
  border-radius: var(--radius);
  background: hsl(0 0% 4%);
  color: hsl(var(--fg));
  font: inherit;
  outline: none;
  transition: border-color 0.2s ease;
}

.checkout-form input:focus {
  border-color: hsl(var(--muted));
}

.checkout-submit {
  width: 100%;
}

.modal-fine {
  margin: 0;
  font-size: 0.8rem;
  line-height: 1.45;
  color: hsl(var(--muted));
  text-align: center;
}

.modal-error {
  margin: 0;
  font-size: 0.85rem;
  color: #ff8a9a;
  text-align: center;
}

body.modal-open {
  overflow: hidden;
}

/* Footer */
.footer {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  justify-content: space-between;
  gap: 1rem;
  padding: 1.5rem 1.75rem 2rem;
  border-top: 1px solid hsl(var(--border));
}

.footer p {
  margin: 0;
  font-size: 0.85rem;
  color: hsl(var(--muted));
}

.footer .nav-brand span {
  text-transform: lowercase;
  font-weight: 500;
}

/* Reveal motion */
.reveal {
  opacity: 0;
  transform: translateY(18px);
  transition: opacity 0.7s ease, transform 0.7s ease;
}

.reveal.visible {
  opacity: 1;
  transform: none;
}

.delay-1 { transition-delay: 0.08s; }
.delay-2 { transition-delay: 0.16s; }
.delay-3 { transition-delay: 0.24s; }
.delay-4 { transition-delay: 0.32s; }

@media (prefers-reduced-motion: reduce) {
  .reveal,
  .bg-glow,
  .eyebrow .dot {
    animation: none !important;
    transition: none !important;
    opacity: 1 !important;
    transform: none !important;
  }
}

/* Mobile */
@media (max-width: 720px) {
  .nav-toggle {
    display: inline-flex;
  }

  .nav-links {
    position: absolute;
    top: calc(100% + 1px);
    left: 0;
    right: 0;
    flex-direction: column;
    align-items: stretch;
    gap: 0;
    padding: 0.75rem 1.25rem 1.25rem;
    background: hsl(var(--bg) / 0.96);
    border-bottom: 1px solid hsl(var(--border));
    display: none;
  }

  .nav-links.open {
    display: flex;
  }

  .nav-links a:not(.btn) {
    padding: 0.85rem 0;
    border-bottom: 1px solid hsl(var(--border) / 0.6);
  }

  .nav-cta {
    margin-top: 0.75rem;
    width: 100%;
  }

  .hero {
    min-height: calc(100vh - 62px);
    padding-top: 3rem;
  }

  .footer {
    flex-direction: column;
    align-items: flex-start;
  }
}
