:root {
  --bg-dark: #080e1a;
  --bg-mid: #0e1628;
  --bg-light: #f4f6f9;
  --bg-card: #111d30;
  --accent: #6366f1;
  --accent-2: #818cf8;
  --accent-dim: rgba(99, 102, 241, 0.12);
  --accent-glow: rgba(99, 102, 241, 0.25);
  --text-primary: #e2e8f0;
  --text-secondary: #64748b;
  --text-dark: #1a2438;
  --text-dark-secondary: #4a5568;
  --border: rgba(255,255,255,0.07);
  --border-accent: rgba(99, 102, 241, 0.3);
  --font-heading: 'Cabinet Grotesk', 'Noto Sans JP', sans-serif;
  --font-body: 'Satoshi', 'Noto Sans JP', sans-serif;
  --font-mono: 'JetBrains Mono', 'Noto Sans JP', monospace;
}

* { margin: 0; padding: 0; box-sizing: border-box; }

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

/* NAV */
.nav {
  position: fixed;
  top: 0;
  left: 0;
  right: 0;
  z-index: 100;
  background: rgba(10, 22, 40, 0.85);
  backdrop-filter: blur(20px);
  border-bottom: 1px solid var(--border);
}
.nav-inner {
  max-width: 1200px;
  margin: 0 auto;
  padding: 16px 24px;
  display: flex;
  align-items: center;
  justify-content: space-between;
}
.nav-logo {
  display: flex;
  align-items: center;
  gap: 8px;
}
.logo-mark {
  font-family: var(--font-heading);
  font-weight: 800;
  font-size: 20px;
  color: var(--accent-2);
  border: 2px solid var(--accent);
  padding: 2px 8px;
  border-radius: 5px;
  letter-spacing: -0.5px;
}
.logo-text {
  font-family: var(--font-heading);
  font-weight: 600;
  font-size: 18px;
  color: var(--text-primary);
  letter-spacing: -0.5px;
}

/* HERO */
.hero {
  min-height: 100vh;
  display: flex;
  flex-direction: column;
  justify-content: center;
  padding: 120px 24px 60px;
  position: relative;
  overflow: hidden;
}
.hero::before {
  content: '';
  position: absolute;
  top: -200px;
  right: -200px;
  width: 600px;
  height: 600px;
  background: radial-gradient(circle, var(--accent-glow) 0%, transparent 70%);
  pointer-events: none;
}
.hero-inner {
  max-width: 1200px;
  margin: 0 auto;
  width: 100%;
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 60px;
  align-items: center;
}
.hero-badge {
  display: inline-block;
  font-family: var(--font-heading);
  font-size: 12px;
  font-weight: 600;
  letter-spacing: 2px;
  text-transform: uppercase;
  color: var(--accent);
  background: var(--accent-dim);
  padding: 6px 16px;
  border-radius: 20px;
  margin-bottom: 24px;
}
.hero h1 {
  font-family: var(--font-body);
  font-size: clamp(36px, 5vw, 64px);
  font-weight: 700;
  line-height: 1.15;
  letter-spacing: -1px;
  margin-bottom: 24px;
}
.hero h1 .accent {
  color: var(--accent);
}
.hero-sub {
  font-size: 17px;
  color: var(--text-secondary);
  line-height: 1.8;
  max-width: 480px;
}

/* Data Flow Visual */
.hero-visual {
  display: flex;
  justify-content: center;
  align-items: center;
}
.data-flow {
  display: flex;
  align-items: center;
  gap: 16px;
}
.flow-node {
  background: var(--bg-card);
  border: 1px solid var(--border);
  border-radius: 12px;
  padding: 20px;
  width: 120px;
  text-align: center;
}
.flow-label {
  font-family: var(--font-heading);
  font-size: 11px;
  font-weight: 600;
  letter-spacing: 1px;
  text-transform: uppercase;
  color: var(--text-secondary);
  display: block;
  margin-bottom: 12px;
}
.flow-dots {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 6px;
}
.flow-dots span {
  width: 16px;
  height: 16px;
  border-radius: 50%;
  background: rgba(255, 107, 107, 0.4);
}
.flow-dots span:nth-child(2) { background: rgba(255, 170, 100, 0.4); }
.flow-dots span:nth-child(4) { background: rgba(255, 107, 107, 0.3); }
.flow-dots span:nth-child(5) { background: rgba(255, 200, 100, 0.4); }
.flow-dots span:nth-child(6) { background: rgba(255, 107, 107, 0.5); }
.flow-grid {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 6px;
}
.flow-grid span {
  width: 16px;
  height: 16px;
  border-radius: 3px;
  background: var(--accent-dim);
  border: 1px solid var(--border-accent);
}
.flow-chart {
  display: flex;
  align-items: flex-end;
  gap: 4px;
  height: 50px;
}
.flow-chart .bar {
  width: 14px;
  background: linear-gradient(to top, var(--accent), rgba(0, 212, 170, 0.4));
  border-radius: 3px 3px 0 0;
}
.flow-node.insight {
  border-color: var(--border-accent);
}
.flow-arrow {
  flex-shrink: 0;
}

/* Hero Stats */
.hero-stats {
  max-width: 1200px;
  margin: 80px auto 0;
  width: 100%;
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  gap: 1px;
  background: var(--border);
  border-radius: 12px;
  overflow: hidden;
}
.stat {
  background: var(--bg-card);
  padding: 32px 24px;
  text-align: center;
}
.stat-num {
  font-family: var(--font-heading);
  font-size: 32px;
  font-weight: 700;
  color: var(--accent);
  display: block;
}
.stat-label {
  font-size: 13px;
  color: var(--text-secondary);
  margin-top: 4px;
  display: block;
}

/* SECTIONS SHARED */
.section-inner {
  max-width: 1200px;
  margin: 0 auto;
  padding: 0 24px;
}
.section-header {
  margin-bottom: 60px;
}
.section-tag {
  font-family: var(--font-heading);
  font-size: 12px;
  font-weight: 600;
  letter-spacing: 2px;
  text-transform: uppercase;
  color: var(--accent);
  display: block;
  margin-bottom: 16px;
}
.section-header h2 {
  font-family: var(--font-body);
  font-size: clamp(28px, 4vw, 44px);
  font-weight: 700;
  line-height: 1.25;
  letter-spacing: -0.5px;
}
.section-desc {
  font-size: 16px;
  color: var(--text-secondary);
  max-width: 560px;
  margin-top: 16px;
  line-height: 1.8;
}

/* PIPELINE */
.pipeline {
  padding: 120px 0;
  background: var(--bg-mid);
}
.pipeline-grid {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 1px;
  background: var(--border);
  border-radius: 12px;
  overflow: hidden;
}
.pipe-card {
  background: var(--bg-dark);
  padding: 40px 32px;
  transition: background 0.2s;
}
.pipe-card:hover {
  background: var(--bg-card);
}
.pipe-card.pipe-core {
  border-left: 3px solid var(--accent);
}
.pipe-icon {
  font-family: var(--font-heading);
  font-size: 13px;
  font-weight: 700;
  color: var(--accent);
  margin-bottom: 16px;
}
.pipe-card h3 {
  font-family: var(--font-body);
  font-size: 18px;
  font-weight: 600;
  margin-bottom: 12px;
  line-height: 1.4;
}
.pipe-card p {
  font-size: 14px;
  color: var(--text-secondary);
  line-height: 1.7;
}

/* METRICS / COMPETITIVE */
.metrics {
  padding: 120px 0;
}
.metrics-layout {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 80px;
  align-items: center;
}
.metrics-text h2 {
  font-family: var(--font-body);
  font-size: clamp(28px, 4vw, 44px);
  font-weight: 700;
  line-height: 1.25;
  letter-spacing: -0.5px;
  margin-bottom: 24px;
}
.metrics-text p {
  font-size: 15px;
  color: var(--text-secondary);
  line-height: 1.8;
}
.competitor-list {
  display: flex;
  flex-direction: column;
  gap: 20px;
}
.comp-row {
  display: grid;
  grid-template-columns: 120px 1fr 80px;
  gap: 16px;
  align-items: center;
}
.comp-name {
  font-family: var(--font-heading);
  font-size: 14px;
  font-weight: 600;
  color: var(--text-secondary);
}
.comp-bar {
  height: 8px;
  background: rgba(255,255,255,0.06);
  border-radius: 4px;
  overflow: hidden;
}
.comp-fill {
  height: 100%;
  background: var(--text-secondary);
  border-radius: 4px;
  opacity: 0.4;
}
.comp-fill.hhc {
  background: var(--accent);
  opacity: 1;
}
.comp-tag {
  font-size: 11px;
  color: var(--text-secondary);
  text-align: right;
}
.comp-row.highlight .comp-name {
  color: var(--accent);
}

/* INTELLIGENCE */
.intelligence {
  padding: 120px 0;
  background: var(--bg-mid);
}
.intel-grid {
  display: grid;
  grid-template-columns: repeat(2, 1fr);
  gap: 1px;
  background: var(--border);
  border-radius: 12px;
  overflow: hidden;
}
.intel-card {
  background: var(--bg-dark);
  padding: 48px 40px;
}
.intel-card:hover {
  background: var(--bg-card);
}
.intel-num {
  font-family: var(--font-heading);
  font-size: 13px;
  font-weight: 700;
  color: var(--accent);
  margin-bottom: 16px;
  display: block;
}
.intel-card h3 {
  font-family: var(--font-body);
  font-size: 20px;
  font-weight: 600;
  margin-bottom: 12px;
}
.intel-card p {
  font-size: 14px;
  color: var(--text-secondary);
  line-height: 1.7;
}

/* PHILOSOPHY */
.philosophy {
  padding: 120px 0;
  position: relative;
}
.philosophy::before {
  content: '';
  position: absolute;
  bottom: -100px;
  left: -100px;
  width: 400px;
  height: 400px;
  background: radial-gradient(circle, var(--accent-glow) 0%, transparent 70%);
  pointer-events: none;
  opacity: 0.5;
}
.philosophy-content {
  max-width: 720px;
  margin: 0 auto;
  text-align: center;
  position: relative;
}
.philosophy-content h2 {
  font-family: var(--font-body);
  font-size: clamp(26px, 3.5vw, 40px);
  font-weight: 700;
  line-height: 1.35;
  margin-bottom: 32px;
}
.philosophy-content p {
  font-size: 16px;
  color: var(--text-secondary);
  line-height: 1.8;
  margin-bottom: 16px;
}

/* Phase Timeline */
.phase-timeline {
  display: flex;
  justify-content: center;
  gap: 0;
  margin-top: 48px;
  position: relative;
}
.phase-timeline::before {
  content: '';
  position: absolute;
  top: 10px;
  left: 15%;
  right: 15%;
  height: 2px;
  background: var(--border);
}
.phase {
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 8px;
  padding: 0 24px;
  position: relative;
}
.phase-marker {
  width: 20px;
  height: 20px;
  border-radius: 50%;
  border: 2px solid var(--text-secondary);
  background: var(--bg-dark);
  z-index: 1;
}
.phase.done .phase-marker {
  background: var(--accent);
  border-color: var(--accent);
}
.phase.active .phase-marker {
  border-color: var(--accent);
  background: var(--bg-dark);
  box-shadow: 0 0 0 4px var(--accent-dim);
}
.phase-name {
  font-family: var(--font-heading);
  font-size: 12px;
  font-weight: 600;
  color: var(--text-secondary);
}
.phase.active .phase-name {
  color: var(--accent);
}
.phase.done .phase-name {
  color: var(--accent);
}
.phase-desc {
  font-size: 12px;
  color: var(--text-secondary);
}

/* FOOTER */
.site-footer {
  padding: 48px 24px;
  border-top: 1px solid var(--border);
  text-align: center;
}
.footer-inner {
  max-width: 1200px;
  margin: 0 auto;
}
.footer-brand {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  margin-bottom: 12px;
}
.footer-tagline {
  font-size: 14px;
  color: var(--text-secondary);
  margin-bottom: 8px;
}
.footer-copy {
  font-size: 12px;
  color: var(--text-secondary);
  opacity: 0.6;
}

/* NAV CTA BUTTON */
.nav-cta {
  display: inline-flex;
  align-items: center;
  gap: 4px;
  background: var(--accent);
  color: var(--bg-dark);
  padding: 8px 20px;
  border-radius: 6px;
  font-family: var(--font-heading);
  font-size: 13px;
  font-weight: 600;
  text-decoration: none;
  transition: opacity 0.15s;
}
.nav-cta:hover { opacity: 0.85; }

/* MOBILE */
@media (max-width: 768px) {
  .hero-inner {
    grid-template-columns: 1fr;
    gap: 40px;
  }
  .hero-visual {
    display: none;
  }
  .hero-stats {
    grid-template-columns: repeat(2, 1fr);
    margin-top: 48px;
  }
  .pipeline-grid {
    grid-template-columns: 1fr;
  }
  .metrics-layout {
    grid-template-columns: 1fr;
    gap: 48px;
  }
  .intel-grid {
    grid-template-columns: 1fr;
  }
  .phase-timeline {
    flex-wrap: wrap;
    gap: 20px;
  }
  .phase-timeline::before {
    display: none;
  }
  .comp-row {
    grid-template-columns: 100px 1fr 60px;
  }
}

@media (max-width: 480px) {
  .hero-stats {
    grid-template-columns: 1fr;
  }
  .stat {
    padding: 20px 16px;
  }
  .pipe-card {
    padding: 28px 20px;
  }
  .intel-card {
    padding: 32px 24px;
  }
}