:root {
  --ink: #08080a;
  --ink-2: #121217;
  --ink-3: #1a1a21;
  --line: #2c2c35;
  --text: #f4f0e4;
  --muted: #a8a295;
  --yellow: #f4c430;
  --yellow-deep: #b8860b;
  --yellow-soft: #f7efd3;
  --green: #60d394;
  --steel: #9aa3ad;
  --max: 1120px;
  --header-h: 72px;
  --font-display: "Barlow Condensed", "Arial Narrow", sans-serif;
  --font-body: "IBM Plex Sans", "Helvetica Neue", sans-serif;
  --font-mono: "IBM Plex Mono", ui-monospace, monospace;
}

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

html {
  scroll-behavior: smooth;
}

@media (prefers-reduced-motion: reduce) {
  html {
    scroll-behavior: auto;
  }

  *,
  *::before,
  *::after {
    animation-duration: 0.01ms !important;
    animation-iteration-count: 1 !important;
    transition-duration: 0.01ms !important;
  }
}

body {
  margin: 0;
  min-height: 100vh;
  background: var(--ink);
  color: var(--text);
  font-family: var(--font-body);
  font-size: 18px;
  line-height: 1.55;
  -webkit-font-smoothing: antialiased;
  text-rendering: optimizeLegibility;
}

img {
  display: block;
  max-width: 100%;
  height: auto;
}

a {
  color: var(--yellow);
  text-decoration-thickness: 1px;
  text-underline-offset: 0.18em;
}

a:hover {
  color: var(--yellow-soft);
}

.skip-link {
  position: absolute;
  left: 12px;
  top: -48px;
  z-index: 100;
  padding: 8px 12px;
  background: var(--yellow);
  color: var(--ink);
  font-weight: 600;
}

.skip-link:focus {
  top: 12px;
}

/* Header */

.site-header {
  position: fixed;
  inset: 0 0 auto;
  z-index: 40;
  display: flex;
  align-items: center;
  justify-content: space-between;
  height: var(--header-h);
  padding: 0 clamp(20px, 4vw, 40px);
  background: linear-gradient(180deg, rgba(8, 8, 10, 0.92), rgba(8, 8, 10, 0.55) 70%, transparent);
  backdrop-filter: blur(8px);
}

.brand-mark {
  display: inline-flex;
  align-items: center;
  gap: 10px;
  color: var(--text);
  text-decoration: none;
  font-family: var(--font-display);
  font-size: 1.35rem;
  font-weight: 700;
  letter-spacing: 0.02em;
  text-transform: uppercase;
}

.brand-mark img {
  width: 36px;
  height: 36px;
  border-radius: 9px;
}

.site-nav {
  display: flex;
  align-items: center;
  gap: clamp(14px, 3vw, 28px);
}

.site-nav a {
  color: var(--muted);
  text-decoration: none;
  font-size: 0.95rem;
  font-weight: 500;
}

.site-nav a:hover,
.site-nav a:focus-visible {
  color: var(--text);
}

.nav-github {
  padding: 8px 14px;
  border: 1px solid var(--line);
  background: rgba(18, 18, 23, 0.7);
  color: var(--text) !important;
}

.nav-github:hover {
  border-color: var(--yellow);
  color: var(--yellow-soft) !important;
}

/* Hero — one composition, full-bleed visual plane */

.hero {
  position: relative;
  display: grid;
  align-items: start;
  min-height: auto;
  padding:
    calc(var(--header-h) + clamp(36px, 6vh, 72px))
    clamp(20px, 5vw, 64px)
    clamp(40px, 6vh, 64px);
  overflow: hidden;
}

.hero-plane {
  position: absolute;
  inset: 0;
  z-index: 0;
  background:
    radial-gradient(ellipse 70% 50% at 18% 20%, rgba(244, 196, 48, 0.18), transparent 55%),
    linear-gradient(160deg, #050506 0%, #101015 42%, #08080a 100%);
}

.hero-grid {
  position: absolute;
  inset: 0;
  background-image:
    linear-gradient(rgba(255, 255, 255, 0.04) 1px, transparent 1px),
    linear-gradient(90deg, rgba(255, 255, 255, 0.04) 1px, transparent 1px);
  background-size: 48px 48px;
  mask-image: linear-gradient(105deg, #000 0%, #000 42%, transparent 78%);
  opacity: 0.9;
  animation: grid-drift 28s linear infinite;
}

.hero-stripe {
  position: absolute;
  top: -20%;
  right: -8%;
  width: min(46vw, 560px);
  height: 140%;
  background: linear-gradient(180deg, var(--yellow) 0%, var(--yellow-deep) 100%);
  transform: skewX(-18deg) translateX(0);
  box-shadow: inset 0 0 0 1px rgba(0, 0, 0, 0.12);
  animation: stripe-shift 9s ease-in-out infinite alternate;
}

.hero-stripe--dark {
  right: 8%;
  width: min(18vw, 220px);
  background: #050506;
  opacity: 0.88;
  animation-delay: -2.5s;
  animation-duration: 11s;
}

.hero-grain {
  position: absolute;
  inset: 0;
  opacity: 0.22;
  mix-blend-mode: overlay;
  background-image: url("data:image/svg+xml,%3Csvg viewBox='0 0 200 200' xmlns='http://www.w3.org/2000/svg'%3E%3Cfilter id='n'%3E%3CfeTurbulence type='fractalNoise' baseFrequency='0.85' numOctaves='3' stitchTiles='stitch'/%3E%3C/filter%3E%3Crect width='100%25' height='100%25' filter='url(%23n)'/%3E%3C/svg%3E");
  pointer-events: none;
}

.hero-copy {
  position: relative;
  z-index: 1;
  max-width: min(640px, 58vw);
}

.hero-brand {
  margin: 0 0 18px;
  color: var(--yellow);
  font-family: var(--font-display);
  font-size: clamp(3.6rem, 11vw, 7.5rem);
  font-weight: 800;
  line-height: 0.88;
  letter-spacing: 0.01em;
  text-transform: uppercase;
  text-shadow: 0 12px 40px rgba(0, 0, 0, 0.45);
}

.hero-headline {
  margin: 0;
  max-width: 14ch;
  color: var(--text);
  font-family: var(--font-display);
  font-size: clamp(2.4rem, 6.5vw, 4.4rem);
  font-weight: 700;
  line-height: 0.95;
  letter-spacing: 0.01em;
  text-transform: uppercase;
  white-space: nowrap;
}

.hero-support {
  max-width: 42ch;
  margin: 22px 0 0;
  color: var(--yellow-soft);
  font-size: clamp(1.05rem, 2vw, 1.25rem);
  line-height: 1.45;
}

.hero-ctas {
  display: flex;
  flex-wrap: wrap;
  gap: 12px;
  margin-top: 32px;
}

.reveal {
  opacity: 0;
  transform: translateY(18px);
  animation: rise 0.9s cubic-bezier(0.22, 1, 0.36, 1) forwards;
}

.reveal-delay-1 {
  animation-delay: 0.12s;
}

.reveal-delay-2 {
  animation-delay: 0.24s;
}

.reveal-delay-3 {
  animation-delay: 0.36s;
}

@keyframes rise {
  to {
    opacity: 1;
    transform: translateY(0);
  }
}

@keyframes stripe-shift {
  from {
    transform: skewX(-18deg) translateX(0);
  }
  to {
    transform: skewX(-18deg) translateX(-18px);
  }
}

@keyframes grid-drift {
  from {
    background-position: 0 0;
  }
  to {
    background-position: 48px 48px;
  }
}

/* Buttons */

.btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  min-height: 48px;
  padding: 0 20px;
  border: 1px solid transparent;
  font-family: var(--font-body);
  font-size: 0.98rem;
  font-weight: 600;
  text-decoration: none;
  cursor: pointer;
  transition:
    background 0.18s ease,
    color 0.18s ease,
    border-color 0.18s ease,
    transform 0.18s ease;
}

.btn:active {
  transform: translateY(1px);
}

.btn-primary {
  background: var(--yellow);
  color: var(--ink);
}

.btn-primary:hover,
.btn-primary:focus-visible {
  background: var(--yellow-soft);
  color: var(--ink);
}

.btn-ghost {
  border-color: rgba(244, 240, 228, 0.35);
  background: rgba(8, 8, 10, 0.35);
  color: var(--text);
}

.btn-ghost:hover,
.btn-ghost:focus-visible {
  border-color: var(--yellow);
  color: var(--yellow-soft);
}

/* Sections */

.section {
  position: relative;
  padding: clamp(72px, 12vh, 120px) clamp(20px, 5vw, 64px);
  border-top: 1px solid var(--line);
}

.section-inner {
  width: min(100%, var(--max));
  margin: 0 auto;
}

.section h2 {
  margin: 0;
  max-width: 18ch;
  font-family: var(--font-display);
  font-size: clamp(2.2rem, 5vw, 3.4rem);
  font-weight: 700;
  line-height: 0.98;
  letter-spacing: 0.01em;
  text-transform: uppercase;
}

.section-lede,
.problem p,
.audience p {
  max-width: 62ch;
  margin: 18px 0 0;
  color: var(--muted);
  font-size: 1.08rem;
}

.problem {
  background:
    linear-gradient(90deg, rgba(244, 196, 48, 0.08), transparent 42%),
    var(--ink-2);
}

.pipeline {
  background: var(--ink);
}

.phase-rail {
  display: grid;
  grid-template-columns: repeat(6, minmax(0, 1fr));
  gap: 0;
  margin: 48px 0 0;
  padding: 0;
  list-style: none;
  border-top: 2px solid var(--yellow);
}

.phase {
  position: relative;
  padding: 22px 16px 0 0;
  border-right: 1px solid var(--line);
}

.phase::before {
  content: "";
  position: absolute;
  top: -7px;
  left: 0;
  width: 12px;
  height: 12px;
  background: var(--yellow);
  box-shadow: 0 0 0 4px var(--ink);
}

.phase--end {
  border-right: 0;
}

.phase--end::before {
  background: var(--green);
}

.phase-index {
  display: block;
  color: var(--steel);
  font-family: var(--font-mono);
  font-size: 0.78rem;
  letter-spacing: 0.04em;
}

.phase-name {
  display: block;
  margin-top: 8px;
  color: var(--text);
  font-family: var(--font-display);
  font-size: clamp(1.25rem, 2.2vw, 1.7rem);
  font-weight: 700;
  line-height: 1.05;
  text-transform: uppercase;
}

.demo {
  background:
    radial-gradient(ellipse 60% 40% at 80% 10%, rgba(244, 196, 48, 0.1), transparent 50%),
    var(--ink-2);
}

.demo-frame {
  margin: 36px 0 0;
  overflow: hidden;
  border: 1px solid var(--line);
  background: #050506;
  box-shadow: 0 28px 80px rgba(0, 0, 0, 0.45);
}

.demo-frame img {
  width: 100%;
  aspect-ratio: 16 / 9;
  object-fit: cover;
  background: #0a0a0d;
}

.get {
  background: var(--ink);
}

.get-list {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 40px 48px;
  margin: 40px 0 0;
  padding: 0;
  list-style: none;
}

.get-list li {
  padding-top: 18px;
  border-top: 1px solid var(--line);
}

.get-list h3 {
  margin: 0;
  font-family: var(--font-display);
  font-size: 1.55rem;
  font-weight: 700;
  letter-spacing: 0.01em;
  text-transform: uppercase;
}

.get-list p {
  margin: 10px 0 0;
  color: var(--muted);
  font-size: 1rem;
}

.ide {
  background:
    radial-gradient(ellipse 55% 45% at 12% 20%, rgba(244, 196, 48, 0.08), transparent 55%),
    var(--ink-2);
}

.ide-frame {
  margin: 36px 0 0;
  overflow: hidden;
  border: 1px solid var(--line);
  background: #050506;
  box-shadow: 0 28px 80px rgba(0, 0, 0, 0.45);
}

.ide-frame img {
  width: 100%;
  aspect-ratio: 16 / 9;
  object-fit: cover;
  object-position: right bottom;
  background: #0a0a0d;
}

.ide-frame figcaption {
  margin: 0;
  padding: 16px 18px 18px;
  border-top: 1px solid var(--line);
  color: var(--muted);
  font-size: 0.95rem;
  line-height: 1.5;
}

.ide-frame figcaption strong,
.ide-vscode strong {
  color: var(--text);
  font-weight: 600;
}

.ide-frame figcaption code,
.ide-vscode code {
  font-family: var(--font-mono);
  font-size: 0.88em;
  color: var(--yellow-soft);
}

.ide-vscode {
  max-width: 62ch;
  margin: 28px 0 0;
  padding-top: 22px;
  border-top: 1px solid var(--line);
  color: var(--muted);
  font-size: 1.02rem;
  line-height: 1.5;
}

.install {
  background:
    linear-gradient(180deg, rgba(244, 196, 48, 0.12), transparent 28%),
    var(--ink-2);
}

.install-panel {
  display: grid;
  grid-template-columns: 1fr auto;
  gap: 12px;
  align-items: stretch;
  margin-top: 32px;
  padding: 14px;
  border: 1px solid var(--line);
  background: var(--ink);
}

.install-code {
  margin: 0;
  overflow-x: auto;
  padding: 14px 16px;
  background: var(--ink-3);
  color: var(--yellow-soft);
  font-family: var(--font-mono);
  font-size: clamp(0.78rem, 1.5vw, 0.92rem);
  line-height: 1.45;
}

.install-code code {
  font-family: inherit;
  white-space: nowrap;
}

.install-note {
  margin: 16px 0 0;
  color: var(--muted);
  font-size: 0.95rem;
}

.follow-up {
  margin: 28px 0 0;
  padding: 18px 20px;
  border-left: 3px solid var(--yellow);
  background: rgba(8, 8, 10, 0.55);
  color: var(--steel);
  font-family: var(--font-mono);
  font-size: 0.92rem;
  line-height: 1.6;
}

.follow-up code {
  font-family: inherit;
}

.audience {
  background: var(--ink);
}

.projects {
  background: var(--ink-2);
}

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

.project-list li {
  padding: 22px 0;
  border-top: 1px solid var(--line);
}

.project-list li:last-child {
  border-bottom: 1px solid var(--line);
}

.project-list a {
  color: var(--yellow);
  font-family: var(--font-display);
  font-size: clamp(1.6rem, 3vw, 2.1rem);
  font-weight: 700;
  letter-spacing: 0.01em;
  text-decoration: none;
  text-transform: uppercase;
}

.project-list a:hover,
.project-list a:focus-visible {
  color: var(--yellow-soft);
  text-decoration: underline;
  text-underline-offset: 0.18em;
}

.project-list p {
  max-width: 52ch;
  margin: 8px 0 0;
  color: var(--muted);
  font-size: 1.02rem;
}

.site-footer {
  border-top: 1px solid var(--line);
  padding: 40px clamp(20px, 5vw, 64px) 56px;
  background: #050506;
}

.footer-inner {
  width: min(100%, var(--max));
  margin: 0 auto;
}

.footer-brand {
  display: inline-flex;
  align-items: center;
  gap: 10px;
  font-family: var(--font-display);
  font-size: 1.2rem;
  font-weight: 700;
  letter-spacing: 0.02em;
  text-transform: uppercase;
}

.footer-brand img {
  width: 28px;
  height: 28px;
  border-radius: 7px;
}

.footer-links {
  display: flex;
  flex-wrap: wrap;
  gap: 18px;
  margin-top: 18px;
}

.footer-links a {
  color: var(--muted);
  text-decoration: none;
}

.footer-links a:hover {
  color: var(--yellow);
}

.footer-meta {
  margin: 22px 0 0;
  max-width: 56ch;
  color: #6f6a60;
  font-size: 0.88rem;
}

#copy-install.is-copied {
  background: var(--green);
  color: var(--ink);
}

@media (max-width: 900px) {
  .phase-rail {
    grid-template-columns: repeat(2, minmax(0, 1fr));
    border-top: 0;
  }

  .phase {
    padding: 18px 12px 18px 0;
    border-top: 2px solid var(--yellow);
    border-right: 0;
  }

  .phase:nth-child(odd) {
    padding-right: 18px;
    border-right: 1px solid var(--line);
  }

  .get-list {
    grid-template-columns: 1fr;
    gap: 28px;
  }
}

@media (max-width: 720px) {
  .site-nav a:not(.nav-github) {
    display: none;
  }

  .hero {
    align-items: start;
    padding-bottom: 56px;
  }

  .hero-copy {
    max-width: 100%;
  }

  .hero-headline {
    max-width: none;
    white-space: normal;
  }

  .hero-stripe {
    width: 38vw;
    right: -12%;
    opacity: 0.95;
  }

  .hero-stripe--dark {
    right: 2%;
    width: 14vw;
  }

  .hero-support {
    max-width: 36ch;
  }

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

  .btn-primary {
    width: 100%;
  }
}

@media (max-width: 480px) {
  .phase-rail {
    grid-template-columns: 1fr;
  }

  .phase:nth-child(odd) {
    padding-right: 0;
    border-right: 0;
  }
}
