:root {
  --paper: #f4efe3;
  --ink: #111111;
  --canvas: #050505;
  --panel: rgba(10, 10, 10, 0.96);
  --panel-soft: rgba(255, 255, 255, 0.03);
  --line: rgba(255, 255, 255, 0.16);
  --line-dark: rgba(17, 17, 17, 0.12);
  --purple: #7048ff;
  --pink: #ff3f8e;
  --cyan: #25b7ff;
  --yellow: #f5d200;
  --green: #60e57d;
  --white: #ffffff;
  --muted: rgba(255, 255, 255, 0.72);
  --shadow: 0 20px 48px rgba(0, 0, 0, 0.22);
  --font-pixel: "Silkscreen", monospace;
  --font-mono: "IBM Plex Mono", monospace;
}

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

html {
  scroll-behavior: smooth;
  scrollbar-gutter: stable;
}

body {
  margin: 0;
  font-family: var(--font-mono);
  background:
    radial-gradient(circle at top left, rgba(112, 72, 255, 0.08), transparent 26%),
    radial-gradient(circle at top right, rgba(37, 183, 255, 0.07), transparent 20%),
    var(--canvas);
  color: var(--white);
  overflow-x: hidden;
}

body.nav-open {
  overflow: hidden;
}

main {
  opacity: 0;
  transform: translateY(10px);
  transition: opacity 380ms ease, transform 380ms ease;
}

body.is-ready main {
  opacity: 1;
  transform: translateY(0);
}

body::before {
  content: "";
  position: fixed;
  inset: 0;
  pointer-events: none;
  background:
    linear-gradient(rgba(255, 255, 255, 0.03) 1px, transparent 1px),
    linear-gradient(90deg, rgba(255, 255, 255, 0.03) 1px, transparent 1px);
  background-size: 24px 24px;
  opacity: 0.18;
  mask-image: linear-gradient(to bottom, transparent, black 20%, black 80%, transparent);
}

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

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

.skip-link {
  position: fixed;
  top: 14px;
  left: 18px;
  z-index: 70;
  padding: 12px 14px;
  border: 2px solid #121212;
  background: var(--purple);
  color: #ffffff;
  font-size: 14px;
  font-weight: 700;
  letter-spacing: 0.06em;
  text-transform: uppercase;
  transform: translateY(-160%);
  transition: transform 150ms ease;
}

.skip-link:focus-visible {
  transform: translateY(0);
}

a:focus-visible,
button:focus-visible {
  outline: 3px solid var(--purple);
  outline-offset: 4px;
}

code,
pre {
  font-family: var(--font-mono);
}

.site-header {
  position: fixed;
  inset: 0 0 auto 0;
  z-index: 30;
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 24px;
  padding: 22px 28px 0;
  pointer-events: none;
}

.site-header > * {
  pointer-events: auto;
}

.site-header::after {
  content: "";
  position: absolute;
  inset: 10px 18px auto;
  height: 58px;
  border-radius: 4px;
  border: 1px solid transparent;
  background: transparent;
  opacity: 0;
  transform: translateY(-8px);
  transition: opacity 180ms ease, transform 180ms ease, background 180ms ease, border-color 180ms ease;
  pointer-events: none;
}

.brand-chip {
  display: inline-flex;
  align-items: center;
  gap: 10px;
  max-width: calc(100vw - 120px);
  padding: 10px 14px;
  border: 2px solid #121212;
  border-radius: 4px;
  background: rgba(8, 8, 8, 0.96);
  color: #f3efe6;
  box-shadow: 6px 6px 0 rgba(0, 0, 0, 0.28);
  font-size: 13px;
  font-weight: 500;
  letter-spacing: 0.02em;
  white-space: nowrap;
}

.brand-chip strong {
  color: var(--purple);
}

.brand-chip__icon {
  display: inline-flex;
  width: 18px;
  height: 18px;
  align-items: center;
  justify-content: center;
  font-family: var(--font-pixel);
  font-size: 11px;
  background: #f3efe6;
  color: #101010;
  flex-shrink: 0;
}

.site-nav {
  display: flex;
  align-items: center;
  gap: 26px;
  color: #151515;
  font-size: 14px;
  font-weight: 600;
  letter-spacing: 0.1em;
  text-transform: uppercase;
  padding: 12px 18px;
  border: 1px solid var(--line-dark);
  border-radius: 4px;
  background: rgba(244, 239, 227, 0.72);
  backdrop-filter: blur(14px);
  box-shadow: 0 12px 32px rgba(0, 0, 0, 0.08);
}

.site-header.is-dark .site-nav,
.site-header.is-dark .menu-toggle {
  color: #f3efe6;
}

.site-header.is-dark::after,
.site-header.is-menu-open::after {
  opacity: 1;
  transform: translateY(0);
  border-color: rgba(255, 255, 255, 0.12);
  background: rgba(7, 7, 7, 0.76);
  backdrop-filter: blur(14px);
}

.site-header.is-dark .site-nav {
  border-color: rgba(255, 255, 255, 0.12);
  background: rgba(7, 7, 7, 0.74);
  box-shadow: 0 18px 36px rgba(0, 0, 0, 0.22);
}

.site-nav a {
  position: relative;
}

.site-nav a.is-active {
  color: var(--ink);
}

.site-nav a::after {
  content: "";
  position: absolute;
  left: 0;
  bottom: -6px;
  width: 100%;
  height: 2px;
  transform: scaleX(0);
  transform-origin: left;
  background: currentColor;
  transition: transform 140ms ease;
}

.site-nav a:hover::after,
.site-nav a.is-active::after {
  transform: scaleX(1);
}

.menu-toggle {
  display: none;
  width: 44px;
  height: 44px;
  border: 0;
  border-radius: 4px;
  padding: 0;
  background: transparent;
  color: #111111;
  transition: background 160ms ease, color 160ms ease, border-color 160ms ease;
}

.menu-toggle span {
  display: block;
  width: 28px;
  height: 3px;
  margin: 5px auto;
  background: currentColor;
}

.site-header.is-menu-open .menu-toggle {
  color: #f3efe6;
}

.hero {
  position: relative;
  display: grid;
  grid-template-columns: minmax(0, 1fr) minmax(260px, 420px);
  gap: 52px;
  align-items: center;
  min-height: 78vh;
  padding: 118px 44px 52px;
  color: var(--ink);
  background:
    radial-gradient(circle at 18% 24%, rgba(255, 255, 255, 0.7), transparent 28%),
    radial-gradient(circle at 83% 16%, rgba(112, 72, 255, 0.12), transparent 24%),
    radial-gradient(circle at 82% 58%, rgba(37, 183, 255, 0.08), transparent 24%),
    var(--paper);
  overflow: hidden;
}

.hero--inner {
  min-height: 68vh;
}

.hero::before {
  content: "";
  position: absolute;
  inset: auto auto 28px 44px;
  width: min(220px, 42vw);
  height: 12px;
  background:
    linear-gradient(90deg, var(--purple), transparent 60%),
    linear-gradient(90deg, transparent, var(--cyan));
  opacity: 0.5;
}

.hero--home {
  min-height: 86vh;
}

.hero-copy {
  max-width: 800px;
}

.hero-credit {
  margin: 0 0 26px;
  font-size: clamp(24px, 3vw, 42px);
  font-weight: 700;
  line-height: 1.1;
}

.hero-credit a {
  color: var(--purple);
  text-decoration: underline;
  text-decoration-thickness: 4px;
  text-underline-offset: 14px;
}

.wordmark {
  margin: 0 0 28px;
  font-family: var(--font-pixel);
  font-size: clamp(58px, 9vw, 122px);
  line-height: 0.98;
}

.page-title {
  margin: 0 0 20px;
  max-width: 760px;
  font-family: var(--font-pixel);
  font-size: clamp(28px, 4.2vw, 60px);
  line-height: 1.18;
}

.hero-lede,
.page-lede {
  max-width: 760px;
  margin: 0 0 34px;
  font-size: clamp(18px, 2vw, 28px);
  line-height: 1.45;
}

.page-lede {
  max-width: 720px;
}

.eyebrow {
  display: inline-flex;
  align-items: center;
  gap: 10px;
  margin: 0 0 18px;
  color: var(--purple);
  font-size: 15px;
  font-weight: 700;
  letter-spacing: 0.1em;
  text-transform: uppercase;
}

.inline-icon {
  width: 18px;
  height: 18px;
}

.ink-pink {
  color: var(--pink);
}

.ink-cyan {
  color: var(--cyan);
}

.ink-purple {
  color: var(--purple);
}

.hero-actions {
  display: flex;
  align-items: center;
  gap: 18px;
  flex-wrap: wrap;
}

.signal-row {
  display: flex;
  flex-wrap: wrap;
  gap: 12px;
  margin: 0 0 24px;
}

.signal-row--hero {
  margin-bottom: 28px;
}

.signal-pill {
  display: inline-flex;
  align-items: center;
  gap: 10px;
  min-height: 40px;
  padding: 0 14px;
  border: 1px solid rgba(17, 17, 17, 0.16);
  border-radius: 4px;
  background: rgba(255, 255, 255, 0.62);
  color: #111111;
  font-size: 13px;
  font-weight: 600;
  letter-spacing: 0.03em;
}

.cta-button {
  position: relative;
  overflow: hidden;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  min-height: 56px;
  padding: 0 26px;
  border: 2px solid #121212;
  border-radius: 4px;
  background: var(--purple);
  color: #ffffff;
  box-shadow: 6px 6px 0 #121212;
  font-size: 17px;
  font-weight: 700;
  letter-spacing: 0.08em;
  text-transform: uppercase;
  transition: transform 140ms ease, box-shadow 140ms ease, background 140ms ease;
}

.cta-button:hover {
  transform: translate(4px, 4px);
  box-shadow: 2px 2px 0 #121212;
  background: #5b31ff;
}

.cta-button::before {
  content: "";
  position: absolute;
  inset: 0;
  background: linear-gradient(115deg, transparent 18%, rgba(255, 255, 255, 0.22) 46%, transparent 72%);
  transform: translateX(-130%);
}

.cta-button:hover::before {
  animation: button-sheen 700ms ease;
}

.text-link,
.inline-link {
  text-decoration: underline;
  text-underline-offset: 5px;
}

.text-link {
  font-size: 16px;
  font-weight: 600;
}

.hero-art {
  position: relative;
  min-height: 360px;
}

.hero-art--home {
  padding-right: 18px;
}

.terminal-card,
.floating-card {
  position: absolute;
  width: min(100%, 390px);
  background: #0a0a0a;
  border-radius: 4px;
  border: 2px solid rgba(17, 17, 17, 0.9);
  color: #f4efe3;
  box-shadow: var(--shadow);
}

.hero-art--home .terminal-card {
  top: 42px;
  right: 18px;
  transform: rotate(3deg);
  animation: float-card 5.8s ease-in-out infinite;
}

.terminal-card__head {
  display: flex;
  justify-content: space-between;
  align-items: center;
  padding: 14px 18px;
  border-bottom: 1px solid var(--line);
  color: var(--green);
  font-size: 15px;
  font-weight: 600;
}

.terminal-card__body {
  padding: 18px;
  font-size: 14px;
  line-height: 1.75;
}

.terminal-card__body span {
  color: var(--green);
}

.terminal-card__cmd {
  margin-top: 10px;
  color: var(--cyan);
}

.sticky-note {
  position: absolute;
  right: 8px;
  bottom: 22px;
  width: 184px;
  padding: 40px 18px 18px;
  background: var(--yellow);
  color: var(--ink);
  box-shadow: 0 24px 38px rgba(0, 0, 0, 0.24);
  transform: rotate(2deg);
  animation: bob-note 4.8s ease-in-out infinite;
}

.sticky-note__tape {
  position: absolute;
  top: -16px;
  left: 28px;
  width: 82px;
  height: 22px;
  background: var(--pink);
  transform: rotate(-6deg);
}

.sticky-note p {
  margin: 0;
  font-family: var(--font-pixel);
  font-size: 14px;
  line-height: 1.7;
}

.hero-art--inner .floating-card {
  top: 52px;
  right: 28px;
  padding: 22px;
  transform: rotate(2deg);
  animation: float-card-inner 5.8s ease-in-out infinite;
}

.hero-art--support {
  display: flex;
  align-items: center;
  justify-content: flex-end;
}

.support-card-stack {
  position: absolute;
  top: 44px;
  right: 0;
  display: grid;
  gap: 16px;
  width: min(344px, calc(100% - 12px));
}

.support-card {
  padding: 20px 22px;
  border: 1px solid var(--line);
  border-radius: 4px;
  background: rgba(10, 10, 10, 0.96);
  color: #f4efe3;
  box-shadow: var(--shadow);
  transform: rotate(-1.8deg);
}

.support-card--primary {
  margin-left: 32px;
  border-color: rgba(112, 72, 255, 0.34);
  transform: rotate(2deg);
}

.support-card p {
  margin: 0;
  line-height: 1.75;
}

.floating-card p {
  margin: 10px 0 0;
  font-size: 15px;
  line-height: 1.7;
}

.dither-band {
  height: 118px;
  background:
    linear-gradient(to bottom, transparent 0%, transparent 14%, #050505 100%),
    radial-gradient(circle, #050505 1.25px, transparent 1.4px);
  background-size: auto, 7px 7px;
}

.page-band {
  padding: 20px 32px 40px;
}

.mini-grid {
  display: grid;
  grid-template-columns: 1.1fr 0.9fr;
  gap: 18px;
  margin-top: 18px;
}

.section-heading {
  max-width: 760px;
  margin-bottom: 28px;
}

.section-heading h2 {
  margin: 0 0 14px;
  font-family: var(--font-pixel);
  font-size: clamp(24px, 3vw, 42px);
  line-height: 1.24;
}

.section-heading p {
  margin: 0;
  color: var(--muted);
  font-size: 17px;
  line-height: 1.7;
}

.overview-grid,
.feature-grid,
.dev-grid,
.support-grid {
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  gap: 18px;
}

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

.page-card,
.artifact-panel,
.step-card,
.wide-panel {
  position: relative;
  background: var(--panel);
  border: 1px solid var(--line);
  border-radius: 4px;
  box-shadow: 0 20px 44px rgba(0, 0, 0, 0.18);
  transition: transform 180ms ease, border-color 180ms ease, box-shadow 180ms ease;
}

.page-card::after,
.artifact-panel::after,
.step-card::after {
  content: "";
  position: absolute;
  right: 14px;
  bottom: 14px;
  width: 18px;
  height: 18px;
  background:
    linear-gradient(var(--purple), var(--purple)) 0 100% / 6px 6px no-repeat,
    linear-gradient(var(--purple), var(--purple)) 6px 50% / 6px 6px no-repeat,
    linear-gradient(var(--purple), var(--purple)) 12px 0 / 6px 6px no-repeat;
}

.page-card,
.step-card {
  padding: 24px;
}

.page-card:hover,
.artifact-panel:hover,
.step-card:hover,
.wide-panel:hover {
  transform: translateY(-6px);
  border-color: rgba(255, 255, 255, 0.24);
  box-shadow: 0 28px 50px rgba(0, 0, 0, 0.22);
}

.page-card h3,
.artifact-panel h3,
.step-card h3 {
  margin: 0 0 14px;
  font-size: clamp(22px, 2.2vw, 30px);
  line-height: 1.2;
}

.page-card p,
.artifact-panel p,
.step-card p {
  margin: 0;
  color: var(--muted);
  line-height: 1.75;
}

.card-icon {
  display: inline-flex;
  width: 52px;
  height: 52px;
  align-items: center;
  justify-content: center;
  margin-bottom: 18px;
  border: 1px solid rgba(255, 255, 255, 0.18);
  border-radius: 4px;
  background: var(--panel-soft);
  transition: transform 180ms ease, border-color 180ms ease, background 180ms ease;
}

.card-icon svg {
  width: 26px;
  height: 26px;
}

.page-card:hover .card-icon,
.step-card:hover .card-icon {
  transform: translateY(-2px);
  border-color: rgba(255, 255, 255, 0.24);
  background: rgba(255, 255, 255, 0.06);
}

.split-panels {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 18px;
  margin-top: 18px;
}

.artifact-panel {
  padding: 22px;
}

.panel-label {
  margin: 0 0 12px;
  color: var(--yellow);
  font-size: 14px;
  font-weight: 700;
  letter-spacing: 0.08em;
  text-transform: uppercase;
}

.clean-list {
  margin: 0;
  padding-left: 18px;
}

.clean-list li {
  margin-bottom: 10px;
  line-height: 1.7;
  color: var(--muted);
}

.clean-list code {
  color: #ffffff;
  font-weight: 700;
}

.route-list {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 12px;
  margin-top: 10px;
}

.route-list a {
  display: block;
  padding: 14px 16px;
  border: 1px solid var(--line);
  border-radius: 4px;
  background: var(--panel-soft);
  transition: transform 160ms ease, border-color 160ms ease, background 160ms ease;
}

.route-list a:hover {
  transform: translateY(-2px);
  border-color: rgba(255, 255, 255, 0.24);
  background: rgba(255, 255, 255, 0.06);
}

.cta-strip,
.wide-panel {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 28px;
  margin-top: 18px;
  padding: 28px;
}

.cta-strip h2,
.wide-panel h2 {
  margin: 0 0 10px;
  font-family: var(--font-pixel);
  font-size: clamp(22px, 3vw, 36px);
  line-height: 1.3;
}

.cta-strip p,
.wide-panel p {
  margin: 0;
  color: var(--muted);
  line-height: 1.7;
}

.step-flow {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 18px;
}

.step-card {
  min-height: 280px;
}

.step-card__number {
  display: inline-block;
  margin-bottom: 16px;
  color: var(--purple);
  font-size: 15px;
  font-weight: 700;
  letter-spacing: 0.08em;
}

.telegram-stack {
  display: grid;
  gap: 12px;
  margin-top: 12px;
}

.telegram-bubble {
  display: grid;
  gap: 6px;
  max-width: 360px;
  padding: 14px 16px;
  border-radius: 18px 18px 18px 8px;
  background: rgba(255, 255, 255, 0.07);
  color: #ffffff;
}

.telegram-bubble strong {
  color: #ffffff;
}

.telegram-bubble span {
  color: var(--muted);
  line-height: 1.65;
}

.telegram-bubble--light {
  justify-self: end;
  border-radius: 18px 18px 8px 18px;
  background: #eff2f6;
  color: #121212;
}

.telegram-bubble--light span {
  color: #444444;
}

.command-cluster {
  display: flex;
  flex-wrap: wrap;
  gap: 10px;
  margin-top: 12px;
}

.command-cluster span {
  padding: 10px 14px;
  border: 1px solid rgba(255, 255, 255, 0.16);
  border-radius: 4px;
  background: rgba(255, 255, 255, 0.05);
  color: #ffffff;
  font-size: 14px;
}

.timeline-rail {
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  gap: 18px;
  margin-top: 18px;
}

.timeline-stop {
  position: relative;
  padding: 22px 22px 24px;
  border: 1px solid var(--line);
  border-radius: 4px;
  background: var(--panel);
}

.timeline-stop__dot {
  display: inline-flex;
  width: 14px;
  height: 14px;
  margin-bottom: 14px;
  background: var(--yellow);
  box-shadow: 0 0 0 6px rgba(245, 210, 0, 0.12);
}

.timeline-stop h3 {
  margin: 0 0 10px;
  font-size: 26px;
}

.timeline-stop p {
  margin: 0;
  color: var(--muted);
  line-height: 1.7;
}

.architecture-rail {
  display: grid;
  grid-template-columns: repeat(4, minmax(0, 1fr));
  gap: 14px;
  margin-top: 18px;
}

.architecture-node {
  padding: 18px 16px;
  border: 1px solid rgba(255, 63, 142, 0.42);
  border-radius: 4px;
  background: rgba(255, 255, 255, 0.03);
  color: #ffffff;
  text-align: center;
  font-weight: 600;
}

.faq-topgrid {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 18px;
  margin-bottom: 18px;
}

.faq-list {
  display: grid;
  gap: 16px;
}

.faq-item {
  border: 1px solid var(--line);
  border-radius: 4px;
  background: var(--panel);
  transition: border-color 160ms ease, transform 160ms ease;
}

.faq-question {
  display: flex;
  align-items: center;
  justify-content: space-between;
  width: 100%;
  padding: 22px 24px;
  border: 0;
  background: transparent;
  color: #ffffff;
  text-align: left;
  font: inherit;
  font-size: 19px;
  font-weight: 600;
  cursor: pointer;
  transition: background 160ms ease;
}

.faq-marker {
  color: var(--yellow);
  font-size: 24px;
  transition: transform 180ms ease;
}

.faq-answer {
  display: grid;
  grid-template-rows: 0fr;
  overflow: hidden;
  transition: grid-template-rows 220ms ease;
}

.faq-answer > div {
  min-height: 0;
  overflow: hidden;
}

.faq-answer__inner {
  padding: 0 24px 0;
  opacity: 0;
  transform: translateY(-4px);
  transition: opacity 180ms ease, transform 180ms ease;
}

.faq-item.is-open .faq-answer {
  grid-template-rows: 1fr;
}

.faq-item.is-open .faq-answer__inner {
  padding-bottom: 24px;
  opacity: 1;
  transform: translateY(0);
}

.faq-item.is-open .faq-marker {
  transform: rotate(45deg);
}

.faq-question:hover {
  background: rgba(255, 255, 255, 0.03);
}

.faq-item:hover {
  transform: translateY(-2px);
  border-color: rgba(255, 255, 255, 0.22);
}

.faq-answer p {
  margin: 0;
  color: var(--muted);
  line-height: 1.8;
}

.support-strip {
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  gap: 18px;
  margin-top: 18px;
}

.support-lane {
  padding: 22px;
  border: 1px solid var(--line);
  border-radius: 4px;
  background: var(--panel);
}

.support-lane h3 {
  margin: 0 0 10px;
  font-size: 26px;
}

.support-lane p {
  margin: 0;
  color: var(--muted);
  line-height: 1.75;
}

.site-footer {
  display: flex;
  justify-content: space-between;
  gap: 16px;
  max-width: 1320px;
  margin: 0 auto;
  padding: 0 32px 32px;
  color: rgba(255, 255, 255, 0.68);
  font-size: 14px;
}

.site-footer a {
  color: #ffffff;
  text-decoration: underline;
  text-underline-offset: 4px;
}

.reveal {
  opacity: 0;
  transform: translateY(18px);
  transition: opacity 420ms ease, transform 420ms ease;
  transition-delay: var(--reveal-delay, 0ms);
}

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

@media (prefers-reduced-motion: reduce) {
  .cta-button,
  .site-nav a::after,
  .reveal,
  .page-card,
  .artifact-panel,
  .step-card,
  .wide-panel,
  .card-icon,
  .route-list a,
  .faq-marker,
  .faq-answer,
  .faq-answer__inner,
  .support-card,
  .skip-link {
    transition: none;
  }

  main {
    transition: none;
  }

  .reveal {
    opacity: 1;
    transform: none;
  }

  .hero-art--home .terminal-card,
  .hero-art--inner .floating-card,
  .sticky-note,
  .support-card,
  .support-card--primary {
    animation: none;
    transform: none;
  }
}

@media (max-width: 1180px) {
  .hero {
    grid-template-columns: 1fr;
  }

  .hero-art {
    min-height: 320px;
  }

  .hero-art--home .terminal-card,
  .hero-art--inner .floating-card {
    left: 0;
    right: auto;
  }

  .support-card-stack {
    left: 0;
    right: auto;
  }

  .sticky-note {
    right: 10px;
  }

  .overview-grid,
  .feature-grid,
  .dev-grid,
  .support-grid,
  .step-flow,
  .split-panels,
  .timeline-rail,
  .architecture-rail,
  .faq-topgrid,
  .mini-grid,
  .support-strip {
    grid-template-columns: repeat(2, minmax(0, 1fr));
  }
}

@media (max-width: 760px) {
  .site-header {
    align-items: flex-start;
    padding: 18px 18px 0;
  }

  .site-header::after {
    inset: 8px 12px auto;
    height: 54px;
  }

  .site-nav {
    position: absolute;
    top: 62px;
    right: 18px;
    left: 18px;
    display: none;
    flex-direction: column;
    align-items: flex-start;
    gap: 18px;
    padding: 18px 18px 20px;
    border: 1px solid rgba(255, 255, 255, 0.12);
    border-radius: 4px;
    background:
      linear-gradient(180deg, rgba(13, 13, 13, 0.98), rgba(7, 7, 7, 0.98)),
      rgba(7, 7, 7, 0.98);
    box-shadow: 0 26px 46px rgba(0, 0, 0, 0.34);
    color: #f3efe6;
    backdrop-filter: blur(12px);
    max-height: calc(100vh - 96px);
    overflow-y: auto;
  }

  .site-header.is-dark .site-nav {
    background: rgba(7, 7, 7, 0.92);
  }

  .site-nav.is-open {
    display: flex;
  }

  .menu-toggle {
    display: block;
    border: 1px solid rgba(17, 17, 17, 0.14);
    background: rgba(244, 239, 227, 0.78);
    backdrop-filter: blur(10px);
  }

  .site-header.is-dark .menu-toggle,
  .site-header.is-menu-open .menu-toggle {
    border-color: rgba(255, 255, 255, 0.12);
    background: rgba(7, 7, 7, 0.84);
  }

  .hero {
    min-height: auto;
    padding: 118px 18px 34px;
    gap: 30px;
  }

  .hero::before {
    left: 18px;
    width: 140px;
  }

  .brand-chip {
    font-size: 11px;
  }

  .hero-credit {
    font-size: 18px;
  }

  .hero-credit a {
    text-underline-offset: 8px;
  }

  .wordmark {
    font-size: clamp(42px, 15vw, 72px);
  }

  .page-title {
    font-size: clamp(24px, 10vw, 42px);
  }

  .hero-lede,
  .page-lede {
    font-size: 17px;
  }

  .hero-actions,
  .cta-strip,
  .wide-panel {
    align-items: flex-start;
    flex-direction: column;
  }

  .hero-art {
    min-height: 280px;
  }

  .terminal-card,
  .floating-card {
    width: calc(100% - 8px);
  }

  .support-card-stack {
    position: relative;
    top: 0;
    width: 100%;
  }

  .support-card,
  .support-card--primary {
    margin-left: 0;
    transform: none;
  }

  .sticky-note {
    width: 148px;
    padding-top: 32px;
  }

  .sticky-note p {
    font-size: 12px;
  }

  .page-band {
    padding: 12px 14px 24px;
  }

  .overview-grid,
  .feature-grid,
  .dev-grid,
  .support-grid,
  .step-flow,
  .split-panels,
  .route-list,
  .timeline-rail,
  .architecture-rail,
  .faq-topgrid,
  .mini-grid,
  .support-strip {
    grid-template-columns: 1fr;
  }

  .page-card h3,
  .artifact-panel h3,
  .step-card h3 {
    font-size: 24px;
  }

  .site-footer {
    flex-direction: column;
    padding: 0 14px 24px;
    width: calc(100% - 28px);
  }
}

@keyframes float-card {
  0%,
  100% {
    transform: translateY(0) rotate(3deg);
  }
  50% {
    transform: translateY(-10px) rotate(2deg);
  }
}

@keyframes float-card-inner {
  0%,
  100% {
    transform: translateY(0) rotate(2deg);
  }
  50% {
    transform: translateY(-10px) rotate(1deg);
  }
}

@keyframes bob-note {
  0%,
  100% {
    transform: rotate(2deg) translateY(0);
  }
  50% {
    transform: rotate(0deg) translateY(-8px);
  }
}

@keyframes button-sheen {
  from {
    transform: translateX(-130%);
  }
  to {
    transform: translateX(130%);
  }
}
