:root {
  --bg-primary: #0a0f0d;
  --bg-secondary: #111916;
  --bg-card: #151d19;
  --bg-card-alt: #0d1a14;
  --fg-primary: #e8ede9;
  --fg-secondary: #8fa396;
  --fg-muted: #5a6e61;
  --accent: #34d399;
  --accent-dim: #1a7a52;
  --accent-glow: rgba(52, 211, 153, 0.08);
  --danger: #f87171;
  --border: rgba(143, 163, 150, 0.12);
  --radius: 12px;
  --font-display: 'Syne', sans-serif;
  --font-body: 'DM Sans', sans-serif;
}

* { margin: 0; padding: 0; box-sizing: border-box; }

html {
  font-size: 16px;
  scroll-behavior: smooth;
}

body {
  background: var(--bg-primary);
  color: var(--fg-primary);
  font-family: var(--font-body);
  line-height: 1.6;
  -webkit-font-smoothing: antialiased;
  overflow-x: hidden;
}

/* NAV */
.nav {
  position: fixed;
  top: 0;
  left: 0;
  right: 0;
  z-index: 100;
  padding: 1.25rem 1.5rem;
  background: rgba(10, 15, 13, 0.85);
  backdrop-filter: blur(20px);
  border-bottom: 1px solid var(--border);
}

.nav-inner {
  max-width: 1200px;
  margin: 0 auto;
  display: flex;
  align-items: center;
  justify-content: space-between;
}

.nav-logo {
  font-family: var(--font-display);
  font-weight: 700;
  font-size: 1.25rem;
  letter-spacing: -0.02em;
  color: var(--fg-primary);
  text-decoration: none;
  flex-shrink: 0;
}

.logo-mark {
  color: var(--accent);
  margin-right: 0.25rem;
}

.nav-toggle {
  display: none;
  flex-direction: column;
  justify-content: center;
  align-items: center;
  gap: 5px;
  width: 36px;
  height: 36px;
  background: none;
  border: 1px solid var(--border);
  border-radius: 8px;
  cursor: pointer;
  padding: 0;
}

.nav-toggle-bar {
  display: block;
  width: 20px;
  height: 2px;
  background: var(--fg-secondary);
  border-radius: 2px;
  transition: all 0.25s ease;
}

.nav-toggle--open .nav-toggle-bar:nth-child(1) {
  transform: translateY(7px) rotate(45deg);
}
.nav-toggle--open .nav-toggle-bar:nth-child(2) {
  opacity: 0;
}
.nav-toggle--open .nav-toggle-bar:nth-child(3) {
  transform: translateY(-7px) rotate(-45deg);
}

.nav-menu {
  display: flex;
  align-items: center;
  gap: 2rem;
}

.nav-link {
  font-size: 0.9rem;
  color: var(--fg-secondary);
  text-decoration: none;
  transition: color 0.2s ease;
  white-space: nowrap;
}

.nav-link:hover {
  color: var(--fg-primary);
}

.nav-cta {
  font-size: 0.875rem;
  font-weight: 600;
  color: var(--bg-primary);
  background: var(--accent);
  text-decoration: none;
  padding: 0.5rem 1.25rem;
  border-radius: 8px;
  transition: background 0.2s ease, transform 0.15s ease;
  white-space: nowrap;
}

.nav-cta:hover {
  background: #2dd484;
  transform: translateY(-1px);
}

/* HERO */
.hero {
  padding: 10rem 1.5rem 6rem;
  position: relative;
  overflow: hidden;
}

.hero::before {
  content: '';
  position: absolute;
  top: -40%;
  right: -20%;
  width: 800px;
  height: 800px;
  background: radial-gradient(circle, var(--accent-glow) 0%, transparent 65%);
  pointer-events: none;
}

.hero-inner {
  max-width: 900px;
  margin: 0 auto;
  position: relative;
}

.hero-label {
  display: inline-block;
  font-size: 0.8rem;
  font-weight: 500;
  letter-spacing: 0.1em;
  text-transform: uppercase;
  color: var(--accent);
  background: var(--accent-glow);
  border: 1px solid rgba(52, 211, 153, 0.2);
  padding: 0.4rem 1rem;
  border-radius: 100px;
  margin-bottom: 2rem;
}

.hero h1 {
  font-family: var(--font-display);
  font-size: clamp(2.5rem, 6vw, 4.5rem);
  font-weight: 800;
  line-height: 1.08;
  letter-spacing: -0.03em;
  margin-bottom: 1.5rem;
}

.hero-sub {
  font-size: 1.2rem;
  color: var(--fg-secondary);
  max-width: 640px;
  line-height: 1.7;
  margin-bottom: 2.5rem;
}

.hero-actions {
  display: flex;
  align-items: center;
  gap: 1rem;
  flex-wrap: wrap;
  margin-bottom: 3.5rem;
}

.btn {
  display: inline-block;
  font-family: var(--font-body);
  font-weight: 600;
  font-size: 0.95rem;
  text-decoration: none;
  padding: 0.875rem 2rem;
  border-radius: 10px;
  transition: all 0.2s ease;
  cursor: pointer;
  border: none;
}

.btn-primary {
  background: var(--accent);
  color: #0a0f0d;
}

.btn-primary:hover {
  background: #2dd484;
  transform: translateY(-2px);
  box-shadow: 0 8px 24px rgba(52, 211, 153, 0.25);
}

.btn-secondary {
  background: var(--bg-secondary);
  color: var(--fg-primary);
  border: 1px solid var(--border);
}

.btn-secondary:hover {
  background: var(--bg-card);
  border-color: rgba(52, 211, 153, 0.3);
  transform: translateY(-1px);
}

.hero-stats {
  display: flex;
  align-items: center;
  gap: 2rem;
  flex-wrap: wrap;
}

.stat {
  display: flex;
  flex-direction: column;
}

.stat-num {
  font-family: var(--font-display);
  font-size: 2.5rem;
  font-weight: 700;
  color: var(--accent);
  letter-spacing: -0.02em;
  line-height: 1;
}

.stat-label {
  font-size: 0.85rem;
  color: var(--fg-muted);
  margin-top: 0.35rem;
}

.stat-divider {
  width: 1px;
  height: 48px;
  background: var(--border);
  flex-shrink: 0;
}

/* PROBLEM SECTION */
.problem {
  padding: 6rem 1.5rem;
  background: var(--bg-secondary);
}

.problem-inner {
  max-width: 1200px;
  margin: 0 auto;
}

.problem-grid {
  display: grid;
  grid-template-columns: 1fr 1.2fr;
  gap: 4rem;
  align-items: start;
}

.problem-text h2 {
  font-family: var(--font-display);
  font-size: clamp(1.8rem, 3.5vw, 2.8rem);
  font-weight: 700;
  letter-spacing: -0.02em;
  margin-bottom: 1.25rem;
  line-height: 1.15;
}

.problem-text p {
  color: var(--fg-secondary);
  font-size: 1.05rem;
  line-height: 1.7;
  margin-bottom: 1rem;
}

.problem-highlight {
  color: var(--accent) !important;
  font-weight: 600;
  font-size: 1.15rem !important;
}

.problem-comparison {
  display: flex;
  flex-direction: column;
  gap: 1rem;
}

.comparison-card {
  padding: 1.75rem;
  border-radius: var(--radius);
  border: 1px solid var(--border);
}

.comparison-old {
  background: var(--bg-card-alt);
}

.comparison-new {
  background: var(--bg-card);
  border-color: rgba(52, 211, 153, 0.25);
}

.comparison-header {
  font-family: var(--font-display);
  font-weight: 600;
  font-size: 0.85rem;
  text-transform: uppercase;
  letter-spacing: 0.08em;
  margin-bottom: 1rem;
  color: var(--fg-muted);
}

.comparison-new .comparison-header {
  color: var(--accent);
}

.comparison-card ul {
  list-style: none;
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 0.6rem;
}

.comparison-card li {
  font-size: 0.95rem;
  color: var(--fg-secondary);
  padding-left: 1.25rem;
  position: relative;
}

.comparison-old li::before {
  content: '\u2715';
  position: absolute;
  left: 0;
  color: var(--danger);
  font-size: 0.75rem;
  top: 0.15rem;
}

.comparison-new li::before {
  content: '\u2713';
  position: absolute;
  left: 0;
  color: var(--accent);
  font-size: 0.8rem;
  top: 0.1rem;
}

/* FEATURES */
.features {
  padding: 6rem 1.5rem;
}

.features-inner {
  max-width: 1200px;
  margin: 0 auto;
}

.features-header {
  margin-bottom: 3.5rem;
}

.features-header h2 {
  font-family: var(--font-display);
  font-size: clamp(1.8rem, 3.5vw, 2.8rem);
  font-weight: 700;
  letter-spacing: -0.02em;
  line-height: 1.15;
}

.features-grid {
  display: grid;
  grid-template-columns: repeat(2, 1fr);
  gap: 1.25rem;
}

/* feature-large spans both columns on desktop to highlight key features */
.feature-large {
  grid-column: 1 / -1;
}

.feature-card {
  background: var(--bg-secondary);
  border: 1px solid var(--border);
  border-radius: var(--radius);
  padding: 2.25rem;
  transition: border-color 0.2s ease;
}

.feature-card:hover {
  border-color: rgba(52, 211, 153, 0.3);
}

.feature-icon {
  font-size: 1.25rem;
  color: var(--accent);
  margin-bottom: 1rem;
}

.feature-card h3 {
  font-family: var(--font-display);
  font-size: 1.3rem;
  font-weight: 700;
  letter-spacing: -0.01em;
  margin-bottom: 0.75rem;
}

.feature-card p {
  color: var(--fg-secondary);
  font-size: 0.95rem;
  line-height: 1.65;
}

/* PRICING */
.pricing {
  padding: 6rem 1.5rem;
  background: var(--bg-secondary);
}

.pricing-inner {
  max-width: 1200px;
  margin: 0 auto;
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 4rem;
  align-items: start;
}

.pricing-text h2 {
  font-family: var(--font-display);
  font-size: clamp(2.5rem, 5vw, 4rem);
  font-weight: 800;
  letter-spacing: -0.03em;
  color: var(--accent);
  margin-bottom: 1rem;
  line-height: 1.1;
}

.pricing-sub {
  color: var(--fg-secondary);
  font-size: 1.05rem;
  line-height: 1.7;
}

.pricing-compare {
  display: flex;
  flex-direction: column;
  gap: 0;
}

.price-row {
  display: flex;
  justify-content: space-between;
  align-items: center;
  padding: 1.25rem 1.5rem;
  border-bottom: 1px solid var(--border);
  flex-wrap: wrap;
  gap: 0.5rem;
}

.price-row:first-child {
  border-top: 1px solid var(--border);
}

.price-label {
  font-size: 1rem;
  color: var(--fg-secondary);
}

.price-value {
  font-family: var(--font-display);
  font-weight: 600;
  font-size: 1rem;
}

.price-expensive {
  color: var(--fg-muted);
  text-decoration: line-through;
  text-decoration-color: var(--danger);
}

.price-ours {
  color: var(--accent);
  font-size: 1.15rem;
}

.price-row-highlight {
  background: var(--accent-glow);
  border: 1px solid rgba(52, 211, 153, 0.2);
  border-radius: var(--radius);
  margin-top: 0.75rem;
}

/* CLOSING */
.closing {
  padding: 8rem 1.5rem;
  text-align: center;
}

.closing-inner {
  max-width: 720px;
  margin: 0 auto;
}

.closing h2 {
  font-family: var(--font-display);
  font-size: clamp(2rem, 4vw, 3.2rem);
  font-weight: 800;
  letter-spacing: -0.02em;
  line-height: 1.12;
  margin-bottom: 1.5rem;
}

.closing p {
  color: var(--fg-secondary);
  font-size: 1.1rem;
  line-height: 1.75;
  margin-bottom: 1rem;
}

.closing-tagline {
  color: var(--accent) !important;
  font-family: var(--font-display);
  font-weight: 600;
  font-size: 1.15rem !important;
  margin-top: 2rem !important;
}

/* FOOTER */
.footer {
  padding: 2rem 1.5rem;
  border-top: 1px solid var(--border);
}

.footer-inner {
  max-width: 1200px;
  margin: 0 auto;
  display: flex;
  justify-content: space-between;
  align-items: center;
  gap: 1rem;
}

.footer-brand {
  font-family: var(--font-display);
  font-weight: 700;
  font-size: 1rem;
}

.footer-meta {
  font-size: 0.85rem;
  color: var(--fg-muted);
}

.footer-dot {
  margin: 0 0.5rem;
}

/* ========================================
   RESPONSIVE — DESKTOP LARGE (1280px+)
   ======================================== */
@media (min-width: 1280px) {
  .nav {
    padding: 1.25rem 2rem;
  }

  .hero {
    padding: 11rem 2rem 7rem;
  }

  .problem, .features, .pricing {
    padding: 7rem 2rem;
  }

  .closing {
    padding: 9rem 2rem;
  }
}

/* ========================================
   RESPONSIVE — TABLET (max-width: 768px)
   ======================================== */
@media (max-width: 768px) {
  .hero {
    padding: 8rem 1.25rem 4rem;
  }

  .hero-stats {
    gap: 1.25rem;
  }

  .stat-num {
    font-size: 2rem;
  }

  .stat-divider {
    display: none;
  }

  .problem-grid {
    grid-template-columns: 1fr;
    gap: 2.5rem;
  }

  .comparison-card ul {
    grid-template-columns: 1fr;
  }

  .features-grid {
    grid-template-columns: 1fr;
  }

  /* Reset spanning — all cards full width in single column */
  .feature-large {
    grid-column: auto;
  }

  .pricing-inner {
    grid-template-columns: 1fr;
    gap: 2.5rem;
  }

  .problem, .features, .pricing {
    padding: 4rem 1.25rem;
  }

  .closing {
    padding: 5rem 1.25rem;
  }

  .nav {
    padding: 1rem 1.25rem;
  }

  .nav-tag {
    display: none;
  }

  /* Mobile nav toggle — show on mobile, sits above overlay so menu can be closed */
  .nav-toggle {
    display: flex;
    position: relative;
    z-index: 102;
  }

  /* Nav menu — hide by default, fade in when open */
  /* z-index 101 ensures overlay sits above the fixed nav bar (z-index: 100) */
  .nav-menu {
    position: fixed;
    top: 0;
    left: 0;
    right: 0;
    bottom: 0;
    background: rgba(10, 15, 13, 0.97);
    backdrop-filter: blur(20px);
    flex-direction: column;
    align-items: center;
    justify-content: center;
    gap: 2rem;
    opacity: 0;
    visibility: hidden;
    transition: opacity 0.25s ease, visibility 0.25s ease;
    z-index: 101;
  }

  .nav-menu--open {
    opacity: 1;
    visibility: visible;
  }

  .nav-link {
    font-size: 1.1rem;
    color: var(--fg-secondary);
  }

  .nav-cta {
    font-size: 1rem;
    padding: 0.75rem 2rem;
  }

  .footer-inner {
    flex-direction: column;
    gap: 0.75rem;
    text-align: center;
  }
}

/* ========================================
   RESPONSIVE — MID MOBILE (max-width: 600px)
   Catches cramped layouts between 480–768px:
   hero stat stack, CTA buttons full-width,
   and pricing row stacking.
   ======================================== */
@media (max-width: 600px) {
  .hero-stats {
    flex-direction: column;
    align-items: flex-start;
    gap: 1rem;
  }

  .stat-divider {
    display: none;
  }

  .hero-actions {
    flex-direction: column;
    align-items: stretch;
    gap: 0.75rem;
  }

  .hero-actions .btn {
    text-align: center;
    width: 100%;
  }

  /* Stack label above price on small screens for clarity */
  .price-row {
    flex-direction: column;
    align-items: flex-start;
    gap: 0.25rem;
  }

  .price-value {
    font-size: 0.95rem;
  }
}

/* ========================================
   RESPONSIVE — MOBILE SMALL (max-width: 480px)
   ======================================== */
@media (max-width: 480px) {
  .hero {
    padding: 7rem 1rem 3.5rem;
  }

  .hero h1 {
    font-size: 2rem;
  }

  .hero-sub {
    font-size: 1rem;
  }

  .hero-actions .btn {
    padding: 0.875rem 1.5rem;
  }

  .stat-num {
    font-size: 1.75rem;
  }

  .stat {
    flex-direction: row;
    align-items: baseline;
    gap: 0.5rem;
  }

  .stat-label {
    margin-top: 0;
  }

  .problem, .features, .pricing {
    padding: 3rem 1rem;
  }

  .closing {
    padding: 4rem 1rem;
  }

  .closing h2 {
    font-size: 1.75rem;
  }

  .footer {
    padding: 1.5rem 1rem;
  }

  .comparison-card ul {
    grid-template-columns: 1fr;
  }

  .feature-card {
    padding: 1.5rem;
  }
}