:root {
  --bg0: #0f1412;
  --bg1: #1a2420;
  --ink: #e8f0ea;
  --muted: #9aafa3;
  --accent: #c8f542;
  --line: rgba(232, 240, 234, 0.12);
  --serif: "Instrument Serif", Georgia, serif;
  --display: "Syne", system-ui, sans-serif;
  --mono: "IBM Plex Mono", ui-monospace, monospace;
}

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

html {
  scroll-behavior: smooth;
}

body {
  margin: 0;
  min-height: 100vh;
  color: var(--ink);
  font-family: var(--display);
  background:
    radial-gradient(1200px 700px at 80% -10%, #2a3d34 0%, transparent 55%),
    radial-gradient(900px 500px at -10% 40%, #24302b 0%, transparent 50%),
    linear-gradient(165deg, var(--bg0), var(--bg1) 55%, #121916);
  line-height: 1.5;
}

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

a:hover {
  color: #e4ff8a;
}

.grain {
  pointer-events: none;
  position: fixed;
  inset: 0;
  opacity: 0.08;
  z-index: 0;
  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='4' stitchTiles='stitch'/%3E%3C/filter%3E%3Crect width='100%25' height='100%25' filter='url(%23n)'/%3E%3C/svg%3E");
}

.top,
main,
footer {
  position: relative;
  z-index: 1;
}

.top {
  display: flex;
  align-items: center;
  justify-content: space-between;
  padding: 1.25rem clamp(1.25rem, 4vw, 3rem);
}

.brand-mark {
  font-weight: 800;
  letter-spacing: -0.04em;
  color: var(--ink);
  text-decoration: none;
  font-size: 1.1rem;
}

.top nav {
  display: flex;
  gap: 1.25rem;
}

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

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

.hero {
  min-height: calc(100vh - 4.5rem);
  display: grid;
  grid-template-columns: 1.1fr 0.9fr;
  gap: clamp(1.5rem, 4vw, 3rem);
  align-items: end;
  padding: clamp(1.5rem, 5vh, 4rem) clamp(1.25rem, 4vw, 3rem) clamp(2rem, 6vh, 4rem);
}

.brand {
  margin: 0 0 0.75rem;
  font-size: clamp(3.5rem, 10vw, 7rem);
  font-weight: 800;
  letter-spacing: -0.06em;
  line-height: 0.9;
  color: var(--accent);
  animation: rise 0.9s cubic-bezier(0.22, 1, 0.36, 1) both;
}

.hero h1 {
  margin: 0;
  max-width: 14ch;
  font-family: var(--serif);
  font-weight: 400;
  font-size: clamp(1.85rem, 3.6vw, 3rem);
  line-height: 1.15;
  letter-spacing: -0.02em;
  animation: rise 0.9s 0.08s cubic-bezier(0.22, 1, 0.36, 1) both;
}

.lede {
  margin: 1.25rem 0 0;
  max-width: 36ch;
  color: var(--muted);
  font-size: 1.05rem;
  font-weight: 500;
  animation: rise 0.9s 0.16s cubic-bezier(0.22, 1, 0.36, 1) both;
}

.cta {
  display: flex;
  flex-wrap: wrap;
  gap: 0.75rem;
  margin-top: 1.75rem;
  animation: rise 0.9s 0.24s cubic-bezier(0.22, 1, 0.36, 1) both;
}

.btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  padding: 0.85rem 1.2rem;
  border: 1px solid transparent;
  font: inherit;
  font-weight: 700;
  font-size: 0.95rem;
  letter-spacing: -0.02em;
  text-decoration: none;
  transition: transform 0.2s ease, background 0.2s ease, border-color 0.2s ease;
}

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

.btn.primary {
  background: var(--accent);
  color: #121916;
}

.btn.ghost {
  border-color: var(--line);
  color: var(--ink);
  background: transparent;
}

.hero-visual {
  min-height: min(62vh, 560px);
  display: grid;
  place-items: center;
  border-left: 1px solid var(--line);
  position: relative;
}

.plumb {
  position: relative;
  width: 2px;
  height: 72%;
  display: flex;
  flex-direction: column;
  align-items: center;
}

.string {
  width: 2px;
  flex: 1;
  background: linear-gradient(to bottom, transparent, var(--accent));
  transform-origin: top center;
  animation: drop 1.2s 0.2s cubic-bezier(0.22, 1, 0.36, 1) both;
}

.bob {
  width: 28px;
  height: 36px;
  margin-top: -2px;
  border-radius: 50% 50% 45% 45%;
  background: radial-gradient(circle at 35% 30%, #f3ffb0, var(--accent) 45%, #7ea012);
  box-shadow: 0 10px 30px rgba(200, 245, 66, 0.25);
  animation: bob 1.2s 0.2s cubic-bezier(0.22, 1, 0.36, 1) both, sway 3.6s 1.4s ease-in-out infinite;
  transform-origin: top center;
}

.floor {
  position: absolute;
  bottom: -1px;
  left: 50%;
  width: min(48vw, 280px);
  height: 1px;
  background: var(--line);
  transform: translateX(-50%);
  animation: rise 1s 0.5s both;
}

.band {
  padding: clamp(3rem, 8vh, 5.5rem) clamp(1.25rem, 4vw, 3rem);
  border-top: 1px solid var(--line);
}

.band h2 {
  margin: 0;
  font-family: var(--serif);
  font-size: clamp(1.8rem, 3vw, 2.4rem);
  font-weight: 400;
}

.section-lede {
  margin: 0.6rem 0 1.5rem;
  color: var(--muted);
  max-width: 42ch;
}

.terminal {
  margin: 0 0 0.85rem;
  padding: 1rem 1.1rem;
  overflow-x: auto;
  border: 1px solid var(--line);
  background: rgba(0, 0, 0, 0.28);
  font-family: var(--mono);
  font-size: 0.92rem;
}

.terminal.delay {
  opacity: 0.85;
}

.hint {
  color: var(--muted);
  font-size: 0.92rem;
}

.checks {
  list-style: none;
  margin: 0;
  padding: 0;
  display: grid;
  gap: 0.85rem;
  max-width: 62ch;
}

.checks li {
  padding-bottom: 0.85rem;
  border-bottom: 1px solid var(--line);
  color: var(--muted);
}

.checks strong {
  color: var(--ink);
  font-weight: 700;
  margin-right: 0.35rem;
}

.support-card {
  max-width: 40rem;
  padding: clamp(1.5rem, 4vw, 2.25rem);
  border: 1px solid var(--line);
  background: rgba(0, 0, 0, 0.22);
}

.support-card h2 {
  font-style: italic;
}

.support-card > p {
  margin: 0.85rem 0 1.35rem;
  color: var(--muted);
  max-width: 42ch;
  font-weight: 500;
}

.support-note {
  margin: 1rem 0 0;
  color: var(--muted);
  font-size: 0.88rem;
}

footer {
  padding: 2rem clamp(1.25rem, 4vw, 3rem) 3rem;
  border-top: 1px solid var(--line);
  color: var(--muted);
  font-size: 0.9rem;
}

footer a {
  color: inherit;
}

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

@keyframes drop {
  from {
    transform: scaleY(0);
  }
  to {
    transform: scaleY(1);
  }
}

@keyframes bob {
  from {
    opacity: 0;
    transform: translateY(-40vh);
  }
  to {
    opacity: 1;
    transform: translateY(0);
  }
}

@keyframes sway {
  0%,
  100% {
    transform: rotate(-1.2deg);
  }
  50% {
    transform: rotate(1.2deg);
  }
}

@media (max-width: 860px) {
  .hero {
    grid-template-columns: 1fr;
    min-height: auto;
    padding-top: 2rem;
  }

  .hero-visual {
    order: -1;
    min-height: 38vh;
    border-left: 0;
    border-bottom: 1px solid var(--line);
  }

  .brand {
    font-size: clamp(3rem, 16vw, 4.5rem);
  }
}

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