:root {
  --bg-base: #0a0a0f;
  --bg-elevated: #16161e;
  --bg-elevated-2: #1f1f2a;
  --accent: #e50914;
  --accent-2: #ff4d4d;
  --text-primary: #f5f5f7;
  --text-secondary: #a1a1a6;
  --text-tertiary: #8a8a90;
  --max-w: 1200px;
  --radius: 14px;
  --transition: 200ms cubic-bezier(0.4, 0, 0.2, 1);
}

* {
  box-sizing: border-box;
}

html {
  scroll-behavior: smooth;
}

body {
  margin: 0;
  font-family:
    -apple-system, BlinkMacSystemFont, 'Segoe UI', 'SF Pro Display', Roboto, sans-serif;
  background: var(--bg-base);
  color: var(--text-primary);
  font-size: 17px;
  line-height: 1.5;
  -webkit-font-smoothing: antialiased;
  -moz-osx-font-smoothing: grayscale;
  position: relative;
  overflow-x: hidden;
  /* Dotted grid texture across the whole page — Linear/Vercel-ish. */
  background-image: radial-gradient(
    circle at 1px 1px,
    rgb(255 255 255 / 0.05) 1px,
    transparent 0
  );
  background-size: 28px 28px;
  background-attachment: fixed;
}

/* Decorative background layer: large red gradient blobs that warm the
   page without distracting from content. Wrapped in a fixed full-viewport
   container so we can stack several glows without polluting body
   pseudo-elements (the dot grid lives on body itself). */
body::before {
  content: '';
  position: fixed;
  inset: 0;
  pointer-events: none;
  z-index: 0;
  background:
    /* Glow 1: behind the hero title, warm primary red */
    radial-gradient(
      600px 500px at 18% 22%,
      rgb(229 9 20 / 0.55) 0%,
      rgb(229 9 20 / 0.18) 35%,
      transparent 70%
    ),
    /* Glow 2: behind the preview mockup, lighter accent-2 */
    radial-gradient(
      560px 480px at 78% 30%,
      rgb(255 77 77 / 0.35) 0%,
      rgb(255 77 77 / 0.1) 40%,
      transparent 70%
    ),
    /* Glow 3: bottom-right ambient warmth */
    radial-gradient(
      700px 500px at 90% 100%,
      rgb(229 9 20 / 0.25) 0%,
      transparent 60%
    );
  filter: blur(40px);
  animation: glow-drift 26s ease-in-out infinite alternate;
}

@keyframes glow-drift {
  to {
    transform: translate(-30px, 20px) scale(1.04);
  }
}

@media (prefers-reduced-motion: reduce) {
  body::before {
    animation: none;
  }
}

/* Content sits above the decorative layer. */
.nav,
main,
.footer {
  position: relative;
  z-index: 1;
}


a {
  color: var(--text-primary);
  text-decoration: none;
  transition: color var(--transition);
}

a:hover {
  color: var(--accent-2);
}

img,
svg {
  display: block;
  max-width: 100%;
}

/* ─── Nav ─────────────────────────────────────────────────────── */

.nav {
  position: sticky;
  top: 0;
  z-index: 50;
  display: flex;
  align-items: center;
  justify-content: space-between;
  padding: 16px 32px;
  background: rgb(10 10 15 / 0.85);
  backdrop-filter: saturate(180%) blur(20px);
  -webkit-backdrop-filter: saturate(180%) blur(20px);
  border-bottom: 1px solid rgb(255 255 255 / 0.06);
}

.brand {
  display: inline-flex;
  align-items: center;
  gap: 12px;
}

.brand__mark {
  flex-shrink: 0;
}

.brand__word {
  display: inline-flex;
  align-items: baseline;
  gap: 6px;
}

.brand__name {
  font-size: 22px;
  font-weight: 800;
  letter-spacing: -0.5px;
}

.brand__suffix {
  font-size: 12px;
  font-weight: 700;
  color: var(--accent);
  letter-spacing: 1.5px;
  text-transform: uppercase;
}

.nav__links {
  display: flex;
  align-items: center;
  gap: 28px;
}

.nav__link {
  font-size: 15px;
  color: var(--text-secondary);
  font-weight: 500;
}

.nav__link:hover {
  color: var(--text-primary);
}

.nav__cta {
  margin-left: 4px;
}

/* ─── Buttons ─────────────────────────────────────────────────── */

.btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 8px;
  padding: 10px 20px;
  border-radius: 999px;
  font-family: inherit;
  font-size: 15px;
  font-weight: 600;
  border: none;
  cursor: pointer;
  text-decoration: none;
  transition:
    background var(--transition),
    transform var(--transition),
    box-shadow var(--transition);
  white-space: nowrap;
}

.btn--primary {
  background: linear-gradient(135deg, var(--accent) 0%, var(--accent-2) 100%);
  color: #fff;
}

.btn--primary:hover {
  transform: translateY(-1px);
  box-shadow: 0 6px 20px rgb(229 9 20 / 0.35);
  color: #fff;
}

.btn--ghost {
  background: rgb(255 255 255 / 0.06);
  color: var(--text-primary);
}

.btn--ghost:hover {
  background: rgb(255 255 255 / 0.12);
}

.btn--lg {
  padding: 14px 28px;
  font-size: 17px;
}

/* ─── Hero ────────────────────────────────────────────────────── */

.hero {
  max-width: var(--max-w);
  margin: 0 auto;
  padding: 96px 32px 80px;
  display: grid;
  grid-template-columns: 1.1fr 1fr;
  gap: 64px;
  align-items: center;
}

.hero__title {
  font-size: clamp(40px, 6vw, 64px);
  font-weight: 800;
  line-height: 1.05;
  letter-spacing: -1.5px;
  margin: 0 0 20px;
}

.hero__title-accent {
  background: linear-gradient(135deg, var(--accent) 0%, var(--accent-2) 100%);
  -webkit-background-clip: text;
  background-clip: text;
  color: transparent;
}

.hero__sub {
  font-size: 19px;
  line-height: 1.55;
  color: var(--text-secondary);
  margin: 0 0 32px;
  max-width: 540px;
}

.hero__actions {
  display: flex;
  gap: 12px;
  flex-wrap: wrap;
  margin-bottom: 20px;
}

.hero__note {
  font-size: 14px;
  color: var(--text-tertiary);
  margin: 0;
}

/* Preview mockup — fake home screen */
.hero__preview {
  perspective: 1200px;
}

.preview-screen {
  background: linear-gradient(135deg, #1a1a24 0%, #0e0e16 100%);
  border-radius: 18px;
  padding: 24px;
  display: flex;
  flex-direction: column;
  gap: 22px;
  border: 1px solid rgb(255 255 255 / 0.06);
  box-shadow:
    0 30px 60px -20px rgb(0 0 0 / 0.6),
    0 0 0 1px rgb(255 255 255 / 0.04);
  transform: rotateY(-6deg) rotateX(2deg);
  transform-origin: center;
}

.preview-rail {
  display: flex;
  gap: 14px;
  overflow: hidden;
}

.preview-card {
  flex: 0 0 110px;
  height: 64px;
  border-radius: 8px;
  background: linear-gradient(135deg, #22222e 0%, #16161e 100%);
  position: relative;
  overflow: hidden;
}

.preview-card::after {
  content: '';
  position: absolute;
  inset: 0;
  background: linear-gradient(
    100deg,
    transparent 30%,
    rgb(255 255 255 / 0.04) 50%,
    transparent 70%
  );
}

.preview-card--featured {
  background: linear-gradient(135deg, var(--accent) 0%, var(--accent-2) 100%);
  box-shadow: 0 0 0 2px rgb(229 9 20 / 0.4);
}

/* ─── Sections (shared) ───────────────────────────────────────── */

.section-title {
  font-size: clamp(28px, 4vw, 42px);
  font-weight: 800;
  letter-spacing: -1px;
  line-height: 1.15;
  text-align: center;
  margin: 0 0 16px;
}

.section-sub {
  font-size: 18px;
  color: var(--text-secondary);
  text-align: center;
  max-width: 680px;
  margin: 0 auto 56px;
}

/* ─── Features ────────────────────────────────────────────────── */

.features {
  max-width: var(--max-w);
  margin: 0 auto;
  padding: 80px 32px;
}

.feature-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(280px, 1fr));
  gap: 20px;
}

.feature {
  background: var(--bg-elevated);
  border-radius: var(--radius);
  padding: 28px;
  border: 1px solid rgb(255 255 255 / 0.04);
  transition:
    border-color var(--transition),
    transform var(--transition);
}

.feature:hover {
  border-color: rgb(229 9 20 / 0.3);
  transform: translateY(-2px);
}

.feature__icon {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  width: 52px;
  height: 52px;
  border-radius: 12px;
  margin-bottom: 20px;
  background: linear-gradient(135deg, var(--accent) 0%, var(--accent-2) 100%);
  color: #fff;
  box-shadow: 0 4px 14px rgb(229 9 20 / 0.25);
  transition: transform var(--transition);
}

.feature__icon svg {
  width: 26px;
  height: 26px;
}

.feature:hover .feature__icon {
  transform: scale(1.05);
}

.feature h3 {
  font-size: 20px;
  font-weight: 700;
  margin: 0 0 10px;
}

.feature p {
  font-size: 15px;
  color: var(--text-secondary);
  line-height: 1.55;
  margin: 0;
}

/* ─── How it works ────────────────────────────────────────────── */

.how {
  max-width: var(--max-w);
  margin: 0 auto;
  padding: 80px 32px;
}

.steps {
  list-style: none;
  padding: 0;
  margin: 0;
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(260px, 1fr));
  gap: 28px;
}

.step {
  background: var(--bg-elevated);
  border-radius: var(--radius);
  padding: 32px 28px;
  border: 1px solid rgb(255 255 255 / 0.04);
  position: relative;
}

.step__num {
  width: 44px;
  height: 44px;
  border-radius: 12px;
  background: linear-gradient(135deg, var(--accent) 0%, var(--accent-2) 100%);
  color: #fff;
  font-weight: 800;
  font-size: 20px;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  margin-bottom: 18px;
  box-shadow: 0 4px 16px rgb(229 9 20 / 0.25);
}

.step h3 {
  font-size: 20px;
  font-weight: 700;
  margin: 0 0 8px;
}

.step p {
  font-size: 15px;
  color: var(--text-secondary);
  line-height: 1.55;
  margin: 0;
}

/* ─── CTA strip ───────────────────────────────────────────────── */

.cta-strip {
  max-width: var(--max-w);
  margin: 60px auto;
  padding: 56px 32px;
  background: linear-gradient(135deg, rgb(229 9 20 / 0.12) 0%, rgb(229 9 20 / 0.04) 100%);
  border: 1px solid rgb(229 9 20 / 0.18);
  border-radius: 18px;
  text-align: center;
}

.cta-strip h2 {
  font-size: clamp(26px, 3.5vw, 36px);
  font-weight: 800;
  letter-spacing: -0.8px;
  margin: 0 0 12px;
}

.cta-strip p {
  font-size: 17px;
  color: var(--text-secondary);
  margin: 0 0 28px;
}

/* ─── Footer ──────────────────────────────────────────────────── */

.footer {
  border-top: 1px solid rgb(255 255 255 / 0.06);
  padding: 32px;
  margin-top: 40px;
}

.footer__inner {
  max-width: var(--max-w);
  margin: 0 auto;
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  justify-content: space-between;
  gap: 20px;
}

.footer__brand {
  display: inline-flex;
  align-items: baseline;
  gap: 6px;
}

.footer__links {
  display: flex;
  gap: 24px;
}

.footer__links a {
  font-size: 14px;
  color: var(--text-secondary);
}

.footer__copy {
  font-size: 14px;
  color: var(--text-tertiary);
  margin: 0;
  width: 100%;
  text-align: center;
  padding-top: 8px;
  border-top: 1px solid rgb(255 255 255 / 0.04);
}

/* ─── Responsive ──────────────────────────────────────────────── */

@media (max-width: 880px) {
  .hero {
    grid-template-columns: 1fr;
    padding: 48px 24px 40px;
    gap: 40px;
  }

  .hero__preview {
    order: -1;
    max-width: 480px;
    margin: 0 auto;
  }

  .preview-screen {
    transform: none;
  }

  .nav {
    padding: 14px 20px;
  }

  .nav__links {
    gap: 16px;
  }

  .nav__link {
    display: none;
  }

  .features,
  .how {
    padding: 56px 24px;
  }

  .feature {
    padding: 24px;
  }

  .step {
    padding: 28px 24px;
  }
}

@media (max-width: 480px) {
  body {
    font-size: 16px;
  }

  .hero__title {
    font-size: 36px;
  }

  .hero__sub {
    font-size: 17px;
  }
}

/* ─── Legal pages ─────────────────────────────────────────────── */

.legal {
  max-width: 740px;
  margin: 0 auto;
  padding: 64px 32px;
}

.legal h1 {
  font-size: clamp(32px, 4vw, 44px);
  font-weight: 800;
  letter-spacing: -1px;
  margin: 0 0 8px;
}

.legal__updated {
  color: var(--text-tertiary);
  font-size: 14px;
  margin: 0 0 32px;
}

.legal h2 {
  font-size: 22px;
  font-weight: 700;
  margin: 36px 0 12px;
}

.legal p,
.legal ul {
  color: var(--text-secondary);
  font-size: 16px;
  line-height: 1.6;
}

.legal ul {
  padding-left: 22px;
  margin: 12px 0;
}

.legal ul li {
  margin-bottom: 6px;
}

.legal a {
  color: var(--accent-2);
}

@media (prefers-reduced-motion: reduce) {
  *,
  *::before,
  *::after {
    animation-duration: 0.01ms !important;
    transition-duration: 0.01ms !important;
  }
  .preview-screen {
    transform: none;
  }
}
