/* ==========================================================================
   ZERI SKILL — HIGH-VOLTAGE STYLING SYSTEM
   Designed for Autonomous AI Agents Showcase
   ========================================================================== */

:root {
  /* Color Palette */
  --bg-primary: #06080d;
  --bg-secondary: #0b0f17;
  --bg-tertiary: #111723;
  --bg-card: rgba(15, 23, 42, 0.65);
  --bg-card-hover: rgba(22, 33, 56, 0.75);

  --border-subtle: rgba(255, 255, 255, 0.08);
  --border-bright: rgba(0, 245, 212, 0.35);
  --border-glow: rgba(0, 245, 212, 0.2);

  --accent-cyan: #00F5D4;
  --accent-lime: #70FF00;
  --accent-blue: #0066FF;
  --accent-purple: #9D4EDD;
  --accent-orange: #FF9E00;
  --accent-yellow: #FFD60A;

  --text-primary: #F8FAFC;
  --text-secondary: #94A3B8;
  --text-muted: #64748B;
  --text-glow: rgba(0, 245, 212, 0.85);

  /* Typography */
  --font-sans: 'Plus Jakarta Sans', -apple-system, BlinkMacSystemFont, 'Segoe UI', Roboto, sans-serif;
  --font-mono: 'JetBrains Mono', monospace;

  /* Layout */
  --container-max: 1240px;
  --header-height: 76px;
  --radius-sm: 8px;
  --radius-md: 14px;
  --radius-lg: 20px;
  --radius-full: 9999px;

  /* Shadows & Glows */
  --glow-cyan: 0 0 35px rgba(0, 245, 212, 0.22);
  --glow-lime: 0 0 35px rgba(112, 255, 0, 0.2);
  --shadow-card: 0 12px 36px -8px rgba(0, 0, 0, 0.6);
  --shadow-terminal: 0 25px 60px -15px rgba(0, 0, 0, 0.8);
}

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

html {
  scroll-behavior: smooth;
  scroll-padding-top: var(--header-height);
  font-size: 16px;
}

body {
  background-color: var(--bg-primary);
  color: var(--text-primary);
  font-family: var(--font-sans);
  line-height: 1.6;
  overflow-x: hidden;
  position: relative;
  min-height: 100vh;
  -webkit-font-smoothing: antialiased;
  -moz-osx-font-smoothing: grayscale;
}

/* Electric Background Canvas */
#electric-canvas {
  position: fixed;
  top: 0;
  left: 0;
  width: 100%;
  height: 100%;
  pointer-events: none;
  z-index: 0;
  opacity: 0.75;
}

/* Background Gradients & Mesh */
body::before {
  content: "";
  position: fixed;
  top: 0;
  left: 0;
  right: 0;
  bottom: 0;
  background-image: 
    radial-gradient(circle at 15% 20%, rgba(0, 245, 212, 0.07) 0%, transparent 40%),
    radial-gradient(circle at 85% 30%, rgba(112, 255, 0, 0.05) 0%, transparent 45%),
    radial-gradient(circle at 50% 80%, rgba(0, 102, 255, 0.06) 0%, transparent 50%),
    linear-gradient(rgba(255, 255, 255, 0.02) 1px, transparent 1px),
    linear-gradient(90deg, rgba(255, 255, 255, 0.02) 1px, transparent 1px);
  background-size: 100% 100%, 100% 100%, 100% 100%, 64px 64px, 64px 64px;
  pointer-events: none;
  z-index: 1;
}

main {
  position: relative;
  z-index: 2;
}

/* Typography Helpers */
h1, h2, h3, h4, h5, h6 {
  font-weight: 700;
  line-height: 1.25;
  color: #FFFFFF;
  letter-spacing: -0.02em;
}

p {
  color: var(--text-secondary);
}

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

code, pre {
  font-family: var(--font-mono);
}

.gradient-text {
  background: linear-gradient(135deg, #00F5D4 0%, #70FF00 50%, #00C2FF 100%);
  -webkit-background-clip: text;
  -webkit-text-fill-color: transparent;
  display: inline-block;
}

/* Containers & Common Layout */
.container {
  max-width: var(--container-max);
  margin: 0 auto;
  padding: 0 24px;
}

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

.badge-tag {
  display: inline-block;
  font-family: var(--font-mono);
  font-size: 0.75rem;
  font-weight: 700;
  letter-spacing: 0.12em;
  color: var(--accent-cyan);
  background: rgba(0, 245, 212, 0.08);
  border: 1px solid rgba(0, 245, 212, 0.25);
  padding: 4px 14px;
  border-radius: var(--radius-full);
  margin-bottom: 16px;
  text-transform: uppercase;
}

.section-title {
  font-size: clamp(2rem, 3.5vw, 2.75rem);
  margin-bottom: 18px;
}

.section-desc {
  font-size: 1.1rem;
  line-height: 1.7;
}

/* Buttons */
.btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 10px;
  padding: 12px 24px;
  border-radius: var(--radius-full);
  font-size: 0.95rem;
  font-weight: 600;
  cursor: pointer;
  border: none;
  transition: all 0.25s cubic-bezier(0.16, 1, 0.3, 1);
  text-decoration: none;
  white-space: nowrap;
}

.btn-primary {
  background: linear-gradient(135deg, #00F5D4 0%, #00C49F 100%);
  color: #06090F;
  box-shadow: 0 4px 20px rgba(0, 245, 212, 0.35);
}

.btn-primary:hover {
  transform: translateY(-2px);
  box-shadow: 0 8px 28px rgba(0, 245, 212, 0.5);
  filter: brightness(1.08);
}

.btn-outline {
  background: rgba(255, 255, 255, 0.03);
  color: var(--text-primary);
  border: 1px solid var(--border-subtle);
  backdrop-filter: blur(8px);
}

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

.btn-ghost {
  background: transparent;
  color: var(--text-secondary);
  border: 1px solid var(--border-subtle);
  padding: 8px 16px;
}

.btn-ghost:hover {
  color: var(--text-primary);
  border-color: var(--accent-cyan);
  background: rgba(0, 245, 212, 0.06);
}

.btn-sm {
  padding: 6px 14px;
  font-size: 0.85rem;
  border-radius: var(--radius-sm);
}

/* ==========================================================================
   HEADER & NAVIGATION
   ========================================================================== */
.site-header {
  position: sticky;
  top: 0;
  left: 0;
  width: 100%;
  height: var(--header-height);
  background: rgba(6, 8, 13, 0.8);
  backdrop-filter: blur(20px);
  -webkit-backdrop-filter: blur(20px);
  border-bottom: 1px solid var(--border-subtle);
  z-index: 100;
  transition: background-color 0.3s ease, border-color 0.3s ease;
}

.site-header.scrolled {
  background: rgba(6, 8, 13, 0.95);
  border-bottom: 1px solid rgba(0, 245, 212, 0.15);
}

.header-container {
  max-width: var(--container-max);
  height: 100%;
  margin: 0 auto;
  padding: 0 24px;
  display: flex;
  align-items: center;
  justify-content: space-between;
}

.brand-logo {
  display: flex;
  align-items: center;
  gap: 12px;
}

.logo-spark {
  width: 36px;
  height: 36px;
  background: rgba(0, 245, 212, 0.1);
  border: 1px solid rgba(0, 245, 212, 0.3);
  border-radius: 10px;
  display: flex;
  align-items: center;
  justify-content: center;
  box-shadow: 0 0 15px rgba(0, 245, 212, 0.2);
  transition: all 0.3s ease;
}

.brand-logo:hover .logo-spark {
  transform: rotate(-8deg) scale(1.05);
  box-shadow: 0 0 25px rgba(0, 245, 212, 0.45);
}

.logo-text {
  display: flex;
  flex-direction: column;
}

.logo-title {
  font-size: 1.25rem;
  font-weight: 800;
  letter-spacing: -0.03em;
  color: #FFFFFF;
}

.logo-accent {
  color: var(--accent-cyan);
}

.logo-badge {
  font-family: var(--font-mono);
  font-size: 0.6rem;
  font-weight: 700;
  letter-spacing: 0.12em;
  color: var(--accent-lime);
}

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

.nav-list {
  display: flex;
  align-items: center;
  list-style: none;
  gap: 32px;
}

.nav-link {
  font-size: 0.92rem;
  font-weight: 500;
  color: var(--text-secondary);
  position: relative;
  padding: 6px 0;
}

.nav-link:hover {
  color: var(--text-primary);
}

.nav-link::after {
  content: "";
  position: absolute;
  bottom: 0;
  left: 0;
  width: 0;
  height: 2px;
  background: var(--accent-cyan);
  transition: width 0.25s ease;
  box-shadow: 0 0 8px var(--accent-cyan);
}

.nav-link:hover::after {
  width: 100%;
}

.header-actions {
  display: flex;
  align-items: center;
  gap: 16px;
}

.github-btn {
  display: flex;
  align-items: center;
  gap: 8px;
  border-radius: var(--radius-full);
}

.star-count {
  font-family: var(--font-mono);
  font-size: 0.8rem;
  color: var(--accent-yellow);
}

.mobile-toggle {
  display: none;
  background: transparent;
  border: none;
  cursor: pointer;
  padding: 8px;
}

.mobile-toggle .bar {
  display: block;
  width: 22px;
  height: 2px;
  margin: 5px auto;
  background-color: var(--text-primary);
  transition: all 0.3s ease;
}

/* ==========================================================================
   HERO SECTION
   ========================================================================== */
.hero-section {
  position: relative;
  padding: 70px 0 90px 0;
  overflow: hidden;
}

.hero-glow {
  position: absolute;
  top: 10%;
  left: 50%;
  transform: translateX(-50%);
  width: 600px;
  height: 400px;
  background: radial-gradient(circle, rgba(0, 245, 212, 0.12) 0%, rgba(112, 255, 0, 0.05) 50%, transparent 80%);
  filter: blur(80px);
  pointer-events: none;
  z-index: -1;
}

.hero-grid {
  display: grid;
  grid-template-columns: 1.15fr 1fr;
  gap: 48px;
  align-items: center;
}

.badge-pill {
  display: inline-flex;
  align-items: center;
  gap: 10px;
  background: rgba(0, 245, 212, 0.06);
  border: 1px solid rgba(0, 245, 212, 0.25);
  padding: 6px 16px;
  border-radius: var(--radius-full);
  margin-bottom: 24px;
}

.badge-dot {
  width: 8px;
  height: 8px;
  border-radius: 50%;
  background-color: var(--accent-cyan);
  box-shadow: 0 0 10px var(--accent-cyan);
  animation: pulse-dot 2s infinite ease-in-out;
}

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

.badge-text {
  font-size: 0.82rem;
  font-weight: 600;
  color: var(--text-primary);
}

.badge-arrow {
  color: var(--accent-cyan);
}

.hero-title {
  font-size: clamp(2.4rem, 4.5vw, 3.8rem);
  font-weight: 800;
  letter-spacing: -0.03em;
  line-height: 1.15;
  margin-bottom: 24px;
}

.hero-subtitle {
  font-size: 1.15rem;
  line-height: 1.75;
  color: var(--text-secondary);
  margin-bottom: 36px;
}

.hero-subtitle strong {
  color: #FFFFFF;
}

.hero-cta-group {
  display: flex;
  align-items: center;
  flex-wrap: wrap;
  gap: 16px;
  margin-bottom: 40px;
}

.install-box {
  display: inline-flex;
  align-items: center;
  background: rgba(15, 23, 42, 0.85);
  border: 1px solid rgba(0, 245, 212, 0.3);
  padding: 8px 16px;
  border-radius: var(--radius-full);
  gap: 10px;
  box-shadow: 0 0 20px rgba(0, 245, 212, 0.1);
  transition: all 0.2s ease;
}

.install-box:hover {
  border-color: var(--accent-cyan);
  box-shadow: 0 0 25px rgba(0, 245, 212, 0.2);
}

.terminal-prompt {
  color: var(--accent-lime);
  font-family: var(--font-mono);
  font-weight: 700;
}

.install-code {
  font-family: var(--font-mono);
  font-size: 0.9rem;
  color: #FFFFFF;
  letter-spacing: -0.01em;
}

.copy-btn {
  background: transparent;
  border: none;
  color: var(--text-secondary);
  cursor: pointer;
  padding: 4px;
  display: flex;
  align-items: center;
  justify-content: center;
  border-radius: 4px;
  transition: all 0.2s ease;
}

.copy-btn:hover {
  color: var(--accent-cyan);
  transform: scale(1.1);
}

.hero-compatibility {
  display: flex;
  flex-direction: column;
  gap: 12px;
}

.comp-label {
  font-size: 0.8rem;
  font-family: var(--font-mono);
  text-transform: uppercase;
  letter-spacing: 0.08em;
  color: var(--text-muted);
}

.comp-tags {
  display: flex;
  flex-wrap: wrap;
  gap: 10px;
}

.comp-tag {
  font-size: 0.8rem;
  padding: 4px 12px;
  border-radius: var(--radius-sm);
  background: rgba(255, 255, 255, 0.03);
  border: 1px solid var(--border-subtle);
  color: var(--text-secondary);
  font-weight: 500;
  transition: all 0.2s ease;
}

.comp-tag:hover {
  background: rgba(0, 245, 212, 0.05);
  border-color: rgba(0, 245, 212, 0.2);
  color: var(--text-primary);
}

/* Terminal Graphic in Hero */
.hero-terminal-wrapper {
  position: relative;
}

.hero-terminal-wrapper::before {
  content: "";
  position: absolute;
  inset: -1px;
  background: linear-gradient(135deg, rgba(0, 245, 212, 0.4), rgba(112, 255, 0, 0.2), rgba(0, 102, 255, 0.3));
  border-radius: var(--radius-lg);
  filter: blur(14px);
  opacity: 0.5;
  z-index: 0;
}

.terminal-card {
  position: relative;
  z-index: 1;
  background: rgba(11, 15, 23, 0.85);
  backdrop-filter: blur(20px);
  -webkit-backdrop-filter: blur(20px);
  border: 1px solid rgba(255, 255, 255, 0.12);
  border-radius: var(--radius-lg);
  box-shadow: var(--shadow-terminal);
  overflow: hidden;
}

.terminal-header {
  display: flex;
  align-items: center;
  justify-content: space-between;
  padding: 14px 18px;
  background: rgba(17, 23, 35, 0.7);
  border-bottom: 1px solid var(--border-subtle);
}

.terminal-dots {
  display: flex;
  gap: 6px;
}

.terminal-dots .dot {
  width: 10px;
  height: 10px;
  border-radius: 50%;
}

.dot.red { background: #FF5F56; }
.dot.yellow { background: #FFBD2E; }
.dot.green { background: #27C93F; }

.terminal-title {
  display: flex;
  align-items: center;
  gap: 8px;
  font-family: var(--font-mono);
  font-size: 0.78rem;
  color: var(--text-secondary);
}

.pulse-indicator {
  width: 6px;
  height: 6px;
  border-radius: 50%;
  background: var(--accent-lime);
  box-shadow: 0 0 8px var(--accent-lime);
  animation: pulse-dot 1.5s infinite;
}

.terminal-badge {
  font-family: var(--font-mono);
  font-size: 0.7rem;
  color: var(--accent-cyan);
  background: rgba(0, 245, 212, 0.1);
  padding: 2px 8px;
  border-radius: 4px;
}

.terminal-body {
  padding: 20px;
  font-family: var(--font-mono);
  font-size: 0.85rem;
  line-height: 1.6;
  max-height: 380px;
  overflow-y: auto;
}

.terminal-line {
  margin-bottom: 8px;
  color: #CBD5E1;
}

.terminal-line.comment { color: var(--text-muted); font-style: italic; }
.terminal-line.highlight {
  background: rgba(0, 245, 212, 0.05);
  border-left: 2px solid var(--accent-lime);
  padding: 6px 10px;
  margin-top: 14px;
}

.t-cyan { color: var(--accent-cyan); font-weight: 600; }
.t-green { color: var(--accent-lime); font-weight: 600; }
.t-purple { color: var(--accent-purple); font-weight: 600; }
.t-blue { color: #60A5FA; font-weight: 600; }
.t-yellow { color: var(--accent-yellow); }

.step-card {
  background: rgba(17, 24, 39, 0.6);
  border: 1px solid rgba(255, 255, 255, 0.06);
  border-radius: 8px;
  padding: 10px 12px;
  margin: 10px 0;
  transition: all 0.2s ease;
}

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

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

.step-badge.success {
  background: rgba(112, 255, 0, 0.15);
  color: var(--accent-lime);
  border: 1px solid rgba(112, 255, 0, 0.3);
}

.step-badge.executing {
  background: rgba(0, 245, 212, 0.15);
  color: var(--accent-cyan);
  border: 1px solid rgba(0, 245, 212, 0.3);
  animation: pulse-step 1.5s infinite;
}

@keyframes pulse-step {
  0%, 100% { opacity: 1; }
  50% { opacity: 0.6; }
}

.step-name {
  font-weight: 600;
  color: #F1F5F9;
}

.step-time {
  color: var(--text-muted);
  font-size: 0.75rem;
}

.step-desc {
  font-size: 0.78rem;
  color: var(--text-secondary);
}

.terminal-footer {
  display: flex;
  align-items: center;
  justify-content: space-around;
  padding: 12px 18px;
  background: rgba(15, 23, 42, 0.9);
  border-top: 1px solid var(--border-subtle);
}

.stat-pill {
  font-family: var(--font-mono);
  font-size: 0.78rem;
  color: var(--text-secondary);
}

.stat-num {
  color: var(--accent-cyan);
  font-weight: 700;
}

/* ==========================================================================
   METRICS SECTION
   ========================================================================== */
.metrics-section {
  padding: 30px 0;
  border-top: 1px solid var(--border-subtle);
  border-bottom: 1px solid var(--border-subtle);
  background: rgba(11, 15, 23, 0.5);
}

.metrics-grid {
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  gap: 30px;
}

.metric-item {
  text-align: center;
  padding: 16px;
  position: relative;
}

.metric-item:not(:last-child)::after {
  content: "";
  position: absolute;
  right: 0;
  top: 25%;
  height: 50%;
  width: 1px;
  background: var(--border-subtle);
}

.metric-value {
  display: inline-block;
  font-size: clamp(2.5rem, 4vw, 3.2rem);
  font-weight: 800;
  color: #FFFFFF;
  letter-spacing: -0.04em;
  line-height: 1;
}

.metric-unit {
  display: inline-block;
  font-size: 1.8rem;
  font-weight: 700;
  color: var(--accent-cyan);
  margin-left: 2px;
}

.metric-label {
  font-size: 0.9rem;
  color: var(--text-secondary);
  margin-top: 10px;
}

/* ==========================================================================
   FEATURES SECTION
   ========================================================================== */
.features-section {
  padding: 110px 0;
  position: relative;
}

.features-grid {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 28px;
}

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

.feature-card::before {
  content: "";
  position: absolute;
  top: 0;
  left: 0;
  right: 0;
  height: 2px;
  background: linear-gradient(90deg, transparent, rgba(0, 245, 212, 0.5), transparent);
  opacity: 0;
  transition: opacity 0.3s ease;
}

.feature-card:hover {
  transform: translateY(-6px);
  border-color: rgba(0, 245, 212, 0.3);
  box-shadow: 0 16px 40px -10px rgba(0, 245, 212, 0.12);
  background: var(--bg-card-hover);
}

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

.feature-icon-box {
  width: 52px;
  height: 52px;
  border-radius: var(--radius-md);
  display: flex;
  align-items: center;
  justify-content: center;
  margin-bottom: 22px;
  transition: transform 0.3s ease;
}

.feature-card:hover .feature-icon-box {
  transform: scale(1.1);
}

.feature-icon-box.cyan {
  background: rgba(0, 245, 212, 0.1);
  color: var(--accent-cyan);
  border: 1px solid rgba(0, 245, 212, 0.3);
}

.feature-icon-box.green {
  background: rgba(112, 255, 0, 0.1);
  color: var(--accent-lime);
  border: 1px solid rgba(112, 255, 0, 0.3);
}

.feature-icon-box.purple {
  background: rgba(157, 78, 221, 0.1);
  color: var(--accent-purple);
  border: 1px solid rgba(157, 78, 221, 0.3);
}

.feature-icon-box.orange {
  background: rgba(255, 158, 0, 0.1);
  color: var(--accent-orange);
  border: 1px solid rgba(255, 158, 0, 0.3);
}

.feature-icon-box.blue {
  background: rgba(0, 102, 255, 0.1);
  color: #60A5FA;
  border: 1px solid rgba(0, 102, 255, 0.3);
}

.feature-icon-box.yellow {
  background: rgba(255, 214, 10, 0.1);
  color: var(--accent-yellow);
  border: 1px solid rgba(255, 214, 10, 0.3);
}

.feature-title {
  font-size: 1.3rem;
  margin-bottom: 12px;
}

.feature-text {
  font-size: 0.95rem;
  line-height: 1.7;
  color: var(--text-secondary);
  flex-grow: 1;
  margin-bottom: 24px;
}

.feature-footer {
  display: flex;
  gap: 8px;
  flex-wrap: wrap;
}

.feature-tag {
  font-family: var(--font-mono);
  font-size: 0.72rem;
  padding: 3px 8px;
  border-radius: 4px;
  background: rgba(255, 255, 255, 0.04);
  color: var(--text-secondary);
  border: 1px solid var(--border-subtle);
}

/* ==========================================================================
   ARCHITECTURE SECTION
   ========================================================================== */
.arch-section {
  padding: 100px 0;
  background: linear-gradient(180deg, rgba(6, 8, 13, 0) 0%, rgba(11, 15, 23, 0.7) 50%, rgba(6, 8, 13, 0) 100%);
}

.arch-diagram {
  max-width: 980px;
  margin: 0 auto;
  display: flex;
  flex-direction: column;
  gap: 16px;
}

.arch-layer {
  background: var(--bg-card);
  backdrop-filter: blur(12px);
  border: 1px solid var(--border-subtle);
  border-radius: var(--radius-lg);
  padding: 24px 30px;
  position: relative;
}

.arch-layer.highlight-layer {
  border-color: rgba(0, 245, 212, 0.4);
  background: rgba(13, 22, 38, 0.85);
  box-shadow: 0 0 30px rgba(0, 245, 212, 0.15);
}

.layer-title {
  display: flex;
  align-items: center;
  gap: 10px;
  font-size: 1.05rem;
  font-weight: 700;
  margin-bottom: 18px;
  color: #FFFFFF;
}

.layer-dot {
  width: 8px;
  height: 8px;
  border-radius: 50%;
  background: var(--text-muted);
}

.layer-dot.active {
  background: var(--accent-cyan);
  box-shadow: 0 0 10px var(--accent-cyan);
}

.layer-content {
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 14px;
  flex-wrap: wrap;
}

.arch-node {
  background: rgba(255, 255, 255, 0.04);
  border: 1px solid var(--border-subtle);
  border-radius: var(--radius-md);
  padding: 10px 18px;
  font-size: 0.9rem;
  font-weight: 600;
  color: var(--text-primary);
  text-align: center;
  transition: all 0.2s ease;
}

.arch-node:hover {
  background: rgba(0, 245, 212, 0.08);
  border-color: rgba(0, 245, 212, 0.3);
  transform: translateY(-2px);
}

.arch-arrow {
  color: var(--text-muted);
  font-size: 1.1rem;
}

.layer-annotation {
  text-align: center;
  font-size: 0.8rem;
  color: var(--text-muted);
  margin-top: 14px;
  font-family: var(--font-mono);
}

.arch-connector {
  display: flex;
  flex-direction: column;
  align-items: center;
  position: relative;
  padding: 6px 0;
}

.connector-line {
  width: 2px;
  height: 28px;
  background: linear-gradient(180deg, rgba(0, 245, 212, 0.5), rgba(112, 255, 0, 0.5));
}

.connector-label {
  position: absolute;
  top: 50%;
  transform: translateY(-50%);
  background: #0E1726;
  border: 1px solid rgba(0, 245, 212, 0.3);
  border-radius: var(--radius-full);
  padding: 2px 14px;
  font-family: var(--font-mono);
  font-size: 0.72rem;
  color: var(--accent-cyan);
}

.kernel-modules {
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  gap: 16px;
}

.module-card {
  background: rgba(255, 255, 255, 0.03);
  border: 1px solid rgba(0, 245, 212, 0.2);
  border-radius: var(--radius-md);
  padding: 16px;
  text-align: center;
  transition: all 0.25s ease;
}

.module-card:hover {
  background: rgba(0, 245, 212, 0.08);
  transform: translateY(-3px);
  border-color: var(--accent-cyan);
}

.mod-icon {
  font-size: 1.5rem;
  margin-bottom: 8px;
}

.mod-title {
  font-size: 0.95rem;
  font-weight: 700;
  color: #FFFFFF;
  margin-bottom: 6px;
}

.mod-desc {
  font-size: 0.75rem;
  color: var(--text-secondary);
  line-height: 1.4;
}

/* ==========================================================================
   SIMULATOR / PLAYGROUND SECTION
   ========================================================================== */
.simulator-section {
  padding: 100px 0;
  position: relative;
}

.sim-wrapper {
  background: var(--bg-card);
  backdrop-filter: blur(16px);
  border: 1px solid var(--border-subtle);
  border-radius: var(--radius-lg);
  box-shadow: var(--shadow-terminal);
  overflow: hidden;
}

.sim-toolbar {
  display: flex;
  align-items: center;
  justify-content: space-between;
  padding: 16px 24px;
  background: rgba(15, 23, 42, 0.95);
  border-bottom: 1px solid var(--border-subtle);
  flex-wrap: wrap;
  gap: 12px;
}

.sim-label {
  font-size: 0.88rem;
  font-weight: 600;
  color: var(--text-secondary);
}

.sim-buttons {
  display: flex;
  gap: 8px;
  flex-wrap: wrap;
}

.sim-btn {
  background: rgba(255, 255, 255, 0.04);
  border: 1px solid var(--border-subtle);
  color: var(--text-secondary);
  padding: 8px 16px;
  border-radius: var(--radius-full);
  font-size: 0.85rem;
  font-weight: 600;
  cursor: pointer;
  transition: all 0.2s ease;
}

.sim-btn:hover {
  background: rgba(255, 255, 255, 0.08);
  color: var(--text-primary);
}

.sim-btn.active {
  background: rgba(0, 245, 212, 0.15);
  border-color: var(--accent-cyan);
  color: var(--accent-cyan);
  box-shadow: 0 0 14px rgba(0, 245, 212, 0.25);
}

.sim-grid {
  display: grid;
  grid-template-columns: 1fr 1.25fr;
  min-height: 480px;
}

.sim-col {
  padding: 24px;
  display: flex;
  flex-direction: column;
}

.sim-col:first-child {
  border-right: 1px solid var(--border-subtle);
  background: rgba(11, 15, 23, 0.6);
}

.sim-col-header {
  display: flex;
  align-items: center;
  justify-content: space-between;
  margin-bottom: 16px;
}

.sim-col-title {
  font-size: 0.95rem;
  font-weight: 700;
  color: #FFFFFF;
}

.badge-scenario {
  font-family: var(--font-mono);
  font-size: 0.72rem;
  padding: 2px 8px;
  border-radius: 4px;
  background: rgba(0, 245, 212, 0.1);
  color: var(--accent-cyan);
}

.prompt-box {
  background: rgba(15, 23, 42, 0.8);
  border: 1px solid var(--border-subtle);
  border-radius: var(--radius-md);
  padding: 16px;
}

.prompt-meta {
  display: flex;
  align-items: center;
  gap: 12px;
  margin-bottom: 12px;
}

.agent-avatar {
  font-size: 1.4rem;
}

.agent-name {
  font-size: 0.85rem;
  font-weight: 700;
  color: #FFFFFF;
}

.agent-status {
  font-size: 0.75rem;
  color: var(--accent-lime);
}

.prompt-content {
  font-size: 0.92rem;
  line-height: 1.6;
  color: #E2E8F0;
  padding: 10px;
  background: rgba(0, 0, 0, 0.25);
  border-radius: 6px;
  border-left: 3px solid var(--accent-cyan);
  margin-bottom: 12px;
}

.prompt-specs {
  display: flex;
  gap: 10px;
  flex-wrap: wrap;
}

.spec-tag {
  font-family: var(--font-mono);
  font-size: 0.72rem;
  color: var(--text-muted);
  background: rgba(255, 255, 255, 0.04);
  padding: 2px 8px;
  border-radius: 4px;
}

.mt-20 {
  margin-top: 20px;
}

/* Timeline */
.sim-timeline {
  display: flex;
  flex-direction: column;
  gap: 10px;
  margin-top: 12px;
  flex-grow: 1;
}

.tl-item {
  display: flex;
  gap: 12px;
  padding: 10px;
  border-radius: var(--radius-sm);
  background: rgba(255, 255, 255, 0.02);
  border: 1px solid var(--border-subtle);
  transition: all 0.2s ease;
  animation: fadeIn 0.3s ease;
}

.tl-item.completed {
  border-left: 3px solid var(--accent-lime);
}

.tl-item.auto-heal {
  border-left: 3px solid var(--accent-cyan);
  background: rgba(0, 245, 212, 0.04);
}

.tl-icon {
  font-size: 1.1rem;
}

.tl-details {
  flex-grow: 1;
}

.tl-title {
  font-size: 0.85rem;
  font-weight: 600;
  color: #F8FAFC;
}

.tl-sub {
  font-size: 0.75rem;
  color: var(--text-muted);
}

.tl-time {
  font-family: var(--font-mono);
  font-size: 0.75rem;
  color: var(--accent-lime);
}

/* Console Output */
.status-live {
  display: flex;
  align-items: center;
  gap: 6px;
  font-family: var(--font-mono);
  font-size: 0.75rem;
  color: var(--accent-lime);
}

.live-dot {
  width: 6px;
  height: 6px;
  border-radius: 50%;
  background: var(--accent-lime);
  box-shadow: 0 0 6px var(--accent-lime);
  animation: pulse-dot 1s infinite;
}

.sim-console {
  display: flex;
  flex-direction: column;
  flex-grow: 1;
  background: #06090F;
  border: 1px solid var(--border-subtle);
  border-radius: var(--radius-md);
  overflow: hidden;
}

.console-screen {
  flex-grow: 1;
  padding: 16px;
  font-family: var(--font-mono);
  font-size: 0.82rem;
  line-height: 1.6;
  max-height: 340px;
  overflow-y: auto;
  color: #94A3B8;
}

.console-metrics-bar {
  display: flex;
  align-items: center;
  justify-content: space-between;
  padding: 12px 18px;
  background: #0B101B;
  border-top: 1px solid var(--border-subtle);
  font-size: 0.8rem;
  flex-wrap: wrap;
  gap: 12px;
}

.c-metric {
  display: flex;
  align-items: center;
  gap: 6px;
}

.c-label {
  color: var(--text-muted);
}

.c-val {
  font-weight: 700;
  font-family: var(--font-mono);
}

.c-val.green { color: var(--accent-lime); }
.c-val.cyan { color: var(--accent-cyan); }
.c-val.lime { color: var(--accent-lime); }

.old-tokens {
  color: var(--text-muted);
  font-size: 0.72rem;
  margin-left: 4px;
}

/* ==========================================================================
   BENCHMARKS TABLE
   ========================================================================== */
.bench-section {
  padding: 100px 0;
  background: rgba(11, 15, 23, 0.4);
}

.bench-table-wrapper {
  overflow-x: auto;
  border: 1px solid var(--border-subtle);
  border-radius: var(--radius-lg);
  background: var(--bg-card);
  backdrop-filter: blur(16px);
}

.bench-table {
  width: 100%;
  border-collapse: collapse;
  text-align: left;
  font-size: 0.95rem;
}

.bench-table th, .bench-table td {
  padding: 18px 24px;
  border-bottom: 1px solid var(--border-subtle);
}

.bench-table th {
  background: rgba(15, 23, 42, 0.95);
  font-size: 0.9rem;
  font-weight: 700;
  color: #CBD5E1;
}

.th-brand {
  display: flex;
  align-items: center;
  gap: 8px;
  color: var(--accent-cyan);
}

.badge-champ {
  background: var(--accent-cyan);
  color: #06090F;
  font-size: 0.65rem;
  font-weight: 800;
  padding: 2px 6px;
  border-radius: 4px;
}

.bench-table td {
  color: var(--text-secondary);
}

.col-zeri {
  background: rgba(0, 245, 212, 0.04);
  border-left: 1px solid rgba(0, 245, 212, 0.2);
  border-right: 1px solid rgba(0, 245, 212, 0.2);
}

.highlight-td {
  color: #FFFFFF !important;
  font-size: 1.05rem;
}

.delta-good {
  color: var(--accent-lime);
  font-size: 0.8rem;
  font-weight: 700;
  margin-left: 4px;
}

/* ==========================================================================
   INTEGRATION & CODE SECTION
   ========================================================================== */
.integration-section {
  padding: 100px 0;
}

.code-showcase {
  max-width: 900px;
  margin: 0 auto;
  background: var(--bg-card);
  border: 1px solid var(--border-subtle);
  border-radius: var(--radius-lg);
  box-shadow: var(--shadow-terminal);
  overflow: hidden;
}

.code-tabs {
  display: flex;
  background: rgba(15, 23, 42, 0.95);
  border-bottom: 1px solid var(--border-subtle);
  overflow-x: auto;
}

.code-tab {
  display: flex;
  align-items: center;
  gap: 8px;
  padding: 14px 22px;
  background: transparent;
  border: none;
  color: var(--text-muted);
  font-size: 0.9rem;
  font-weight: 600;
  cursor: pointer;
  border-bottom: 2px solid transparent;
  transition: all 0.2s ease;
  white-space: nowrap;
}

.code-tab:hover {
  color: var(--text-primary);
  background: rgba(255, 255, 255, 0.02);
}

.code-tab.active {
  color: var(--accent-cyan);
  border-bottom-color: var(--accent-cyan);
  background: rgba(0, 245, 212, 0.05);
}

.code-panel {
  display: none;
}

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

.code-panel-header {
  display: flex;
  align-items: center;
  justify-content: space-between;
  padding: 12px 20px;
  background: rgba(11, 15, 23, 0.8);
  border-bottom: 1px solid var(--border-subtle);
}

.file-path {
  font-family: var(--font-mono);
  font-size: 0.8rem;
  color: var(--text-muted);
}

.copy-code-btn {
  display: flex;
  align-items: center;
  gap: 6px;
  background: rgba(255, 255, 255, 0.05);
  border: 1px solid var(--border-subtle);
  color: var(--text-secondary);
  padding: 4px 10px;
  border-radius: 6px;
  font-size: 0.78rem;
  cursor: pointer;
  transition: all 0.2s ease;
}

.copy-code-btn:hover {
  background: rgba(0, 245, 212, 0.1);
  color: var(--accent-cyan);
  border-color: rgba(0, 245, 212, 0.3);
}

.code-content {
  padding: 24px;
  background: #06090F;
  overflow-x: auto;
  font-size: 0.88rem;
  line-height: 1.65;
  color: #E2E8F0;
}

/* ==========================================================================
   FAQ SECTION
   ========================================================================== */
.faq-section {
  padding: 100px 0;
}

.faq-container {
  max-width: 820px;
}

.accordion-list {
  display: flex;
  flex-direction: column;
  gap: 14px;
}

.accordion-item {
  background: var(--bg-card);
  backdrop-filter: blur(12px);
  border: 1px solid var(--border-subtle);
  border-radius: var(--radius-md);
  overflow: hidden;
  transition: all 0.25s ease;
}

.accordion-item:hover {
  border-color: rgba(0, 245, 212, 0.3);
}

.accordion-item[open] {
  border-color: rgba(0, 245, 212, 0.4);
  background: rgba(17, 24, 39, 0.7);
}

.accordion-header {
  display: flex;
  align-items: center;
  justify-content: space-between;
  padding: 20px 24px;
  font-size: 1.05rem;
  font-weight: 600;
  color: #FFFFFF;
  cursor: pointer;
  user-select: none;
  list-style: none;
}

.accordion-header::-webkit-details-marker {
  display: none;
}

.acc-chevron {
  width: 10px;
  height: 10px;
  border-right: 2px solid var(--accent-cyan);
  border-bottom: 2px solid var(--accent-cyan);
  transform: rotate(45deg);
  transition: transform 0.25s ease;
  margin-left: 16px;
  flex-shrink: 0;
}

.accordion-item[open] .acc-chevron {
  transform: rotate(-135deg);
}

.accordion-body {
  padding: 0 24px 22px 24px;
  font-size: 0.95rem;
  line-height: 1.75;
  color: var(--text-secondary);
}

.accordion-body strong {
  color: #FFFFFF;
}

/* ==========================================================================
   CTA SECTION
   ========================================================================== */
.cta-section {
  padding: 80px 0 100px 0;
}

.cta-card {
  position: relative;
  border-radius: var(--radius-lg);
  background: linear-gradient(135deg, rgba(13, 22, 38, 0.95) 0%, rgba(6, 12, 24, 0.95) 100%);
  border: 1px solid rgba(0, 245, 212, 0.35);
  box-shadow: 0 20px 50px -10px rgba(0, 245, 212, 0.2);
  padding: 64px 40px;
  text-align: center;
  overflow: hidden;
}

.cta-sparks-bg {
  position: absolute;
  top: 0;
  left: 0;
  width: 100%;
  height: 100%;
  background: radial-gradient(circle at 50% 50%, rgba(0, 245, 212, 0.12) 0%, transparent 70%);
  pointer-events: none;
}

.cta-content {
  position: relative;
  z-index: 1;
  max-width: 700px;
  margin: 0 auto;
}

.cta-badge {
  margin-bottom: 20px;
}

.cta-title {
  font-size: clamp(2rem, 3.8vw, 2.8rem);
  margin-bottom: 18px;
}

.cta-desc {
  font-size: 1.1rem;
  line-height: 1.7;
  color: var(--text-secondary);
  margin-bottom: 36px;
}

.cta-actions {
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 16px;
  flex-wrap: wrap;
  margin-bottom: 30px;
}

.cta-install {
  background: rgba(6, 9, 15, 0.85);
}

.cta-btn {
  padding: 13px 28px;
}

.cta-stats {
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 14px;
  font-size: 0.85rem;
  color: var(--text-muted);
  flex-wrap: wrap;
}

/* ==========================================================================
   FOOTER
   ========================================================================== */
.site-footer {
  border-top: 1px solid var(--border-subtle);
  background: #04060A;
  padding: 80px 0 40px 0;
  position: relative;
  z-index: 2;
}

.footer-top {
  display: grid;
  grid-template-columns: 1.5fr 3fr;
  gap: 60px;
  margin-bottom: 60px;
}

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

.footer-tagline {
  font-size: 0.95rem;
  color: var(--text-secondary);
  line-height: 1.65;
  max-width: 320px;
}

.system-status {
  display: flex;
  align-items: center;
  gap: 8px;
  font-family: var(--font-mono);
  font-size: 0.78rem;
  color: var(--text-secondary);
  margin-top: 10px;
}

.status-indicator {
  width: 8px;
  height: 8px;
  border-radius: 50%;
  background: var(--accent-lime);
  box-shadow: 0 0 8px var(--accent-lime);
}

.footer-links-grid {
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  gap: 30px;
}

.footer-heading {
  font-size: 0.88rem;
  font-weight: 700;
  text-transform: uppercase;
  letter-spacing: 0.08em;
  color: #FFFFFF;
  margin-bottom: 20px;
}

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

.footer-nav a {
  font-size: 0.88rem;
  color: var(--text-muted);
}

.footer-nav a:hover {
  color: var(--accent-cyan);
}

.footer-bottom {
  display: flex;
  align-items: center;
  justify-content: space-between;
  padding-top: 30px;
  border-top: 1px solid rgba(255, 255, 255, 0.05);
  font-size: 0.85rem;
  color: var(--text-muted);
  flex-wrap: wrap;
  gap: 16px;
}

.legal-links {
  display: flex;
  gap: 12px;
}

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

/* ==========================================================================
   TOAST NOTIFICATION
   ========================================================================== */
.toast {
  position: fixed;
  bottom: 24px;
  right: 24px;
  background: rgba(15, 23, 42, 0.95);
  border: 1px solid var(--accent-cyan);
  box-shadow: 0 10px 30px rgba(0, 245, 212, 0.3);
  backdrop-filter: blur(12px);
  color: #FFFFFF;
  padding: 12px 20px;
  border-radius: var(--radius-full);
  display: flex;
  align-items: center;
  gap: 10px;
  font-size: 0.88rem;
  font-weight: 600;
  z-index: 999;
  opacity: 0;
  visibility: hidden;
  transform: translateY(20px);
  transition: all 0.3s cubic-bezier(0.16, 1, 0.3, 1);
}

.toast.show {
  opacity: 1;
  visibility: visible;
  transform: translateY(0);
}

.toast-icon {
  width: 18px;
  height: 18px;
  color: var(--accent-cyan);
}

/* ==========================================================================
   ANIMATIONS & RESPONSIVE
   ========================================================================== */
@keyframes fadeIn {
  from { opacity: 0; transform: translateY(6px); }
  to { opacity: 1; transform: translateY(0); }
}

@media (max-width: 1024px) {
  .hero-grid {
    grid-template-columns: 1fr;
    gap: 50px;
  }

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

  .metrics-grid {
    grid-template-columns: repeat(2, 1fr);
    gap: 20px;
  }

  .metric-item:nth-child(2)::after {
    display: none;
  }

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

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

  .sim-col:first-child {
    border-right: none;
    border-bottom: 1px solid var(--border-subtle);
  }

  .footer-top {
    grid-template-columns: 1fr;
    gap: 40px;
  }
}

@media (max-width: 768px) {
  :root {
    --header-height: 68px;
  }

  .nav-menu {
    position: fixed;
    top: var(--header-height);
    left: 0;
    width: 100%;
    background: rgba(6, 8, 13, 0.98);
    backdrop-filter: blur(25px);
    border-bottom: 1px solid var(--border-subtle);
    padding: 24px;
    transform: translateY(-100%);
    opacity: 0;
    visibility: hidden;
    transition: all 0.3s ease;
    z-index: 99;
  }

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

  .nav-list {
    flex-direction: column;
    align-items: flex-start;
    gap: 20px;
  }

  .mobile-toggle {
    display: block;
  }

  .header-actions .btn-primary,
  .header-actions .github-btn {
    display: none;
  }

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

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

  .metric-item::after {
    display: none !important;
  }

  .kernel-modules {
    grid-template-columns: 1fr;
  }

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

  .hero-cta-group {
    flex-direction: column;
    align-items: stretch;
  }

  .install-box {
    width: 100%;
    justify-content: space-between;
  }
}

@media (max-width: 480px) {
  .footer-links-grid {
    grid-template-columns: 1fr;
  }

  .footer-bottom {
    flex-direction: column;
    text-align: center;
  }
}
