@import url('https://fonts.googleapis.com/css2?family=Geist:wght@300;400;500;600;700;800&family=Geist+Mono:wght@400;500;600&display=swap');

/* --- 1. CSS Custom Properties & Design Tokens --- */
@property --border-angle {
  syntax: "<angle>";
  inherits: false;
  initial-value: 0deg;
}

:root {
  --bg-black: #000000;
  --bg-card: rgba(10, 10, 12, 0.72);
  --bg-card-hover: rgba(18, 18, 22, 0.9);
  
  --border-subtle: rgba(255, 255, 255, 0.08);
  --border-active: rgba(255, 255, 255, 0.2);
  
  --text-primary: #ffffff;
  --text-secondary: #a1a1aa;
  --text-muted: #71717a;
  --text-dim: #52525b;

  --accent-cyan: #06b6d4;
  --accent-blue: #3b82f6;
  --accent-emerald: #10b981;
  --accent-purple: #a855f7;

  --font-sans: 'Geist', -apple-system, BlinkMacSystemFont, "Segoe UI", Roboto, sans-serif;
  --font-mono: 'Geist Mono', ui-monospace, SFMono-Regular, Menlo, monospace;
}

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

html {
  scroll-behavior: smooth;
  background-color: var(--bg-black);
  color: var(--text-primary);
  font-family: var(--font-sans);
  -webkit-font-smoothing: antialiased;
  -moz-osx-font-smoothing: grayscale;
}

body {
  background-color: var(--bg-black);
  overflow-x: hidden;
  position: relative;
  min-height: 100vh;
  line-height: 1.5;
}

/* Background Interactive Canvas */
#particlesCanvas {
  position: fixed;
  inset: 0;
  pointer-events: none;
  z-index: 1;
  opacity: 0.75;
}

/* Retro Grid Background with Scroll Reactivity */
.retro-grid-bg {
  position: fixed;
  top: 0;
  left: 0;
  right: 0;
  height: 100vh;
  overflow: hidden;
  pointer-events: none;
  z-index: 0;
  opacity: 0.45;
  perspective: 240px;
  transition: transform 0.1s ease-out;
}

.retro-grid-lines {
  position: absolute;
  inset: -50% 0 0 0;
  height: 200%;
  transform: rotateX(45deg);
  background-image: 
    linear-gradient(to right, rgba(255, 255, 255, 0.06) 1px, transparent 0),
    linear-gradient(to bottom, rgba(255, 255, 255, 0.06) 1px, transparent 0);
  background-size: 50px 50px;
  animation: retroGridScroll 18s linear infinite;
}

@keyframes retroGridScroll {
  0% { transform: rotateX(45deg) translateY(0); }
  100% { transform: rotateX(45deg) translateY(50px); }
}

.retro-grid-vignette {
  position: absolute;
  inset: 0;
  background: radial-gradient(circle at 50% 25%, transparent 15%, var(--bg-black) 80%);
  pointer-events: none;
}

/* Magic UI Radial Ambient Glow */
.ambient-radial-glow {
  position: fixed;
  top: 100px;
  left: 50%;
  transform: translateX(-50%);
  width: 750px;
  height: 500px;
  background: radial-gradient(ellipse at center, rgba(6, 182, 212, 0.1), rgba(168, 85, 247, 0.05), transparent 70%);
  filter: blur(90px);
  pointer-events: none;
  z-index: 0;
  transition: transform 0.2s cubic-bezier(0.16, 1, 0.3, 1);
}

/* --- Layout Tokens --- */
.container {
  max-width: 1200px;
  margin: 0 auto;
  padding: 0 24px;
  position: relative;
  z-index: 2;
}

.section {
  padding: 100px 0;
  position: relative;
  z-index: 2;
}

.section-head {
  text-align: center;
  max-width: 720px;
  margin: 0 auto 56px;
}

/* Animated Pill Badge */
.animated-pill {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  padding: 6px 16px;
  border-radius: 9999px;
  background: rgba(255, 255, 255, 0.04);
  border: 1px solid var(--border-subtle);
  position: relative;
  overflow: hidden;
  margin-bottom: 24px;
  font-size: 0.8125rem;
  font-weight: 500;
  color: var(--text-secondary);
}

.pill-shiny-shimmer {
  position: absolute;
  top: 0;
  left: -100%;
  width: 50%;
  height: 100%;
  background: linear-gradient(90deg, transparent, rgba(255, 255, 255, 0.18), transparent);
  animation: pillShimmer 3.5s infinite ease-in-out;
}

@keyframes pillShimmer {
  0% { left: -100%; }
  60% { left: 200%; }
  100% { left: 200%; }
}

.radar-dot {
  width: 6px;
  height: 6px;
  border-radius: 50%;
  background: var(--accent-cyan);
  box-shadow: 0 0 10px var(--accent-cyan);
  display: inline-block;
  animation: radarBlink 2s infinite ease-in-out;
}

@keyframes radarBlink {
  0%, 100% { opacity: 1; transform: scale(1); }
  50% { opacity: 0.4; transform: scale(0.85); }
}

/* Studio Typography */
.hero-title {
  font-size: 4.25rem;
  line-height: 1.05;
  font-weight: 700;
  letter-spacing: -0.04em;
  margin-bottom: 24px;
  color: #fff;
}

.text-gradient {
  background: linear-gradient(180deg, #ffffff 40%, #71717a 100%);
  -webkit-background-clip: text;
  -webkit-text-fill-color: transparent;
}

.hero-subtitle {
  font-size: 1.25rem;
  line-height: 1.6;
  color: var(--text-secondary);
  font-weight: 400;
  max-width: 680px;
  margin: 0 auto 36px;
  letter-spacing: -0.01em;
}

.section-title {
  font-size: 2.75rem;
  line-height: 1.15;
  font-weight: 700;
  letter-spacing: -0.035em;
  color: #fff;
  margin-bottom: 16px;
}

.section-desc {
  font-size: 1.125rem;
  color: var(--text-secondary);
  line-height: 1.6;
  letter-spacing: -0.01em;
}

/* Buttons */
.btn-row {
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 16px;
  margin-bottom: 48px;
  flex-wrap: wrap;
}

.btn-magic-primary {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  padding: 14px 28px;
  border-radius: 12px;
  background: #ffffff;
  color: #000000;
  font-weight: 600;
  font-size: 0.9375rem;
  text-decoration: none;
  cursor: pointer;
  border: none;
  box-shadow: 0 0 0 1px rgba(255, 255, 255, 0.1), 0 4px 14px 0 rgba(255, 255, 255, 0.15);
  transition: all 0.25s cubic-bezier(0.16, 1, 0.3, 1);
  font-family: inherit;
}

.btn-magic-primary:hover {
  transform: translateY(-2px);
  box-shadow: 0 0 0 1px rgba(255, 255, 255, 0.2), 0 8px 24px 0 rgba(255, 255, 255, 0.3);
}

.btn-magic-secondary {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  padding: 14px 28px;
  border-radius: 12px;
  background: rgba(255, 255, 255, 0.05);
  color: #ffffff;
  font-weight: 500;
  font-size: 0.9375rem;
  text-decoration: none;
  cursor: pointer;
  border: 1px solid var(--border-subtle);
  backdrop-filter: blur(12px);
  transition: all 0.25s cubic-bezier(0.16, 1, 0.3, 1);
  font-family: inherit;
}

.btn-magic-secondary:hover {
  background: rgba(255, 255, 255, 0.1);
  border-color: rgba(255, 255, 255, 0.25);
  transform: translateY(-2px);
}

/* Studio Navbar */
.navbar {
  position: sticky;
  top: 0;
  width: 100%;
  z-index: 1000;
  padding: 16px 0;
  background: rgba(0, 0, 0, 0.65);
  backdrop-filter: blur(16px);
  -webkit-backdrop-filter: blur(16px);
  border-bottom: 1px solid var(--border-subtle);
}

.nav-inner {
  display: flex;
  align-items: center;
  justify-content: space-between;
}

.brand-wrap {
  display: flex;
  align-items: center;
  gap: 10px;
  text-decoration: none;
  color: #fff;
}

.brand-icon-box {
  width: 32px;
  height: 32px;
  border-radius: 8px;
  background: rgba(255, 255, 255, 0.08);
  border: 1px solid rgba(255, 255, 255, 0.15);
  display: flex;
  align-items: center;
  justify-content: center;
}

.brand-icon-box svg { width: 18px; height: 18px; }
.brand-title { font-size: 1.0625rem; font-weight: 700; letter-spacing: -0.02em; }
.brand-badge {
  font-family: var(--font-mono);
  font-size: 0.6875rem;
  font-weight: 600;
  padding: 2px 6px;
  border-radius: 4px;
  background: rgba(255, 255, 255, 0.08);
  color: var(--text-secondary);
}

.nav-menu {
  display: flex;
  align-items: center;
  gap: 28px;
}

.nav-link {
  color: var(--text-secondary);
  text-decoration: none;
  font-size: 0.875rem;
  font-weight: 500;
  transition: color 0.2s ease;
}

.nav-link:hover { color: #fff; }

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

/* Language Dropdown */
.lang-dropdown-wrapper { position: relative; }
.lang-btn {
  display: flex;
  align-items: center;
  gap: 6px;
  background: rgba(255, 255, 255, 0.05);
  border: 1px solid var(--border-subtle);
  border-radius: 8px;
  padding: 6px 12px;
  color: #fff;
  font-size: 0.8125rem;
  font-weight: 500;
  cursor: pointer;
  font-family: inherit;
  transition: all 0.2s ease;
}

.lang-btn:hover {
  border-color: rgba(255, 255, 255, 0.2);
  background: rgba(255, 255, 255, 0.08);
}

.lang-menu {
  position: absolute;
  top: calc(100% + 8px);
  right: 0;
  min-width: 170px;
  background: rgba(15, 15, 18, 0.95);
  border: 1px solid var(--border-subtle);
  border-radius: 10px;
  padding: 6px;
  backdrop-filter: blur(20px);
  box-shadow: 0 10px 30px rgba(0, 0, 0, 0.5);
  opacity: 0;
  visibility: hidden;
  transform: translateY(-6px);
  transition: all 0.2s ease;
  z-index: 1000;
}

.lang-menu.open {
  opacity: 1;
  visibility: visible;
  transform: translateY(0);
}

.lang-item {
  display: flex;
  align-items: center;
  gap: 8px;
  padding: 8px 12px;
  border-radius: 6px;
  font-size: 0.8125rem;
  color: var(--text-secondary);
  cursor: pointer;
  transition: all 0.15s ease;
}

.lang-item:hover { background: rgba(255, 255, 255, 0.07); color: #fff; }
.lang-item.active { background: rgba(255, 255, 255, 0.1); color: #fff; font-weight: 600; }

/* Mobile Burger Menu Button & Drawer */
.mobile-burger {
  display: none;
  background: none;
  border: none;
  cursor: pointer;
  padding: 6px;
  flex-direction: column;
  gap: 5px;
  z-index: 1001;
}

.mobile-burger span {
  width: 22px;
  height: 2px;
  background-color: #fff;
  border-radius: 2px;
  transition: all 0.3s ease;
}

.mobile-burger.active span:nth-child(1) {
  transform: translateY(7px) rotate(45deg);
}
.mobile-burger.active span:nth-child(2) {
  opacity: 0;
}
.mobile-burger.active span:nth-child(3) {
  transform: translateY(-7px) rotate(-45deg);
}

.mobile-drawer {
  position: fixed;
  top: 65px;
  left: 0;
  right: 0;
  background: rgba(10, 10, 14, 0.98);
  border-bottom: 1px solid var(--border-subtle);
  backdrop-filter: blur(20px);
  padding: 24px;
  display: flex;
  flex-direction: column;
  gap: 20px;
  opacity: 0;
  visibility: hidden;
  transform: translateY(-10px);
  transition: all 0.3s cubic-bezier(0.16, 1, 0.3, 1);
  z-index: 999;
}

.mobile-drawer.open {
  opacity: 1;
  visibility: visible;
  transform: translateY(0);
}

.mobile-nav-links {
  display: flex;
  flex-direction: column;
  gap: 16px;
}

.m-link {
  font-size: 1.05rem;
  font-weight: 500;
  color: #fff;
  text-decoration: none;
  padding: 6px 0;
  border-bottom: 1px solid rgba(255, 255, 255, 0.04);
}

.mobile-drawer-actions {
  display: flex;
  flex-direction: column;
  gap: 12px;
  margin-top: 10px;
}

/* Magic UI: Border-Beam Component */
.border-beam-container {
  position: relative;
  border-radius: 20px;
  background: var(--bg-card);
  backdrop-filter: blur(20px);
  border: 1px solid var(--border-subtle);
  overflow: hidden;
  box-shadow: 0 20px 40px rgba(0, 0, 0, 0.4);
}

.border-beam-container::before {
  content: "";
  position: absolute;
  inset: -1px;
  border-radius: 20px;
  padding: 1px;
  background: conic-gradient(
    from var(--border-angle),
    transparent 20%,
    var(--accent-cyan) 45%,
    var(--accent-purple) 65%,
    transparent 80%
  );
  -webkit-mask: linear-gradient(#000 0 0) content-box, linear-gradient(#000 0 0);
  -webkit-mask-composite: xor;
  mask-composite: exclude;
  pointer-events: none;
  animation: borderBeamRotate 6s linear infinite;
  z-index: 1;
}

@keyframes borderBeamRotate {
  to { --border-angle: 360deg; }
}

.beam-flow-card {
  padding: 36px 28px;
  margin-top: 20px;
}

/* --- Clean Animated Beam Pipeline Layout (No Overlapping Lines!) --- */
.beam-pipeline-wrapper {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 12px;
  padding: 24px 0 10px;
  position: relative;
  z-index: 2;
}

.beam-node-item {
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 10px;
  flex-shrink: 0;
  z-index: 2;
}

.beam-icon-circle {
  width: 50px;
  height: 50px;
  border-radius: 50%;
  background: rgba(18, 18, 22, 0.95);
  border: 1px solid var(--border-active);
  display: flex;
  align-items: center;
  justify-content: center;
  box-shadow: 0 4px 16px rgba(0, 0, 0, 0.5);
  color: #fff;
  transition: all 0.3s ease;
}

.beam-icon-circle.core-glow {
  width: 62px;
  height: 62px;
  background: linear-gradient(135deg, rgba(6, 182, 212, 0.2), rgba(168, 85, 247, 0.2));
  border: 1px solid var(--accent-cyan);
  box-shadow: 0 0 25px rgba(6, 182, 212, 0.35);
}

.beam-node-text {
  text-align: center;
}

.beam-node-title {
  font-size: 0.8125rem;
  font-weight: 600;
  color: #fff;
}

.beam-node-desc {
  font-family: var(--font-mono);
  font-size: 0.6875rem;
  color: var(--text-muted);
}

/* Discrete Connecting Track between Nodes */
.beam-connector-track {
  flex: 1;
  height: 2px;
  background: rgba(255, 255, 255, 0.08);
  position: relative;
  overflow: hidden;
  margin-bottom: 24px;
}

.beam-light-pulse {
  position: absolute;
  top: 0;
  left: -100%;
  width: 60px;
  height: 100%;
  background: linear-gradient(90deg, transparent, var(--accent-cyan), var(--accent-purple), transparent);
  animation: beamPulseMove 2.4s infinite cubic-bezier(0.4, 0, 0.2, 1);
}

@keyframes beamPulseMove {
  0% { left: -60px; }
  100% { left: 100%; }
}

/* Magic UI: Bento Grid Section */
.bento-grid {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 20px;
}

.bento-card {
  position: relative;
  border-radius: 16px;
  background: var(--bg-card);
  backdrop-filter: blur(16px);
  border: 1px solid var(--border-subtle);
  padding: 32px;
  overflow: hidden;
  display: flex;
  flex-direction: column;
  justify-content: space-between;
  transition: all 0.3s cubic-bezier(0.16, 1, 0.3, 1);
}

.bento-card:hover {
  border-color: rgba(255, 255, 255, 0.2);
  transform: translateY(-4px);
  background: var(--bg-card-hover);
}

.bento-card.col-span-2 { grid-column: span 2; }
.bento-header { position: relative; z-index: 2; margin-bottom: 24px; }

.bento-icon-box {
  width: 44px;
  height: 44px;
  border-radius: 10px;
  background: rgba(255, 255, 255, 0.05);
  border: 1px solid var(--border-subtle);
  display: flex;
  align-items: center;
  justify-content: center;
  color: #fff;
  margin-bottom: 20px;
}

.bento-title {
  font-size: 1.25rem;
  font-weight: 600;
  letter-spacing: -0.02em;
  color: #fff;
  margin-bottom: 8px;
}

.bento-desc {
  font-size: 0.9375rem;
  color: var(--text-secondary);
  line-height: 1.6;
}

.bento-footer {
  position: relative;
  z-index: 2;
  display: flex;
  align-items: center;
  justify-content: space-between;
  padding-top: 20px;
  border-top: 1px solid rgba(255, 255, 255, 0.05);
}

.bento-meta-badge {
  font-family: var(--font-mono);
  font-size: 0.75rem;
  color: var(--accent-cyan);
  background: rgba(6, 182, 212, 0.1);
  padding: 4px 10px;
  border-radius: 6px;
}

.bento-bg-shimmer {
  position: absolute;
  inset: 0;
  pointer-events: none;
  background: radial-gradient(circle at 80% 20%, rgba(255, 255, 255, 0.03), transparent 60%);
  z-index: 1;
}

.bento-mini-code {
  background: rgba(0, 0, 0, 0.6);
  border: 1px solid rgba(255, 255, 255, 0.06);
  border-radius: 10px;
  padding: 16px;
  font-family: var(--font-mono);
  font-size: 0.8125rem;
  color: var(--text-secondary);
  line-height: 1.6;
  overflow-x: auto;
}

.c-cyan { color: var(--accent-cyan); }
.c-green { color: var(--accent-emerald); }
.c-purple { color: var(--accent-purple); }
.c-dim { color: var(--text-dim); }

/* Magic UI: Infinite Marquee */
.marquee-container {
  overflow: hidden;
  border-top: 1px solid var(--border-subtle);
  border-bottom: 1px solid var(--border-subtle);
  background: rgba(255, 255, 255, 0.015);
  padding: 20px 0;
  position: relative;
}

.marquee-container::before,
.marquee-container::after {
  content: "";
  position: absolute;
  top: 0;
  bottom: 0;
  width: 150px;
  pointer-events: none;
  z-index: 2;
}

.marquee-container::before {
  left: 0;
  background: linear-gradient(90deg, var(--bg-black), transparent);
}

.marquee-container::after {
  right: 0;
  background: linear-gradient(270deg, var(--bg-black), transparent);
}

.marquee-track {
  display: flex;
  gap: 32px;
  width: max-content;
  animation: marqueeMove 32s linear infinite;
}

.marquee-container:hover .marquee-track { animation-play-state: paused; }

@keyframes marqueeMove {
  from { transform: translateX(0); }
  to { transform: translateX(-50%); }
}

.marquee-item {
  display: flex;
  align-items: center;
  gap: 12px;
  padding: 10px 20px;
  border-radius: 9999px;
  background: rgba(255, 255, 255, 0.03);
  border: 1px solid var(--border-subtle);
  color: var(--text-secondary);
  font-size: 0.875rem;
  font-weight: 500;
  white-space: nowrap;
}

.marquee-item svg { width: 16px; height: 16px; color: var(--text-primary); }

/* Interactive Global Corridors Section */
.corridors-filter-bar {
  display: flex;
  justify-content: center;
  gap: 10px;
  margin-bottom: 36px;
  flex-wrap: wrap;
}

.corridor-tab {
  background: rgba(255, 255, 255, 0.04);
  border: 1px solid var(--border-subtle);
  border-radius: 10px;
  padding: 10px 20px;
  color: var(--text-secondary);
  font-size: 0.875rem;
  font-weight: 500;
  cursor: pointer;
  transition: all 0.2s ease;
  font-family: inherit;
}

.corridor-tab:hover { background: rgba(255, 255, 255, 0.08); color: #fff; }
.corridor-tab.active {
  background: #ffffff;
  color: #000000;
  border-color: #ffffff;
  font-weight: 600;
}

.corridors-grid {
  display: grid;
  grid-template-columns: repeat(auto-fill, minmax(260px, 1fr));
  gap: 16px;
  margin-bottom: 40px;
}

.corridor-card {
  background: var(--bg-card);
  border: 1px solid var(--border-subtle);
  border-radius: 12px;
  padding: 20px;
  cursor: pointer;
  transition: all 0.2s cubic-bezier(0.16, 1, 0.3, 1);
}

.corridor-card:hover {
  border-color: rgba(255, 255, 255, 0.25);
  background: var(--bg-card-hover);
  transform: translateY(-2px);
}

.corridor-card.active {
  border-color: var(--accent-cyan);
  background: rgba(6, 182, 212, 0.08);
}

.corridor-top {
  display: flex;
  align-items: center;
  justify-content: space-between;
  margin-bottom: 12px;
}

.corridor-flag { font-size: 1.5rem; line-height: 1; }
.corridor-status {
  font-family: var(--font-mono);
  font-size: 0.6875rem;
  color: var(--accent-emerald);
  display: flex;
  align-items: center;
  gap: 5px;
}

.corridor-country { font-size: 1.0625rem; font-weight: 600; color: #fff; margin-bottom: 4px; }
.corridor-rails { font-size: 0.8125rem; color: var(--text-muted); }

.corridor-detail-view {
  background: var(--bg-card);
  border: 1px solid var(--border-subtle);
  border-radius: 16px;
  padding: 36px;
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 30px;
  flex-wrap: wrap;
}

.corridor-detail-left { max-width: 650px; }
.corridor-detail-badge { font-family: var(--font-mono); font-size: 0.75rem; color: var(--accent-cyan); margin-bottom: 8px; }
.corridor-detail-title { font-size: 1.5rem; font-weight: 700; color: #fff; margin-bottom: 10px; }
.corridor-detail-text { font-size: 0.9375rem; color: var(--text-secondary); line-height: 1.6; }

/* --- 12. Full-Featured API Reference Layout --- */
.docs-guide-layout {
  display: grid;
  grid-template-columns: 280px 1fr;
  gap: 28px;
  background: var(--bg-card);
  border: 1px solid var(--border-subtle);
  border-radius: 16px;
  padding: 30px;
  backdrop-filter: blur(20px);
}

.docs-sidebar {
  display: flex;
  flex-direction: column;
  gap: 24px;
  border-right: 1px solid rgba(255, 255, 255, 0.06);
  padding-right: 20px;
}

.docs-nav-group {
  display: flex;
  flex-direction: column;
  gap: 6px;
}

.docs-nav-title {
  font-family: var(--font-mono);
  font-size: 0.6875rem;
  font-weight: 700;
  color: var(--text-dim);
  letter-spacing: 1px;
  margin-bottom: 6px;
}

.docs-nav-btn {
  background: none;
  border: none;
  color: var(--text-secondary);
  font-size: 0.875rem;
  font-weight: 500;
  text-align: left;
  padding: 8px 12px;
  border-radius: 8px;
  cursor: pointer;
  transition: all 0.2s ease;
  font-family: inherit;
}

.docs-nav-btn:hover {
  background: rgba(255, 255, 255, 0.05);
  color: #fff;
}

.docs-nav-btn.active {
  background: rgba(255, 255, 255, 0.1);
  color: #fff;
  font-weight: 600;
}

.docs-content-pane {
  min-height: 380px;
}

.docs-tab-pane {
  display: none;
  animation: docsFade 0.25s ease;
}

.docs-tab-pane.active {
  display: block;
}

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

.docs-pane-heading {
  font-size: 1.375rem;
  font-weight: 700;
  color: #fff;
  margin-bottom: 10px;
}

.docs-pane-desc {
  font-size: 0.9375rem;
  color: var(--text-secondary);
  line-height: 1.6;
  margin-bottom: 20px;
}

.code-terminal-box {
  background: #050608;
  border: 1px solid rgba(255, 255, 255, 0.08);
  border-radius: 10px;
  overflow: hidden;
  margin-bottom: 20px;
}

.terminal-bar {
  display: flex;
  align-items: center;
  justify-content: space-between;
  background: rgba(255, 255, 255, 0.03);
  padding: 10px 16px;
  border-bottom: 1px solid rgba(255, 255, 255, 0.06);
}

.term-lang {
  font-family: var(--font-mono);
  font-size: 0.6875rem;
  color: var(--text-muted);
  font-weight: 600;
}

.term-badge {
  font-family: var(--font-mono);
  font-size: 0.6875rem;
  color: var(--accent-emerald);
}

.code-terminal-box pre {
  padding: 18px 20px;
  font-family: var(--font-mono);
  font-size: 0.8125rem;
  color: #e4e4e7;
  line-height: 1.6;
  overflow-x: auto;
}

.docs-callout {
  background: rgba(6, 182, 212, 0.08);
  border-left: 3px solid var(--accent-cyan);
  padding: 12px 16px;
  border-radius: 6px;
  font-size: 0.875rem;
  color: var(--text-secondary);
  line-height: 1.5;
}

/* Interactive Telemetry Stepper */
.telemetry-stepper {
  display: grid;
  grid-template-columns: repeat(6, 1fr);
  gap: 10px;
  margin-bottom: 24px;
}

.t-step {
  background: rgba(255, 255, 255, 0.03);
  border: 1px solid var(--border-subtle);
  border-radius: 10px;
  padding: 14px 12px;
  cursor: pointer;
  text-align: left;
  transition: all 0.2s ease;
  font-family: inherit;
}

.t-step:hover { background: rgba(255, 255, 255, 0.06); }
.t-step.active { background: rgba(255, 255, 255, 0.1); border-color: #ffffff; }

.t-step-num { font-family: var(--font-mono); font-size: 0.75rem; color: var(--accent-cyan); margin-bottom: 4px; }
.t-step-name { font-size: 0.8125rem; font-weight: 600; color: #fff; }

.telemetry-display {
  background: rgba(0, 0, 0, 0.5);
  border: 1px solid var(--border-subtle);
  border-radius: 12px;
  padding: 28px;
}

.t-display-badge { font-family: var(--font-mono); font-size: 0.75rem; color: var(--text-muted); margin-bottom: 10px; }
.t-display-title { font-size: 1.375rem; font-weight: 700; color: #fff; margin-bottom: 12px; }
.t-display-desc { font-size: 0.9375rem; color: var(--text-secondary); line-height: 1.65; margin-bottom: 24px; }

.t-stats-row {
  display: flex;
  gap: 32px;
  border-top: 1px solid rgba(255, 255, 255, 0.06);
  padding-top: 20px;
  flex-wrap: wrap;
}

.t-stat-item .lbl { font-size: 0.75rem; color: var(--text-muted); margin-bottom: 4px; }
.t-stat-item .val { font-family: var(--font-mono); font-size: 0.9375rem; font-weight: 600; color: #fff; }

/* Metrics Numbers Strip */
.metrics-strip-row {
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  gap: 24px;
  padding: 60px 0;
  border-top: 1px solid var(--border-subtle);
  border-bottom: 1px solid var(--border-subtle);
}

.metric-strip-card { text-align: center; }
.metric-strip-num {
  font-family: var(--font-mono);
  font-size: 2.75rem;
  font-weight: 700;
  color: #fff;
  letter-spacing: -0.04em;
  margin-bottom: 8px;
}
.metric-strip-label { font-size: 0.875rem; color: var(--text-secondary); }

/* Contact Form */
.contact-studio-box {
  background: var(--bg-card);
  border: 1px solid var(--border-subtle);
  border-radius: 20px;
  padding: 60px 40px;
  text-align: center;
}

.studio-form {
  max-width: 600px;
  margin: 36px auto 0;
  display: flex;
  flex-direction: column;
  gap: 16px;
}

.form-split { display: flex; gap: 16px; }

.studio-input {
  flex: 1;
  background: rgba(0, 0, 0, 0.5);
  border: 1px solid var(--border-subtle);
  border-radius: 10px;
  padding: 14px 18px;
  color: #fff;
  font-size: 0.9375rem;
  font-family: inherit;
  transition: all 0.2s ease;
}

.studio-input:focus {
  outline: none;
  border-color: rgba(255, 255, 255, 0.35);
  background: rgba(0, 0, 0, 0.8);
}

.studio-select { cursor: pointer; color: var(--text-secondary); }
.form-status-msg { font-size: 0.875rem; min-height: 20px; }
.form-status-msg.ok { color: var(--accent-emerald); }

/* Footer */
.site-footer {
  border-top: 1px solid var(--border-subtle);
  padding: 60px 0 30px;
}

.footer-top {
  display: flex;
  align-items: center;
  justify-content: space-between;
  margin-bottom: 40px;
  flex-wrap: wrap;
  gap: 20px;
}

.footer-links { display: flex; gap: 24px; flex-wrap: wrap; }
.footer-links a { color: var(--text-muted); text-decoration: none; font-size: 0.875rem; transition: color 0.2s ease; }
.footer-links a:hover { color: #fff; }

.footer-bottom {
  display: flex;
  justify-content: space-between;
  font-size: 0.8125rem;
  color: var(--text-dim);
  border-top: 1px solid rgba(255, 255, 255, 0.05);
  padding-top: 24px;
  flex-wrap: wrap;
  gap: 12px;
}

/* Modal Dialog */
.modal-overlay {
  position: fixed;
  inset: 0;
  background: rgba(0, 0, 0, 0.8);
  backdrop-filter: blur(16px);
  display: flex;
  align-items: center;
  justify-content: center;
  z-index: 2000;
  opacity: 0;
  visibility: hidden;
  transition: all 0.25s ease;
  padding: 20px;
}

.modal-overlay.open { opacity: 1; visibility: visible; }
.modal-card {
  width: 100%;
  max-width: 440px;
  background: #09090b;
  border: 1px solid var(--border-subtle);
  border-radius: 16px;
  padding: 36px;
  position: relative;
  transform: scale(0.96);
  transition: transform 0.25s cubic-bezier(0.16, 1, 0.3, 1);
}

.modal-overlay.open .modal-card { transform: scale(1); }

.modal-close {
  position: absolute;
  top: 18px;
  right: 18px;
  background: none;
  border: none;
  color: var(--text-muted);
  font-size: 1.5rem;
  cursor: pointer;
  line-height: 1;
}

.modal-close:hover { color: #fff; }

/* Floating Telegram Action */
.floating-support-btn {
  position: fixed;
  bottom: 24px;
  right: 24px;
  z-index: 999;
  display: inline-flex;
  align-items: center;
  gap: 10px;
  padding: 12px 20px;
  border-radius: 9999px;
  background: rgba(255, 255, 255, 0.08);
  backdrop-filter: blur(16px);
  border: 1px solid rgba(255, 255, 255, 0.15);
  color: #fff;
  text-decoration: none;
  font-size: 0.875rem;
  font-weight: 500;
  box-shadow: 0 10px 30px rgba(0, 0, 0, 0.5);
  transition: all 0.25s ease;
}

.floating-support-btn:hover {
  background: rgba(255, 255, 255, 0.15);
  border-color: rgba(255, 255, 255, 0.3);
  transform: translateY(-2px);
}

/* --- 13. Mobile Adaptation & Responsive Rules --- */
@media (max-width: 1024px) {
  .hero-title { font-size: 3.25rem; }
  .bento-grid { grid-template-columns: 1fr; }
  .bento-card.col-span-2 { grid-column: span 1; }
  .telemetry-stepper { grid-template-columns: repeat(3, 1fr); }
  .metrics-strip-row { grid-template-columns: repeat(2, 1fr); }
  .docs-guide-layout { grid-template-columns: 1fr; }
  .docs-sidebar {
    border-right: none;
    border-bottom: 1px solid rgba(255, 255, 255, 0.06);
    padding-right: 0;
    padding-bottom: 20px;
  }
}

@media (max-width: 768px) {
  .nav-menu { display: none; }
  .nav-btn-hide-mobile { display: none !important; }
  .mobile-burger { display: flex; }

  .hero-title {
    font-size: 2.35rem;
    line-height: 1.1;
  }
  .hero-subtitle { font-size: 1.05rem; }

  .btn-row {
    flex-direction: column;
    width: 100%;
  }
  .btn-row .btn-magic-primary,
  .btn-row .btn-magic-secondary {
    width: 100%;
    justify-content: center;
  }

  /* Animated Beam on Mobile */
  .beam-pipeline-wrapper {
    flex-direction: column;
    gap: 16px;
  }
  .beam-connector-track {
    width: 2px;
    height: 24px;
    margin-bottom: 0;
  }
  .beam-light-pulse {
    width: 100%;
    height: 12px;
    top: -12px;
    left: 0;
    animation: beamPulseMoveVertical 2s infinite ease-in-out;
  }
  @keyframes beamPulseMoveVertical {
    0% { top: -12px; }
    100% { top: 100%; }
  }

  .form-split { flex-direction: column; }
  .telemetry-stepper { grid-template-columns: repeat(2, 1fr); }
  .metrics-strip-row { grid-template-columns: 1fr; gap: 32px; padding: 40px 0; }
  .contact-studio-box { padding: 40px 20px; }
  .docs-guide-layout { padding: 20px 16px; }
  .corridor-detail-view { padding: 24px 20px; }
}
