:root {
  color-scheme: dark;
  --bg: #071011;
  --surface: #0d1a1c;
  --surface-2: #122326;
  --ink: #f2f8f7;
  --muted: #9ab1af;
  --line: rgba(188, 222, 217, 0.16);
  --accent: #54dfc5;
  --accent-2: #f4c95d;
  --danger: #ff7d7d;
  --soft: rgba(84, 223, 197, 0.12);
  --max: 1180px;
}

* {
  box-sizing: border-box;
}

html {
  scroll-behavior: smooth;
}

body {
  margin: 0;
  min-width: 320px;
  background:
    linear-gradient(180deg, #071011 0%, #081415 48%, #0a1011 100%);
  color: var(--ink);
  font-family: Inter, "Noto Sans SC", system-ui, -apple-system, BlinkMacSystemFont, "Segoe UI", sans-serif;
  letter-spacing: 0;
}

a {
  color: inherit;
  text-decoration: none;
}

.page-shell {
  overflow: hidden;
}

.site-header {
  position: fixed;
  z-index: 20;
  top: 0;
  left: 0;
  right: 0;
  height: 72px;
  display: flex;
  align-items: center;
  justify-content: space-between;
  padding: 0 clamp(18px, 4vw, 48px);
  border-bottom: 1px solid rgba(255, 255, 255, 0.07);
  background: rgba(7, 16, 17, 0.72);
  backdrop-filter: blur(18px);
}

.brand {
  display: inline-flex;
  align-items: center;
  gap: 12px;
  font-weight: 800;
  letter-spacing: 0;
}

.brand-mark {
  width: 34px;
  height: 34px;
  flex: 0 0 auto;
  display: block;
  filter: drop-shadow(0 0 20px rgba(84, 223, 197, 0.36));
}

.nav-links {
  display: flex;
  gap: clamp(14px, 2.4vw, 28px);
  color: var(--muted);
  font-size: 14px;
}

.nav-links a {
  transition: color 160ms ease;
}

.nav-links a:hover {
  color: var(--ink);
}

.hero {
  position: relative;
  min-height: 92svh;
  display: grid;
  grid-template-columns: minmax(0, 1fr) minmax(230px, 310px);
  align-items: end;
  gap: 28px;
  padding: 124px clamp(20px, 6vw, 72px) 48px;
}

.hero-canvas,
.hero-overlay {
  position: absolute;
  inset: 0;
}

.hero-canvas {
  z-index: 0;
  width: 100%;
  height: 100%;
  background: #071011;
}

.hero-overlay {
  z-index: 1;
  background:
    linear-gradient(90deg, rgba(7, 16, 17, 0.94) 0%, rgba(7, 16, 17, 0.72) 38%, rgba(7, 16, 17, 0.32) 100%),
    linear-gradient(180deg, rgba(7, 16, 17, 0.08) 0%, rgba(7, 16, 17, 0.92) 100%);
}

.hero-content {
  position: relative;
  z-index: 2;
  max-width: 820px;
}

.eyebrow,
.section-kicker {
  margin: 0 0 16px;
  color: var(--accent);
  font-size: 13px;
  font-weight: 800;
  letter-spacing: 0;
  text-transform: uppercase;
}

h1,
h2,
h3,
p {
  margin-top: 0;
}

h1 {
  margin-bottom: 22px;
  max-width: 680px;
  font-size: 78px;
  line-height: 0.98;
  letter-spacing: 0;
}

.hero-copy {
  max-width: 720px;
  color: #c6d7d5;
  font-size: 21px;
  line-height: 1.7;
}

.hero-actions {
  display: flex;
  flex-wrap: wrap;
  gap: 12px;
  margin-top: 34px;
}

.primary-action,
.secondary-action {
  min-height: 46px;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  padding: 0 18px;
  border: 1px solid rgba(255, 255, 255, 0.16);
  font-weight: 700;
  transition: transform 180ms ease, border-color 180ms ease, background 180ms ease;
}

.primary-action {
  background: var(--accent);
  color: #06201c;
  border-color: transparent;
}

.secondary-action {
  background: rgba(255, 255, 255, 0.05);
}

.primary-action:hover,
.secondary-action:hover {
  transform: translateY(-2px);
}

.secondary-action:hover {
  border-color: rgba(84, 223, 197, 0.58);
}

.hero-panel {
  position: relative;
  z-index: 2;
  align-self: end;
  display: grid;
  gap: 18px;
  padding: 20px;
  border-left: 1px solid rgba(84, 223, 197, 0.42);
  background: linear-gradient(90deg, rgba(84, 223, 197, 0.1), rgba(255, 255, 255, 0.02));
}

.metric {
  display: block;
  font-size: 44px;
  line-height: 1;
  font-weight: 800;
}

.metric-label {
  color: var(--muted);
  font-size: 13px;
}

.section {
  width: min(var(--max), calc(100% - 40px));
  margin: 0 auto;
  padding: 86px 0;
}

.intro-grid {
  display: grid;
  grid-template-columns: minmax(0, 1.1fr) minmax(280px, 0.9fr);
  gap: 48px;
  align-items: start;
}

.intro h2,
.section-heading h2 {
  font-size: 52px;
  line-height: 1.08;
  letter-spacing: 0;
}

.intro p,
.section-heading p,
.stage-detail p,
.tool-grid p,
.release-block p,
.flow-lane p,
.flow-lane li,
.check-list li {
  color: var(--muted);
  line-height: 1.7;
}

.section-heading {
  max-width: 800px;
  margin-bottom: 38px;
}

.timeline {
  display: grid;
  grid-template-columns: repeat(8, minmax(130px, 1fr));
  gap: 1px;
  overflow-x: auto;
  border: 1px solid var(--line);
  background: var(--line);
}

.timeline-step {
  min-height: 198px;
  padding: 18px;
  border: 0;
  background: rgba(13, 26, 28, 0.92);
  cursor: pointer;
  transition: background 180ms ease, transform 180ms ease;
}

.timeline-step:hover,
.timeline-step.active {
  background: #143234;
}

.timeline-step.active {
  outline: 1px solid rgba(84, 223, 197, 0.58);
  outline-offset: -1px;
}

.timeline-step span {
  display: block;
  color: var(--accent);
  font-weight: 800;
  margin-bottom: 16px;
}

.timeline-step strong {
  display: block;
  margin-bottom: 10px;
  font-size: 18px;
}

.timeline-step p {
  margin: 0;
  color: var(--muted);
  font-size: 14px;
  line-height: 1.55;
}

.stage-detail {
  display: grid;
  grid-template-columns: minmax(0, 1.1fr) minmax(280px, 0.9fr);
  gap: 28px;
  margin-top: 24px;
  padding: 28px;
  border: 1px solid var(--line);
  background:
    linear-gradient(135deg, rgba(84, 223, 197, 0.08), transparent 45%),
    rgba(13, 26, 28, 0.72);
}

.stage-detail h3 {
  margin-bottom: 12px;
  font-size: 28px;
}

.detail-list {
  display: grid;
  gap: 10px;
  margin: 0;
  padding: 0;
  list-style: none;
}

.detail-list li {
  display: flex;
  gap: 10px;
  color: #c6d7d5;
}

.detail-list li::before,
.check-list li::before {
  content: "";
  flex: 0 0 auto;
  width: 7px;
  height: 7px;
  margin-top: 11px;
  background: var(--accent);
}

.dark-band {
  width: 100%;
  max-width: none;
  padding: 92px max(20px, calc((100vw - var(--max)) / 2));
  border-top: 1px solid var(--line);
  border-bottom: 1px solid var(--line);
  background:
    linear-gradient(180deg, rgba(84, 223, 197, 0.07), transparent),
    #0b1719;
}

.strategy-layout {
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  gap: 1px;
  border: 1px solid var(--line);
  background: var(--line);
}

.strategy-column {
  padding: 26px;
  background: rgba(7, 16, 17, 0.72);
}

.strategy-column h3 {
  font-size: 24px;
}

.check-list,
.flow-lane ul {
  display: grid;
  gap: 12px;
  margin: 0;
  padding: 0;
  list-style: none;
}

.check-list li {
  position: relative;
  display: flex;
  gap: 12px;
}

.tool-grid {
  display: grid;
  grid-template-columns: repeat(4, minmax(0, 1fr));
  gap: 1px;
  border: 1px solid var(--line);
  background: var(--line);
}

.tool-grid article {
  min-height: 226px;
  padding: 24px;
  background: rgba(13, 26, 28, 0.9);
  transition: background 180ms ease, transform 180ms ease;
}

.tool-grid article:hover {
  background: #142b2e;
}

.tool-grid span,
.release-block span {
  display: block;
  margin-bottom: 18px;
  color: var(--accent-2);
  font-size: 12px;
  font-weight: 800;
  text-transform: uppercase;
}

.tool-grid h3,
.release-block h3,
.flow-lane h3 {
  font-size: 23px;
}

.split-section {
  width: 100%;
  max-width: none;
  padding-left: max(20px, calc((100vw - var(--max)) / 2));
  padding-right: max(20px, calc((100vw - var(--max)) / 2));
  background: rgba(255, 255, 255, 0.02);
}

.git-flow {
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  gap: 1px;
  border: 1px solid var(--line);
  background: var(--line);
}

.flow-lane {
  padding: 28px;
  background:
    linear-gradient(180deg, rgba(84, 223, 197, 0.06), transparent 42%),
    #0d1a1c;
}

.flow-lane p {
  min-height: 82px;
}

.flow-lane li {
  padding-left: 16px;
  border-left: 2px solid rgba(84, 223, 197, 0.35);
}

.release-grid {
  display: grid;
  grid-template-columns: 1.1fr 0.9fr;
  gap: 1px;
  border: 1px solid var(--line);
  background: var(--line);
}

.release-block {
  min-height: 200px;
  padding: 28px;
  background: rgba(13, 26, 28, 0.9);
}

.release-block:nth-child(1) {
  background:
    linear-gradient(135deg, rgba(84, 223, 197, 0.12), transparent 50%),
    rgba(13, 26, 28, 0.9);
}

.reveal {
  opacity: 0;
  transform: translateY(26px);
  transition: opacity 640ms ease, transform 640ms ease;
}

.reveal.is-visible {
  opacity: 1;
  transform: translateY(0);
}

@media (max-width: 980px) {
  .site-header {
    height: auto;
    min-height: 68px;
    align-items: flex-start;
    flex-direction: column;
    gap: 12px;
    padding-top: 14px;
    padding-bottom: 14px;
  }

  .nav-links {
    width: 100%;
    overflow-x: auto;
    padding-bottom: 2px;
    white-space: nowrap;
  }

  .hero {
    grid-template-columns: 1fr;
    align-items: end;
    min-height: auto;
    padding-top: 138px;
    padding-bottom: 38px;
  }

  .hero-panel {
    max-width: 520px;
    grid-template-columns: repeat(3, 1fr);
  }

  h1 {
    font-size: 64px;
  }

  .hero-copy {
    font-size: 19px;
  }

  .intro h2,
  .section-heading h2 {
    font-size: 42px;
  }

  .intro-grid,
  .stage-detail,
  .strategy-layout,
  .git-flow,
  .release-grid {
    grid-template-columns: 1fr;
  }

  .tool-grid {
    grid-template-columns: repeat(2, minmax(0, 1fr));
  }
}

@media (max-width: 620px) {
  .hero {
    padding-left: 20px;
    padding-right: 20px;
    padding-top: 126px;
    padding-bottom: 28px;
  }

  .hero-panel {
    grid-template-columns: 1fr;
  }

  .section {
    width: min(100% - 32px, var(--max));
    padding: 64px 0;
  }

  h1 {
    font-size: 44px;
  }

  .hero-copy {
    font-size: 17px;
  }

  .intro h2,
  .section-heading h2 {
    font-size: 32px;
  }

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

  .stage-detail,
  .strategy-column,
  .flow-lane,
  .release-block {
    padding: 22px;
  }
}
