:root {
  --bg: #07111f;
  --bg-soft: #0d1729;
  --surface: rgba(15, 24, 42, 0.8);
  --surface-2: rgba(255, 255, 255, 0.05);
  --surface-3: rgba(255, 255, 255, 0.08);
  --line: rgba(255, 255, 255, 0.1);
  --text: #e5eefc;
  --muted: #97a7c3;
  --accent: #63e6ff;
  --accent-2: #7c8cff;
  --accent-3: #5ef2c2;
  --shadow: 0 30px 80px rgba(0, 0, 0, 0.35);
  --radius: 24px;
  --radius-sm: 16px;
  --max: 1180px;
}

::selection { background: rgba(71, 89, 99, 0.756); }

* { box-sizing: border-box; }
html { scroll-behavior: smooth; }
body {
  margin: 0;
  font-family: Inter, ui-sans-serif, system-ui, -apple-system, BlinkMacSystemFont, "Segoe UI", sans-serif;
  background:
    radial-gradient(circle at top left, rgba(124, 140, 255, 0.14), transparent 35%),
    radial-gradient(circle at top right, rgba(99, 230, 255, 0.12), transparent 32%),
    linear-gradient(180deg, #040914 0%, #091221 52%, #060c17 100%);
  color: var(--text);
}

a { color: inherit; text-decoration: none; }
p { line-height: 1.7; }
img { max-width: 100%; display: block; }

.container {
  width: min(calc(100% - 2rem), var(--max));
  margin: 0 auto;
}

.topbar {
  position: sticky;
  top: 0;
  z-index: 30;
  backdrop-filter: blur(16px);
  background: rgba(4, 10, 20, 0.72);
  border-bottom: 1px solid rgba(255, 255, 255, 0.06);
}

.nav-wrap {
  display: flex;
  align-items: center;
  justify-content: space-between;
  min-height: 78px;
  gap: 1rem;
}

.brand {
  display: inline-flex;
  align-items: center;
  gap: 0.9rem;
}

.brand-mark {
  width: 42px;
  height: 42px;
}

.brand-name {
  font-weight: 700;
  letter-spacing: -0.02em;
}

.brand-subtitle {
  color: var(--muted);
  font-size: 0.9rem;
}

.nav-menu {
  display: flex;
  align-items: center;
  gap: 1.2rem;
}

.nav-menu a {
  color: var(--muted);
  font-size: 0.97rem;
  transition: color 0.2s ease;
}

.nav-menu a:hover { color: var(--text); }

.nav-toggle {
  display: none;
  width: 44px;
  height: 44px;
  border-radius: 12px;
  border: 1px solid var(--line);
  background: rgba(255, 255, 255, 0.04);
  padding: 0;
}

.nav-toggle span {
  display: block;
  width: 18px;
  height: 2px;
  background: white;
  margin: 4px auto;
}

.hero {
  position: relative;
  overflow: hidden;
  padding: 6rem 0 4rem;
}

.hero-bg-viewer {
  position: absolute;
  top: 8%;
  right: -3%;
  width: min(44vw, 560px);
  height: 84%;
  background: transparent;
  opacity: 0.22;
  filter: blur(1px);
  pointer-events: none;
  z-index: 1;
  overflow: hidden;
}

.hero-noise {
  position: absolute;
  inset: 0;
  background-image:
    radial-gradient(rgba(255,255,255,0.05) 1px, transparent 1px),
    linear-gradient(90deg, rgba(255,255,255,0.03) 1px, transparent 1px),
    linear-gradient(rgba(255,255,255,0.03) 1px, transparent 1px);
  background-size: 22px 22px, 100px 100px, 100px 100px;
  mask-image: linear-gradient(180deg, rgba(0,0,0,0.9), transparent 85%);
  opacity: 0.35;
  pointer-events: none;
}

.hero-grid {
  position: relative;
  display: grid;
  grid-template-columns: 1.1fr 0.9fr;
  gap: 2rem;
  align-items: center;
  z-index: 10;
}

.eyebrow, .kicker {
  display: inline-flex;
  align-items: center;
  gap: 0.45rem;
  padding: 0.45rem 0.8rem;
  border-radius: 999px;
  background: rgba(99, 230, 255, 0.09);
  color: #c4f6ff;
  border: 1px solid rgba(99, 230, 255, 0.16);
  font-size: 0.88rem;
  margin-bottom: 1rem;
}

.hero h1 {
  font-size: clamp(2.4rem, 5vw, 4.7rem);
  line-height: 1.02;
  letter-spacing: -0.04em;
  max-width: 12ch;
  margin: 0;
}

.hero-text {
  max-width: 62ch;
  color: var(--muted);
  font-size: 1.06rem;
  margin: 1.25rem 0 1.75rem;
}

.hero-actions {
  display: flex;
  flex-wrap: wrap;
  gap: 0.85rem;
  margin-bottom: 1.3rem;
}

.btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  min-height: 50px;
  padding: 0 1.1rem;
  border-radius: 14px;
  font-weight: 600;
  border: 1px solid transparent;
  transition: transform 0.2s ease, border-color 0.2s ease, background 0.2s ease;
}

.btn:hover { transform: translateY(-1px); }
.btn-primary {
  background: linear-gradient(135deg, var(--accent), var(--accent-2));
  color: #06101d;
}
.btn-secondary {
  background: rgba(255, 255, 255, 0.04);
  border-color: rgba(255, 255, 255, 0.1);
}
.btn.full { width: 100%; margin-top: 1rem; }

.badge-row {
  display: flex;
  flex-wrap: wrap;
  gap: 0.65rem;
}

.badge {
  padding: 0.55rem 0.8rem;
  border-radius: 999px;
  font-size: 0.84rem;
  color: #d7def0;
  background: rgba(255,255,255,0.05);
  border: 1px solid rgba(255,255,255,0.08);
}

.hero-panel {
  position: relative;
}

.panel-top {
  display: flex;
  justify-content: flex-end;
  gap: 0.7rem;
  margin-bottom: 0.75rem;
}

.status-pill {
  padding: 0.45rem 0.75rem;
  border-radius: 999px;
  font-size: 0.78rem;
  background: rgba(255,255,255,0.05);
  border: 1px solid rgba(255,255,255,0.08);
  color: #d6e3fd;
}

.status-pill.live {
  color: #dffdf4;
  background: rgba(94, 242, 194, 0.08);
  border-color: rgba(94, 242, 194, 0.18);
}

.terminal-card,
.feature-card,
.version-card,
.batch-card,
.release-card,
.stat-card,
.timeline-step,
.faq-list details,
.comparison-table,
.footer,
.section.alt .two-col > div:last-child {
  background: linear-gradient(180deg, rgba(255,255,255,0.055), rgba(255,255,255,0.03));
  border: 1px solid rgba(255,255,255,0.08);
  box-shadow: var(--shadow);
}

.terminal-card {
  border-radius: var(--radius);
  overflow: hidden;
}

.terminal-head {
  display: flex;
  align-items: center;
  gap: 0.5rem;
  padding: 0.9rem 1rem;
  border-bottom: 1px solid rgba(255,255,255,0.08);
  background: rgba(255,255,255,0.03);
}

.terminal-head span {
  width: 10px;
  height: 10px;
  border-radius: 50%;
  background: rgba(255,255,255,0.35);
}

.terminal-body {
  padding: 1.2rem;
}

.code-line {
  font-family: ui-monospace, SFMono-Regular, Menlo, monospace;
  color: #d2deff;
  margin: 0.35rem 0;
  font-size: 0.95rem;
}

.code-line .key { color: #7ceaff; }
.code-line .value { color: #b9d0ff; }
.code-line.muted { color: #7f8ca7; }
.code-spacer { height: 1rem; }

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

.metric-card {
  padding: 1rem;
  border-radius: 16px;
  background: rgba(255,255,255,0.04);
  border: 1px solid rgba(255,255,255,0.07);
}

.metric-card span,
.stat-card span,
.release-version,
.label {
  display: block;
  color: var(--muted);
  font-size: 0.86rem;
  margin-bottom: 0.35rem;
}

.metric-card strong,
.stat-card strong,
.card-head h3,
.feature-card h3,
.release-card h3,
.timeline-step h3 {
  letter-spacing: -0.02em;
}

.strip {
  padding: 0 0 1.2rem;
}

.stats-grid,
.feature-grid,
.version-grid,
.release-grid,
.usecases-intro-grid {
  display: grid;
  gap: 1rem;
}

.stats-grid { grid-template-columns: repeat(4, minmax(0, 1fr)); }
.feature-grid { grid-template-columns: repeat(3, minmax(0, 1fr)); }
.version-grid { grid-template-columns: 1.2fr 1fr 1fr; }
.release-grid { grid-template-columns: repeat(3, minmax(0, 1fr)); }
.usecases-intro-grid { grid-template-columns: repeat(3, minmax(0, 1fr)); }

.stat-card,
.feature-card,
.version-card,
.batch-card,
.release-card,
.timeline-step,
.faq-list details,
.comparison-table {
  border-radius: var(--radius);
  padding: 1.3rem;
}

.stat-card strong {
  font-size: 2rem;
  display: block;
  margin-bottom: 0.35rem;
}

.section {
  padding: 5.5rem 0;
}

.section.alt {
  background: linear-gradient(180deg, rgba(255,255,255,0.02), rgba(255,255,255,0));
}

.section-heading {
  max-width: 66ch;
  margin-bottom: 2rem;
}

.section-heading.narrow {
  max-width: 44rem;
  margin-left: auto;
  margin-right: auto;
  text-align: center;
}

.section-heading.left { margin-bottom: 1.5rem; }

.section-heading h1,
.section-heading h2 {
  font-size: clamp(2rem, 4vw, 3.4rem);
  line-height: 1.05;
  margin: 0;
  letter-spacing: -0.04em;
}

.section-heading p { color: var(--muted); }

.feature-card,
.version-card,
.release-card {
  position: relative;
  overflow: hidden;
}

.feature-card::after,
.version-card::after,
.release-card::after {
  content: "";
  position: absolute;
  inset: auto -10% -30% auto;
  width: 160px;
  height: 160px;
  background: radial-gradient(circle, rgba(124,140,255,0.18), transparent 65%);
  pointer-events: none;
}

.feature-icon {
  width: 48px;
  height: 48px;
  display: grid;
  place-items: center;
  border-radius: 14px;
  margin-bottom: 1rem;
  background: linear-gradient(135deg, rgba(99,230,255,0.16), rgba(124,140,255,0.16));
  border: 1px solid rgba(255,255,255,0.08);
  color: #c5efff;
  font-weight: 700;
}

.feature-card p,
.version-card p,
.release-card p,
.timeline-step p,
.stat-card p { color: var(--muted); }

/* Use Cases Mini Cards */
.usecase-mini-card {
  background: linear-gradient(180deg, rgba(255,255,255,0.055), rgba(255,255,255,0.03));
  border: 1px solid rgba(255,255,255,0.08);
  border-radius: 16px;
  padding: 1.5rem;
  transition: all 0.3s ease;
  box-shadow: var(--shadow);
}

.usecase-mini-card:hover {
  background: linear-gradient(180deg, rgba(255,255,255,0.08), rgba(255,255,255,0.04));
  border-color: rgba(255,255,255,0.12);
  box-shadow: 0 30px 100px rgba(0, 0, 0, 0.4);
  transform: translateY(-2px);
}

.usecase-mini-card h3 {
  margin: 0 0 0.8rem;
  font-size: 1.08rem;
  letter-spacing: -0.02em;
  color: #f5feff;
}

.usecase-mini-card p {
  margin: 0;
  font-size: 0.9rem;
  color: var(--muted);
  line-height: 1.6;
}

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

.timeline-step span {
  display: inline-grid;
  place-items: center;
  width: 40px;
  height: 40px;
  border-radius: 12px;
  background: rgba(99,230,255,0.1);
  color: #cbf6ff;
  margin-bottom: 1rem;
}

/* Vertical Stepper Styles */
.vertical-stepper {
  max-width: 680px;
  margin: 0 auto;
  position: relative;
}

.vertical-stepper::before {
  content: "";
  position: absolute;
  left: 25px;
  top: 60px;
  bottom: 0;
  width: 2px;
  background: linear-gradient(180deg, rgba(99,230,255,0.4), rgba(99,230,255,0.1));
}

.stepper-step {
  display: flex;
  gap: 2rem;
  margin-bottom: 2.2rem;
  position: relative;
  align-items: flex-start;
}

.stepper-step.last .step-marker::after {
  background: linear-gradient(135deg, rgba(94,242,194,0.3), rgba(94,242,194,0.1));
}

.step-marker {
  flex-shrink: 0;
  width: 52px;
  height: 52px;
  border-radius: 50%;
  background: linear-gradient(135deg, rgba(99,230,255,0.18), rgba(124,140,255,0.14));
  border: 2px solid rgba(99,230,255,0.3);
  display: grid;
  place-items: center;
  color: #c5efff;
  font-weight: 700;
  font-size: 1rem;
  position: relative;
  z-index: 2;
  transition: all 0.3s ease;
  box-shadow: 0 0 20px rgba(99, 230, 255, 0.12);
}

.stepper-step.last .step-marker {
  background: linear-gradient(135deg, rgba(94,242,194,0.22), rgba(94,242,194,0.12));
  border-color: rgba(94,242,194,0.4);
  color: #dffdf4;
  box-shadow: 0 0 20px rgba(94, 242, 194, 0.12);
}

.step-marker::after {
  content: "";
  position: absolute;
  inset: -8px;
  border-radius: 50%;
  background: linear-gradient(135deg, rgba(99,230,255,0.08), transparent);
  opacity: 0;
  transition: opacity 0.3s ease;
}

.stepper-step:hover .step-marker::after {
  opacity: 1;
}

.step-content {
  flex: 1;
  padding-top: 0.4rem;
}

.step-content h3 {
  margin: 0 0 0.5rem;
  font-size: 1.1rem;
  letter-spacing: -0.02em;
  color: #f5feff;
  transition: color 0.3s ease;
}

.step-content p {
  margin: 0;
  color: rgba(255, 255, 255, 0.68);
  font-size: 0.95rem;
  line-height: 1.6;
  transition: color 0.3s ease;
}

.stepper-step:hover .step-marker {
  border-color: rgba(99,230,255,0.5);
  background: linear-gradient(135deg, rgba(99,230,255,0.25), rgba(124,140,255,0.18));
  box-shadow: 0 0 28px rgba(99, 230, 255, 0.18);
  transform: scale(1.08);
}

.stepper-step:hover .step-content h3,
.stepper-step:hover .step-content p {
  color: #f5feff;
}

@media (max-width: 768px) {
  .vertical-stepper::before {
    left: 21px;
    top: 50px;
  }
  
  .step-marker {
    width: 44px;
    height: 44px;
    font-size: 0.9rem;
  }
  
  .stepper-step {
    gap: 1.2rem;
    margin-bottom: 1.8rem;
  }
  
  .step-content h3 {
    font-size: 1rem;
  }
  
  .step-content p {
    font-size: 0.9rem;
  }
  
  .usecases-intro-grid {
    grid-template-columns: 1fr;
  }
  
  .usecase-mini-card {
    padding: 1.3rem 1rem;
  }
  
  .usecase-mini-card h3 {
    font-size: 1rem;
  }
  
  .usecase-mini-card p {
    font-size: 0.88rem;
  }
}

.card-head {
  display: flex;
  align-items: flex-start;
  justify-content: space-between;
  gap: 1rem;
  margin-bottom: 0.5rem;
}

.tag {
  padding: 0.45rem 0.7rem;
  border-radius: 999px;
  background: rgba(99,230,255,0.1);
  border: 1px solid rgba(99,230,255,0.18);
  font-size: 0.8rem;
}

.tag.neutral {
  background: rgba(255,255,255,0.06);
  border-color: rgba(255,255,255,0.12);
}

.version-card ul {
  padding-left: 1rem;
  color: var(--muted);
}

.version-card li { margin: 0.55rem 0; }
.version-card.featured {
  background: linear-gradient(180deg, rgba(99,230,255,0.12), rgba(255,255,255,0.04));
}

.text-link {
  display: inline-flex;
  margin-top: 0.6rem;
  color: #cbf6ff;
  font-weight: 600;
}

.comparison-table {
  margin-top: 1.25rem;
  overflow: hidden;
}

.table-row {
  display: grid;
  grid-template-columns: 2fr repeat(3, minmax(0, 1fr));
  gap: 1rem;
  padding: 0.9rem 0;
  border-bottom: 1px solid rgba(255,255,255,0.08);
}

.table-row:last-child { border-bottom: none; }
.table-head { font-weight: 700; color: #f4f8ff; }
.table-row span:not(:first-child) { color: #cfe1ff; text-align: center; }
.table-row span:first-child { color: var(--muted); }
.table-head span:first-child,
.table-head span:not(:first-child) { color: #f4f8ff; }

.two-col {
  display: grid;
  grid-template-columns: 1.05fr 0.95fr;
  gap: 1.5rem;
  align-items: center;
}

.pill-list {
  display: flex;
  flex-wrap: wrap;
  gap: 0.7rem;
}

.pill-list span {
  padding: 0.55rem 0.85rem;
  border-radius: 999px;
  background: rgba(255,255,255,0.05);
  border: 1px solid rgba(255,255,255,0.08);
  color: #d8e4fc;
  font-size: 0.9rem;
}

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

.mini-grid h3 { margin-top: 0; margin-bottom: 0.5rem; }
.mini-grid p { color: var(--muted); margin: 0; }

.faq-list {
  max-width: 850px;
  margin: 0 auto;
}

.faq-list details + details { margin-top: 0.85rem; }
.faq-list summary {
  list-style: none;
  cursor: pointer;
  font-weight: 600;
  position: relative;
  padding-right: 2rem;
}
.faq-list summary::-webkit-details-marker { display: none; }
.faq-list summary::after {
  content: "+";
  position: absolute;
  right: 0;
  top: -0.1rem;
  font-size: 1.4rem;
  color: var(--accent);
}
.faq-list details[open] summary::after { content: "–"; }
.faq-list p { color: var(--muted); margin-bottom: 0; }

.faq-cta {
  display: flex;
  flex-wrap: wrap;
  justify-content: center;
  gap: 0.85rem;
  margin-top: 1.5rem;
}

.faq-search-panel {
  padding: 2rem;
}

.faq-search-panel > p {
  color: var(--muted);
  margin: 0 0 1rem;
}

.faq-search-form {
  display: flex;
  gap: 0.85rem;
  flex-wrap: wrap;
  align-items: stretch;
  margin-top: 0.75rem;
}

.faq-search-field {
  flex: 1 1 320px;
}

.faq-search-form input {
  width: 100%;
  min-height: 54px;
  padding: 0 1.05rem;
  border-radius: 16px;
  border: 1px solid rgba(255, 255, 255, 0.1);
  background: rgba(255, 255, 255, 0.04);
  color: var(--text);
  font: inherit;
}

.faq-search-form input::placeholder { color: var(--muted); }

.faq-search-form input:focus {
  outline: none;
  border-color: rgba(99, 230, 255, 0.35);
  box-shadow: 0 0 0 4px rgba(99, 230, 255, 0.12);
}

.faq-search-actions {
  display: flex;
  gap: 0.75rem;
  flex-wrap: wrap;
}

.faq-search-actions .btn {
  min-width: 112px;
}

.faq-category-bar {
  display: flex;
  flex-wrap: wrap;
  gap: 0.7rem;
  margin: 1.15rem 0 1rem;
  justify-content: center;
}

.faq-category-chip {
  appearance: none;
  border: 1px solid rgba(255, 255, 255, 0.08);
  background: rgba(255, 255, 255, 0.04);
  color: #d9e8ff;
  border-radius: 999px;
  padding: 0.7rem 1rem;
  min-height: 42px;
  font: inherit;
  cursor: pointer;
  transition: transform 0.2s ease, background 0.2s ease, border-color 0.2s ease, color 0.2s ease;
}

.faq-category-chip:hover {
  transform: translateY(-1px);
  border-color: rgba(99, 230, 255, 0.24);
}

.faq-category-chip.active {
  background: linear-gradient(135deg, rgba(99, 230, 255, 0.16), rgba(124, 140, 255, 0.18));
  border-color: rgba(99, 230, 255, 0.38);
  color: #f5feff;
}

.faq-results-meta {
  display: flex;
  justify-content: space-between;
  gap: 1rem;
  flex-wrap: wrap;
  margin-top: 0.9rem;
  color: var(--muted);
  font-size: 0.92rem;
}

.faq-grid {
  display: grid;
  gap: 0.85rem;
  margin-top: 1rem;
}

.faq-grid .faq-tags {
  display: flex;
  flex-wrap: wrap;
  gap: 0.5rem;
  margin-top: 0.9rem;
}

.faq-grid .faq-tags span {
  padding: 0.4rem 0.65rem;
  border-radius: 999px;
  background: rgba(255, 255, 255, 0.05);
  border: 1px solid rgba(255, 255, 255, 0.08);
  color: #d8e4fc;
  font-size: 0.8rem;
}

.faq-empty {
  color: var(--muted);
  text-align: center;
  margin-top: 1rem;
}

.coming-soon-card {
  min-height: 300px;
  display: grid;
  place-items: center;
  text-align: center;
  font-size: clamp(2rem, 5vw, 3.6rem);
  font-weight: 800;
  letter-spacing: -0.04em;
}

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

.usecases-hero h1 {
  max-width: 18ch;
}

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

.usecases-hero-card {
  padding: 1.15rem;
  border-radius: 18px;
  border: 1px solid rgba(255, 255, 255, 0.1);
  background: linear-gradient(180deg, rgba(255,255,255,0.08), rgba(255,255,255,0.03));
}

.usecases-hero-card span {
  color: var(--muted);
  display: block;
  font-size: 0.82rem;
}

.usecases-hero-card strong {
  display: block;
  margin-top: 0.35rem;
  font-size: 1.08rem;
}

.usecases-hero-card p {
  margin: 0.6rem 0 0;
  color: var(--muted);
}

.usecases-jump {
  display: flex;
  flex-wrap: wrap;
  gap: 0.65rem;
  margin-top: 1rem;
}

.usecases-jump a {
  padding: 0.55rem 0.9rem;
  border-radius: 999px;
  border: 1px solid rgba(255,255,255,0.12);
  background: rgba(255,255,255,0.04);
  color: #d9e8ff;
  font-size: 0.88rem;
  transition: transform 0.2s ease, border-color 0.2s ease;
}

.usecases-jump a:hover {
  transform: translateY(-1px);
  border-color: rgba(99,230,255,0.35);
}

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

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

.usecase-accordion {
  display: grid;
  gap: 0.85rem;
}

.usecase-accordion details {
  border-radius: var(--radius-sm);
  border: 1px solid rgba(255,255,255,0.1);
  background: linear-gradient(180deg, rgba(255,255,255,0.06), rgba(255,255,255,0.03));
  padding: 1rem 1.1rem;
}

.usecase-accordion summary {
  list-style: none;
  cursor: pointer;
  font-weight: 700;
  letter-spacing: -0.01em;
  padding-right: 2rem;
  position: relative;
}

.usecase-accordion summary::-webkit-details-marker {
  display: none;
}

.usecase-accordion summary::after {
  content: "+";
  position: absolute;
  right: 0;
  top: -0.15rem;
  font-size: 1.45rem;
  color: var(--accent);
}

.usecase-accordion details[open] summary::after {
  content: "-";
}

.usecase-accordion p {
  color: var(--muted);
  margin: 0.75rem 0 0.45rem;
}

.usecase-list,
.usecase-ordered {
  color: var(--muted);
  margin: 0.5rem 0 0;
  padding-left: 1.1rem;
}

.usecase-list li,
.usecase-ordered li {
  margin: 0.4rem 0;
}

.usecases-hero-layout {
  display: grid;
  grid-template-columns: 1.05fr 0.95fr;
  gap: 1rem;
  align-items: stretch;
}

.usecases-hero-layout .usecases-hero {
  grid-column: 1;
}

.usecases-hero-layout .hero-interactive-lab {
  grid-column: 2;
}

.hero-interactive-lab {
  border-radius: var(--radius);
  border: 1px solid rgba(255,255,255,0.1);
  background: linear-gradient(180deg, rgba(255,255,255,0.055), rgba(255,255,255,0.03));
  box-shadow: var(--shadow);
  padding: 1rem;
  display: flex;
  flex-direction: column;
  gap: 0.9rem;
}

.usecases-heading-row {
  display: grid;
  grid-template-columns: 0.85fr 1.15fr;
  gap: 1rem;
  align-items: start;
}

.usecases-heading-row .hero-interactive-lab {
  margin: 0;
}

.builder-viewer-row {
  display: grid;
  grid-template-columns: minmax(0, 0.9fr) minmax(260px, 1.1fr);
  gap: 0.8rem;
  align-items: stretch;
}

.builder-viewer-row .builder-input-card {
  grid-column: 1;
}

.builder-viewer-row .mini-viewer-shell {
  grid-column: 2;
}

.interactive-head h3 {
  margin: 0.25rem 0 0;
  letter-spacing: -0.02em;
}

.scene-eyebrow {
  display: inline-flex;
  padding: 0.3rem 0.65rem;
  border-radius: 999px;
  border: 1px solid rgba(99,230,255,0.2);
  background: rgba(99,230,255,0.08);
  color: #d2f8ff;
  font-size: 0.78rem;
}

.builder-toolbar-demo {
  display: flex;
  flex-wrap: wrap;
  gap: 0.55rem;
}

.builder-input-card {
  border: 1px solid rgba(255,255,255,0.12);
  border-radius: 14px;
  background: rgba(255,255,255,0.04);
  padding: 0.68rem;
  max-width: 360px;
}

.builder-input-head {
  display: flex;
  justify-content: space-between;
  gap: 0.75rem;
  align-items: baseline;
  margin-bottom: 0.65rem;
}

.builder-input-head span {
  color: var(--muted);
  font-size: 0.76rem;
}

.builder-input-head strong {
  font-size: 0.92rem;
  letter-spacing: -0.01em;
}

.builder-input-grid {
  display: grid;
  gap: 0.48rem;
}

.builder-input-row {
  position: relative;
  border: 1px solid rgba(255,255,255,0.1);
  border-radius: 10px;
  background: rgba(7,16,31,0.55);
  padding: 0.48rem 0.58rem;
  transition: border-color 180ms ease, box-shadow 180ms ease, transform 180ms ease;
}

.builder-input-row.is-active {
  border-color: rgba(99,230,255,0.4);
  box-shadow: 0 0 0 1px rgba(99,230,255,0.12), 0 0 18px rgba(99,230,255,0.08);
  transform: translateX(2px);
}

.builder-input-row label {
  display: block;
  color: var(--muted);
  font-size: 0.72rem;
  margin-bottom: 0.24rem;
}

.builder-input-value {
  min-height: 20px;
  color: #dce9ff;
  display: flex;
  align-items: center;
  gap: 0.18rem;
  overflow: hidden;
  font-size: 0.9rem;
}

.builder-input-value.monospace {
  font-family: ui-monospace, SFMono-Regular, Menlo, monospace;
  font-size: 0.8rem;
}

.builder-input-value .typing-target {
  white-space: nowrap;
  overflow: hidden;
  text-overflow: ellipsis;
}

.typing-cursor {
  width: 1px;
  height: 0.95em;
  background: rgba(99,230,255,0.9);
  display: none;
  animation: cursorBlink 1s steps(1) infinite;
  opacity: 0;
}

.toolbar-btn {
  appearance: none;
  border: 1px solid rgba(255,255,255,0.14);
  background: rgba(255,255,255,0.05);
  color: #dbe9ff;
  border-radius: 999px;
  min-height: 34px;
  padding: 0.4rem 0.7rem;
  font-size: 0.8rem;
  font-weight: 600;
}

.toolbar-btn.active {
  border-color: rgba(99,230,255,0.38);
  background: linear-gradient(135deg, rgba(99,230,255,0.16), rgba(124,140,255,0.2));
}

.builder-stack {
  display: grid;
  gap: 0.6rem;
  min-height: 220px;
}

.builder-row {
  border: 1px solid rgba(255,255,255,0.12);
  border-radius: 12px;
  background: rgba(255,255,255,0.04);
  padding: 0.75rem;
  opacity: 0;
  transform: translateY(8px);
  animation: stackIn 420ms ease forwards;
}

.builder-row strong {
  display: block;
  font-size: 0.86rem;
}

.builder-row span {
  color: var(--muted);
  font-size: 0.78rem;
}

.mini-viewer-shell {
  border: 1px solid rgba(255,255,255,0.12);
  border-radius: 14px;
  background: rgba(7,16,31,0.7);
  padding: 0.6rem;
  display: flex;
  flex-direction: column;
  height: 100%;
}

.mini-protein-viewer {
  width: 100%;
  flex: 1 1 auto;
  min-height: 0;
  height: auto;
  position: relative;
  border-radius: 10px;
  overflow: hidden;
  background: transparent;
}

.scene-legend {
  margin-top: 0.55rem;
  display: flex;
  gap: 0.9rem;
  flex-wrap: wrap;
  color: var(--muted);
  font-size: 0.76rem;
}

.scene-legend .dot {
  width: 9px;
  height: 9px;
  border-radius: 50%;
  display: inline-block;
  margin-right: 0.35rem;
}

.scene-legend .chain-a { background: #4ea2ff; }
.scene-legend .chain-l { background: #f59e0b; }

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

@keyframes cursorBlink {
  50% {
    opacity: 0;
  }
}

.rules-grid .feature-icon {
  width: auto;
  height: auto;
  min-height: 36px;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  padding: 0.35rem 0.65rem;
  border-radius: 10px;
  font-size: 0.74rem;
  margin-bottom: 0.85rem;
}

.footer {
  margin: 2rem auto 2.5rem;
  width: min(calc(100% - 2rem), var(--max));
  border-radius: var(--radius);
  padding: 1.7rem;
  overflow: hidden;
}

.footer-grid {
  display: grid;
  grid-template-columns: 1.2fr 0.8fr;
  gap: 1.6rem;
  align-items: start;
}

.footer-brand { margin-bottom: 1rem; }
.footer-copy {
  color: var(--muted);
  max-width: 60ch;
  line-height: 1.75;
  margin: 0;
}

.footer-note {
  margin: 0.9rem 0 0;
  max-width: 68ch;
  padding: 0.75rem 0.9rem;
  border-left: 3px solid rgba(99, 230, 255, 0.5);
  border-radius: 0 10px 10px 0;
  background: rgba(99, 230, 255, 0.07);
  color: #cddbf3;
  font-size: 0.88rem;
  line-height: 1.6;
}

.footer-note strong {
  color: #e9f4ff;
}
.footer-links {
  display: grid;
  gap: 0.7rem;
  justify-items: start;
}
.footer-links a { color: #d9e8ff; }
.footer-links a:hover { color: white; }

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

.footer-link-group {
  display: grid;
  gap: 0.55rem;
  align-content: start;
}

.footer-group-title {
  margin: 0 0 0.35rem;
  font-size: 0.74rem;
  letter-spacing: 0.14em;
  text-transform: uppercase;
  color: #a9bddf;
}

.footer-link-group a {
  color: #d9e8ff;
  font-size: 0.94rem;
  padding: 0.2rem 0;
  transition: color 0.2s ease, transform 0.2s ease;
}

.footer-link-group a:hover {
  color: #ffffff;
  transform: translateX(2px);
}

.footer-bottom {
  margin-top: 1.2rem;
  padding-top: 1rem;
  border-top: 1px solid rgba(255, 255, 255, 0.08);
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 1rem;
  flex-wrap: wrap;
}

.footer-meta-row {
  display: flex;
  flex-wrap: wrap;
  gap: 0.5rem;
}

.footer-pill {
  display: inline-flex;
  align-items: center;
  padding: 0.35rem 0.6rem;
  border-radius: 999px;
  border: 1px solid rgba(255, 255, 255, 0.14);
  background: rgba(255, 255, 255, 0.04);
  color: #c9d8f1;
  font-size: 0.78rem;
}

.reveal {
  opacity: 0;
  transform: translateY(20px);
  transition: opacity 0.6s ease, transform 0.6s ease;
}
.reveal.visible {
  opacity: 1;
  transform: translateY(0);
}
.delay-1 { transition-delay: 0.08s; }
.delay-2 { transition-delay: 0.16s; }

@media (max-width: 1080px) {
  .hero-interactive-lab {
    display: none;
  }

  .hero-grid,
  .two-col,
  .version-grid,
  .stats-grid,
  .feature-grid,
  .release-grid,
  .timeline,
  .footer-grid {
    grid-template-columns: 1fr 1fr;
  }

  .hero-grid { grid-template-columns: 1fr; }
  .version-grid { grid-template-columns: 1fr; }
  .stats-grid { grid-template-columns: repeat(2, 1fr); }
  .feature-grid,
  .release-grid,
  .timeline { grid-template-columns: repeat(2, 1fr); }
  .footer-grid { grid-template-columns: 1fr; }
  .footer-links-grid { grid-template-columns: repeat(2, minmax(0, 1fr)); }

  .usecases-hero-grid,
  .usecases-overview-grid,
  .rules-grid {
    grid-template-columns: repeat(2, minmax(0, 1fr));
  }

  .usecases-hero-layout {
    grid-template-columns: 1fr;
  }

  .usecases-hero-layout .usecases-hero,
  .usecases-hero-layout .hero-interactive-lab {
    grid-column: auto;
  }

  .usecases-heading-row {
    grid-template-columns: 1fr;
  }
}

@media (max-width: 760px) {
  .hero-interactive-lab {
    display: none;
  }

  .nav-toggle { display: block; }
  .nav-menu {
    position: absolute;
    top: 78px;
    left: 1rem;
    right: 1rem;
    display: none;
    flex-direction: column;
    align-items: flex-start;
    padding: 1rem;
    background: rgba(6, 12, 24, 0.96);
    border: 1px solid rgba(255,255,255,0.08);
    border-radius: 18px;
  }
  .nav-menu.open { display: flex; }

  .stats-grid,
  .feature-grid,
  .release-grid,
  .timeline,
  .two-col,
  .mini-grid,
  .metric-grid,
  .footer-grid { grid-template-columns: 1fr; }

  .faq-search-form { grid-template-columns: 1fr; }
  .faq-search-form { flex-direction: column; }
  .faq-search-actions { width: 100%; }
  .faq-search-actions .btn { flex: 1 1 0; min-width: 0; }
  .faq-search-field { flex-basis: 100%; }
  .footer-links-grid { grid-template-columns: 1fr; }
  .footer-bottom { flex-direction: column; align-items: flex-start; }
  .faq-category-bar { justify-content: flex-start; }
  .faq-results-meta { flex-direction: column; }
  .coming-soon-card {
    min-height: 240px;
    font-size: clamp(1.8rem, 9vw, 3rem);
  }

  .usecases-hero-grid,
  .usecases-overview-grid,
  .rules-grid {
    grid-template-columns: 1fr;
  }

  .hero-interactive-lab {
    padding: 0.85rem;
  }

  .builder-viewer-row {
    grid-template-columns: 1fr;
    gap: 0.65rem;
  }

  .builder-input-card {
    max-width: none;
  }

  .builder-input-head {
    flex-direction: column;
    align-items: flex-start;
    margin-bottom: 0.55rem;
  }

  .builder-input-row {
    padding: 0.5rem 0.55rem;
  }

  .builder-stack {
    min-height: 180px;
  }

  .mini-protein-viewer {
    height: 190px;
  }

  .builder-toolbar-demo .toolbar-btn {
    flex: 1 1 calc(50% - 0.5rem);
  }

  .usecases-jump {
    gap: 0.5rem;
  }

  .usecases-jump a {
    font-size: 0.82rem;
    padding: 0.5rem 0.75rem;
  }

  .usecases-hero {
    margin-bottom: 1.2rem;
  }

  .usecases-hero h1 {
    max-width: none;
    font-size: clamp(1.75rem, 8.5vw, 2.35rem);
    line-height: 1.08;
  }

  .usecases-hero-grid {
    gap: 0.75rem;
  }

  .usecases-hero-card {
    padding: 1rem;
  }

  .usecases-hero-card strong {
    font-size: 1rem;
    line-height: 1.3;
  }

  .usecases-jump a {
    flex: 1 1 calc(50% - 0.5rem);
    text-align: center;
  }

  .pill-list span {
    font-size: 0.82rem;
    padding: 0.45rem 0.68rem;
  }

  .usecase-accordion {
    gap: 0.7rem;
  }

  .usecase-accordion details {
    padding: 0.9rem;
  }

  .usecase-accordion summary {
    font-size: 0.95rem;
    line-height: 1.35;
    padding-right: 1.6rem;
  }

  .usecase-accordion summary::after {
    top: -0.05rem;
    font-size: 1.2rem;
  }

  .usecase-list,
  .usecase-ordered {
    padding-left: 0.95rem;
  }

  .table-row {
    grid-template-columns: 1.6fr repeat(3, minmax(0, 1fr));
    gap: 0.5rem;
    font-size: 0.92rem;
  }

  .hero { padding-top: 4.5rem; }
  .hero h1 { max-width: 13ch; }
  .section { padding: 4.25rem 0; }
  .hero-bg-viewer {
    top: 18%;
    right: -16%;
    width: min(72vw, 360px);
    height: 62%;
    opacity: 0.18;
  }
  
  .viewer-grid { grid-template-columns: 1fr; }
  .protein-viewer { height: 400px; }
}

/* Protein Viewer Section */
.viewer-container {
  margin-top: 2.5rem;
}

.viewer-grid {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 2.5rem;
  align-items: stretch;
}

.viewer-panel {
  display: flex;
  flex-direction: column;
  gap: 1.5rem;
}

.protein-viewer {
  position: relative;
  width: 100%;
  height: 520px;
  border-radius: 20px;
  background: linear-gradient(135deg, rgba(15, 24, 42, 0.8), rgba(20, 35, 60, 0.6));
  border: 1px solid rgba(99, 230, 255, 0.15);
  overflow: hidden;
  box-shadow: 0 0 60px rgba(99, 230, 255, 0.08), inset 0 0 40px rgba(99, 230, 255, 0.04);
  transition: all 0.4s ease;
}

.protein-viewer:hover {
  border-color: rgba(99, 230, 255, 0.25);
  box-shadow: 0 0 80px rgba(99, 230, 255, 0.12), inset 0 0 60px rgba(99, 230, 255, 0.06);
}

.viewer-controls {
  display: flex;
  gap: 0.75rem;
  flex-wrap: wrap;
}

.control-btn {
  flex: 1;
  min-width: 100px;
  padding: 0.65rem 1rem;
  border-radius: 12px;
  border: 1px solid rgba(99, 230, 255, 0.2);
  background: rgba(99, 230, 255, 0.08);
  color: #cbf6ff;
  font-weight: 600;
  font-size: 0.9rem;
  cursor: pointer;
  transition: all 0.3s cubic-bezier(0.23, 1, 0.32, 1);
}

.control-btn:hover {
  background: rgba(99, 230, 255, 0.15);
  border-color: rgba(99, 230, 255, 0.35);
  transform: translateY(-2px);
  box-shadow: 0 4px 16px rgba(99, 230, 255, 0.12);
}

.control-btn:active {
  transform: translateY(0);
}

.viewer-info {
  display: flex;
  flex-direction: column;
  justify-content: flex-start;
}

.info-card {
  padding: 2rem;
  border-radius: 18px;
  background: linear-gradient(135deg, rgba(255, 255, 255, 0.04), rgba(99, 230, 255, 0.03));
  border: 1px solid rgba(99, 230, 255, 0.12);
  display: flex;
  flex-direction: column;
  gap: 1.5rem;
}

.info-card h3 {
  font-size: 1.35rem;
  margin: 0;
  color: #f4f8ff;
}

.info-card > p {
  color: var(--muted);
  margin: 0;
}

.info-section {
  padding-top: 1rem;
  border-top: 1px solid rgba(255, 255, 255, 0.06);
}

.info-section strong {
  display: block;
  margin-bottom: 0.6rem;
  color: #cbf6ff;
  font-size: 0.95rem;
}

.control-list {
  list-style: none;
  padding: 0;
  margin: 0;
  display: flex;
  flex-direction: column;
  gap: 0.5rem;
}

.control-list li {
  color: var(--muted);
  font-size: 0.95rem;
}

.control-list strong {
  color: #cbf6ff;
  font-weight: 600;
}

.info-section p {
  color: var(--muted);
  margin: 0;
  font-size: 0.95rem;
}

.info-card .btn {
  margin-top: 0.5rem;
  text-align: center;
  display: inline-block;
}

@media (max-width: 1080px) {
  .viewer-grid { grid-template-columns: 1fr; }
  .protein-viewer { height: 450px; }
}

@media (max-width: 760px) {
  .viewer-panel,
  .viewer-grid { gap: 1.5rem; }
  .protein-viewer { height: 380px; }
  .viewer-controls { gap: 0.5rem; }
  .control-btn { min-width: 80px; padding: 0.5rem 0.75rem; font-size: 0.85rem; }
  .info-card { padding: 1.5rem; }
  .info-card h3 { font-size: 1.15rem; }
}
