/* === RESET & BASE === */
*, *::before, *::after { box-sizing: border-box; margin: 0; padding: 0; }

:root {
  --bg: #09090F;
  --surface: #13131E;
  --surface2: #1C1C2B;
  --accent: #FF5E2A;
  --accent-dim: #FF5E2A22;
  --accent-glow: #FF5E2A55;
  --text: #F0EEF5;
  --text-muted: #8885A0;
  --border: #1F1F30;
  --font-display: 'Space Grotesk', sans-serif;
  --font-body: 'DM Sans', sans-serif;
}

html { font-size: 16px; }

body {
  background: var(--bg);
  color: var(--text);
  font-family: var(--font-body);
  line-height: 1.6;
  overflow-x: hidden;
}

/* === NAVBAR === */
.navbar {
  position: fixed;
  top: 0; left: 0; right: 0;
  z-index: 100;
  padding: 20px 40px;
  background: rgba(9,9,15,0.85);
  backdrop-filter: blur(12px);
  border-bottom: 1px solid var(--border);
}
.nav-inner {
  max-width: 1100px;
  margin: 0 auto;
  display: flex;
  align-items: baseline;
  gap: 16px;
}
.nav-logo {
  font-family: var(--font-display);
  font-size: 1.25rem;
  font-weight: 700;
  color: var(--text);
  letter-spacing: -0.02em;
}
.nav-tagline {
  font-size: 0.8rem;
  color: var(--text-muted);
  font-family: var(--font-body);
}

/* === HERO === */
.hero {
  min-height: 100vh;
  padding: 140px 40px 80px;
  display: flex;
  flex-direction: column;
  gap: 60px;
}
.hero-inner {
  max-width: 1100px;
  margin: 0 auto;
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 80px;
  align-items: start;
}
.hero-label {
  font-size: 0.8rem;
  text-transform: uppercase;
  letter-spacing: 0.12em;
  color: var(--accent);
  font-weight: 600;
  margin-bottom: 20px;
}
.hero-headline {
  font-family: var(--font-display);
  font-size: clamp(2.4rem, 5vw, 3.8rem);
  font-weight: 700;
  line-height: 1.08;
  letter-spacing: -0.03em;
  color: var(--text);
  margin-bottom: 28px;
}
.hero-headline .accent { color: var(--accent); }
.hero-sub {
  font-size: 1.05rem;
  color: var(--text-muted);
  line-height: 1.65;
  max-width: 460px;
}
.hero-right {
  display: flex;
  flex-direction: column;
  gap: 16px;
  padding-top: 20px;
}
.stat-card {
  background: var(--surface);
  border: 1px solid var(--border);
  border-radius: 16px;
  padding: 20px 24px;
  display: flex;
  flex-direction: column;
  gap: 6px;
  transition: border-color 0.2s;
}
.stat-card:hover { border-color: var(--accent-glow); }
.stat-label {
  font-size: 0.72rem;
  color: var(--text-muted);
  line-height: 1.4;
  font-family: var(--font-body);
}
.stat-value {
  font-family: var(--font-display);
  font-size: 2.2rem;
  font-weight: 700;
  color: var(--accent);
  letter-spacing: -0.04em;
  line-height: 1;
}
.stat-sub {
  font-size: 0.72rem;
  color: var(--text-muted);
}

/* Hero visual */
.hero-visual {
  max-width: 1100px;
  margin: 0 auto;
  width: 100%;
}
.phone-stack {
  display: flex;
  gap: 20px;
  justify-content: center;
  align-items: flex-end;
}
.phone {
  background: var(--surface);
  border: 1px solid var(--border);
  border-radius: 28px;
  padding: 16px;
  width: 200px;
}
.phone-1 { transform: translateY(0); }
.phone-2 { transform: translateY(-24px); }
.phone-3 { transform: translateY(-8px); }
.phone-screen {
  background: var(--surface2);
  border-radius: 18px;
  padding: 16px;
  min-height: 160px;
}
.screen-label {
  font-size: 0.65rem;
  font-weight: 600;
  color: var(--accent);
  text-transform: uppercase;
  letter-spacing: 0.08em;
  margin-bottom: 12px;
  font-family: var(--font-display);
}
.screen-rows { display: flex; flex-direction: column; gap: 6px; }
.screen-row {
  font-size: 0.7rem;
  color: var(--text-muted);
  padding: 4px 8px;
  border-radius: 6px;
  background: var(--surface);
  font-family: 'Courier New', monospace;
}
.screen-row.active { color: var(--text); border-left: 2px solid var(--accent); }
.screen-row.active-pulse { color: var(--accent); border-left: 2px solid var(--accent); animation: pulse-row 1.8s ease-in-out infinite; }
.screen-row.success { color: #4ADE80; }

@keyframes pulse-row {
  0%, 100% { opacity: 1; }
  50% { opacity: 0.5; }
}

/* === SECTIONS === */
section { padding: 100px 40px; }
.section-title {
  font-family: var(--font-display);
  font-size: clamp(1.8rem, 3.5vw, 2.8rem);
  font-weight: 700;
  letter-spacing: -0.03em;
  line-height: 1.1;
  color: var(--text);
  margin-bottom: 12px;
}
.section-sub {
  font-size: 1rem;
  color: var(--text-muted);
  max-width: 540px;
  line-height: 1.65;
}

/* HOW IT WORKS */
.howitworks { background: var(--surface); }
.hiw-header {
  max-width: 1100px;
  margin: 0 auto 60px;
}
.hiw-steps {
  max-width: 1100px;
  margin: 0 auto;
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  gap: 2px;
  background: var(--border);
  border-radius: 20px;
  overflow: hidden;
}
.hiw-step {
  background: var(--surface);
  padding: 40px 32px;
  display: flex;
  flex-direction: column;
  gap: 16px;
}
.step-number {
  font-family: var(--font-display);
  font-size: 0.75rem;
  font-weight: 700;
  color: var(--accent);
  letter-spacing: 0.08em;
}
.step-title {
  font-family: var(--font-display);
  font-size: 1.3rem;
  font-weight: 600;
  color: var(--text);
  letter-spacing: -0.02em;
}
.step-desc {
  font-size: 0.88rem;
  color: var(--text-muted);
  line-height: 1.6;
}

/* MACHINE */
.machine { background: var(--bg); }
.machine-inner {
  max-width: 1100px;
  margin: 0 auto;
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 80px;
  align-items: center;
}
.big-stat { text-align: center; }
.big-num {
  font-family: var(--font-display);
  font-size: 7rem;
  font-weight: 700;
  color: var(--accent);
  letter-spacing: -0.06em;
  line-height: 1;
}
.big-suffix {
  font-size: 4rem;
  vertical-align: super;
}
.big-label {
  font-size: 0.9rem;
  color: var(--text-muted);
  margin-top: 8px;
}
.machine-list {
  list-style: none;
  display: flex;
  flex-direction: column;
  gap: 14px;
  margin-top: 32px;
}
.machine-list li {
  font-size: 0.95rem;
  color: var(--text);
  padding-left: 24px;
  position: relative;
  line-height: 1.5;
}
.machine-list li::before {
  content: '→';
  position: absolute;
  left: 0;
  color: var(--accent);
  font-weight: 600;
}

/* FUNNEL */
.funnel { background: var(--surface); }
.funnel-header { max-width: 1100px; margin: 0 auto 60px; }
.funnel-path {
  max-width: 1100px;
  margin: 0 auto;
  display: flex;
  align-items: center;
  gap: 0;
}
.funnel-step {
  flex: 1;
  display: flex;
  gap: 16px;
  align-items: flex-start;
}
.f-icon {
  font-size: 1.6rem;
  color: var(--accent);
  flex-shrink: 0;
  line-height: 1.2;
}
.f-title {
  font-family: var(--font-display);
  font-size: 0.95rem;
  font-weight: 600;
  color: var(--text);
  margin-bottom: 4px;
}
.f-desc {
  font-size: 0.78rem;
  color: var(--text-muted);
  line-height: 1.45;
}
.funnel-arrow {
  font-size: 1.4rem;
  color: var(--accent);
  flex-shrink: 0;
  padding: 0 12px;
  opacity: 0.6;
}

/* NUMBERS */
.numbers { background: var(--bg); }
.numbers-header { max-width: 1100px; margin: 0 auto 60px; }
.numbers-grid {
  max-width: 1100px;
  margin: 0 auto;
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  gap: 24px;
}
.num-block {
  padding: 40px 32px;
  background: var(--surface);
  border: 1px solid var(--border);
  border-radius: 16px;
}
.num-value {
  font-family: var(--font-display);
  font-size: 2.8rem;
  font-weight: 700;
  color: var(--text);
  letter-spacing: -0.04em;
  line-height: 1;
  margin-bottom: 12px;
}
.num-label {
  font-size: 0.82rem;
  color: var(--text-muted);
  line-height: 1.5;
}

/* CLOSING */
.closing {
  padding: 120px 40px;
  background: linear-gradient(135deg, var(--bg) 0%, var(--surface) 100%);
  text-align: center;
}
.closing-inner {
  max-width: 700px;
  margin: 0 auto;
}
.closing-tagline {
  font-family: var(--font-display);
  font-size: clamp(2rem, 4vw, 3.2rem);
  font-weight: 700;
  color: var(--text);
  letter-spacing: -0.03em;
  line-height: 1.15;
  margin-bottom: 28px;
}
.closing-pill {
  display: inline-flex;
  align-items: center;
  gap: 12px;
  padding: 10px 24px;
  border: 1px solid var(--border);
  border-radius: 100px;
  font-size: 0.8rem;
  color: var(--text-muted);
}
.pill-sep { color: var(--accent); opacity: 0.5; }

/* FOOTER */
.footer {
  padding: 40px;
  border-top: 1px solid var(--border);
}
.footer-inner {
  max-width: 1100px;
  margin: 0 auto;
  display: flex;
  align-items: center;
  justify-content: space-between;
}
.footer-logo {
  font-family: var(--font-display);
  font-weight: 700;
  font-size: 1rem;
  color: var(--text);
  display: block;
  margin-bottom: 6px;
}
.footer-desc {
  font-size: 0.78rem;
  color: var(--text-muted);
}
.footer-links {
  font-size: 0.78rem;
  color: var(--text-muted);
}

/* === RESPONSIVE === */
@media (max-width: 768px) {
  .hero { padding: 100px 24px 60px; }
  .hero-inner { grid-template-columns: 1fr; gap: 48px; }
  .phone-stack { gap: 10px; }
  .phone { width: 130px; padding: 10px; }
  .phone-screen { min-height: 120px; padding: 12px; }
  section { padding: 60px 24px; }

  .hiw-steps { grid-template-columns: 1fr; }
  .machine-inner { grid-template-columns: 1fr; gap: 48px; }
  .big-num { font-size: 5rem; }

  .funnel-path {
    flex-direction: column;
    align-items: flex-start;
    gap: 16px;
  }
  .funnel-step { width: 100%; }
  .funnel-arrow { transform: rotate(90deg); }

  .numbers-grid { grid-template-columns: 1fr 1fr; }
  .footer-inner { flex-direction: column; gap: 16px; align-items: flex-start; }
}

@media (max-width: 480px) {
  .numbers-grid { grid-template-columns: 1fr; }
  .hero-headline { font-size: 2.2rem; }
}