/* ═══ Self-hosted Fonts ═══ */
@font-face {
  font-family: 'Outfit';
  font-style: normal;
  font-weight: 400 800;
  font-display: swap;
  src: url('/assets/fonts/outfit-variable.woff2') format('woff2');
}

@font-face {
  font-family: 'Plus Jakarta Sans';
  font-style: normal;
  font-weight: 400 700;
  font-display: swap;
  src: url('/assets/fonts/plusjakartasans-variable.woff2') format('woff2');
}

@font-face {
  font-family: 'Fira Code';
  font-style: normal;
  font-weight: 400 600;
  font-display: swap;
  src: url('/assets/fonts/firacode-variable.woff2') format('woff2');
}

/* Design Tokens */
:root {
  --bg-0: #000000;
  --bg-1: #000000;
  --bg-2: #111111;
  --bg-3: #222222;
  
  --border: rgba(255, 255, 255, 0.1); /* Finer, semi-transparent borders */
  --border-hover: rgba(255, 255, 255, 0.2);
  
  --text-0: #ffffff;
  --text-1: #a1a1aa;
  --text-2: #71717a;
  --text-3: #52525b;
  
  --accent: #ffffff;
  --green: #22c55e;
  
  --font-display: 'Outfit', system-ui, -apple-system, sans-serif;
  --font-sans: 'Plus Jakarta Sans', system-ui, -apple-system, sans-serif;
  --font-mono: 'Fira Code', ui-monospace, monospace;
  
  --nav-height: 80px;
  
  /* UX Timing Functions */
  --ease-out-expo: cubic-bezier(0.16, 1, 0.3, 1);
  --ease-out-quart: cubic-bezier(0.25, 1, 0.5, 1);
  --ease-spring: cubic-bezier(0.34, 1.56, 0.64, 1);
}

/* Scroll offset for fixed nav — prevents deep-link targets from hiding under navbar */
[id] {
  scroll-margin-top: calc(var(--nav-height) + 16px);
}

/* Reset & Base */
*, *::before, *::after {
  box-sizing: border-box;
  margin: 0;
  padding: 0;
}

html {
  scroll-behavior: smooth;
  font-size: 16px;
  background-color: var(--bg-0);
  color: var(--text-1);
  font-family: var(--font-sans);
  -webkit-font-smoothing: antialiased;
  -moz-osx-font-smoothing: grayscale;
  text-rendering: optimizeLegibility;
  overflow-x: hidden;
}

body {
  line-height: 1.5;
  overflow-x: hidden;
  background-image: 
    linear-gradient(to right, rgba(255, 255, 255, 0.04) 1px, transparent 1px),
    linear-gradient(to bottom, rgba(255, 255, 255, 0.04) 1px, transparent 1px);
  background-size: 64px 64px;
  background-position: center top;
}

body.loading {
  overflow: hidden;
}

[hidden] {
  display: none !important;
}

/* SPA page hiding — uses visibility instead of display:none
   to preserve CSS animation fill states (prevents re-triggering
   entrance animations when switching back from docs to home) */
.page-hidden {
  visibility: hidden;
  height: 0;
  overflow: hidden;
  pointer-events: none;
}

/* ═══ Scroll Progress Indicator ═══ */
.scroll-progress {
  position: fixed;
  top: 0;
  left: 0;
  height: 2px;
  background: linear-gradient(90deg, rgba(255,255,255,0.6), rgba(34,197,94,0.8), rgba(255,255,255,0.6));
  z-index: 9999;
  transform-origin: left;
  transform: scaleX(0);
  will-change: transform;
  pointer-events: none;
  transition: none;
}

/* ═══ Toast Notification ═══ */
.toast {
  position: fixed;
  bottom: 2rem;
  left: 50%;
  transform: translateX(-50%) translateY(100px);
  background: rgba(10, 10, 10, 0.95);
  border: 1px solid rgba(34, 197, 94, 0.3);
  color: var(--text-0);
  padding: 0.75rem 1.5rem;
  border-radius: 12px;
  font-size: 0.875rem;
  font-family: var(--font-sans);
  display: flex;
  align-items: center;
  gap: 0.5rem;
  z-index: 10000;
  backdrop-filter: blur(20px);
  box-shadow: 0 8px 32px rgba(0,0,0,0.6), 0 0 0 1px rgba(255,255,255,0.05) inset;
  opacity: 0;
  transition: transform 0.5s var(--ease-spring), opacity 0.3s ease;
  pointer-events: none;
}

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

/* Preloader Redesign */
.preloader {
  position: fixed;
  inset: 0;
  z-index: 9999;
  display: flex;
  align-items: center;
  justify-content: center;
  pointer-events: none;
}

.preloader-bg {
  position: absolute;
  inset: 0;
  background: var(--bg-0);
  z-index: 0;
  clip-path: polygon(0 0, 100% 0, 100% 100%, 0% 100%);
  transition: clip-path 1s cubic-bezier(0.8, 0, 0.2, 1);
}

.preloader-bg.sweep-reveal {
  clip-path: polygon(0 100%, 100% 100%, 100% 100%, 0 100%);
}

.scanner-laser {
  position: absolute;
  top: 0;
  left: 0;
  width: 100%;
  height: 2px;
  background: var(--text-0);
  z-index: 2;
  box-shadow: 0 0 20px var(--text-0), 0 0 40px var(--text-0);
  opacity: 0;
}

.scanner-laser.sweep {
  animation: laserSweep 1s cubic-bezier(0.8, 0, 0.2, 1) forwards;
}

@keyframes laserSweep {
  0% { transform: translateY(0); opacity: 1; }
  100% { transform: translateY(100vh); opacity: 0; }
}

.preloader-content {
  position: relative;
  z-index: 1;
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 2.5rem;
  transition: all 0.4s cubic-bezier(0.4, 0, 0.2, 1);
}

.preloader-content.hide {
  opacity: 0;
  transform: scale(0.9) translateY(20px);
  filter: blur(10px);
}

.cyber-core {
  position: relative;
  width: 140px;
  height: 140px;
  display: flex;
  align-items: center;
  justify-content: center;
}

.spinner-ring {
  position: absolute;
  border-radius: 50%;
  border: 1px solid transparent;
}

.spinner-ring.rng-1 {
  width: 100%;
  height: 100%;
  border-top: 1px solid var(--text-2);
  border-right: 1px solid rgba(255, 255, 255, 0.1);
  animation: spin 3s cubic-bezier(0.4, 0, 0.2, 1) infinite;
}

.spinner-ring.rng-2 {
  width: 80%;
  height: 80%;
  border-bottom: 2px solid var(--text-0);
  border-left: 1px solid transparent;
  animation: spin 2s cubic-bezier(0.6, 0, 0.4, 1) infinite reverse;
}

.spinner-ring.rng-3 {
  width: 60%;
  height: 60%;
  border: 1px dashed rgba(255, 255, 255, 0.3);
  animation: spin 5s linear infinite;
}

.core-logo {
  color: var(--text-0);
  transition: all 0.4s ease;
  animation: pulseLogo 2s ease-in-out infinite alternate;
}

.core-logo.verified-core {
  color: var(--text-0);
  transform: scale(1.15);
  animation: none;
  filter: drop-shadow(0 0 16px rgba(255, 255, 255, 0.6));
}

@keyframes spin {
  0% { transform: rotate(0deg); }
  100% { transform: rotate(360deg); }
}

@keyframes pulseLogo {
  0% { opacity: 0.7; }
  100% { opacity: 1; }
}

.preloader-text-box {
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 0.75rem;
  width: 240px;
}

.cyber-label {
  font-family: var(--font-mono);
  font-size: 0.75rem;
  color: var(--text-2);
  text-transform: uppercase;
  letter-spacing: 0.1em;
  transition: color 0.3s ease;
}

.cyber-label.verified-text {
  color: var(--text-0);
  text-shadow: 0 0 10px rgba(255, 255, 255, 0.4);
}

.cyber-progress {
  width: 100%;
  height: 2px;
  background: rgba(255, 255, 255, 0.1);
  position: relative;
  overflow: hidden;
  border-radius: 2px;
}

.cyber-bar {
  position: absolute;
  top: 0;
  left: 0;
  height: 100%;
  width: 0%;
  background: var(--text-0);
  transition: width 0.15s ease-out;
  border-radius: 2px;
}

.cyber-bar.verified-bar {
  background: var(--text-0);
  box-shadow: 0 0 10px var(--text-0);
}

.cyber-codes {
  font-family: var(--font-mono);
  font-size: 0.65rem;
  color: var(--text-3);
  letter-spacing: 0.1em;
}

/* App Reveal & Entrance Animations */
.nav,
.hero-glow,
.hero-badge,
.hero h1,
.hero p,
.hero-install,
.hero-visual-wrapper {
  opacity: 0;
}

body.loaded .nav {
  animation: slideDownNav 1s cubic-bezier(0.16, 1, 0.3, 1) 0.1s forwards;
}

body.loaded .hero-glow {
  animation: fadeInGlow 2s ease 0.4s forwards;
}

body.loaded .hero-badge {
  animation: slideUpFade 1s cubic-bezier(0.16, 1, 0.3, 1) 0.3s forwards;
}

body.loaded .hero h1 {
  animation: slideUpFade 1s cubic-bezier(0.16, 1, 0.3, 1) 0.4s forwards;
}

body.loaded .hero p {
  animation: slideUpFade 1s cubic-bezier(0.16, 1, 0.3, 1) 0.5s forwards;
}

body.loaded .hero-install {
  animation: slideUpFade 1s cubic-bezier(0.16, 1, 0.3, 1) 0.6s forwards;
}

body.loaded .hero-visual-wrapper {
  animation: slideUpFade 1.2s cubic-bezier(0.16, 1, 0.3, 1) 0.7s forwards;
}

@keyframes slideDownNav {
  0% { transform: translateY(-100%); opacity: 0; }
  100% { transform: translateY(0); opacity: 1; }
}

@keyframes slideUpFade {
  0% { transform: translateY(40px); opacity: 0; }
  100% { transform: translateY(0); opacity: 1; }
}

@keyframes fadeInGlow {
  0% { opacity: 0; }
  100% { opacity: 1; }
}

a {
  color: inherit;
  text-decoration: none;
  transition: color 0.2s ease;
}

ul {
  list-style: none;
}

button {
  cursor: pointer;
  border: none;
  background: none;
  font-family: inherit;
}

/* Typography Fluid Scaling */
h1, h2, h3, h4 {
  color: var(--text-0);
  font-family: var(--font-display);
  font-weight: 500;
  line-height: 1.1;
  letter-spacing: -0.02em;
}

h1 { font-size: clamp(3rem, 6vw, 5rem); letter-spacing: -0.03em; }
h2 { font-size: clamp(2.5rem, 4.5vw, 3.5rem); }
h3 { font-size: clamp(1.25rem, 2vw, 1.5rem); }
p { font-size: clamp(1rem, 1vw + 0.5rem, 1.125rem); font-weight: 300; }

/* Utility Classes */
.container {
  max-width: 1200px;
  margin: 0 auto;
  padding: 0 24px;
}

.section-label {
  display: inline-block;
  font-size: 11px;
  font-family: var(--font-display);
  font-weight: 700;
  letter-spacing: 0.2em;
  color: var(--text-2);
  text-transform: uppercase;
  margin-bottom: 0.75rem;
}

.section-title {
  font-size: 1.5rem;
  font-weight: 700;
  letter-spacing: -0.025em;
  margin-bottom: 2rem;
}

.btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  padding: 0.875rem 1.75rem;
  border-radius: 99px;
  font-size: 0.9375rem;
  font-family: var(--font-display);
  font-weight: 500;
  transition: all 0.3s var(--ease-out-expo);
  cursor: pointer;
  position: relative;
  overflow: hidden;
  -webkit-tap-highlight-color: transparent;
  user-select: none;
}

/* Press-down micro-interaction for all buttons */
.btn:active {
  transform: scale(0.97) !important;
  transition-duration: 0.1s;
}

/* Focus ring for keyboard accessibility */
.btn:focus-visible {
  outline: 2px solid rgba(255, 255, 255, 0.5);
  outline-offset: 3px;
}

.btn-primary {
  background: white;
  color: #000;
  box-shadow: 0 4px 14px 0 rgba(255, 255, 255, 0.1);
}

.btn-primary:hover {
  transform: translateY(-2px);
  box-shadow: 0 4px 20px rgba(255, 255, 255, 0.4);
  background: #f4f4f5;
}

.btn-outline {
  background: rgba(255,255,255, 0.0);
  border: 1px solid rgba(255,255,255, 0.15);
  color: var(--text-0);
  backdrop-filter: blur(10px);
}

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

.badge-free {
  background: rgba(34, 197, 94, 0.1);
  color: var(--green);
  padding: 2px 8px;
  border-radius: 99px;
  font-size: 0.75rem;
  font-weight: 600;
}

/* Navigation */
.nav {
  position: fixed;
  top: 0;
  left: 0;
  right: 0;
  height: var(--nav-height);
  display: flex;
  align-items: center;
  z-index: 100;
  border-bottom: 1px solid rgba(255, 255, 255, 0.03);
  background: rgba(0, 0, 0, 0.2);
  backdrop-filter: blur(24px) saturate(180%);
  -webkit-backdrop-filter: blur(24px) saturate(180%);
  transition: all 0.4s var(--ease-out-expo);
  will-change: background, box-shadow;
}

.nav.scrolled {
  background: rgba(0, 0, 0, 0.7);
  border-bottom: 1px solid rgba(255, 255, 255, 0.08);
  box-shadow: 0 4px 30px rgba(0, 0, 0, 0.4);
}

.nav .container {
  width: 100%;
  display: flex;
  align-items: center;
  justify-content: space-between;
}

.nav-logo {
  display: flex;
  align-items: center;
  gap: 6px;
  color: var(--text-0);
  font-family: var(--font-display);
  font-weight: 700;
  font-size: 1.125rem;
  letter-spacing: -0.025em;
  transition: opacity 0.2s ease;
}

.nav-logo:hover {
  opacity: 0.85;
}

.nav-logo img {
  height: 42px;
}

.nav-links {
  display: flex;
  gap: 32px;
}

.nav-links a {
  font-size: 16px;
  font-family: var(--font-display);
  font-weight: 500;
  color: var(--text-1);
  text-decoration: none;
  transition: color 0.25s ease, text-shadow 0.25s ease;
  position: relative;
  padding-bottom: 4px;
}

/* Animated underline indicator on nav links */
.nav-links a::after {
  content: '';
  position: absolute;
  bottom: 0;
  left: 50%;
  width: 0;
  height: 1px;
  background: linear-gradient(90deg, transparent, rgba(255,255,255,0.6), transparent);
  transition: width 0.3s var(--ease-out-expo), left 0.3s var(--ease-out-expo);
}

.nav-links a:hover {
  color: var(--text-0);
  text-shadow: 0 0 8px rgba(255, 255, 255, 0.3);
}

.nav-links a:hover::after {
  width: 100%;
  left: 0;
}

.nav-right {
  display: flex;
  align-items: center;
  gap: 16px;
}

.hamburger {
  display: none;
  flex-direction: column;
  gap: 4px;
  padding: 8px;
  background: none;
  border: none;
  z-index: 101;
}

.hamburger span {
  display: block;
  width: 20px;
  height: 2px;
  background: var(--text-0);
  transition: 0.3s;
}

/* Hero Section */
.hero {
  padding: calc(2.5rem + var(--nav-height)) 0 4rem; /* Reduced bottom padding */
  background-color: transparent;
  position: relative;
  overflow: visible; /* To allow glow/floats */
}

.hero-glow {
  position: absolute;
  top: 10%;
  left: 50%;
  transform: translate(-50%, -50%);
  width: 900px;
  height: 500px;
  background: radial-gradient(ellipse at center, rgba(255, 255, 255, 0.12) 0%, transparent 60%);
  filter: blur(80px);
  z-index: 0;
  pointer-events: none;
}

.hero::after {
  content: '';
  position: absolute;
  inset: 0;
  background: radial-gradient(800px circle at var(--mouse-x, 50vw) var(--mouse-y, 50vh), rgba(255, 255, 255, 0.08), transparent 40%);
  pointer-events: none;
  z-index: 1;
}

.hero-container {
  max-width: 1200px;
  margin: 0 auto;
  z-index: 2;
  position: relative;
}

.hero-container.two-cols {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 4rem;
  align-items: stretch;
  text-align: left;
}

@media (max-width: 991px) {
  .hero-container.two-cols {
    grid-template-columns: 1fr;
    gap: 2rem;
  }
}

.hero-col {
  display: flex;
  flex-direction: column;
}

.hero-actions {
  display: flex;
  flex-direction: column;
  margin-top: auto;
}

.hero-actions.right-actions {
  margin-top: auto;
}

.hero-paths {
  display: flex;
  flex-direction: column;
  border-top: 1px solid rgba(255,255,255,0.1);
}

.hero-col-right {
  padding-top: 1rem;
  position: relative;
  display: flex;
  flex-direction: column;
  align-items: stretch;
  justify-content: flex-start;
  gap: 0;
}

/* Hypertext Interactive UI */
.hypertext-ui {
  position: relative;
  width: 100%;
  min-height: clamp(280px, 45vh, 400px);
  background: rgba(10, 10, 10, 0.4);
  border: 1px solid rgba(255, 255, 255, 0.1);
  border-radius: 20px;
  backdrop-filter: blur(20px);
  overflow: hidden;
  display: flex;
  flex-direction: column;
  gap: 1.5rem;
  padding: 2rem;
}

.ht-grid {
  position: absolute;
  inset: 0;
  background-image: 
    linear-gradient(to right, rgba(255,255,255,0.03) 1px, transparent 1px),
    linear-gradient(to bottom, rgba(255,255,255,0.03) 1px, transparent 1px);
  background-size: 20px 20px;
  z-index: 0;
}

.ht-panel {
  position: relative;
  z-index: 1;
  background: rgba(0, 0, 0, 0.6);
  border: 1px solid rgba(255, 255, 255, 0.1);
  border-radius: 12px;
  padding: 1rem;
  box-shadow: 0 10px 30px rgba(0,0,0,0.5);
  transform: translateZ(0);
}

.doc-panel {
  width: 80%;
  animation: floatDoc 6s ease-in-out infinite;
}

.kg-panel {
  width: 90%;
  align-self: flex-end;
  height: 200px;
  display: flex;
  background: rgba(20,20,25, 0.8);
  border: 1px solid rgba(255, 255, 255, 0.15);
  margin-top: -20px;
}

.ht-header {
  display: flex;
  align-items: center;
  gap: 12px;
  margin-bottom: 1rem;
  padding-bottom: 0.5rem;
  border-bottom: 1px solid rgba(255,255,255,0.05);
}

.ht-dots {
  display: flex;
  gap: 4px;
}

.ht-dots span {
  width: 8px;
  height: 8px;
  border-radius: 50%;
  background: rgba(255,255,255,0.2);
}

.ht-title {
  font-family: var(--font-mono);
  font-size: 0.75rem;
  color: var(--text-2);
}

.ht-body {
  display: flex;
  flex-direction: column;
  gap: 12px;
}

.ht-line {
  height: 12px;
  background: rgba(255,255,255,0.05);
  border-radius: 4px;
}

.ht-line.w-80 { width: 80%; }
.ht-line.w-100 { width: 100%; }
.ht-line.w-60 { width: 60%; }
.ht-line.w-90 { width: 90%; }

.ht-highlight {
  position: relative;
  background: rgba(34, 197, 94, 0.1);
  border: 1px solid rgba(34, 197, 94, 0.2);
  height: auto;
  padding: 8px 12px;
  border-radius: 8px;
  overflow: hidden;
}

.ht-text {
  font-family: var(--font-mono);
  font-size: 0.8rem;
  color: var(--green);
  position: relative;
  z-index: 1;
}

.ht-scan {
  position: absolute;
  top: 0;
  left: -100%;
  width: 50%;
  height: 100%;
  background: linear-gradient(90deg, transparent, rgba(34, 197, 94, 0.2), transparent);
  animation: scanLine 3s infinite;
}

.ht-pin {
  position: absolute;
  right: -5px;
  bottom: -5px;
  width: 10px;
  height: 10px;
  border-radius: 50%;
  background: var(--green);
  box-shadow: 0 0 10px var(--green);
  animation: pulsePin 2s infinite;
}

/* KG Layout Elements */
.kg-panel {
  position: relative;
  overflow: visible;
}

.kg-lines {
  position: absolute;
  inset: 0;
  z-index: 0;
}

.kg-path.act {
  stroke-dasharray: 1000;
  stroke-dashoffset: 1000;
  animation: drawPath 3s infinite alternate;
}

.kg-node {
  position: absolute;
  display: flex;
  align-items: center;
  gap: 6px;
  background: rgba(0,0,0,0.8);
  border-radius: 6px;
  padding: 6px 12px;
  font-family: var(--font-mono);
  font-size: 0.75rem;
  color: var(--text-0);
  border: 1px solid rgba(255,255,255,0.1);
  z-index: 1;
}

.node-src { top: 15%; left: 10%; }
.node-val { top: 45%; left: 50%; flex-direction: column; align-items: flex-start; gap: 2px;}
.node-ver { top: 60%; left: 15%; background: rgba(34, 197, 94, 0.1); border-color: rgba(34, 197, 94, 0.3); color: var(--green); }

.val-label { font-size: 0.6rem; color: var(--text-2); text-transform: uppercase; }
.val-num { font-size: 0.9rem; color: #fff; font-weight: bold; }

@keyframes floatDoc {
  0% { transform: translateY(0); }
  50% { transform: translateY(-8px); }
  100% { transform: translateY(0); }
}

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

@keyframes pulsePin {
  0% { transform: scale(1); box-shadow: 0 0 0 0 rgba(34, 197, 94, 0.4); }
  70% { transform: scale(1.2); box-shadow: 0 0 0 10px rgba(34, 197, 94, 0); }
  100% { transform: scale(1); box-shadow: 0 0 0 0 rgba(34, 197, 94, 0); }
}

@keyframes drawPath {
  0% { stroke-dashoffset: 1000; }
  100% { stroke-dashoffset: 0; }
}

.hero-kicker {
  font-size: 0.75rem;
  font-family: var(--font-display);
  font-weight: 600;
  text-transform: uppercase;
  letter-spacing: 0.1em;
  color: var(--text-2);
  margin-bottom: 2rem;
  padding-bottom: 1rem;
}

.hero-kicker.right-kicker {
  border-bottom: 1px solid rgba(255, 255, 255, 0.1);
}

.hero-title {
  font-size: clamp(2.2rem, 5.5vw, 4.2rem);
  font-family: var(--font-display);
  font-weight: 700;
  letter-spacing: -0.04em;
  line-height: 1.08;
  margin-bottom: 1.5rem;
  background: linear-gradient(180deg, #ffffff 0%, rgba(255,255,255,0.5) 100%);
  -webkit-background-clip: text;
  -webkit-text-fill-color: transparent;
  background-clip: text;
  color: transparent;
  filter: drop-shadow(0 0 60px rgba(255,255,255,0.3));
}

.hero-desc {
  color: var(--text-2);
  font-size: 1.25rem;
  line-height: 1.6;
  max-width: 580px;
  font-weight: 400;
}

/* Install Snippet */
.path-links {
  display: flex;
  flex-direction: column;
}

.path-link {
  display: flex;
  flex-direction: column;
  padding: 1.5rem 0;
  border-bottom: 1px solid rgba(255, 255, 255, 0.1);
  transition: all 0.3s ease;
  cursor: pointer;
  text-decoration: none;
}

.path-link:hover .path-arrow {
  transform: translateX(4px);
  color: var(--text-0);
}

.path-meta {
  font-size: 0.65rem;
  font-family: var(--font-display);
  font-weight: 600;
  text-transform: uppercase;
  letter-spacing: 0.1em;
  color: var(--text-2);
  margin-bottom: 0.5rem;
}

.path-row {
  display: flex;
  align-items: center;
  justify-content: space-between;
}

.path-title {
  font-family: var(--font-display);
  font-size: 1.5rem;
  font-weight: 500;
  color: var(--text-0);
  margin: 0;
}

.path-arrow {
  color: var(--text-2);
  transition: all 0.3s ease;
}

.hero-install {
  display: flex;
  align-items: center;
  padding: 1.5rem 0;
  gap: 1rem;
  border-bottom: 1px solid rgba(255, 255, 255, 0.1);
}

.install-prompt {
  color: var(--green, #22c55e);
  font-family: var(--font-mono);
  font-size: 1.125rem;
  font-weight: 600;
  flex-shrink: 0;
}

.install-cmd {
  color: var(--text-0);
  font-family: var(--font-mono);
  font-size: 1.125rem;
  letter-spacing: -0.02em;
  flex-grow: 1;
  font-weight: 500;
  white-space: nowrap;
}

.install-copy {
  display: flex;
  justify-content: center;
  align-items: center;
  width: 32px;
  height: 32px;
  border-radius: 50%;
  background: rgba(255, 255, 255, 0.05);
  border: 1px solid rgba(255, 255, 255, 0.05);
  color: var(--text-1);
  cursor: pointer;
  transition: all 0.2s ease;
}

.install-copy:hover {
  background: rgba(255, 255, 255, 0.1);
  color: var(--text-0);
  transform: scale(1.05);
}

.hero-container-visual {
  display: flex;
  justify-content: center;
  max-width: 1200px;
  margin: 0 auto;
  z-index: 2;
  position: relative;
}

/* Hero Visual Box */
.hero-visual-wrapper {
  position: relative;
  width: 100%;
  max-width: 1000px;
  perspective: 2000px;
  margin-top: 4rem;
}

.hero-visual {
  background: #000000;
  border: 1px solid rgba(255, 255, 255, 0.1);
  border-radius: 12px;
  overflow: hidden;
  box-shadow: 0 40px 100px -20px rgba(0, 0, 0, 1), 0 0 0 1px rgba(255,255,255,0.05) inset;
  transform: rotateX(5deg) scale(0.95);
  transform-style: preserve-3d;
  transition: transform 0.6s var(--ease-out-expo), box-shadow 0.6s ease;
  will-change: transform;
}

.hero-visual-wrapper:hover .hero-visual {
  transform: rotateX(0deg) scale(1.0);
  box-shadow: 0 60px 120px -20px rgba(0, 0, 0, 1), 0 0 80px rgba(255,255,255,0.03), 0 0 0 1px rgba(255,255,255,0.08) inset;
}

.ui-header {
  display: flex;
  align-items: center;
  padding: 0.75rem 1rem;
  background: rgba(255, 255, 255, 0.02);
  border-bottom: 1px solid rgba(255, 255, 255, 0.05);
  gap: 1rem;
}

.ui-dots {
  display: flex;
  gap: 6px;
  margin-right: 1rem;
}

.ui-dots span {
  width: 10px;
  height: 10px;
  border-radius: 50%;
  background: rgba(255, 255, 255, 0.2);
}

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

.ui-tab {
  color: var(--text-2);
  font-size: 0.8125rem;
  font-family: var(--font-mono);
  padding: 0.25rem 0.75rem;
  border-radius: 4px;
  cursor: default;
}

.ui-tab.active {
  background: rgba(255, 255, 255, 0.05);
  color: var(--text-0);
  box-shadow: inset 0 1px 0 rgba(255,255,255,0.1);
}

.ui-body {
  display: flex;
  height: 380px;
}

.ui-sidebar {
  width: 200px;
  border-right: 1px solid rgba(255, 255, 255, 0.05);
  padding: 1rem 0.5rem;
  display: flex;
  flex-direction: column;
  gap: 0.25rem;
  background: rgba(255, 255, 255, 0.01);
}

.ui-sidebar-item {
  display: flex;
  align-items: center;
  gap: 0.75rem;
  color: var(--text-2);
  font-size: 0.8125rem;
  padding: 0.5rem 0.75rem;
  border-radius: 6px;
}

.ui-sidebar-item svg {
  opacity: 0.7;
}

.ui-sidebar-item.active {
  background: rgba(255, 255, 255, 0.05);
  color: var(--text-0);
}

.ui-editor {
  flex: 1;
  padding: 1.5rem;
  text-align: left;
  overflow: auto;
  background: #000;
}

.ui-editor pre {
  margin: 0;
  font-family: var(--font-mono);
  font-size: 0.875rem;
  line-height: 1.6;
  color: var(--text-0);
}

.ui-editor .type { color: #f472b6; }
.ui-editor .string { color: #34d399; }
.ui-editor .number { color: #fbbf24; }
.ui-editor .boolean { color: #fbbf24; }
.ui-editor .function { color: #60a5fa; }
.ui-editor .comment { color: #6b7280; font-style: italic; }

/* Floating Cards */
.hero-float-card {
  position: absolute;
  background: rgba(20, 20, 20, 0.8);
  backdrop-filter: blur(16px);
  border: 1px solid rgba(255, 255, 255, 0.1);
  border-radius: 12px;
  padding: 1rem 1.25rem;
  box-shadow: 0 12px 32px rgba(0,0,0,0.8), inset 0 1px 0 rgba(255,255,255,0.1);
  z-index: 10;
  transform: translateZ(50px);
  animation: float-soft 6s ease-in-out infinite alternate;
}

.card-1 {
  bottom: 20%;
  left: -5%;
  display: flex;
  align-items: center;
  gap: 0.75rem;
  animation-delay: 0s;
}

.card-1 .card-icon {
  display: flex;
  align-items: center;
  justify-content: center;
  width: 24px;
  height: 24px;
  border-radius: 50%;
  background: rgba(34, 197, 94, 0.1);
}

.card-1 .card-text {
  font-size: 0.875rem;
  font-weight: 500;
  color: var(--text-0);
}

.card-2 {
  top: 15%;
  right: -5%;
  text-align: left;
  animation-delay: -3s;
}

.card-2 .card-title {
  font-size: 0.75rem;
  color: var(--text-2);
  margin-bottom: 0.25rem;
  text-transform: uppercase;
  letter-spacing: 0.05em;
}

.card-2 .card-value {
  font-size: 1.25rem;
  font-weight: 600;
  color: var(--text-0);
  font-family: var(--font-mono);
}

.card-2 .unit {
  font-size: 0.875rem;
  color: var(--text-2);
}

@keyframes float-soft {
  0% { transform: translateZ(50px) translateY(0); }
  100% { transform: translateZ(50px) translateY(-15px); }
}

@media (max-width: 1024px) {
  .hero-float-card.card-1, .hero-float-card.card-2 { display: none; }
  .ui-sidebar { display: none; }
}

@media (max-width: 768px) {
  .hero-col-left,
  .hero-col-right {
    max-width: 100%;
    overflow: hidden;
  }
  .hero-install {
    padding: 1.25rem 0;
    gap: 0.5rem;
    overflow: hidden;
  }
  .install-cmd {
    font-size: 0.8125rem;
    overflow: hidden;
    text-overflow: ellipsis;
    min-width: 0;
  }
  .install-prompt {
    font-size: 0.875rem;
  }
  .install-copy {
    flex-shrink: 0;
  }
  .path-title {
    font-size: 1.125rem;
    word-break: break-word;
  }
  .path-row {
    gap: 0.5rem;
  }
  .path-arrow {
    flex-shrink: 0;
  }
}

/* Stats */
.stats {
  padding: 0 0 6rem 0;
  background: transparent;
  border: none;
  position: relative;
  z-index: 10;
}

.stats-grid {
  display: flex;
  justify-content: center;
  align-items: center;
  flex-wrap: nowrap;
  gap: 2rem;
  padding: 1.5rem 3.5rem;
  border: 1px solid rgba(255,255,255, 0.1);
  border-radius: 16px;
  background: #000;
  backdrop-filter: blur(20px);
  width: fit-content;
  margin: -3rem auto 0;
  box-shadow: 0 20px 40px rgba(0,0,0,0.8), inset 0 1px 0 rgba(255,255,255,0.1);
}

.stat-item {
  display: flex;
  flex-direction: row;
  align-items: baseline;
  gap: 12px;
  background: transparent;
  border: none;
  padding: 0;
  min-width: unset;
  flex: none;
}

.stat-item + .stat-item::before {
  content: '';
  width: 1px;
  height: 24px;
  background: rgba(255,255,255,0.1);
  margin-right: 1rem;
  margin-left: 0rem;
}

.stat-label {
  color: var(--text-2);
  font-size: 0.875rem;
  text-transform: uppercase;
  letter-spacing: 0.05em;
  margin-bottom: 0;
  font-weight: 500;
}

.stat-value {
  color: var(--text-0);
  font-size: 1.5rem;
  font-weight: 600;
  font-family: var(--font-sans);
  letter-spacing: -0.02em;
}

/* Sections Base */
section {
  padding: 4rem 0;
  background: var(--bg-1);
  position: relative;
}
section:nth-of-type(even) {
  background: var(--bg-0);
}

/* Gradient glow divider between sections */
section + section::before {
  content: '';
  position: absolute;
  top: 0;
  left: 10%;
  right: 10%;
  height: 1px;
  background: linear-gradient(90deg, transparent, rgba(255,255,255,0.06), transparent);
  pointer-events: none;
  z-index: 0;
}

.section-header {
  margin-bottom: 2rem;
}

/* Pipeline Visual */
.section-desc {
  color: var(--text-2);
  font-size: 1rem;
  margin-top: 0.75rem;
  max-width: 560px;
}

/* ═══ Use Cases Section ═══ */
.use-cases {
  padding: 6rem 0;
}

.usecase-explainer {
  display: flex;
  align-items: flex-start;
  gap: 1.25rem;
  background: linear-gradient(135deg, rgba(99, 102, 241, 0.06) 0%, rgba(59, 130, 246, 0.04) 100%);
  border: 1px solid rgba(99, 102, 241, 0.1);
  border-radius: 16px;
  padding: 2rem;
  margin-bottom: 3.5rem;
}

.explainer-icon {
  flex-shrink: 0;
  width: 48px;
  height: 48px;
  display: flex;
  align-items: center;
  justify-content: center;
  background: linear-gradient(135deg, rgba(99, 102, 241, 0.15) 0%, rgba(139, 92, 246, 0.08) 100%);
  border: 1px solid rgba(99, 102, 241, 0.2);
  border-radius: 12px;
  color: #a78bfa;
  box-shadow: 0 0 20px rgba(99, 102, 241, 0.06), inset 0 1px 0 rgba(255, 255, 255, 0.05);
}

.explainer-text h3 {
  font-family: var(--font-display);
  font-size: 1rem;
  font-weight: 600;
  color: var(--text-0);
  margin-bottom: 0.5rem;
}

.explainer-text p {
  font-size: 0.9375rem;
  line-height: 1.7;
  color: var(--text-2);
}

.usecase-grid {
  display: flex;
  flex-direction: column;
  gap: 3rem;
}

.usecase-card {
  display: grid;
  grid-template-columns: 340px 1fr;
  gap: 2.5rem;
  align-items: center;
  background: var(--bg-1);
  border: 1px solid rgba(255, 255, 255, 0.04);
  border-radius: 20px;
  padding: 2rem;
  transition: border-color 0.3s ease, transform 0.3s ease;
}

.usecase-card:hover {
  border-color: rgba(255, 255, 255, 0.08);
  transform: translateY(-2px);
}

.usecase-card-reverse {
  grid-template-columns: 1fr 340px;
}

.usecase-card-reverse .usecase-card-image {
  order: 2;
}

.usecase-card-reverse .usecase-card-content {
  order: 1;
}

.usecase-card-image {
  border-radius: 14px;
  overflow: hidden;
  aspect-ratio: 1 / 1;
  background: rgba(0, 0, 0, 0.3);
}

.usecase-card-image img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  border-radius: 14px;
  transition: transform 0.5s ease;
}

.usecase-card:hover .usecase-card-image img {
  transform: scale(1.03);
}

.usecase-card-badge {
  display: inline-block;
  font-family: var(--font-mono);
  font-size: 0.6875rem;
  font-weight: 600;
  text-transform: uppercase;
  letter-spacing: 0.05em;
  padding: 4px 10px;
  border-radius: 6px;
  background: rgba(99, 102, 241, 0.12);
  color: #818cf8;
  margin-bottom: 0.75rem;
}

.badge-amber {
  background: rgba(245, 158, 11, 0.12);
  color: #fbbf24;
}

.badge-green {
  background: rgba(34, 197, 94, 0.12);
  color: #4ade80;
}

.badge-cyan {
  background: rgba(6, 182, 212, 0.12);
  color: #22d3ee;
}

.badge-purple {
  background: rgba(168, 85, 247, 0.12);
  color: #c084fc;
}

.usecase-card-content h3 {
  font-family: var(--font-display);
  font-size: 1.375rem;
  font-weight: 700;
  color: var(--text-0);
  margin-bottom: 0.75rem;
}

.usecase-card-content > p {
  font-size: 0.9375rem;
  line-height: 1.7;
  color: var(--text-2);
  margin-bottom: 1.25rem;
}

.usecase-highlights {
  list-style: none;
  padding: 0;
  display: flex;
  flex-direction: column;
  gap: 0.5rem;
  margin-bottom: 1.5rem;
}

.usecase-highlights li {
  display: flex;
  align-items: center;
  gap: 0.5rem;
  font-size: 0.8125rem;
  color: var(--text-2);
}

.usecase-highlights svg {
  flex-shrink: 0;
  color: var(--green);
}

.usecase-tools-used {
  display: flex;
  flex-wrap: wrap;
  gap: 0.5rem;
}

.tool-tag {
  font-family: var(--font-mono);
  font-size: 0.6875rem;
  padding: 4px 10px;
  border-radius: 6px;
  background: rgba(255, 255, 255, 0.04);
  border: 1px solid rgba(255, 255, 255, 0.06);
  color: var(--text-3);
}

/* Audience strip */
.usecase-audience {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 1.5rem;
  margin-top: 3.5rem;
  padding: 2rem;
  background: var(--bg-1);
  border: 1px solid rgba(255, 255, 255, 0.04);
  border-radius: 16px;
}

.audience-item {
  display: flex;
  align-items: flex-start;
  gap: 1rem;
}

.audience-icon {
  flex-shrink: 0;
  width: 40px;
  height: 40px;
  display: flex;
  align-items: center;
  justify-content: center;
  background: linear-gradient(135deg, rgba(255, 255, 255, 0.06) 0%, rgba(255, 255, 255, 0.02) 100%);
  border: 1px solid rgba(255, 255, 255, 0.08);
  border-radius: 10px;
  color: var(--text-2);
  box-shadow: inset 0 1px 0 rgba(255, 255, 255, 0.04);
  transition: all 0.3s ease;
}

.audience-item:hover .audience-icon {
  border-color: rgba(255, 255, 255, 0.15);
  color: var(--text-0);
  background: linear-gradient(135deg, rgba(255, 255, 255, 0.1) 0%, rgba(255, 255, 255, 0.04) 100%);
}

.audience-item strong {
  display: block;
  font-family: var(--font-display);
  font-size: 0.875rem;
  font-weight: 600;
  color: var(--text-0);
  margin-bottom: 0.25rem;
}

.audience-item span {
  font-size: 0.8125rem;
  color: var(--text-3);
  line-height: 1.4;
}

/* Data security trust strip */
.usecase-security {
  margin-top: 2.5rem;
  padding: 2rem;
  background: linear-gradient(135deg, rgba(34, 197, 94, 0.04) 0%, rgba(59, 130, 246, 0.03) 100%);
  border: 1px solid rgba(34, 197, 94, 0.1);
  border-radius: 16px;
}

.security-header {
  display: flex;
  align-items: center;
  gap: 0.75rem;
  margin-bottom: 1.5rem;
  color: var(--text-0);
}

.security-header-icon {
  width: 32px;
  height: 32px;
  display: flex;
  align-items: center;
  justify-content: center;
  background: linear-gradient(135deg, rgba(34, 197, 94, 0.15) 0%, rgba(34, 197, 94, 0.05) 100%);
  border: 1px solid rgba(34, 197, 94, 0.2);
  border-radius: 8px;
  color: #4ade80;
  flex-shrink: 0;
  box-shadow: 0 0 16px rgba(34, 197, 94, 0.06), inset 0 1px 0 rgba(255, 255, 255, 0.04);
}

.security-header h3 {
  font-family: var(--font-display);
  font-size: 1.0625rem;
  font-weight: 600;
}

.security-points {
  display: grid;
  grid-template-columns: repeat(2, 1fr);
  gap: 1.25rem;
  align-items: start;
}

.security-point {
  display: flex;
  align-items: flex-start;
  gap: 0.75rem;
  align-self: start;
}

.security-point-icon {
  flex-shrink: 0;
  width: 32px;
  height: 32px;
  display: flex;
  align-items: center;
  justify-content: center;
  border-radius: 8px;
  box-shadow: inset 0 1px 0 rgba(255, 255, 255, 0.04);
}

.sp-green {
  background: linear-gradient(135deg, rgba(34, 197, 94, 0.12) 0%, rgba(34, 197, 94, 0.04) 100%);
  border: 1px solid rgba(34, 197, 94, 0.15);
  color: #4ade80;
}

.sp-amber {
  background: linear-gradient(135deg, rgba(245, 158, 11, 0.12) 0%, rgba(245, 158, 11, 0.04) 100%);
  border: 1px solid rgba(245, 158, 11, 0.15);
  color: #fbbf24;
}

.sp-blue {
  background: linear-gradient(135deg, rgba(59, 130, 246, 0.12) 0%, rgba(59, 130, 246, 0.04) 100%);
  border: 1px solid rgba(59, 130, 246, 0.15);
  color: #60a5fa;
}

.security-point strong {
  display: block;
  font-family: var(--font-display);
  font-size: 0.8125rem;
  font-weight: 600;
  color: var(--text-0);
  margin-bottom: 0.25rem;
}

.security-point span {
  font-size: 0.8125rem;
  color: var(--text-3);
  line-height: 1.5;
}

.security-link {
  color: #60a5fa;
  text-decoration: underline;
  text-underline-offset: 2px;
  transition: color 0.2s;
}

.security-link:hover {
  color: #93c5fd;
}

@media (max-width: 768px) {
  .security-points {
    grid-template-columns: 1fr;
  }
}

.pipeline-visual {
  display: flex;
  align-items: stretch;
  justify-content: center;
  padding: 3rem 0;
  gap: 0;
  overflow-x: auto;
  scrollbar-width: none;
}

.pipeline-visual::-webkit-scrollbar {
  display: none;
}

.pipeline-card {
  display: flex;
  flex-direction: column;
  align-items: center;
  text-align: center;
  padding: 2rem 1.5rem;
  background: rgba(255, 255, 255, 0.035);
  border: 1px solid rgba(255, 255, 255, 0.10);
  border-radius: 20px;
  min-width: 180px;
  max-width: 200px;
  flex: 1;
  transition: all 0.4s var(--ease-out-expo);
  box-shadow: inset 0 1px 1px rgba(255, 255, 255, 0.03), 0 8px 32px rgba(0, 0, 0, 0.3);
  backdrop-filter: blur(12px);
  position: relative;
  will-change: transform;
}

.pipeline-card:hover {
  background: rgba(255, 255, 255, 0.04);
  border-color: rgba(255, 255, 255, 0.12);
  transform: translateY(-6px);
  box-shadow: inset 0 1px 1px rgba(255, 255, 255, 0.08), 0 20px 60px rgba(0, 0, 0, 0.5);
}

.pipeline-card-highlight {
  background: rgba(34, 197, 94, 0.03);
  border-color: rgba(34, 197, 94, 0.15);
  box-shadow: inset 0 1px 1px rgba(34, 197, 94, 0.05), 0 8px 32px rgba(0, 0, 0, 0.3), 0 0 60px rgba(34, 197, 94, 0.05);
}

.pipeline-card-highlight:hover {
  background: rgba(34, 197, 94, 0.06);
  border-color: rgba(34, 197, 94, 0.25);
  box-shadow: inset 0 1px 1px rgba(34, 197, 94, 0.1), 0 16px 48px rgba(0, 0, 0, 0.5), 0 0 80px rgba(34, 197, 94, 0.08);
}

.pipeline-icon {
  display: flex;
  align-items: center;
  justify-content: center;
  width: 48px;
  height: 48px;
  border-radius: 12px;
  background: rgba(255, 255, 255, 0.04);
  border: 1px solid rgba(255, 255, 255, 0.08);
  margin-bottom: 1rem;
  color: var(--text-1);
  transition: all 0.3s ease;
}

.pipeline-card:hover .pipeline-icon {
  color: var(--text-0);
  background: rgba(255, 255, 255, 0.08);
  border-color: rgba(255, 255, 255, 0.15);
}

.pipeline-card-highlight .pipeline-icon {
  color: var(--green);
  background: rgba(34, 197, 94, 0.08);
  border-color: rgba(34, 197, 94, 0.2);
}

.icon-result {
  color: var(--green);
}

.pipeline-card-title {
  font-size: 0.9375rem;
  font-weight: 600;
  color: var(--text-0);
  margin-bottom: 0.5rem;
  letter-spacing: -0.01em;
}

.pipeline-card-desc {
  font-size: 0.8125rem;
  color: var(--text-2);
  line-height: 1.5;
  margin-bottom: 1rem;
}

.pipeline-card-tag {
  font-size: 0.6875rem;
  color: var(--text-3);
  text-transform: uppercase;
  letter-spacing: 0.06em;
  font-family: var(--font-mono);
  padding: 0.25rem 0.75rem;
  background: rgba(255, 255, 255, 0.03);
  border: 1px solid rgba(255, 255, 255, 0.06);
  border-radius: 99px;
  margin-top: auto;
}

.pipeline-card-highlight .pipeline-card-tag {
  color: var(--green);
  background: rgba(34, 197, 94, 0.05);
  border-color: rgba(34, 197, 94, 0.15);
}

/* Connector */
.pipeline-connector {
  display: flex;
  align-items: center;
  align-self: center;
  justify-content: center;
  width: 48px;
  position: relative;
  flex-shrink: 0;
}

.connector-line {
  width: 100%;
  height: 1px;
  background: linear-gradient(90deg, rgba(255,255,255,0.05), rgba(255,255,255,0.15), rgba(255,255,255,0.05));
}

.connector-pulse {
  position: absolute;
  width: 6px;
  height: 6px;
  border-radius: 50%;
  background: var(--green);
  box-shadow: 0 0 8px rgba(34, 197, 94, 0.6);
  animation: connectorPulse 2.5s ease-in-out infinite;
}

@keyframes connectorPulse {
  0%, 100% { transform: translateX(-16px); opacity: 0; }
  20% { opacity: 1; }
  80% { opacity: 1; }
  100% { transform: translateX(16px); opacity: 0; }
}

@keyframes slideDown {
  from {
    opacity: 0;
    transform: translateY(-10px);
  }
  to {
    opacity: 1;
    transform: translateY(0);
  }
}

.pipeline-connector:nth-of-type(2) .connector-pulse { animation-delay: 0.3s; }
.pipeline-connector:nth-of-type(4) .connector-pulse { animation-delay: 0.6s; }
.pipeline-connector:nth-of-type(6) .connector-pulse { animation-delay: 0.9s; }
.pipeline-connector:nth-of-type(8) .connector-pulse { animation-delay: 1.2s; }

@media (max-width: 1024px) {
  .pipeline-visual {
    flex-wrap: wrap;
    gap: 1rem;
    justify-content: center;
  }
  .pipeline-connector {
    display: none;
  }
  .pipeline-card {
    min-width: 160px;
    max-width: 180px;
  }

  .usecase-card,
  .usecase-card-reverse {
    grid-template-columns: 1fr;
    gap: 1.5rem;
  }
  .usecase-card-reverse .usecase-card-image { order: 0; }
  .usecase-card-reverse .usecase-card-content { order: 0; }
  .usecase-card-image {
    aspect-ratio: 16 / 9;
    max-height: 280px;
  }
  .usecase-audience {
    grid-template-columns: 1fr;
  }
}

@media (max-width: 768px) {
  .usecase-explainer {
    flex-direction: column;
    gap: 1rem;
  }
  .use-cases {
    padding: 4rem 0;
  }
  .usecase-card-image {
    aspect-ratio: unset;
    height: auto;
    max-height: none;
    width: 100%;
    background: transparent;
    border-radius: 12px;
    overflow: hidden;
  }
  .usecase-card-image img {
    object-fit: contain;
    width: 100%;
    height: auto;
  }
}

@media (max-width: 768px) {
  .pipeline-visual {
    flex-direction: column;
    align-items: stretch;
    gap: 0.75rem;
  }
  .pipeline-card {
    max-width: 100%;
    flex-direction: row;
    flex-wrap: wrap;
    text-align: left;
    padding: 1.25rem 1.5rem;
    gap: 0.75rem 1rem;
  }
  .pipeline-icon {
    margin-bottom: 0;
    flex-shrink: 0;
  }
  .pipeline-card-desc {
    margin-bottom: 0.25rem;
  }
  /* Title + desc flow next to icon */
  .pipeline-card > :not(.pipeline-icon):not(.pipeline-card-tag) {
    flex: 1;
    min-width: 0;
  }
  /* Tag goes full-width below */
  .pipeline-card-tag {
    flex-basis: 100%;
    text-align: center;
    margin-top: 0;
  }
}

/* Tools Grid */
.tools-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(250px, 1fr));
  gap: 1rem;
}

.tools-grid-primary {
  grid-template-columns: repeat(3, 1fr);
}

.tools-grid-secondary {
  grid-template-columns: repeat(2, 1fr);
  max-width: 580px;
  margin: 1rem auto 0;
}

.tool-card-compact {
  padding: 1.25rem 1.5rem;
}

.tool-card-compact .tool-name {
  font-size: 0.8125rem;
}

.tool-card-compact .tool-desc {
  font-size: 0.8125rem;
}

.tool-card {
  position: relative;
  overflow: hidden;
  background: rgba(255,255,255,0.035);
  border: 1px solid rgba(255,255,255,0.10);
  border-radius: 16px;
  padding: 2rem;
  transition: all 0.4s var(--ease-out-expo);
  display: flex;
  flex-direction: column;
  height: 100%;
  box-shadow: inset 0 1px 1px rgba(255,255,255,0.03);
  backdrop-filter: blur(10px);
  will-change: transform;
}

.tool-card:hover {
  background: rgba(255,255,255,0.04);
  border-color: rgba(255,255,255,0.1);
  box-shadow: inset 0 1px 1px rgba(255,255,255,0.1), 0 16px 48px rgba(0,0,0,0.5);
  transform: translateY(-6px);
}

.tool-card::before, .bento-card::before {
  content: "";
  position: absolute;
  inset: 0;
  background: radial-gradient(400px circle at var(--mouse-local-x, 0) var(--mouse-local-y, 0), rgba(255,255,255,0.08), transparent 40%);
  z-index: 0;
  opacity: 0;
  transition: opacity 0.4s ease;
  pointer-events: none;
}

.tool-card:hover::before, .bento-card:hover::before {
  opacity: 1;
}

.tool-card > *, .bento-card > * {
  position: relative;
  z-index: 1;
}

.tool-header {
  display: flex;
  justify-content: space-between;
  align-items: flex-start;
  margin-bottom: 1rem;
}

.tool-name {
  color: var(--text-0);
  font-family: var(--font-mono);
  font-size: 1rem;
  font-weight: 500;
}

/* Global code-block-wrapper: wrap long lines */
.code-block-wrapper {
  overflow: hidden;
  border-radius: 10px;
}

.code-block-wrapper pre {
  white-space: pre-wrap;
  word-break: break-word;
  overflow-wrap: break-word;
}

.code-block-wrapper code {
  white-space: pre-wrap;
  word-break: break-word;
  overflow-wrap: break-word;
}

.tool-desc {
  color: var(--text-1);
  font-size: 0.875rem;
  margin-bottom: 1.5rem;
  flex-grow: 1;
  overflow-wrap: break-word;
  word-break: break-word;
}

.tool-desc code {
  white-space: pre-wrap;
  word-break: break-all;
  overflow-wrap: break-word;
}

.tool-card {
  overflow: hidden;
  max-width: 100%;
}

.tool-price {
  font-size: 0.875rem;
  color: var(--text-2);
  margin-top: auto;
  padding-top: 1rem;
  border-top: 1px solid var(--border);
}

.tools-note {
  color: var(--text-3);
  font-size: 0.8125rem;
  text-align: center;
  margin-top: 2rem;
  font-style: italic;
}

.tools-note code {
  color: var(--green);
  font-family: var(--font-mono);
  font-style: normal;
}

/* Features Bento Grid */
.bento-grid {
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  grid-auto-rows: minmax(140px, auto);
  gap: 1rem;
}

/* --- Features Grid: Premium Asymmetric Bento --- */
.features-grid {
  display: grid;
  grid-template-columns: repeat(12, 1fr);
  grid-auto-rows: minmax(160px, auto);
  gap: 1rem;
}

.feature-card {
  position: relative;
  overflow: hidden;
  background: rgba(255,255,255,0.035);
  border: 1px solid rgba(255,255,255,0.10);
  border-radius: 20px;
  padding: 2rem 2rem 1.75rem;
  display: flex;
  flex-direction: column;
  justify-content: center;
  transition: all 0.5s var(--ease-out-expo);
  will-change: transform;
  box-shadow: inset 0 1px 0 rgba(255,255,255,0.04);
}

/* Mouse-tracking radial glow (same as tool-card) */
.feature-card::before {
  content: "";
  position: absolute;
  inset: 0;
  background: radial-gradient(400px circle at var(--mouse-local-x, 0) var(--mouse-local-y, 0), rgba(255,255,255,0.08), transparent 40%);
  z-index: 0;
  opacity: 0;
  transition: opacity 0.4s ease;
  pointer-events: none;
}

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

.feature-card > * {
  position: relative;
  z-index: 1;
}

.feature-card:hover {
  transform: translateY(-6px);
  background: rgba(255,255,255,0.04);
  border-color: rgba(255,255,255,0.1);
  box-shadow: inset 0 1px 1px rgba(255,255,255,0.1), 0 16px 48px rgba(0,0,0,0.5);
}

/* Grid placement: asymmetric bento */
.feature-card:nth-child(1) { grid-column: span 5; grid-row: span 2; }
.feature-card:nth-child(2) { grid-column: span 4; }
.feature-card:nth-child(3) { grid-column: span 3; }
.feature-card:nth-child(4) { grid-column: span 3; }
.feature-card:nth-child(5) { grid-column: span 4; }
.feature-card:nth-child(6) { grid-column: span 5; }

/* Hero card (first) gets extra treatment */
.feature-card:nth-child(1) {
  border-color: rgba(255,255,255,0.12);
}

.feature-card:nth-child(1) h3 {
  font-size: 1.25rem;
}

.feature-card:nth-child(1) p {
  font-size: 0.95rem;
  max-width: 380px;
}

.feature-card h3 {
  font-size: 1rem;
  font-weight: 600;
  margin-bottom: 0.5rem;
  color: var(--text-0);
  letter-spacing: -0.01em;
}

.feature-card p {
  font-size: 0.875rem;
  color: var(--text-2);
  font-weight: 300;
  line-height: 1.6;
}

/* Code Block */
.code-wrapper {
  background: #000;
  border: 1px solid rgba(255,255,255,0.1);
  border-radius: 16px;
  overflow: hidden;
  overflow-x: auto;
  max-width: 800px;
  margin: 0 auto;
  box-shadow: 0 24px 80px rgba(0,0,0,0.6), inset 0 1px 1px rgba(255,255,255,0.05);
}

.code-header {
  display: flex;
  justify-content: space-between;
  align-items: center;
  padding: 1rem 1.5rem;
  background: rgba(255,255,255,0.02);
  border-bottom: 1px solid rgba(255,255,255,0.05);
}

.circles {
  display: flex;
  gap: 8px;
}

.circle {
  width: 12px;
  height: 12px;
  border-radius: 50%;
}
.circle:nth-child(1) { background: #ff5f56; }
.circle:nth-child(2) { background: #ffbd2e; }
.circle:nth-child(3) { background: #27c93f; }

.copy-btn {
  color: var(--text-0);
  font-size: 11px;
  font-weight: 700;
  display: flex;
  align-items: center;
  gap: 4px;
}

.copy-btn:hover {
  color: var(--text-1);
}

.code-content {
  padding: 1.5rem;
  overflow-x: auto;
}

.code-content pre {
  font-family: var(--font-mono);
  font-size: 12px;
  color: var(--text-1);
  line-height: 1.625;
  white-space: pre-wrap;
  word-break: break-all;
}

.code-content .string { color: var(--text-1); }
.code-content .key { color: var(--text-1); }

/* Benchmark Comparison */
.benchmarks {
  padding: 6rem 0;
}

.benchmark-table-wrap {
  overflow-x: auto;
  margin: 0 auto;
  max-width: 900px;
  border-radius: 16px;
  border: 1px solid rgba(255, 255, 255, 0.10);
  background: rgba(255, 255, 255, 0.035);
  backdrop-filter: blur(12px);
  box-shadow: inset 0 1px 1px rgba(255, 255, 255, 0.03), 0 8px 32px rgba(0, 0, 0, 0.3);
}

.benchmark-table {
  width: 100%;
  border-collapse: collapse;
  font-size: 0.9375rem;
}

.benchmark-table thead tr {
  border-bottom: 1px solid rgba(255, 255, 255, 0.08);
}

.benchmark-table th {
  padding: 1.25rem 1.5rem;
  font-family: var(--font-display);
  font-size: 0.75rem;
  font-weight: 600;
  text-transform: uppercase;
  letter-spacing: 0.05em;
  color: var(--text-2);
  text-align: center;
  white-space: nowrap;
}

.benchmark-table th:first-child {
  text-align: left;
}

.benchmark-table th.benchmark-col-amalgix {
  color: var(--green);
}

.benchmark-table tbody tr {
  border-bottom: 1px solid rgba(255, 255, 255, 0.04);
  transition: background 0.2s ease;
}

.benchmark-table tbody tr:last-child {
  border-bottom: none;
}

.benchmark-table tbody tr:hover {
  background: rgba(255, 255, 255, 0.02);
}

.benchmark-table td {
  padding: 1rem 1.5rem;
  text-align: center;
  color: var(--text-1);
  font-family: var(--font-mono);
  font-size: 0.875rem;
}

.benchmark-table td:first-child {
  text-align: left;
  font-family: var(--font-sans);
  font-size: 0.9375rem;
  color: var(--text-0);
}

.benchmark-table td.benchmark-metric {
  font-weight: 500;
  white-space: nowrap;
}

.benchmark-table td.benchmark-col-amalgix {
  color: var(--green);
  font-weight: 700;
  position: relative;
}

.benchmark-table td.benchmark-col-amalgix::before {
  content: "";
  position: absolute;
  inset: 0;
  background: rgba(34, 197, 94, 0.04);
  pointer-events: none;
}

.benchmark-table th.benchmark-col-amalgix::before {
  content: "";
  position: absolute;
  inset: 0;
  background: rgba(34, 197, 94, 0.04);
  pointer-events: none;
}

.benchmark-table th.benchmark-col-amalgix,
.benchmark-table td.benchmark-col-amalgix {
  position: relative;
}

/* Benchmark Highlights */
.benchmark-highlights {
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  gap: 1rem;
  max-width: 900px;
  margin: 2rem auto 0;
}

.benchmark-highlight-card {
  display: flex;
  flex-direction: column;
  align-items: center;
  text-align: center;
  padding: 1.5rem 1rem;
  background: rgba(255, 255, 255, 0.035);
  border: 1px solid rgba(255, 255, 255, 0.10);
  border-radius: 16px;
  transition: all 0.3s ease;
}

.benchmark-highlight-card:hover {
  background: rgba(255, 255, 255, 0.04);
  border-color: rgba(255, 255, 255, 0.1);
  transform: translateY(-2px);
}

.highlight-value {
  font-family: var(--font-mono);
  font-size: 1.75rem;
  font-weight: 700;
  color: var(--green);
  letter-spacing: -0.02em;
  margin-bottom: 0.5rem;
}

.highlight-label {
  font-size: 0.8125rem;
  color: var(--text-2);
  line-height: 1.4;
}

.benchmark-notes-wrap {
  max-width: 700px;
  margin: 2rem auto 0;
  text-align: center;
}

.benchmark-note {
  color: var(--text-3);
  font-size: 0.8125rem;
  font-style: italic;
  line-height: 1.7;
  margin-bottom: 0.5rem;
}

/* Pricing Cards */
/* Pricing Chart */
.pricing-chart-wrap {
  max-width: 1100px;
  margin: 0 auto 2rem;
  padding: 2rem 2rem 1.5rem;
  background: rgba(255, 255, 255, 0.035);
  border: 1px solid rgba(255, 255, 255, 0.10);
  border-radius: 24px;
  box-shadow: inset 0 1px 1px rgba(255, 255, 255, 0.03), 0 8px 32px rgba(0, 0, 0, 0.3);
  backdrop-filter: blur(12px);
}

.pricing-chart-header {
  display: flex;
  justify-content: space-between;
  align-items: flex-start;
  margin-bottom: 1.5rem;
  padding-bottom: 1rem;
  border-bottom: 1px solid rgba(255, 255, 255, 0.04);
}

.pch-label {
  display: block;
  font-size: 10px;
  font-family: var(--font-mono);
  font-weight: 600;
  letter-spacing: 0.15em;
  color: var(--text-3);
  text-transform: uppercase;
  margin-bottom: 0.35rem;
}

.pricing-chart-title h3 {
  font-family: var(--font-display);
  font-size: 1.125rem;
  font-weight: 600;
  color: var(--text-0);
  letter-spacing: -0.01em;
}

.pricing-chart-legend {
  display: flex;
  gap: 1.25rem;
  align-items: center;
  flex-shrink: 0;
}

.pcl-item {
  display: flex;
  align-items: center;
  gap: 6px;
  font-family: var(--font-mono);
  font-size: 0.6875rem;
  color: var(--text-2);
}

.pcl-amalgix { color: var(--green); }

.pcl-dot {
  width: 8px;
  height: 8px;
  border-radius: 50%;
  background: var(--green);
  box-shadow: 0 0 8px rgba(34, 197, 94, 0.4);
}

.pcl-line {
  width: 16px;
  height: 1.5px;
  background: var(--text-3);
}

.pcl-dash {
  background: repeating-linear-gradient(90deg, var(--text-3) 0, var(--text-3) 3px, transparent 3px, transparent 6px);
}

.pcl-gemini { color: rgba(96, 165, 250, 0.7); }
.pcl-opus { color: rgba(251, 191, 36, 0.7); }
.pcl-gpt { color: rgba(168, 85, 247, 0.6); }
.pcl-line-gemini { background: rgba(96, 165, 250, 0.45); }
.pcl-line-opus { background: rgba(251, 191, 36, 0.4); }
.pcl-line-gpt { background: none; background-image: repeating-linear-gradient(90deg, rgba(168,85,247,0.35) 0, rgba(168,85,247,0.35) 3px, transparent 3px, transparent 6px); }

.pricing-chart-canvas {
  position: relative;
  height: 400px;
}

.pricing-chart-note {
  margin: 1rem 0 0;
  padding: 0.75rem 1rem;
  font-size: 0.78rem;
  line-height: 1.55;
  color: rgba(255,255,255,0.45);
  border-left: 2px solid rgba(74,222,128,0.3);
  font-family: var(--font-mono, 'JetBrains Mono', monospace);
  letter-spacing: -0.01em;
}

/* Pricing Highlights */
.pricing-highlights {
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  gap: 1rem;
  max-width: 1100px;
  margin: 0 auto 2rem;
}

.pricing-hl-card {
  text-align: center;
  padding: 1.5rem 1rem;
  background: rgba(255, 255, 255, 0.035);
  border: 1px solid rgba(255, 255, 255, 0.10);
  border-radius: 16px;
  transition: all 0.3s var(--ease-out-expo);
}

.pricing-hl-card:hover {
  background: rgba(255, 255, 255, 0.04);
  border-color: rgba(255, 255, 255, 0.12);
  transform: translateY(-2px);
}

.pricing-hl-featured {
  border-color: rgba(34, 197, 94, 0.2);
  background: rgba(34, 197, 94, 0.04);
}

.pricing-hl-featured:hover {
  border-color: rgba(34, 197, 94, 0.4);
  box-shadow: 0 8px 24px rgba(34, 197, 94, 0.08);
}

.pricing-hl-value {
  display: block;
  font-family: var(--font-mono);
  font-size: 1.75rem;
  font-weight: 700;
  color: var(--text-0);
  letter-spacing: -0.02em;
  margin-bottom: 0.35rem;
}

.pricing-hl-featured .pricing-hl-value {
  color: var(--green);
}

.pricing-hl-label {
  font-size: 0.75rem;
  color: var(--text-2);
  font-weight: 400;
}

/* Pricing Data Table */
.pricing-table-wrap {
  max-width: 1100px;
  margin: 0 auto;
  padding: 2rem;
  background: rgba(255, 255, 255, 0.035);
  border: 1px solid rgba(255, 255, 255, 0.10);
  border-radius: 24px;
  box-shadow: inset 0 1px 1px rgba(255, 255, 255, 0.03), 0 8px 32px rgba(0, 0, 0, 0.3);
  backdrop-filter: blur(12px);
}

.pricing-table-header {
  margin-bottom: 1.5rem;
  padding-bottom: 1rem;
  border-bottom: 1px solid rgba(255, 255, 255, 0.04);
}

.pth-label {
  display: block;
  font-size: 10px;
  font-family: var(--font-mono);
  font-weight: 600;
  letter-spacing: 0.15em;
  color: var(--text-3);
  text-transform: uppercase;
  margin-bottom: 0.35rem;
}

.pricing-table-header h3 {
  font-family: var(--font-display);
  font-size: 1.125rem;
  font-weight: 600;
  color: var(--text-0);
  letter-spacing: -0.01em;
}

.pricing-table-scroll {
  overflow-x: auto;
  -webkit-overflow-scrolling: touch;
}

.pricing-data-table {
  width: 100%;
  border-collapse: separate;
  border-spacing: 0;
  font-size: 1rem;
  font-family: var(--font-mono);
}

.pricing-data-table thead th {
  text-align: left;
  padding: 0.75rem 1.25rem;
  border-bottom: 1px solid rgba(255, 255, 255, 0.08);
  color: var(--text-3);
  font-size: 0.75rem;
  font-weight: 600;
  text-transform: uppercase;
  letter-spacing: 0.1em;
  white-space: nowrap;
  position: sticky;
  top: 0;
  background: rgba(0, 0, 0, 0.5);
}

.pricing-data-table thead th.col-amalgix {
  color: var(--green);
}

.pricing-data-table tbody td {
  padding: 1rem 1.5rem;
  border-bottom: 1px solid rgba(255, 255, 255, 0.03);
  color: var(--text-1);
  white-space: nowrap;
  transition: background 0.15s ease;
}

.pricing-data-table tbody tr:last-child td {
  border-bottom: none;
}

.pricing-data-table tbody tr:hover td {
  background: rgba(34, 197, 94, 0.03);
}

.pricing-data-table .td-size {
  color: var(--text-0);
  font-weight: 600;
  font-size: 1.0625rem;
}

.pricing-data-table .td-amalgix {
  color: var(--green);
  font-weight: 700;
  font-size: 1.0625rem;
  text-shadow: 0 0 12px rgba(34, 197, 94, 0.3);
}

.pricing-data-table .td-competitor {
  color: var(--text-3);
}

.pricing-data-table .td-savings {
  text-align: center;
}

.pricing-data-table thead th.col-savings {
  color: var(--green);
  text-align: center;
}

.pricing-data-table .td-savings .savings-vs {
  display: inline-block;
  padding: 5px 14px;
  background: rgba(34, 197, 94, 0.08);
  border: 1px solid rgba(34, 197, 94, 0.15);
  border-radius: 99px;
  font-size: 0.8125rem;
  font-weight: 600;
  color: var(--green);
  letter-spacing: 0.02em;
}

/* Pricing Note */
.pricing-note {
  display: flex;
  align-items: flex-start;
  gap: 1rem;
  max-width: 800px;
  margin: 2.5rem auto 0;
  padding: 1.25rem 1.5rem;
  background: rgba(255, 255, 255, 0.02);
  border: 1px solid rgba(255, 255, 255, 0.06);
  border-radius: 12px;
}

.pricing-note-icon {
  color: var(--text-2);
  flex-shrink: 0;
  margin-top: 2px;
}

.pricing-note-content {
  font-size: 0.875rem;
  color: var(--text-2);
  line-height: 1.6;
}

.pricing-note-content strong {
  color: var(--text-0);
}

.pricing-note-content code {
  font-family: var(--font-mono);
  color: var(--green);
  font-size: 0.8125rem;
}

/* ═══ FAQ Section ═══ */
.faq {
  padding: 6rem 0;
}

.faq .section-header {
  text-align: center;
}

.faq-list {
  max-width: 760px;
  margin: 0 auto;
  display: flex;
  flex-direction: column;
  gap: 0;
}

.faq-item {
  border-bottom: 1px solid rgba(255, 255, 255, 0.06);
}

.faq-item:first-child {
  border-top: 1px solid rgba(255, 255, 255, 0.06);
}

.faq-item summary {
  display: flex;
  align-items: center;
  justify-content: space-between;
  padding: 1.25rem 0;
  font-family: var(--font-display);
  font-size: 1.0625rem;
  font-weight: 600;
  color: var(--text-0);
  cursor: pointer;
  list-style: none;
  transition: color 0.3s ease;
}

.faq-item summary::-webkit-details-marker { display: none; }

.faq-item summary::after {
  content: '';
  width: 20px;
  height: 20px;
  flex-shrink: 0;
  margin-left: 1.5rem;
  background-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' width='20' height='20' viewBox='0 0 24 24' fill='none' stroke='%2371717a' stroke-width='2' stroke-linecap='round' stroke-linejoin='round'%3E%3Cpath d='M6 9l6 6 6-6'/%3E%3C/svg%3E");
  background-repeat: no-repeat;
  background-position: center;
  background-size: contain;
  transition: transform 0.4s cubic-bezier(0.34, 1.56, 0.64, 1), filter 0.3s ease;
}

.faq-item[open] summary::after {
  transform: rotate(180deg);
  filter: brightness(0) saturate(100%) invert(62%) sepia(52%) saturate(564%) hue-rotate(94deg) brightness(97%) contrast(88%);
}

.faq-item summary:hover {
  color: var(--green);
}

.faq-item summary:hover::after {
  filter: brightness(0) saturate(100%) invert(62%) sepia(52%) saturate(564%) hue-rotate(94deg) brightness(97%) contrast(88%);
}

/* Smooth accordion animation */
.faq-answer {
  display: grid;
  grid-template-rows: 0fr;
  transition: grid-template-rows 0.4s cubic-bezier(0.16, 1, 0.3, 1), opacity 0.3s ease;
  opacity: 0;
}

.faq-item[open] .faq-answer {
  grid-template-rows: 1fr;
  opacity: 1;
}

.faq-answer-inner {
  overflow: hidden;
}

.faq-answer-inner p {
  padding: 0 0 1.5rem 0;
  font-size: 0.9375rem;
  line-height: 1.7;
  color: var(--text-2);
  max-width: 680px;
}

.faq-answer-inner p a {
  color: var(--green);
  text-decoration: underline;
  text-underline-offset: 2px;
}

.faq-answer-inner p code {
  font-family: var(--font-mono);
  font-size: 0.8125rem;
  background: rgba(255, 255, 255, 0.06);
  padding: 2px 6px;
  border-radius: 4px;
  color: var(--text-1);
}

/* Benchmark Methodology */
.benchmark-methodology {
  font-size: 0.75rem;
  line-height: 1.6;
  color: var(--text-3);
}

/* Footer Redesign */
/* ═══ CTA Band ═══ */
.footer-cta {
  padding: 5rem 0;
  position: relative;
}

.footer-cta-inner {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 2rem;
  padding: 3rem 3.5rem;
  border-radius: 20px;
  background: rgba(255, 255, 255, 0.02);
  border: 1px solid var(--border);
  position: relative;
  overflow: hidden;
}

.footer-cta-inner::before {
  content: '';
  position: absolute;
  top: 0;
  left: 0;
  right: 0;
  height: 1px;
  background: linear-gradient(90deg, transparent, rgba(255,255,255,0.15), transparent);
}

.footer-cta-text h2 {
  font-family: var(--font-display);
  font-size: 1.75rem;
  font-weight: 700;
  color: var(--text-0);
  margin-bottom: 0.5rem;
}

.footer-cta-text p {
  color: var(--text-2);
  font-size: 0.9375rem;
}

.footer-cta-actions {
  display: flex;
  gap: 0.75rem;
  flex-shrink: 0;
}

.btn-ghost {
  display: inline-flex;
  align-items: center;
  gap: 0.5rem;
  padding: 0.75rem 1.25rem;
  border-radius: 10px;
  font-size: 0.875rem;
  font-weight: 500;
  font-family: var(--font-sans);
  color: var(--text-1);
  background: rgba(255, 255, 255, 0.04);
  border: 1px solid var(--border);
  cursor: pointer;
  transition: all 0.2s;
}

.btn-ghost:hover {
  background: rgba(255, 255, 255, 0.08);
  color: var(--text-0);
  border-color: var(--border-hover);
}

/* ═══ Footer ═══ */
.footer {
  padding: 4rem 0 2rem;
  background: var(--bg-0);
  position: relative;
  /* Ensure footer is in normal document flow, no separate scroll */
  overflow: visible;
}

.footer-glow-line {
  height: 1px;
  background: linear-gradient(90deg,
    transparent 0%,
    rgba(255, 255, 255, 0.03) 20%,
    rgba(255, 255, 255, 0.05) 50%,
    rgba(255, 255, 255, 0.03) 80%,
    transparent 100%
  );
}

.footer .container {
  display: flex;
  flex-direction: column;
}

.footer-top {
  display: flex;
  justify-content: space-between;
  gap: 4rem;
  margin-bottom: 3rem;
  flex-wrap: wrap;
}

.footer-brand {
  display: flex;
  flex-direction: column;
  max-width: 320px;
}

.footer-logo {
  display: flex;
  align-items: center;
  gap: 6px;
  font-family: var(--font-display);
  font-size: 1.125rem;
  font-weight: 700;
  color: var(--text-0);
  text-decoration: none;
  margin-bottom: 1rem;
  transition: opacity 0.2s;
}

.footer-logo:hover {
  opacity: 0.8;
}

.footer-logo img {
  height: 44px;
}

.footer-desc {
  color: var(--text-3);
  font-size: 0.8125rem;
  line-height: 1.7;
  margin-bottom: 1rem;
}

.footer-contact {
  margin-bottom: 1.5rem;
}

.footer-email-pill {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  padding: 8px 14px;
  border-radius: 8px;
  background: rgba(255, 255, 255, 0.03);
  border: 1px solid rgba(255, 255, 255, 0.08);
  color: var(--text-2);
  font-size: 0.8125rem;
  font-family: var(--font-mono);
  text-decoration: none;
  transition: all 0.2s ease;
}

.footer-email-pill svg {
  opacity: 0.7;
  flex-shrink: 0;
}

.footer-email-pill:hover {
  background: rgba(255, 255, 255, 0.06);
  border-color: rgba(255, 255, 255, 0.15);
  color: var(--text-0);
}

.footer-email-pill:hover svg {
  opacity: 0.8;
}

.footer-contact-hint {
  font-size: 0.6875rem;
  color: var(--text-3);
  letter-spacing: 0.02em;
}

.footer-email-link {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  color: var(--text-1);
  font-size: 0.875rem;
  font-weight: 500;
  text-decoration: none;
  transition: color 0.2s ease, text-shadow 0.2s ease;
}

.footer-email-link::before {
  content: '';
  display: inline-block;
  width: 14px;
  height: 14px;
  background: currentColor;
  mask: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' width='14' height='14' viewBox='0 0 24 24' fill='none' stroke='currentColor' stroke-width='2' stroke-linecap='round' stroke-linejoin='round'%3E%3Crect width='20' height='16' x='2' y='4' rx='2'%3E%3C/rect%3E%3Cpath d='m22 7-8.97 5.7a1.94 1.94 0 0 1-2.06 0L2 7'%3E%3C/path%3E%3C/svg%3E") no-repeat center / contain;
  -webkit-mask: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' width='14' height='14' viewBox='0 0 24 24' fill='none' stroke='currentColor' stroke-width='2' stroke-linecap='round' stroke-linejoin='round'%3E%3Crect width='20' height='16' x='2' y='4' rx='2'%3E%3C/rect%3E%3Cpath d='m22 7-8.97 5.7a1.94 1.94 0 0 1-2.06 0L2 7'%3E%3C/path%3E%3C/svg%3E") no-repeat center / contain;
  opacity: 0.5;
  flex-shrink: 0;
}

.footer-email-link:hover {
  color: var(--text-0);
  text-shadow: 0 0 8px rgba(255, 255, 255, 0.2);
}

.footer-socials {
  display: flex;
  gap: 0.75rem;
}

.footer-socials a {
  color: var(--text-3);
  transition: color 0.2s ease;
  display: inline-flex;
  padding: 6px;
  border-radius: 6px;
  transition: all 0.2s;
}

.footer-socials a:hover {
  color: var(--text-0);
  background: rgba(255, 255, 255, 0.05);
}

.footer-grid {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 3rem;
  flex-grow: 1;
  max-width: 520px;
}

.footer-column {
  display: flex;
  flex-direction: column;
  gap: 0.75rem;
}

.footer-column h4 {
  font-family: var(--font-sans);
  color: var(--text-2);
  font-size: 0.6875rem;
  font-weight: 600;
  letter-spacing: 0.1em;
  text-transform: uppercase;
  margin-bottom: 0.25rem;
}

.footer-column a {
  color: var(--text-3);
  font-size: 0.8125rem;
  transition: color 0.2s ease;
}

.footer-column a:hover {
  color: var(--text-0);
}

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

.footer-copy {
  color: var(--text-3);
  font-size: 0.75rem;
}

.footer-meta {
  display: flex;
  align-items: center;
  gap: 0.5rem;
  font-size: 0.75rem;
  color: var(--text-3);
}

.footer-version {
  font-family: var(--font-mono);
  font-size: 0.6875rem;
  color: var(--text-2);
  padding: 2px 6px;
  background: rgba(255, 255, 255, 0.04);
  border-radius: 4px;
  border: 1px solid rgba(255, 255, 255, 0.06);
}

.footer-protocol {
  font-family: var(--font-mono);
  font-size: 0.6875rem;
  color: var(--text-3);
}

.footer-sep {
  color: rgba(255, 255, 255, 0.1);
}

.system-status {
  display: flex;
  align-items: center;
  gap: 6px;
  color: var(--text-3) !important;
}

.status-dot {
  width: 6px;
  height: 6px;
  border-radius: 50%;
  background-color: var(--green);
  box-shadow: 0 0 6px rgba(34, 197, 94, 0.5);
  animation: statusPulse 2s ease-in-out infinite;
}

@keyframes statusPulse {
  0%, 100% { opacity: 1; }
  50% { opacity: 0.5; }
}

.footer-legal-links {
  display: flex;
  align-items: center;
  gap: 0.75rem;
  font-size: 0.75rem;
}

.footer-legal-links a {
  color: var(--text-3);
  transition: color 0.2s;
}

.footer-legal-links a:hover {
  color: var(--text-1);
}

/* ═══ Legal Pages ═══ */
.page-legal {
  min-height: 100vh;
  padding-top: 100px;
  background: var(--bg-0);
}

.legal-layout {
  max-width: 720px;
  margin: 0 auto;
  padding: 0 2rem 6rem;
}

.legal-back {
  display: inline-flex;
  align-items: center;
  gap: 0.5rem;
  color: var(--text-2);
  font-size: 0.875rem;
  margin-bottom: 2rem;
  transition: color 0.2s;
}

.legal-back:hover {
  color: var(--text-0);
}

.legal-main h1 {
  font-family: var(--font-display);
  font-size: 2.25rem;
  font-weight: 700;
  color: var(--text-0);
  margin-bottom: 0.5rem;
}

.legal-updated {
  color: var(--text-3);
  font-size: 0.8125rem;
  margin-bottom: 2.5rem;
  padding-bottom: 2rem;
  border-bottom: 1px solid rgba(255, 255, 255, 0.06);
}

.legal-main h2 {
  font-family: var(--font-display);
  font-size: 1.25rem;
  font-weight: 600;
  color: var(--text-0);
  margin-top: 2.5rem;
  margin-bottom: 0.75rem;
}

.legal-main h3 {
  font-family: var(--font-sans);
  font-size: 1rem;
  font-weight: 600;
  color: var(--text-1);
  margin-top: 1.5rem;
  margin-bottom: 0.5rem;
}

.legal-main p {
  color: var(--text-2);
  font-size: 0.9375rem;
  line-height: 1.8;
  margin-bottom: 1rem;
}

.legal-main ul,
.legal-main ol {
  color: var(--text-2);
  font-size: 0.9375rem;
  line-height: 1.8;
  margin-bottom: 1rem;
  padding-left: 1.5rem;
}

.legal-main li {
  margin-bottom: 0.375rem;
}

.legal-main code {
  font-family: var(--font-mono);
  font-size: 0.8125rem;
  color: var(--text-1);
  background: rgba(255, 255, 255, 0.06);
  padding: 2px 6px;
  border-radius: 4px;
}

.legal-main strong {
  color: var(--text-0);
  font-weight: 600;
}

/* Animations */
@keyframes fadeInUp {
  from {
    opacity: 0;
    transform: translateY(20px);
  }
  to {
    opacity: 1;
    transform: translateY(0);
  }
}

@keyframes pulse {
  0% { transform: scale(1); opacity: 1; }
  50% { transform: scale(1.5); opacity: 0.5; }
  100% { transform: scale(1); opacity: 1; }
}

@keyframes slideArrow {
  0% { transform: translateX(-4px); opacity: 0.5; }
  50% { transform: translateX(4px); opacity: 1; }
  100% { transform: translateX(-4px); opacity: 0.5; }
}

/* Scroll Reveal classes — staggered with optional data-reveal-delay */
[data-reveal] {
  opacity: 0;
  will-change: opacity, transform;
}

[data-reveal].visible {
  animation: fadeInUp 0.8s var(--ease-out-expo) forwards;
  animation-delay: var(--reveal-delay, 0s);
}

/* ═══ Reduced Motion (Accessibility) ═══ */
@media (prefers-reduced-motion: reduce) {
  *, *::before, *::after {
    animation-duration: 0.01ms !important;
    animation-iteration-count: 1 !important;
    transition-duration: 0.01ms !important;
    scroll-behavior: auto !important;
  }
  [data-reveal] {
    opacity: 1 !important;
  }
  .scroll-progress {
    display: none;
  }
}

/* ═══ Link Focus Accessibility ═══ */
a:focus-visible,
button:focus-visible {
  outline: 2px solid rgba(255, 255, 255, 0.4);
  outline-offset: 3px;
  border-radius: 4px;
}

/* ═══ Selection styling ═══ */
::selection {
  background: rgba(34, 197, 94, 0.3);
  color: var(--text-0);
}

::-moz-selection {
  background: rgba(34, 197, 94, 0.3);
  color: var(--text-0);
}

/* Responsive */
@media (max-width: 1199px) {
  .bento-grid {
    grid-template-columns: repeat(2, 1fr);
  }
  
  .bento-card:nth-child(n) {
    grid-column: span 1;
  }
  
  .bento-card:nth-child(1),
  .bento-card:nth-child(5),
  .bento-card:nth-child(8) {
    grid-column: span 2;
  }

  .features-grid {
    grid-template-columns: repeat(2, 1fr);
    grid-auto-rows: auto;
  }

  .feature-card:nth-child(n) {
    grid-column: span 1;
    grid-row: span 1;
  }

  .feature-card:nth-child(1) {
    grid-column: span 2;
  }

  .feature-card:nth-child(6) {
    grid-column: span 2;
  }

  .pricing-chart-wrap {
    height: auto;
    padding: 1.5rem;
  }

  .pricing-chart-canvas {
    height: 340px;
  }
}

@media (max-width: 768px) {
  /* ── Prevent horizontal scroll on mobile ── */
  .app-wrapper {
    overflow-x: hidden;
    max-width: 100vw;
  }

  .container {
    max-width: 100%;
    overflow-x: hidden;
  }

  .hero-glow {
    width: 100%;
    max-width: 100vw;
    height: 100%;
    top: 20%;
  }

  .nav-links, .nav-right .btn-primary {
    display: none;
  }
  
  .hamburger {
    display: flex;
    order: 10;
  }

  /* Globe button: always visible in nav bar, left of hamburger */
  .lang-switcher {
    display: block !important;
    order: 9;
    position: relative;
  }

  /* Mobile dropdown: appears below nav bar */
  .lang-switcher-dropdown {
    position: fixed !important;
    top: calc(var(--nav-height, 72px) + 12px) !important;
    left: 50% !important;
    right: auto !important;
    width: min(320px, 90vw) !important;
    max-height: 0 !important;
    opacity: 0 !important;
    transform: translateX(-50%) translateY(-8px) !important;
    transition: all 0.3s cubic-bezier(0.16, 1, 0.3, 1) !important;
    z-index: 10001;
    border-radius: 16px;
    padding: 0 !important;
    overflow: hidden;
  }

  .lang-switcher-dropdown.open {
    max-height: 400px !important;
    opacity: 1 !important;
    transform: translateX(-50%) translateY(0) !important;
    padding: 16px !important;
  }

  /* Hide mobile-lang-list — globe dropdown handles it */
  .mobile-lang-list {
    display: none !important;
  }

  /* Hamburger menu: .nav-links is hidden by default, shown via .nav.open below */

  .nav.open .nav-links {
    display: flex;
    flex-direction: column;
    position: absolute;
    top: var(--nav-height);
    left: 0;
    right: 0;
    background: rgba(8, 8, 8, 0.98);
    backdrop-filter: blur(20px);
    -webkit-backdrop-filter: blur(20px);
    padding: 1.25rem 2rem 1.75rem;
    border-bottom: 1px solid rgba(255, 255, 255, 0.06);
    text-align: center;
    z-index: 100;
    gap: 0.15rem;
    animation: slideDown 0.3s cubic-bezier(0.16, 1, 0.3, 1) forwards;
  }

  .nav.open .nav-links li a {
    display: block;
    padding: 0.75rem 0;
    font-size: 1.05rem;
    font-weight: 500;
    color: var(--text-2);
    transition: color 0.2s ease;
    border-bottom: 1px solid rgba(255, 255, 255, 0.04);
  }

  .nav.open .nav-links li:last-child a {
    border-bottom: none;
  }

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

  /* Hide btn-primary on mobile — Docs link is in nav-links */
  .nav-right .btn-primary {
    display: none !important;
  }

  /* Globe stays in nav bar */
  .nav.open .lang-switcher {
    position: relative;
    z-index: 102;
  }

  .hamburger.open span:nth-child(1) {
    transform: rotate(45deg) translate(5px, 5px);
  }
  
  .hamburger.open span:nth-child(2) {
    opacity: 0;
  }
  
  .hamburger.open span:nth-child(3) {
    transform: rotate(-45deg) translate(4px, -4px);
  }

  /* ── Remove section divider lines on mobile ── */
  section + section::before {
    display: none;
  }

  /* ── Hero mobile fixes ── */
  .hero {
    padding-top: calc(1.5rem + var(--nav-height));
    padding-bottom: 2rem;
  }

  .hero-col-right .hypertext-ui {
    display: none;
  }

  .hero-col-right {
    padding-top: 0;
    gap: 0;
  }

  .hero-container.two-cols {
    gap: 0;
  }

  .hero-col-right .hero-paths {
    border-top: none;
  }

  .hero-title {
    font-size: 1.75rem;
  }

  .hero-desc {
    font-size: 1rem;
  }

  .hero-kicker {
    margin-bottom: 1rem;
    padding-bottom: 0.5rem;
  }

  /* ── Stats: compact single-column list ── */
  .stats {
    padding: 0 0 1.5rem 0;
  }

  .stats-grid {
    display: flex;
    flex-direction: column;
    gap: 0;
    padding: 0.5rem 1rem;
    margin: 0 1rem;
    width: auto;
    border-radius: 12px;
    border: 1px solid rgba(255, 255, 255, 0.08);
    background: rgba(255, 255, 255, 0.02);
    box-shadow: none;
  }

  .stats-grid::-webkit-scrollbar {
    display: none;
  }

  .stat-item {
    flex-direction: row;
    align-items: baseline;
    gap: 0.75rem;
    padding: 0.5rem 0;
    border-bottom: 1px solid rgba(255, 255, 255, 0.05);
  }

  .stat-item:last-child {
    border-bottom: none;
  }

  .stat-item .stat-value {
    font-size: 1.125rem;
    min-width: 60px;
  }

  .stat-item .stat-label {
    font-size: 0.7rem;
  }

  .stat-item + .stat-item::before {
    display: none;
  }

  .tools-grid {
    grid-template-columns: 1fr;
  }

  .bento-grid {
    grid-template-columns: 1fr;
  }
  
  .bento-card:nth-child(n) {
    grid-column: span 1;
    grid-row: auto;
  }

  .features-grid {
    grid-template-columns: 1fr;
  }

  .feature-card:nth-child(n) {
    grid-column: span 1;
    grid-row: span 1;
  }

  .feature-card:nth-child(6) {
    flex-direction: column;
    padding: 2rem;
  }

  .feature-card:nth-child(6) .feature-icon {
    margin-bottom: 1.25rem;
  }

  .footer-cta-inner {
    flex-direction: column;
    text-align: center;
    padding: 2rem 1.5rem;
  }

  .footer-cta-actions {
    flex-direction: column;
    width: 100%;
  }

  .footer-cta-actions .btn,
  .footer-cta-actions .btn-ghost {
    width: 100%;
    justify-content: center;
  }

  .footer {
    padding: 2.5rem 0 1.5rem;
  }

  .footer-cta {
    padding: 3rem 0;
  }

  .footer-top {
    flex-direction: column;
    gap: 2.5rem;
  }

  .footer-brand {
    max-width: 100%;
  }
  
  .footer-grid {
    grid-template-columns: 1fr 1fr;
    gap: 1.5rem;
    max-width: 100%;
  }
  
  .footer-bottom {
    flex-direction: column;
    align-items: flex-start;
    gap: 0.75rem;
    padding-top: 1.5rem;
  }

  .footer-copy {
    font-size: 0.6875rem;
    width: 100%;
  }

  .footer-meta {
    flex-wrap: wrap;
    gap: 0.375rem;
    width: 100%;
  }

  .footer-legal-links {
    width: 100%;
    gap: 0.75rem;
    margin-top: 0.25rem;
  }


  /* ── Pricing Chart: prevent overflow/overlap ── */
  .pricing-chart-wrap {
    height: auto;
    padding: 1rem;
  }

  .pricing-chart-canvas {
    height: 260px;
  }

  .pricing-chart-header {
    flex-direction: column;
    align-items: flex-start;
    gap: 0.75rem;
    margin-bottom: 1rem;
    padding-bottom: 0.75rem;
  }

  .pricing-chart-legend {
    flex-wrap: wrap;
    gap: 0.5rem 1rem;
  }

  /* ── Pricing Highlights: 2-column, below chart ── */
  .pricing-highlights {
    grid-template-columns: repeat(2, 1fr);
    gap: 0.625rem;
    margin-top: 1.5rem;
  }

  .pricing-hl-card {
    padding: 1rem 0.75rem;
    border-radius: 12px;
  }

  .pricing-hl-value {
    font-size: 1.35rem;
  }

  .pricing-hl-label {
    font-size: 0.6875rem;
  }

  /* ── Pricing Data Table: readable sizes ── */
  .pricing-table-wrap {
    padding: 1rem;
    border-radius: 16px;
    margin-left: -0.5rem;
    margin-right: -0.5rem;
  }

  .pricing-table-header {
    margin-bottom: 1rem;
    padding-bottom: 0.75rem;
  }

  .pricing-table-header h3 {
    font-size: 1.0625rem;
  }

  .pricing-table-scroll {
    position: relative;
    /* Fade hint that table is scrollable */
    mask-image: linear-gradient(to right, black calc(100% - 24px), transparent 100%);
    -webkit-mask-image: linear-gradient(to right, black calc(100% - 24px), transparent 100%);
  }

  .pricing-data-table {
    font-size: 0.875rem;
    min-width: 680px;
  }

  .pricing-data-table thead th {
    padding: 0.625rem 0.75rem;
    font-size: 0.6875rem;
    letter-spacing: 0.08em;
  }

  .pricing-data-table tbody td {
    padding: 0.625rem 0.75rem;
  }

  .pricing-data-table .td-size {
    font-size: 0.9375rem;
    font-weight: 600;
    position: sticky;
    left: 0;
    background: rgba(0, 0, 0, 0.85);
    z-index: 2;
    min-width: 60px;
  }

  .pricing-data-table thead th:first-child {
    position: sticky;
    left: 0;
    background: rgba(0, 0, 0, 0.9);
    z-index: 3;
  }

  .pricing-data-table .td-amalgix {
    font-size: 0.9375rem;
  }

  .pricing-data-table .td-competitor {
    font-size: 0.8125rem;
  }

  .pricing-data-table .td-savings .savings-vs {
    padding: 4px 10px;
    font-size: 0.75rem;
  }

  /* ── Pricing Note: compact on mobile ── */
  .pricing-note {
    padding: 1rem 1.25rem;
    gap: 0.75rem;
    margin-top: 1.5rem;
  }

  .pricing-note-content {
    font-size: 0.8125rem;
  }

  .benchmark-highlights {
    grid-template-columns: repeat(2, 1fr);
  }

  /* ── Benchmark Table: scrollable with sticky first col ── */
  .benchmark-table-wrap {
    position: relative;
    -webkit-overflow-scrolling: touch;
  }

  .benchmark-table-wrap::after {
    content: '← swipe →';
    position: absolute;
    top: 8px;
    right: 8px;
    font-size: 0.625rem;
    color: var(--text-3);
    font-family: var(--font-mono);
    letter-spacing: 0.05em;
    opacity: 0.6;
    pointer-events: none;
  }

  .benchmark-table {
    min-width: 580px;
  }

  .benchmark-table th,
  .benchmark-table td {
    padding: 0.75rem 0.75rem;
    font-size: 0.8125rem;
  }

  .benchmark-table td:first-child,
  .benchmark-table th:first-child {
    position: sticky;
    left: 0;
    background: rgba(0, 0, 0, 0.9);
    z-index: 2;
    font-size: 0.875rem;
  }

  /* ── Pricing table scroll hint ── */
  .pricing-table-wrap::after {
    content: '← swipe →';
    position: absolute;
    top: 56px;
    right: 12px;
    font-size: 0.625rem;
    color: var(--text-3);
    font-family: var(--font-mono);
    letter-spacing: 0.05em;
    opacity: 0.6;
    pointer-events: none;
  }

  .pricing-table-wrap {
    position: relative;
  }

  /* ── Use case card image overflow fix ── */
  .usecase-card {
    padding: 1.25rem;
    gap: 1.25rem;
  }

  .usecase-card-image {
    border-radius: 12px;
    aspect-ratio: 16 / 9;
  }

  .usecase-grid {
    gap: 2rem;
  }

  .use-cases {
    padding: 3rem 0;
  }

  .usecase-highlights {
    gap: 0.375rem;
  }

  .usecase-card-content > p {
    margin-bottom: 0.75rem;
  }
}

/* ═══ Docs Page (SPA) ═══ */
.page-docs {
  padding-top: var(--nav-height);
}

.page-docs .docs-layout {
  display: flex;
  height: calc(100vh - var(--nav-height));
  overflow: hidden;
}

/* Sidebar */
.page-docs .docs-sidebar {
  width: 260px;
  min-width: 260px;
  height: 100%;
  overflow-y: auto;
  border-right: 1px solid var(--border);
  padding: 2rem 1rem;
  background: rgba(0, 0, 0, 0.4);
  backdrop-filter: blur(20px);
  -webkit-backdrop-filter: blur(20px);
  scrollbar-width: thin;
  scrollbar-color: rgba(255,255,255,0.1) transparent;
}

.page-docs .sidebar-back {
  display: block;
  font-size: 0.8125rem;
  color: var(--text-2);
  text-decoration: none;
  margin-bottom: 1.5rem;
  padding: 0.5rem 0.75rem;
  border-radius: 6px;
  transition: all 0.2s;
}

.page-docs .sidebar-back:hover {
  color: var(--text-0);
  background: rgba(255, 255, 255, 0.05);
}

.page-docs .sidebar-section {
  font-size: 0.6875rem;
  font-weight: 700;
  text-transform: uppercase;
  letter-spacing: 0.1em;
  color: var(--text-0);
  padding: 1.25rem 0.75rem 0.4rem;
  margin-top: 0.75rem;
  border-top: 1px solid rgba(255, 255, 255, 0.06);
}

.page-docs .sidebar-section:first-child {
  margin-top: 0;
  border-top: none;
}

.page-docs .sidebar-link {
  display: block;
  font-size: 0.8125rem;
  color: var(--text-2);
  text-decoration: none;
  padding: 0.4rem 0.75rem;
  border-radius: 6px;
  border-left: 2px solid transparent;
  transition: all 0.2s;
  font-family: var(--font-sans);
}

.page-docs .sidebar-link:hover {
  color: var(--text-0);
  background: rgba(255, 255, 255, 0.04);
}

.page-docs .sidebar-link.active {
  color: var(--text-0);
  background: rgba(255, 255, 255, 0.06);
  border-left-color: var(--text-0);
}

.page-docs .sidebar-link .badge-free {
  font-size: 0.5625rem;
  padding: 1px 4px;
  border-radius: 3px;
  background: rgba(34, 197, 94, 0.15);
  color: #4ade80;
  margin-left: 0.25rem;
}

/* Muted sidebar items — subtle demotion for legacy/compatibility tools */
.page-docs .sidebar-section-muted {
  font-weight: 600;
}

.page-docs .sidebar-link-muted {
  color: var(--text-2);
}

.page-docs .sidebar-link-muted:hover {
  color: var(--text-0);
}

/* Main Content */
.page-docs .docs-main {
  flex: 1;
  max-width: 800px;
  padding: 3rem 3rem 6rem;
  overflow-x: hidden;
  overflow-y: auto;
  height: 100%;
}

.page-docs .docs-main h1 {
  font-family: var(--font-display);
  font-size: 2rem;
  font-weight: 700;
  color: var(--text-0);
  margin-bottom: 1rem;
}

.page-docs .docs-main h2 {
  font-family: var(--font-display);
  font-size: 1.375rem;
  font-weight: 600;
  color: var(--text-0);
  margin-top: 3rem;
  margin-bottom: 0.75rem;
  padding-top: 1rem;
  border-top: 1px solid var(--border);
}

.page-docs .docs-main h2:first-of-type {
  border-top: none;
  margin-top: 2rem;
}

.page-docs .docs-main h3 {
  font-family: var(--font-display);
  font-size: 1rem;
  font-weight: 600;
  color: var(--text-1);
  margin-top: 1.5rem;
  margin-bottom: 0.75rem;
}

.page-docs .docs-main p {
  color: var(--text-1);
  font-size: 0.9375rem;
  line-height: 1.7;
  margin-bottom: 1rem;
}

.page-docs .docs-main ul,
.page-docs .docs-main ol {
  color: var(--text-1);
  padding-left: 1.25rem;
  margin-bottom: 1rem;
  font-size: 0.9375rem;
  line-height: 1.7;
  list-style: disc;
}

.page-docs .docs-main ol {
  list-style: decimal;
}

.page-docs .docs-main li {
  margin-bottom: 0.35rem;
}

.page-docs .docs-main strong {
  color: var(--text-0);
  font-weight: 600;
}

.page-docs .docs-main code {
  font-family: var(--font-mono);
  font-size: 0.8125rem;
  background: rgba(255, 255, 255, 0.06);
  padding: 0.15em 0.4em;
  border-radius: 4px;
  color: var(--text-0);
}

/* Code Blocks */
.page-docs .code-block-wrapper {
  background: rgba(0, 0, 0, 0.5);
  border: 1px solid var(--border);
  border-radius: 10px;
  margin: 1rem 0 1.5rem;
  overflow-x: auto;
}

.page-docs .code-block-wrapper pre {
  padding: 1.25rem;
  margin: 0;
  overflow-x: auto;
}

.page-docs .code-block-wrapper code {
  background: none;
  padding: 0;
  font-size: 0.8125rem;
  line-height: 1.6;
  color: var(--text-1);
}

.page-docs .code-block-wrapper .key { color: #93c5fd; }
.page-docs .code-block-wrapper .string { color: #86efac; }
.page-docs .code-block-wrapper .number { color: #fde68a; }
.page-docs .code-block-wrapper .comment { color: var(--text-2); font-style: italic; }

/* Parameter Tables */
.page-docs .param-table {
  width: 100%;
  border-collapse: collapse;
  margin: 0.75rem 0 1.5rem;
  font-size: 0.8125rem;
}

.page-docs .param-table th {
  text-align: left;
  padding: 0.6rem 0.75rem;
  font-weight: 600;
  color: var(--text-2);
  border-bottom: 1px solid var(--border);
  font-size: 0.75rem;
  text-transform: uppercase;
  letter-spacing: 0.04em;
}

.page-docs .param-table td {
  padding: 0.6rem 0.75rem;
  border-bottom: 1px solid rgba(255, 255, 255, 0.04);
  color: var(--text-1);
  vertical-align: top;
}

.page-docs .param-table .type-col {
  font-family: var(--font-mono);
  font-size: 0.75rem;
  color: #93c5fd;
}

/* Badges */
.page-docs .badge {
  font-size: 0.625rem;
  font-weight: 600;
  padding: 2px 6px;
  border-radius: 3px;
  text-transform: uppercase;
  letter-spacing: 0.03em;
}

.page-docs .badge-post { background: rgba(59, 130, 246, 0.15); color: #60a5fa; }
.page-docs .badge-paid { background: rgba(251, 191, 36, 0.1); color: #fbbf24; }
.page-docs .badge-free-tag { background: rgba(34, 197, 94, 0.15); color: #4ade80; }
.page-docs .badge-required { background: rgba(239, 68, 68, 0.1); color: #f87171; font-size: 0.625rem; padding: 1px 5px; border-radius: 3px; }
.page-docs .badge-optional { background: rgba(161, 161, 170, 0.1); color: var(--text-2); font-size: 0.625rem; padding: 1px 5px; border-radius: 3px; }

/* Tool Header Row */
.page-docs .tool-header-row {
  display: flex;
  align-items: center;
  gap: 0.5rem;
  margin-bottom: 1rem;
}

.page-docs .tool-price {
  font-family: var(--font-mono);
  font-size: 0.75rem;
  color: var(--text-2);
  margin-left: auto;
}

/* Callout */
.page-docs .callout {
  padding: 1rem 1.25rem;
  border-radius: 8px;
  margin: 1.5rem 0;
  font-size: 0.875rem;
  line-height: 1.6;
}

.page-docs .callout-info {
  background: rgba(59, 130, 246, 0.06);
  border: 1px solid rgba(59, 130, 246, 0.2);
  color: var(--text-1);
}

/* Steps */
.page-docs .steps {
  list-style: decimal;
  padding-left: 1.5rem;
}

.page-docs .steps li {
  margin-bottom: 0.5rem;
  color: var(--text-1);
}

/* Mobile */
@media (max-width: 768px) {
  .page-docs .docs-sidebar {
    display: none;
  }

  .page-docs .docs-main {
    padding: 2rem 1.25rem 4rem;
  }

  .page-docs .param-table {
    display: block;
    overflow-x: auto;
    -webkit-overflow-scrolling: touch;
  }

  .page-docs .code-block-wrapper {
    max-width: calc(100vw - 2.5rem);
  }
}

/* Mobile Docs TOC — Floating Button + Slide-up Drawer */
/* Base state: hidden on desktop */
.docs-mobile-toc-btn,
.docs-mobile-toc-overlay,
.docs-mobile-toc-drawer {
  display: none;
}

@media (max-width: 768px) {
  .docs-mobile-toc-btn {
    display: flex;
    align-items: center;
    gap: 0.4rem;
    position: fixed;
    bottom: 1.5rem;
    right: 1.5rem;
    z-index: 900;
    padding: 0.6rem 1rem;
    background: rgba(20, 20, 30, 0.92);
    backdrop-filter: blur(12px);
    -webkit-backdrop-filter: blur(12px);
    border: 1px solid rgba(255, 255, 255, 0.12);
    border-radius: 2rem;
    color: var(--text-0);
    font-size: 0.8125rem;
    font-weight: 500;
    font-family: var(--font-sans);
    cursor: pointer;
    box-shadow: 0 4px 20px rgba(0, 0, 0, 0.4);
    transition: transform 0.2s, box-shadow 0.2s;
  }

  .docs-mobile-toc-btn:active {
    transform: scale(0.95);
  }

  .docs-mobile-toc-overlay {
    display: block;
    position: fixed;
    inset: 0;
    z-index: 950;
    background: rgba(0, 0, 0, 0.5);
    opacity: 0;
    pointer-events: none;
    transition: opacity 0.25s;
  }

  .docs-mobile-toc-overlay.open {
    opacity: 1;
    pointer-events: auto;
  }

  .docs-mobile-toc-drawer {
    display: flex;
    position: fixed;
    bottom: 0;
    left: 0;
    right: 0;
    z-index: 960;
    max-height: 65vh;
    background: rgba(16, 16, 24, 0.96);
    backdrop-filter: blur(20px);
    -webkit-backdrop-filter: blur(20px);
    border-top: 1px solid rgba(255, 255, 255, 0.1);
    border-radius: 1.25rem 1.25rem 0 0;
    transform: translateY(100%);
    transition: transform 0.3s cubic-bezier(0.32, 0.72, 0, 1);
    overflow: hidden;
    display: flex;
    flex-direction: column;
  }

  .docs-mobile-toc-drawer.open {
    transform: translateY(0);
  }

  .docs-mobile-toc-header {
    display: flex;
    align-items: center;
    justify-content: space-between;
    padding: 1rem 1.25rem 0.75rem;
    border-bottom: 1px solid rgba(255, 255, 255, 0.06);
  }

  .docs-mobile-toc-header span {
    font-size: 0.875rem;
    font-weight: 600;
    color: var(--text-0);
  }

  .docs-mobile-toc-close {
    background: none;
    border: none;
    color: var(--text-2);
    font-size: 1.5rem;
    cursor: pointer;
    padding: 0.25rem 0.5rem;
    line-height: 1;
  }

  .docs-mobile-toc-nav {
    overflow-y: auto;
    padding: 0.75rem 1rem 1.5rem;
    -webkit-overflow-scrolling: touch;
  }

  .docs-mobile-toc-nav .sidebar-section {
    font-size: 0.6875rem;
    font-weight: 600;
    text-transform: uppercase;
    letter-spacing: 0.08em;
    color: var(--text-2);
    padding: 0.75rem 0.5rem 0.35rem;
  }

  .docs-mobile-toc-link {
    display: block;
    font-size: 0.8125rem;
    color: var(--text-2);
    text-decoration: none;
    padding: 0.5rem 0.75rem;
    border-radius: 6px;
    transition: background 0.15s, color 0.15s;
    font-family: var(--font-sans);
  }

  .docs-mobile-toc-link:active,
  .docs-mobile-toc-link:hover {
    color: var(--text-0);
    background: rgba(255, 255, 255, 0.06);
  }
}



/* ========================================
   LANGUAGE SWITCHER
   ======================================== */
.lang-switcher {
    position: relative;
    margin-right: 1rem;
}

.lang-switcher-btn {
    display: flex;
    align-items: center;
    justify-content: center;
    width: 38px;
    height: 38px;
    padding: 0;
    background: transparent;
    border: 1px solid rgba(255, 255, 255, 0.08);
    border-radius: 10px;
    color: var(--text-secondary, #a0a0b0);
    cursor: pointer;
    transition: all 0.25s ease;
}

.lang-switcher-btn:hover {
    background: rgba(255, 255, 255, 0.06);
    border-color: rgba(255, 255, 255, 0.18);
    color: var(--text-primary, #ffffff);
}

.lang-switcher-btn.open {
    background: rgba(255, 255, 255, 0.06);
    border-color: rgba(255, 255, 255, 0.2);
    color: #ffffff;
}

.lang-globe {
    width: 19px;
    height: 19px;
    flex-shrink: 0;
}

/* Dropdown */
.lang-switcher-dropdown {
    position: absolute;
    top: calc(100% + 10px);
    right: 0;
    width: 320px;
    max-height: 0;
    overflow: hidden;
    background: #0a0a0a;
    background: rgba(8, 8, 8, 0.98);
    border: 1px solid rgba(255, 255, 255, 0.08);
    border-radius: 14px;
    backdrop-filter: blur(24px);
    -webkit-backdrop-filter: blur(24px);
    box-shadow: 0 8px 40px rgba(0, 0, 0, 0.7);
    opacity: 0;
    transform: translateY(-6px) scale(0.97);
    transition: all 0.25s cubic-bezier(0.16, 1, 0.3, 1);
    z-index: 9999;
    padding: 0;
}

.lang-switcher-dropdown.open {
    max-height: 400px;
    opacity: 1;
    transform: translateY(0) scale(1);
    padding: 16px;
}

.lang-dropdown-header {
    font-size: 0.65rem;
    font-weight: 600;
    text-transform: uppercase;
    letter-spacing: 0.12em;
    color: rgba(255, 255, 255, 0.3);
    padding: 0 4px 10px;
    border-bottom: 1px solid rgba(255, 255, 255, 0.06);
    margin-bottom: 10px;
}

.lang-grid {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 4px;
}

.lang-option {
    display: flex;
    align-items: center;
    justify-content: center;
    padding: 8px 10px;
    background: transparent;
    border: 1px solid transparent;
    border-radius: 8px;
    color: var(--text-secondary, #a0a0b0);
    font-size: 0.78rem;
    font-family: inherit;
    cursor: pointer;
    transition: all 0.15s ease;
    text-align: center;
    white-space: nowrap;
}

.lang-option:hover {
    background: rgba(255, 255, 255, 0.05);
    border-color: rgba(255, 255, 255, 0.08);
    color: var(--text-primary, #ffffff);
}

.lang-option.active {
    background: rgba(255, 255, 255, 0.06);
    border-color: rgba(255, 255, 255, 0.15);
    color: #ffffff;
    font-weight: 600;
}

/* i18n Transition Animation */
.i18n-switching [data-i18n],
.i18n-switching [data-i18n-html] {
    opacity: 0.3;
    transition: opacity 0.12s ease;
}

body:not(.i18n-switching) [data-i18n],
body:not(.i18n-switching) [data-i18n-html] {
    transition: opacity 0.15s ease;
}

/* ========================================
   RTL SUPPORT (Arabic)
   ======================================== */
html[dir="rtl"] {
    direction: rtl;
    text-align: right;
}

html[dir="rtl"] .nav .container {
    flex-direction: row-reverse;
}

html[dir="rtl"] .nav-links {
    flex-direction: row-reverse;
}

html[dir="rtl"] .nav-right {
    flex-direction: row-reverse;
}

html[dir="rtl"] .hero-container {
    flex-direction: row-reverse;
}

html[dir="rtl"] .stats-bar {
    flex-direction: row-reverse;
}

html[dir="rtl"] .pipeline-visual {
    flex-direction: row-reverse;
}

html[dir="rtl"] .pipeline-connector {
    transform: scaleX(-1);
}

html[dir="rtl"] .section-header {
    text-align: right;
}

html[dir="rtl"] .usecase-highlights li::before {
    margin-right: 0;
    margin-left: 0.5rem;
}

html[dir="rtl"] .security-point {
    flex-direction: row-reverse;
    text-align: right;
}

html[dir="rtl"] .audience-item {
    flex-direction: row-reverse;
    text-align: right;
}

html[dir="rtl"] .tool-card {
    text-align: right;
}

html[dir="rtl"] .bento-card {
    text-align: right;
}

html[dir="rtl"] .pricing-data-table {
    text-align: right;
}

html[dir="rtl"] .footer-grid {
    direction: rtl;
}

/* RTL: Code blocks stay LTR */
html[dir="rtl"] .code-block,
html[dir="rtl"] .code-block-wrapper,
html[dir="rtl"] pre,
html[dir="rtl"] code {
    direction: ltr;
    text-align: left;
}

/* RTL: Pricing table stays LTR */
html[dir="rtl"] .benchmark-table {
    direction: ltr;
}

/* RTL: Language switcher dropdown stays right-aligned (fixed position) */
html[dir="rtl"] .lang-switcher-dropdown {
    right: 0;
    left: auto;
}

/* Mobile language list is now hidden - globe dropdown handles it */
@media (min-width: 769px) {
    .mobile-lang-list {
        display: none !important;
    }
}

.lang-switcher[hidden],
.mobile-lang-list[hidden] {
    display: none !important;
}
