﻿:root {
  --bg: #08090c;
  --panel: rgba(14, 17, 24, 0.74);
  --panel-strong: rgba(17, 20, 28, 0.92);
  --panel-soft: rgba(255, 255, 255, 0.03);
  --text: #f5f7fb;
  --muted: #9ea7b8;
  --line: rgba(255, 255, 255, 0.08);
  --line-strong: rgba(255, 255, 255, 0.16);
  --accent: #86f1c6;
  --accent-2: #67a8ff;
  --accent-3: #ffc76b;
  --shadow: 0 30px 80px rgba(0, 0, 0, 0.45);
  --radius-xl: 34px;
  --radius-lg: 24px;
  --radius-md: 18px;
}

* {
  box-sizing: border-box;
}

html {
  scroll-behavior: smooth;
}

body {
  margin: 0;
  min-height: 100vh;
  color: var(--text);
  background:
    radial-gradient(circle at 14% 10%, rgba(103, 168, 255, 0.2), transparent 24rem),
    radial-gradient(circle at 88% 14%, rgba(134, 241, 198, 0.16), transparent 24rem),
    linear-gradient(180deg, #08090c 0%, #0b0e13 100%);
  font-family: "SUIT", sans-serif;
}

.bg-orb {
  position: fixed;
  inset: auto;
  filter: blur(60px);
  pointer-events: none;
  opacity: 0.6;
}

.orb-a {
  top: 80px;
  right: 12%;
  width: 240px;
  height: 240px;
  background: rgba(103, 168, 255, 0.2);
}

.orb-b {
  top: 320px;
  left: 10%;
  width: 280px;
  height: 280px;
  background: rgba(134, 241, 198, 0.14);
}

.grid-noise {
  position: fixed;
  inset: 0;
  pointer-events: none;
  background-image:
    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: 36px 36px;
  mask-image: radial-gradient(circle at center, black, transparent 82%);
  opacity: 0.45;
}

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

.shell {
  position: relative;
  width: min(1240px, calc(100% - 32px));
  margin: 0 auto;
  padding: 18px 0 80px;
}

.topbar {
  position: sticky;
  top: 14px;
  z-index: 20;
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 16px;
  padding: 14px 18px;
  border: 1px solid var(--line);
  border-radius: 999px;
  background: rgba(10, 12, 18, 0.7);
  backdrop-filter: blur(18px);
  box-shadow: 0 18px 40px rgba(0, 0, 0, 0.26);
}

.brand,
.eyebrow,
h1,
h2,
.hero-badge,
.timeline-step,
.workflow-card span,
.release-label {
  font-family: "Space Grotesk", "SUIT", sans-serif;
}

.brand {
  display: inline-flex;
  align-items: center;
  gap: 10px;
  font-weight: 700;
  letter-spacing: 0.03em;
}

.brand-mark {
  width: 12px;
  height: 12px;
  border-radius: 999px;
  background: linear-gradient(135deg, var(--accent), var(--accent-2));
  box-shadow: 0 0 24px rgba(134, 241, 198, 0.5);
}

.nav {
  display: flex;
  flex-wrap: wrap;
  gap: 18px;
  color: var(--muted);
  font-size: 0.95rem;
}

.topbar-side {
  display: flex;
  align-items: center;
  gap: 14px;
}

.lang-switcher {
  display: inline-flex;
  align-items: center;
  gap: 10px;
  padding: 6px 10px;
  border: 1px solid var(--line);
  border-radius: 999px;
  background: rgba(255, 255, 255, 0.03);
}

.lang-label {
  color: var(--muted);
  font-size: 0.82rem;
  font-weight: 700;
  letter-spacing: 0.06em;
  text-transform: uppercase;
}

.lang-select {
  min-width: 180px;
  min-height: 34px;
  padding: 0 12px;
  border: 1px solid var(--line);
  border-radius: 999px;
  color: var(--text);
  background: rgba(8, 9, 12, 0.85);
  font: inherit;
  outline: none;
}

.lang-select:focus {
  border-color: rgba(134, 241, 198, 0.45);
  box-shadow: 0 0 0 3px rgba(134, 241, 198, 0.14);
}

.hero {
  display: grid;
  grid-template-columns: minmax(0, 0.9fr) minmax(0, 1.1fr);
  gap: 24px;
  align-items: stretch;
  padding-top: 34px;
}

.hero-copy,
.stage-window,
.section,
.contact-card {
  border: 1px solid var(--line);
  box-shadow: var(--shadow);
}

.hero-copy {
  padding: 38px;
  border-radius: var(--radius-xl);
  background:
    linear-gradient(180deg, rgba(255, 255, 255, 0.04), transparent 30%),
    linear-gradient(135deg, rgba(16, 20, 28, 0.96), rgba(10, 12, 18, 0.9));
}

.hero-badge {
  display: inline-flex;
  align-items: center;
  min-height: 34px;
  padding: 0 12px;
  border: 1px solid rgba(134, 241, 198, 0.2);
  border-radius: 999px;
  color: var(--accent);
  background: rgba(134, 241, 198, 0.08);
  font-size: 0.84rem;
  font-weight: 700;
}

.eyebrow {
  margin: 18px 0 12px;
  color: var(--muted);
  font-size: 0.78rem;
  font-weight: 700;
  letter-spacing: 0.12em;
  text-transform: uppercase;
}

h1 {
  margin: 0;
  font-size: clamp(2.6rem, 5.5vw, 5.2rem);
  line-height: 0.93;
  letter-spacing: -0.05em;
}

.hero-text,
.block-card p,
.callout-grid p,
.workflow-card p,
.showcase-card p,
.release-card p,
.contact-text {
  color: var(--muted);
  line-height: 1.75;
}

.hero-text {
  margin: 24px 0 0;
  max-width: 40rem;
  font-size: 1.04rem;
}

.hero-actions,
.release-actions,
.contact-actions {
  display: flex;
  flex-wrap: wrap;
  gap: 12px;
  margin-top: 26px;
}

.button {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  min-height: 50px;
  padding: 0 18px;
  border-radius: 999px;
  font-weight: 700;
  transition: transform 160ms ease, box-shadow 160ms ease, border-color 160ms ease;
}

.button:hover,
.contact-link:hover {
  transform: translateY(-1px);
}

.button-primary {
  color: #07110e;
  background: linear-gradient(135deg, var(--accent), #baf9de);
  box-shadow: 0 18px 34px rgba(134, 241, 198, 0.24);
}

.button-secondary {
  border: 1px solid var(--line-strong);
  background: rgba(255, 255, 255, 0.04);
}

.hero-meta {
  display: flex;
  flex-wrap: wrap;
  gap: 10px;
  margin-top: 28px;
}

.hero-meta span {
  padding: 10px 12px;
  border: 1px solid var(--line);
  border-radius: 999px;
  color: #dbe2ee;
  background: rgba(255, 255, 255, 0.03);
  font-size: 0.9rem;
}

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

.stat-grid article {
  padding: 16px;
  border: 1px solid var(--line);
  border-radius: 18px;
  background: rgba(255, 255, 255, 0.03);
}

.stat-grid span {
  display: block;
  margin-bottom: 8px;
  color: var(--muted);
  font-size: 0.78rem;
  text-transform: uppercase;
  letter-spacing: 0.08em;
}

.stat-grid strong {
  display: block;
  line-height: 1.5;
}

.stage-window {
  overflow: hidden;
  border-radius: var(--radius-xl);
  background:
    linear-gradient(180deg, rgba(255, 255, 255, 0.04), transparent 26%),
    linear-gradient(135deg, rgba(13, 16, 22, 0.96), rgba(8, 10, 14, 0.96));
}

.stage-top {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 12px;
  padding: 14px 18px;
  border-bottom: 1px solid var(--line);
  color: var(--muted);
  font-size: 0.88rem;
}

.stage-dots {
  display: flex;
  gap: 8px;
}

.stage-dots span {
  width: 11px;
  height: 11px;
  border-radius: 999px;
  background: rgba(255, 255, 255, 0.18);
}

.stage-dots span:first-child {
  background: #ff7f6d;
}

.stage-dots span:nth-child(2) {
  background: #ffc76b;
}

.stage-dots span:last-child {
  background: #86f1c6;
}

.stage-body {
  display: grid;
  grid-template-columns: 220px minmax(0, 1fr);
  min-height: 640px;
}

.stage-sidebar {
  padding: 22px 16px;
  border-right: 1px solid var(--line);
  background: rgba(255, 255, 255, 0.02);
}

.sidebar-title,
.panel-label {
  margin: 0 0 14px;
  color: var(--muted);
  font-size: 0.76rem;
  letter-spacing: 0.1em;
  text-transform: uppercase;
}

.sidebar-item {
  padding: 12px 14px;
  border: 1px solid transparent;
  border-radius: 16px;
  margin-bottom: 10px;
  color: var(--muted);
  background: rgba(255, 255, 255, 0.02);
}

.sidebar-item.active {
  color: var(--text);
  border-color: rgba(134, 241, 198, 0.16);
  background: rgba(134, 241, 198, 0.08);
}

.stage-main {
  padding: 24px;
}

.stage-headline {
  display: flex;
  align-items: flex-start;
  justify-content: space-between;
  gap: 16px;
}

.stage-headline h2,
.section-header h2,
.callout-copy h2,
.contact-card h2 {
  margin: 0;
  font-size: clamp(1.8rem, 3vw, 3rem);
  line-height: 1.02;
  letter-spacing: -0.04em;
}

.live-pill {
  padding: 10px 12px;
  border: 1px solid rgba(134, 241, 198, 0.18);
  border-radius: 999px;
  color: var(--accent);
  background: rgba(134, 241, 198, 0.08);
  font-weight: 700;
}

.timeline-bar {
  display: grid;
  grid-template-columns: repeat(5, minmax(0, 1fr));
  gap: 10px;
  margin-top: 22px;
}

.timeline-step {
  padding: 14px 10px;
  border: 1px solid var(--line);
  border-radius: 16px;
  text-align: center;
  font-size: 0.9rem;
  font-weight: 700;
}

.timeline-step.done {
  color: #c9ffee;
  background: rgba(134, 241, 198, 0.1);
}

.timeline-step.current {
  color: #08110e;
  background: linear-gradient(135deg, var(--accent), #baf9de);
}

.timeline-step.pending {
  color: var(--muted);
  background: rgba(255, 255, 255, 0.03);
}

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

.block-card,
.callout-grid article,
.workflow-card,
.showcase-card,
.release-card,
.privacy-card {
  border: 1px solid var(--line);
  background: rgba(255, 255, 255, 0.03);
}

.block-card {
  padding: 18px;
  border-radius: 20px;
}

.block-card.feature {
  background: linear-gradient(180deg, rgba(103, 168, 255, 0.12), rgba(134, 241, 198, 0.08));
}

.block-card span {
  display: inline-flex;
  margin-bottom: 10px;
  color: var(--accent);
  font-size: 0.82rem;
  font-weight: 700;
}

.block-card strong {
  display: block;
  margin-bottom: 8px;
}

.block-card p {
  margin: 0;
  font-size: 0.93rem;
}

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

.ops-grid article {
  padding: 16px;
  border: 1px solid var(--line);
  border-radius: 18px;
  background: rgba(255, 255, 255, 0.03);
}

.ops-grid span {
  display: block;
  margin-bottom: 8px;
  color: var(--muted);
  font-size: 0.8rem;
}

.ops-grid strong {
  font-size: 0.96rem;
}

.section {
  margin-top: 24px;
  padding: 30px;
  border-radius: var(--radius-xl);
  background:
    linear-gradient(180deg, rgba(255, 255, 255, 0.03), transparent 24%),
    rgba(11, 14, 20, 0.9);
}

.callout {
  display: grid;
  grid-template-columns: minmax(0, 0.9fr) minmax(0, 1.1fr);
  gap: 22px;
  align-items: center;
}

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

.callout-grid article,
.workflow-card,
.showcase-card,
.release-card {
  padding: 20px;
  border-radius: 22px;
}

.callout-grid strong,
.workflow-card strong,
.showcase-card strong,
.release-card strong {
  display: block;
  margin-bottom: 10px;
}

.callout-grid p,
.workflow-card p,
.showcase-card p,
.release-card p {
  margin: 0;
}

.section-header {
  max-width: 52rem;
  margin-bottom: 18px;
}

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

.workflow-card span {
  display: inline-flex;
  margin-bottom: 28px;
  color: var(--accent);
  font-size: 0.88rem;
  font-weight: 700;
}

.showcase-grid {
  display: grid;
  grid-template-columns: 1.2fr 1fr 1fr;
  gap: 12px;
}

.showcase-card.large {
  grid-row: span 2;
  min-height: 100%;
}

.command-list {
  display: grid;
  gap: 10px;
  margin-top: 18px;
}

.command-list code {
  display: block;
  padding: 12px 14px;
  border: 1px solid var(--line);
  border-radius: 14px;
  color: #d8e3f3;
  background: rgba(8, 10, 14, 0.55);
  font-family: "Space Grotesk", "SUIT", sans-serif;
  font-size: 0.88rem;
  overflow-wrap: anywhere;
}

.cmd-row {
  display: flex;
  align-items: center;
  gap: 8px;
}

.cmd-row code {
  flex: 1;
}

.copy-btn {
  flex-shrink: 0;
  width: 34px;
  height: 34px;
  border: 1px solid var(--line);
  border-radius: 10px;
  background: rgba(255,255,255,0.04);
  color: var(--muted);
  font-size: 1rem;
  cursor: pointer;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  transition: color 160ms, border-color 160ms, background 160ms;
}

.copy-btn:hover {
  color: var(--accent);
  border-color: rgba(134, 241, 198, 0.3);
  background: rgba(134, 241, 198, 0.08);
}

.copy-btn.copied {
  color: var(--accent);
}

.release-grid {
  display: grid;
  grid-template-columns: 1.25fr 1fr 1fr;
  gap: 12px;
}

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

.privacy-card {
  padding: 20px;
  border-radius: 22px;
}

.privacy-card strong {
  display: block;
  margin-bottom: 10px;
}

.privacy-card p {
  margin: 0;
  color: var(--muted);
  line-height: 1.72;
}

.release-card.primary {
  background: linear-gradient(135deg, rgba(103, 168, 255, 0.12), rgba(134, 241, 198, 0.08));
}

.release-label {
  display: inline-flex;
  color: var(--accent);
  font-size: 0.76rem;
  font-weight: 700;
  letter-spacing: 0.1em;
  text-transform: uppercase;
}

.contact-card {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 24px;
  padding: 28px;
  border-radius: var(--radius-xl);
  background: linear-gradient(135deg, rgba(16, 20, 28, 0.96), rgba(10, 12, 18, 0.96));
}

.contact-text {
  margin: 16px 0 0;
}

.contact-link {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  min-height: 50px;
  padding: 0 18px;
  border: 1px solid var(--line-strong);
  border-radius: 999px;
  background: rgba(255, 255, 255, 0.04);
  font-weight: 700;
}

.footer {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 16px;
  padding: 22px 8px 0;
  color: var(--muted);
}

.footer p {
  margin: 0;
}

.footer-links {
  display: flex;
  flex-wrap: wrap;
  gap: 14px;
  align-items: center;
}

.footer-button {
  border: 0;
  padding: 0;
  color: inherit;
  background: transparent;
  font: inherit;
  cursor: pointer;
}

.consent-banner {
  position: fixed;
  right: 18px;
  bottom: 18px;
  z-index: 30;
  width: min(460px, calc(100% - 24px));
  padding: 18px;
  border: 1px solid var(--line-strong);
  border-radius: 24px;
  background: rgba(11, 14, 20, 0.96);
  box-shadow: var(--shadow);
  backdrop-filter: blur(18px);
}

.consent-copy strong {
  display: block;
  margin-bottom: 8px;
}

.consent-copy p {
  margin: 0;
  color: var(--muted);
  line-height: 1.65;
}

.consent-actions {
  display: flex;
  flex-wrap: wrap;
  gap: 10px;
  margin-top: 16px;
}

@media (max-width: 1120px) {
  .hero,
  .callout,
  .workflow-grid,
  .showcase-grid,
  .release-grid,
  .privacy-grid,
  .block-strip,
  .ops-grid,
  .stat-grid {
    grid-template-columns: 1fr;
  }

  .stage-body {
    grid-template-columns: 1fr;
  }

  .stage-sidebar {
    border-right: 0;
    border-bottom: 1px solid var(--line);
  }

  .timeline-bar,
  .callout-grid {
    grid-template-columns: 1fr;
  }

  .showcase-card.large {
    grid-row: auto;
  }
}

@media (max-width: 760px) {
  .shell {
    width: min(100% - 20px, 1240px);
  }

  .topbar {
    flex-wrap: wrap;
    border-radius: 28px;
  }

  .contact-card,
  .footer {
    flex-direction: column;
    align-items: flex-start;
    border-radius: 28px;
  }

  .hero-copy,
  .stage-main,
  .section,
  .contact-card {
    padding: 22px;
  }

  h1 {
    font-size: clamp(2.2rem, 12vw, 4rem);
  }

  .hero-meta {
    flex-direction: column;
  }
}

/* ─── UX Enhancements ─────────────────────────────────────── */

/* Scroll progress bar */
.scroll-progress {
  position: fixed;
  top: 0;
  left: 0;
  height: 2px;
  background: linear-gradient(90deg, var(--accent), var(--accent-2));
  z-index: 100;
  width: 0%;
  transition: width 80ms linear;
  pointer-events: none;
}

/* Nav link hover & active state */
.nav a {
  position: relative;
  transition: color 200ms ease;
}

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

.nav a::after {
  content: '';
  position: absolute;
  bottom: -3px;
  left: 0;
  width: 100%;
  height: 1.5px;
  background: var(--accent);
  transform: scaleX(0);
  transform-origin: left;
  transition: transform 220ms ease;
}

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

/* Card hover lift */
.callout-grid article,
.workflow-card,
.showcase-card,
.release-card,
.block-card {
  transition: transform 220ms ease, border-color 220ms ease, box-shadow 220ms ease;
}

.callout-grid article:hover,
.workflow-card:hover,
.showcase-card:hover,
.release-card:hover,
.block-card:hover {
  transform: translateY(-4px);
  border-color: rgba(134, 241, 198, 0.22);
  box-shadow: 0 14px 36px rgba(0, 0, 0, 0.32);
}

/* Live pill pulsing dot */
.live-pill {
  position: relative;
  padding-left: 28px;
}

.live-pill::before {
  content: '';
  position: absolute;
  left: 12px;
  top: 50%;
  transform: translateY(-50%);
  width: 7px;
  height: 7px;
  border-radius: 50%;
  background: var(--accent);
  animation: dot-pulse 1.8s ease-in-out infinite;
}

@keyframes dot-pulse {
  0%, 100% { opacity: 1; box-shadow: 0 0 0 0 rgba(134, 241, 198, 0.5); }
  50% { opacity: 0.6; box-shadow: 0 0 0 6px rgba(134, 241, 198, 0); }
}

/* Scroll reveal animation */
.reveal {
  opacity: 0;
  transform: translateY(24px);
  transition: opacity 540ms ease, transform 540ms ease;
}

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

/* Button focus ring */
.button:focus-visible,
.contact-link:focus-visible {
  outline: 2px solid var(--accent);
  outline-offset: 3px;
}

/* Mobile hamburger menu */
.menu-toggle {
  display: none;
  width: 40px;
  height: 40px;
  border: 1px solid var(--line-strong);
  border-radius: 12px;
  background: rgba(255, 255, 255, 0.04);
  cursor: pointer;
  flex-direction: column;
  justify-content: center;
  align-items: center;
  gap: 5px;
  padding: 0;
  flex-shrink: 0;
}

.menu-toggle span {
  display: block;
  width: 18px;
  height: 1.5px;
  background: var(--text);
  border-radius: 2px;
  transition: transform 200ms ease, opacity 200ms ease;
}

.menu-toggle[aria-expanded="true"] span:nth-child(1) {
  transform: translateY(6.5px) rotate(45deg);
}

.menu-toggle[aria-expanded="true"] span:nth-child(2) {
  opacity: 0;
}

.menu-toggle[aria-expanded="true"] span:nth-child(3) {
  transform: translateY(-6.5px) rotate(-45deg);
}

@media (max-width: 760px) {
  .menu-toggle {
    display: flex;
    margin-left: auto;
  }

  .topbar-side {
    display: none;
    flex-direction: column;
    align-items: flex-start;
    width: 100%;
    padding-top: 14px;
    margin-top: 6px;
    border-top: 1px solid var(--line);
  }

  .topbar-side.open {
    display: flex;
  }

  .nav {
    flex-direction: column;
    gap: 10px;
    width: 100%;
  }

  .lang-switcher {
    width: 100%;
  }

  .lang-select {
    flex: 1;
  }
}

/* ─── GitHub Nav Link ─────────────────────────────────────── */

.nav-github {
  display: inline-flex;
  align-items: center;
  gap: 6px;
  padding: 7px 13px;
  border: 1px solid var(--line-strong);
  border-radius: 999px;
  background: rgba(255,255,255,0.04);
  color: var(--muted);
  font-size: 0.88rem;
  font-weight: 600;
  transition: color 160ms, border-color 160ms, background 160ms;
}

.nav-github:hover {
  color: var(--text);
  border-color: rgba(134, 241, 198, 0.3);
  background: rgba(134, 241, 198, 0.06);
}

/* ─── Success Cases ───────────────────────────────────────── */

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

@media (max-width: 1120px) {
  .cases-grid {
    grid-template-columns: repeat(2, minmax(0, 1fr));
  }
}

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

.case-card {
  padding: 20px;
  border: 1px solid var(--line);
  border-radius: 22px;
  background: rgba(255,255,255,0.03);
  transition: transform 220ms ease, border-color 220ms ease, box-shadow 220ms ease;
}

.case-card:hover {
  transform: translateY(-4px);
  border-color: rgba(134, 241, 198, 0.22);
  box-shadow: 0 14px 36px rgba(0,0,0,0.32);
}

.case-card.primary-case {
  background: linear-gradient(135deg, rgba(103, 168, 255, 0.1), rgba(134, 241, 198, 0.07));
  border-color: rgba(134, 241, 198, 0.18);
}

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

.case-badge {
  display: inline-flex;
  align-items: center;
  padding: 4px 10px;
  border-radius: 999px;
  font-size: 0.76rem;
  font-weight: 700;
  letter-spacing: 0.04em;
}

.done-badge { color: #c9ffee; background: rgba(134,241,198,0.12); border: 1px solid rgba(134,241,198,0.22); }
.running-badge { color: #ffc76b; background: rgba(255,199,107,0.1); border: 1px solid rgba(255,199,107,0.22); }
.queued-badge { color: #67a8ff; background: rgba(103,168,255,0.1); border: 1px solid rgba(103,168,255,0.22); }
.closed-badge { color: var(--muted); background: rgba(255,255,255,0.05); border: 1px solid var(--line); }

.case-github-link {
  display: inline-flex;
  align-items: center;
  gap: 5px;
  color: var(--muted);
  font-size: 0.78rem;
  transition: color 160ms;
}

.case-github-link:hover { color: var(--text); }

.case-title {
  display: block;
  font-size: 1.1rem;
  margin-bottom: 8px;
}

.case-desc {
  margin: 0 0 14px;
  color: var(--muted);
  font-size: 0.9rem;
  line-height: 1.7;
}

.case-steps {
  display: flex;
  flex-wrap: wrap;
  gap: 6px;
}

.case-step {
  padding: 5px 10px;
  border-radius: 8px;
  font-size: 0.8rem;
  font-weight: 700;
}

.done-step    { color: #c9ffee; background: rgba(134,241,198,0.12); }
.current-step { color: #ffc76b; background: rgba(255,199,107,0.12); }
.queued-step  { color: #67a8ff; background: rgba(103,168,255,0.1); }
.closed-step  { color: var(--muted); background: rgba(255,255,255,0.06); }
.plan-done-step { color: #c9ffee; background: rgba(134,241,198,0.12); }

/* ─── App Mockup (In Action) ──────────────────────────────── */

.app-mockup {
  margin-top: 6px;
  overflow: hidden;
  border-radius: var(--radius-lg);
  border: 1px solid var(--line-strong);
  box-shadow: 0 40px 100px rgba(0,0,0,0.6);
}

.app-chrome {
  font-size: 0.78rem;
  background: #0f1117;
  color: var(--text);
}

.app-titlebar {
  display: flex;
  align-items: center;
  gap: 12px;
  padding: 8px 14px;
  background: #13161f;
  border-bottom: 1px solid rgba(255,255,255,0.07);
  flex-wrap: wrap;
}

.app-title-dots {
  display: flex;
  gap: 6px;
  flex-shrink: 0;
}

.app-title-dots span {
  width: 10px;
  height: 10px;
  border-radius: 999px;
  background: rgba(255,255,255,0.15);
}

.app-title-dots span:nth-child(1) { background: #ff6b6b; }
.app-title-dots span:nth-child(2) { background: #ffc76b; }
.app-title-dots span:nth-child(3) { background: #86f1c6; }

.app-title-text {
  font-weight: 700;
  font-size: 0.82rem;
  color: var(--text);
}

.app-title-crumb {
  display: flex;
  align-items: center;
  gap: 4px;
  color: var(--muted);
  font-size: 0.78rem;
  padding: 3px 8px;
  border: 1px solid var(--line);
  border-radius: 6px;
}

.crumb-sep { color: rgba(255,255,255,0.2); }
.crumb-active { color: var(--accent); font-weight: 600; }

.app-title-status {
  display: flex;
  align-items: center;
  gap: 6px;
  color: var(--muted);
  font-size: 0.75rem;
  flex: 1;
}

.status-dot-run {
  width: 7px;
  height: 7px;
  border-radius: 50%;
  background: var(--accent);
  animation: dot-pulse 1.8s ease-in-out infinite;
  flex-shrink: 0;
}

.app-title-pill {
  padding: 4px 10px;
  border-radius: 6px;
  font-size: 0.75rem;
  font-weight: 700;
}

.app-title-pill.running {
  color: var(--accent);
  background: rgba(134,241,198,0.1);
  border: 1px solid rgba(134,241,198,0.2);
}

.app-livebar {
  display: flex;
  align-items: center;
  gap: 10px;
  padding: 6px 14px;
  background: rgba(103,168,255,0.08);
  border-bottom: 1px solid rgba(103,168,255,0.12);
  flex-wrap: wrap;
}

.live-label {
  color: #67a8ff;
  font-weight: 700;
  font-size: 0.72rem;
  letter-spacing: 0.1em;
  flex-shrink: 0;
  padding: 2px 7px;
  border: 1px solid rgba(103,168,255,0.3);
  border-radius: 4px;
}

.app-livebar > span:nth-child(2) {
  font-size: 0.8rem;
  font-weight: 600;
  flex: 1;
}

.app-livebar-right {
  color: var(--muted);
  font-size: 0.75rem;
}

.app-livebar-track {
  width: 100%;
  height: 2px;
  background: rgba(255,255,255,0.07);
  border-radius: 2px;
  order: 10;
}

.app-livebar-fill {
  height: 100%;
  background: linear-gradient(90deg, #67a8ff, var(--accent));
  border-radius: 2px;
}

.app-subbar {
  padding: 4px 14px;
  background: rgba(0,0,0,0.2);
  color: var(--muted);
  font-size: 0.72rem;
  border-bottom: 1px solid var(--line);
}

.app-body {
  display: grid;
  grid-template-columns: 200px minmax(0,1fr) 260px;
  min-height: 480px;
}

@media (max-width: 1120px) {
  .app-body {
    grid-template-columns: 1fr;
  }
  .app-sidebar, .app-right {
    display: none;
  }
}

.app-sidebar {
  border-right: 1px solid var(--line);
  background: rgba(255,255,255,0.015);
  padding: 10px 0;
  overflow: hidden;
}

.app-sidebar-group {
  padding: 0 8px;
}

.app-sidebar-icon-row {
  display: flex;
  gap: 4px;
  margin-bottom: 8px;
}

.app-sidebar-icon {
  width: 28px;
  height: 28px;
  border-radius: 6px;
  display: flex;
  align-items: center;
  justify-content: center;
  color: var(--muted);
  font-size: 0.9rem;
  cursor: pointer;
}

.app-sidebar-icon.active {
  background: rgba(134,241,198,0.1);
  color: var(--accent);
}

.app-sidebar-heading {
  color: var(--muted);
  font-size: 0.68rem;
  font-weight: 700;
  letter-spacing: 0.1em;
  text-transform: uppercase;
  margin: 6px 0 6px 4px;
}

.app-project-row {
  display: flex;
  flex-direction: column;
  gap: 3px;
  padding: 6px 8px;
  border-radius: 8px;
  border: 1px solid transparent;
  margin-bottom: 4px;
  cursor: pointer;
  text-decoration: none;
  color: inherit;
  transition: background 160ms, border-color 160ms;
}

.app-project-row:hover {
  background: rgba(255,255,255,0.04);
}

.app-project-row.active {
  background: rgba(134,241,198,0.06);
  border-color: rgba(134,241,198,0.14);
}

.app-project-name {
  font-size: 0.8rem;
  font-weight: 600;
  color: var(--text);
}

.app-project-badge {
  font-size: 0.68rem;
  padding: 1px 6px;
  border-radius: 4px;
  align-self: flex-start;
}

.app-project-badge.queued  { color: #67a8ff; background: rgba(103,168,255,0.1); }
.app-project-badge.running { color: #ffc76b; background: rgba(255,199,107,0.1); }
.app-project-badge.done    { color: #c9ffee; background: rgba(134,241,198,0.1); }
.app-project-badge.closed  { color: var(--muted); background: rgba(255,255,255,0.05); }

.app-main {
  display: flex;
  flex-direction: column;
  border-right: 1px solid var(--line);
}

.app-tabs {
  display: flex;
  gap: 0;
  border-bottom: 1px solid var(--line);
  background: rgba(0,0,0,0.15);
  padding: 0 12px;
  overflow-x: auto;
}

.app-tab {
  padding: 8px 12px;
  border: 0;
  border-bottom: 2px solid transparent;
  background: transparent;
  color: var(--muted);
  font-size: 0.75rem;
  font-weight: 600;
  cursor: pointer;
  white-space: nowrap;
  transition: color 160ms, border-color 160ms;
}

.app-tab.active {
  color: var(--text);
  border-bottom-color: var(--accent);
}

.app-chat-body {
  flex: 1;
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  padding: 30px;
  gap: 10px;
  color: var(--muted);
  text-align: center;
}

.app-chat-icon {
  font-size: 2.4rem;
  opacity: 0.3;
}

.app-chat-body p {
  margin: 0;
  font-size: 0.82rem;
  line-height: 1.6;
  max-width: 280px;
}

.app-chat-footer {
  border-top: 1px solid var(--line);
  padding: 10px 12px;
  background: rgba(0,0,0,0.1);
}

.app-model-row {
  display: flex;
  align-items: center;
  gap: 8px;
  margin-bottom: 8px;
  flex-wrap: wrap;
}

.app-model-row label {
  color: var(--muted);
  font-size: 0.68rem;
  text-transform: uppercase;
  letter-spacing: 0.08em;
}

.app-select-fake {
  padding: 4px 10px;
  border: 1px solid var(--line);
  border-radius: 6px;
  color: var(--muted);
  font-size: 0.72rem;
  background: rgba(255,255,255,0.03);
}

.app-input-row {
  display: flex;
  gap: 8px;
  align-items: center;
}

.app-input-fake {
  flex: 1;
  padding: 8px 12px;
  border: 1px solid var(--line);
  border-radius: 10px;
  color: var(--muted);
  font-size: 0.75rem;
  background: rgba(255,255,255,0.03);
}

.app-send-btn {
  width: 30px;
  height: 30px;
  border-radius: 8px;
  border: 0;
  background: var(--accent);
  color: #07110e;
  font-size: 0.8rem;
  cursor: pointer;
  display: flex;
  align-items: center;
  justify-content: center;
}

.app-right {
  padding: 10px;
  background: rgba(255,255,255,0.01);
  overflow-y: auto;
  display: flex;
  flex-direction: column;
  gap: 8px;
}

.app-right-header {
  display: flex;
  flex-wrap: wrap;
  gap: 4px;
}

.app-run-chip {
  padding: 3px 8px;
  border-radius: 5px;
  font-size: 0.68rem;
  font-weight: 600;
}

.running-chip { color: var(--accent); background: rgba(134,241,198,0.1); border: 1px solid rgba(134,241,198,0.18); }
.neutral-chip { color: var(--muted); background: rgba(255,255,255,0.04); border: 1px solid var(--line); }

.app-right-time {
  display: flex;
  gap: 8px;
  flex-wrap: wrap;
  color: var(--muted);
  font-size: 0.68rem;
}

.app-right-controls {
  display: flex;
  flex-direction: column;
  gap: 6px;
}

.app-check {
  display: flex;
  align-items: center;
  gap: 5px;
  color: var(--muted);
  font-size: 0.72rem;
  cursor: not-allowed;
}

.app-gen-btns, .app-run-btns {
  display: flex;
  gap: 4px;
}

.app-btn-muted {
  padding: 4px 8px;
  border: 1px solid var(--line);
  border-radius: 5px;
  background: rgba(255,255,255,0.03);
  color: var(--muted);
  font-size: 0.7rem;
  cursor: not-allowed;
}

.app-btn-run {
  padding: 5px 14px;
  border: 0;
  border-radius: 5px;
  background: var(--accent);
  color: #07110e;
  font-size: 0.75rem;
  font-weight: 700;
  cursor: pointer;
}

.app-btn-stop {
  padding: 5px 14px;
  border: 1px solid rgba(255,100,100,0.3);
  border-radius: 5px;
  background: rgba(255,100,100,0.08);
  color: #ff8080;
  font-size: 0.75rem;
  font-weight: 700;
  cursor: pointer;
}

.app-flow {
  display: flex;
  align-items: center;
  gap: 4px;
  flex-wrap: wrap;
  padding: 8px;
  border: 1px solid var(--line);
  border-radius: 10px;
  background: rgba(255,255,255,0.02);
}

.app-flow-node {
  flex: 1;
  min-width: 60px;
  padding: 6px 8px;
  border-radius: 7px;
  border: 1px solid var(--line);
  background: rgba(255,255,255,0.03);
  text-align: center;
}

.app-flow-node.done-node { border-color: rgba(134,241,198,0.2); background: rgba(134,241,198,0.06); }
.app-flow-node.active-node { border-color: rgba(103,168,255,0.35); background: rgba(103,168,255,0.1); }
.app-flow-node.pending-node { border-color: var(--line); opacity: 0.6; }

.flow-node-title {
  font-size: 0.7rem;
  font-weight: 700;
  color: var(--accent);
}

.app-flow-node.pending-node .flow-node-title { color: var(--muted); }

.flow-node-label {
  font-size: 0.62rem;
  color: var(--muted);
  line-height: 1.3;
  margin-top: 2px;
}

.flow-arrow {
  color: var(--muted);
  font-size: 0.8rem;
  flex-shrink: 0;
}

.app-reservations {
  border: 1px solid var(--line);
  border-radius: 10px;
  overflow: hidden;
}

.app-res-header {
  display: flex;
  align-items: center;
  gap: 6px;
  flex-wrap: wrap;
  padding: 6px 10px;
  border-bottom: 1px solid var(--line);
  background: rgba(255,255,255,0.02);
  font-size: 0.7rem;
}

.app-res-proj {
  color: #67a8ff;
  font-weight: 600;
}

.app-res-cancel {
  margin-left: auto;
  border: 0;
  background: transparent;
  color: var(--muted);
  font-size: 0.68rem;
  cursor: pointer;
  text-decoration: underline;
}

.app-res-card {
  padding: 8px 10px;
  display: flex;
  flex-direction: column;
  gap: 5px;
}

.app-res-name {
  font-size: 0.78rem;
  font-weight: 600;
}

.app-res-meta {
  display: flex;
  align-items: center;
  gap: 6px;
  font-size: 0.68rem;
  color: var(--muted);
}

.res-badge {
  padding: 2px 6px;
  border-radius: 4px;
  font-size: 0.65rem;
  font-weight: 700;
}

.pending-badge { color: #ffc76b; background: rgba(255,199,107,0.1); border: 1px solid rgba(255,199,107,0.2); }

.app-res-field {
  display: flex;
  flex-direction: column;
  gap: 2px;
}

.app-res-row {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 6px;
}

.app-res-field label {
  color: var(--muted);
  font-size: 0.65rem;
  text-transform: uppercase;
  letter-spacing: 0.06em;
}

.app-res-field span {
  font-size: 0.72rem;
}

.muted-val { color: var(--muted); }
.accent-val { color: var(--accent-3); font-weight: 600; }
