/* ============================================================
   home_landing.css — Minimalist Apple-inspired redesign v30
   ============================================================ */
@import url('partials/variables.css');

/* ── Base reset for landing ───────────────────────────────── */
.landing-page:not(.auth-page) .page-content {
  padding: 0 !important;
  overflow-x: hidden;
}

/* ── Shared section helpers ───────────────────────────────── */
.lp-container {
  max-width: 1100px;
  margin: 0 auto;
  padding: 0 2rem;
}

.lp-section {
  padding: 7rem 0;
}

.lp-section-header {
  margin-bottom: 4rem;
}

.lp-section-header--center {
  text-align: center;
}

.lp-eyebrow {
  display: inline-block;
  font-size: 0.75rem;
  font-weight: 600;
  letter-spacing: 0.15em;
  text-transform: uppercase;
  color: var(--accent-primary);
  margin-bottom: 1rem;
}

.lp-section-title {
  font-family: 'Outfit', sans-serif;
  font-size: clamp(2rem, 4vw, 3rem);
  font-weight: 700;
  line-height: 1.15;
  color: var(--text-strong);
  margin: 0;
  letter-spacing: -0.025em;
}

/* ── HERO ────────────────────────────────────────────────── */
.lp-hero {
  position: relative;
  min-height: 80vh;
  display: flex;
  align-items: center;
  overflow: hidden;
  padding: 7rem 2rem 5rem;
  background:
    linear-gradient(
      to bottom,
      rgba(8, 14, 12, 0.72) 0%,
      rgba(8, 14, 12, 0.60) 40%,
      rgba(8, 14, 12, 0.75) 100%
    ),
    url('../img/landing_hero_bg.png') center / cover no-repeat;
}

.lp-hero-inner {
  position: relative;
  z-index: 2;
  max-width: 680px;
  margin: 0 auto;
  text-align: center;
}

/* Overline badge */
.lp-hero-overline {
  display: inline-flex;
  align-items: center;
  gap: 0.5rem;
  font-size: 0.78rem;
  font-weight: 600;
  letter-spacing: 0.12em;
  text-transform: uppercase;
  color: var(--accent-primary);
  margin-bottom: 1.75rem;
}

.lp-dot {
  width: 6px;
  height: 6px;
  border-radius: 50%;
  background: var(--accent-primary);
  box-shadow: 0 0 8px var(--accent-primary);
  animation: lpPulse 2s ease-in-out infinite;
}

@keyframes lpPulse {
  0%, 100% { opacity: 1; transform: scale(1); }
  50% { opacity: 0.5; transform: scale(1.4); }
}

/* Hero headline */
.lp-hero-title {
  font-family: 'Outfit', sans-serif;
  font-size: clamp(2.8rem, 7vw, 5.5rem);
  font-weight: 800;
  line-height: 1.08;
  letter-spacing: -0.04em;
  color: #F4F7F5; /* always white on dark hero bg */
  margin: 0 0 1.5rem;
}

.lp-hero-accent {
  background: linear-gradient(125deg, #6EDC5F 0%, #B8F04A 60%, #6EDC5F 100%);
  -webkit-background-clip: text;
  -webkit-text-fill-color: transparent;
  background-clip: text;
}

.lp-hero-sub {
  font-size: 1.1rem;
  line-height: 1.7;
  color: rgba(244, 247, 245, 0.75); /* always light on dark hero bg */
  max-width: 560px;
  margin: 0 auto 2.5rem;
}

.lp-hero-sub strong {
  color: #F4F7F5;
  font-weight: 600;
}

.lp-hero-overline {
  color: #6EDC5F; /* force green on dark bg */
}

/* Hero actions */
.lp-hero-actions {
  display: flex;
  gap: 1rem;
  justify-content: center;
  flex-wrap: wrap;
}

/* Shared buttons */
.lp-btn-primary {
  display: inline-flex;
  align-items: center;
  gap: 0.5rem;
  padding: 0.875rem 2rem;
  background: var(--accent-primary);
  color: #0a1a0e;
  font-weight: 700;
  font-size: 0.95rem;
  border-radius: 100px;
  text-decoration: none;
  transition: all 0.25s;
  letter-spacing: -0.01em;
}

.lp-btn-primary:hover {
  transform: translateY(-2px);
  box-shadow: 0 12px 35px rgba(110, 220, 95, 0.4);
  color: #0a1a0e;
}

.lp-btn-ghost {
  display: inline-flex;
  align-items: center;
  gap: 0.5rem;
  padding: 0.875rem 2rem;
  background: transparent;
  color: var(--text-soft);
  font-weight: 500;
  font-size: 0.95rem;
  border-radius: 100px;
  border: 1px solid rgba(255,255,255,0.12);
  text-decoration: none;
  transition: all 0.25s;
}

.lp-btn-ghost:hover {
  border-color: rgba(255,255,255,0.3);
  color: var(--text-strong);
  background: rgba(255,255,255,0.04);
}

/* Background grid decoration */
.lp-grid-bg {
  position: absolute;
  inset: 0;
  z-index: 0;
  background-image:
    linear-gradient(rgba(110,220,95,0.04) 1px, transparent 1px),
    linear-gradient(90deg, rgba(110,220,95,0.04) 1px, transparent 1px);
  background-size: 60px 60px;
  mask-image: radial-gradient(ellipse 80% 70% at 50% 40%, black 30%, transparent 100%);
  -webkit-mask-image: radial-gradient(ellipse 80% 70% at 50% 40%, black 30%, transparent 100%);
}

/* Blobs — only shown when no background image */
.lp-blob {
  display: none;
}

/* ── STATS STRIP ─────────────────────────────────────────── */
.lp-stats {
  border-top: 1px solid rgba(255,255,255,0.06);
  border-bottom: 1px solid rgba(255,255,255,0.06);
  padding: 3rem 2rem;
}

.lp-stats-inner {
  max-width: 860px;
  margin: 0 auto;
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 0;
  flex-wrap: wrap;
}

.lp-stat {
  flex: 1;
  min-width: 160px;
  text-align: center;
  padding: 0 2rem;
}

.lp-stat-val {
  font-family: 'Outfit', sans-serif;
  font-size: 2.6rem;
  font-weight: 800;
  color: var(--accent-primary);
  line-height: 1;
  letter-spacing: -0.04em;
}

.lp-stat-unit {
  font-size: 0.85rem;
  color: var(--text-soft);
  font-weight: 500;
}

.lp-stat-lbl {
  font-size: 0.78rem;
  color: var(--text-muted);
  margin-top: 0.25rem;
  text-transform: uppercase;
  letter-spacing: 0.08em;
}

.lp-stat-sep {
  width: 1px;
  height: 48px;
  background: rgba(255,255,255,0.08);
  flex-shrink: 0;
}

/* ── FEATURES GRID — 2 cols (large spans full width row 1) ─ */
.lp-feature-grid {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 1.25rem;
}

/* Large feature spans full width */
.lp-feature--large {
  grid-column: 1 / -1;
}

/* Base feature card */
.lp-feature {
  background: rgba(255,255,255,0.03);
  border: 1px solid rgba(255,255,255,0.07);
  border-radius: 1.25rem;
  padding: 2rem 2rem 1.75rem;
  transition: border-color 0.25s, background 0.25s;
  position: relative;
  overflow: hidden;
}

.lp-feature::before {
  content: '';
  position: absolute;
  top: 0; left: 0; right: 0;
  height: 1px;
  background: linear-gradient(90deg, transparent, rgba(110,220,95,0.3), transparent);
  opacity: 0;
  transition: opacity 0.3s;
}

.lp-feature:hover {
  border-color: rgba(110,220,95,0.2);
  background: rgba(110,220,95,0.04);
}

.lp-feature:hover::before {
  opacity: 1;
}

.lp-feature-icon {
  width: 44px;
  height: 44px;
  border-radius: 12px;
  background: rgba(110,220,95,0.1);
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 1.2rem;
  color: var(--accent-primary);
  margin-bottom: 1.25rem;
}

.lp-feature h3 {
  font-size: 1.15rem;
  font-weight: 700;
  color: var(--text-strong);
  margin: 0 0 0.6rem;
  letter-spacing: -0.02em;
}

.lp-feature p {
  font-size: 0.9rem;
  line-height: 1.65;
  color: var(--text-soft);
  margin: 0 0 1.25rem;
}

/* Mini bar chart in feature card */
.lp-minibars {
  display: flex;
  align-items: flex-end;
  gap: 4px;
  height: 60px;
  margin-top: auto;
}

.lp-minibar {
  flex: 1;
  background: rgba(110,220,95,0.25);
  border-radius: 3px 3px 0 0;
  transition: background 0.2s;
}

.lp-minibar--peak {
  background: rgba(110,220,95,0.75) !important;
}

.lp-feature:hover .lp-minibar {
  background: rgba(110,220,95,0.35);
}

/* Tags */
.lp-tag {
  display: inline-flex;
  align-items: center;
  padding: 4px 10px;
  background: rgba(255,255,255,0.06);
  border: 1px solid rgba(255,255,255,0.1);
  border-radius: 100px;
  font-size: 0.72rem;
  color: var(--text-muted);
  font-weight: 500;
  letter-spacing: 0.02em;
}

.lp-tag--green {
  background: rgba(110,220,95,0.1);
  border-color: rgba(110,220,95,0.2);
  color: var(--accent-primary);
}

/* Export badges */
.lp-export-badges {
  display: flex;
  gap: 0.5rem;
  flex-wrap: wrap;
  margin-top: auto;
}

.lp-export-badge {
  padding: 4px 12px;
  background: rgba(110,220,95,0.12);
  border: 1px solid rgba(110,220,95,0.2);
  border-radius: 100px;
  font-size: 0.75rem;
  font-weight: 600;
  color: var(--accent-primary);
  letter-spacing: 0.03em;
}

/* ── HOW IT WORKS — 3 STEPS ──────────────────────────────── */
.lp-steps-grid {
  display: flex;
  align-items: flex-start;
  gap: 0;
}

.lp-step {
  flex: 1;
  padding: 2.5rem 2rem;
  text-align: center;
  position: relative;
}

.lp-step-num {
  font-family: 'Outfit', sans-serif;
  font-size: 4rem;
  font-weight: 800;
  color: rgba(110,220,95,0.08);
  line-height: 1;
  letter-spacing: -0.05em;
  margin-bottom: -1rem;
}

.lp-step-icon {
  width: 56px;
  height: 56px;
  border-radius: 16px;
  background: rgba(110,220,95,0.08);
  border: 1px solid rgba(110,220,95,0.15);
  display: inline-flex;
  align-items: center;
  justify-content: center;
  font-size: 1.4rem;
  color: var(--accent-primary);
  margin: 0 auto 1.25rem;
}

.lp-step h3 {
  font-size: 1.1rem;
  font-weight: 700;
  color: var(--text-strong);
  margin: 0 0 0.65rem;
  letter-spacing: -0.02em;
}

.lp-step p {
  font-size: 0.875rem;
  line-height: 1.65;
  color: var(--text-soft);
  margin: 0;
  max-width: 240px;
  margin: 0 auto;
}

.lp-step-connector {
  width: 1px;
  height: 180px;
  background: linear-gradient(to bottom, transparent, rgba(110,220,95,0.25), transparent);
  flex-shrink: 0;
  align-self: center;
}

/* ── CTA SECTION ─────────────────────────────────────────── */
.lp-cta {
  padding: 6rem 2rem;
  text-align: center;
}

.lp-cta-inner {
  max-width: 640px;
  margin: 0 auto;
  background: rgba(110,220,95,0.04);
  border: 1px solid rgba(110,220,95,0.12);
  border-radius: 2rem;
  padding: 4rem 3rem;
  position: relative;
  overflow: hidden;
}

.lp-cta-inner::before {
  content: '';
  position: absolute;
  top: 0; left: 30%; right: 30%;
  height: 1px;
  background: linear-gradient(90deg, transparent, rgba(110,220,95,0.5), transparent);
}

.lp-cta h2 {
  font-family: 'Outfit', sans-serif;
  font-size: clamp(1.75rem, 3.5vw, 2.5rem);
  font-weight: 800;
  color: var(--text-strong);
  margin: 0 0 1rem;
  letter-spacing: -0.03em;
}

.lp-cta p {
  font-size: 1rem;
  color: var(--text-soft);
  margin: 0 0 2.5rem;
  line-height: 1.6;
}

.lp-cta-actions {
  display: flex;
  justify-content: center;
}

/* ── LIGHT MODE OVERRIDES ────────────────────────────────── */
html.dc-light .lp-grid-bg {
  background-image:
    linear-gradient(rgba(42,140,40,0.05) 1px, transparent 1px),
    linear-gradient(90deg, rgba(42,140,40,0.05) 1px, transparent 1px);
}

html.dc-light .lp-blob-1 {
  background: radial-gradient(circle, rgba(42,140,40,0.08) 0%, transparent 70%);
}

html.dc-light .lp-blob-2 {
  background: radial-gradient(circle, rgba(42,140,40,0.06) 0%, transparent 70%);
}

html.dc-light .lp-stats {
  border-color: rgba(0,0,0,0.06);
}

html.dc-light .lp-stat-sep {
  background: rgba(0,0,0,0.08);
}

html.dc-light .lp-feature {
  background: rgba(0,0,0,0.02);
  border-color: rgba(0,0,0,0.07);
}

html.dc-light .lp-feature:hover {
  background: rgba(42,140,40,0.03);
  border-color: rgba(42,140,40,0.2);
}

html.dc-light .lp-minibar {
  background: rgba(42,140,40,0.2);
}

html.dc-light .lp-minibar--peak {
  background: rgba(42,140,40,0.6) !important;
}

html.dc-light .lp-tag {
  background: rgba(0,0,0,0.04);
  border-color: rgba(0,0,0,0.1);
  color: var(--text-muted);
}

html.dc-light .lp-tag--green {
  background: rgba(42,140,40,0.08);
  border-color: rgba(42,140,40,0.2);
}

html.dc-light .lp-step-connector {
  background: linear-gradient(to bottom, transparent, rgba(42,140,40,0.2), transparent);
}

html.dc-light .lp-step-icon {
  background: rgba(42,140,40,0.07);
  border-color: rgba(42,140,40,0.15);
}

html.dc-light .lp-cta-inner {
  background: rgba(42,140,40,0.03);
  border-color: rgba(42,140,40,0.12);
}

html.dc-light .lp-btn-ghost {
  border-color: rgba(0,0,0,0.12);
  color: var(--text-soft);
}

html.dc-light .lp-btn-ghost:hover {
  border-color: rgba(0,0,0,0.25);
  color: var(--text-strong);
  background: rgba(0,0,0,0.03);
}

/* ── RESPONSIVE ──────────────────────────────────────────── */
@media (max-width: 900px) {
  .lp-steps-grid {
    flex-direction: column;
    align-items: center;
    gap: 0.5rem;
  }
  .lp-step-connector {
    width: 40px;
    height: 1px;
    background: linear-gradient(to right, transparent, rgba(110,220,95,0.25), transparent);
  }
  .lp-stat-sep {
    display: none;
  }
  .lp-stats-inner {
    gap: 2rem;
    flex-wrap: wrap;
    justify-content: center;
  }
  .lp-stat {
    min-width: 140px;
    padding: 0 1rem;
  }
  .lp-section {
    padding: 5rem 0;
  }
}

@media (max-width: 640px) {
  .lp-feature-grid {
    grid-template-columns: 1fr;
  }
  .lp-feature--large {
    grid-column: 1;
  }
  .lp-hero {
    min-height: auto;       /* no more full-screen height on mobile */
    padding: 5rem 1.25rem 3rem;
    align-items: flex-start;
  }
  .lp-hero-inner {
    padding-top: 0;
  }
  .lp-hero-title {
    font-size: clamp(2rem, 10vw, 3.2rem);
  }
  .lp-section {
    padding: 4rem 0;
  }
  .lp-cta-inner {
    padding: 2.5rem 1.25rem;
    border-radius: 1.25rem;
  }
  .lp-cta h2 {
    font-size: 1.6rem;
  }
  .lp-step {
    padding: 1.5rem 1rem;
  }
  .lp-step-num {
    font-size: 2.5rem;
  }
  .lp-feature {
    padding: 1.5rem 1.5rem 1.25rem;
  }
  .lp-stats {
    padding: 2rem 1.25rem;
  }
  .lp-stat-val {
    font-size: 2rem;
  }
  .lp-hero-actions {
    flex-direction: column;
    align-items: center;
  }
  .lp-btn-primary,
  .lp-btn-ghost {
    width: 100%;
    justify-content: center;
  }
}
