:root {
  --bg: #0d1b2a;
  --surface: #11243a;
  --surface-alt: #183455;
  --line: #315a84;
  --text: #e6edf6;
  --text-soft: #adc4dd;
  --accent: #ffb703;
  --accent-alt: #fb8500;
}

* {
  box-sizing: border-box;
}

body {
  margin: 0;
  font-family: "Space Grotesk", sans-serif;
  color: var(--text);
  background:
    radial-gradient(circle at 15% 20%, rgba(251, 133, 0, 0.22), transparent 40%),
    radial-gradient(circle at 80% 10%, rgba(49, 90, 132, 0.7), transparent 40%),
    var(--bg);
  min-height: 100vh;
}

.hero {
  max-width: 1120px;
  margin: 0 auto;
  padding: 5rem 1.25rem 2rem;
}

.hero__layout {
  display: grid;
  grid-template-columns: minmax(0, 1fr) minmax(320px, 460px);
  gap: 2rem;
  align-items: center;
}

.hero__content {
  min-width: 0;
}

.hero__badge {
  display: inline-block;
  margin-bottom: 1rem;
  padding: 0.35rem 0.7rem;
  border: 1px solid var(--line);
  border-radius: 999px;
  font-family: "IBM Plex Mono", monospace;
  font-size: 0.75rem;
  letter-spacing: 0.08em;
}

h1,
h2 {
  margin: 0 0 0.9rem;
  line-height: 1.1;
}

h1 {
  font-size: clamp(2rem, 5vw, 3.6rem);
  max-width: 15ch;
}

.hero p {
  margin: 0;
  max-width: 52ch;
  color: var(--text-soft);
  font-size: 1.08rem;
  line-height: 1.6;
}

.hero__cta {
  display: inline-block;
  margin-top: 1.6rem;
  background: linear-gradient(135deg, var(--accent), var(--accent-alt));
  color: #111;
  text-decoration: none;
  font-weight: 700;
  padding: 0.8rem 1.2rem;
  border-radius: 0.75rem;
}

.hero__visual {
  margin: 0;
  border: 1px solid var(--line);
  border-radius: 8px;
  overflow: hidden;
  background: rgba(17, 36, 58, 0.65);
  box-shadow: 0 20px 48px rgba(0, 0, 0, 0.28);
}

.hero__visual img {
  display: block;
  width: 100%;
  height: auto;
  aspect-ratio: 3 / 2;
  object-fit: cover;
}

.stats {
  margin-top: 1.25rem;
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  gap: 0.75rem;
}

.stat {
  border: 1px solid var(--line);
  border-radius: 0.8rem;
  padding: 0.8rem;
  background: rgba(17, 36, 58, 0.55);
}

.stat__value {
  font-weight: 700;
  font-size: 1rem;
  margin-bottom: 0.25rem;
}

.stat__label {
  color: var(--text-soft);
  font-size: 0.86rem;
}

main {
  max-width: 960px;
  margin: 0 auto;
  padding: 0 1.25rem 3rem;
}

.card-grid {
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  gap: 1rem;
}

.card {
  background: linear-gradient(165deg, var(--surface), var(--surface-alt));
  border: 1px solid var(--line);
  border-radius: 1rem;
  padding: 1.15rem;
  box-shadow: 0 12px 24px rgba(0, 0, 0, 0.2);
}

.card ul {
  margin: 0;
  padding-left: 1rem;
  color: var(--text-soft);
  line-height: 1.55;
}

.flow {
  margin-top: 1.5rem;
  border: 1px solid var(--line);
  border-radius: 1rem;
  padding: 1.15rem;
  background: rgba(17, 36, 58, 0.5);
}

.flow__rail {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  gap: 0.5rem;
}

.flow__node {
  padding: 0.45rem 0.65rem;
  border: 1px solid var(--line);
  border-radius: 0.6rem;
  background: rgba(24, 52, 85, 0.7);
  font-family: "IBM Plex Mono", monospace;
  font-size: 0.82rem;
}

.flow__arrow {
  color: var(--accent);
  font-weight: 700;
}

.timeline {
  margin-top: 1.5rem;
  border: 1px solid var(--line);
  border-radius: 1rem;
  padding: 1.15rem;
  background: rgba(17, 36, 58, 0.6);
}

.timeline__layout {
  display: grid;
  grid-template-columns: minmax(0, 0.9fr) minmax(320px, 1.1fr);
  gap: 1.2rem;
  align-items: center;
}

.timeline__content {
  min-width: 0;
}

.timeline ol {
  list-style: none;
  padding: 0;
  margin: 0;
  display: grid;
  gap: 0.75rem;
}

.timeline li {
  display: flex;
  align-items: center;
  gap: 0.8rem;
  color: var(--text-soft);
}

.timeline li span {
  width: 1.8rem;
  height: 1.8rem;
  border-radius: 50%;
  background: var(--accent);
  color: #111;
  display: grid;
  place-items: center;
  font-weight: 700;
  font-family: "IBM Plex Mono", monospace;
}

.sr-only {
  position: absolute;
  width: 1px;
  height: 1px;
  padding: 0;
  margin: -1px;
  overflow: hidden;
  clip: rect(0, 0, 0, 0);
  white-space: nowrap;
  border: 0;
}

.delivery-cycle {
  margin: 0;
  padding: 0.85rem;
  border: 1px solid rgba(255, 255, 255, 0.08);
  border-radius: 0.9rem;
  background:
    linear-gradient(145deg, rgba(230, 237, 246, 0.08), rgba(230, 237, 246, 0.02)),
    rgba(8, 18, 30, 0.36);
}

.delivery-cycle__grid {
  position: relative;
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 0.7rem;
}

.delivery-cycle__grid::before {
  content: "";
  position: absolute;
  inset: 50% 1rem auto;
  height: 2px;
  background: linear-gradient(90deg, #87c956, var(--accent), #57c7ff);
  opacity: 0.85;
}

.delivery-cycle__step {
  position: relative;
  min-height: 8.2rem;
  display: grid;
  align-content: center;
  justify-items: center;
  gap: 0.35rem;
  padding: 0.8rem;
  border: 1px solid rgba(173, 196, 221, 0.22);
  border-radius: 0.75rem;
  background: rgba(13, 27, 42, 0.76);
  text-align: center;
}

.delivery-cycle__step::after {
  content: "→";
  position: absolute;
  z-index: 2;
  right: -0.72rem;
  top: 50%;
  transform: translateY(-50%);
  width: 1.45rem;
  height: 1.45rem;
  border-radius: 50%;
  background: var(--accent);
  color: #111;
  display: grid;
  place-items: center;
  font-weight: 700;
}

.delivery-cycle__step--gitea::after {
  content: "↓";
  left: 50%;
  right: auto;
  top: auto;
  bottom: -0.72rem;
  transform: translateX(-50%);
}

.delivery-cycle__step--build {
  grid-column: 2;
  grid-row: 2;
}

.delivery-cycle__step--build::after {
  content: "←";
  left: -0.72rem;
  right: auto;
  display: grid;
  background: var(--accent);
}

.delivery-cycle__step--dockploy {
  grid-column: 1;
  grid-row: 2;
}

.delivery-cycle__step--dockploy::after {
  content: "✓";
  background: #87c956;
}

.delivery-cycle__icon,
.delivery-cycle__logo {
  width: 3.25rem;
  height: 3.25rem;
  display: grid;
  place-items: center;
  border-radius: 50%;
  background: #fff;
  box-shadow: 0 10px 22px rgba(0, 0, 0, 0.22);
}

.delivery-cycle__icon {
  background: rgba(255, 183, 3, 0.14);
  color: var(--accent);
}

.delivery-cycle__icon svg {
  width: 2.15rem;
  height: 2.15rem;
  fill: currentColor;
}

.delivery-cycle__logo img {
  display: block;
  width: 2.5rem;
  height: 2.5rem;
  object-fit: contain;
}

.delivery-cycle__logo--dockploy img {
  width: 2.7rem;
  height: 2.7rem;
}

.delivery-cycle__step strong {
  color: #fff;
  font-size: 0.98rem;
}

.delivery-cycle__step span {
  color: var(--text-soft);
  font-size: 0.8rem;
  line-height: 1.3;
}

.lessons {
  margin-top: 1.5rem;
  border: 1px solid var(--line);
  border-radius: 1rem;
  padding: 1.15rem;
  background: rgba(17, 36, 58, 0.6);
}

.lessons ul {
  margin: 0;
  padding-left: 1rem;
  color: var(--text-soft);
  line-height: 1.6;
}

.lessons code {
  color: #fff;
}

footer {
  border-top: 1px solid var(--line);
  text-align: center;
  color: var(--text-soft);
  padding: 1rem;
}

@media (max-width: 920px) {
  .hero {
    padding-top: 3rem;
  }

  .hero__layout {
    grid-template-columns: 1fr;
    gap: 1.25rem;
  }

  .hero__visual {
    max-width: 620px;
  }

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

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

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

@media (max-width: 560px) {
  .delivery-cycle__grid {
    grid-template-columns: 1fr;
  }

  .delivery-cycle__step--build,
  .delivery-cycle__step--dockploy {
    grid-column: auto;
    grid-row: auto;
  }

  .delivery-cycle__grid::before {
    inset: 1rem auto 1rem 50%;
    width: 2px;
    height: auto;
    background: linear-gradient(180deg, #87c956, var(--accent), #57c7ff);
  }

  .delivery-cycle__step::after,
  .delivery-cycle__step--gitea::after,
  .delivery-cycle__step--dockploy::after {
    content: "↓";
    left: 50%;
    right: auto;
    top: auto;
    bottom: -0.72rem;
    transform: translateX(-50%);
  }

  .delivery-cycle__step--dockploy::after {
    content: "✓";
  }

  .delivery-cycle__step--build::after {
    content: "↓";
    display: grid;
  }
}
