/* ==========================================================================
   AUTERIX — FUTURISTIC AI WORKFLOW DESIGN SYSTEM & COCKPIT ENGINE
   ========================================================================== */

:root {
  /* Cosmic Dark Palette */
  --bg-space: #06080d;
  --bg-card: rgba(14, 20, 32, 0.75);
  --bg-card-hover: rgba(20, 28, 45, 0.85);
  --bg-pane: rgba(9, 13, 22, 0.88);
  --bg-input: rgba(10, 15, 25, 0.9);

  /* Cyber Accent Colors */
  --cyan: #00f2fe;
  --cyan-bright: #38bdf8;
  --cyan-glow: rgba(0, 242, 254, 0.25);
  --cyan-subtle: rgba(0, 242, 254, 0.08);

  --violet: #8a2be2;
  --violet-bright: #a855f7;
  --violet-glow: rgba(138, 43, 226, 0.25);
  --violet-subtle: rgba(138, 43, 226, 0.08);

  --indigo: #6366f1;
  --indigo-glow: rgba(99, 102, 241, 0.25);

  --emerald: #10b981;
  --emerald-glow: rgba(16, 185, 129, 0.25);
  --emerald-subtle: rgba(16, 185, 129, 0.08);

  --amber: #f59e0b;
  --amber-glow: rgba(245, 158, 11, 0.25);
  --amber-subtle: rgba(245, 158, 11, 0.08);

  --rose: #f43f5e;
  --rose-glow: rgba(244, 63, 94, 0.25);
  --rose-subtle: rgba(244, 63, 94, 0.08);

  /* Typography */
  --font-sans:
    'Inter', system-ui, -apple-system, BlinkMacSystemFont, 'Segoe UI', Roboto, sans-serif;
  --font-mono: 'JetBrains Mono', 'Fira Code', Menlo, Monaco, Consolas, monospace;

  /* Borders & Shadows */
  --border-subtle: rgba(255, 255, 255, 0.08);
  --border-glow: rgba(0, 242, 254, 0.35);
  --border-violet: rgba(168, 85, 247, 0.35);
  --border-amber: rgba(245, 158, 11, 0.35);

  --radius-sm: 6px;
  --radius-md: 10px;
  --radius-lg: 16px;
  --radius-xl: 22px;

  --shadow-cockpit: 0 0 50px -10px rgba(0, 0, 0, 0.9), 0 0 0 1px rgba(0, 242, 254, 0.15);
  --shadow-neon-cyan: 0 0 25px rgba(0, 242, 254, 0.3);
  --shadow-neon-violet: 0 0 25px rgba(138, 43, 226, 0.3);
}

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

/* Accessibility: High-contrast focus-visible ring for keyboard navigation */
:focus-visible {
  outline: 2px solid var(--cyan, #00f2fe);
  outline-offset: 2px;
}

html {
  scroll-behavior: smooth;
  overflow-x: hidden;
}

body.dark-theme {
  background-color: var(--bg-space);
  color: #f1f5f9;
  font-family: var(--font-sans);
  min-height: 100vh;
  overflow-x: hidden;
  line-height: 1.6;
  -webkit-font-smoothing: antialiased;
  -moz-osx-font-smoothing: grayscale;
}

/* Ambient Aurora Glow Lights */
.ambient-glow {
  position: fixed;
  pointer-events: none;
  z-index: 0;
  border-radius: 50%;
  filter: blur(120px);
}
.glow-top {
  width: 1000px;
  height: 500px;
  top: -150px;
  left: 50%;
  transform: translateX(-50%);
  background: radial-gradient(circle, rgba(99, 102, 241, 0.18), transparent 70%);
}
.glow-cyan {
  width: 700px;
  height: 600px;
  top: 20%;
  right: -200px;
  background: radial-gradient(circle, rgba(0, 242, 254, 0.12), transparent 70%);
}
.glow-violet {
  width: 800px;
  height: 600px;
  top: 50%;
  left: -250px;
  background: radial-gradient(circle, rgba(138, 43, 226, 0.12), transparent 70%);
}

/* Background Cyber Grid Pattern */
.cyber-grid-overlay {
  position: fixed;
  inset: 0;
  pointer-events: none;
  z-index: 0;
  background-image:
    linear-gradient(to right, rgba(255, 255, 255, 0.025) 1px, transparent 1px),
    linear-gradient(to bottom, rgba(255, 255, 255, 0.025) 1px, transparent 1px);
  background-size: 48px 48px;
  mask-image: radial-gradient(ellipse 90% 70% at 50% 10%, #000 50%, transparent 100%);
  -webkit-mask-image: radial-gradient(ellipse 90% 70% at 50% 10%, #000 50%, transparent 100%);
}

.app-container {
  position: relative;
  z-index: 1;
  max-width: 1420px;
  margin: 0 auto;
  padding: 0 24px;
}

/* ==========================================================================
   TOP NAVIGATION
   ========================================================================== */
.top-nav {
  position: sticky;
  top: 16px;
  z-index: 100;
  display: flex;
  align-items: center;
  justify-content: space-between;
  padding: 12px 16px;
  margin-bottom: 40px;
  background: rgba(10, 14, 23, 0.75);
  backdrop-filter: blur(20px) saturate(180%);
  -webkit-backdrop-filter: blur(20px) saturate(180%);
  border: 1px solid var(--border-subtle);
  border-radius: 999px;
  box-shadow:
    0 10px 30px rgba(0, 0, 0, 0.5),
    inset 0 1px 0 rgba(255, 255, 255, 0.08);
}

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

.brand-logo-img {
  width: 36px;
  height: 36px;
  border-radius: 0;
  display: block;
  flex-shrink: 0;
  filter: drop-shadow(0 0 10px rgba(99, 102, 241, 0.45));
  transition: transform 0.2s cubic-bezier(0.16, 1, 0.3, 1);
}

.brand-logo-img:hover {
  transform: scale(1.08);
}

.brand-logo-img.small {
  width: 34px;
  height: 34px;
  border-radius: 0;
  filter: drop-shadow(0 0 8px rgba(99, 102, 241, 0.35));
}

.brand-logo-svg {
  width: 100%;
  height: 100%;
  display: block;
}

.brand-text-group {
  display: flex;
  flex-direction: column;
  gap: 2px;
}

.brand-title-line {
  display: flex;
  align-items: center;
  gap: 8px;
}

.brand-name {
  font-size: 17px;
  font-weight: 800;
  letter-spacing: -0.01em;
  color: #ffffff;
  line-height: 1.1;
}

.brand-pill-badge {
  font-size: 9px;
  font-weight: 700;
  letter-spacing: 0.08em;
  text-transform: uppercase;
  color: #00f2fe;
  background: rgba(0, 242, 254, 0.1);
  border: 1px solid rgba(0, 242, 254, 0.28);
  padding: 1.5px 6px;
  border-radius: 4px;
  line-height: 1.2;
}

.brand-tagline {
  font-size: 11px;
  font-weight: 500;
  color: #94a3b8;
  letter-spacing: -0.01em;
  line-height: 1.2;
}

.brand-badge {
  font-size: 9px;
  font-weight: 700;
  letter-spacing: 0.08em;
  color: #94a3b8;
}

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

.nav-link {
  font-size: 13px;
  font-weight: 500;
  color: #94a3b8;
  text-decoration: none;
  transition: all 0.2s ease;
}

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

.nav-link.active,
.nav-link.highlight {
  color: var(--cyan);
  position: relative;
}

.nav-link.active::after,
.nav-link.highlight::after {
  content: '';
  position: absolute;
  bottom: -4px;
  left: 0;
  right: 0;
  height: 2px;
  background: var(--cyan);
  box-shadow: 0 0 10px var(--cyan);
  border-radius: 2px;
}

/* Guide Panel Switching */
.guide-panel {
  display: none;
}

.guide-panel.active {
  display: block;
}

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

.btn-unlock-pro-nav {
  display: inline-flex;
  align-items: center;
  gap: 6px;
  padding: 8px 14px;
  background: rgba(0, 242, 254, 0.08);
  border: 1px solid rgba(0, 242, 254, 0.4);
  color: #38bdf8;
  font-size: 12px;
  font-weight: 600;
  border-radius: 999px;
  cursor: pointer;
  transition: all 0.2s ease;
}

.btn-unlock-pro-nav:hover {
  background: rgba(0, 242, 254, 0.18);
  border-color: var(--cyan);
  box-shadow: 0 0 15px rgba(0, 242, 254, 0.35);
  transform: translateY(-1px);
}

.btn-github {
  display: inline-flex;
  align-items: center;
  gap: 6px;
  padding: 8px 14px;
  background: rgba(255, 255, 255, 0.06);
  border: 1px solid var(--border-subtle);
  color: #fff;
  font-size: 12px;
  font-weight: 600;
  border-radius: 999px;
  text-decoration: none;
  transition: all 0.2s ease;
}

.btn-github:hover {
  background: rgba(255, 255, 255, 0.12);
  border-color: rgba(255, 255, 255, 0.2);
  transform: translateY(-1px);
}

/* ==========================================================================
   HERO SECTION
   ========================================================================== */
.hero-section {
  text-align: center;
  padding: 50px 0 40px;
  display: flex;
  flex-direction: column;
  align-items: center;
}

.hero-badge-wrap {
  margin-bottom: 24px;
}

.hero-badge {
  position: relative;
  display: inline-flex;
  align-items: center;
  gap: 8px;
  padding: 6px 16px;
  background: rgba(99, 102, 241, 0.1);
  border: 1px solid rgba(99, 102, 241, 0.3);
  border-radius: 999px;
}

.badge-pulse-ring {
  position: absolute;
  left: 14px;
  width: 8px;
  height: 8px;
  border-radius: 50%;
  background: var(--cyan);
  animation: pulse-dot 2s infinite ease-in-out;
}

.badge-dot {
  width: 8px;
  height: 8px;
  border-radius: 50%;
  background: var(--cyan);
  flex-shrink: 0;
}

.badge-label {
  font-size: 11px;
  font-weight: 700;
  letter-spacing: 0.1em;
  color: #e2e8f0;
}

.hero-title {
  font-size: clamp(26px, 3.8vw, 46px);
  font-weight: 900;
  line-height: 1.18;
  letter-spacing: -0.03em;
  margin-bottom: 22px;
  max-width: 30ch;
}

.gradient-text {
  background: linear-gradient(135deg, #ffffff 10%, #a5b4fc 50%, var(--cyan) 90%);
  -webkit-background-clip: text;
  -webkit-text-fill-color: transparent;
}

.glow-text {
  text-shadow: 0 0 35px rgba(0, 242, 254, 0.25);
}

.hero-subtitle {
  font-size: clamp(16px, 2vw, 19px);
  color: #94a3b8;
  max-width: 780px;
  line-height: 1.6;
  margin-bottom: 34px;
}

.hero-cta-group {
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 14px;
  flex-wrap: wrap;
  margin-bottom: 36px;
}

.btn-primary-hero {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  padding: 14px 28px;
  background: linear-gradient(135deg, var(--indigo) 0%, #4f46e5 100%);
  color: #fff;
  font-size: 15px;
  font-weight: 700;
  border-radius: 12px;
  text-decoration: none;
  transition: all 0.2s ease;
  border: 1px solid rgba(255, 255, 255, 0.15);
}

.glow-button {
  box-shadow: 0 0 25px rgba(99, 102, 241, 0.45);
}

.glow-button:hover {
  box-shadow: 0 0 35px rgba(99, 102, 241, 0.65);
  transform: translateY(-2px);
}

.btn-secondary-hero {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  padding: 14px 26px;
  background: rgba(14, 20, 32, 0.85);
  border: 1px solid var(--border-glow);
  color: #38bdf8;
  font-size: 15px;
  font-weight: 700;
  border-radius: 12px;
  text-decoration: none;
  transition: all 0.2s ease;
}

.btn-secondary-hero:hover {
  background: rgba(0, 242, 254, 0.1);
  box-shadow: 0 0 20px rgba(0, 242, 254, 0.3);
  transform: translateY(-2px);
}

.btn-tertiary-hero {
  background: transparent;
  border: none;
  color: #94a3b8;
  font-size: 14px;
  font-weight: 500;
  cursor: pointer;
  padding: 14px 18px;
  transition: color 0.2s ease;
}

.btn-tertiary-hero:hover {
  color: #fff;
}

/* Quick-Run Terminal Shell */
.hero-terminal-shell {
  width: 100%;
  max-width: 680px;
  background: rgba(10, 15, 26, 0.92);
  border: 1px solid rgba(56, 189, 248, 0.22);
  border-radius: 12px;
  box-shadow:
    0 20px 40px rgba(0, 0, 0, 0.6),
    0 0 30px rgba(0, 242, 254, 0.05),
    inset 0 1px 0 rgba(255, 255, 255, 0.08);
  overflow: hidden;
  margin: 0 auto 36px auto;
  backdrop-filter: blur(16px);
  text-align: left;
}

.shell-header {
  display: flex;
  align-items: center;
  justify-content: space-between;
  flex-wrap: wrap;
  row-gap: 4px;
  column-gap: 6px;
  padding: 10px 16px;
  background: rgba(15, 23, 42, 0.75);
  border-bottom: 1px solid rgba(255, 255, 255, 0.06);
}

.shell-header-left {
  display: flex;
  align-items: center;
  gap: 12px;
}

.shell-dots {
  display: flex;
  gap: 7px;
  align-items: center;
}

.shell-dot {
  width: 11px;
  height: 11px;
  border-radius: 50%;
  display: inline-block;
}
.shell-dot.red {
  background: #ff5f56;
  box-shadow: 0 0 6px rgba(255, 95, 86, 0.4);
}
.shell-dot.yellow {
  background: #ffbd2e;
  box-shadow: 0 0 6px rgba(255, 189, 46, 0.4);
}
.shell-dot.green {
  background: #27c93f;
  box-shadow: 0 0 6px rgba(39, 201, 63, 0.4);
}

.shell-title {
  font-family: var(--font-mono, ui-monospace, monospace);
  font-size: 11px;
  letter-spacing: 0.04em;
  color: #94a3b8;
  font-weight: 500;
}

.shell-badge {
  margin-inline-start: auto;
  font-family: var(--font-mono, ui-monospace, monospace);
  font-size: 10px;
  font-weight: 700;
  letter-spacing: 0.06em;
  text-transform: uppercase;
  color: #38bdf8;
  background: rgba(56, 189, 248, 0.12);
  border: 1px solid rgba(56, 189, 248, 0.25);
  padding: 2px 8px;
  border-radius: 12px;
}

.shell-body {
  padding: 16px 20px;
  display: flex;
  flex-direction: column;
  gap: 12px;
}

.shell-command-line {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 12px;
  background: rgba(2, 6, 23, 0.6);
  border: 1px solid rgba(255, 255, 255, 0.05);
  border-radius: 8px;
  padding: 10px 14px;
}

.shell-command-content {
  display: flex;
  align-items: center;
  gap: 10px;
  min-width: 0;
  flex: 1;
}

.shell-prompt {
  color: #00f2fe;
  font-family: var(--font-mono, ui-monospace, monospace);
  font-size: 14px;
  font-weight: 700;
  user-select: none;
  flex-shrink: 0;
}

.shell-code {
  color: #f1f5f9;
  font-family: var(--font-mono, ui-monospace, monospace);
  font-size: 13px;
  line-height: 1.4;
  white-space: nowrap;
  overflow: hidden;
  text-overflow: ellipsis;
  flex: 1;
}

.shell-copy-btn {
  display: inline-flex;
  align-items: center;
  gap: 6px;
  padding: 6px 12px;
  background: rgba(56, 189, 248, 0.1);
  border: 1px solid rgba(56, 189, 248, 0.25);
  border-radius: 6px;
  color: #38bdf8;
  font-size: 11px;
  font-weight: 600;
  font-family: var(--font-sans, system-ui, sans-serif);
  cursor: pointer;
  flex-shrink: 0;
  transition: all 0.2s ease;
}

.shell-copy-btn:hover {
  background: rgba(56, 189, 248, 0.2);
  border-color: #38bdf8;
  color: #fff;
  transform: translateY(-1px);
}

.shell-copy-btn.copied {
  background: rgba(16, 185, 129, 0.2);
  border-color: #10b981;
  color: #34d399;
}

.shell-output-line {
  display: flex;
  align-items: center;
  gap: 8px;
  font-family: var(--font-mono, ui-monospace, monospace);
  font-size: 12px;
  color: #10b981;
  padding: 0 4px;
}

.output-check {
  font-weight: 800;
  font-size: 13px;
  color: #34d399;
  flex-shrink: 0;
}

.output-text {
  color: #cbd5e1;
  font-size: 12px;
}

.output-text strong {
  color: #38bdf8;
}

/* Live AI Telemetry Strip */
.hero-telemetry-strip {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(240px, 1fr));
  gap: 16px;
  width: 100%;
  max-width: 1150px;
}

.telemetry-item {
  display: flex;
  align-items: center;
  gap: 14px;
  padding: 14px 18px;
  background: var(--bg-card);
  border: 1px solid var(--border-subtle);
  border-radius: var(--radius-md);
  text-align: left;
  backdrop-filter: blur(12px);
}

.telemetry-icon {
  font-size: 20px;
  display: flex;
  align-items: center;
  justify-content: center;
  flex-shrink: 0;
  width: 38px;
  height: 38px;
  border-radius: 8px;
  background: rgba(255, 255, 255, 0.04);
}

.telemetry-info {
  display: flex;
  flex-direction: column;
}

.telemetry-info strong {
  font-size: 13px;
  color: #f1f5f9;
}

.telemetry-info span {
  font-size: 11px;
  color: #64748b;
}

/* Ecosystem Banner */
.ecosystem-banner {
  text-align: center;
  padding: 30px 0;
  border-top: 1px solid rgba(255, 255, 255, 0.04);
  border-bottom: 1px solid rgba(255, 255, 255, 0.04);
  margin-bottom: 60px;
}

.ecosystem-label {
  font-size: 11px;
  font-weight: 700;
  letter-spacing: 0.14em;
  color: #64748b;
  margin-bottom: 18px;
}

.ecosystem-grid {
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 10px;
  flex-wrap: wrap;
}

.tool-pill {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  padding: 7px 14px;
  background: rgba(15, 23, 42, 0.6);
  border: 1px solid var(--border-subtle);
  border-radius: 999px;
  font-size: 12px;
  color: #cbd5e1;
  transition: all 0.2s ease;
}

.tool-pill:hover {
  border-color: rgba(255, 255, 255, 0.2);
  transform: translateY(-1px);
  background: rgba(255, 255, 255, 0.05);
}

.tool-dot {
  width: 6px;
  height: 6px;
  border-radius: 50%;
}
.tool-dot.cyan {
  background: var(--cyan);
  box-shadow: 0 0 6px var(--cyan);
}
.tool-dot.violet {
  background: var(--violet-bright);
  box-shadow: 0 0 6px var(--violet-bright);
}
.tool-dot.blue {
  background: #3b82f6;
  box-shadow: 0 0 6px #3b82f6;
}
.tool-dot.emerald {
  background: var(--emerald);
  box-shadow: 0 0 6px var(--emerald);
}
.tool-dot.purple {
  background: #c084fc;
  box-shadow: 0 0 6px #c084fc;
}
.tool-dot.amber {
  background: var(--amber);
  box-shadow: 0 0 6px var(--amber);
}
.tool-dot.rose {
  background: var(--rose);
  box-shadow: 0 0 6px var(--rose);
}
.tool-dot.indigo {
  background: var(--indigo);
  box-shadow: 0 0 6px var(--indigo);
}

.tool-ext {
  font-family: var(--font-mono);
  font-size: 10px;
  color: #64748b;
}

/* ==========================================================================
   WORKFLOW PIPELINE VISUALIZER (5 CONNECTED STAGES)
   ========================================================================== */
.workflow-pipeline-section {
  padding: 40px 0 80px;
}

.section-badge-center {
  display: flex;
  justify-content: center;
  margin-bottom: 14px;
}

.section-badge {
  display: inline-flex;
  align-items: center;
  padding: 4px 12px;
  background: rgba(0, 242, 254, 0.08);
  border: 1px solid rgba(0, 242, 254, 0.3);
  border-radius: 999px;
  font-size: 10px;
  font-weight: 700;
  letter-spacing: 0.12em;
  color: var(--cyan);
}

.section-title {
  font-size: clamp(26px, 3.5vw, 38px);
  font-weight: 800;
  letter-spacing: -0.02em;
  margin-bottom: 12px;
  color: #fff;
}

.section-subtitle {
  font-size: 15px;
  color: #94a3b8;
  max-width: 680px;
  margin: 0 auto 40px;
  line-height: 1.6;
}

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

.pipeline-flow-container {
  display: flex;
  align-items: stretch;
  justify-content: space-between;
  gap: 8px;
  overflow-x: auto;
  padding: 20px 4px;
}

.pipeline-node-card {
  position: relative;
  flex: 1;
  min-width: 210px;
  background: var(--bg-card);
  border: 1px solid var(--border-subtle);
  border-radius: var(--radius-lg);
  padding: 22px 18px;
  display: flex;
  flex-direction: column;
  backdrop-filter: blur(16px);
  transition: all 0.3s ease;
}

.pipeline-node-card:hover {
  transform: translateY(-3px);
  border-color: rgba(0, 242, 254, 0.4);
  box-shadow:
    0 10px 30px -10px rgba(0, 0, 0, 0.8),
    0 0 20px rgba(0, 242, 254, 0.15);
}

.node-number {
  position: absolute;
  top: 14px;
  right: 14px;
  font-family: var(--font-mono);
  font-size: 11px;
  font-weight: 700;
  color: #475569;
}

.node-icon-box {
  width: 44px;
  height: 44px;
  border-radius: 12px;
  display: flex;
  align-items: center;
  justify-content: center;
  margin-bottom: 16px;
}

.node-icon-box.cyan {
  background: var(--cyan-subtle);
  color: var(--cyan);
  border: 1px solid rgba(0, 242, 254, 0.3);
}
.node-icon-box.violet {
  background: var(--violet-subtle);
  color: var(--violet-bright);
  border: 1px solid rgba(138, 43, 226, 0.3);
}
.node-icon-box.emerald {
  background: var(--emerald-subtle);
  color: var(--emerald);
  border: 1px solid rgba(16, 185, 129, 0.3);
}
.node-icon-box.amber {
  background: var(--amber-subtle);
  color: var(--amber);
  border: 1px solid rgba(245, 158, 11, 0.3);
}
.node-icon-box.rose {
  background: var(--rose-subtle);
  color: var(--rose);
  border: 1px solid rgba(244, 63, 94, 0.3);
}

.node-title {
  font-size: 15px;
  font-weight: 700;
  margin-bottom: 8px;
  color: #f8fafc;
}

.node-desc {
  font-size: 12px;
  color: #94a3b8;
  line-height: 1.5;
  margin-bottom: 16px;
  flex: 1;
}

.node-status {
  display: flex;
  align-items: center;
  gap: 6px;
  font-size: 11px;
  font-family: var(--font-mono);
  color: #cbd5e1;
  padding-top: 12px;
  border-top: 1px solid rgba(255, 255, 255, 0.05);
}

.mini-pulse {
  width: 6px;
  height: 6px;
  border-radius: 50%;
}
.mini-pulse.cyan {
  background: var(--cyan);
  box-shadow: 0 0 6px var(--cyan);
}
.mini-pulse.violet {
  background: var(--violet-bright);
  box-shadow: 0 0 6px var(--violet-bright);
}
.mini-pulse.emerald {
  background: var(--emerald);
  box-shadow: 0 0 6px var(--emerald);
}
.mini-pulse.amber {
  background: var(--amber);
  box-shadow: 0 0 6px var(--amber);
}
.mini-pulse.rose {
  background: var(--rose);
  box-shadow: 0 0 6px var(--rose);
}

/* Connecting Beams */
.pipeline-beam {
  position: relative;
  align-self: center;
  width: 24px;
  height: 2px;
  background: rgba(255, 255, 255, 0.08);
  overflow: hidden;
  flex-shrink: 0;
}

.beam-glow {
  position: absolute;
  top: 0;
  left: 0;
  width: 14px;
  height: 100%;
  background: var(--cyan);
  box-shadow: 0 0 8px var(--cyan);
  animation: beam-travel 1.8s infinite linear;
}

@keyframes beam-travel {
  0% {
    transform: translateX(-20px);
  }
  100% {
    transform: translateX(40px);
  }
}

/* ==========================================================================
   CHOOSE YOUR WORKFLOW PATHWAY
   ========================================================================== */
.pathway-section {
  padding: 40px 0 80px;
}

.pathway-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(280px, 1fr));
  gap: 24px;
  margin-top: 30px;
}

.pathway-card {
  position: relative;
  background: var(--bg-card);
  border: 1px solid var(--border-subtle);
  border-radius: var(--radius-xl);
  padding: 30px 24px;
  display: flex;
  flex-direction: column;
  backdrop-filter: blur(20px);
  overflow: hidden;
  transition: all 0.3s cubic-bezier(0.16, 1, 0.3, 1);
}

.pathway-card:hover {
  transform: translateY(-4px);
  box-shadow: 0 20px 40px -15px rgba(0, 0, 0, 0.8);
}

.pathway-card.card-cyan:hover {
  border-color: var(--cyan);
  box-shadow: 0 0 30px -5px var(--cyan-glow);
}

.pathway-card.card-violet:hover {
  border-color: var(--violet-bright);
  box-shadow: 0 0 30px -5px var(--violet-glow);
}

.pathway-card.card-amber:hover {
  border-color: var(--amber);
  box-shadow: 0 0 30px -5px var(--amber-glow);
}

.pathway-card-badge {
  font-size: 10px;
  font-weight: 800;
  letter-spacing: 0.12em;
  margin-bottom: 20px;
  color: #94a3b8;
}

.card-cyan .pathway-card-badge {
  color: var(--cyan);
}
.card-violet .pathway-card-badge {
  color: var(--violet-bright);
}
.card-amber .pathway-card-badge {
  color: var(--amber);
}

.pathway-header {
  display: flex;
  align-items: center;
  gap: 14px;
  margin-bottom: 16px;
}

.pathway-icon-box {
  width: 48px;
  height: 48px;
  border-radius: 12px;
  display: flex;
  align-items: center;
  justify-content: center;
  flex-shrink: 0;
}

.pathway-icon-box.cyan {
  background: var(--cyan-subtle);
  color: var(--cyan);
  border: 1px solid rgba(0, 242, 254, 0.3);
}
.pathway-icon-box.violet {
  background: var(--violet-subtle);
  color: var(--violet-bright);
  border: 1px solid rgba(138, 43, 226, 0.3);
}
.pathway-icon-box.amber {
  background: var(--amber-subtle);
  color: var(--amber);
  border: 1px solid rgba(245, 158, 11, 0.3);
}

.pathway-title {
  font-size: 19px;
  font-weight: 800;
  color: #fff;
  line-height: 1.2;
}

.pathway-role {
  font-size: 12px;
  color: #64748b;
  margin-top: 2px;
}

.pathway-desc {
  font-size: 13px;
  color: #94a3b8;
  line-height: 1.6;
  margin-bottom: 24px;
}

.pathway-steps {
  display: flex;
  flex-direction: column;
  gap: 12px;
  margin-bottom: 28px;
  flex: 1;
}

.p-step {
  display: flex;
  align-items: flex-start;
  gap: 10px;
  font-size: 12px;
  color: #cbd5e1;
  line-height: 1.5;
}

.p-num {
  font-family: var(--font-mono);
  font-size: 11px;
  font-weight: 700;
  color: #64748b;
  background: rgba(255, 255, 255, 0.04);
  padding: 2px 6px;
  border-radius: 4px;
  border: 1px solid var(--border-subtle);
}

.p-step code {
  font-family: var(--font-mono);
  background: rgba(255, 255, 255, 0.06);
  padding: 1px 5px;
  border-radius: 4px;
  color: var(--cyan);
}

.pathway-footer {
  margin-top: auto;
}

.btn-pathway {
  display: block;
  width: 100%;
  padding: 12px 18px;
  text-align: center;
  font-size: 13px;
  font-weight: 700;
  border-radius: var(--radius-md);
  text-decoration: none;
  transition: all 0.2s ease;
}

.btn-pathway.cyan {
  background: rgba(0, 242, 254, 0.1);
  border: 1px solid rgba(0, 242, 254, 0.3);
  color: #38bdf8;
}
.btn-pathway.cyan:hover {
  background: var(--cyan);
  color: #000;
  box-shadow: 0 0 20px rgba(0, 242, 254, 0.4);
}

.btn-pathway.violet {
  background: rgba(138, 43, 226, 0.15);
  border: 1px solid rgba(138, 43, 226, 0.4);
  color: #c084fc;
}
.btn-pathway.violet:hover {
  background: var(--violet-bright);
  color: #fff;
  box-shadow: 0 0 20px rgba(138, 43, 226, 0.4);
}

.btn-pathway.amber {
  background: rgba(245, 158, 11, 0.15);
  border: 1px solid rgba(245, 158, 11, 0.4);
  color: #fbbf24;
}
.btn-pathway.amber:hover {
  background: var(--amber);
  color: #000;
  box-shadow: 0 0 20px rgba(245, 158, 11, 0.4);
}

/* ==========================================================================
   AUTERIX STUDIO: AI AGENT MISSION CONTROL COCKPIT
   ========================================================================== */
.studio-section {
  padding: 40px 0 80px;
}

.studio-window {
  background: var(--bg-pane);
  border: 1px solid var(--border-subtle);
  border-radius: 20px;
  box-shadow: var(--shadow-cockpit);
  backdrop-filter: blur(24px) saturate(180%);
  -webkit-backdrop-filter: blur(24px) saturate(180%);
  overflow: hidden;
  margin-top: 30px;
}

.studio-window-titlebar {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 4px;
  flex-wrap: wrap;
  padding: 14px 20px;
  background: rgba(15, 23, 42, 0.7);
  border-bottom: 1px solid var(--border-subtle);
}

.window-controls {
  display: flex;
  align-items: center;
  gap: 8px;
}

.dot {
  width: 11px;
  height: 11px;
  border-radius: 50%;
}
.dot.red {
  background: #ef4444;
}
.dot.yellow {
  background: #eab308;
}
.dot.green {
  background: #22c55e;
}

.window-title-text {
  margin-left: 12px;
  font-family: var(--font-mono);
  font-size: 12px;
  color: #94a3b8;
}

.window-center-mode {
  display: flex;
  align-items: center;
  gap: 8px;
  padding: 5px 14px;
  background: rgba(0, 0, 0, 0.4);
  border: 1px solid var(--border-subtle);
  border-radius: 999px;
  font-size: 12px;
  color: #cbd5e1;
}

.window-actions {
  margin-inline-start: auto;
}

.radar-dot {
  width: 8px;
  height: 8px;
  border-radius: 50%;
}
.radar-dot.free {
  background: var(--cyan);
  box-shadow: 0 0 8px var(--cyan);
  animation: pulse-dot 2s infinite ease-in-out;
}
.radar-dot.pro {
  background: #f59e0b;
  box-shadow: 0 0 8px #f59e0b;
}

.btn-unlock-pro {
  display: inline-flex;
  align-items: center;
  gap: 6px;
  padding: 6px 14px;
  background: rgba(0, 242, 254, 0.08);
  border: 1px solid rgba(0, 242, 254, 0.35);
  color: #38bdf8;
  font-size: 12px;
  font-weight: 600;
  border-radius: 8px;
  cursor: pointer;
  transition: all 0.2s ease;
}

.btn-unlock-pro:hover {
  background: rgba(0, 242, 254, 0.18);
  border-color: var(--cyan);
  transform: translateY(-1px);
}

/* Studio 2-Column Split */
.studio-body-grid {
  display: grid;
  grid-template-columns: minmax(0, 4fr) minmax(0, 6fr);
  min-height: 740px;
  width: 100%;
  overflow: hidden;
}

@media (max-width: 1150px) {
  .studio-body-grid {
    grid-template-columns: 1fr;
  }
}

.studio-controls-pane {
  padding: 24px;
  border-right: 1px solid var(--border-subtle);
  display: flex;
  flex-direction: column;
  gap: 20px;
  min-width: 0;
  background: rgba(10, 15, 26, 0.4);
}

@media (max-width: 1150px) {
  .studio-controls-pane {
    border-right: none;
    border-bottom: 1px solid var(--border-subtle);
  }
}

.pane-step-block {
  background: rgba(15, 23, 42, 0.4);
  border: 1px solid rgba(255, 255, 255, 0.05);
  border-radius: var(--radius-lg);
  padding: 20px;
}

.step-header {
  display: flex;
  align-items: center;
  gap: 10px;
  margin-bottom: 6px;
}

.step-badge {
  font-family: var(--font-mono);
  flex-shrink: 0;
  font-size: 10px;
  font-weight: 800;
  padding: 2px 8px;
  background: rgba(0, 242, 254, 0.1);
  color: var(--cyan);
  border: 1px solid rgba(0, 242, 254, 0.3);
  border-radius: 4px;
}

.step-header h3 {
  font-size: 15px;
  font-weight: 700;
  color: #fff;
}

.step-desc {
  font-size: 12px;
  color: #94a3b8;
  margin-bottom: 14px;
}

/* Auto-Detector Scanner Box */
.auto-detector-wrapper {
  position: relative;
  background: rgba(8, 12, 20, 0.7);
  border: 1px solid var(--border-subtle);
  border-radius: var(--radius-md);
  padding: 16px;
  overflow: hidden;
}

.scanner-scanline {
  position: absolute;
  top: 0;
  left: 0;
  right: 0;
  height: 2px;
  background: linear-gradient(90deg, transparent, var(--cyan), transparent);
  opacity: 0.4;
  animation: scanline 3s infinite ease-in-out;
}

@keyframes scanline {
  0% {
    top: 0%;
    opacity: 0;
  }
  20% {
    opacity: 0.6;
  }
  80% {
    opacity: 0.6;
  }
  100% {
    top: 100%;
    opacity: 0;
  }
}

/* Step 1 Segmented Navigation & Presets */
.detector-segmented-nav {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 4px;
  background: rgba(0, 0, 0, 0.45);
  padding: 4px;
  border-radius: var(--radius-sm);
  border: 1px solid var(--border-subtle);
  margin-bottom: 12px;
}

.seg-tab-btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 6px;
  padding: 7px 12px;
  background: transparent;
  border: 1px solid transparent;
  color: #94a3b8;
  font-size: 11.5px;
  font-weight: 600;
  border-radius: 5px;
  cursor: pointer;
  transition: all 0.2s ease;
  user-select: none;
}

.seg-tab-btn:hover {
  color: #f1f5f9;
  background: rgba(255, 255, 255, 0.04);
}

.seg-tab-btn.active {
  background: rgba(0, 242, 254, 0.12);
  color: #38bdf8;
  border-color: rgba(0, 242, 254, 0.35);
  box-shadow: 0 0 10px rgba(0, 242, 254, 0.12);
  font-weight: 700;
}

.drop-zone {
  border: 2px dashed rgba(255, 255, 255, 0.12);
  border-radius: var(--radius-md);
  padding: 20px 14px;
  text-align: center;
  cursor: pointer;
  transition: all 0.2s ease;
  background: rgba(0, 0, 0, 0.2);
}

.drop-zone:hover,
.drop-zone.dragover {
  border-color: var(--cyan);
  background: rgba(0, 242, 254, 0.05);
  box-shadow: 0 0 20px rgba(0, 242, 254, 0.15);
}

.drop-icon-pulse {
  margin-bottom: 8px;
}

.drop-label-main {
  font-size: 12.5px;
  font-weight: 600;
  color: #f1f5f9;
}

.drop-label-main code {
  font-family: var(--font-mono);
  color: var(--cyan);
}

.drop-label-sub {
  font-size: 11px;
  color: #64748b;
  margin-top: 4px;
}

.paste-zone {
  display: flex;
  flex-direction: column;
  gap: 8px;
}

.paste-zone textarea {
  width: 100%;
  background: rgba(0, 0, 0, 0.4);
  border: 1px solid var(--border-subtle);
  border-radius: var(--radius-sm);
  color: #f1f5f9;
  font-family: var(--font-mono);
  font-size: 12px;
  padding: 10px;
  resize: vertical;
}

.paste-zone textarea:focus {
  outline: none;
  border-color: var(--cyan);
}

.btn-detect-now {
  padding: 8px 14px;
  background: rgba(0, 242, 254, 0.15);
  border: 1px solid rgba(0, 242, 254, 0.4);
  color: #38bdf8;
  font-size: 12px;
  font-weight: 700;
  border-radius: var(--radius-sm);
  cursor: pointer;
  transition: all 0.2s ease;
}

.btn-detect-now:hover {
  background: var(--cyan);
  color: #000;
}

.detection-status-row {
  display: flex;
  align-items: center;
  gap: 8px;
  padding: 7px 10px;
  background: rgba(0, 0, 0, 0.3);
  border: 1px solid var(--border-subtle);
  border-radius: 6px;
  margin: 10px 0 6px 0;
}

.detect-pulse-indicator {
  width: 6px;
  height: 6px;
  border-radius: 50%;
  background: var(--cyan);
  box-shadow: 0 0 6px var(--cyan);
}

.detect-text {
  font-size: 11px;
  color: #cbd5e1;
  font-family: var(--font-mono);
}

.preset-chips-wrap {
  display: flex;
  flex-direction: column;
  gap: 6px;
  margin-bottom: 10px;
}

.preset-chips-list {
  display: flex;
  align-items: center;
  gap: 6px;
  flex-wrap: wrap;
}

.preset-label {
  font-size: 11px;
  color: #64748b;
  margin-right: 4px;
}

.stack-chip {
  padding: 6px 11px;
  background: rgba(255, 255, 255, 0.04);
  border: 1px solid var(--border-subtle);
  border-radius: 6px;
  color: #cbd5e1;
  font-size: 11.5px;
  font-weight: 600;
  cursor: pointer;
  transition: all 0.15s ease;
  display: inline-flex;
  align-items: center;
  gap: 4px;
}

.stack-chip:hover {
  background: rgba(255, 255, 255, 0.08);
  border-color: rgba(255, 255, 255, 0.2);
  color: #fff;
}

.stack-chip.active {
  background: rgba(0, 242, 254, 0.12);
  border-color: rgba(0, 242, 254, 0.45);
  color: #38bdf8;
  box-shadow: 0 0 10px rgba(0, 242, 254, 0.12);
}

/* Progressive Disclosure Drawer Toggle Button */
.drawer-toggle-btn {
  width: 100%;
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 8px;
  padding: 8px 12px;
  background: rgba(0, 0, 0, 0.35);
  border: 1px dashed rgba(255, 255, 255, 0.15);
  border-radius: 6px;
  color: #94a3b8;
  font-size: 11.5px;
  cursor: pointer;
  transition: all 0.2s ease;
  user-select: none;
}

.drawer-toggle-btn:hover {
  border-color: rgba(0, 242, 254, 0.4);
  color: #e2e8f0;
  background: rgba(0, 242, 254, 0.03);
}

.drawer-toggle-btn .drawer-icon {
  font-size: 13px;
  flex-shrink: 0;
}

.drawer-toggle-btn .drawer-text {
  flex: 1;
  text-align: left;
  font-weight: 500;
}

.drawer-toggle-btn .drawer-arrow {
  font-size: 11px;
  color: #64748b;
  transition: transform 0.25s ease;
}

.drawer-toggle-btn.is-open .drawer-arrow {
  transform: rotate(180deg);
}

.drawer-toggle-btn.is-open {
  border-style: solid;
  border-color: rgba(0, 242, 254, 0.3);
  color: var(--cyan);
}

/* Manifest Drawer Collapsible */
.manifest-drawer {
  transition: max-height 0.3s ease, opacity 0.25s ease, margin 0.25s ease, padding 0.25s ease;
}

.manifest-drawer.collapsed {
  max-height: 0 !important;
  opacity: 0 !important;
  padding-top: 0 !important;
  padding-bottom: 0 !important;
  margin-top: 0 !important;
  border: none !important;
  overflow: hidden !important;
  pointer-events: none;
}

.manifest-drawer:not(.collapsed) {
  max-height: 380px;
  opacity: 1;
  margin-top: 10px;
}

/* Step 2 Multi-Agent Matrix Redesign */
.step-header-row {
  display: flex;
  align-items: center;
  justify-content: space-between;
  margin-bottom: 8px;
  gap: 8px;
  flex-wrap: wrap;
}

.adapter-counter-pill {
  font-size: 10px;
  font-weight: 800;
  font-family: var(--font-mono);
  padding: 2px 7px;
  border-radius: 999px;
  background: rgba(0, 242, 254, 0.12);
  color: var(--cyan);
  border: 1px solid rgba(0, 242, 254, 0.25);
  margin-left: 6px;
}

/* Popular Tools Quick-Toggle Pills (Step 2) */
.popular-tools-row {
  display: grid;
  grid-template-columns: repeat(2, 1fr);
  gap: 6px;
  margin-bottom: 8px;
}

.tool-quick-pill {
  display: flex;
  align-items: center;
  gap: 7px;
  padding: 8px 10px;
  background: rgba(255, 255, 255, 0.03);
  border: 1px solid var(--border-subtle);
  border-radius: 6px;
  color: #94a3b8;
  font-size: 11.5px;
  font-weight: 600;
  cursor: pointer;
  transition: all 0.15s ease;
  user-select: none;
}

.tool-quick-pill:hover {
  background: rgba(255, 255, 255, 0.06);
  color: #fff;
  border-color: rgba(255, 255, 255, 0.15);
}

.tool-quick-pill.active {
  background: rgba(0, 242, 254, 0.09);
  border-color: rgba(0, 242, 254, 0.35);
  color: #38bdf8;
}

.tool-quick-check {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  width: 15px;
  height: 15px;
  border-radius: 3px;
  background: rgba(255, 255, 255, 0.08);
  color: #64748b;
  font-size: 10px;
  font-weight: 800;
  transition: all 0.15s ease;
}

.tool-quick-pill.active .tool-quick-check {
  background: var(--cyan);
  color: #000;
}

.tool-quick-name {
  flex: 1;
  text-align: left;
}

/* Adapters Drawer Collapsible */
.adapters-drawer {
  transition: max-height 0.3s ease, opacity 0.25s ease, margin 0.25s ease;
}

.adapters-drawer.collapsed {
  max-height: 0 !important;
  opacity: 0 !important;
  margin-top: 0 !important;
  overflow: hidden !important;
  pointer-events: none;
}

.adapters-drawer:not(.collapsed) {
  max-height: 380px;
  opacity: 1;
  margin-top: 10px;
}

.adapters-drawer-header {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 8px;
  margin-bottom: 8px;
}

.adapters-drawer-header .filter-search-box {
  flex: 1;
}

.adapter-quick-actions {
  display: flex;
  align-items: center;
  gap: 4px;
  flex-shrink: 0;
}

.btn-quick-filter {
  padding: 3px 8px;
  background: rgba(255, 255, 255, 0.05);
  border: 1px solid var(--border-subtle);
  border-radius: 4px;
  color: #94a3b8;
  font-size: 10.5px;
  font-weight: 600;
  cursor: pointer;
  transition: all 0.15s ease;
}

.btn-quick-filter:hover {
  background: rgba(0, 242, 254, 0.15);
  border-color: rgba(0, 242, 254, 0.3);
  color: #ffffff;
}

.adapters-filter-bar {
  margin-bottom: 10px;
}

.filter-search-box {
  position: relative;
  display: flex;
  align-items: center;
}

.filter-search-box .search-icon {
  position: absolute;
  left: 9px;
  font-size: 11px;
  pointer-events: none;
  opacity: 0.6;
}

.adapter-search-field {
  width: 100%;
  padding: 6px 26px 6px 26px;
  background: rgba(0, 0, 0, 0.35);
  border: 1px solid var(--border-subtle);
  border-radius: 6px;
  color: #f1f5f9;
  font-size: 11.5px;
  font-family: var(--font-sans);
  transition:
    border-color 0.2s ease,
    box-shadow 0.2s ease;
}

.adapter-search-field:focus {
  outline: none;
  border-color: var(--cyan);
  box-shadow: 0 0 10px rgba(0, 242, 254, 0.2);
}

.btn-clear-search {
  position: absolute;
  right: 6px;
  background: transparent;
  border: none;
  color: #94a3b8;
  font-size: 14px;
  cursor: pointer;
  padding: 2px 4px;
}

.btn-clear-search:hover {
  color: #ffffff;
}

/* Bounded High-Density Adapter Matrix (Max Height Capped at 230px) */
.adapters-grid-container {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 6px;
  width: 100%;
  min-width: 0;
  max-height: 230px;
  overflow-y: auto;
  padding-right: 4px;
}

.adapters-grid-container::-webkit-scrollbar {
  width: 4px;
}

.adapters-grid-container::-webkit-scrollbar-track {
  background: rgba(0, 0, 0, 0.2);
  border-radius: 4px;
}

.adapters-grid-container::-webkit-scrollbar-thumb {
  background: rgba(0, 242, 254, 0.3);
  border-radius: 4px;
}

.adapters-grid-container::-webkit-scrollbar-thumb:hover {
  background: var(--cyan);
}

.adapter-item {
  display: flex;
  align-items: center;
  gap: 8px;
  padding: 7px 10px;
  background: rgba(12, 18, 30, 0.7);
  border: 1px solid var(--border-subtle);
  border-radius: var(--radius-sm);
  cursor: pointer;
  transition: all 0.15s cubic-bezier(0.16, 1, 0.3, 1);
  min-width: 0;
  user-select: none;
}

.adapter-item:hover {
  border-color: rgba(0, 242, 254, 0.3);
  background: rgba(16, 24, 40, 0.85);
  transform: translateY(-1px);
}

.adapter-item.active {
  background: rgba(0, 242, 254, 0.09);
  border-color: rgba(0, 242, 254, 0.45);
  box-shadow: 0 0 10px rgba(0, 242, 254, 0.12);
}

.adapter-checkbox {
  accent-color: var(--cyan);
  width: 13px;
  height: 13px;
  cursor: pointer;
  flex-shrink: 0;
}

.adapter-info {
  display: flex;
  flex-direction: column;
  min-width: 0;
  overflow: hidden;
  gap: 1px;
}

.adapter-name {
  font-size: 11.5px;
  font-weight: 700;
  color: #f1f5f9;
  white-space: nowrap;
  overflow: hidden;
  text-overflow: ellipsis;
  line-height: 1.2;
}

.adapter-item.active .adapter-name {
  color: var(--cyan);
}

.adapter-file {
  font-family: var(--font-mono);
  font-size: 9.5px;
  color: #64748b;
  white-space: nowrap;
  overflow: hidden;
  text-overflow: ellipsis;
  line-height: 1.2;
}

.adapter-empty-notice {
  grid-column: 1 / -1;
  padding: 16px;
  text-align: center;
  color: #64748b;
  font-size: 11.5px;
}

/* Guardrails Box (Step 3 Progressive Disclosure) */
.guard-active-pill {
  font-size: 10px;
  font-weight: 800;
  font-family: var(--font-mono);
  padding: 2px 7px;
  border-radius: 999px;
  background: rgba(16, 185, 129, 0.12);
  color: #10b981;
  border: 1px solid rgba(16, 185, 129, 0.3);
}

.guardrails-accordion-toggle {
  width: 100%;
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 8px;
  padding: 9px 12px;
  background: rgba(8, 12, 20, 0.6);
  border: 1px solid var(--border-subtle);
  border-radius: var(--radius-md);
  color: #cbd5e1;
  font-size: 11.5px;
  cursor: pointer;
  transition: all 0.2s ease;
  user-select: none;
}

.guardrails-accordion-toggle:hover {
  border-color: rgba(255, 255, 255, 0.18);
  background: rgba(8, 12, 20, 0.85);
}

.guard-toggle-left {
  display: flex;
  align-items: center;
  gap: 8px;
  overflow: hidden;
}

.guard-summary-icons {
  font-size: 12px;
  flex-shrink: 0;
}

.guard-summary-text {
  font-size: 11px;
  color: #94a3b8;
  white-space: nowrap;
  overflow: hidden;
  text-overflow: ellipsis;
}

.guardrails-accordion-toggle .drawer-arrow {
  font-size: 11px;
  color: #64748b;
  transition: transform 0.25s ease;
  flex-shrink: 0;
}

.guardrails-accordion-toggle.is-open .drawer-arrow {
  transform: rotate(180deg);
}

.guardrails-box {
  display: flex;
  flex-direction: column;
  gap: 8px;
  transition: max-height 0.3s ease, opacity 0.25s ease, margin 0.25s ease;
}

.guardrails-box.collapsed {
  max-height: 0 !important;
  opacity: 0 !important;
  margin-top: 0 !important;
  overflow: hidden !important;
  pointer-events: none;
}

.guardrails-box:not(.collapsed) {
  max-height: 320px;
  opacity: 1;
  margin-top: 8px;
}

.guard-toggle-label {
  display: flex;
  align-items: flex-start;
  gap: 10px;
  padding: 10px 14px;
  background: rgba(8, 12, 20, 0.6);
  border: 1px solid var(--border-subtle);
  border-radius: var(--radius-md);
  cursor: pointer;
  transition: all 0.2s ease;
}

.guard-toggle-label:hover {
  border-color: rgba(255, 255, 255, 0.15);
}

.guard-toggle-label input {
  accent-color: var(--cyan);
  margin-top: 3px;
}

.guard-info {
  display: flex;
  flex-direction: column;
}

.guard-info strong {
  font-size: 12px;
  color: #f1f5f9;
}

.guard-info small {
  font-size: 11px;
  color: #64748b;
  margin-top: 2px;
}

/* RIGHT COLUMN: Live IDE Terminal & Action Dock */
.studio-preview-pane {
  display: flex;
  flex-direction: column;
  background: rgba(6, 10, 16, 0.95);
  padding: 26px 24px;
  min-width: 0;
  overflow: hidden;
  width: 100%;
}

.preview-mode-switch {
  display: flex;
  flex-wrap: wrap;
  gap: 8px;
  margin-bottom: 14px;
}

.mode-tab-btn {
  flex: 1;
  flex-shrink: 0;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 8px;
  padding: 9px 14px;
  background: rgba(15, 23, 42, 0.6);
  border: 1px solid var(--border-subtle);
  border-radius: var(--radius-sm);
  color: #94a3b8;
  font-size: 12px;
  font-weight: 600;
  cursor: pointer;
  transition: all 0.2s ease;
}

.mode-tab-btn.active {
  background: rgba(0, 242, 254, 0.12);
  border-color: rgba(0, 242, 254, 0.4);
  color: #38bdf8;
}

.preview-header {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 12px;
  border-bottom: 1px solid var(--border-subtle);
  margin-bottom: 14px;
  padding-bottom: 8px;
  min-width: 0;
}

.tabs-scroll {
  display: flex;
  align-items: center;
  gap: 4px;
  overflow-x: auto;
  min-width: 0;
  flex: 1;
  scrollbar-width: thin;
  scrollbar-color: rgba(255, 255, 255, 0.1) transparent;
}

.tab-btn {
  padding: 6px 12px;
  background: transparent;
  border: none;
  border-bottom: 2px solid transparent;
  color: #64748b;
  font-family: var(--font-mono);
  font-size: 11px;
  cursor: pointer;
  white-space: nowrap;
  transition: all 0.2s ease;
}

.tab-btn:hover {
  color: #cbd5e1;
}

.tab-btn.active {
  color: var(--cyan);
  border-bottom-color: var(--cyan);
}

.btn-copy-tab {
  display: inline-flex;
  align-items: center;
  gap: 4px;
  padding: 4px 10px;
  background: rgba(255, 255, 255, 0.05);
  border: 1px solid var(--border-subtle);
  border-radius: 6px;
  color: #94a3b8;
  font-size: 11px;
  cursor: pointer;
  transition: all 0.2s ease;
}

.btn-copy-tab:hover {
  color: #fff;
  background: rgba(255, 255, 255, 0.1);
}

/* Pro Stack Alert Banner */
.pro-stack-alert {
  display: none;
  align-items: center;
  justify-content: space-between;
  flex-wrap: wrap;
  gap: 4px;
  padding: 8px 12px;
  background: rgba(245, 158, 11, 0.1);
  border: 1px solid rgba(245, 158, 11, 0.3);
  border-radius: 8px;
  margin-bottom: 12px;
}

.pro-stack-alert.visible {
  display: flex;
}

.pro-stack-alert-text {
  display: flex;
  align-items: center;
  gap: 8px;
  font-size: 12px;
  color: #fcd34d;
}

.pro-pill {
  padding: 2px 6px;
  background: var(--amber);
  color: #000;
  font-weight: 800;
  font-size: 9px;
  border-radius: 4px;
}

.pro-stack-cta-btn {
  font-size: 11px;
  font-weight: 700;
  color: var(--amber);
  text-decoration: none;
}

/* Code Container (Terminal View) */
.code-container {
  position: relative;
  background: #04070d;
  border: 1px solid var(--border-subtle);
  border-radius: var(--radius-md);
  flex: 1;
  display: flex;
  flex-direction: column;
  min-height: 420px;
  min-width: 0;
  overflow: hidden;
  box-shadow: inset 0 2px 8px rgba(0, 0, 0, 0.6);
}

.file-destination-badge {
  padding: 9px 16px;
  background: rgba(15, 23, 42, 0.85);
  border-bottom: 1px solid var(--border-subtle);
  font-family: var(--font-mono);
  font-size: 11px;
  color: #64748b;
  display: flex;
  align-items: center;
  gap: 8px;
  min-width: 0;
  overflow: hidden;
  white-space: nowrap;
}

.file-destination-badge code {
  color: var(--cyan);
  overflow: hidden;
  text-overflow: ellipsis;
  white-space: nowrap;
}

.code-block {
  padding: 18px 20px;
  margin: 0;
  overflow: auto;
  flex: 1;
  font-family: var(--font-mono);
  font-size: 12px;
  line-height: 1.65;
  color: #e2e8f0;
  max-width: 100%;
  scrollbar-width: thin;
  scrollbar-color: rgba(0, 242, 254, 0.25) rgba(0, 0, 0, 0.3);
}

.code-block code {
  font-family: inherit;
  display: block;
  min-width: max-content;
}

/* Pro Locked Overlay */
.pro-locked-overlay {
  position: absolute;
  inset: 0;
  background: rgba(8, 12, 20, 0.95);
  backdrop-filter: blur(16px);
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  padding: 30px;
  text-align: center;
  z-index: 10;
}

.pro-locked-overlay.hidden {
  display: none !important;
}

.lock-shield-icon {
  margin-bottom: 14px;
}

.lock-headline {
  font-size: 18px;
  font-weight: 800;
  color: #fff;
  margin-bottom: 8px;
}

.lock-subtext {
  font-size: 13px;
  color: #94a3b8;
  max-width: 420px;
  margin-bottom: 20px;
  line-height: 1.5;
}

.lock-cta-btn {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  padding: 12px 24px;
  background: linear-gradient(135deg, var(--cyan) 0%, #0284c7 100%);
  color: #000;
  font-size: 13px;
  font-weight: 700;
  border-radius: var(--radius-md);
  text-decoration: none;
  margin-bottom: 14px;
  box-shadow: 0 0 20px rgba(0, 242, 254, 0.35);
}

.lock-have-zip-btn {
  background: transparent;
  border: none;
  color: #38bdf8;
  font-size: 12px;
  cursor: pointer;
  text-decoration: underline;
}

/* Action Dock */
.studio-action-dock {
  margin-top: 16px;
  display: flex;
  flex-direction: column;
  gap: 12px;
}

.dock-buttons {
  display: grid;
  grid-template-columns: 1.35fr 1fr;
  gap: 10px;
}

@media (max-width: 680px) {
  .dock-buttons {
    grid-template-columns: 1fr;
  }
}

.btn-download-primary {
  width: 100%;
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  padding: 12px 18px;
  background: linear-gradient(135deg, var(--indigo) 0%, #4338ca 100%);
  border: 1px solid rgba(255, 255, 255, 0.15);
  border-radius: var(--radius-md);
  color: #fff;
  font-size: 13.5px;
  font-weight: 800;
  cursor: pointer;
  transition: all 0.2s ease;
}

.btn-sub {
  font-size: 10px;
  font-weight: 600;
  color: #a5b4fc;
  letter-spacing: 0.05em;
  margin-top: 2px;
}

/* CLI Quick Copy Box */
.cli-quick-copy {
  display: flex;
  flex-direction: column;
  justify-content: center;
  padding: 10px 14px;
  background: rgba(0, 0, 0, 0.45);
  border: 1px solid var(--border-subtle);
  border-radius: var(--radius-md);
  cursor: pointer;
  transition: all 0.2s ease;
  user-select: none;
}

.cli-quick-copy:hover {
  border-color: rgba(0, 242, 254, 0.4);
  background: rgba(0, 242, 254, 0.04);
}

.cli-header-row {
  display: flex;
  align-items: center;
  justify-content: space-between;
  margin-bottom: 4px;
}

.cli-label {
  font-size: 9px;
  font-weight: 800;
  letter-spacing: 0.08em;
  color: #64748b;
  font-family: var(--font-mono);
}

.cli-copied-badge {
  font-size: 10px;
  font-weight: 700;
  color: #10b981;
}

.cli-code-row {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 8px;
}

.cli-code-text {
  font-family: var(--font-mono);
  font-size: 12px;
  font-weight: 600;
  color: var(--cyan);
}

.btn-copy-cli-icon {
  background: transparent;
  border: none;
  color: #94a3b8;
  display: inline-flex;
  align-items: center;
  cursor: pointer;
  padding: 2px;
  transition: color 0.15s ease;
}

.cli-quick-copy:hover .btn-copy-cli-icon {
  color: #fff;
}

.post-download-guide {
  background: rgba(15, 23, 42, 0.4);
  border: 1px solid var(--border-subtle);
  border-radius: var(--radius-sm);
  padding: 10px 14px;
  font-size: 11px;
}

.guide-title {
  font-weight: 700;
  color: #cbd5e1;
  margin-bottom: 4px;
}

.guide-steps {
  padding-left: 18px;
  color: #94a3b8;
  line-height: 1.5;
}

.guide-steps strong {
  color: #e2e8f0;
}

.hash-security-footer {
  display: flex;
  align-items: center;
  justify-content: space-between;
  padding: 8px 12px;
  background: rgba(0, 0, 0, 0.4);
  border: 1px solid var(--border-subtle);
  border-radius: 6px;
  font-family: var(--font-mono);
  font-size: 10px;
  color: #64748b;
}

.hash-status {
  display: flex;
  align-items: center;
  gap: 6px;
  color: #10b981;
}

.status-indicator-pulse {
  width: 6px;
  height: 6px;
  border-radius: 50%;
  background: #10b981;
  box-shadow: 0 0 6px #10b981;
}

/* ==========================================================================
   DUAL-REPOSITORY ARCHITECTURE SECTION
   ========================================================================== */
.architecture-section {
  padding: 60px 0;
}

.repo-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(280px, 1fr));
  gap: 24px;
  margin-top: 30px;
}

.repo-card {
  background: var(--bg-card);
  border: 1px solid var(--border-subtle);
  border-radius: var(--radius-xl);
  padding: 30px 26px;
  display: flex;
  flex-direction: column;
  backdrop-filter: blur(20px);
}

.repo-badge-pill {
  display: inline-block;
  align-self: flex-start;
  padding: 4px 12px;
  background: rgba(255, 255, 255, 0.05);
  border: 1px solid var(--border-subtle);
  border-radius: 999px;
  font-size: 11px;
  font-weight: 700;
  color: #94a3b8;
  margin-bottom: 20px;
}

.repo-badge-pill.pro-gradient {
  background: rgba(245, 158, 11, 0.12);
  border-color: rgba(245, 158, 11, 0.35);
  color: var(--amber);
}

.repo-header {
  display: flex;
  align-items: center;
  gap: 14px;
  margin-bottom: 16px;
}

.repo-symbol {
  font-size: 28px;
}

.repo-name {
  font-size: 20px;
  font-weight: 800;
  color: #fff;
}

.repo-slug {
  font-family: var(--font-mono);
  font-size: 11px;
  color: #64748b;
}

.repo-summary {
  font-size: 13px;
  color: #94a3b8;
  line-height: 1.6;
  margin-bottom: 20px;
}

.repo-features {
  list-style: none;
  display: flex;
  flex-direction: column;
  gap: 10px;
  margin-bottom: 28px;
  flex: 1;
}

.repo-features li {
  /* display: flex; */
  /* align-items: flex-start; */
  /* gap: 8px; */
  font-size: 12px;
  color: #cbd5e1;
  line-height: 1.5;
}

.repo-features li span {
  color: var(--cyan);
  font-weight: 700;
}

.repo-action-wrap {
  margin-top: auto;
}

.btn-repo {
  display: block;
  width: 100%;
  padding: 12px 18px;
  text-align: center;
  font-size: 13px;
  font-weight: 700;
  border-radius: var(--radius-md);
  text-decoration: none;
  transition: all 0.2s ease;
}

.btn-repo.public {
  background: rgba(255, 255, 255, 0.05);
  border: 1px solid var(--border-subtle);
  color: #fff;
}
.btn-repo.public:hover {
  background: rgba(255, 255, 255, 0.12);
}

.btn-repo.private {
  background: linear-gradient(135deg, var(--indigo) 0%, #4338ca 100%);
  border: 1px solid rgba(255, 255, 255, 0.15);
  color: #fff;
}
.btn-repo.private:hover {
  box-shadow: 0 0 20px rgba(99, 102, 241, 0.4);
  transform: translateY(-1px);
}

/* ==========================================================================
   CODE COMPARISON SHOWCASE (DUAL TERMINAL WINDOWS)
   ========================================================================== */
.comparison-showcase {
  background: var(--bg-card);
  border: 1px solid var(--border-subtle);
  border-radius: var(--radius-xl);
  padding: 36px 28px;
  margin-top: 50px;
  backdrop-filter: blur(20px);
}

.showcase-title {
  font-size: 24px;
  font-weight: 800;
  color: #fff;
  margin-bottom: 8px;
}

.showcase-subtitle {
  font-size: 14px;
  color: #94a3b8;
  margin-bottom: 24px;
}

.diff-scenario-nav {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  justify-content: center;
  gap: 10px;
  margin-bottom: 24px;
}

.diff-scenario-tab {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  padding: 8px 16px;
  font-size: 13px;
  font-weight: 600;
  color: #94a3b8;
  background: rgba(15, 23, 42, 0.7);
  border: 1px solid var(--border-subtle);
  border-radius: 9999px;
  cursor: pointer;
  transition:
    color 0.2s ease,
    background-color 0.2s ease,
    border-color 0.2s ease,
    box-shadow 0.2s ease;
  user-select: none;
}

.diff-scenario-tab:hover {
  color: #f8fafc;
  background: rgba(30, 41, 59, 0.8);
  border-color: rgba(6, 182, 212, 0.4);
}

.diff-scenario-tab.active {
  color: #ffffff;
  background: rgba(6, 182, 212, 0.12);
  border-color: #06b6d4;
  box-shadow:
    0 0 16px rgba(6, 182, 212, 0.25),
    inset 0 0 8px rgba(6, 182, 212, 0.1);
}

.diff-scenario-tab .tab-indicator {
  font-size: 10px;
  color: #64748b;
  flex-shrink: 0;
  transition: color 0.2s ease;
}

.diff-scenario-tab.active .tab-indicator {
  color: #22d3ee;
}

.diff-scenario-tab:focus-visible {
  outline: 2px solid #22d3ee;
  outline-offset: 2px;
}

.diff-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(280px, 1fr));
  gap: 20px;
}

.diff-box {
  background: #070a12;
  border-radius: var(--radius-md);
  overflow: hidden;
  border: 1px solid var(--border-subtle);
}

.diff-box.bad {
  border-color: rgba(239, 68, 68, 0.3);
}

.diff-box.good {
  border-color: rgba(16, 185, 129, 0.3);
}

.diff-title-bar {
  display: flex;
  align-items: center;
  justify-content: space-between;
  padding: 10px 14px;
  background: rgba(15, 23, 42, 0.6);
  border-bottom: 1px solid var(--border-subtle);
}

.mini-dots {
  display: flex;
  gap: 5px;
}

.mini-dot {
  width: 8px;
  height: 8px;
  border-radius: 50%;
}
.mini-dot.red {
  background: #ef4444;
}
.mini-dot.yellow {
  background: #eab308;
}
.mini-dot.green {
  background: #22c55e;
}

.diff-badge {
  font-size: 11px;
  font-weight: 700;
}
.diff-badge.bad {
  color: #f87171;
}
.diff-badge.good {
  color: #34d399;
}

.diff-sub {
  font-size: 10px;
  color: #64748b;
}

.diff-code {
  padding: 16px;
  font-family: var(--font-mono);
  font-size: 11px;
  line-height: 1.6;
  color: #cbd5e1;
  overflow-x: auto;
}

/* ==========================================================================
   INTERACTIVE GUIDE & STARTER PROMPTS
   ========================================================================== */
.interactive-guide-section {
  padding: 60px 0;
}

.guide-tool-tabs {
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 10px;
  flex-wrap: wrap;
  margin-bottom: 24px;
}

.guide-tab-btn {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  padding: 10px 18px;
  background: var(--bg-card);
  border: 1px solid var(--border-subtle);
  border-radius: 999px;
  color: #94a3b8;
  font-size: 13px;
  font-weight: 600;
  cursor: pointer;
  transition: all 0.2s ease;
}

.guide-tab-btn:hover {
  color: #fff;
  border-color: rgba(255, 255, 255, 0.2);
}

.guide-tab-btn.active {
  background: rgba(0, 242, 254, 0.12);
  border-color: rgba(0, 242, 254, 0.4);
  color: #38bdf8;
}

.guide-step-row {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(260px, 1fr));
  gap: 26px;
  row-gap: 28px;
  column-gap: 26px;
  margin-top: 14px;
  margin-bottom: 24px;
}

.guide-step-card {
  background: rgba(12, 18, 30, 0.7);
  border: 1px solid var(--border-subtle);
  border-radius: var(--radius-lg);
  padding: 26px 22px;
  box-shadow: 0 10px 25px -5px rgba(0, 0, 0, 0.5);
  transition: all 0.25s cubic-bezier(0.16, 1, 0.3, 1);
  display: flex;
  flex-direction: column;
}

.guide-step-card:hover {
  border-color: rgba(0, 242, 254, 0.4);
  box-shadow: 0 10px 30px -5px rgba(0, 242, 254, 0.15);
  transform: translateY(-3px);
}

.guide-step-badge {
  font-family: var(--font-mono);
  font-size: 10px;
  font-weight: 800;
  color: var(--cyan);
  margin-bottom: 8px;
}

.guide-step-card h4 {
  font-size: 15px;
  font-weight: 700;
  color: #fff;
  margin-bottom: 6px;
}

.guide-step-card p {
  font-size: 12px;
  color: #94a3b8;
  line-height: 1.5;
}

/* Prompts Library */
.prompts-library-box {
  background: var(--bg-card);
  border: 1px solid var(--border-subtle);
  border-radius: var(--radius-xl);
  padding: 36px 28px;
  backdrop-filter: blur(20px);
}

.prompts-title {
  font-size: 24px;
  font-weight: 800;
  color: #fff;
  margin-bottom: 8px;
}

.prompts-subtitle {
  font-size: 14px;
  color: #94a3b8;
  margin-bottom: 28px;
}

.prompts-grid {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 24px;
  row-gap: 26px;
}

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

.prompt-card {
  background: #080c14;
  border: 1px solid var(--border-subtle);
  border-radius: var(--radius-md);
  overflow: hidden;
}

.prompt-card-header {
  display: flex;
  align-items: center;
  justify-content: space-between;
  padding: 10px 14px;
  background: rgba(15, 23, 42, 0.6);
  border-bottom: 1px solid var(--border-subtle);
}

.prompt-badge {
  font-size: 11px;
  font-weight: 700;
}
.prompt-badge.cyan {
  color: var(--cyan);
}
.prompt-badge.violet {
  color: var(--violet-bright);
}
.prompt-badge.amber {
  color: var(--amber);
}
.prompt-badge.emerald {
  color: var(--emerald);
}

.btn-copy-prompt {
  padding: 4px 10px;
  background: rgba(255, 255, 255, 0.05);
  border: 1px solid var(--border-subtle);
  border-radius: 6px;
  color: #94a3b8;
  font-size: 11px;
  cursor: pointer;
  transition: all 0.2s ease;
}

.btn-copy-prompt:hover {
  background: rgba(255, 255, 255, 0.12);
  color: #fff;
}

.prompt-body {
  padding: 14px;
}

.prompt-body pre {
  margin: 0;
  font-family: var(--font-mono);
  font-size: 11px;
  line-height: 1.5;
  color: #cbd5e1;
  white-space: pre-wrap;
  word-break: break-word;
}

/* ==========================================================================
   PRICING SECTION
   ========================================================================== */
.pro-section {
  padding: 60px 0;
}

.pricing-grid {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 24px;
  margin-top: 32px;
  align-items: stretch;
}

@media (max-width: 960px) {
  .pricing-grid {
    grid-template-columns: 1fr;
    max-width: 480px;
    margin-left: auto;
    margin-right: auto;
  }
}

.pricing-card {
  position: relative;
  background: var(--bg-card);
  border: 1px solid var(--border-subtle);
  border-radius: var(--radius-xl);
  padding: 28px 24px;
  display: flex;
  flex-direction: column;
  backdrop-filter: blur(20px);
  min-height: 520px;
}

.pricing-card.featured {
  border-color: var(--cyan);
  box-shadow: 0 0 35px -10px var(--cyan-glow);
}

.featured-badge {
  position: absolute;
  top: -12px;
  left: 50%;
  transform: translateX(-50%);
  padding: 4px 14px;
  background: linear-gradient(135deg, var(--cyan) 0%, #0284c7 100%);
  color: #000;
  font-size: 10px;
  font-weight: 800;
  letter-spacing: 0.12em;
  border-radius: 999px;
  z-index: 2;
}

.plan-tier-badge {
  display: inline-flex;
  align-items: center;
  font-size: 10px;
  font-weight: 800;
  letter-spacing: 0.12em;
  padding: 3px 10px;
  border-radius: 999px;
  margin-bottom: 12px;
  width: fit-content;
}

.plan-tier-badge.free {
  background: rgba(255, 255, 255, 0.05);
  border: 1px solid rgba(255, 255, 255, 0.15);
  color: #94a3b8;
}

.plan-tier-badge.pro {
  background: rgba(0, 242, 254, 0.1);
  border: 1px solid rgba(0, 242, 254, 0.3);
  color: var(--cyan);
}

.plan-tier-badge.agency {
  background: rgba(245, 158, 11, 0.1);
  border: 1px solid rgba(245, 158, 11, 0.3);
  color: var(--amber);
}

.plan-name {
  font-size: 20px;
  font-weight: 700;
  color: #fff;
  margin-bottom: 6px;
}

.plan-price {
  font-size: 38px;
  font-weight: 900;
  color: #fff;
  line-height: 1;
  margin-bottom: 4px;
}

.plan-period {
  font-size: 11px;
  color: #64748b;
  margin-bottom: 14px;
}

.plan-desc {
  font-size: 12.5px;
  color: #94a3b8;
  line-height: 1.45;
  margin-bottom: 20px;
  min-height: 38px;
}

.plan-features {
  list-style: none;
  display: flex;
  flex-direction: column;
  gap: 10px;
  margin-bottom: 24px;
  flex: 1;
}

.plan-features li {
  /* display: flex; */
  /* align-items: flex-start; */
  /* gap: 8px; */
  font-size: 12px;
  color: #cbd5e1;
  line-height: 1.45;
  word-break: normal;
  overflow-wrap: break-word;
}

.plan-features li span {
  color: var(--cyan);
  font-weight: 700;
  flex-shrink: 0;
}

/* Action Area with Fixed Alignment & Zero Spacing Issues */
.plan-action {
  margin-top: auto;
  padding-top: 18px;
  border-top: 1px solid rgba(255, 255, 255, 0.06);
  display: flex;
  flex-direction: column;
  gap: 8px;
}

.plan-sub-caption {
  font-size: 11px;
  color: #64748b;
  text-align: center;
  line-height: 1.3;
  margin-top: 2px;
}

.btn-plan {
  display: block;
  width: 100%;
  padding: 12px 16px;
  text-align: center;
  font-size: 13px;
  font-weight: 800;
  border-radius: var(--radius-md);
  text-decoration: none;
  transition: all 0.2s ease;
  white-space: nowrap;
  box-sizing: border-box;
}

.btn-plan.free {
  background: rgba(255, 255, 255, 0.05);
  border: 1px solid var(--border-subtle);
  color: #fff;
}
.btn-plan.free:hover {
  background: rgba(255, 255, 255, 0.12);
}

.btn-plan.pro {
  background: linear-gradient(135deg, var(--cyan) 0%, #0284c7 100%);
  color: #000;
}

.btn-plan.agency {
  background: rgba(245, 158, 11, 0.15);
  border: 1px solid rgba(245, 158, 11, 0.4);
  color: #fbbf24;
}
.btn-plan.agency:hover {
  background: var(--amber);
  color: #000;
}

/* Agency Why Box */
.agency-why-box {
  background: var(--bg-card);
  border: 1px solid var(--border-subtle);
  border-radius: var(--radius-xl);
  padding: 34px 28px;
  margin-top: 40px;
  backdrop-filter: blur(20px);
}

.agency-why-badge {
  font-size: 10px;
  font-weight: 800;
  letter-spacing: 0.12em;
  color: var(--amber);
  margin-bottom: 8px;
  display: inline-block;
}

.agency-why-header h3 {
  font-size: 22px;
  font-weight: 800;
  color: #fff;
  margin-bottom: 22px;
}

.agency-why-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(280px, 1fr));
  gap: 22px;
}

.why-item {
  display: flex;
  gap: 14px;
}

.why-icon {
  font-size: 24px;
}

.why-item strong {
  font-size: 14px;
  color: #fff;
  display: block;
  margin-bottom: 4px;
}

.why-item p {
  font-size: 12px;
  color: #94a3b8;
  line-height: 1.5;
}

/* Agency Direct Actions & Download Buttons */
.plan-existing-user {
  margin: 0 0 2px 0;
  padding: 6px 10px;
  background: rgba(245, 158, 11, 0.06);
  border: 1px solid rgba(245, 158, 11, 0.2);
  border-radius: var(--radius-sm);
  text-align: center;
  font-size: 11px;
  color: #94a3b8;
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 6px;
  line-height: 1.35;
}

.agency-dl-link {
  color: #fbbf24;
  font-weight: 700;
  text-decoration: none;
  transition: color 0.15s ease;
}

.agency-dl-link:hover {
  color: #fde68a;
  text-decoration: underline;
}

.agency-actions-bar {
  display: flex;
  align-items: center;
  gap: 14px;
  margin-top: 28px;
  padding-top: 24px;
  border-top: 1px solid rgba(255, 255, 255, 0.08);
  flex-wrap: wrap;
}

.btn-agency-download {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  padding: 12px 24px;
  background: linear-gradient(135deg, #f59e0b 0%, #d97706 100%);
  border: 1px solid rgba(255, 255, 255, 0.2);
  border-radius: var(--radius-md);
  color: #0b0f19;
  font-size: 13px;
  font-weight: 800;
  text-decoration: none;
  transition: all 0.2s ease;
  box-shadow: 0 0 24px rgba(245, 158, 11, 0.35);
}

.btn-agency-download:hover {
  transform: translateY(-2px);
  box-shadow: 0 0 32px rgba(245, 158, 11, 0.55);
  color: #000;
}

.btn-agency-repo {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  padding: 12px 20px;
  background: rgba(255, 255, 255, 0.05);
  border: 1px solid var(--border-subtle);
  border-radius: var(--radius-md);
  color: #f1f5f9;
  font-size: 13px;
  font-weight: 600;
  text-decoration: none;
  transition: all 0.2s ease;
}

.btn-agency-repo:hover {
  background: rgba(255, 255, 255, 0.1);
  border-color: rgba(255, 255, 255, 0.2);
  transform: translateY(-2px);
  color: #fff;
}

.modal-agency-hint {
  margin: 10px 0 4px;
  padding: 8px 12px;
  background: rgba(245, 158, 11, 0.06);
  border: 1px solid rgba(245, 158, 11, 0.18);
  border-radius: 6px;
  font-size: 11px;
  color: #94a3b8;
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 6px;
  flex-wrap: wrap;
  text-align: center;
}

.modal-agency-hint a {
  color: #fbbf24;
  font-weight: 700;
  text-decoration: none;
}

.modal-agency-hint a:hover {
  text-decoration: underline;
  color: #fde68a;
}

/* ==========================================================================
   FAQ SECTION (ANIMATED CSS GRID ACCORDION)
   ========================================================================== */
.faq-section {
  padding: 60px 0;
}

.faq-accordion-wrap {
  max-width: 800px;
  margin: 0 auto;
  display: flex;
  flex-direction: column;
  gap: 12px;
}

.faq-item {
  background: var(--bg-card);
  border: 1px solid var(--border-subtle);
  border-radius: var(--radius-lg);
  overflow: hidden;
  transition: border-color 0.25s ease, box-shadow 0.25s ease;
}

.faq-item:hover {
  border-color: rgba(255, 255, 255, 0.16);
}

.faq-item.is-open {
  border-color: rgba(0, 242, 254, 0.35);
  box-shadow: 0 4px 20px rgba(0, 242, 254, 0.08);
}

.faq-question {
  display: flex;
  align-items: center;
  justify-content: space-between;
  width: 100%;
  padding: 18px 22px;
  font-family: inherit;
  font-size: 14px;
  font-weight: 700;
  color: #f1f5f9;
  cursor: pointer;
  text-align: left;
  background: transparent;
  border: none;
  gap: 16px;
  transition: color 0.2s ease;
}

.faq-question:hover {
  color: #ffffff;
}

.faq-question:focus-visible {
  outline: 2px solid var(--cyan);
  outline-offset: -2px;
}

.faq-question-text {
  flex: 1;
  min-width: 0;
  line-height: 1.5;
}

.faq-chevron {
  font-size: 20px;
  font-weight: 400;
  color: #64748b;
  line-height: 1;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  width: 20px;
  height: 20px;
  flex-shrink: 0;
  transition: transform 0.3s cubic-bezier(0.4, 0, 0.2, 1), color 0.3s ease;
}

.faq-item.is-open .faq-chevron {
  transform: rotate(45deg);
  color: var(--cyan);
}

/* CSS Grid Animation (sapan.dev 0fr -> 1fr approach) */
.faq-collapse {
  display: grid;
  grid-template-rows: 0fr;
  transition: grid-template-rows 0.32s cubic-bezier(0.4, 0, 0.2, 1);
}

.faq-item.is-open .faq-collapse {
  grid-template-rows: 1fr;
}

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

.faq-answer {
  padding: 0 22px 18px;
  font-size: 13px;
  color: #94a3b8;
  line-height: 1.6;
}

.faq-answer p {
  margin-bottom: 10px;
}

.faq-answer p:last-child {
  margin-bottom: 0;
}

/* ==========================================================================
   MODERN FUTURISTIC INFRASTRUCTURE FOOTER
   ========================================================================== */
.app-footer {
  position: relative;
  border-top: 1px solid rgba(255, 255, 255, 0.08);
  padding: 80px 0 40px;
  margin-top: 80px;
  overflow: hidden;
}

.app-footer::before {
  content: '';
  position: absolute;
  top: 0;
  left: 10%;
  right: 10%;
  height: 1px;
  background: linear-gradient(
    90deg,
    transparent,
    rgba(0, 242, 254, 0.5),
    rgba(138, 43, 226, 0.5),
    transparent
  );
}

/* Pre-Footer Action Banner */
.pre-footer-banner {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 30px;
  padding: 36px 40px;
  background: linear-gradient(135deg, rgba(14, 20, 34, 0.85) 0%, rgba(20, 28, 48, 0.7) 100%);
  border: 1px solid rgba(0, 242, 254, 0.25);
  border-radius: var(--radius-xl);
  box-shadow:
    0 20px 50px -10px rgba(0, 0, 0, 0.8),
    0 0 30px rgba(0, 242, 254, 0.1);
  backdrop-filter: blur(24px);
  margin-bottom: 60px;
  flex-wrap: wrap;
}

.pre-footer-content {
  max-width: 680px;
}

.pre-footer-badge {
  display: inline-flex;
  align-items: center;
  gap: 6px;
  padding: 4px 12px;
  background: rgba(0, 242, 254, 0.08);
  border: 1px solid rgba(0, 242, 254, 0.3);
  border-radius: 999px;
  font-size: 10px;
  font-weight: 800;
  letter-spacing: 0.12em;
  color: var(--cyan);
  margin-bottom: 12px;
}

.pre-footer-dot {
  width: 6px;
  height: 6px;
  border-radius: 50%;
  background: var(--cyan);
  box-shadow: 0 0 6px var(--cyan);
}

.pre-footer-title {
  font-size: clamp(20px, 3vw, 26px);
  font-weight: 800;
  color: #fff;
  line-height: 1.25;
  margin-bottom: 8px;
}

.pre-footer-sub {
  font-size: 14px;
  color: #94a3b8;
  line-height: 1.5;
}

.pre-footer-actions {
  display: flex;
  align-items: center;
  gap: 12px;
  flex-wrap: wrap;
}

.btn-prefooter-primary {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  padding: 13px 24px;
  background: linear-gradient(135deg, var(--indigo) 0%, #4338ca 100%);
  border: 1px solid rgba(255, 255, 255, 0.15);
  border-radius: var(--radius-md);
  color: #fff;
  font-size: 13px;
  font-weight: 800;
  text-decoration: none;
  transition: all 0.2s ease;
}

.btn-prefooter-primary:hover {
  transform: translateY(-2px);
  box-shadow: 0 0 25px rgba(99, 102, 241, 0.5);
}

.btn-prefooter-gh {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  padding: 13px 20px;
  background: rgba(255, 255, 255, 0.05);
  border: 1px solid var(--border-subtle);
  border-radius: var(--radius-md);
  color: #fff;
  font-size: 13px;
  font-weight: 700;
  text-decoration: none;
  transition: all 0.2s ease;
}

.btn-prefooter-gh:hover {
  background: rgba(255, 255, 255, 0.12);
  border-color: rgba(255, 255, 255, 0.25);
  transform: translateY(-2px);
}

/* Main Footer Grid */
.footer-main-grid {
  display: grid;
  grid-template-columns: 2fr 1fr 1fr 1fr;
  gap: 40px;
  margin-bottom: 50px;
}

@media (max-width: 960px) {
  .footer-main-grid {
    grid-template-columns: 1fr 1fr;
    gap: 30px;
  }
}

@media (max-width: 580px) {
  .footer-main-grid {
    grid-template-columns: 1fr;
    gap: 30px;
  }
}

.footer-brand-pane {
  display: flex;
  flex-direction: column;
  gap: 16px;
}

.footer-brand-title {
  display: flex;
  align-items: center;
  gap: 14px;
}

.footer-brand-text {
  display: flex;
  flex-direction: column;
  gap: 2px;
}

.footer-brand-text .brand-name {
  font-size: 19px;
  font-weight: 800;
  letter-spacing: 0.04em;
  color: #fff;
  line-height: 1.1;
}

.footer-brand-text .brand-tag {
  font-size: 10px;
  font-weight: 700;
  letter-spacing: 0.12em;
  color: #38bdf8;
  line-height: 1.2;
}

.footer-mission-statement {
  font-size: 13px;
  color: #94a3b8;
  line-height: 1.6;
  max-width: 380px;
}

.footer-telemetry-chip {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  padding: 6px 12px;
  background: rgba(0, 0, 0, 0.4);
  border: 1px solid var(--border-subtle);
  border-radius: 999px;
  font-family: var(--font-mono);
  font-size: 11px;
  color: #cbd5e1;
  width: fit-content;
}

.telemetry-live-dot {
  width: 6px;
  height: 6px;
  border-radius: 50%;
  background: var(--emerald);
  box-shadow: 0 0 6px var(--emerald);
}

.footer-pills-row {
  display: flex;
  align-items: center;
  gap: 8px;
  flex-wrap: wrap;
}

.footer-mini-badge {
  font-size: 10px;
  font-weight: 700;
  padding: 3px 8px;
  background: rgba(255, 255, 255, 0.04);
  border: 1px solid var(--border-subtle);
  border-radius: 4px;
  color: #64748b;
}

.footer-links-pane {
  display: flex;
  flex-direction: column;
  gap: 14px;
}

.footer-pane-heading {
  font-size: 13px;
  font-weight: 800;
  letter-spacing: 0.06em;
  color: #fff;
  text-transform: uppercase;
}

.footer-links-list {
  list-style: none;
  display: flex;
  flex-direction: column;
  gap: 10px;
}

.footer-links-list li a {
  display: inline-flex;
  align-items: center;
  gap: 6px;
  font-size: 13px;
  color: #94a3b8;
  text-decoration: none;
  transition: all 0.2s ease;
}

.footer-links-list li a:hover {
  color: var(--cyan);
  transform: translateX(2px);
}

.link-ext {
  font-family: var(--font-mono);
  font-size: 10px;
  color: #475569;
  background: rgba(255, 255, 255, 0.03);
  padding: 1px 4px;
  border-radius: 3px;
}

/* Footer Bottom Bar */
.footer-bottom-bar {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 20px;
  padding-top: 26px;
  border-top: 1px solid rgba(255, 255, 255, 0.06);
  font-size: 12px;
  color: #64748b;
  flex-wrap: wrap;
}

.footer-bottom-copy {
  color: #94a3b8;
}

.footer-bottom-tools {
  font-size: 11px;
}

.footer-bottom-privacy {
  display: flex;
  align-items: center;
  gap: 6px;
  color: #10b981;
  font-size: 11px;
}

/* ==========================================================================
   PRO UNLOCK MODAL
   ========================================================================== */
.modal-backdrop {
  position: fixed;
  inset: 0;
  z-index: 1000;
  background: rgba(0, 0, 0, 0.8);
  backdrop-filter: blur(16px);
  -webkit-backdrop-filter: blur(16px);
  display: flex;
  align-items: center;
  justify-content: center;
  padding: 20px;
}

.modal-backdrop.hidden {
  display: none !important;
}

.modal-window {
  background: #0b111e;
  border: 1px solid var(--border-glow);
  border-radius: var(--radius-xl);
  box-shadow: 0 0 50px rgba(0, 242, 254, 0.2);
  width: 100%;
  max-width: 520px;
  overflow: hidden;
}

.modal-header {
  display: flex;
  align-items: center;
  justify-content: space-between;
  padding: 18px 24px;
  border-bottom: 1px solid var(--border-subtle);
  background: rgba(15, 23, 42, 0.6);
}

.modal-title-group {
  display: flex;
  align-items: center;
  gap: 10px;
}

.modal-icon {
  font-size: 20px;
}

.modal-title-group h3 {
  font-size: 16px;
  font-weight: 800;
  color: #fff;
}

.modal-close-btn {
  background: transparent;
  border: none;
  color: #94a3b8;
  font-size: 22px;
  cursor: pointer;
  line-height: 1;
}

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

.modal-body {
  padding: 24px;
}

.modal-instruction {
  font-size: 13px;
  color: #94a3b8;
  margin-bottom: 18px;
}

.pro-zip-dropzone {
  border: 2px dashed rgba(0, 242, 254, 0.4);
  border-radius: var(--radius-md);
  padding: 36px 20px;
  text-align: center;
  cursor: pointer;
  background: rgba(0, 242, 254, 0.04);
  transition: all 0.2s ease;
}

.pro-zip-dropzone:hover,
.pro-zip-dropzone.dragover {
  border-color: var(--cyan);
  background: rgba(0, 242, 254, 0.1);
  box-shadow: 0 0 25px rgba(0, 242, 254, 0.25);
}

.drop-zip-icon {
  margin-bottom: 10px;
}

.drop-zip-text {
  font-size: 14px;
  font-weight: 700;
  color: #f1f5f9;
}

.drop-zip-sub {
  font-size: 11px;
  color: #64748b;
  margin-top: 4px;
}

.pro-unlock-status {
  padding: 10px 14px;
  border-radius: 8px;
  margin-top: 14px;
  font-size: 12px;
}

.pro-unlock-status.success {
  background: rgba(16, 185, 129, 0.15);
  border: 1px solid rgba(16, 185, 129, 0.4);
  color: #34d399;
}

.pro-unlock-status.error {
  background: rgba(239, 68, 68, 0.15);
  border: 1px solid rgba(239, 68, 68, 0.4);
  color: #f87171;
}

/* Direct Purchase CTA inside Pro ZIP Unlock Modal */
.modal-purchase-cta {
  margin-top: 18px;
}

.modal-purchase-divider {
  display: flex;
  align-items: center;
  text-align: center;
  margin: 14px 0 12px;
}

.modal-purchase-divider::before,
.modal-purchase-divider::after {
  content: '';
  flex: 1;
  border-bottom: 1px solid rgba(255, 255, 255, 0.08);
}

.modal-purchase-divider span {
  padding: 0 10px;
  font-size: 10px;
  font-weight: 700;
  text-transform: uppercase;
  letter-spacing: 0.08em;
  color: #94a3b8;
}

.modal-purchase-box {
  background: rgba(15, 23, 42, 0.6);
  border: 1px solid rgba(99, 102, 241, 0.25);
  border-radius: var(--radius-md);
  padding: 16px;
  display: flex;
  flex-direction: column;
  gap: 10px;
  transition:
    border-color 0.2s ease,
    box-shadow 0.2s ease;
}

.modal-purchase-box:hover {
  border-color: rgba(99, 102, 241, 0.45);
  box-shadow: 0 0 20px rgba(99, 102, 241, 0.15);
}

.modal-purchase-header {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 8px;
}

.modal-purchase-title-row {
  display: flex;
  align-items: center;
  gap: 8px;
  flex-wrap: wrap;
}

.modal-purchase-badge {
  font-size: 9px;
  font-weight: 800;
  letter-spacing: 0.08em;
  text-transform: uppercase;
  color: #f59e0b;
  background: rgba(245, 158, 11, 0.12);
  border: 1px solid rgba(245, 158, 11, 0.3);
  padding: 2px 6px;
  border-radius: 4px;
}

.modal-purchase-name {
  font-size: 13px;
  font-weight: 700;
  color: #f8fafc;
}

.modal-purchase-price {
  font-size: 16px;
  font-weight: 800;
  color: #f8fafc;
  white-space: nowrap;
}

.modal-purchase-price small {
  font-size: 10px;
  font-weight: 500;
  color: #94a3b8;
}

.modal-purchase-desc {
  font-size: 11px;
  color: #94a3b8;
  line-height: 1.45;
  margin: 0;
}

.modal-purchase-actions {
  display: flex;
  flex-direction: column;
  gap: 8px;
  margin-top: 4px;
}

.btn-modal-purchase {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 8px;
  padding: 11px 20px;
  background: linear-gradient(135deg, var(--indigo) 0%, #4338ca 100%);
  border: 1px solid rgba(255, 255, 255, 0.2);
  border-radius: var(--radius-md);
  color: #ffffff;
  font-size: 13px;
  font-weight: 800;
  text-decoration: none;
  transition: all 0.2s ease;
  box-shadow: 0 0 20px rgba(99, 102, 241, 0.4);
}

.btn-modal-purchase:hover {
  transform: translateY(-1px);
  box-shadow: 0 0 28px rgba(99, 102, 241, 0.65);
  color: #ffffff;
}

.modal-view-tiers-link {
  font-size: 11px;
  font-weight: 600;
  color: #818cf8;
  text-align: center;
  text-decoration: none;
  transition: color 0.15s ease;
}

.modal-view-tiers-link:hover {
  color: #a5b4fc;
  text-decoration: underline;
}

/* Unlocked Pro Modal View */
.modal-unlocked-card {
  background: rgba(15, 23, 42, 0.65);
  border: 1px solid rgba(16, 185, 129, 0.35);
  border-radius: var(--radius-lg);
  padding: 20px;
  box-shadow: 0 0 30px rgba(16, 185, 129, 0.12);
  display: flex;
  flex-direction: column;
  gap: 16px;
}

.unlocked-header {
  display: flex;
  flex-direction: column;
  gap: 6px;
}

.unlocked-badge {
  display: inline-flex;
  align-items: center;
  gap: 6px;
  align-self: flex-start;
  font-size: 10px;
  font-weight: 800;
  letter-spacing: 0.08em;
  text-transform: uppercase;
  color: #34d399;
  background: rgba(16, 185, 129, 0.12);
  border: 1px solid rgba(16, 185, 129, 0.35);
  padding: 3px 8px;
  border-radius: 999px;
}

.unlocked-title {
  font-size: 15px;
  font-weight: 800;
  color: #f8fafc;
  margin: 0;
}

.unlocked-desc {
  font-size: 12px;
  color: #94a3b8;
  line-height: 1.5;
  margin: 0;
}

.unlocked-features-list {
  display: flex;
  flex-direction: column;
  gap: 10px;
  background: rgba(2, 6, 23, 0.4);
  border: 1px solid rgba(255, 255, 255, 0.06);
  border-radius: var(--radius-md);
  padding: 12px 14px;
}

.unlocked-feature-item {
  display: flex;
  align-items: flex-start;
  gap: 10px;
}

.feat-check {
  font-size: 13px;
  font-weight: 800;
  color: #10b981;
  background: rgba(16, 185, 129, 0.15);
  width: 20px;
  height: 20px;
  display: flex;
  align-items: center;
  justify-content: center;
  border-radius: 50%;
  flex-shrink: 0;
  margin-top: 2px;
}

.feat-info {
  display: flex;
  flex-direction: column;
  gap: 2px;
}

.feat-info strong {
  font-size: 12px;
  font-weight: 700;
  color: #f1f5f9;
}

.feat-info small {
  font-size: 11px;
  color: #64748b;
  line-height: 1.4;
}

.unlocked-actions-row {
  display: flex;
  align-items: center;
  gap: 10px;
  margin-top: 4px;
}

.btn-primary-modal {
  flex: 1;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 6px;
  padding: 10px 16px;
  background: linear-gradient(135deg, #059669 0%, #10b981 100%);
  border: 1px solid rgba(255, 255, 255, 0.2);
  border-radius: var(--radius-md);
  color: #ffffff;
  font-size: 12px;
  font-weight: 700;
  cursor: pointer;
  transition: all 0.2s ease;
  box-shadow: 0 0 16px rgba(16, 185, 129, 0.35);
}

.btn-primary-modal:hover {
  transform: translateY(-1px);
  box-shadow: 0 0 24px rgba(16, 185, 129, 0.55);
}

.btn-secondary-modal {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 6px;
  padding: 10px 14px;
  background: rgba(15, 23, 42, 0.8);
  border: 1px solid rgba(255, 255, 255, 0.15);
  border-radius: var(--radius-md);
  color: #94a3b8;
  font-size: 12px;
  font-weight: 600;
  cursor: pointer;
  transition: all 0.2s ease;
}

.btn-secondary-modal:hover {
  border-color: rgba(0, 242, 254, 0.4);
  color: #f1f5f9;
}

/* Unlocked status for buttons across the page */
.btn-unlock-pro-nav.unlocked,
.btn-unlock-pro.unlocked,
.btn-tertiary-hero.unlocked {
  background: rgba(16, 185, 129, 0.15) !important;
  border-color: rgba(16, 185, 129, 0.5) !important;
  color: #34d399 !important;
}

.btn-unlock-pro-nav.unlocked:hover,
.btn-unlock-pro.unlocked:hover,
.btn-tertiary-hero.unlocked:hover {
  background: rgba(16, 185, 129, 0.25) !important;
  box-shadow: 0 0 20px rgba(16, 185, 129, 0.35) !important;
}

.modal-privacy-note {
  display: flex;
  align-items: center;
  gap: 8px;
  margin-top: 18px;
  font-size: 11px;
  color: #64748b;
}

/* Utility classes */
.hidden {
  display: none !important;
}

.hidden-input,
.hidden-select {
  display: none !important;
}

.mt-12 {
  margin-top: 48px;
}

@keyframes pulse-ring {
  0% {
    transform: scale(1);
    opacity: 0.8;
  }
  100% {
    transform: scale(1.4);
    opacity: 0;
  }
}

@keyframes pulse-dot {
  0%,
  100% {
    transform: scale(1);
    opacity: 1;
    filter: drop-shadow(0 0 6px var(--cyan));
  }
  50% {
    transform: scale(0.85);
    opacity: 0.6;
    filter: drop-shadow(0 0 2px var(--cyan));
  }
}

/* ==========================================================================
   MASTER ACCESS & ENTITLEMENT CHART TABLE STYLES
   ========================================================================== */

.access-chart-section {
  margin-top: 48px;
  background: var(--bg-card);
  border: 1px solid var(--border-subtle);
  border-radius: var(--radius-xl);
  padding: 32px 24px;
  backdrop-filter: blur(20px);
  position: relative;
  overflow: hidden;
}

.access-chart-header {
  margin-bottom: 20px;
  text-align: center;
}

.access-chart-badge {
  display: inline-flex;
  align-items: center;
  gap: 6px;
  padding: 4px 14px;
  background: var(--cyan-subtle);
  border: 1px solid var(--border-glow);
  border-radius: 999px;
  color: var(--cyan);
  font-size: 11px;
  font-weight: 700;
  letter-spacing: 0.1em;
  margin-bottom: 10px;
}

.access-chart-title {
  font-size: 22px;
  font-weight: 800;
  color: #ffffff;
  margin-bottom: 6px;
}

.access-chart-subtitle {
  font-size: 12.5px;
  color: #94a3b8;
  max-width: 640px;
  margin: 0 auto;
  line-height: 1.45;
}

.access-chart-toggle-bar {
  margin-top: 16px;
  display: flex;
  justify-content: center;
}

.btn-toggle-matrix {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  padding: 8px 20px;
  background: rgba(0, 242, 254, 0.08);
  border: 1px solid rgba(0, 242, 254, 0.3);
  border-radius: 999px;
  color: var(--cyan);
  font-size: 12px;
  font-weight: 700;
  cursor: pointer;
  transition: all 0.2s cubic-bezier(0.16, 1, 0.3, 1);
}

.btn-toggle-matrix:hover {
  background: rgba(0, 242, 254, 0.16);
  border-color: var(--cyan);
  transform: translateY(-1px);
  box-shadow: 0 0 16px -2px var(--cyan-glow);
}

.access-chart-table-wrap {
  width: 100%;
  overflow-x: auto;
  -webkit-overflow-scrolling: touch;
  border-radius: var(--radius-lg);
  border: 1px solid rgba(255, 255, 255, 0.06);
  background: rgba(8, 12, 20, 0.6);
  margin-top: 16px;
}

/* Collapsed vs Expanded matrix */
.access-chart-table-wrap.collapsed .detailed-row {
  display: none !important;
}

.access-chart-table-wrap.expanded .detailed-row {
  display: table-row !important;
}

.matrix-collapse-bottom {
  display: none;
  padding: 12px;
  text-align: center;
  background: rgba(14, 20, 32, 0.85);
  border-top: 1px solid rgba(255, 255, 255, 0.06);
}

.access-chart-table-wrap.expanded .matrix-collapse-bottom {
  display: block;
}

.btn-collapse-matrix-bottom {
  display: inline-flex;
  align-items: center;
  gap: 6px;
  padding: 7px 18px;
  background: rgba(255, 255, 255, 0.05);
  border: 1px solid rgba(255, 255, 255, 0.12);
  border-radius: 999px;
  color: #94a3b8;
  font-size: 11.5px;
  font-weight: 600;
  cursor: pointer;
  transition: all 0.2s ease;
}

.btn-collapse-matrix-bottom:hover {
  background: rgba(255, 255, 255, 0.12);
  color: #ffffff;
}

/* High-Density Compact Table */
.access-chart-table {
  width: 100%;
  border-collapse: collapse;
  text-align: left;
  font-size: 12px;
  min-width: 640px;
}

.access-chart-table th,
.access-chart-table td {
  padding: 9px 14px;
  border-bottom: 1px solid rgba(255, 255, 255, 0.05);
  vertical-align: middle;
}

.access-chart-table th {
  background: rgba(14, 20, 32, 0.95);
  font-weight: 700;
  color: #ffffff;
  font-size: 11px;
  letter-spacing: 0.04em;
  text-transform: uppercase;
  position: sticky;
  top: 0;
  z-index: 2;
}

.access-chart-table th.col-feature {
  width: 44%;
}

.access-chart-table th.col-free,
.access-chart-table th.col-pro,
.access-chart-table th.col-agency {
  width: 18.6%;
  text-align: center;
}

.access-chart-table th.col-pro {
  color: var(--cyan);
  background: rgba(0, 242, 254, 0.06);
  border-left: 1px solid rgba(0, 242, 254, 0.15);
  border-right: 1px solid rgba(0, 242, 254, 0.15);
}

.access-chart-table th.col-agency {
  color: var(--amber);
}

.access-chart-table td.col-free,
.access-chart-table td.col-pro,
.access-chart-table td.col-agency {
  text-align: center;
  font-weight: 600;
}

.access-chart-table td.col-pro {
  background: rgba(0, 242, 254, 0.02);
  border-left: 1px solid rgba(0, 242, 254, 0.08);
  border-right: 1px solid rgba(0, 242, 254, 0.08);
}

.access-chart-table tr.summary-highlight-row td {
  background: rgba(0, 242, 254, 0.02);
}

.access-chart-table tr.category-row td {
  background: rgba(18, 25, 40, 0.85);
  font-weight: 800;
  color: #38bdf8;
  font-size: 10.5px;
  letter-spacing: 0.08em;
  text-transform: uppercase;
  padding-top: 12px;
  padding-bottom: 8px;
  border-top: 1px solid rgba(255, 255, 255, 0.08);
}

.access-chart-table tr:hover td {
  background-color: rgba(255, 255, 255, 0.02);
}

.access-chart-table td.col-pro:hover {
  background-color: rgba(0, 242, 254, 0.04);
}

.feature-title {
  font-weight: 600;
  color: #f1f5f9;
  display: block;
  font-size: 12.5px;
}

.feature-sub {
  font-size: 10.5px;
  color: #64748b;
  display: block;
  margin-top: 1px;
}

.cell-check {
  color: var(--emerald);
  font-size: 12px;
  display: inline-flex;
  align-items: center;
  gap: 4px;
}

.cell-cross {
  color: #64748b;
  font-size: 11px;
}

.cell-pro-badge {
  color: var(--cyan);
  font-weight: 700;
  font-size: 10.5px;
  display: inline-block;
  padding: 2px 7px;
  border-radius: 4px;
  background: rgba(0, 242, 254, 0.1);
  border: 1px solid rgba(0, 242, 254, 0.2);
}

.cell-agency-badge {
  color: var(--amber);
  font-weight: 700;
  font-size: 10.5px;
  display: inline-block;
  padding: 2px 7px;
  border-radius: 4px;
  background: rgba(245, 158, 11, 0.1);
  border: 1px solid rgba(245, 158, 11, 0.2);
}

/* ==========================================================================
   MOBILE-FIRST COMPREHENSIVE RESPONSIVE DESIGN
   ========================================================================== */

/* --- 1280px: Laptop --- */
@media (max-width: 1280px) {
  .nav-menu {
    display: none;
  }
}

/* --- 1024px: Tablet Landscape & Small Desktop --- */
@media (max-width: 1024px) {
  .app-container {
    padding: 0 20px;
  }

  .top-nav {
    padding: 12px 18px;
    margin-bottom: 32px;
  }

  .hero-telemetry-strip {
    grid-template-columns: repeat(2, 1fr);
    gap: 12px;
  }

  .footer-main-grid {
    grid-template-columns: 1fr 1fr;
    gap: 32px;
  }
}

/* --- 860px: Tablet Portrait & Large Handhelds --- */
@media (max-width: 860px) {
  .hero-section {
    padding: 36px 0 24px;
  }

  .hero-title {
    font-size: 32px;
    line-height: 1.22;
  }

  .hero-subtitle {
    font-size: 14.5px;
    line-height: 1.55;
    margin-bottom: 28px;
  }

  .hero-cta-group {
    flex-direction: column;
    width: 100%;
    max-width: 440px;
    margin-left: auto;
    margin-right: auto;
    margin-bottom: 30px;
    gap: 12px;
  }

  .hero-cta-group .btn-primary-hero,
  .hero-cta-group .btn-secondary-hero,
  .hero-cta-group .btn-tertiary-hero {
    width: 100%;
    justify-content: center;
    text-align: center;
    box-sizing: border-box;
  }

  /* Vertical Pipeline Visualizer on Handhelds */
  .pipeline-flow-container {
    flex-direction: column;
    gap: 12px;
    padding: 12px 0;
    overflow-x: visible;
  }

  .pipeline-node-card {
    min-width: 0;
    width: 100%;
    box-sizing: border-box;
  }

  .pipeline-beam {
    width: 2px;
    height: 22px;
    margin: 0 auto;
    align-self: center;
  }

  .beam-glow {
    width: 100%;
    height: 12px;
    animation: beam-travel-v 1.8s infinite linear;
  }

  @keyframes beam-travel-v {
    0% {
      transform: translateY(-16px);
    }
    100% {
      transform: translateY(24px);
    }
  }

  .pathway-grid {
    grid-template-columns: 1fr;
    max-width: 520px;
    margin-left: auto;
    margin-right: auto;
    gap: 20px;
  }

  .repo-grid {
    grid-template-columns: 1fr;
    max-width: 520px;
    margin-left: auto;
    margin-right: auto;
    gap: 20px;
  }

  .diff-grid {
    grid-template-columns: 1fr;
    gap: 16px;
  }

  .prompts-grid {
    grid-template-columns: 1fr;
    gap: 18px;
  }

  .guide-step-row {
    grid-template-columns: 1fr;
    gap: 16px;
  }

  .pricing-grid {
    grid-template-columns: 1fr;
    max-width: 480px;
    margin-left: auto;
    margin-right: auto;
    gap: 24px;
  }

  .agency-why-grid {
    grid-template-columns: 1fr;
    gap: 18px;
  }

  .agency-actions-bar {
    flex-direction: column;
    align-items: stretch;
    gap: 12px;
  }

  .btn-agency-download,
  .btn-agency-repo {
    width: 100%;
    justify-content: center;
    text-align: center;
    box-sizing: border-box;
  }

  .pre-footer-banner {
    flex-direction: column;
    text-align: center;
    padding: 28px 22px;
    gap: 20px;
  }

  .pre-footer-actions {
    width: 100%;
    justify-content: center;
  }
}

/* --- 640px: Standard Mobile Viewport --- */
@media (max-width: 640px) {
  .app-container {
    padding: 0 14px;
  }

  .top-nav {
    padding: 10px 14px;
    top: 8px;
    margin-bottom: 24px;
  }

  .brand-logo-img {
    width: 32px;
    height: 32px;
  }

  .brand-name {
    font-size: 16px;
  }

  .brand-tagline {
    font-size: 10.5px;
  }

  .hero-section {
    padding: 28px 0 20px;
  }

  .hero-title {
    font-size: 26px;
    line-height: 1.24;
  }

  .hero-subtitle {
    font-size: 13.5px;
    line-height: 1.5;
    margin-bottom: 22px;
  }

  .hero-terminal-shell {
    margin-bottom: 24px;
  }

  .shell-body {
    padding: 12px 14px;
  }

  .shell-code {
    font-size: 12px;
  }

  .hero-telemetry-strip {
    grid-template-columns: 1fr;
    gap: 10px;
  }

  .telemetry-item {
    padding: 12px 14px;
  }

  .ecosystem-banner {
    padding: 22px 0;
    margin-bottom: 40px;
  }

  .ecosystem-grid {
    gap: 6px;
  }

  .tool-pill {
    padding: 4px 9px;
    font-size: 11px;
  }

  .studio-section {
    padding: 30px 0;
  }

  .studio-cockpit-header {
    padding: 14px 16px;
    flex-direction: column;
    align-items: flex-start;
    gap: 10px;
  }

  .cockpit-title {
    font-size: 16px;
  }

  .studio-controls-pane {
    padding: 16px 12px;
  }

  .studio-preview-pane {
    padding: 18px 12px;
  }

  .adapters-grid-container {
    grid-template-columns: 1fr;
    max-height: 250px;
  }

  .code-block {
    font-size: 11.5px;
    padding: 12px;
  }

  .access-chart-section {
    padding: 22px 14px;
  }

  .access-chart-title {
    font-size: 18px;
  }

  .btn-toggle-matrix {
    width: 100%;
    justify-content: center;
    box-sizing: border-box;
    font-size: 12px;
    padding: 9px 14px;
  }

  .pricing-card {
    padding: 24px 18px;
    min-height: auto;
  }

  .plan-price {
    font-size: 34px;
  }

  .btn-plan {
    font-size: 12.5px;
    padding: 11px 14px;
  }

  .agency-why-box {
    padding: 24px 18px;
  }

  .prompts-library-box {
    padding: 24px 16px;
  }

  .prompts-title {
    font-size: 20px;
  }

  .guide-tool-tabs {
    gap: 6px;
  }

  .guide-tab-btn {
    padding: 8px 12px;
    font-size: 12px;
  }

  .footer-main-grid {
    grid-template-columns: 1fr;
    gap: 28px;
    margin-bottom: 36px;
  }

  .footer-bottom-bar {
    flex-direction: column;
    text-align: center;
    gap: 12px;
  }
}

/* --- 480px: Small Mobile Phones & Narrow Viewports --- */
@media (max-width: 480px) {
  .app-container {
    padding: 0 10px;
  }

  .top-nav {
    padding: 8px 10px;
    top: 6px;
    margin-bottom: 18px;
  }

  .brand-logo-img {
    width: 28px;
    height: 28px;
  }

  .brand-name {
    font-size: 15px;
  }

  .brand-pill-badge {
    display: none;
  }

  .brand-tagline {
    display: none;
  }

  .nav-actions {
    gap: 6px;
  }

  .btn-unlock-pro-nav {
    padding: 6px 9px;
    font-size: 11px;
    gap: 4px;
  }

  .btn-github {
    padding: 6px 9px;
    font-size: 11px;
  }

  .btn-github .gh-text {
    display: none;
  }

  .hero-badge-wrap {
    padding: 0 4px;
  }

  .hero-badge {
    font-size: 8.5px;
    /* padding: 4px 8px; */
    letter-spacing: 0.04em;
    white-space: normal;
    text-align: center;
    line-height: 1.35;
  }

  .hero-title {
    font-size: 22px;
    line-height: 1.22;
  }

  .hero-subtitle {
    font-size: 12.5px;
    line-height: 1.45;
    margin-bottom: 20px;
  }

  .btn-primary-hero,
  .btn-secondary-hero {
    font-size: 13px;
    padding: 12px 16px;
  }

  .btn-tertiary-hero {
    font-size: 12px;
    padding: 8px 12px;
  }

  .shell-header {
    padding: 8px 10px;
  }

  .shell-title {
    font-size: 10px;
  }

  .shell-badge {
    font-size: 8.5px;
    padding: 1px 6px;
  }

  .shell-command-line {
    padding: 8px 10px;
    gap: 8px;
  }

  .shell-prompt {
    font-size: 12px;
  }

  .shell-code {
    font-size: 11px;
  }

  .shell-copy-btn {
    padding: 4px 8px;
    font-size: 10px;
  }

  .shell-output-line {
    font-size: 10.5px;
    flex-wrap: wrap;
    line-height: 1.4;
  }

  .section-title {
    font-size: 21px;
  }

  .section-subtitle {
    font-size: 12.5px;
  }

  .pathway-card {
    padding: 18px 14px;
  }

  .pathway-title {
    font-size: 17px;
  }

  .pathway-card-badge {
    font-size: 8.5px;
    padding: 2px 7px;
  }

  .p-step {
    font-size: 11.5px;
  }

  .pane-step-block {
    padding: 14px 10px;
  }

  .step-title {
    font-size: 13px;
  }

  .seg-tab-btn {
    padding: 6px 4px;
    font-size: 10px;
  }

  .drop-zone {
    padding: 14px 8px;
  }

  .drop-label-main {
    font-size: 11.5px;
  }

  .adapter-item {
    padding: 6px 8px;
  }

  .adapter-name {
    font-size: 11px;
  }

  .adapter-badge {
    font-size: 8.5px;
  }

  .btn-download-primary {
    padding: 12px 14px;
    font-size: 12.5px;
  }

  .hash-security-footer {
    flex-direction: column;
    align-items: flex-start;
    gap: 4px;
    font-size: 9.5px;
    padding: 6px 10px;
  }

  .repo-card {
    padding: 18px 14px;
  }

  .repo-title {
    font-size: 17px;
  }

  .diff-title-bar {
    flex-wrap: wrap;
    gap: 6px;
    padding: 8px 10px;
  }

  .diff-badge {
    font-size: 10px;
  }

  .diff-sub {
    display: none;
  }

  .diff-code {
    padding: 10px;
    font-size: 10px;
    line-height: 1.5;
  }

  .prompts-library-box {
    padding: 18px 12px;
  }

  .prompts-title {
    font-size: 18px;
  }

  .prompt-card-header {
    padding: 8px 10px;
  }

  .prompt-badge {
    font-size: 10px;
  }

  .btn-copy-prompt {
    padding: 3px 8px;
    font-size: 10px;
  }

  .prompt-body {
    padding: 10px;
  }

  .prompt-body pre {
    font-size: 10px;
  }

  .pricing-card {
    padding: 20px 14px;
  }

  .plan-name {
    font-size: 18px;
  }

  .plan-price {
    font-size: 30px;
  }

  .agency-why-box {
    padding: 20px 14px;
  }

  .agency-why-header h3 {
    font-size: 17px;
  }

  .faq-question {
    padding: 16px 14px;
    font-size: 13.5px;
    gap: 12px;
  }

  .faq-q-content {
    gap: 10px;
  }

  .faq-number {
    font-size: 12px;
    min-width: 18px;
  }

  .faq-answer {
    padding: 0 14px 16px;
    font-size: 12.5px;
  }

  .pre-footer-banner {
    padding: 20px 14px;
  }

  .pre-footer-title {
    font-size: 17px;
  }

  .pre-footer-sub {
    font-size: 12px;
  }

  .btn-prefooter-primary,
  .btn-prefooter-gh {
    width: 100%;
    justify-content: center;
    box-sizing: border-box;
    padding: 11px 16px;
    font-size: 12px;
  }

  .modal-backdrop {
    padding: 10px;
  }

  .modal-window {
    border-radius: var(--radius-lg);
  }

  .modal-header {
    padding: 14px 16px;
  }

  .modal-body {
    padding: 14px 16px;
  }

  .modal-dropzone {
    padding: 20px 12px;
  }

  .modal-purchase-box {
    padding: 12px;
  }

  .modal-purchase-price {
    font-size: 14px;
  }
}

/* --- 360px: Ultra-Narrow Devices (e.g. 320px iPhone SE 1st Gen, folded screens) --- */
@media (max-width: 360px) {
  .app-container {
    padding: 0 8px;
  }

  .top-nav {
    padding: 6px 8px;
    top: 4px;
    margin-bottom: 16px;
  }

  .brand-logo-img {
    width: 24px;
    height: 24px;
  }

  .brand-name {
    font-size: 13.5px;
  }

  .btn-unlock-pro-nav,
  .btn-github {
    padding: 5px 7px;
    font-size: 10px;
  }

  .hero-title {
    font-size: 20px;
  }

  .hero-subtitle {
    font-size: 12px;
  }

  .btn-primary-hero,
  .btn-secondary-hero {
    font-size: 12px;
    padding: 10px 14px;
  }

  .shell-code {
    font-size: 10.5px;
  }

  .pathway-card,
  .repo-card,
  .pricing-card,
  .agency-why-box,
  .prompts-library-box {
    padding: 16px 10px;
  }

  .plan-name {
    font-size: 16px;
  }

  .plan-price {
    font-size: 26px;
  }

  .btn-plan {
    font-size: 11.5px;
    padding: 9px 10px;
  }
}
