/* Landing page: body and topbar overrides */
body { overflow-x: hidden; }
.topbar {
  position: fixed; top: 0; left: 0; right: 0; z-index: 100;
  backdrop-filter: blur(20px); -webkit-backdrop-filter: blur(20px);
  background: rgba(10, 10, 10, 0.7);
}
.topbar-logo { text-shadow: 0 0 20px rgba(249,115,22,0.3); }

/* ===== TERMINAL BACKGROUND ANIMATION ===== */
.terminal-bg {
  position: fixed; inset: 0; z-index: 0; pointer-events: none; overflow: hidden;
}
.terminal-bg canvas {
  position: absolute; inset: 0; width: 100%; height: 100%; opacity: 1;
}

/* Scroll container */
.snap-container {
  height: 100vh; overflow-y: auto;
  position: relative; z-index: 1;
}
section {
  min-height: 100vh;
  display: flex; flex-direction: column; justify-content: center;
  padding: var(--space-lg) clamp(1.5rem, 8vw, 10rem); position: relative;
}

/* Mobile menu */
.menu-toggle {
  display: none; background: none; border: none; cursor: pointer;
  width: 28px; height: 20px; position: relative; flex-shrink: 0;
}
.menu-toggle span {
  display: block; width: 100%; height: 1.5px; background: var(--text-secondary);
  position: absolute; left: 0; transition: all 0.3s ease;
}
.menu-toggle span:nth-child(1) { top: 0; }
.menu-toggle span:nth-child(2) { top: 50%; transform: translateY(-50%); }
.menu-toggle span:nth-child(3) { bottom: 0; }

/* Reveal */
.reveal {
  opacity: 0; transform: translateY(30px);
  transition: opacity var(--duration) var(--ease-out-expo),
              transform var(--duration) var(--ease-out-expo);
}
.reveal.visible { opacity: 1; transform: translateY(0); }

.section-label {
  font-family: var(--font-mono); font-size: 0.7rem;
  letter-spacing: 0.15em; text-transform: uppercase;
  color: var(--accent); margin-bottom: var(--space-sm); display: block;
}

/* ===== 1. HERO ===== */
.hero {
  position: relative;
  overflow: visible;
  align-items: center; text-align: center;
  justify-content: flex-start;
  min-height: 100vh; height: auto;
  padding-top: max(16vh, 6rem); padding-bottom: 0;
  z-index: 2;
}
.hero-bg {
  position: absolute; top: 0; left: 0; right: 0;
  height: 100vh; z-index: 0; overflow: hidden;
}
.hero-bg canvas { position: absolute; inset: 0; width: 100%; height: 100%; }
.hero-orb {
  position: absolute; border-radius: 50%; filter: blur(110px); opacity: 0.07;
  animation: orbDrift 25s ease-in-out infinite alternate;
}
.hero-orb--a { width: 700px; height: 700px; background: var(--accent); top: -250px; left: 50%; transform: translateX(-60%); }
.hero-orb--b { width: 500px; height: 500px; background: #3b1a00; bottom: -200px; right: -80px; animation-delay: -10s; animation-direction: alternate-reverse; }
.hero-orb--c { width: 400px; height: 400px; background: rgba(249,115,22,0.5); top: 40%; left: -150px; animation-delay: -5s; opacity: 0.035; }
@keyframes orbDrift { 0% { transform: translate(0,0) scale(1); } 100% { transform: translate(50px,35px) scale(1.15); } }

.hero-content { position: relative; z-index: 1; max-width: 800px; padding-top: 6vh; }
.hero-title {
  font-family: var(--font-mono); font-size: var(--heading-xl); font-weight: 500;
  letter-spacing: -0.02em; line-height: 0.95; margin-bottom: var(--space-sm);
}
.us { color: var(--accent); }
.hero-title .us { animation: blink 1.2s step-end infinite; }
@keyframes blink { 50% { opacity: 0; } }
.hero-tagline {
  font-size: var(--body-lg); color: var(--text-secondary);
  max-width: 44ch; margin: 0 auto var(--space-md); line-height: 1.7;
}
.hero-cta {
  display: flex; gap: 1rem; justify-content: center; flex-wrap: wrap;
  margin-bottom: clamp(4rem, 8vh, 7rem);
}

/* Demo frame — one continuous large window that spans hero bottom into next viewport */
.hero-demo {
  position: relative; z-index: 2;
  width: min(92vw, 1100px);
  margin: 0 auto;
  padding-bottom: clamp(3rem, 6vh, 5rem);
}
.hero-demo-frame {
  position: relative;
  width: 100%;
  height: clamp(420px, 75vh, 780px);
  overflow: hidden;
}
.hero-demo-header {
  display: flex; align-items: center; gap: 0.5rem;
  padding: 0.65rem 1rem;
  background: rgba(20,20,20,0.95);
  border-bottom: 1px solid rgba(255,255,255,0.05);
}
.hero-demo-dot {
  width: 8px; height: 8px; border-radius: 50%; opacity: 0.5;
}
.hero-demo-dot:nth-child(1) { background: #ff5f57; }
.hero-demo-dot:nth-child(2) { background: #febc2e; }
.hero-demo-dot:nth-child(3) { background: #28c840; }
.hero-demo-title {
  font-family: var(--font-mono); font-size: 0.6rem;
  color: var(--text-muted); margin-left: 0.5rem; letter-spacing: 0.04em;
}
.hero-demo-body {
  position: relative;
  width: 100%; height: calc(100% - 32px);
  background: #0c0c0c;
}
.hero-demo-body img,
.hero-demo-body video {
  width: 100%; height: 100%; object-fit: cover; display: block;
}
.hero-demo-poster {
  width: 100%; height: 100%;
  display: block;
  position: relative;
}
.hero-demo-poster img {
  width: 100%; height: 100%;
  object-fit: cover;
  display: block;
}
.hero-demo-play {
  position: absolute; top: 50%; left: 50%;
  transform: translate(-50%, -50%);
  width: 64px; height: 64px;
  border-radius: 50%;
  background: rgba(249,115,22,0.12);
  border: 1px solid rgba(249,115,22,0.25);
  display: flex; align-items: center; justify-content: center;
  cursor: pointer;
  transition: all 0.4s var(--ease-out-expo);
  backdrop-filter: blur(8px);
}
.hero-demo-play:hover {
  background: rgba(249,115,22,0.2);
  border-color: rgba(249,115,22,0.5);
  transform: translate(-50%, -50%) scale(1.08);
  box-shadow: 0 0 30px rgba(249,115,22,0.2);
}
.hero-demo-play svg {
  width: 22px; height: 22px;
  fill: var(--accent); margin-left: 2px;
}

@media (max-width: 768px) {
  .hero-demo { width: 96vw; }
  .hero-demo-frame { height: clamp(300px, 65vh, 520px); }
  .hero-content { padding-top: 2vh; }
}

/* ===== SOLUTION + VIDEO ===== */
.solution { align-items: center; text-align: center; }
.solution-heading {
  font-size: var(--heading-lg); font-weight: 700;
  letter-spacing: -0.03em; line-height: 1.08; margin-bottom: 0.75rem; max-width: 700px;
}
.solution-sub {
  font-size: var(--body-lg); color: var(--text-secondary);
  max-width: 52ch; margin: 0 auto var(--space-md); line-height: 1.7;
}
.video-wrapper {
  position: relative; width: 100%; max-width: 960px;
  aspect-ratio: 16 / 9; background: var(--bg-elevated);
  overflow: hidden; border: 1px solid rgba(255,255,255,0.04);
}
.video-wrapper video { width: 100%; height: 100%; object-fit: cover; display: block; }
.video-wrapper::after {
  content: ''; position: absolute; inset: 0;
  background: linear-gradient(to bottom, transparent 80%, var(--bg));
  pointer-events: none; opacity: 0.5;
}

/* ===== SECTION TEMPLATE: Header full width, then two columns ===== */
.section-header {
  width: 100%;
  max-width: 1200px;
  margin-bottom: var(--space-lg);
}
.section-header .cap-sub { margin-bottom: 0; }

/* ===== CAPABILITIES — Tiles ===== */
.capabilities {
  align-items: flex-start;
  padding-left: clamp(1.5rem, 6vw, 8rem);
  padding-right: clamp(1.5rem, 6vw, 8rem);
}
.cap-layout {
  width: 100%; max-width: 1200px;
}
.cap-layout > .section-header { margin-bottom: var(--space-lg); }
.cap-heading {
  font-family: var(--font-mono);
  font-size: clamp(2.2rem, 5vw, 3.8rem); font-weight: 700;
  letter-spacing: -0.03em; line-height: 1.05;
  margin-bottom: 1.2rem;
}
.cap-sub {
  font-size: var(--body-lg); color: var(--text-secondary);
  line-height: 1.7; max-width: 65ch;
  margin-bottom: var(--space-md);
}

.cap-tiles {
  display: grid;
  grid-template-columns: repeat(auto-fill, minmax(320px, 1fr));
  gap: 1.25rem;
}
.cap-tile {
  padding: 1.35rem 1.4rem;
  border: 1px solid rgba(255, 255, 255, 0.06);
  border-radius: 8px;
  background: rgba(255, 255, 255, 0.02);
  transition: border-color 0.35s var(--ease-out-expo),
              background 0.35s var(--ease-out-expo),
              box-shadow 0.35s var(--ease-out-expo),
              transform 0.35s var(--ease-out-expo);
}
.cap-tile:hover {
  border-color: rgba(249, 115, 22, 0.35);
  background: rgba(255, 255, 255, 0.04);
  box-shadow: 0 8px 32px rgba(0, 0, 0, 0.4), 0 0 0 1px rgba(249, 115, 22, 0.08);
  transform: translateY(-2px);
}
.cap-tile-icon {
  width: 40px; height: 40px;
  display: flex; align-items: center; justify-content: center;
  border-radius: 8px;
  border: 1px solid rgba(255, 255, 255, 0.08);
  color: var(--text-muted);
  margin-bottom: 1rem;
  transition: border-color 0.35s ease, color 0.35s ease,
              box-shadow 0.35s ease, background 0.35s ease;
}
.cap-tile:hover .cap-tile-icon {
  border-color: var(--accent);
  color: var(--accent);
  background: rgba(249, 115, 22, 0.1);
  box-shadow: 0 0 20px rgba(249, 115, 22, 0.2);
}
.cap-tile-icon svg {
  width: 18px; height: 18px;
  stroke: currentColor; fill: none;
  stroke-width: 2; stroke-linecap: round; stroke-linejoin: round;
}
.cap-tile-title {
  font-family: var(--font-mono); font-size: 0.8rem;
  letter-spacing: 0.06em; text-transform: uppercase;
  font-weight: 600; color: var(--text-secondary);
  margin-bottom: 0.5rem;
  line-height: 1.3;
  transition: color 0.35s ease;
}
.cap-tile:hover .cap-tile-title { color: var(--text-primary); }
.cap-tile-desc {
  font-size: var(--body-md); color: var(--text-secondary);
  line-height: 1.6;
  transition: color 0.35s ease;
}
.cap-tile:hover .cap-tile-desc { color: var(--text-primary); }

@media (max-width: 900px) {
  .cap-tiles { grid-template-columns: 1fr; }
}

/* ===== USE CASES — Tabbed topology viewer ===== */
.usecases {
  align-items: center; text-align: left;
  padding-left: clamp(1.5rem, 6vw, 8rem);
  padding-right: clamp(1.5rem, 6vw, 8rem);
}
.uc-container {
  width: 100%; max-width: 1100px;
  background: rgba(255,255,255,0.015);
  border: 1px solid rgba(255,255,255,0.06);
  overflow: hidden;
}
/* Tabs */
.uc-tabs {
  display: flex; gap: 0;
  border-bottom: 1px solid rgba(255,255,255,0.06);
  padding: 0 2rem;
}
.uc-tab {
  font-family: var(--font-mono); font-size: 0.68rem;
  letter-spacing: 0.1em; text-transform: uppercase;
  color: var(--text-muted); background: none; border: none;
  padding: 1.1rem 1.5rem 1rem;
  cursor: pointer;
  position: relative;
  transition: color 0.35s ease;
  white-space: nowrap;
}
.uc-tab::after {
  content: ''; position: absolute;
  bottom: -1px; left: 1.5rem; right: 1.5rem; height: 2px;
  background: var(--accent); opacity: 0;
  transition: opacity 0.35s ease;
}
.uc-tab:hover { color: var(--text-secondary); }
.uc-tab.active { color: var(--text-primary); }
.uc-tab.active::after { opacity: 1; }

/* Panels */
.uc-panels { position: relative; min-height: 440px; }
.uc-panel {
  position: absolute; inset: 0;
  padding: clamp(1.5rem, 3vw, 3rem);
  opacity: 0; pointer-events: none;
  transform: translateY(10px);
  transition: opacity 0.5s ease, transform 0.5s var(--ease-out-expo);
}
.uc-panel.active {
  opacity: 1; pointer-events: auto;
  transform: translateY(0);
  position: relative;
}

/* Topology diagram */
.uc-topo {
  position: relative;
  width: 100%; height: 380px;
  display: flex; align-items: center; justify-content: center;
}
/* Center hub */
.uc-hub {
  position: relative; z-index: 2;
  width: 200px;
  background: rgba(12,12,12,0.95);
  border: 1px solid rgba(255,255,255,0.1);
  padding: 1.2rem 1.5rem 1rem;
  text-align: center;
  box-shadow: 0 0 60px rgba(249,115,22,0.08), 0 20px 50px rgba(0,0,0,0.4);
}
.uc-hub-inner {
  background: rgba(20,20,20,0.9);
  border: 1px solid rgba(255,255,255,0.06);
  padding: 0.8rem 1rem 0.6rem;
  margin-bottom: 0.7rem;
  display: flex; align-items: center; justify-content: center; gap: 0.6rem;
}
.uc-hub-dot { width: 10px; height: 10px; border-radius: 50%; background: var(--accent); box-shadow: 0 0 8px rgba(249,115,22,0.5); }
.uc-hub-shapes { display: flex; gap: 0.4rem; align-items: center; }
.uc-hub-shapes span {
  display: block; width: 8px; height: 8px;
  border: 1.5px solid rgba(255,255,255,0.25);
  opacity: 0.4;
}
.uc-hub-shapes span:nth-child(1) { border-radius: 50%; }
.uc-hub-shapes span:nth-child(2) { border-radius: 0; transform: rotate(45deg); width: 7px; height: 7px; }
.uc-hub-shapes span:nth-child(3) { border-radius: 1px; }
.uc-hub-badge {
  position: absolute; top: 0.8rem; right: 0.8rem;
  font-family: var(--font-mono); font-size: 0.5rem;
  background: rgba(255,255,255,0.06); color: var(--text-muted);
  padding: 0.15rem 0.4rem; letter-spacing: 0.05em;
}
.uc-hub-label {
  font-family: var(--font-mono); font-size: 0.85rem;
  color: var(--accent); font-weight: 600;
}

/* Satellite nodes */
.uc-node {
  position: absolute; z-index: 1;
  text-align: center;
  transition: transform 0.5s var(--ease-out-expo), opacity 0.4s ease;
}
.uc-node:hover { transform: scale(1.06) translateY(-2px); }
.uc-node-box {
  width: 110px; height: 72px;
  background: rgba(255,255,255,0.025);
  border: 1px solid rgba(255,255,255,0.07);
  display: flex; align-items: center; justify-content: center; gap: 0.5rem;
  padding: 0.5rem;
  transition: border-color 0.4s ease, box-shadow 0.4s ease;
  margin: 0 auto 0.4rem;
}
.uc-node:hover .uc-node-box {
  border-color: rgba(249,115,22,0.3);
  box-shadow: 0 0 20px rgba(249,115,22,0.06);
}
.uc-node-icon {
  width: 24px; height: 24px; flex-shrink: 0;
  stroke: var(--text-muted); fill: none;
  stroke-width: 1.5; stroke-linecap: round;
  transition: stroke 0.4s ease;
}
.uc-node:hover .uc-node-icon { stroke: var(--accent); }
.uc-node-lines {
  display: flex; flex-direction: column; gap: 3px;
}
.uc-node-lines span {
  display: block; height: 2px; border-radius: 1px;
  background: rgba(255,255,255,0.08);
}
.uc-node-lines span:nth-child(1) { width: 32px; }
.uc-node-lines span:nth-child(2) { width: 24px; }
.uc-node-lines span:nth-child(3) { width: 28px; }
.uc-node-label {
  font-family: var(--font-mono); font-size: 0.62rem;
  color: var(--text-muted); letter-spacing: 0.04em;
  transition: color 0.3s ease;
}
.uc-node:hover .uc-node-label { color: var(--text-secondary); }

/* Node positions */
.uc-node--scheduler { top: 8%; left: 50%; transform: translateX(-50%); }
.uc-node--aws { left: 4%; top: 50%; transform: translateY(-50%); }
.uc-node--gcp { right: 4%; top: 28%; }
.uc-node--onprem { right: 4%; bottom: 12%; }

/* Connection lines (SVG overlay) */
.uc-topo-lines {
  position: absolute; inset: 0; z-index: 0;
  pointer-events: none;
}
.uc-topo-lines line {
  stroke: rgba(249,115,22,0.1);
  stroke-width: 1;
  stroke-dasharray: 4 4;
}

/* Bottom tech strip */
.uc-tech {
  padding: 1.2rem 2rem;
  border-top: 1px solid rgba(255,255,255,0.04);
}
.uc-tech-label {
  font-family: var(--font-mono); font-size: 0.58rem;
  letter-spacing: 0.12em; text-transform: uppercase;
  color: var(--text-muted); margin-bottom: 0.6rem; display: block;
}
.uc-tech-logos {
  display: flex; gap: clamp(1.5rem, 3vw, 3rem); align-items: center;
}
.uc-tech-item {
  font-family: var(--font-mono); font-size: clamp(0.9rem, 1.6vw, 1.2rem);
  color: var(--text-muted); font-weight: 500; letter-spacing: -0.01em;
  transition: color 0.3s ease;
}
.uc-tech-item:hover { color: var(--text-secondary); }

@media (max-width: 768px) {
  .uc-topo { height: 320px; }
  .uc-node-box { width: 80px; height: 56px; }
  .uc-hub { width: 150px; }
  .uc-tabs { padding: 0 1rem; overflow-x: auto; }
  .uc-tab { padding: 0.9rem 1rem; font-size: 0.6rem; }
}

/* ===== CLI / FEATURE SHOWCASE ===== */
.cli-section {
  display: flex;
  flex-direction: column;
  align-items: flex-start;
  text-align: left;
  padding-left: clamp(1.5rem, 6vw, 8rem);
  padding-right: clamp(1.5rem, 6vw, 8rem);
}
.cli-section .section-header { margin-bottom: var(--space-lg); }
.cli-section .section-header .cap-sub { margin-bottom: 0; }
.cli-layout {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: clamp(2rem, 0vw, 6rem);
  width: 100%;
  max-width: 1200px;
  min-height: 420px;
  align-items: start;
}
.cli-left {
  display: grid;
  grid-template-columns: 180px 1fr;
  gap: 0;
  min-height: 420px;
}

/* Left sidebar nav */
.cli-sidebar {
  display: flex; flex-direction: column; gap: 0.4rem;
  padding-right: 2rem; padding-top: 0.5rem;
}
.cli-sidebar-item {
  font-family: var(--font-mono); font-size: 0.62rem;
  letter-spacing: 0.1em; text-transform: uppercase;
  color: var(--text-muted); cursor: pointer;
  display: flex; align-items: center; gap: 0.6rem;
  padding: 0.45rem 0;
  transition: color 0.35s ease;
  white-space: nowrap;
  border: none; background: none; text-align: left;
}
.cli-sidebar-item::before {
  content: '';
  width: 7px; height: 7px; flex-shrink: 0;
  border: 1.5px solid rgba(255,255,255,0.12);
  transition: all 0.35s ease;
}
.cli-sidebar-item:hover { color: var(--text-secondary); }
.cli-sidebar-item.active { color: var(--accent); }
.cli-sidebar-item.active::before {
  background: var(--accent);
  border-color: var(--accent);
  box-shadow: 0 0 8px rgba(249,115,22,0.4);
}

/* Center: accordion feature list */
.cli-features {
  border-left: 1px solid rgba(255,255,255,0.06);
  padding: 0;
}
.cli-feature-row {
  border-bottom: 1px solid rgba(255,255,255,0.06);
  cursor: pointer;
  transition: background 0.3s ease;
}
.cli-feature-row:first-child {
  border-top: 1px solid rgba(255,255,255,0.06);
}
.cli-feature-row:hover {
  background: rgba(249,115,22,0.02);
}
.cli-feature-title {
  font-size: clamp(1.1rem, 2.2vw, 1.6rem); font-weight: 600;
  letter-spacing: -0.02em; padding: 1.1rem 1.8rem;
  color: var(--text-secondary);
  transition: color 0.35s ease;
  line-height: 1.25;
}
.cli-feature-row.active .cli-feature-title {
  color: var(--text-primary);
}
.cli-feature-row:hover .cli-feature-title {
  color: var(--text-primary);
}
.cli-feature-body {
  max-height: 0; overflow: hidden;
  transition: max-height 0.5s var(--ease-out-expo), padding 0.4s ease;
  padding: 0 1.8rem;
}
.cli-feature-row.active .cli-feature-body {
  max-height: 200px;
  padding: 0 1.8rem 1.4rem;
}
.cli-feature-desc {
  font-size: var(--body-md); color: var(--text-secondary);
  line-height: 1.65; max-width: 42ch;
}

/* Right: terminal widget */
.cli-terminal-wrap {
  position: relative;
  display: flex; align-items: center; justify-content: center;
  overflow: hidden;
}
.cli-terminal-bg {
  position: absolute; inset: 0;
  background:
    radial-gradient(ellipse at 70% 30%, rgba(249,115,22,0.12) 0%, transparent 60%),
    radial-gradient(ellipse at 30% 80%, rgba(249,115,22,0.06) 0%, transparent 50%);
}

.cli-terminal {
  position: relative; z-index: 1;
  width: 92%; max-width: 440px;
  background: rgba(12,12,12,0.95);
  border: 1px solid rgba(255,255,255,0.08);
  backdrop-filter: blur(10px);
  box-shadow: 0 20px 60px rgba(0,0,0,0.5), 0 0 40px rgba(249,115,22,0.05);
}
.cli-terminal-header {
  display: flex; align-items: center; justify-content: space-between;
  padding: 0.7rem 1rem;
  border-bottom: 1px solid rgba(255,255,255,0.06);
}
.cli-terminal-dots {
  display: flex; gap: 6px;
}
.cli-terminal-dots span {
  width: 8px; height: 8px; border-radius: 50%; opacity: 0.5;
}
.cli-terminal-dots span:nth-child(1) { background: #ff5f57; }
.cli-terminal-dots span:nth-child(2) { background: #febc2e; }
.cli-terminal-dots span:nth-child(3) { background: #28c840; }
.cli-terminal-tab {
  font-family: var(--font-mono); font-size: 0.6rem;
  color: var(--text-muted); letter-spacing: 0.05em;
}
.cli-term-screens { position: relative; height: 21rem; min-height: 21rem; }
.cli-term-screen {
  position: absolute; inset: 0;
  padding: 1rem 1.2rem;
  font-family: var(--font-mono);
  font-size: 0.76rem;
  line-height: 1.85;
  color: var(--text-secondary);
  opacity: 0;
  transform: translateY(8px);
  transition: opacity 0.45s ease, transform 0.45s var(--ease-out-expo);
  pointer-events: none;
  overflow: hidden;
}
.cli-term-line {
  display: block;
  min-height: 1.85em;
}
.cli-term-line--split {
  display: flex;
  justify-content: space-between;
  gap: 1rem;
  flex-wrap: wrap;
}
.cli-term-line--split .cli-term-line-right {
  flex-shrink: 0;
}
.cli-term-line--continuation {
  padding-left: 1.5em;
}
.cli-term-screen.active {
  opacity: 1; transform: translateY(0);
  pointer-events: auto; position: relative;
}
.cli-term-screen .t-prompt { color: var(--accent); user-select: none; }
.cli-term-screen .t-flag { color: #f9a856; }
.cli-term-screen .t-str { color: #c3e88d; }
.cli-term-screen .t-dim { color: #484848; }
.cli-term-screen .t-ok { color: #4ade80; }
.cli-term-screen .t-val { color: var(--text-primary); font-weight: 600; }
.cli-term-screen .t-accent { color: var(--accent); font-weight: 600; }
.cli-term-screen .t-warn { color: #fbbf24; }

/* Prompt line always visible; cursor */
.cli-term-prompt-line { min-height: 1.85em; }
.cli-cursor {
  color: var(--accent);
  animation: cli-cursor-blink 1s step-end infinite;
}
.cli-cursor.cli-cursor--hidden { display: none; }
@keyframes cli-cursor-blink {
  0%, 50% { opacity: 1; }
  51%, 100% { opacity: 0; }
}

/* CLI simulation: progressive reveal (all screens) */
.cli-term-screen .cli-term-line[data-sim-step],
.cli-term-screen .cli-sim-block[data-sim-step] {
  max-height: 4em;
  overflow: hidden;
  transition: opacity 0.25s ease, max-height 0.35s ease;
}
.cli-term-screen .cli-sim-block[data-sim-step] { max-height: 80em; }
.cli-term-screen .cli-term-line[data-sim-step].cli-sim-hidden,
.cli-term-screen .cli-sim-block[data-sim-step].cli-sim-hidden {
  max-height: 0;
  min-height: 0;
  opacity: 0;
  margin: 0;
  padding: 0;
  overflow: hidden;
}
.cli-term-screen .cli-sim-block[data-sim-step].cli-sim-hidden { max-height: 0; }

@media (max-width: 1100px) {
  .cli-left {
    grid-template-columns: 1fr;
  }
  .cli-sidebar { display: none; }
}
@media (max-width: 768px) {
  .cli-layout {
    grid-template-columns: 1fr;
    gap: 2rem;
  }
  .cli-terminal-wrap { min-height: 350px; }
}

/* ===== CTA FOOTER ===== */
.cta-footer { align-items: center; text-align: center; justify-content: center; min-height: 80vh; padding-bottom: 18vh; }
.cta-heading {
  font-size: var(--heading-lg); font-weight: 700;
  letter-spacing: -0.03em; line-height: 1.08; margin-bottom: 0.75rem;
}
.cta-sub {
  font-size: var(--body-lg); color: var(--text-secondary);
  margin-bottom: var(--space-md); max-width: 44ch;
}
.cta-group { display: flex; gap: 1rem; flex-wrap: wrap; justify-content: center; }
.footer-links { margin-top: var(--space-lg); display: flex; gap: 2rem; justify-content: center; }
.footer-link {
  font-family: var(--font-mono); font-size: 0.68rem;
  letter-spacing: 0.08em; text-transform: uppercase;
  color: var(--text-muted); text-decoration: none; transition: color 0.3s ease;
}
.footer-link:hover { color: var(--text-secondary); }
.footer-bottom {
  position: absolute; bottom: 1.5rem; left: 50%; transform: translateX(-50%);
  font-family: var(--font-mono); font-size: 0.62rem; color: var(--text-muted); letter-spacing: 0.05em;
}

/* Responsive */
@media (max-width: 768px) {
  section { padding: var(--space-md) 0rem; }
  .hero-cta, .cta-group { flex-direction: column; align-items: center; }
  .footer-links { flex-direction: column; align-items: center; gap: 1rem; }
  .uc-item { flex-direction: column; gap: 0.25rem; }
  .topbar-nav { display: none; }
  .menu-toggle { display: block; }
}

/* Fonts */
@font-face {
  font-family: 'Outfit'; font-style: normal; font-weight: 100 900; font-display: swap;
  src: url(https://fonts.gstatic.com/s/outfit/v11/QGYyz_MVcBeNP4NjuGObqx1XmO1I4TC1O4a0EwItq6fNIg.woff2) format('woff2');
}
@font-face {
  font-family: 'JetBrains Mono'; font-style: normal; font-weight: 400 700; font-display: swap;
  src: url(https://fonts.gstatic.com/s/jetbrainsmono/v18/tDbY2o-flEEny0FZhsfKu5WU4zr3E_BX0PnT8RD8yKxjPVmUsaaDhw.woff2) format('woff2');
}
