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

:root {
  --bg: #0a0e14;
  --bg-surface: #0f1520;
  --bg-card: #111827;
  --fg: #f0f2f7;
  --fg-muted: #8892a4;
  --fg-dim: #5a6577;
  --accent: #e8a030;
  --accent-dim: rgba(232, 160, 48, 0.12);
  --accent-glow: rgba(232, 160, 48, 0.06);
  --border: rgba(255,255,255,0.07);
  --border-accent: rgba(232,160,48,0.25);
  --font-display: 'Playfair Display', Georgia, serif;
  --font-body: 'Source Sans 3', 'Helvetica Neue', sans-serif;
}

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

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

/* === TYPOGRAPHY === */
.section-label {
  font-family: var(--font-body);
  font-size: 0.68rem;
  font-weight: 600;
  letter-spacing: 0.2em;
  text-transform: uppercase;
  color: var(--accent);
  margin-bottom: 1.5rem;
}

.section-title {
  font-family: var(--font-display);
  font-size: clamp(1.6rem, 3.5vw, 2.4rem);
  font-weight: 600;
  line-height: 1.2;
  color: var(--fg);
  max-width: 700px;
}

/* === HERO === */
.hero {
  min-height: 100vh;
  display: flex;
  flex-direction: column;
  justify-content: center;
  padding: 6rem 8vw 4rem;
  position: relative;
  overflow: hidden;
  border-bottom: 1px solid var(--border);
}

/* Atmospheric grid */
.hero-grid {
  position: absolute;
  inset: 0;
  background-image:
    linear-gradient(rgba(232,160,48,0.04) 1px, transparent 1px),
    linear-gradient(90deg, rgba(232,160,48,0.04) 1px, transparent 1px);
  background-size: 60px 60px;
  mask-image: radial-gradient(ellipse 80% 60% at 50% 40%, black 20%, transparent 100%);
}

/* Signal nodes */
.hero-nodes {
  position: absolute;
  inset: 0;
  pointer-events: none;
}

.node {
  position: absolute;
  border-radius: 50%;
  background: var(--accent);
}

.node::before {
  content: '';
  position: absolute;
  inset: -4px;
  border-radius: 50%;
  border: 1px solid rgba(232,160,48,0.2);
  animation: pulse-ring 4s ease-in-out infinite;
}

@keyframes pulse-ring {
  0%, 100% { transform: scale(1); opacity: 0.5; }
  50% { transform: scale(1.6); opacity: 0; }
}

.node-1 { width: 8px; height: 8px; top: 22%; left: 18%; }
.node-2 { width: 5px; height: 5px; top: 35%; right: 22%; animation-delay: 0.8s; }
.node-3 { width: 6px; height: 6px; bottom: 38%; left: 28%; animation-delay: 1.6s; }
.node-4 { width: 4px; height: 4px; top: 55%; right: 35%; animation-delay: 2.4s; }
.node-5 { width: 7px; height: 7px; bottom: 25%; right: 15%; animation-delay: 0.4s; }

.hero-content {
  position: relative;
  z-index: 2;
  max-width: 860px;
}

.hero-eyebrow {
  font-family: var(--font-body);
  font-size: 0.7rem;
  font-weight: 600;
  letter-spacing: 0.22em;
  text-transform: uppercase;
  color: var(--accent);
  margin-bottom: 1.5rem;
}

.hero-headline {
  font-family: var(--font-display);
  font-size: clamp(2.4rem, 5.5vw, 4.2rem);
  font-weight: 700;
  line-height: 1.1;
  color: var(--fg);
  margin-bottom: 1.75rem;
  letter-spacing: -0.01em;
}

.hero-sub {
  font-size: 1.15rem;
  color: var(--fg-muted);
  max-width: 640px;
  margin-bottom: 2rem;
  font-weight: 300;
}

.hero-tagline {
  font-family: var(--font-display);
  font-style: italic;
  font-size: 1.1rem;
  color: var(--accent);
  opacity: 0.85;
}

/* Stat bar */
.hero-stat-bar {
  display: flex;
  align-items: center;
  gap: 2rem;
  margin-top: 4rem;
  padding: 1.5rem 2rem;
  background: var(--accent-glow);
  border: 1px solid var(--border-accent);
  border-radius: 2px;
  position: relative;
  z-index: 2;
  width: fit-content;
}

.stat { text-align: left; }

.stat-value {
  font-family: var(--font-display);
  font-size: 1.4rem;
  font-weight: 600;
  color: var(--accent);
  line-height: 1;
  margin-bottom: 0.25rem;
}

.stat-label {
  font-size: 0.7rem;
  color: var(--fg-muted);
  text-transform: uppercase;
  letter-spacing: 0.1em;
  font-weight: 400;
}

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

/* === HOW IT WORKS === */
.howitworks {
  padding: 7rem 8vw;
  border-bottom: 1px solid var(--border);
}

.howitworks .section-title {
  margin-bottom: 4rem;
  max-width: 560px;
}

.process-steps {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 0;
}

.process-step {
  padding: 2.5rem 2.5rem 2.5rem 0;
  position: relative;
}

.process-step:not(:last-child) {
  border-right: 1px solid var(--border);
  padding-right: 2.5rem;
}

.process-step:not(:first-child) {
  padding-left: 2.5rem;
}

.step-number {
  font-family: var(--font-display);
  font-size: 2.5rem;
  font-weight: 700;
  color: var(--accent);
  opacity: 0.25;
  line-height: 1;
  margin-bottom: 1rem;
}

.step-rule {
  width: 40px;
  height: 1px;
  background: var(--accent);
  margin-bottom: 1.5rem;
  opacity: 0.5;
}

.step-title {
  font-family: var(--font-display);
  font-size: 1.15rem;
  font-weight: 600;
  color: var(--fg);
  margin-bottom: 0.75rem;
}

.step-body {
  font-size: 0.9rem;
  color: var(--fg-muted);
  line-height: 1.7;
}

/* === FEATURES === */
.features {
  padding: 7rem 8vw;
  border-bottom: 1px solid var(--border);
  background: var(--bg-surface);
}

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

.features-grid {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 1px;
  background: var(--border);
}

.feature-card {
  background: var(--bg-surface);
  padding: 2.5rem;
  transition: background 0.2s;
}

.feature-card:hover { background: var(--bg-card); }

.feature-icon {
  width: 48px;
  height: 48px;
  display: flex;
  align-items: center;
  justify-content: center;
  margin-bottom: 1.5rem;
  background: var(--accent-dim);
  border: 1px solid var(--border-accent);
  border-radius: 2px;
}

.feature-title {
  font-family: var(--font-display);
  font-size: 1.05rem;
  font-weight: 600;
  color: var(--fg);
  margin-bottom: 0.75rem;
  line-height: 1.3;
}

.feature-body {
  font-size: 0.875rem;
  color: var(--fg-muted);
  line-height: 1.7;
}

/* === OUTCOMES === */
.outcomes {
  padding: 7rem 8vw;
  border-bottom: 1px solid var(--border);
}

.outcomes-inner {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 6rem;
  align-items: start;
}

.outcomes-title {
  font-family: var(--font-display);
  font-size: clamp(1.4rem, 2.5vw, 1.9rem);
  font-weight: 600;
  line-height: 1.25;
  color: var(--fg);
  margin-bottom: 1.5rem;
}

.outcomes-body {
  font-size: 0.95rem;
  color: var(--fg-muted);
  line-height: 1.75;
  margin-bottom: 1rem;
}

.outcome-stat {
  padding: 1.5rem 0;
  border-bottom: 1px solid var(--border);
}

.outcome-stat:last-child { border-bottom: none; }

.outcome-number {
  font-family: var(--font-display);
  font-size: 2.5rem;
  font-weight: 700;
  color: var(--accent);
  line-height: 1;
  margin-bottom: 0.5rem;
}

.outcome-text {
  font-size: 0.875rem;
  color: var(--fg-muted);
  line-height: 1.6;
}

/* === PHILOSOPHY === */
.philosophy {
  padding: 7rem 8vw;
  border-bottom: 1px solid var(--border);
  background: var(--bg-surface);
}

.philosophy-inner { max-width: 800px; }

.philosophy-quote {
  font-family: var(--font-display);
  font-size: clamp(1.3rem, 2.5vw, 1.8rem);
  font-style: italic;
  font-weight: 400;
  color: var(--fg);
  line-height: 1.4;
  margin-bottom: 2.5rem;
  padding-left: 2rem;
  border-left: 2px solid var(--accent);
}

.philosophy-divider {
  width: 60px;
  height: 1px;
  background: var(--accent);
  margin-bottom: 2.5rem;
  opacity: 0.4;
}

.philosophy-body p {
  font-size: 0.95rem;
  color: var(--fg-muted);
  line-height: 1.8;
  margin-bottom: 1rem;
}

/* === CLOSING === */
.closing {
  padding: 8rem 8vw;
  text-align: center;
  background: linear-gradient(180deg, var(--bg) 0%, rgba(232,160,48,0.04) 100%);
}

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

.closing-headline {
  font-family: var(--font-display);
  font-size: clamp(1.8rem, 4vw, 3rem);
  font-weight: 700;
  color: var(--fg);
  line-height: 1.15;
  margin-bottom: 1.5rem;
}

.closing-sub {
  font-size: 1.05rem;
  color: var(--fg-muted);
  line-height: 1.65;
  margin-bottom: 3rem;
}

.closing-rule {
  width: 60px;
  height: 1px;
  background: var(--accent);
  margin: 0 auto 3rem;
  opacity: 0.5;
}

.closing-tagline {
  font-family: var(--font-display);
  font-style: italic;
  font-size: 1rem;
  color: var(--accent);
  opacity: 0.7;
}

/* === FOOTER === */
.footer {
  padding: 2.5rem 8vw;
  border-top: 1px solid var(--border);
}

.footer-inner {
  display: flex;
  align-items: center;
  justify-content: space-between;
  flex-wrap: wrap;
  gap: 1rem;
}

.footer-logo {
  font-family: var(--font-display);
  font-size: 1.1rem;
  font-weight: 700;
  color: var(--fg);
  letter-spacing: 0.02em;
  margin-bottom: 0.25rem;
}

.footer-tagline {
  font-size: 0.8rem;
  color: var(--fg-dim);
}

.footer-meta {
  display: flex;
  align-items: center;
  gap: 0.75rem;
  font-size: 0.75rem;
  color: var(--fg-dim);
}

.footer-dot {
  width: 3px;
  height: 3px;
  border-radius: 50%;
  background: var(--fg-dim);
  display: inline-block;
}

/* === RESPONSIVE === */
@media (max-width: 900px) {
  .hero, .howitworks, .features, .outcomes, .philosophy, .closing { padding-left: 6vw; padding-right: 6vw; }
  .footer { padding-left: 6vw; padding-right: 6vw; }

  .process-steps { grid-template-columns: 1fr; }
  .process-step:not(:last-child) { border-right: none; border-bottom: 1px solid var(--border); padding-right: 0; padding-bottom: 2.5rem; }
  .process-step:not(:first-child) { padding-left: 0; }

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

  .outcomes-inner { grid-template-columns: 1fr; gap: 3rem; }
}

@media (max-width: 600px) {
  .hero { padding-top: 4rem; }
  .hero-stat-bar { flex-wrap: wrap; gap: 1rem; }
  .stat-divider { display: none; }
  .features-grid { grid-template-columns: 1fr; }
  .footer-inner { flex-direction: column; align-items: flex-start; }
}