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

:root {
  --bg-primary: #09090B;
  --bg-secondary: #111114;
  --bg-card: #18181C;
  --accent: #FFB800;
  --accent-dim: rgba(255, 184, 0, 0.15);
  --text-primary: #F0EEE8;
  --text-secondary: #8A8A96;
  --text-muted: #4A4A56;
  --border: #252530;
  --success: #22C55E;
  --defect-red: #FF4444;
}

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

body {
  font-family: 'DM Sans', sans-serif;
  background-color: var(--bg-primary);
  color: var(--text-primary);
  line-height: 1.6;
  overflow-x: hidden;
}

/* ===================== TYPOGRAPHY ===================== */
h1, h2, h3, h4 {
  font-family: 'Syne', sans-serif;
  line-height: 1.1;
  letter-spacing: -0.02em;
}

.section-label {
  font-family: 'DM Sans', sans-serif;
  font-size: 11px;
  font-weight: 500;
  letter-spacing: 0.18em;
  text-transform: uppercase;
  color: var(--accent);
  margin-bottom: 24px;
}

/* ===================== LAYOUT ===================== */
section {
  position: relative;
  overflow: hidden;
}

/* ===================== HERO ===================== */
.hero {
  min-height: 100vh;
  display: flex;
  align-items: center;
  padding: 80px 48px;
  background: var(--bg-primary);
}

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

.hero-scan-line {
  position: absolute;
  left: 0; right: 0;
  height: 1px;
  background: linear-gradient(to right, transparent, rgba(255,184,0,0.3), transparent);
  animation: scanMove 8s ease-in-out infinite;
  top: 30%;
  pointer-events: none;
}

@keyframes scanMove {
  0% { top: 10%; opacity: 0; }
  10% { opacity: 1; }
  90% { opacity: 1; }
  100% { top: 90%; opacity: 0; }
}

.hero-content {
  position: relative;
  z-index: 1;
  max-width: 1200px;
  margin: 0 auto;
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 80px;
  align-items: center;
}

.hero-label {
  font-size: 11px;
  font-weight: 500;
  letter-spacing: 0.2em;
  text-transform: uppercase;
  color: var(--accent);
  margin-bottom: 20px;
  opacity: 0.8;
}

.hero-headline {
  font-size: clamp(48px, 6vw, 80px);
  font-weight: 800;
  color: var(--text-primary);
  margin-bottom: 28px;
}

.hero-headline .line {
  display: block;
}

.hero-headline .accent-line {
  color: var(--accent);
}

.hero-lede {
  font-size: 18px;
  color: var(--text-secondary);
  line-height: 1.7;
  max-width: 480px;
  margin-bottom: 40px;
  font-weight: 300;
}

.hero-stats {
  display: flex;
  align-items: center;
  gap: 32px;
  margin-bottom: 48px;
}

.stat { text-align: left; }

.stat-value {
  display: block;
  font-family: 'Syne', sans-serif;
  font-size: 28px;
  font-weight: 700;
  color: var(--accent);
  line-height: 1;
  margin-bottom: 6px;
}

.stat-label {
  display: block;
  font-size: 12px;
  color: var(--text-secondary);
  text-transform: uppercase;
  letter-spacing: 0.1em;
}

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

/* Vision Window */
.vision-window {
  background: var(--bg-card);
  border: 1px solid var(--border);
  border-radius: 12px;
  overflow: hidden;
}

.vision-header {
  display: flex;
  align-items: center;
  gap: 10px;
  padding: 14px 18px;
  background: #0F0F12;
  border-bottom: 1px solid var(--border);
}

.vision-dot {
  width: 8px;
  height: 8px;
  border-radius: 50%;
  background: var(--defect-red);
  box-shadow: 0 0 8px var(--defect-red);
  animation: pulse 2s ease-in-out infinite;
}

@keyframes pulse {
  0%, 100% { opacity: 1; }
  50% { opacity: 0.4; }
}

.vision-label {
  font-size: 11px;
  font-weight: 500;
  letter-spacing: 0.12em;
  color: var(--text-secondary);
  text-transform: uppercase;
}

.vision-grid {
  padding: 24px;
  display: flex;
  flex-direction: column;
  gap: 8px;
}

.scan-row {
  display: flex;
  gap: 8px;
}

.scan-cell {
  width: 48px;
  height: 48px;
  border-radius: 4px;
  border: 1px solid var(--border);
  position: relative;
  transition: all 0.3s ease;
}

.scan-cell.ok {
  background: rgba(34, 197, 94, 0.08);
  border-color: rgba(34, 197, 94, 0.2);
}

.scan-cell.defect {
  background: rgba(255, 68, 68, 0.2);
  border-color: var(--defect-red);
  box-shadow: 0 0 12px rgba(255, 68, 68, 0.3);
}

.scan-cell.defect::after {
  content: '';
  position: absolute;
  inset: 0;
  border-radius: 4px;
  animation: defectPulse 1.5s ease-in-out infinite;
}

@keyframes defectPulse {
  0%, 100% { box-shadow: inset 0 0 8px rgba(255,68,68,0.3); }
  50% { box-shadow: inset 0 0 16px rgba(255,68,68,0.6); }
}

.vision-footer {
  display: flex;
  justify-content: space-between;
  align-items: center;
  padding: 14px 18px;
  background: #0F0F12;
  border-top: 1px solid var(--border);
}

.defect-badge {
  font-size: 12px;
  font-weight: 500;
  color: var(--defect-red);
  background: rgba(255,68,68,0.1);
  padding: 4px 10px;
  border-radius: 20px;
  border: 1px solid rgba(255,68,68,0.3);
}

.timestamp {
  font-size: 12px;
  color: var(--text-muted);
  font-variant-numeric: tabular-nums;
  letter-spacing: 0.05em;
}

/* ===================== PHILOSOPHY ===================== */
.philosophy {
  background: var(--bg-secondary);
  border-top: 1px solid var(--border);
  border-bottom: 1px solid var(--border);
  padding: 120px 48px;
}

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

.philosophy-headline {
  font-size: clamp(32px, 4vw, 52px);
  font-weight: 700;
  color: var(--text-primary);
  margin-bottom: 36px;
  line-height: 1.2;
}

.philosophy-body {
  display: flex;
  flex-direction: column;
  gap: 20px;
  margin-bottom: 64px;
}

.philosophy-body p {
  font-size: 17px;
  color: var(--text-secondary);
  line-height: 1.8;
  font-weight: 300;
}

/* Comparison */
.comparison {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 40px;
  padding-top: 40px;
  border-top: 1px solid var(--border);
}

.compare-col { }

.compare-label {
  font-size: 13px;
  font-weight: 500;
  color: var(--text-secondary);
  text-transform: uppercase;
  letter-spacing: 0.1em;
  margin-bottom: 12px;
}

.compare-col.ai .compare-label { color: var(--accent); }

.compare-meter {
  height: 6px;
  background: var(--bg-card);
  border-radius: 3px;
  margin-bottom: 12px;
  overflow: hidden;
}

.meter-fill {
  height: 100%;
  border-radius: 3px;
  background: var(--text-secondary);
  width: 78%;
}

.compare-col.ai .meter-fill {
  width: 100%;
  background: var(--accent);
}

.compare-value {
  font-family: 'Syne', sans-serif;
  font-size: 22px;
  font-weight: 700;
  color: var(--text-primary);
  margin-bottom: 4px;
}

.compare-col.ai .compare-value { color: var(--accent); }

.compare-note {
  font-size: 13px;
  color: var(--text-muted);
}

/* ===================== SYSTEM ===================== */
.system {
  padding: 120px 48px;
  background: var(--bg-primary);
}

.system-headline {
  font-size: clamp(36px, 4vw, 56px);
  font-weight: 700;
  color: var(--text-primary);
  margin-bottom: 16px;
}

.system-sub {
  font-size: 18px;
  color: var(--text-secondary);
  max-width: 560px;
  margin-bottom: 80px;
  font-weight: 300;
}

.system-grid {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 2px;
  max-width: 1100px;
  margin: 0 auto;
}

.capability {
  background: var(--bg-card);
  padding: 48px 40px;
  position: relative;
  transition: background 0.3s ease;
}

.capability:hover {
  background: #1C1C22;
}

.cap-icon {
  margin-bottom: 28px;
}

.cap-number {
  font-family: 'Syne', sans-serif;
  font-size: 13px;
  font-weight: 700;
  color: var(--accent);
  letter-spacing: 0.1em;
  margin-bottom: 16px;
  opacity: 0.6;
}

.cap-title {
  font-family: 'Syne', sans-serif;
  font-size: 24px;
  font-weight: 700;
  color: var(--text-primary);
  margin-bottom: 16px;
}

.cap-desc {
  font-size: 15px;
  color: var(--text-secondary);
  line-height: 1.7;
  font-weight: 300;
}

/* ===================== OUTCOMES ===================== */
.outcomes {
  background: var(--bg-secondary);
  border-top: 1px solid var(--border);
  padding: 120px 48px;
}

.outcomes-inner {
  max-width: 1100px;
  margin: 0 auto;
}

.outcomes-headline {
  font-size: clamp(32px, 4vw, 48px);
  font-weight: 700;
  color: var(--text-primary);
  margin-bottom: 72px;
}

.outcomes-grid {
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  gap: 40px;
  margin-bottom: 72px;
}

.outcome { }

.outcome-number {
  font-family: 'Syne', sans-serif;
  font-size: clamp(40px, 4vw, 56px);
  font-weight: 800;
  color: var(--accent);
  line-height: 1;
  margin-bottom: 12px;
}

.outcome-label {
  font-family: 'Syne', sans-serif;
  font-size: 15px;
  font-weight: 600;
  color: var(--text-primary);
  margin-bottom: 12px;
  text-transform: uppercase;
  letter-spacing: 0.05em;
}

.outcome-desc {
  font-size: 14px;
  color: var(--text-secondary);
  line-height: 1.6;
  font-weight: 300;
}

/* Quote */
.quote-block {
  padding: 40px 0 0;
  border-top: 1px solid var(--border);
}

.quote-text {
  font-size: 20px;
  color: var(--text-secondary);
  line-height: 1.7;
  font-weight: 300;
  font-style: italic;
  max-width: 700px;
}

/* ===================== CLOSING ===================== */
.closing {
  padding: 140px 48px;
  background: var(--bg-primary);
  border-top: 1px solid var(--border);
}

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

.closing-visual {
  display: flex;
  justify-content: center;
  margin-bottom: 60px;
}

.ring-system {
  position: relative;
  width: 160px;
  height: 160px;
  display: flex;
  align-items: center;
  justify-content: center;
}

.ring {
  position: absolute;
  border-radius: 50%;
  border: 1px solid var(--accent);
}

.ring-1 {
  width: 160px;
  height: 160px;
  opacity: 0.15;
  animation: ringRotate 20s linear infinite;
}

.ring-2 {
  width: 110px;
  height: 110px;
  opacity: 0.3;
  animation: ringRotate 14s linear infinite reverse;
}

.ring-3 {
  width: 60px;
  height: 60px;
  opacity: 0.5;
  animation: ringRotate 8s linear infinite;
}

.ring-center {
  position: relative;
  z-index: 1;
}

@keyframes ringRotate {
  from { transform: rotate(0deg); }
  to { transform: rotate(360deg); }
}

.closing-headline {
  font-size: clamp(28px, 4vw, 44px);
  font-weight: 700;
  color: var(--text-primary);
  margin-bottom: 32px;
  line-height: 1.3;
}

.closing-body {
  font-size: 17px;
  color: var(--text-secondary);
  line-height: 1.8;
  font-weight: 300;
  margin-bottom: 48px;
}

.closing-vision-statement {
  font-family: 'Syne', sans-serif;
  font-size: 14px;
  font-weight: 600;
  color: var(--accent);
  letter-spacing: 0.08em;
  text-transform: uppercase;
  line-height: 1.8;
}

/* ===================== FOOTER ===================== */
.footer {
  background: #07070A;
  border-top: 1px solid var(--border);
  padding: 48px;
}

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

.footer-brand {
  display: flex;
  align-items: center;
  gap: 12px;
}

.footer-logo {
  width: 36px;
  height: 36px;
  background: var(--accent);
  color: var(--bg-primary);
  font-family: 'Syne', sans-serif;
  font-size: 14px;
  font-weight: 800;
  display: flex;
  align-items: center;
  justify-content: center;
  border-radius: 6px;
}

.footer-name {
  font-family: 'Syne', sans-serif;
  font-size: 16px;
  font-weight: 700;
  color: var(--text-primary);
}

.footer-tagline {
  font-size: 14px;
  color: var(--text-muted);
}

.footer-copy {
  font-size: 13px;
  color: var(--text-muted);
}

/* ===================== RESPONSIVE ===================== */
@media (max-width: 1024px) {
  .hero-content {
    grid-template-columns: 1fr;
    gap: 48px;
  }

  .outcomes-grid {
    grid-template-columns: 1fr 1fr;
    gap: 48px;
  }

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

@media (max-width: 768px) {
  .hero {
    padding: 60px 24px;
  }

  .philosophy,
  .system,
  .outcomes,
  .closing {
    padding: 80px 24px;
  }

  .footer {
    padding: 32px 24px;
  }

  .footer-inner {
    flex-direction: column;
    gap: 20px;
    align-items: flex-start;
  }

  .comparison {
    grid-template-columns: 1fr;
    gap: 32px;
  }

  .outcomes-grid {
    grid-template-columns: 1fr;
    gap: 40px;
  }

  .hero-stats {
    flex-wrap: wrap;
    gap: 24px;
  }

  .stat-divider {
    display: none;
  }

  .vision-grid {
    padding: 16px;
  }

  .scan-cell {
    width: 36px;
    height: 36px;
  }
}
