/* Capstan — Deep slate + amber */
:root {
  --bg: #0d0d14;
  --bg2: #111118;
  --card: #16161f;
  --card-h: #1e1e2a;
  --accent: #f5a623;
  --accent-dim: rgba(245,166,35,0.12);
  --text: #f4f4f5;
  --text2: #9ca3af;
  --text3: #6b7280;
  --border: rgba(255,255,255,0.06);
  --border-a: rgba(245,166,35,0.22);
  --font-d: 'Syne', system-ui, sans-serif;
  --font-b: 'DM Sans', system-ui, sans-serif;
}

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

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

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

/* ========================================== NAV */
.nav {
  position: fixed; top: 0; left: 0; right: 0; z-index: 100;
  padding: 0 32px;
  border-bottom: 1px solid var(--border);
  background: rgba(13,13,20,0.88);
  backdrop-filter: blur(20px);
}
.nav-inner {
  max-width: 1100px; margin: 0 auto;
  height: 64px; display: flex; align-items: center; justify-content: space-between;
}
.nav-logo {
  display: flex; align-items: center; gap: 10px;
  text-decoration: none; color: var(--text);
  font-family: var(--font-d); font-weight: 700; font-size: 1.05rem;
  letter-spacing: -0.02em;
}
.nav-tag {
  font-size: 0.72rem; color: var(--text3);
  letter-spacing: 0.07em; text-transform: uppercase;
}

/* ========================================== HERO */
.hero {
  min-height: 100vh; padding: 120px 32px 80px;
  display: flex; flex-direction: column; justify-content: center;
  position: relative; overflow: hidden;
}
.hero::before {
  content: ''; position: absolute; top: -100px; left: 50%; transform: translateX(-50%);
  width: 700px; height: 700px;
  background: radial-gradient(circle, rgba(245,166,35,0.06) 0%, transparent 65%);
  pointer-events: none;
}
.hero-content {
  max-width: 1100px; margin: 0 auto; width: 100%;
  display: grid; grid-template-columns: 1fr 1fr;
  gap: 56px; align-items: center; position: relative; z-index: 1;
}
.hero-eyebrow {
  display: flex; align-items: center; gap: 8px;
  font-size: 0.75rem; color: var(--accent);
  letter-spacing: 0.08em; text-transform: uppercase;
  margin-bottom: 24px;
}
.eyebrow-dot {
  width: 6px; height: 6px; border-radius: 50%;
  background: var(--accent);
  animation: pulse-dot 2.4s ease-in-out infinite;
}
@keyframes pulse-dot {
  0%,100% { opacity: 1; }
  50% { opacity: 0.3; }
}
.hero-headline {
  font-family: var(--font-d);
  font-size: clamp(2.6rem, 5vw, 4rem);
  font-weight: 800; line-height: 1.06;
  letter-spacing: -0.035em; margin-bottom: 24px;
}
.hero-headline em { font-style: normal; color: var(--accent); }
.hero-body {
  font-size: 1.05rem; color: var(--text2);
  line-height: 1.72; max-width: 420px;
}

/* Capstan diagram */
.hero-visual { display: flex; align-items: center; justify-content: center; }
.capstan-diagram {
  position: relative; width: 300px; height: 300px;
}
.capstan-drum {
  position: absolute;
  top: 50%; left: 50%; transform: translate(-50%,-50%);
  width: 130px; height: 130px;
}
.drum-core {
  position: absolute; inset: 0; border-radius: 50%;
  background: var(--card); border: 2px solid var(--accent);
  display: flex; align-items: center; justify-content: center;
  box-shadow: 0 0 40px rgba(245,166,35,0.18), inset 0 0 20px rgba(245,166,35,0.06);
}
.drum-core::after {
  content: ''; width: 26px; height: 26px; border-radius: 50%;
  background: var(--accent);
  box-shadow: 0 0 16px rgba(245,166,35,0.7);
}
.drum-ring {
  position: absolute; border-radius: 50%;
  border: 1px solid rgba(245,166,35,0.12);
  top: 50%; left: 50%; transform: translate(-50%,-50%);
}
.drum-ring-1 { width: 170px; height: 170px; }
.drum-ring-2 { width: 230px; height: 230px; }
.drum-ring-3 { width: 290px; height: 290px; }
.drum-spoke {
  position: absolute; background: rgba(245,166,35,0.1);
  top: 50%; left: 50%; transform: translate(-50%,-50%);
}
.drum-spoke-1 { width: 2px; height: 100%; }
.drum-spoke-2 { width: 100%; height: 2px; }

.rope-wrap {
  position: absolute; border-radius: 50%;
  border: 2px solid var(--accent);
  top: 50%; left: 50%; transform: translate(-50%,-50%);
  opacity: 0;
  animation: rope-in 0.7s ease forwards;
}
.rope-1 { width: 178px; height: 178px; animation-delay: 0.3s; }
.rope-2 { width: 238px; height: 238px; animation-delay: 0.7s; }
.rope-3 { width: 298px; height: 298px; animation-delay: 1.1s; }
@keyframes rope-in {
  from { opacity: 0; transform: translate(-50%,-50%) scale(0.75); }
  to   { opacity: 1; transform: translate(-50%,-50%) scale(1); }
}

.input-node {
  position: absolute; top: 50%; left: -10px;
  transform: translateY(-50%);
  display: flex; align-items: center; gap: 8px;
}
.output-node {
  position: absolute; top: 50%; right: -10px;
  transform: translateY(-50%);
  display: flex; align-items: center; gap: 8px; flex-direction: row-reverse;
}
.node-circle {
  width: 12px; height: 12px; border-radius: 50%;
  background: var(--text3); border: 2px solid var(--bg);
  flex-shrink: 0;
}
.output-circle { background: var(--accent); box-shadow: 0 0 10px rgba(245,166,35,0.5); }
.node-label { font-size: 0.72rem; color: var(--text3); white-space: nowrap; }
.force-label {
  position: absolute; bottom: 6px; left: 50%; transform: translateX(-50%);
  text-align: center; font-size: 0.68rem; color: var(--accent);
  line-height: 1.6; opacity: 0.7;
}
.force-label span { font-weight: 600; }

.hero-scroll {
  position: absolute; bottom: 28px; left: 50%; transform: translateX(-50%);
}
.scroll-line {
  width: 1px; height: 44px;
  background: linear-gradient(to bottom, var(--accent), transparent);
  animation: scroll-pulse 2s ease-in-out infinite;
}
@keyframes scroll-pulse {
  0%,100% { opacity: 0.25; transform: scaleY(0.6); }
  50% { opacity: 1; transform: scaleY(1); }
}

/* ========================================== SHARED */
.section-label {
  display: inline-block; font-size: 0.7rem;
  color: var(--accent); letter-spacing: 0.1em; text-transform: uppercase;
  margin-bottom: 14px;
}
.section-title {
  font-family: var(--font-d); font-size: clamp(1.9rem, 3.5vw, 2.6rem);
  font-weight: 700; line-height: 1.1; letter-spacing: -0.028em;
  margin-bottom: 18px;
}
.section-body {
  font-size: 0.95rem; color: var(--text2);
  line-height: 1.7; max-width: 520px;
}

/* ========================================== MECHANISM */
.mechanism {
  padding: 96px 32px;
  background: var(--bg2);
  border-top: 1px solid var(--border);
  border-bottom: 1px solid var(--border);
}
.section-header { max-width: 1100px; margin: 0 auto 56px; }

.comparison {
  max-width: 1100px; margin: 0 auto 56px;
  display: flex; align-items: center; gap: 28px;
}
.compare-old, .compare-new {
  flex: 1;
  background: var(--card);
  border: 1px solid var(--border);
  border-radius: 14px; padding: 28px 32px;
}
.compare-new {
  border-color: var(--border-a);
  background: var(--card-h);
}
.compare-old h3, .compare-new h3 {
  font-family: var(--font-d); font-size: 1rem; font-weight: 600;
  margin-bottom: 16px;
}
.compare-old ul, .compare-new ul { list-style: none; display: flex; flex-direction: column; gap: 9px; }
.compare-old li, .compare-new li {
  font-size: 0.875rem; color: var(--text2);
  padding-left: 14px; position: relative;
}
.compare-old li::before, .compare-new li::before {
  content: '–'; position: absolute; left: 0; color: var(--text3);
}
.compare-new li { color: var(--text); }
.compare-divider {
  display: flex; flex-direction: column; align-items: center; gap: 10px;
  flex-shrink: 0;
}
.divider-line { width: 1px; height: 32px; background: var(--border-a); }
.arrow { color: var(--accent); font-size: 1.1rem; }

.stat-row {
  max-width: 1100px; margin: 0 auto;
  display: flex; align-items: center; justify-content: center; gap: 56px;
}
.stat { text-align: center; }
.stat-num {
  font-family: var(--font-d); font-size: 2.6rem; font-weight: 800;
  color: var(--accent); letter-spacing: -0.04em; line-height: 1;
  margin-bottom: 8px;
}
.stat-desc { font-size: 0.78rem; color: var(--text3); max-width: 150px; line-height: 1.4; }
.stat-sep { width: 1px; height: 44px; background: var(--border); }

/* ========================================== SERVICES */
.services { padding: 96px 32px; }
.services-header { max-width: 1100px; margin: 0 auto 52px; }

.services-grid {
  max-width: 1100px; margin: 0 auto;
  display: grid; grid-template-columns: repeat(3, 1fr); gap: 20px;
}
.svc-card {
  background: var(--card); border: 1px solid var(--border);
  border-radius: 16px; padding: 32px 28px;
  transition: border-color 0.3s ease, background 0.3s ease;
}
.svc-card:hover { border-color: var(--border-a); background: var(--card-h); }
.svc-track {
  font-size: 0.65rem; color: var(--accent);
  letter-spacing: 0.1em; text-transform: uppercase;
  margin-bottom: 20px;
}
.svc-icon { color: var(--accent); margin-bottom: 18px; }
.svc-card h3 {
  font-family: var(--font-d); font-size: 1.2rem; font-weight: 700;
  margin-bottom: 10px;
}
.svc-card p {
  font-size: 0.875rem; color: var(--text2);
  line-height: 1.65; margin-bottom: 18px;
}
.svc-note {
  border-top: 1px solid var(--border); padding-top: 14px;
  font-size: 0.75rem; color: var(--text3); font-style: italic;
}
.services-footer {
  max-width: 1100px; margin: 28px auto 0;
  text-align: center; font-size: 0.82rem; color: var(--text3);
}

/* ========================================== PHILOSOPHY */
.philosophy {
  padding: 96px 32px;
  background: var(--bg2);
  border-top: 1px solid var(--border);
  border-bottom: 1px solid var(--border);
  display: flex; flex-direction: column; align-items: center;
  text-align: center;
}
.philosophy-inner {
  max-width: 700px; margin: 0 auto 56px;
  display: flex; flex-direction: column; align-items: center;
}
.philosophy-mark { margin-bottom: 28px; }
.philosophy-quote {
  font-family: var(--font-d); font-size: clamp(1.3rem, 2.4vw, 1.8rem);
  font-weight: 600; line-height: 1.35;
  letter-spacing: -0.02em; margin-bottom: 20px;
}
.philosophy-body {
  font-size: 0.95rem; color: var(--text2);
  line-height: 1.7; max-width: 480px;
}
.philosophy-body em { font-style: normal; color: var(--accent); font-weight: 500; }

.process-flow {
  display: flex; align-items: center; gap: 20px; justify-content: center;
  margin-bottom: 20px;
}
.proc-step { display: flex; flex-direction: column; align-items: center; gap: 8px; }
.proc-dot {
  width: 44px; height: 44px; border-radius: 50%;
  border: 2px solid var(--accent); background: var(--accent-dim);
}
.proc-step span { font-size: 0.78rem; color: var(--text3); }
.proc-arrow { color: var(--accent); font-size: 1rem; opacity: 0.6; }
.process-timing {
  display: flex; gap: 6px; justify-content: center;
  font-size: 0.8rem; color: var(--text3);
}
.process-timing strong { color: var(--accent); }

/* ========================================== CLOSING */
.closing { padding: 96px 32px; }
.closing-inner {
  max-width: 1100px; margin: 0 auto;
  text-align: center;
}
.closing-headline {
  font-family: var(--font-d); font-size: clamp(1.9rem, 3.5vw, 2.8rem);
  font-weight: 700; line-height: 1.18;
  letter-spacing: -0.028em; max-width: 680px;
  margin: 0 auto 18px;
}
.closing-sub { font-size: 1rem; color: var(--text3); }

/* ========================================== FOOTER */
.footer {
  padding: 48px 32px;
  border-top: 1px solid var(--border);
  background: var(--bg2);
}
.footer-inner {
  max-width: 1100px; margin: 0 auto;
  display: flex; flex-direction: column; align-items: center; gap: 12px;
}
.footer-logo {
  display: flex; align-items: center; gap: 8px;
  font-family: var(--font-d); font-weight: 700;
}
.footer-tag {
  font-size: 0.82rem; color: var(--text3);
  text-align: center; line-height: 1.5;
}
.footer-rule { width: 40px; height: 1px; background: var(--border-a); }
.footer-motto {
  font-size: 0.7rem; color: var(--text3);
  letter-spacing: 0.07em; text-transform: uppercase;
}

/* ========================================== RESPONSIVE */
@media (max-width: 768px) {
  .hero-content { grid-template-columns: 1fr; gap: 36px; }
  .hero-visual { display: none; }
  .comparison { flex-direction: column; }
  .compare-divider { flex-direction: row; }
  .divider-line { width: 32px; height: 1px; }
  .arrow { transform: rotate(90deg); }
  .stat-row { flex-direction: column; gap: 24px; }
  .stat-sep { width: 40px; height: 1px; }
  .services-grid { grid-template-columns: 1fr; }
  .process-flow { flex-direction: column; gap: 14px; }
  .proc-arrow { transform: rotate(90deg); }
  .mechanism, .services, .philosophy, .closing {
    padding-left: 20px; padding-right: 20px;
    --section-pad: 64px;
  }
}
@media (max-width: 480px) {
  .hero { padding: 96px 20px 56px; }
  .hero-headline { font-size: 2.4rem; }
}