/* ─── Reset & Base ─── */
*, *::before, *::after { box-sizing: border-box; margin: 0; padding: 0; }

:root {
  --bg: #0D0D0D;
  --surface: #141414;
  --surface-2: #1C1C1C;
  --accent: #FFB800;
  --accent-dim: rgba(255, 184, 0, 0.15);
  --text: #F5F5F5;
  --text-muted: rgba(245, 245, 245, 0.55);
  --border: rgba(255, 255, 255, 0.08);
  --font-display: 'Syne', sans-serif;
  --font-body: 'DM Sans', sans-serif;
}

html { scroll-behavior: smooth; }

body {
  background: var(--bg);
  color: var(--text);
  font-family: var(--font-body);
  font-weight: 400;
  line-height: 1.6;
  -webkit-font-smoothing: antialiased;
}

/* ─── Nav ─── */
.nav {
  display: flex;
  align-items: baseline;
  justify-content: space-between;
  padding: 28px 48px;
  border-bottom: 1px solid var(--border);
}

.nav-logo {
  font-family: var(--font-display);
  font-weight: 800;
  font-size: 1.1rem;
  letter-spacing: 0.05em;
  text-transform: uppercase;
}

.nav-tagline {
  font-size: 0.75rem;
  color: var(--text-muted);
  font-weight: 300;
  letter-spacing: 0.08em;
  text-transform: uppercase;
}

/* ─── Hero ─── */
.hero {
  display: grid;
  grid-template-columns: 1fr 320px;
  gap: 48px;
  align-items: center;
  padding: 80px 48px 96px;
  position: relative;
  overflow: hidden;
  min-height: 70vh;
}

.hero-grid-lines {
  position: absolute;
  inset: 0;
  background-image:
    linear-gradient(rgba(255,184,0,0.04) 1px, transparent 1px),
    linear-gradient(90deg, rgba(255,184,0,0.04) 1px, transparent 1px);
  background-size: 64px 64px;
  pointer-events: none;
}

.hero-content { position: relative; z-index: 1; }

.hero-eyebrow {
  display: flex;
  align-items: center;
  gap: 10px;
  margin-bottom: 28px;
}

.eyebrow-dot {
  width: 8px;
  height: 8px;
  border-radius: 50%;
  background: var(--accent);
  animation: pulse-dot 2s ease-in-out infinite;
}

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

.eyebrow-text {
  font-size: 0.8rem;
  font-weight: 500;
  letter-spacing: 0.12em;
  text-transform: uppercase;
  color: var(--accent);
}

.hero-headline {
  font-family: var(--font-display);
  font-weight: 800;
  font-size: clamp(3.2rem, 8vw, 6rem);
  line-height: 0.95;
  letter-spacing: -0.02em;
  margin-bottom: 28px;
  color: var(--text);
}

.hero-highlight {
  color: var(--accent);
  position: relative;
}

.hero-sub {
  font-size: 1.05rem;
  color: var(--text-muted);
  line-height: 1.7;
  max-width: 480px;
  margin-bottom: 48px;
}

.hero-stats {
  display: flex;
  align-items: center;
  gap: 0;
}

.stat-item {
  display: flex;
  flex-direction: column;
  gap: 4px;
  padding: 0 32px;
}

.stat-item:first-child { padding-left: 0; }

.stat-number {
  font-family: var(--font-display);
  font-weight: 700;
  font-size: 1.8rem;
  color: var(--text);
  line-height: 1;
}

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

.stat-divider {
  width: 1px;
  height: 40px;
  background: var(--border);
}

/* ─── Flip Card ─── */
.flip-card {
  width: 220px;
  height: 280px;
  perspective: 1000px;
  cursor: pointer;
}

.flip-card-inner {
  width: 100%;
  height: 100%;
  position: relative;
  transform-style: preserve-3d;
  transition: transform 0.6s ease;
}

.flip-card:hover .flip-card-inner { transform: rotateY(180deg); }

.flip-front, .flip-back {
  position: absolute;
  inset: 0;
  border: 1px solid var(--border);
  border-radius: 4px;
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  gap: 16px;
  backface-visibility: hidden;
}

.flip-front {
  background: var(--surface);
  padding: 32px;
  text-align: center;
}

.flip-back {
  background: var(--accent);
  transform: rotateY(180deg);
  padding: 32px;
}

.flip-label {
  font-size: 0.65rem;
  letter-spacing: 0.15em;
  text-transform: uppercase;
  color: var(--text-muted);
}

.flip-front .flip-label { color: var(--accent); }

.flip-arrow {
  font-size: 2rem;
  color: var(--text-muted);
}

.flywheel-list {
  display: flex;
  flex-direction: column;
  gap: 6px;
  text-align: center;
}

.flywheel-list span {
  font-family: var(--font-display);
  font-weight: 700;
  font-size: 0.9rem;
  color: var(--bg);
}

/* ─── Section Shared ─── */
.section-label {
  display: inline-block;
  font-size: 0.65rem;
  font-weight: 500;
  letter-spacing: 0.15em;
  text-transform: uppercase;
  color: var(--accent);
  margin-bottom: 20px;
}

/* ─── Proof ─── */
.proof {
  background: var(--surface);
  padding: 80px 48px;
}

.proof-inner {
  max-width: 900px;
  margin: 0 auto;
}

.proof-title {
  font-family: var(--font-display);
  font-weight: 800;
  font-size: clamp(2rem, 4vw, 3.2rem);
  line-height: 1.05;
  letter-spacing: -0.02em;
  margin-bottom: 48px;
}

.flip-table {
  width: 100%;
  border-collapse: collapse;
}

.flip-row {
  display: grid;
  grid-template-columns: 1fr 1fr 1fr 1fr;
  gap: 16px;
  padding: 18px 0;
  border-bottom: 1px solid var(--border);
  align-items: center;
  font-size: 0.9rem;
}

.flip-row-head {
  font-size: 0.65rem;
  letter-spacing: 0.1em;
  text-transform: uppercase;
  color: var(--text-muted);
  border-bottom: 1px solid rgba(255,255,255,0.12);
}

.mono { font-variant-numeric: tabular-nums; font-family: 'DM Mono', 'Courier New', monospace; }

.margin-cell { color: #5EEA7C; font-weight: 500; }

.proof-disclaimer {
  margin-top: 20px;
  font-size: 0.72rem;
  color: var(--text-muted);
  font-style: italic;
}

/* ─── Process ─── */
.process {
  padding: 96px 48px;
}

.process-inner { max-width: 820px; margin: 0 auto; }

.process-title {
  font-family: var(--font-display);
  font-weight: 800;
  font-size: clamp(1.8rem, 3.5vw, 2.8rem);
  letter-spacing: -0.02em;
  margin-bottom: 56px;
}

.process-steps {
  display: flex;
  flex-direction: column;
  gap: 0;
}

.step {
  display: grid;
  grid-template-columns: 64px 1fr;
  gap: 24px;
  align-items: start;
  padding: 32px 0;
  border-bottom: 1px solid var(--border);
}

.step:last-child { border-bottom: none; }

.step-number {
  font-family: var(--font-display);
  font-weight: 800;
  font-size: 0.75rem;
  color: var(--accent);
  letter-spacing: 0.05em;
  padding-top: 4px;
}

.step-name {
  font-family: var(--font-display);
  font-weight: 700;
  font-size: 1.15rem;
  margin-bottom: 10px;
}

.step-desc {
  font-size: 0.9rem;
  color: var(--text-muted);
  line-height: 1.65;
}

.step-connector {
  width: 1px;
  height: 16px;
  background: var(--accent);
  margin-left: 31px;
}

/* ─── Philosophy ─── */
.philosophy {
  background: var(--surface);
  padding: 96px 48px;
}

.philosophy-inner { max-width: 860px; margin: 0 auto; }

.pull-mark {
  font-family: var(--font-display);
  font-size: 6rem;
  color: var(--accent);
  line-height: 0.5;
  display: block;
  margin-bottom: 16px;
}

.pull-quote {
  font-family: var(--font-display);
  font-weight: 600;
  font-size: clamp(1.4rem, 2.5vw, 2rem);
  line-height: 1.4;
  letter-spacing: -0.01em;
  color: var(--text);
  margin-bottom: 16px;
}

.pull-attribution {
  font-size: 0.75rem;
  color: var(--text-muted);
  letter-spacing: 0.08em;
  text-transform: uppercase;
  margin-bottom: 64px;
}

.philosophy-split {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 48px;
  border-top: 1px solid var(--border);
  padding-top: 48px;
}

.split-title {
  font-family: var(--font-display);
  font-weight: 700;
  font-size: 0.9rem;
  letter-spacing: 0.05em;
  text-transform: uppercase;
  color: var(--accent);
  margin-bottom: 20px;
}

.stack-list {
  list-style: none;
  display: flex;
  flex-direction: column;
  gap: 10px;
}

.stack-list li {
  font-size: 0.9rem;
  color: var(--text-muted);
  padding-left: 20px;
  position: relative;
}

.stack-list li::before {
  content: '—';
  position: absolute;
  left: 0;
  color: var(--accent);
  font-size: 0.75rem;
}

/* ─── Closing ─── */
.closing {
  padding: 96px 48px;
  border-top: 1px solid var(--border);
}

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

.closing-eyebrow {
  display: inline-block;
  font-size: 0.65rem;
  font-weight: 500;
  letter-spacing: 0.15em;
  text-transform: uppercase;
  color: var(--accent);
  margin-bottom: 24px;
}

.closing-headline {
  font-family: var(--font-display);
  font-weight: 800;
  font-size: clamp(2rem, 5vw, 3.8rem);
  line-height: 1.05;
  letter-spacing: -0.02em;
  margin-bottom: 28px;
}

.closing-sub {
  font-size: 1rem;
  color: var(--text-muted);
  line-height: 1.8;
  margin-bottom: 64px;
}

.closing-rule {
  display: flex;
  align-items: center;
  gap: 24px;
}

.rule-line {
  flex: 1;
  height: 1px;
  background: var(--border);
}

.rule-text {
  font-size: 0.72rem;
  letter-spacing: 0.12em;
  text-transform: uppercase;
  color: var(--text-muted);
  white-space: nowrap;
}

/* ─── Footer ─── */
.footer {
  border-top: 1px solid var(--border);
  padding: 48px;
}

.footer-inner {
  max-width: 860px;
  margin: 0 auto;
  display: grid;
  grid-template-columns: 1fr 1fr 1fr;
  gap: 32px;
  align-items: start;
}

.footer-brand {
  font-family: var(--font-display);
  font-weight: 800;
  font-size: 1rem;
  letter-spacing: 0.05em;
  text-transform: uppercase;
}

.footer-meta {
  font-size: 0.8rem;
  color: var(--text-muted);
  line-height: 1.6;
}

.footer-links {
  display: flex;
  flex-direction: column;
  gap: 8px;
}

.footer-links a {
  font-size: 0.8rem;
  color: var(--text-muted);
  text-decoration: none;
  transition: color 0.2s;
}

.footer-links a:hover { color: var(--accent); }

.footer-copy {
  font-size: 0.72rem;
  color: var(--text-muted);
  grid-column: 1 / -1;
  padding-top: 24px;
  border-top: 1px solid var(--border);
}

/* ─── Responsive ─── */
@media (max-width: 768px) {
  .nav { padding: 20px 24px; }
  .hero { grid-template-columns: 1fr; padding: 48px 24px 64px; min-height: auto; }
  .hero-aside { display: none; }
  .flip-table .flip-row-head, .flip-table .flip-row { grid-template-columns: 1fr 1fr 1fr; }
  .flip-table .flip-row-head span:first-child, .flip-table .flip-row span:first-child { display: none; }
  .philosophy-split { grid-template-columns: 1fr; gap: 32px; }
  .footer-inner { grid-template-columns: 1fr; }
  .closing-rule { flex-direction: column; gap: 12px; }
  .closing-rule .rule-line { display: none; }
  .proof, .process, .philosophy, .closing { padding: 64px 24px; }
  .footer { padding: 32px 24px; }
  .stat-item { padding: 0 20px; }
  .stat-number { font-size: 1.4rem; }
}

@media (max-width: 480px) {
  .hero-headline { font-size: 2.8rem; }
  .flip-table { font-size: 0.8rem; }
}