/* ==========================================================================
   AGY.run Main Stylesheet (v1.0 Unified Ecosystem Edition)
   Minimalist 4-section layout (timo.guru) + Nebula/Pixel Swiss-grid skin (regemini.si)
   ========================================================================== */

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

html {
  scroll-behavior: smooth;
  scroll-padding-top: calc(var(--nav-h) + 20px);
  -webkit-text-size-adjust: 100%;
}

body {
  position: relative;
  min-height: 100vh;
  background-color: var(--bg-page);
  color: var(--ink-1);
  font-family: var(--font-sans);
  font-size: 15px;
  line-height: 1.65;
  overflow-x: hidden;
  -webkit-font-smoothing: antialiased;
}

/* Subtle vertical architectural frame rails (regemini.si / Linear style) */
body::before {
  content: "";
  position: fixed;
  top: 0;
  bottom: 0;
  left: 50%;
  width: min(100% - 20px, calc(var(--container-w) + 48px));
  transform: translateX(-50%);
  border-left: 1px solid var(--line-subtle);
  border-right: 1px solid var(--line-subtle);
  pointer-events: none;
  z-index: 1;
}

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

button,
input {
  font: inherit;
  color: inherit;
}

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

.container {
  position: relative;
  z-index: 2;
  width: min(100% - 40px, var(--container-w));
  margin-inline: auto;
}

/* ---------- Scroll Reveal ---------- */
.reveal {
  opacity: 0;
  transform: translateY(14px);
  transition: opacity 0.5s var(--ease-out), transform 0.5s var(--ease-out);
}

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

@media (prefers-reduced-motion: reduce) {
  .reveal {
    opacity: 1;
    transform: none;
    transition: none;
  }
}

/* ---------- Cursor-Tracking Spotlight Surface ---------- */
.spotlight-card {
  position: relative;
  isolation: isolate;
}

.spotlight-card::after {
  content: "";
  position: absolute;
  inset: 0;
  border-radius: inherit;
  pointer-events: none;
  opacity: 0;
  background: radial-gradient(
    360px circle at var(--mx, 50%) var(--my, 0%),
    var(--spotlight-fill),
    transparent 70%
  );
  transition: opacity 0.25s ease;
  z-index: -1;
}

.spotlight-card:hover::after {
  opacity: 1;
}

/* ---------- Top Notice Banner ---------- */
.top-notice {
  position: relative;
  z-index: 45;
  display: none;
  align-items: center;
  justify-content: center;
  gap: 10px;
  padding: 8px 16px;
  font-size: 12.5px;
  font-weight: 500;
  background: linear-gradient(90deg, #5636eb, #7c5cfa, #0ea5e9);
  color: #ffffff;
  text-align: center;
}

.top-notice.is-visible {
  display: flex;
}

.top-notice__close {
  background: rgba(255, 255, 255, 0.16);
  border: 0;
  color: #ffffff;
  border-radius: 6px;
  padding: 1px 7px;
  font-size: 12px;
  cursor: pointer;
}

/* ---------- Sticky Glass Navbar + Mobile Drawer ---------- */
.navbar {
  position: sticky;
  top: 0;
  z-index: 40;
  height: var(--nav-h);
  background: var(--bg-header);
  backdrop-filter: blur(18px) saturate(1.75);
  -webkit-backdrop-filter: blur(18px) saturate(1.75);
  border-bottom: 1px solid var(--line-subtle);
}

.navbar.is-scrolled {
  background: var(--bg-header-solid);
  border-bottom-color: var(--line-card);
}

.navbar__inner {
  height: 100%;
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 16px;
}

.brand {
  display: inline-flex;
  align-items: center;
  gap: 10px;
  font-weight: 800;
  font-size: 17px;
  letter-spacing: -0.02em;
}

.brand__mark {
  width: 32px;
  height: 32px;
  border-radius: 9px;
  display: grid;
  place-items: center;
  background: linear-gradient(135deg, var(--brand-strong), #8b5cf6 58%, var(--cyan));
  color: #ffffff;
  box-shadow: 0 6px 18px rgba(107, 78, 248, 0.42), inset 0 1px 0 rgba(255, 255, 255, 0.35);
  flex-shrink: 0;
}

.brand__tld {
  color: var(--brand);
  font-weight: 700;
}

.live-chip {
  display: inline-flex;
  align-items: center;
  gap: 6px;
  padding: 3px 10px;
  border-radius: var(--radius-pill);
  background: var(--bg-pill);
  border: 1px solid var(--line-card);
  font-size: 11.5px;
  font-weight: 600;
  color: var(--ink-2);
  margin-left: 4px;
}

.live-dot {
  width: 7px;
  height: 7px;
  border-radius: 50%;
  background: var(--emerald);
  box-shadow: 0 0 0 3px var(--emerald-soft);
  animation: pulseDot 2.2s ease-in-out infinite;
}

.live-dot.is-standby {
  background: var(--amber);
  box-shadow: 0 0 0 3px var(--amber-soft);
}

@keyframes pulseDot {
  0%, 100% { opacity: 1; transform: scale(1); }
  50% { opacity: 0.55; transform: scale(0.86); }
}

.nav-links {
  display: flex;
  align-items: center;
  gap: 4px;
}

.nav-link {
  position: relative;
  padding: 7px 13px;
  border-radius: var(--radius-sm);
  font-size: 13.8px;
  font-weight: 500;
  color: var(--ink-2);
  transition: color 0.16s ease, background-color 0.16s ease;
}

.nav-link:hover,
.nav-link.is-active {
  color: var(--ink-1);
  background: var(--brand-soft);
}

.nav-actions {
  display: flex;
  align-items: center;
  gap: 8px;
}

.icon-btn {
  height: 35px;
  padding: 0 10px;
  border-radius: var(--radius-sm);
  border: 1px solid var(--line-card);
  background: transparent;
  color: var(--ink-2);
  font-size: 12.5px;
  font-weight: 600;
  display: inline-flex;
  align-items: center;
  gap: 6px;
  cursor: pointer;
  transition: border-color 0.16s ease, color 0.16s ease, background-color 0.16s ease;
}

.icon-btn:hover {
  color: var(--ink-1);
  border-color: var(--line-strong);
  background: var(--brand-soft);
}

.mobile-menu-btn {
  display: none;
}

.mobile-drawer {
  display: none;
  position: absolute;
  top: var(--nav-h);
  left: 0;
  right: 0;
  z-index: 45;
  border-bottom: 1px solid var(--line-card);
  background: var(--bg-card-solid);
  box-shadow: var(--shadow-card);
  padding: 10px 20px 14px;
}

.mobile-drawer.is-open {
  display: flex;
  flex-direction: column;
  gap: 4px;
}

.mobile-drawer a {
  padding: 10px 12px;
  border-radius: var(--radius-sm);
  font-size: 14px;
  font-weight: 600;
  color: var(--ink-2);
}

.mobile-drawer a:hover {
  background: var(--brand-soft);
  color: var(--ink-1);
}

.kbd-hint {
  font-size: 10.5px;
  padding: 1px 5px;
  border-radius: 4px;
  background: var(--line-subtle);
  border: 1px solid var(--line-card);
  color: var(--ink-3);
  line-height: 1.3;
}

.btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 8px;
  border-radius: var(--radius-pill);
  font-weight: 600;
  cursor: pointer;
  border: 1px solid transparent;
  transition: transform 0.18s var(--ease-out), box-shadow 0.18s ease,
    background-color 0.18s ease, border-color 0.18s ease;
  white-space: nowrap;
}

.btn:active {
  transform: scale(0.98);
}

.btn--sm {
  height: 35px;
  padding: 0 15px;
  font-size: 13px;
  border-radius: var(--radius-sm);
}

.btn--lg {
  height: 48px;
  padding: 0 26px;
  font-size: 15px;
}

.btn--brand {
  background: linear-gradient(135deg, var(--brand-strong), #8465ff);
  color: var(--ink-on-brand);
  box-shadow: 0 8px 24px -6px rgba(107, 78, 248, 0.55), inset 0 1px 0 rgba(255, 255, 255, 0.25);
}

.btn--brand:hover {
  background: linear-gradient(135deg, var(--brand-hover), #9175ff);
  transform: translateY(-1px);
  box-shadow: 0 14px 30px -6px rgba(107, 78, 248, 0.68), inset 0 1px 0 rgba(255, 255, 255, 0.3);
}

.btn--ghost {
  background: var(--bg-card);
  border-color: var(--line-card);
  color: var(--ink-1);
  box-shadow: var(--specular-top);
  backdrop-filter: blur(10px);
}

.btn--ghost:hover {
  border-color: var(--line-strong);
  background: var(--bg-card-hover);
  transform: translateY(-1px);
}

/* ---------- Pixelated Mosaic Divider + Crosshair Markers ---------- */
.pixel-band-wrap {
  position: relative;
}

.pixel-band-wrap::before,
.pixel-band-wrap::after {
  content: "+";
  position: absolute;
  top: 50%;
  transform: translate(-50%, -52%);
  font-family: var(--font-mono);
  font-size: 13px;
  font-weight: 600;
  color: var(--ink-3);
  opacity: 0.55;
  pointer-events: none;
  z-index: 3;
}

.pixel-band-wrap::before {
  left: calc(50% - min(50% - 10px, (var(--container-w) + 48px) / 2));
}

.pixel-band-wrap::after {
  left: calc(50% + min(50% - 10px, (var(--container-w) + 48px) / 2));
}

.pixel-band {
  height: 32px;
  width: 100%;
  border-top: 1px solid var(--line-subtle);
  border-bottom: 1px solid var(--line-subtle);
  background-image:
    repeating-conic-gradient(var(--pixel-cell-a) 0% 25%, transparent 0% 50%),
    linear-gradient(90deg, transparent 5%, var(--pixel-cell-b) 50%, transparent 95%);
  background-size: 16px 16px, 100% 100%;
  mask-image: linear-gradient(90deg, transparent 0%, #000 18%, #000 82%, transparent 100%);
  -webkit-mask-image: linear-gradient(90deg, transparent 0%, #000 18%, #000 82%, transparent 100%);
}

/* ---------- Hero Section ---------- */
.hero {
  position: relative;
  padding: 66px 0 56px;
  overflow: hidden;
}

.hero__backdrop {
  position: absolute;
  inset: 0;
  pointer-events: none;
  background: var(--glow-hero);
}

.hero__grid {
  position: absolute;
  inset: 0;
  pointer-events: none;
  background-image:
    linear-gradient(to right, var(--grid-line) 1px, transparent 1px),
    linear-gradient(to bottom, var(--grid-line) 1px, transparent 1px);
  background-size: 32px 32px;
  mask-image: radial-gradient(ellipse 76% 64% at 50% 28%, #000 26%, transparent 80%);
  -webkit-mask-image: radial-gradient(ellipse 76% 64% at 50% 28%, #000 26%, transparent 80%);
}

.hero__dither {
  position: absolute;
  top: 18px;
  height: 460px;
  width: 210px;
  pointer-events: none;
  background-image:
    repeating-conic-gradient(var(--grid-dot) 0% 25%, transparent 0% 50%);
  background-size: 12px 12px;
  opacity: 0.55;
}

.hero__dither--left {
  left: 0;
  mask-image: radial-gradient(ellipse 95% 75% at 0% 35%, rgba(0, 0, 0, 0.8), transparent 72%);
  -webkit-mask-image: radial-gradient(ellipse 95% 75% at 0% 35%, rgba(0, 0, 0, 0.8), transparent 72%);
}

.hero__dither--right {
  right: 0;
  mask-image: radial-gradient(ellipse 95% 75% at 100% 35%, rgba(0, 0, 0, 0.8), transparent 72%);
  -webkit-mask-image: radial-gradient(ellipse 95% 75% at 100% 35%, rgba(0, 0, 0, 0.8), transparent 72%);
}

.hero__canvas {
  position: absolute;
  inset: 0;
  width: 100%;
  height: 100%;
  pointer-events: none;
}

.hero__content {
  position: relative;
  z-index: 2;
  text-align: center;
  max-width: 840px;
  margin-inline: auto;
}

.eyebrow-pill {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  padding: 6px 16px;
  border-radius: var(--radius-pill);
  background: var(--bg-pill);
  border: 1px solid var(--line-card);
  box-shadow: var(--specular-top);
  font-size: 12.5px;
  font-weight: 600;
  color: var(--ink-2);
  margin-bottom: 22px;
  backdrop-filter: blur(10px);
}

.eyebrow-pill strong {
  color: var(--brand);
}

.hero__title {
  font-size: clamp(34px, 5.4vw, 60px);
  font-weight: 800;
  line-height: 1.14;
  letter-spacing: -0.03em;
  margin-bottom: 18px;
}

.gradient-text {
  background: linear-gradient(120deg, var(--brand) 0%, var(--cyan) 50%, var(--pink) 96%);
  -webkit-background-clip: text;
  background-clip: text;
  color: transparent;
}

.hero__subtitle {
  font-size: clamp(15.5px, 2vw, 18px);
  color: var(--ink-2);
  max-width: 760px;
  margin: 0 auto 28px;
  line-height: 1.7;
  text-wrap: balance;
}

.hero__ctas {
  display: flex;
  align-items: center;
  justify-content: center;
  flex-wrap: wrap;
  gap: 12px;
  margin-bottom: 14px;
}

.hero__os-hint {
  font-size: 12.5px;
  color: var(--ink-3);
}

/* ---------- Interactive 3-Tab Product Showcase Window ---------- */
.showcase {
  position: relative;
  z-index: 2;
  max-width: 940px;
  margin: 36px auto 0;
}

.showcase__tabs {
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  gap: 8px;
  margin-bottom: 10px;
}

.showcase-tab {
  position: relative;
  overflow: hidden;
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 8px;
  padding: 10px 14px;
  border-radius: 11px;
  background: var(--bg-card);
  border: 1px solid var(--line-card);
  box-shadow: var(--specular-top);
  font-size: 13px;
  font-weight: 600;
  color: var(--ink-2);
  cursor: pointer;
  transition: border-color 0.18s ease, color 0.18s ease;
}

.showcase-tab:hover {
  color: var(--ink-1);
}

.showcase-tab.is-active {
  color: var(--ink-1);
  border-color: var(--line-strong);
  background: var(--bg-card-hover);
}

.showcase-tab__bar {
  position: absolute;
  left: 0;
  bottom: 0;
  height: 2px;
  width: 0%;
  background: linear-gradient(90deg, var(--brand), var(--cyan));
}

.showcase-tab.is-active .showcase-tab__bar {
  animation: tabProgress 5.5s linear forwards;
}

.showcase.is-paused .showcase-tab.is-active .showcase-tab__bar {
  width: 100%;
  animation: none;
}

@keyframes tabProgress {
  from { width: 0%; }
  to { width: 100%; }
}

.showcase__window {
  border-radius: 16px;
  background: var(--bg-window);
  color: #e4e8ff;
  box-shadow: var(--shadow-window);
  overflow: hidden;
  text-align: left;
}

.win-titlebar {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 12px;
  padding: 10px 16px;
  background: var(--bg-window-bar);
  border-bottom: 1px solid rgba(148, 163, 218, 0.12);
  font-size: 12px;
  font-family: var(--font-mono);
  color: #949dc2;
}

.win-dots {
  display: flex;
  align-items: center;
  gap: 6px;
}

.win-dots span {
  width: 10px;
  height: 10px;
  border-radius: 50%;
}

.win-dots span:nth-child(1) { background: #ff5f56; }
.win-dots span:nth-child(2) { background: #ffbd2e; }
.win-dots span:nth-child(3) { background: #27c93f; }

.win-route {
  display: inline-block;
  max-width: calc(100% - 56px);
  overflow: hidden;
  text-overflow: ellipsis;
  white-space: nowrap;
  padding: 2px 9px;
  border-radius: var(--radius-pill);
  background: rgba(52, 211, 153, 0.12);
  color: #34d399;
  font-size: 11px;
  font-weight: 600;
}

.win-pane {
  display: none;
  min-height: 236px;
  animation: paneFade 0.22s ease;
}

.win-pane.is-active {
  display: grid;
}

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

/* Mockup 1: Antigravity IDE */
.mock-ide {
  grid-template-columns: 185px 1fr;
}

.mock-ide__side {
  padding: 14px 12px;
  border-right: 1px solid rgba(148, 163, 218, 0.1);
  background: rgba(255, 255, 255, 0.015);
  font-size: 12px;
  color: #8b94ba;
  font-family: var(--font-mono);
}

.mock-ide__side-head {
  font-size: 10.5px;
  letter-spacing: 0.08em;
  color: #5e668a;
  margin-bottom: 8px;
}

.mock-file {
  padding: 5px 8px;
  border-radius: 6px;
  margin-bottom: 3px;
  display: flex;
  align-items: center;
  justify-content: space-between;
}

.mock-file.is-sel {
  background: rgba(147, 120, 255, 0.16);
  color: #e4e8ff;
}

.mock-ide__main {
  padding: 16px 20px;
  display: flex;
  flex-direction: column;
  gap: 11px;
}

.mock-ide__bar {
  display: flex;
  align-items: center;
  justify-content: space-between;
  flex-wrap: wrap;
  gap: 8px;
}

.mock-model-pill {
  display: inline-flex;
  align-items: center;
  gap: 6px;
  padding: 3px 10px;
  border-radius: var(--radius-pill);
  background: rgba(147, 120, 255, 0.18);
  border: 1px solid rgba(155, 130, 255, 0.35);
  color: #cbbaff;
  font-size: 11.5px;
  font-weight: 600;
}

.mock-cost-pill {
  font-family: var(--font-mono);
  font-size: 11.5px;
  color: #38bdf8;
}

.mock-bubble {
  padding: 11px 14px;
  border-radius: 10px;
  background: rgba(255, 255, 255, 0.035);
  border: 1px solid rgba(148, 163, 218, 0.12);
  font-size: 12.8px;
  line-height: 1.6;
  color: #cfd5f2;
}

.mock-diff {
  font-family: var(--font-mono);
  font-size: 12px;
  padding: 9px 12px;
  border-radius: 8px;
  background: rgba(5, 8, 18, 0.7);
  border: 1px solid rgba(52, 211, 153, 0.22);
  color: #6ee7b7;
}

/* Mockup 2: agy CLI */
.mock-cli {
  padding: 18px 22px;
  font-family: var(--font-mono);
  font-size: 12.8px;
  line-height: 1.75;
  align-content: start;
}

.cli-prompt { color: #9b82ff; font-weight: 700; }
.cli-ok { color: #34d399; }
.cli-dim { color: #7882aa; }
.cli-hi { color: #38bdf8; }

.cli-caret {
  display: inline-block;
  width: 7px;
  height: 14px;
  vertical-align: -2px;
  background: #9b82ff;
  margin-left: 4px;
  animation: blinkCaret 1s steps(2) infinite;
}

@keyframes blinkCaret {
  0%, 49% { opacity: 1; }
  50%, 100% { opacity: 0; }
}

/* Mockup 3: AGY Desktop Client v1.0 */
.mock-client {
  grid-template-columns: 150px 1fr;
}

.mock-client__nav {
  padding: 10px 8px;
  background: #0e1122;
  border-right: 1px solid rgba(148, 163, 218, 0.1);
  display: flex;
  flex-direction: column;
  gap: 2px;
  font-size: 12px;
  color: #8f98bd;
}

.mock-client__nav span {
  padding: 5px 10px;
  border-radius: 6px;
}

.mock-client__nav span.is-sel {
  background: #254478;
  color: #ffffff;
  font-weight: 600;
}

.mock-client__body {
  padding: 16px 20px;
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 10px;
  align-content: start;
}

.mock-stat {
  padding: 11px 13px;
  border-radius: 9px;
  background: rgba(255, 255, 255, 0.035);
  border: 1px solid rgba(148, 163, 218, 0.11);
}

.mock-stat__k {
  font-size: 11px;
  color: #7c85ab;
  margin-bottom: 3px;
}

.mock-stat__v {
  font-family: var(--font-mono);
  font-size: 13px;
  font-weight: 700;
  color: #eef1ff;
}

/* ---------- Compact Live Model & Price Strip ---------- */
.model-strip {
  position: relative;
  z-index: 2;
  margin-top: 28px;
}

.model-strip__head {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 12px;
  margin-bottom: 10px;
  font-size: 12.5px;
  color: var(--ink-3);
}

.model-strip__link {
  color: var(--brand);
  font-weight: 600;
  cursor: pointer;
  background: none;
  border: 0;
  padding: 0;
}

.model-strip__link:hover {
  text-decoration: underline;
}

.model-strip__grid {
  display: grid;
  grid-template-columns: repeat(4, minmax(0, 1fr));
  gap: 12px;
}

.model-tile {
  background: var(--bg-card);
  border: 1px solid var(--line-card);
  border-radius: var(--radius-md);
  padding: 14px 16px;
  box-shadow: var(--specular-top), var(--shadow-card);
  backdrop-filter: blur(12px);
  transition: transform 0.2s var(--ease-out), border-color 0.2s ease;
}

.model-tile:hover {
  transform: translateY(-2px);
  border-color: var(--line-strong);
}

.model-tile__top {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 8px;
  margin-bottom: 8px;
}

.model-tile__name {
  font-size: 13.5px;
  font-weight: 700;
  color: var(--ink-1);
}

.model-tile__badge {
  font-size: 11px;
  font-weight: 600;
  padding: 1px 7px;
  border-radius: var(--radius-pill);
  background: var(--emerald-soft);
  color: var(--emerald);
  white-space: nowrap;
}

.model-tile__badge--cooldown {
  background: var(--amber-soft);
  color: var(--amber);
}

.model-tile__bars {
  display: grid;
  grid-template-columns: repeat(18, 1fr);
  gap: 2.5px;
  margin-bottom: 9px;
}

.model-tile__bars span {
  height: 7px;
  border-radius: 2px;
  background: var(--emerald);
  opacity: 0.78;
}

.model-tile__bars--cooldown span {
  background: var(--amber);
  opacity: 0.58;
}

.model-tile__bars span:nth-child(4n) {
  opacity: 0.96;
}

.model-tile__meta {
  display: flex;
  align-items: center;
  justify-content: space-between;
  font-size: 11.5px;
  color: var(--ink-3);
  font-family: var(--font-mono);
}

/* ---------- Section Common ---------- */
.section {
  padding: 74px 0;
}

.section--alt {
  background: var(--bg-page-alt);
}

.section-head {
  text-align: center;
  max-width: 680px;
  margin: 0 auto 42px;
  text-wrap: balance;
}

.section-head__tag {
  display: inline-block;
  font-size: 11.5px;
  font-weight: 700;
  letter-spacing: 0.12em;
  text-transform: uppercase;
  color: var(--brand);
  margin-bottom: 8px;
}

.section-head__title {
  font-size: clamp(24px, 3.2vw, 34px);
  font-weight: 800;
  letter-spacing: -0.02em;
  margin-bottom: 10px;
}

.section-head__desc {
  font-size: 14.5px;
  color: var(--ink-2);
}

/* ---------- 6-Grid Feature Cards ---------- */
.features-grid {
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  gap: 18px;
}

.feature-card {
  position: relative;
  background: var(--bg-card);
  border: 1px solid var(--line-card);
  border-radius: var(--radius-lg);
  padding: 26px 24px;
  box-shadow: var(--specular-top), var(--shadow-card);
  overflow: hidden;
  transition: transform 0.22s var(--ease-out), border-color 0.22s ease, box-shadow 0.22s ease;
}

.feature-card::before {
  content: "";
  position: absolute;
  top: 0;
  left: 18px;
  right: 18px;
  height: 2px;
  background: linear-gradient(90deg, transparent, var(--brand), var(--cyan), transparent);
  opacity: 0;
  transition: opacity 0.22s ease;
}

.feature-card:hover {
  transform: translateY(-4px);
  border-color: var(--line-strong);
  box-shadow: var(--specular-top), var(--shadow-hover);
}

.feature-card:hover::before {
  opacity: 1;
}

.feature-card__icon {
  width: 42px;
  height: 42px;
  border-radius: 11px;
  display: grid;
  place-items: center;
  background: var(--brand-soft);
  border: 1px solid var(--line-subtle);
  color: var(--brand);
  margin-bottom: 16px;
}

.feature-card__title {
  font-size: 16.5px;
  font-weight: 700;
  margin-bottom: 8px;
}

.feature-card__desc {
  font-size: 13.8px;
  color: var(--ink-2);
  line-height: 1.65;
}

/* ---------- Asymmetric Flagship Download Layout ---------- */
.download-showcase {
  display: grid;
  grid-template-columns: 1.55fr 1fr;
  gap: 20px;
  align-items: stretch;
}

.win-flagship {
  position: relative;
  display: flex;
  flex-direction: column;
  justify-content: space-between;
  background: var(--bg-card);
  border: 1px solid var(--brand);
  border-radius: var(--radius-lg);
  padding: 32px 32px 28px;
  box-shadow: 0 0 0 1px var(--brand-soft), var(--specular-top), var(--shadow-hover);
}

.win-flagship__head {
  display: flex;
  align-items: flex-start;
  justify-content: space-between;
  gap: 16px;
  margin-bottom: 18px;
}

.win-flagship__brand {
  display: flex;
  align-items: center;
  gap: 14px;
}

.win-flagship__icon {
  width: 54px;
  height: 54px;
  border-radius: 15px;
  display: grid;
  place-items: center;
  background: linear-gradient(135deg, var(--brand-strong), #8465ff);
  color: #ffffff;
  box-shadow: 0 10px 24px -6px rgba(107, 78, 248, 0.55);
  flex-shrink: 0;
}

.win-flagship__title {
  font-size: 23px;
  font-weight: 800;
  letter-spacing: -0.02em;
}

.win-flagship__meta {
  font-size: 13px;
  color: var(--ink-2);
  font-family: var(--font-mono);
  margin-top: 2px;
}

.os-ribbon {
  padding: 4px 11px;
  border-radius: var(--radius-pill);
  background: var(--emerald-soft);
  color: var(--emerald);
  font-size: 11.5px;
  font-weight: 700;
  white-space: nowrap;
}

.win-flagship__checks {
  list-style: none;
  display: flex;
  flex-direction: column;
  gap: 8px;
  margin-bottom: 20px;
  font-size: 13.8px;
  color: var(--ink-2);
}

.win-flagship__checks li {
  display: flex;
  align-items: center;
  gap: 8px;
}

.check-dot {
  color: var(--emerald);
  font-weight: 800;
}

.win-flagship__sha {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 10px;
  padding: 9px 13px;
  margin-bottom: 20px;
  border-radius: 9px;
  background: var(--bg-code);
  border: 1px solid rgba(148, 163, 218, 0.14);
  color: #cbd5f5;
  font-size: 12px;
}

.win-flagship__sha code {
  overflow: hidden;
  text-overflow: ellipsis;
  white-space: nowrap;
}

.win-flagship__actions {
  display: flex;
  align-items: center;
  flex-wrap: wrap;
  gap: 12px;
}

.win-flagship__actions .btn--brand {
  flex: 1 1 220px;
  height: 46px;
  border-radius: 12px;
  font-size: 14.5px;
}

.win-flagship__actions .btn--ghost {
  height: 46px;
  padding: 0 20px;
  border-radius: 12px;
  font-size: 13.5px;
}

.upcoming-stack {
  display: flex;
  flex-direction: column;
  gap: 16px;
}

.upcoming-card {
  flex: 1;
  display: flex;
  flex-direction: column;
  justify-content: space-between;
  padding: 22px 22px 20px;
  border-radius: var(--radius-lg);
  background: var(--bg-card);
  border: 1px solid var(--line-card);
  box-shadow: var(--specular-top), var(--shadow-card);
}

.upcoming-card__top {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 12px;
  margin-bottom: 10px;
}

.upcoming-card__id {
  display: flex;
  align-items: center;
  gap: 12px;
}

.upcoming-card__icon {
  width: 40px;
  height: 40px;
  border-radius: 11px;
  display: grid;
  place-items: center;
  background: var(--bg-page-alt);
  border: 1px solid var(--line-card);
  color: var(--ink-2);
}

.upcoming-card__name {
  font-size: 16.5px;
  font-weight: 800;
}

.upcoming-card__sub {
  font-size: 12px;
  color: var(--ink-3);
  font-family: var(--font-mono);
}

.soon-pill {
  padding: 3px 9px;
  border-radius: var(--radius-pill);
  background: var(--line-subtle);
  border: 1px solid var(--line-card);
  color: var(--ink-3);
  font-size: 11px;
  font-weight: 600;
  white-space: nowrap;
}

.upcoming-card__tags {
  display: flex;
  flex-wrap: wrap;
  gap: 6px;
  margin-bottom: 12px;
}

.os-tag {
  padding: 3px 9px;
  border-radius: 6px;
  background: var(--brand-soft);
  color: var(--ink-2);
  font-size: 11.5px;
  font-weight: 500;
}

.upcoming-card__note {
  font-size: 12.5px;
  color: var(--ink-3);
}

.copy-mini {
  flex-shrink: 0;
  border: 0;
  background: rgba(147, 120, 255, 0.2);
  color: #ddd4ff;
  padding: 3px 9px;
  border-radius: 5px;
  font-size: 11px;
  font-weight: 600;
  cursor: pointer;
}

.copy-mini:hover {
  background: rgba(147, 120, 255, 0.35);
}

/* ---------- Official Prerequisites Sub-Strip (IDE & agy CLI) ---------- */
.prereq-wrap {
  margin-top: 22px;
}

.prereq-divider {
  display: flex;
  align-items: center;
  gap: 12px;
  margin-bottom: 12px;
  font-size: 12px;
  font-weight: 600;
  color: var(--ink-3);
}

.prereq-divider::before,
.prereq-divider::after {
  content: "";
  flex: 1;
  height: 1px;
  background: var(--line-subtle);
}

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

.prereq-card {
  display: flex;
  flex-direction: column;
  justify-content: space-between;
  gap: 12px;
  padding: 20px 22px;
  border-radius: var(--radius-lg);
  background: var(--bg-card);
  border: 1px solid var(--line-card);
  box-shadow: var(--specular-top), var(--shadow-card);
}

.prereq-card__head {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 10px;
}

.prereq-card__title-group {
  display: flex;
  align-items: center;
  gap: 11px;
}

.prereq-card__icon {
  width: 36px;
  height: 36px;
  border-radius: 10px;
  display: grid;
  place-items: center;
  background: var(--cyan-soft);
  color: var(--cyan);
  flex-shrink: 0;
}

.prereq-card__name {
  font-size: 15px;
  font-weight: 700;
}

.prereq-card__badge {
  padding: 2px 8px;
  border-radius: var(--radius-pill);
  background: var(--cyan-soft);
  color: var(--cyan);
  font-size: 11px;
  font-weight: 600;
  white-space: nowrap;
}

.prereq-card__desc {
  font-size: 13px;
  color: var(--ink-2);
  line-height: 1.55;
}

.prereq-card__foot {
  display: flex;
  flex-direction: column;
  gap: 8px;
}

.prereq-link-btn {
  width: 100%;
  height: 38px;
  border-radius: 9px;
  font-size: 13px;
}

.prereq-card__cmd {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 8px;
  padding: 7px 11px;
  border-radius: var(--radius-sm);
  background: var(--bg-code);
  border: 1px solid rgba(148, 163, 218, 0.14);
  color: #cbd5f5;
  font-size: 12px;
}

.prereq-card__cmd code {
  overflow: hidden;
  text-overflow: ellipsis;
  white-space: nowrap;
}

.prereq-card__tip {
  font-size: 11.8px;
  color: var(--ink-3);
}

/* ---------- 4-Tier Compute Package Cards + Budget Simulator + Pricing Table ---------- */
.pkg-grid {
  display: grid;
  grid-template-columns: repeat(4, minmax(0, 1fr));
  gap: 16px;
  margin-bottom: 18px;
}

.pkg-card {
  position: relative;
  display: flex;
  flex-direction: column;
  padding: 22px 20px 18px;
  border-radius: var(--radius-lg);
  background: var(--bg-card);
  border: 1px solid var(--line-card);
  box-shadow: var(--specular-top), var(--shadow-card);
  cursor: pointer;
  user-select: none;
  transition: transform 0.2s var(--ease-out), border-color 0.2s ease, box-shadow 0.2s ease;
}

.pkg-card:hover {
  transform: translateY(-3px);
  border-color: var(--line-strong);
}

.pkg-card--featured {
  border-color: rgba(155, 130, 255, 0.44);
}

.pkg-card.is-selected {
  border-color: var(--brand);
  box-shadow: 0 0 0 1px var(--brand-soft), var(--specular-top), var(--shadow-hover);
}

.pkg-card__ribbon {
  position: absolute;
  top: -11px;
  left: 18px;
  padding: 2px 10px;
  border-radius: var(--radius-pill);
  background: linear-gradient(120deg, var(--brand-strong), #8b68ff);
  color: #ffffff;
  font-size: 11px;
  font-weight: 700;
  letter-spacing: 0.02em;
  box-shadow: 0 6px 14px rgba(107, 78, 248, 0.42);
}

.pkg-card__head {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 8px;
  margin-bottom: 10px;
}

.pkg-card__name {
  font-size: 15.5px;
  font-weight: 800;
  color: var(--ink-1);
}

.pkg-card__discount {
  padding: 2px 8px;
  border-radius: var(--radius-pill);
  background: var(--emerald-soft);
  color: var(--emerald);
  font-size: 11px;
  font-weight: 700;
  white-space: nowrap;
}

.pkg-card__price-row {
  display: flex;
  align-items: baseline;
  gap: 8px;
  margin-bottom: 6px;
}

.pkg-card__price {
  font-size: 28px;
  font-weight: 800;
  font-family: var(--font-mono);
  letter-spacing: -0.03em;
  color: var(--ink-1);
}

.pkg-card__orig {
  font-size: 12px;
  color: var(--ink-3);
  text-decoration: line-through;
}

.pkg-card__quota {
  display: inline-flex;
  align-items: center;
  gap: 4px;
  align-self: flex-start;
  padding: 3px 9px;
  border-radius: 7px;
  background: var(--brand-soft);
  color: var(--ink-1);
  font-size: 12.5px;
  margin-bottom: 6px;
}

.pkg-card__quota strong {
  color: var(--brand);
  font-family: var(--font-mono);
  font-weight: 800;
}

.pkg-card__unit {
  font-size: 11.8px;
  font-family: var(--font-mono);
  color: var(--cyan);
  margin-bottom: 12px;
}

.pkg-card__perks {
  list-style: none;
  display: flex;
  flex-direction: column;
  gap: 6px;
  font-size: 12.5px;
  color: var(--ink-2);
  margin-bottom: 14px;
  flex: 1;
}

.pkg-card__perks li {
  display: flex;
  align-items: flex-start;
  gap: 6px;
  line-height: 1.45;
}

.pkg-card__foot {
  padding-top: 10px;
  border-top: 1px solid var(--line-subtle);
  font-size: 11.8px;
  font-weight: 600;
  color: var(--ink-3);
  text-align: center;
}

.pkg-card.is-selected .pkg-card__foot {
  color: var(--brand);
}

.pkg-rate-col {
  color: var(--cyan);
  font-weight: 700;
}

.ch-dot {
  display: inline-block;
  width: 7px;
  height: 7px;
  border-radius: 50%;
  background: var(--emerald);
  box-shadow: 0 0 0 2px var(--emerald-soft);
  margin-right: 8px;
  vertical-align: 1px;
}

.ch-dot--cooldown {
  background: var(--amber);
  box-shadow: 0 0 0 2px var(--amber-soft);
}

.sim-bar {
  display: flex;
  align-items: center;
  justify-content: space-between;
  flex-wrap: wrap;
  gap: 14px;
  padding: 14px 18px;
  margin-bottom: 14px;
  border-radius: var(--radius-md);
  background: var(--bg-card);
  border: 1px solid var(--line-card);
  box-shadow: var(--specular-top), var(--shadow-card);
}

.sim-bar__left {
  display: flex;
  align-items: center;
  flex-wrap: wrap;
  gap: 10px;
}

.sim-bar__label {
  font-size: 13px;
  font-weight: 700;
  color: var(--ink-1);
}

.budget-pills {
  display: inline-flex;
  padding: 3px;
  border-radius: 9px;
  background: var(--bg-page-alt);
  border: 1px solid var(--line-card);
  gap: 3px;
}

.budget-btn {
  padding: 4px 12px;
  border: 0;
  border-radius: 6px;
  background: transparent;
  color: var(--ink-2);
  font-family: var(--font-mono);
  font-size: 12.5px;
  font-weight: 700;
  cursor: pointer;
  transition: all 0.15s ease;
}

.budget-btn.is-active {
  background: var(--brand-strong);
  color: #ffffff;
}

.cache-toggle {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  padding: 5px 12px;
  border-radius: var(--radius-pill);
  border: 1px solid var(--line-card);
  background: var(--bg-page-alt);
  font-size: 12.5px;
  font-weight: 600;
  color: var(--ink-2);
  cursor: pointer;
}

.cache-toggle.is-on {
  border-color: var(--emerald);
  background: var(--emerald-soft);
  color: var(--emerald);
}

.pricing-card {
  background: var(--bg-card);
  border: 1px solid var(--line-card);
  border-radius: var(--radius-lg);
  overflow: hidden;
  box-shadow: var(--specular-top), var(--shadow-card);
}

.pricing-toolbar {
  display: flex;
  align-items: center;
  justify-content: space-between;
  flex-wrap: wrap;
  gap: 10px;
  padding: 12px 18px;
  border-bottom: 1px solid var(--line-subtle);
  background: var(--bg-page-alt);
}

.filter-group {
  display: flex;
  flex-wrap: wrap;
  gap: 6px;
}

.filter-btn {
  padding: 5px 12px;
  border-radius: var(--radius-pill);
  border: 1px solid var(--line-card);
  background: transparent;
  color: var(--ink-2);
  font-size: 12px;
  font-weight: 600;
  cursor: pointer;
  transition: all 0.16s ease;
}

.filter-btn:hover {
  color: var(--ink-1);
  border-color: var(--line-strong);
}

.filter-btn.is-active {
  background: var(--brand-strong);
  border-color: var(--brand-strong);
  color: #ffffff;
}

.pricing-table-wrap {
  overflow-x: auto;
}

.pricing-table {
  width: 100%;
  border-collapse: collapse;
  font-size: 13.5px;
}

.pricing-table th,
.pricing-table td {
  padding: 13px 14px;
  text-align: left;
  border-bottom: 1px solid var(--line-subtle);
  white-space: nowrap;
}

.pricing-table th {
  font-size: 12px;
  font-weight: 700;
  color: var(--ink-3);
  letter-spacing: 0.03em;
}

.pricing-table tbody tr {
  transition: background-color 0.14s ease;
}

.pricing-table tbody tr:hover {
  background: var(--brand-soft);
}

.pricing-table tr:last-child td {
  border-bottom: 0;
}

.pricing-table td.num,
.pricing-table th.num {
  text-align: right;
  font-family: var(--font-mono);
}

.est-turns {
  color: var(--emerald);
  font-weight: 700;
}

.tier-pill {
  display: inline-block;
  padding: 2px 8px;
  border-radius: var(--radius-pill);
  font-size: 11px;
  font-weight: 600;
}

.tier-pill--flagship {
  background: var(--brand-soft);
  color: var(--brand);
}

.tier-pill--fast {
  background: var(--cyan-soft);
  color: var(--cyan);
}

.pricing-foot {
  display: flex;
  align-items: center;
  justify-content: space-between;
  flex-wrap: wrap;
  gap: 10px;
  padding: 13px 18px;
  background: var(--bg-page-alt);
  border-top: 1px solid var(--line-subtle);
  font-size: 12.5px;
  color: var(--ink-3);
}

/* ---------- Bottom Final Conversion Callout ---------- */
.cta-banner {
  padding: 0 0 68px;
}

.cta-banner__box {
  display: flex;
  align-items: center;
  justify-content: space-between;
  flex-wrap: wrap;
  gap: 20px;
  padding: 28px 32px;
  border-radius: var(--radius-lg);
  background:
    radial-gradient(ellipse 60% 90% at 90% 50%, rgba(107, 78, 248, 0.24), transparent 70%),
    var(--bg-card);
  border: 1px solid var(--line-card);
  box-shadow: var(--specular-top), var(--shadow-card);
}

.cta-banner__title {
  font-size: 20px;
  font-weight: 800;
  margin-bottom: 4px;
}

.cta-banner__sub {
  font-size: 13.5px;
  color: var(--ink-2);
}

.cta-banner__btns {
  display: flex;
  flex-wrap: wrap;
  gap: 10px;
}

/* ---------- Tutorial Page & Visual Pipeline ---------- */
.page-hero {
  padding: 52px 0 32px;
  border-bottom: 1px solid var(--line-subtle);
  background: var(--glow-hero);
}

.back-link {
  display: inline-flex;
  align-items: center;
  gap: 6px;
  font-size: 13px;
  color: var(--ink-3);
  margin-bottom: 16px;
}

.back-link:hover {
  color: var(--brand);
}

.tutorial-layout {
  max-width: 840px;
  margin-inline: auto;
}

.pipeline-card {
  display: grid;
  grid-template-columns: repeat(4, minmax(0, 1fr));
  gap: 10px;
  padding: 16px;
  margin-bottom: 28px;
  border-radius: var(--radius-lg);
  background: var(--bg-card);
  border: 1px solid var(--line-card);
  box-shadow: var(--specular-top), var(--shadow-card);
}

.pipe-node {
  position: relative;
  padding: 12px 14px;
  border-radius: 12px;
  background: var(--bg-page-alt);
  border: 1px solid var(--line-subtle);
}

.pipe-node__step {
  font-family: var(--font-mono);
  font-size: 10.5px;
  color: var(--brand);
  font-weight: 700;
  margin-bottom: 3px;
}

.pipe-node__title {
  font-size: 13px;
  font-weight: 700;
  margin-bottom: 2px;
}

.pipe-node__sub {
  font-size: 11.5px;
  color: var(--ink-3);
  font-family: var(--font-mono);
}

.step-list {
  display: flex;
  flex-direction: column;
  gap: 16px;
}

.step-card {
  display: flex;
  gap: 18px;
  background: var(--bg-card);
  border: 1px solid var(--line-card);
  border-radius: var(--radius-lg);
  padding: 22px 24px;
  box-shadow: var(--specular-top), var(--shadow-card);
}

.step-num {
  width: 36px;
  height: 36px;
  border-radius: 10px;
  background: linear-gradient(135deg, var(--brand-strong), #8465ff);
  color: #ffffff;
  font-weight: 800;
  font-size: 15px;
  display: grid;
  place-items: center;
  flex-shrink: 0;
}

.step-body {
  flex: 1;
  min-width: 0;
}

.step-body h3 {
  font-size: 16.5px;
  font-weight: 700;
  margin-bottom: 6px;
}

.step-body p {
  font-size: 14px;
  color: var(--ink-2);
  margin-bottom: 10px;
}

.step-body p:last-child {
  margin-bottom: 0;
}

.code-block {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 12px;
  padding: 11px 14px;
  margin-top: 10px;
  border-radius: 10px;
  background: var(--bg-code);
  border: 1px solid rgba(148, 163, 218, 0.14);
  color: #dbe4ff;
  font-size: 12.8px;
  overflow-x: auto;
}

.code-block pre {
  margin: 0;
  line-height: 1.55;
}

.notice-box {
  margin-top: 22px;
  padding: 20px 22px;
  border-radius: var(--radius-lg);
  background: var(--amber-soft);
  border: 1px solid rgba(251, 191, 36, 0.28);
}

.notice-box h3 {
  font-size: 15px;
  font-weight: 700;
  color: var(--amber);
  margin-bottom: 8px;
}

.notice-box ol {
  padding-left: 18px;
  font-size: 13.5px;
  color: var(--ink-2);
  display: flex;
  flex-direction: column;
  gap: 6px;
}

.faq-list {
  display: flex;
  flex-direction: column;
  gap: 10px;
}

.faq-item {
  background: var(--bg-card);
  border: 1px solid var(--line-card);
  border-radius: var(--radius-md);
  overflow: hidden;
}

.faq-q {
  width: 100%;
  padding: 16px 20px;
  background: none;
  border: 0;
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 12px;
  text-align: left;
  font-size: 14.5px;
  font-weight: 600;
  cursor: pointer;
}

.faq-q__chev {
  transition: transform 0.2s ease;
  color: var(--ink-3);
  flex-shrink: 0;
}

.faq-item.is-open .faq-q__chev {
  transform: rotate(180deg);
  color: var(--brand);
}

.faq-a {
  display: none;
  padding: 0 20px 16px;
  font-size: 13.8px;
  color: var(--ink-2);
  line-height: 1.7;
}

.faq-item.is-open .faq-a {
  display: block;
}

/* ---------- Quick Card Query Modal ---------- */
.modal-backdrop {
  position: fixed;
  inset: 0;
  z-index: 80;
  background: var(--bg-overlay);
  backdrop-filter: blur(8px);
  display: none;
  align-items: center;
  justify-content: center;
  padding: 18px;
}

.modal-backdrop.is-open {
  display: flex;
}

.modal-panel {
  width: 100%;
  max-width: 530px;
  background: var(--bg-card-solid);
  border: 1px solid var(--line-card);
  border-radius: var(--radius-lg);
  padding: 26px 24px;
  box-shadow: var(--shadow-modal);
  animation: modalIn 0.2s var(--ease-out);
}

@keyframes modalIn {
  from { opacity: 0; transform: translateY(10px) scale(0.98); }
  to { opacity: 1; transform: translateY(0) scale(1); }
}

.modal-head {
  display: flex;
  align-items: flex-start;
  justify-content: space-between;
  gap: 12px;
  margin-bottom: 16px;
}

.modal-head h3 {
  font-size: 18px;
  font-weight: 800;
}

.modal-head p {
  font-size: 12.5px;
  color: var(--ink-2);
  margin-top: 2px;
}

.modal-close {
  border: 1px solid var(--line-card);
  background: transparent;
  border-radius: 8px;
  width: 32px;
  height: 32px;
  cursor: pointer;
  color: var(--ink-2);
  flex-shrink: 0;
}

.query-input-row {
  display: flex;
  gap: 8px;
}

.query-input-wrap {
  flex: 1;
  display: flex;
  align-items: center;
  background: var(--bg-input);
  border: 1px solid var(--line-card);
  border-radius: 10px;
  padding-right: 6px;
}

.query-input-wrap:focus-within {
  border-color: var(--brand);
  box-shadow: 0 0 0 3px var(--brand-soft);
}

.query-input-wrap input {
  width: 100%;
  border: 0;
  outline: 0;
  background: transparent;
  padding: 11px 13px;
  font-family: var(--font-mono);
  font-size: 13.5px;
}

.reveal-btn {
  flex-shrink: 0;
  white-space: nowrap;
  border: 0;
  background: transparent;
  color: var(--ink-3);
  font-size: 12px;
  padding: 5px 10px;
  cursor: pointer;
}

.query-meta-bar {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 10px;
  margin-top: 9px;
}

.query-status {
  min-height: 18px;
  font-size: 12.5px;
  color: var(--ink-2);
}

.query-status.is-error {
  color: var(--danger);
}

.demo-btn {
  flex-shrink: 0;
  border: 0;
  background: none;
  color: var(--brand);
  font-size: 12px;
  font-weight: 600;
  cursor: pointer;
}

.demo-btn:hover {
  text-decoration: underline;
}

.query-result {
  display: none;
  margin-top: 12px;
  padding: 16px;
  border-radius: 12px;
  background: var(--bg-page-alt);
  border: 1px solid var(--line-subtle);
}

.query-result.is-visible {
  display: block;
}

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

.result-cell {
  background: var(--bg-card-solid);
  border: 1px solid var(--line-subtle);
  border-radius: 9px;
  padding: 10px 12px;
}

.result-cell__label {
  font-size: 11px;
  color: var(--ink-3);
  margin-bottom: 3px;
}

.result-cell__val {
  font-size: 14px;
  font-weight: 700;
  font-family: var(--font-mono);
}

.status-dot-ok {
  color: var(--emerald);
}

.modal-foot {
  margin-top: 16px;
  padding-top: 14px;
  border-top: 1px solid var(--line-subtle);
  display: flex;
  align-items: center;
  justify-content: space-between;
  flex-wrap: wrap;
  gap: 10px;
  font-size: 12.5px;
  color: var(--ink-3);
}

.modal-foot a {
  color: var(--brand);
  font-weight: 600;
}

/* ---------- Footer ---------- */
.footer {
  border-top: 1px solid var(--line-subtle);
  padding: 28px 0;
  font-size: 13px;
  color: var(--ink-3);
}

.footer__inner {
  display: flex;
  align-items: center;
  justify-content: space-between;
  flex-wrap: wrap;
  gap: 14px;
}

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

.footer__links a:hover,
.footer__links button:hover {
  color: var(--ink-1);
}

.footer__links button {
  background: none;
  border: 0;
  cursor: pointer;
  color: inherit;
}

/* ---------- Toast ---------- */
.toast {
  position: fixed;
  bottom: 24px;
  left: 50%;
  transform: translateX(-50%) translateY(16px);
  padding: 9px 18px;
  border-radius: var(--radius-pill);
  background: var(--ink-1);
  color: var(--bg-page);
  font-size: 13px;
  font-weight: 600;
  opacity: 0;
  pointer-events: none;
  z-index: 100;
  transition: opacity 0.2s ease, transform 0.2s var(--ease-out);
}

.toast.is-shown {
  opacity: 1;
  transform: translateX(-50%) translateY(0);
}

/* ---------- Responsive ---------- */
@media (max-width: 960px) {
  .model-strip__grid,
  .pkg-grid,
  .pipeline-card {
    grid-template-columns: repeat(2, minmax(0, 1fr));
  }
  .features-grid,
  .download-showcase,
  .prereq-grid {
    grid-template-columns: 1fr;
  }
  .hero__dither,
  body::before,
  .pixel-band-wrap::before,
  .pixel-band-wrap::after {
    display: none;
  }
  .mock-ide,
  .mock-client {
    grid-template-columns: 1fr;
  }
  .mock-ide__side,
  .mock-client__nav {
    display: none;
  }
}

@media (max-width: 720px) {
  .nav-links,
  .live-chip,
  .kbd-hint,
  .nav-cta-desktop,
  .win-titlebar > span:nth-child(2) {
    display: none;
  }
  .mobile-menu-btn {
    display: inline-flex;
  }
  .hero {
    padding: 46px 0 38px;
  }
  .section {
    padding: 52px 0;
  }
  .win-flagship {
    padding: 24px 20px;
  }
  .showcase__tabs,
  .model-strip__grid,
  .pkg-grid,
  .pipeline-card,
  .result-grid,
  .mock-client__body {
    grid-template-columns: 1fr;
  }
  .step-card {
    flex-direction: column;
    gap: 12px;
  }
  .query-input-row {
    flex-direction: column;
  }
  .cta-banner__box {
    padding: 22px 20px;
  }
}
