/* ==================== Design System ==================== */
:root {
  /* Colors */
  --bg-primary: #0a0e1a;
  --bg-secondary: #0f1419;
  --bg-tertiary: #141921;
  --surface: #1a1f2e;
  --surface-elevated: #212838;
  
  --accent-primary: #00d9ff;
  --accent-secondary: #7c3aed;
  --accent-gradient: linear-gradient(135deg, #00d9ff 0%, #7c3aed 100%);
  
  --text-primary: #f0f4f8;
  --text-secondary: #94a3b8;
  --text-muted: #64748b;
  
  --border-subtle: rgba(255, 255, 255, 0.05);
  --border-medium: rgba(255, 255, 255, 0.1);
  
  /* Spacing */
  --spacing-xs: 0.5rem;
  --spacing-sm: 1rem;
  --spacing-md: 1.5rem;
  --spacing-lg: 2.5rem;
  --spacing-xl: 4rem;
  
  /* Typography */
  --font-sans: 'Inter', -apple-system, BlinkMacSystemFont, 'Segoe UI', sans-serif;
  --font-mono: 'JetBrains Mono', 'Fira Code', monospace;
  
  /* Effects */
  --shadow-sm: 0 1px 2px 0 rgba(0, 0, 0, 0.3);
  --shadow-md: 0 4px 6px -1px rgba(0, 0, 0, 0.4);
  --shadow-lg: 0 10px 15px -3px rgba(0, 0, 0, 0.5);
  --shadow-glow: 0 0 20px rgba(0, 217, 255, 0.3);
  
  --transition-fast: 150ms cubic-bezier(0.4, 0, 0.2, 1);
  --transition-base: 250ms cubic-bezier(0.4, 0, 0.2, 1);
  --transition-slow: 350ms cubic-bezier(0.4, 0, 0.2, 1);
}

/* ==================== Base Styles ==================== */
* {
  box-sizing: border-box;
  margin: 0;
  padding: 0;
}

html {
  scroll-behavior: smooth;
  scroll-padding-top: 80px;
}

body {
  font-family: var(--font-sans);
  line-height: 1.6;
  color: var(--text-primary);
  background: var(--bg-primary);
  background-image: 
    radial-gradient(at 0% 0%, rgba(0, 217, 255, 0.05) 0px, transparent 50%),
    radial-gradient(at 100% 100%, rgba(124, 58, 237, 0.05) 0px, transparent 50%);
  background-attachment: fixed;
  -webkit-font-smoothing: antialiased;
  -moz-osx-font-smoothing: grayscale;
}

.container {
  max-width: 1200px;
  margin: 0 auto;
  padding: 0 var(--spacing-md);
}

/* ==================== Header ==================== */
.site-header {
  position: sticky;
  top: 0;
  z-index: 1000;
  background: rgba(10, 14, 26, 0.8);
  backdrop-filter: blur(12px);
  border-bottom: 1px solid var(--border-subtle);
  transition: all var(--transition-base);
}

.header-inner {
  display: flex;
  align-items: center;
  justify-content: space-between;
  padding: var(--spacing-md) 0;
}

.logo-wrapper {
  display: flex;
  align-items: center;
  gap: var(--spacing-sm);
}

.logo {
  font-size: 1.5rem;
  font-weight: 700;
  letter-spacing: -0.02em;
  margin: 0;
}

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

.tagline {
  font-size: 0.75rem;
  color: var(--text-muted);
  text-transform: uppercase;
  letter-spacing: 0.1em;
  padding: 0.25rem 0.5rem;
  background: var(--surface);
  border-radius: 4px;
}

.nav {
  display: flex;
  align-items: center;
  gap: var(--spacing-md);
}

.nav a {
  color: var(--text-secondary);
  text-decoration: none;
  font-size: 0.9rem;
  font-weight: 500;
  transition: color var(--transition-fast);
  position: relative;
}

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

.nav a::after {
  content: '';
  position: absolute;
  bottom: -4px;
  left: 0;
  width: 0;
  height: 2px;
  background: var(--accent-gradient);
  transition: width var(--transition-base);
}

.nav a:hover::after {
  width: 100%;
}

.nav-cta {
  background: var(--accent-gradient);
  color: white !important;
  padding: 0.5rem 1rem;
  border-radius: 8px;
  font-weight: 600;
}

.nav-cta::after {
  display: none;
}

/* ==================== Hero Section ==================== */
.hero {
  position: relative;
  padding: var(--spacing-xl) 0 var(--spacing-lg);
  overflow: hidden;
}

.hero-grid {
  position: absolute;
  inset: 0;
  background-image: 
    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: 50px 50px;
  mask-image: radial-gradient(ellipse at center, black 20%, transparent 70%);
  pointer-events: none;
}

.hero-content {
  position: relative;
  text-align: center;
  max-width: 900px;
  margin: 0 auto;
}

.badge {
  display: inline-block;
  padding: 0.5rem 1rem;
  background: var(--surface);
  border: 1px solid var(--border-medium);
  border-radius: 999px;
  font-size: 0.875rem;
  font-weight: 500;
  color: var(--text-secondary);
  margin-bottom: var(--spacing-md);
  animation: fadeInUp 0.6s ease-out;
}

.hero-title {
  font-size: clamp(2rem, 5vw, 3.5rem);
  font-weight: 700;
  line-height: 1.1;
  letter-spacing: -0.02em;
  margin-bottom: var(--spacing-md);
  animation: fadeInUp 0.6s ease-out 0.1s both;
}

.gradient-text {
  background: var(--accent-gradient);
  -webkit-background-clip: text;
  background-clip: text;
  -webkit-text-fill-color: transparent;
  display: inline-block;
}

.hero-lead {
  font-size: 1.25rem;
  color: var(--text-secondary);
  max-width: 700px;
  margin: 0 auto var(--spacing-lg);
  line-height: 1.7;
  animation: fadeInUp 0.6s ease-out 0.2s both;
}

.hero-actions {
  display: flex;
  gap: var(--spacing-sm);
  justify-content: center;
  flex-wrap: wrap;
  margin-bottom: var(--spacing-xl);
  animation: fadeInUp 0.6s ease-out 0.3s both;
}

.hero-stats {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(140px, 1fr));
  gap: var(--spacing-lg);
  max-width: 600px;
  margin: 0 auto;
  animation: fadeInUp 0.6s ease-out 0.4s both;
}

.stat {
  text-align: center;
}

.stat-value {
  font-size: 2.5rem;
  font-weight: 700;
  background: var(--accent-gradient);
  -webkit-background-clip: text;
  background-clip: text;
  -webkit-text-fill-color: transparent;
  line-height: 1;
  margin-bottom: 0.5rem;
}

.stat-label {
  font-size: 0.875rem;
  color: var(--text-muted);
  text-transform: uppercase;
  letter-spacing: 0.05em;
}

/* ==================== Buttons ==================== */
.btn {
  display: inline-flex;
  align-items: center;
  gap: 0.5rem;
  padding: 0.75rem 1.5rem;
  border-radius: 10px;
  font-weight: 600;
  font-size: 0.95rem;
  text-decoration: none;
  border: none;
  cursor: pointer;
  transition: all var(--transition-base);
  position: relative;
  overflow: hidden;
}

.btn::before {
  content: '';
  position: absolute;
  inset: 0;
  background: white;
  opacity: 0;
  transition: opacity var(--transition-base);
}

.btn:hover::before {
  opacity: 0.1;
}

.btn span, .btn svg {
  position: relative;
  z-index: 1;
}

.btn-primary {
  background: var(--accent-gradient);
  color: white;
  box-shadow: 0 0 20px rgba(0, 217, 255, 0.3);
}

.btn-primary:hover {
  box-shadow: 0 0 30px rgba(0, 217, 255, 0.5);
  transform: translateY(-2px);
}

.btn-secondary {
  background: var(--surface);
  color: var(--text-primary);
  border: 1px solid var(--border-medium);
}

.btn-secondary:hover {
  border-color: var(--accent-primary);
  transform: translateY(-2px);
}

.btn-large {
  padding: 1rem 2rem;
  font-size: 1.1rem;
}

/* ==================== Section Styles ==================== */
section {
  padding: var(--spacing-xl) 0;
}

.section-header {
  text-align: center;
  margin-bottom: var(--spacing-xl);
}

.section-label {
  display: inline-block;
  font-size: 0.875rem;
  font-weight: 600;
  text-transform: uppercase;
  letter-spacing: 0.1em;
  color: var(--accent-primary);
  margin-bottom: var(--spacing-sm);
}

.section-title {
  font-size: clamp(1.75rem, 4vw, 2.5rem);
  font-weight: 700;
  letter-spacing: -0.02em;
  margin-bottom: var(--spacing-sm);
}

.section-subtitle {
  font-size: 1.125rem;
  color: var(--text-secondary);
  max-width: 600px;
  margin: 0 auto;
}

/* ==================== Expertise Section ==================== */
.section-expertise {
  background: var(--bg-secondary);
}

.expertise-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(300px, 1fr));
  gap: var(--spacing-md);
}

.expertise-card {
  background: var(--surface);
  border: 1px solid var(--border-subtle);
  border-radius: 16px;
  padding: var(--spacing-lg);
  transition: all var(--transition-base);
  position: relative;
  overflow: hidden;
}

.expertise-card::before {
  content: '';
  position: absolute;
  top: 0;
  left: 0;
  right: 0;
  height: 3px;
  background: var(--accent-gradient);
  opacity: 0;
  transition: opacity var(--transition-base);
}

.expertise-card:hover {
  border-color: var(--border-medium);
  transform: translateY(-4px);
  box-shadow: var(--shadow-lg);
}

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

.expertise-icon {
  font-size: 2.5rem;
  margin-bottom: var(--spacing-sm);
}

.expertise-card h4 {
  font-size: 1.25rem;
  margin-bottom: var(--spacing-sm);
  color: var(--text-primary);
}

.expertise-card p {
  color: var(--text-secondary);
  margin-bottom: var(--spacing-md);
  line-height: 1.7;
}

.tech-tags {
  display: flex;
  flex-wrap: wrap;
  gap: 0.5rem;
  list-style: none;
}

.tech-tags li {
  font-size: 0.75rem;
  padding: 0.25rem 0.75rem;
  background: var(--bg-primary);
  border: 1px solid var(--border-subtle);
  border-radius: 6px;
  color: var(--text-muted);
  font-family: var(--font-mono);
}

/* ==================== Solutions Section ==================== */
.solutions-grid {
  display: grid;
  gap: var(--spacing-lg);
}

.solution-card {
  background: var(--surface);
  border: 1px solid var(--border-subtle);
  border-radius: 16px;
  padding: var(--spacing-lg);
  transition: all var(--transition-base);
  position: relative;
}

.solution-card:hover {
  border-color: var(--accent-primary);
  transform: translateX(8px);
}

.solution-number {
  position: absolute;
  top: var(--spacing-lg);
  right: var(--spacing-lg);
  font-size: 3rem;
  font-weight: 700;
  color: rgba(255, 255, 255, 0.03);
  line-height: 1;
}

.solution-card h4 {
  font-size: 1.5rem;
  margin-bottom: var(--spacing-sm);
  color: var(--text-primary);
}

.solution-card p {
  color: var(--text-secondary);
  margin-bottom: var(--spacing-md);
  line-height: 1.7;
}

.solution-outcome {
  display: flex;
  gap: 0.5rem;
  padding-top: var(--spacing-md);
  border-top: 1px solid var(--border-subtle);
  font-size: 0.9rem;
}

.outcome-label {
  color: var(--accent-primary);
  font-weight: 600;
}

.outcome-label + span {
  color: var(--text-secondary);
}

/* ==================== Tech Stack Section ==================== */
.section-tech {
  background: var(--bg-secondary);
}

.tech-categories {
  display: grid;
  gap: var(--spacing-lg);
}

.tech-category {
  background: var(--surface);
  border: 1px solid var(--border-subtle);
  border-radius: 16px;
  padding: var(--spacing-lg);
}

.tech-category-title {
  font-size: 1.125rem;
  font-weight: 600;
  margin-bottom: var(--spacing-md);
  color: var(--accent-primary);
}

.tech-items {
  display: flex;
  flex-wrap: wrap;
  gap: 0.75rem;
}

.tech-item {
  padding: 0.5rem 1rem;
  background: var(--bg-primary);
  border: 1px solid var(--border-subtle);
  border-radius: 8px;
  font-size: 0.875rem;
  font-weight: 500;
  color: var(--text-secondary);
  transition: all var(--transition-fast);
  font-family: var(--font-mono);
}

.tech-item:hover {
  border-color: var(--accent-primary);
  color: var(--accent-primary);
  transform: translateY(-2px);
}

/* ==================== CTA Section ==================== */
.section-cta {
  padding: var(--spacing-xl) 0;
}

.cta-box {
  text-align: center;
  background: var(--surface);
  border: 1px solid var(--border-medium);
  border-radius: 20px;
  padding: var(--spacing-xl);
  position: relative;
  overflow: hidden;
}

.cta-box::before {
  content: '';
  position: absolute;
  top: -50%;
  left: -50%;
  width: 200%;
  height: 200%;
  background: radial-gradient(circle, rgba(0, 217, 255, 0.1) 0%, transparent 70%);
  animation: pulse 4s ease-in-out infinite;
}

.cta-box > * {
  position: relative;
  z-index: 1;
}

.cta-box h3 {
  font-size: 2rem;
  margin-bottom: var(--spacing-sm);
}

.cta-box p {
  color: var(--text-secondary);
  margin-bottom: var(--spacing-lg);
  max-width: 600px;
  margin-left: auto;
  margin-right: auto;
}

/* ==================== Contact Section ==================== */
.section-contact {
  background: var(--bg-secondary);
}

.contact-wrapper {
  display: grid;
  grid-template-columns: 1fr 1.5fr;
  gap: var(--spacing-xl);
  align-items: start;
}

.contact-info {
  position: sticky;
  top: 100px;
}

.contact-info .section-label {
  display: block;
  text-align: left;
}

.contact-info .section-title {
  text-align: left;
  margin-bottom: var(--spacing-md);
}

.contact-info > p {
  color: var(--text-secondary);
  line-height: 1.7;
  margin-bottom: var(--spacing-lg);
}

.contact-details {
  display: grid;
  gap: var(--spacing-md);
}

.contact-detail {
  display: flex;
  gap: var(--spacing-sm);
  align-items: start;
}

.contact-icon {
  font-size: 1.5rem;
  width: 40px;
  height: 40px;
  display: flex;
  align-items: center;
  justify-content: center;
  background: var(--surface);
  border-radius: 10px;
  flex-shrink: 0;
}

.contact-detail-label {
  font-size: 0.875rem;
  color: var(--text-muted);
  margin-bottom: 0.25rem;
}

.contact-detail-value {
  font-weight: 600;
  color: var(--text-primary);
}

/* ==================== Form Styles ==================== */
.contact-form {
  background: var(--surface);
  border: 1px solid var(--border-subtle);
  border-radius: 16px;
  padding: var(--spacing-lg);
}

.form-group {
  margin-bottom: var(--spacing-md);
}

.form-group label {
  display: block;
  font-size: 0.875rem;
  font-weight: 600;
  color: var(--text-secondary);
  margin-bottom: 0.5rem;
}

.form-group input,
.form-group textarea,
.form-group select {
  width: 100%;
  padding: 0.75rem 1rem;
  background: var(--bg-primary);
  border: 1px solid var(--border-subtle);
  border-radius: 10px;
  color: var(--text-primary);
  font-family: var(--font-sans);
  font-size: 0.95rem;
  transition: all var(--transition-fast);
}

.form-group input:focus,
.form-group textarea:focus,
.form-group select:focus {
  outline: none;
  border-color: var(--accent-primary);
  box-shadow: 0 0 0 3px rgba(0, 217, 255, 0.1);
}

.form-group textarea {
  resize: vertical;
  min-height: 120px;
}

.form-actions {
  display: flex;
  gap: var(--spacing-sm);
  align-items: center;
  margin-top: var(--spacing-lg);
}

.status {
  font-weight: 600;
  color: var(--accent-primary);
}

/* ==================== Footer ==================== */
.site-footer {
  background: var(--bg-secondary);
  border-top: 1px solid var(--border-subtle);
  padding: var(--spacing-xl) 0 var(--spacing-lg);
}

.footer-content {
  display: grid;
  grid-template-columns: 2fr 1fr;
  gap: var(--spacing-xl);
  margin-bottom: var(--spacing-lg);
}

.footer-brand h4 {
  margin-bottom: var(--spacing-sm);
}

.footer-brand p {
  color: var(--text-secondary);
  line-height: 1.7;
  max-width: 400px;
}

.footer-links {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: var(--spacing-lg);
}

.footer-col h5 {
  font-size: 0.875rem;
  font-weight: 600;
  text-transform: uppercase;
  letter-spacing: 0.05em;
  color: var(--text-muted);
  margin-bottom: var(--spacing-sm);
}

.footer-col ul {
  list-style: none;
}

.footer-col ul li {
  margin-bottom: 0.5rem;
}

.footer-col a {
  color: var(--text-secondary);
  text-decoration: none;
  transition: color var(--transition-fast);
}

.footer-col a:hover {
  color: var(--accent-primary);
}

.footer-bottom {
  padding-top: var(--spacing-lg);
  border-top: 1px solid var(--border-subtle);
  text-align: center;
  color: var(--text-muted);
  font-size: 0.875rem;
}

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

@keyframes pulse {
  0%, 100% {
    opacity: 0.3;
  }
  50% {
    opacity: 0.6;
  }
}

[data-animate] {
  opacity: 0;
  transform: translateY(30px);
  transition: all 0.6s ease-out;
}

[data-animate].animate-in {
  opacity: 1;
  transform: translateY(0);
}

/* ==================== Responsive Design ==================== */
@media (max-width: 1024px) {
  .contact-wrapper {
    grid-template-columns: 1fr;
  }
  
  .contact-info {
    position: static;
  }
  
  .footer-content {
    grid-template-columns: 1fr;
  }
}

@media (max-width: 768px) {
  .header-inner {
    flex-direction: column;
    gap: var(--spacing-sm);
    padding: var(--spacing-sm) 0;
  }
  
  .nav {
    width: 100%;
    justify-content: center;
    gap: var(--spacing-sm);
  }
  
  .nav a {
    font-size: 0.85rem;
  }
  
  .hero {
    padding: var(--spacing-lg) 0;
  }
  
  .hero-actions {
    flex-direction: column;
    width: 100%;
  }
  
  .btn {
    width: 100%;
    justify-content: center;
  }
  
  .expertise-grid {
    grid-template-columns: 1fr;
  }
  
  section {
    padding: var(--spacing-lg) 0;
  }
  
  .footer-links {
    grid-template-columns: 1fr;
  }
}

@media (max-width: 480px) {
  :root {
    --spacing-lg: 2rem;
    --spacing-xl: 3rem;
  }
  
  .hero-title {
    font-size: 1.75rem;
  }
  
  .hero-lead {
    font-size: 1rem;
  }
  
  .stat-value {
    font-size: 2rem;
  }
}

/* ==================== Particle Canvas ==================== */
.particle-canvas {
  position: absolute;
  top: 0;
  left: 0;
  width: 100%;
  height: 100%;
  pointer-events: none;
  opacity: 0.4;
}

/* ==================== Typing Animation ==================== */
.typing-text {
  position: relative;
  display: inline-block;
}

.typing-text::after {
  content: '|';
  position: absolute;
  right: -8px;
  animation: blink 1s infinite;
  color: var(--accent-primary);
}

@keyframes blink {
  0%, 50% { opacity: 1; }
  51%, 100% { opacity: 0; }
}

/* ==================== Demo Section ==================== */
.section-demo {
  padding: var(--spacing-xl) 0;
  background: linear-gradient(180deg, var(--bg-primary) 0%, var(--bg-secondary) 100%);
  position: relative;
  overflow: hidden;
}

.demo-tabs {
  display: flex;
  gap: var(--spacing-sm);
  margin-bottom: var(--spacing-lg);
  justify-content: center;
  flex-wrap: wrap;
}

.demo-tab {
  padding: 0.75rem 1.5rem;
  background: var(--surface);
  border: 1px solid var(--border-medium);
  border-radius: 8px;
  color: var(--text-secondary);
  font-weight: 500;
  cursor: pointer;
  transition: all var(--transition-base);
  font-family: var(--font-sans);
  font-size: 0.95rem;
}

.demo-tab:hover {
  border-color: var(--accent-primary);
  color: var(--text-primary);
  transform: translateY(-2px);
}

.demo-tab.active {
  background: var(--accent-gradient);
  border-color: transparent;
  color: white;
  box-shadow: var(--shadow-glow);
}

.demo-content {
  display: none;
  animation: fadeIn 0.4s ease-in;
}

.demo-content.active {
  display: block;
}

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

.demo-split {
  display: grid;
  grid-template-columns: 1fr 1.5fr;
  gap: var(--spacing-lg);
  margin-top: var(--spacing-lg);
}

.demo-control h4 {
  font-size: 1.5rem;
  margin-bottom: var(--spacing-sm);
  color: var(--text-primary);
}

.demo-control p {
  color: var(--text-secondary);
  margin-bottom: var(--spacing-md);
}

.demo-input-group {
  display: flex;
  flex-direction: column;
  gap: var(--spacing-sm);
}

.demo-input-group textarea {
  width: 100%;
  padding: var(--spacing-sm);
  background: var(--surface);
  border: 1px solid var(--border-medium);
  border-radius: 8px;
  color: var(--text-primary);
  font-family: var(--font-sans);
  font-size: 0.95rem;
  resize: vertical;
  transition: all var(--transition-base);
}

.demo-input-group textarea:focus {
  outline: none;
  border-color: var(--accent-primary);
  box-shadow: 0 0 0 3px rgba(0, 217, 255, 0.1);
}

.demo-visual {
  background: var(--surface);
  border: 1px solid var(--border-medium);
  border-radius: 12px;
  padding: var(--spacing-md);
  min-height: 400px;
}

/* ==================== Agent Flow ==================== */
.agent-flow {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: var(--spacing-sm);
  margin-bottom: var(--spacing-md);
  flex-wrap: wrap;
}

.agent-node {
  flex: 1;
  min-width: 140px;
  background: var(--bg-secondary);
  border: 2px solid var(--border-medium);
  border-radius: 12px;
  padding: var(--spacing-md);
  text-align: center;
  transition: all var(--transition-base);
}

.agent-node.active {
  border-color: var(--accent-primary);
  background: rgba(0, 217, 255, 0.05);
  box-shadow: 0 0 20px rgba(0, 217, 255, 0.2);
  animation: pulse 1.5s ease-in-out infinite;
}

.agent-node.completed {
  border-color: #10b981;
  background: rgba(16, 185, 129, 0.05);
}

@keyframes pulse {
  0%, 100% { transform: scale(1); }
  50% { transform: scale(1.02); }
}

.node-icon {
  font-size: 2rem;
  margin-bottom: var(--spacing-xs);
}

.node-label {
  font-size: 0.85rem;
  font-weight: 600;
  color: var(--text-primary);
  margin-bottom: var(--spacing-xs);
}

.node-status {
  font-size: 0.75rem;
  color: var(--text-muted);
  text-transform: uppercase;
  letter-spacing: 0.05em;
}

.flow-arrow {
  color: var(--accent-primary);
  font-size: 1.5rem;
  opacity: 0.5;
}

.agent-output {
  background: var(--bg-primary);
  border: 1px solid var(--border-subtle);
  border-radius: 8px;
  padding: var(--spacing-md);
  min-height: 200px;
  font-family: var(--font-mono);
  font-size: 0.85rem;
  color: var(--text-secondary);
  line-height: 1.6;
  overflow-y: auto;
}

.agent-output:empty::before {
  content: 'Output will appear here...';
  color: var(--text-muted);
  font-style: italic;
}

/* ==================== Code Output ==================== */
.code-output {
  background: var(--bg-primary);
  border-radius: 8px;
  overflow: hidden;
}

.code-header {
  display: flex;
  justify-content: space-between;
  align-items: center;
  padding: var(--spacing-sm) var(--spacing-md);
  background: var(--bg-secondary);
  border-bottom: 1px solid var(--border-subtle);
}

.code-lang {
  font-family: var(--font-mono);
  font-size: 0.85rem;
  color: var(--accent-primary);
  font-weight: 500;
}

.copy-btn {
  padding: 0.4rem 0.8rem;
  background: var(--surface);
  border: 1px solid var(--border-medium);
  border-radius: 6px;
  color: var(--text-secondary);
  font-size: 0.8rem;
  cursor: pointer;
  transition: all var(--transition-fast);
  font-family: var(--font-sans);
}

.copy-btn:hover {
  border-color: var(--accent-primary);
  color: var(--accent-primary);
}

.copy-btn.copied {
  background: var(--accent-primary);
  color: white;
  border-color: var(--accent-primary);
}

.code-output pre {
  margin: 0;
  padding: var(--spacing-md);
  overflow-x: auto;
}

.code-output code {
  font-family: var(--font-mono);
  font-size: 0.85rem;
  line-height: 1.6;
  color: var(--text-secondary);
}

/* ==================== Quiz ==================== */
.quiz-container {
  max-width: 700px;
  margin: var(--spacing-lg) auto 0;
}

.quiz-progress {
  display: flex;
  align-items: center;
  gap: var(--spacing-md);
  margin-bottom: var(--spacing-lg);
}

.progress-bar {
  flex: 1;
  height: 8px;
  background: var(--surface);
  border-radius: 99px;
  overflow: hidden;
}

.progress-fill {
  height: 100%;
  background: var(--accent-gradient);
  transition: width var(--transition-slow);
  width: 20%;
}

.progress-text {
  font-size: 0.9rem;
  color: var(--text-secondary);
  white-space: nowrap;
  font-weight: 500;
}

.quiz-question {
  background: var(--surface);
  border: 1px solid var(--border-medium);
  border-radius: 12px;
  padding: var(--spacing-lg);
}

.question-title {
  font-size: 1.5rem;
  margin-bottom: var(--spacing-md);
  color: var(--text-primary);
}

.quiz-options {
  display: flex;
  flex-direction: column;
  gap: var(--spacing-sm);
}

.quiz-option {
  padding: var(--spacing-md);
  background: var(--bg-secondary);
  border: 2px solid var(--border-medium);
  border-radius: 10px;
  color: var(--text-primary);
  font-size: 1rem;
  text-align: left;
  cursor: pointer;
  transition: all var(--transition-base);
  font-family: var(--font-sans);
  font-weight: 500;
}

.quiz-option:hover {
  border-color: var(--accent-primary);
  background: rgba(0, 217, 255, 0.05);
  transform: translateX(8px);
}

.quiz-option.selected {
  border-color: var(--accent-primary);
  background: rgba(0, 217, 255, 0.1);
}

.quiz-result {
  background: var(--surface);
  border: 1px solid var(--border-medium);
  border-radius: 12px;
  padding: var(--spacing-xl);
  text-align: center;
}

.result-icon {
  font-size: 4rem;
  margin-bottom: var(--spacing-md);
  animation: bounceIn 0.6s ease-out;
}

@keyframes bounceIn {
  0% { transform: scale(0); }
  50% { transform: scale(1.1); }
  100% { transform: scale(1); }
}

.result-title {
  font-size: 1.75rem;
  margin-bottom: var(--spacing-sm);
  color: var(--text-primary);
}

.result-description {
  color: var(--text-secondary);
  font-size: 1.1rem;
  margin-bottom: var(--spacing-md);
  line-height: 1.6;
}

.result-features {
  background: var(--bg-secondary);
  border-radius: 8px;
  padding: var(--spacing-md);
  margin-bottom: var(--spacing-lg);
  text-align: left;
}

.result-features ul {
  list-style: none;
  padding: 0;
}

.result-features li {
  padding: var(--spacing-xs) 0;
  color: var(--text-secondary);
  display: flex;
  align-items: center;
  gap: var(--spacing-xs);
}

.result-features li::before {
  content: '✓';
  color: var(--accent-primary);
  font-weight: bold;
  font-size: 1.2rem;
}

.result-actions {
  display: flex;
  gap: var(--spacing-sm);
  justify-content: center;
  flex-wrap: wrap;
}

/* ==================== Scroll Animations ==================== */
[data-animate] {
  opacity: 0;
  transform: translateY(30px);
  transition: all 0.6s cubic-bezier(0.4, 0, 0.2, 1);
}

[data-animate].visible {
  opacity: 1;
  transform: translateY(0);
}

/* ==================== Responsive Demo Section ==================== */
@media (max-width: 768px) {
  .demo-split {
    grid-template-columns: 1fr;
  }
  
  .demo-tabs {
    flex-direction: column;
  }
  
  .demo-tab {
    width: 100%;
  }
  
  .agent-flow {
    flex-direction: column;
  }
  
  .flow-arrow {
    transform: rotate(90deg);
  }
  
  .agent-node {
    width: 100%;
  }
}
