/* ============== THEME ============== */
:root {
  --bg-deep: #0a0e1a;
  --bg-surface: #111728;
  --bg-elevated: #161d33;
  --bg-elevated-2: #1a2342;

  --accent: #4f7df5;
  --accent-2: #22d3a7;
  --accent-glow: rgba(79, 125, 245, 0.35);

  --text-primary: #e8ecf4;
  --text-secondary: #8a93ad;
  --text-dim: #5b6480;
  --border: rgba(140, 160, 220, 0.10);
  --border-strong: rgba(140, 160, 220, 0.18);

  --radius-sm: 8px;
  --radius-md: 12px;
  --radius-lg: 20px;
  --shadow-lg: 0 24px 60px rgba(0, 0, 0, 0.5);
  --shadow-glow: 0 0 0 1px rgba(79, 125, 245, 0.35), 0 8px 28px rgba(79, 125, 245, 0.25);
}

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

html { height: 100%; scroll-behavior: smooth; }
body {
  min-height: 100%;
  font-family: 'Sora', sans-serif;
  background: var(--bg-deep);
  color: var(--text-primary);
  overflow-x: hidden;
  -webkit-font-smoothing: antialiased;
  line-height: 1.6;
  position: relative;
}

/* ============== AMBIENT BACKGROUND ============== */
.bg-grid {
  position: fixed; inset: 0; z-index: 0;
  background-image:
    linear-gradient(rgba(140,160,220,0.045) 1px, transparent 1px),
    linear-gradient(90deg, rgba(140,160,220,0.045) 1px, transparent 1px);
  background-size: 64px 64px;
  mask-image: radial-gradient(ellipse at 50% 30%, #000 30%, transparent 75%);
  -webkit-mask-image: radial-gradient(ellipse at 50% 30%, #000 30%, transparent 75%);
  pointer-events: none;
}

.bg-orb {
  position: fixed;
  width: 600px; height: 600px;
  border-radius: 50%;
  filter: blur(120px);
  opacity: 0.35;
  z-index: 0;
  pointer-events: none;
  animation: drift 22s ease-in-out infinite;
}
.bg-orb--1 {
  background: radial-gradient(circle, var(--accent) 0%, transparent 60%);
  top: -200px; left: -150px;
}
.bg-orb--2 {
  background: radial-gradient(circle, var(--accent-2) 0%, transparent 60%);
  bottom: -250px; right: -200px;
  animation-delay: -8s;
}
@keyframes drift {
  0%,100% { transform: translate(0,0) scale(1); }
  50% { transform: translate(60px,-40px) scale(1.1); }
}

.cursor-glow {
  position: fixed;
  width: 400px; height: 400px;
  border-radius: 50%;
  background: radial-gradient(circle, rgba(79,125,245,0.12) 0%, transparent 60%);
  pointer-events: none;
  z-index: 1;
  transform: translate(-50%, -50%);
  transition: opacity 0.3s ease;
  opacity: 0;
  left: 50%; top: 50%;
}

/* ============== LAYOUT ============== */
.page {
  position: relative;
  z-index: 2;
  max-width: 1080px;
  margin: 0 auto;
  padding: 80px 32px 120px;
}

.section { display: flex; flex-direction: column; gap: 56px; }

/* ============== HEADER ============== */
.eyebrow {
  display: inline-flex; align-items: center; gap: 10px;
  padding: 8px 14px;
  background: var(--bg-elevated);
  border: 1px solid var(--border-strong);
  border-radius: 999px;
  font-size: 12px;
  color: var(--text-secondary);
  letter-spacing: 0.12em;
  text-transform: uppercase;
  width: fit-content;
  font-weight: 500;
}
.eyebrow__dot {
  width: 6px; height: 6px; border-radius: 50%;
  background: var(--accent-2);
  box-shadow: 0 0 12px var(--accent-2);
  animation: blink 2s ease-in-out infinite;
}
@keyframes blink { 50% { opacity: 0.3; } }

.section__head { display: flex; flex-direction: column; gap: 20px; }

.section__title {
  font-size: clamp(40px, 6vw, 68px);
  line-height: 1.05;
  font-weight: 700;
  letter-spacing: -0.03em;
  display: flex;
  align-items: center;
  gap: 18px;
  flex-wrap: wrap;
}
.emoji {
  font-size: 0.85em;
  display: inline-grid;
  place-items: center;
  width: 1.2em; height: 1.2em;
  background: var(--bg-elevated);
  border: 1px solid var(--border-strong);
  border-radius: var(--radius-md);
  box-shadow: var(--shadow-glow);
}
.grad {
  background: linear-gradient(135deg, var(--accent) 0%, var(--accent-2) 100%);
  -webkit-background-clip: text;
  background-clip: text;
  color: transparent;
}

.section__lede {
  font-size: 18px;
  color: var(--text-secondary);
  max-width: 720px;
}
.section__lede strong { color: var(--text-primary); font-weight: 600; }

.section__sub {
  font-size: 15px;
  color: var(--text-dim);
  max-width: 700px;
}
.section__sub em { color: var(--accent); font-style: normal; font-weight: 500; }

.meta-bar {
  display: flex; flex-wrap: wrap; gap: 10px;
  margin-top: 8px;
}
.meta-chip {
  font-family: 'JetBrains Mono', monospace;
  font-size: 11px;
  color: var(--text-secondary);
  padding: 6px 12px;
  background: var(--bg-surface);
  border: 1px solid var(--border);
  border-radius: var(--radius-sm);
  display: inline-flex; gap: 8px; align-items: center;
}
.meta-chip span {
  color: var(--text-dim);
  text-transform: uppercase;
  letter-spacing: 0.08em;
}
.meta-chip--live {
  border-color: rgba(34, 211, 167, 0.3);
  color: var(--accent-2);
}
.pulse {
  width: 7px; height: 7px; border-radius: 50%;
  background: var(--accent-2);
  box-shadow: 0 0 0 0 rgba(34, 211, 167, 0.6);
  animation: pulse 2s ease-out infinite;
}
@keyframes pulse {
  0% { box-shadow: 0 0 0 0 rgba(34,211,167,0.6); }
  100% { box-shadow: 0 0 0 12px rgba(34,211,167,0); }
}

/* ============== BLOCKS ============== */
.block {
  background: linear-gradient(180deg, var(--bg-surface) 0%, rgba(17,23,40,0.6) 100%);
  border: 1px solid var(--border);
  border-radius: var(--radius-lg);
  padding: 40px;
  position: relative;
  overflow: hidden;
  opacity: 0;
  transform: translateY(30px);
  transition: opacity 0.7s ease, transform 0.7s ease;
}
.block.is-visible { opacity: 1; transform: translateY(0); }

.block::before {
  content: "";
  position: absolute;
  top: 0; left: 0; right: 0; height: 1px;
  background: linear-gradient(90deg, transparent, var(--accent-glow), transparent);
}

.block__head { margin-bottom: 32px; }
.block__title {
  font-size: 24px;
  font-weight: 600;
  letter-spacing: -0.01em;
  margin-bottom: 8px;
  display: flex;
  align-items: center;
  gap: 12px;
}
.block__title::before {
  content: "";
  width: 4px; height: 22px;
  background: linear-gradient(180deg, var(--accent), var(--accent-2));
  border-radius: 2px;
}
.block__caption {
  color: var(--text-secondary);
  font-size: 14px;
  max-width: 620px;
}

/* ============== PRINCIPLES ============== */
.principles {
  list-style: none;
  display: grid;
  grid-template-columns: repeat(2, 1fr);
  gap: 16px;
}
.principle {
  position: relative;
  padding: 24px;
  background: var(--bg-elevated);
  border: 1px solid var(--border);
  border-radius: var(--radius-md);
  display: flex; gap: 20px;
  transition: transform 0.4s ease, border-color 0.4s ease, background 0.4s ease;
  overflow: hidden;
  cursor: default;
}
.principle:hover {
  transform: translateY(-4px);
  border-color: rgba(79,125,245,0.4);
  background: var(--bg-elevated-2);
}
.principle:hover .principle__bar { transform: scaleY(1); }

.principle__num {
  font-family: 'JetBrains Mono', monospace;
  font-size: 13px;
  color: var(--accent);
  font-weight: 500;
  letter-spacing: 0.1em;
  align-self: flex-start;
  padding: 4px 8px;
  background: rgba(79,125,245,0.1);
  border-radius: 6px;
}
.principle__body h4 {
  font-size: 17px;
  font-weight: 600;
  margin-bottom: 8px;
  color: var(--text-primary);
}
.principle__body p {
  font-size: 14px;
  color: var(--text-secondary);
  line-height: 1.65;
}
.principle__bar {
  position: absolute;
  left: 0; top: 0; bottom: 0;
  width: 3px;
  background: linear-gradient(180deg, var(--accent), var(--accent-2));
  transform: scaleY(0);
  transform-origin: top;
  transition: transform 0.4s ease;
}

/* ============== DIVIDER ============== */
.divider {
  display: flex;
  align-items: center;
  justify-content: center;
  height: 1px;
}
.divider span {
  display: block;
  width: 100%;
  height: 1px;
  background: linear-gradient(90deg, transparent, var(--border-strong) 30%, var(--border-strong) 70%, transparent);
  position: relative;
}
.divider span::after {
  content: "";
  position: absolute;
  top: 50%; left: 50%;
  width: 6px; height: 6px;
  background: var(--accent);
  border-radius: 50%;
  transform: translate(-50%,-50%);
  box-shadow: 0 0 16px var(--accent);
}

/* ============== PIPELINE ============== */
.pipeline {
  position: relative;
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  gap: 12px;
  padding: 36px 12px 12px;
  margin-bottom: 24px;
}
.pipeline__track {
  position: absolute;
  top: 50px;
  left: 12.5%; right: 12.5%;
  height: 2px;
  background: var(--border-strong);
  border-radius: 2px;
}
.pipeline__progress {
  position: absolute;
  top: 50px;
  left: 12.5%;
  height: 2px;
  width: 0%;
  background: linear-gradient(90deg, var(--accent), var(--accent-2));
  border-radius: 2px;
  box-shadow: 0 0 12px var(--accent-glow);
  transition: width 0.6s cubic-bezier(0.22, 1, 0.36, 1);
}

.stage {
  position: relative;
  background: transparent;
  border: none;
  color: var(--text-secondary);
  font-family: inherit;
  cursor: pointer;
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 10px;
  padding-top: 0;
  z-index: 2;
}
.stage__dot {
  width: 16px; height: 16px;
  border-radius: 50%;
  background: var(--bg-elevated-2);
  border: 2px solid var(--border-strong);
  transition: all 0.4s ease;
  position: relative;
}
.stage__label {
  font-size: 13px;
  font-weight: 500;
  text-align: center;
  transition: color 0.3s ease;
}
.stage__hint {
  font-family: 'JetBrains Mono', monospace;
  font-size: 10px;
  color: var(--text-dim);
  text-transform: uppercase;
  letter-spacing: 0.1em;
}
.stage:hover .stage__dot {
  border-color: var(--accent);
  transform: scale(1.15);
}
.stage.is-active .stage__dot {
  background: var(--accent);
  border-color: var(--accent);
  box-shadow: 0 0 0 6px rgba(79,125,245,0.15), 0 0 20px var(--accent-glow);
}
.stage.is-active .stage__label { color: var(--text-primary); }
.stage.is-done .stage__dot {
  background: var(--accent-2);
  border-color: var(--accent-2);
}

/* Stage panel */
.stage-panel {
  display: grid;
  grid-template-columns: auto 1fr;
  gap: 28px;
  align-items: center;
  padding: 28px;
  background: var(--bg-elevated);
  border: 1px solid var(--border-strong);
  border-radius: var(--radius-md);
  position: relative;
  overflow: hidden;
}
.stage-panel__index {
  font-family: 'JetBrains Mono', monospace;
  font-size: 56px;
  font-weight: 700;
  line-height: 1;
  background: linear-gradient(135deg, var(--accent), var(--accent-2));
  -webkit-background-clip: text;
  background-clip: text;
  color: transparent;
  letter-spacing: -0.04em;
}
.stage-panel__total {
  font-size: 18px;
  color: var(--text-dim);
  -webkit-text-fill-color: var(--text-dim);
}
.stage-panel__body h4 {
  font-size: 20px;
  font-weight: 600;
  margin-bottom: 6px;
}
.stage-panel__body p {
  font-size: 14px;
  color: var(--text-secondary);
  max-width: 560px;
}
.stage-panel__meter {
  position: absolute;
  bottom: 0; left: 0; right: 0;
  height: 2px;
  background: var(--border);
}
.stage-panel__meter-fill {
  height: 100%;
  width: 25%;
  background: linear-gradient(90deg, var(--accent), var(--accent-2));
  transition: width 0.6s cubic-bezier(0.22,1,0.36,1);
}

/* ============== DELIVERY LIST ============== */
.delivery-list {
  list-style: none;
  margin-top: 28px;
  display: flex;
  flex-direction: column;
  gap: 12px;
}
.delivery-list li {
  display: flex;
  gap: 14px;
  padding: 14px 18px;
  background: rgba(22, 29, 51, 0.5);
  border: 1px solid var(--border);
  border-radius: var(--radius-sm);
  font-size: 14px;
  color: var(--text-secondary);
  transition: border-color 0.3s ease, transform 0.3s ease;
}
.delivery-list li:hover {
  border-color: rgba(79,125,245,0.3);
  transform: translateX(4px);
}
.check {
  color: var(--accent);
  font-weight: 600;
  font-family: 'JetBrains Mono', monospace;
}

/* ============== QUOTE ============== */
.quote {
  position: relative;
  padding: 40px 48px;
  background:
    radial-gradient(ellipse at top right, rgba(79,125,245,0.08), transparent 60%),
    var(--bg-elevated);
  border: 1px solid var(--border-strong);
  border-radius: var(--radius-md);
  overflow: hidden;
}
.quote::before {
  content: "";
  position: absolute;
  left: 0; top: 0; bottom: 0;
  width: 3px;
  background: linear-gradient(180deg, var(--accent), var(--accent-2));
}
.quote__mark {
  position: absolute;
  top: 8px; right: 30px;
  font-size: 140px;
  line-height: 1;
  color: var(--accent);
  opacity: 0.15;
  font-family: 'Sora', serif;
}
.quote__text {
  font-size: clamp(20px, 2.4vw, 26px);
  font-weight: 500;
  line-height: 1.45;
  color: var(--text-primary);
  letter-spacing: -0.01em;
  min-height: 1.45em;
  display: inline;
}
.quote__cursor {
  display: inline-block;
  width: 3px;
  height: 1.2em;
  background: var(--accent);
  margin-left: 4px;
  vertical-align: text-bottom;
  animation: caret 1s steps(2) infinite;
}
@keyframes caret { 50% { opacity: 0; } }

.quote__foot {
  display: flex;
  align-items: center;
  gap: 14px;
  margin-top: 28px;
  font-family: 'JetBrains Mono', monospace;
  font-size: 11px;
  text-transform: uppercase;
  letter-spacing: 0.15em;
  color: var(--text-dim);
}
.quote__line {
  width: 40px; height: 1px;
  background: var(--accent);
}

.statement-note {
  margin-top: 24px;
  font-size: 14px;
  color: var(--text-secondary);
  max-width: 720px;
  padding-left: 16px;
  border-left: 2px solid var(--border-strong);
}
.statement-note strong { color: var(--text-primary); font-weight: 500; }

/* ============== RESPONSIVE ============== */
@media (max-width: 760px) {
  .page { padding: 48px 20px 80px; }
  .section { gap: 40px; }
  .block { padding: 28px 22px; }
  .principles { grid-template-columns: 1fr; }
  .pipeline { grid-template-columns: repeat(2, 1fr); gap: 24px 12px; }
  .pipeline__track, .pipeline__progress { display: none; }
  .stage-panel { grid-template-columns: 1fr; gap: 12px; padding: 22px; }
  .stage-panel__index { font-size: 40px; }
  .quote { padding: 28px 24px; }
  .quote__mark { font-size: 90px; right: 16px; }
}

@media (prefers-reduced-motion: reduce) {
  *, *::before, *::after {
    animation-duration: 0.01ms !important;
    transition-duration: 0.01ms !important;
  }
}
