/* ===== CSS Variables & Reset ===== */
:root {
  --deep-sea: #001F3F;
  --deep-sea-light: #002B57;
  --deep-sea-lighter: #003670;
  --aurora: #7FDBFF;
  --aurora-dim: rgba(127, 219, 255, 0.15);
  --aurora-glow: rgba(127, 219, 255, 0.3);
  --white: #FFFFFF;
  --gray-100: #F0F4F8;
  --gray-200: #D9E2EC;
  --gray-300: #BCCCDC;
  --gray-400: #9FB3C8;
  --gray-500: #627D98;
  --gray-600: #486581;
  --gray-700: #334E68;
  --gray-800: #243B53;
  --gray-900: #102A43;
  --success: #2ECC71;
  --warning: #F39C12;
  --font-sans: 'Inter', -apple-system, BlinkMacSystemFont, sans-serif;
  --font-mono: 'JetBrains Mono', 'Fira Code', monospace;
  --radius-sm: 6px;
  --radius-md: 10px;
  --radius-lg: 16px;
  --radius-xl: 24px;
  --shadow-sm: 0 1px 3px rgba(0, 0, 0, 0.3);
  --shadow-md: 0 4px 12px rgba(0, 0, 0, 0.3);
  --shadow-lg: 0 8px 30px rgba(0, 0, 0, 0.4);
  --shadow-glow: 0 0 30px rgba(127, 219, 255, 0.15);
  --transition: 0.3s cubic-bezier(0.4, 0, 0.2, 1);
}

*, *::before, *::after {
  margin: 0;
  padding: 0;
  box-sizing: border-box;
}

html {
  scroll-behavior: smooth;
  font-size: 16px;
}

body {
  font-family: var(--font-sans);
  background: var(--deep-sea);
  color: var(--gray-200);
  line-height: 1.6;
  overflow-x: hidden;
  -webkit-font-smoothing: antialiased;
}

a {
  color: inherit;
  text-decoration: none;
}

img { max-width: 100%; }

.container {
  max-width: 1200px;
  margin: 0 auto;
  padding: 0 24px;
}

/* ===== Typography ===== */
h1, h2, h3, h4 {
  color: var(--white);
  font-weight: 700;
  line-height: 1.2;
}

h1 { font-size: clamp(2.5rem, 5vw, 4rem); }
h2 { font-size: clamp(1.8rem, 3.5vw, 2.8rem); }
h3 { font-size: clamp(1.2rem, 2vw, 1.5rem); }

.gradient-text {
  background: linear-gradient(135deg, var(--aurora), #00B4D8, var(--aurora));
  background-size: 200% auto;
  -webkit-background-clip: text;
  -webkit-text-fill-color: transparent;
  background-clip: text;
  animation: gradientShift 4s ease infinite;
}

@keyframes gradientShift {
  0%, 100% { background-position: 0% center; }
  50% { background-position: 100% center; }
}

/* ===== Buttons ===== */
.btn {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  padding: 10px 24px;
  border-radius: var(--radius-md);
  font-family: var(--font-sans);
  font-weight: 600;
  font-size: 0.9rem;
  border: none;
  cursor: pointer;
  transition: var(--transition);
  white-space: nowrap;
}

.btn-primary {
  background: linear-gradient(135deg, var(--aurora), #00B4D8);
  color: var(--deep-sea);
}
.btn-primary:hover {
  box-shadow: 0 0 25px rgba(127, 219, 255, 0.4);
  transform: translateY(-2px);
}

.btn-outline {
  background: transparent;
  border: 1.5px solid var(--aurora);
  color: var(--aurora);
}
.btn-outline:hover {
  background: var(--aurora-dim);
  transform: translateY(-2px);
}

.btn-ghost {
  background: rgba(255, 255, 255, 0.1);
  color: var(--white);
  border: 1.5px solid rgba(255, 255, 255, 0.2);
}
.btn-ghost:hover {
  background: rgba(255, 255, 255, 0.15);
  transform: translateY(-2px);
}

.btn-lg {
  padding: 14px 32px;
  font-size: 1rem;
}

.btn-nav {
  background: var(--aurora);
  color: var(--deep-sea);
  padding: 8px 20px;
  font-size: 0.85rem;
}
.btn-nav:hover {
  box-shadow: 0 0 20px rgba(127, 219, 255, 0.3);
}

/* ===== Navbar ===== */
.navbar {
  position: fixed;
  top: 0;
  left: 0;
  right: 0;
  z-index: 1000;
  padding: 16px 0;
  transition: var(--transition);
  background: transparent;
}

.navbar.scrolled {
  background: rgba(0, 31, 63, 0.92);
  backdrop-filter: blur(20px);
  -webkit-backdrop-filter: blur(20px);
  border-bottom: 1px solid rgba(127, 219, 255, 0.1);
  padding: 10px 0;
}

.nav-container {
  display: flex;
  align-items: center;
  justify-content: space-between;
}

.logo {
  display: flex;
  align-items: center;
  gap: 10px;
}

.logo-icon {
  width: 36px;
  height: 36px;
}

.logo-text {
  font-size: 1.2rem;
  font-weight: 700;
  color: var(--white);
  letter-spacing: -0.02em;
}

.logo-ai {
  color: var(--aurora);
}

.nav-links {
  display: flex;
  align-items: center;
  gap: 32px;
}

.nav-links a:not(.btn) {
  font-size: 0.9rem;
  font-weight: 500;
  color: var(--gray-300);
  transition: var(--transition);
  position: relative;
}

.nav-links a:not(.btn):hover {
  color: var(--aurora);
}

.nav-links a:not(.btn)::after {
  content: '';
  position: absolute;
  bottom: -4px;
  left: 0;
  width: 0;
  height: 2px;
  background: var(--aurora);
  transition: var(--transition);
}

.nav-links a:not(.btn):hover::after {
  width: 100%;
}

.nav-toggle {
  display: none;
  flex-direction: column;
  gap: 5px;
  background: none;
  border: none;
  cursor: pointer;
  padding: 4px;
}

.nav-toggle span {
  width: 24px;
  height: 2px;
  background: var(--white);
  transition: var(--transition);
  border-radius: 2px;
}

/* ===== Hero Section ===== */
.hero {
  position: relative;
  min-height: 100vh;
  display: flex;
  align-items: center;
  justify-content: center;
  padding: 120px 0 80px;
  overflow: hidden;
}

#heroCanvas {
  position: absolute;
  top: 0;
  left: 0;
  width: 100%;
  height: 100%;
  z-index: 0;
}

.hero-content {
  position: relative;
  z-index: 1;
  text-align: center;
}

.hero-badge {
  display: inline-block;
  padding: 6px 16px;
  background: var(--aurora-dim);
  border: 1px solid rgba(127, 219, 255, 0.25);
  border-radius: 50px;
  font-size: 0.8rem;
  font-weight: 500;
  color: var(--aurora);
  margin-bottom: 24px;
  letter-spacing: 0.02em;
}

.hero-title {
  margin-bottom: 24px;
  letter-spacing: -0.03em;
}

.hero-subtitle {
  font-size: clamp(1rem, 1.8vw, 1.2rem);
  color: var(--gray-400);
  max-width: 640px;
  margin: 0 auto 40px;
  line-height: 1.7;
}

.hero-actions {
  display: flex;
  gap: 16px;
  justify-content: center;
  flex-wrap: wrap;
  margin-bottom: 64px;
}

.hero-stats {
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 40px;
  flex-wrap: wrap;
}

.stat {
  text-align: center;
}

.stat-number {
  font-size: 2.2rem;
  font-weight: 800;
  color: var(--aurora);
  letter-spacing: -0.02em;
}

.stat-suffix {
  font-size: 1.2rem;
  font-weight: 700;
  color: var(--aurora);
}

.stat-label {
  display: block;
  font-size: 0.8rem;
  color: var(--gray-500);
  margin-top: 4px;
  text-transform: uppercase;
  letter-spacing: 0.08em;
}

.stat-divider {
  width: 1px;
  height: 40px;
  background: var(--gray-700);
}

/* ===== Section Shared ===== */
.section-header {
  text-align: center;
  margin-bottom: 64px;
}

.section-tag {
  display: inline-block;
  padding: 4px 14px;
  background: var(--aurora-dim);
  border: 1px solid rgba(127, 219, 255, 0.2);
  border-radius: 50px;
  font-size: 0.75rem;
  font-weight: 600;
  color: var(--aurora);
  text-transform: uppercase;
  letter-spacing: 0.1em;
  margin-bottom: 16px;
}

.section-title {
  margin-bottom: 16px;
}

.section-desc {
  font-size: 1.1rem;
  color: var(--gray-400);
  max-width: 560px;
  margin: 0 auto;
}

/* ===== Values Section ===== */
.values {
  padding: 100px 0;
  position: relative;
}

.values::before {
  content: '';
  position: absolute;
  top: 0;
  left: 50%;
  transform: translateX(-50%);
  width: 600px;
  height: 600px;
  background: radial-gradient(circle, rgba(127, 219, 255, 0.04) 0%, transparent 70%);
  pointer-events: none;
}

.values-grid {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 24px;
}

.value-card {
  background: rgba(255, 255, 255, 0.03);
  border: 1px solid rgba(255, 255, 255, 0.06);
  border-radius: var(--radius-lg);
  padding: 36px 28px;
  transition: var(--transition);
  position: relative;
  overflow: hidden;
}

.value-card::before {
  content: '';
  position: absolute;
  top: 0;
  left: 0;
  right: 0;
  height: 2px;
  background: linear-gradient(90deg, transparent, var(--aurora), transparent);
  opacity: 0;
  transition: var(--transition);
}

.value-card:hover {
  background: rgba(255, 255, 255, 0.05);
  border-color: rgba(127, 219, 255, 0.15);
  transform: translateY(-4px);
  box-shadow: var(--shadow-glow);
}

.value-card:hover::before {
  opacity: 1;
}

.value-card.featured {
  background: rgba(127, 219, 255, 0.06);
  border-color: rgba(127, 219, 255, 0.15);
}

.value-icon {
  width: 56px;
  height: 56px;
  margin-bottom: 20px;
}

.value-icon svg {
  width: 100%;
  height: 100%;
}

.value-card h3 {
  margin-bottom: 12px;
  font-size: 1.25rem;
}

.value-card p {
  color: var(--gray-400);
  font-size: 0.95rem;
  line-height: 1.6;
  margin-bottom: 20px;
}

.value-tag {
  display: inline-block;
  padding: 4px 12px;
  background: var(--aurora-dim);
  border-radius: 50px;
  font-size: 0.75rem;
  font-weight: 600;
  color: var(--aurora);
}

/* ===== Features Section ===== */
.features {
  padding: 100px 0;
}

.feature-block {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 60px;
  align-items: center;
  margin-bottom: 100px;
}

.feature-block:last-child {
  margin-bottom: 0;
}

.feature-block.reverse {
  direction: rtl;
}

.feature-block.reverse > * {
  direction: ltr;
}

.feature-tag {
  display: inline-block;
  font-family: var(--font-mono);
  font-size: 0.8rem;
  color: var(--aurora);
  margin-bottom: 12px;
  opacity: 0.7;
}

.feature-info h3 {
  font-size: 1.8rem;
  margin-bottom: 16px;
}

.feature-info > p {
  color: var(--gray-400);
  font-size: 1rem;
  line-height: 1.7;
  margin-bottom: 24px;
}

.feature-list {
  list-style: none;
  display: flex;
  flex-direction: column;
  gap: 12px;
}

.feature-list li {
  display: flex;
  align-items: center;
  gap: 10px;
  font-size: 0.95rem;
  color: var(--gray-300);
}

.feature-list li::before {
  content: '';
  width: 6px;
  height: 6px;
  border-radius: 50%;
  background: var(--aurora);
  flex-shrink: 0;
}

/* Feature Visuals */
.feature-visual {
  background: rgba(255, 255, 255, 0.02);
  border: 1px solid rgba(255, 255, 255, 0.06);
  border-radius: var(--radius-lg);
  padding: 40px 30px;
  position: relative;
  overflow: hidden;
}

.feature-visual::after {
  content: '';
  position: absolute;
  top: -50%;
  right: -50%;
  width: 100%;
  height: 100%;
  background: radial-gradient(circle, rgba(127, 219, 255, 0.03) 0%, transparent 70%);
  pointer-events: none;
}

/* Logic Flow Demo */
.logic-flow-demo {
  display: flex;
  align-items: center;
  gap: 8px;
  position: relative;
  padding-bottom: 50px;
}

.flow-node {
  background: var(--deep-sea-light);
  border: 1px solid rgba(127, 219, 255, 0.2);
  border-radius: var(--radius-md);
  padding: 12px 16px;
  text-align: center;
  min-width: 90px;
  position: relative;
  z-index: 1;
}

.node-label {
  display: block;
  font-weight: 600;
  font-size: 0.85rem;
  color: var(--white);
}

.node-type {
  display: block;
  font-size: 0.7rem;
  color: var(--gray-500);
  margin-top: 2px;
}

.flow-node-input { border-color: rgba(46, 204, 113, 0.4); }
.flow-node-process { border-color: rgba(127, 219, 255, 0.4); }
.flow-node-decision { border-color: rgba(243, 156, 18, 0.4); }
.flow-node-output { border-color: rgba(46, 204, 113, 0.4); }

.flow-connector {
  width: 30px;
  height: 2px;
  background: var(--gray-700);
  position: relative;
  flex-shrink: 0;
}

.flow-pulse {
  position: absolute;
  top: -2px;
  left: 0;
  width: 6px;
  height: 6px;
  border-radius: 50%;
  background: var(--aurora);
  animation: flowPulse 2s ease-in-out infinite;
}

@keyframes flowPulse {
  0% { left: 0; opacity: 1; }
  100% { left: 100%; opacity: 0.3; }
}

.flow-loop {
  position: absolute;
  bottom: 0;
  left: 10%;
  right: 10%;
  text-align: center;
}

.loop-arrow {
  width: 100%;
  height: 40px;
}

.loop-label {
  font-size: 0.7rem;
  color: var(--gray-500);
  font-style: italic;
}

/* Orchestrator Demo */
.orchestrator-demo {
  display: flex;
  justify-content: center;
}

.orch-canvas {
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 16px;
  width: 100%;
}

.orch-node {
  background: var(--deep-sea-light);
  border: 1px solid rgba(127, 219, 255, 0.2);
  border-radius: var(--radius-md);
  overflow: hidden;
  min-width: 120px;
  text-align: center;
}

.orch-node-header {
  background: rgba(127, 219, 255, 0.1);
  padding: 6px 16px;
  font-family: var(--font-mono);
  font-size: 0.75rem;
  font-weight: 600;
  color: var(--aurora);
  letter-spacing: 0.05em;
}

.orch-node-body {
  padding: 10px 16px;
  font-size: 0.85rem;
  color: var(--gray-300);
}

.orch-if .orch-node-header { background: rgba(243, 156, 18, 0.15); color: var(--warning); }
.orch-then .orch-node-header { background: rgba(46, 204, 113, 0.15); color: var(--success); }
.orch-loop .orch-node-header { background: rgba(127, 219, 255, 0.15); color: var(--aurora); }

.orch-branch {
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 8px;
}

.branch-label {
  font-family: var(--font-mono);
  font-size: 0.7rem;
  color: var(--gray-500);
  padding: 2px 10px;
  background: rgba(255, 255, 255, 0.03);
  border-radius: 50px;
}

.orch-branch-true .branch-label { color: var(--success); }
.orch-branch-false .branch-label { color: var(--aurora); }

/* Governance Demo */
.gov-timeline {
  display: flex;
  flex-direction: column;
  gap: 0;
}

.gov-event {
  display: flex;
  align-items: flex-start;
  gap: 16px;
  padding: 14px 0;
  border-left: 2px solid var(--gray-700);
  padding-left: 20px;
  position: relative;
}

.gov-dot {
  position: absolute;
  left: -6px;
  top: 18px;
  width: 10px;
  height: 10px;
  border-radius: 50%;
  background: var(--gray-600);
}

.gov-success .gov-dot { background: var(--success); box-shadow: 0 0 8px rgba(46, 204, 113, 0.4); }
.gov-warning .gov-dot { background: var(--warning); box-shadow: 0 0 8px rgba(243, 156, 18, 0.4); }

.gov-time {
  font-family: var(--font-mono);
  font-size: 0.75rem;
  color: var(--gray-500);
  display: block;
}

.gov-action {
  font-size: 0.85rem;
  color: var(--gray-300);
  display: block;
  margin-top: 2px;
}

/* ===== Developers Section ===== */
.developers {
  padding: 100px 0;
  background: linear-gradient(180deg, transparent, rgba(127, 219, 255, 0.02), transparent);
}

.dev-grid {
  display: grid;
  grid-template-columns: 1.2fr 1fr;
  gap: 40px;
  align-items: start;
}

.code-preview {
  background: #0A1628;
  border: 1px solid rgba(255, 255, 255, 0.08);
  border-radius: var(--radius-lg);
  overflow: hidden;
}

.code-header {
  display: flex;
  align-items: center;
  gap: 12px;
  padding: 12px 16px;
  background: rgba(255, 255, 255, 0.03);
  border-bottom: 1px solid rgba(255, 255, 255, 0.06);
}

.code-dots {
  display: flex;
  gap: 6px;
}

.dot {
  width: 10px;
  height: 10px;
  border-radius: 50%;
}

.dot-red { background: #FF5F56; }
.dot-yellow { background: #FFBD2E; }
.dot-green { background: #27C93F; }

.code-filename {
  font-family: var(--font-mono);
  font-size: 0.8rem;
  color: var(--gray-500);
}

.code-body {
  padding: 20px;
  font-family: var(--font-mono);
  font-size: 0.82rem;
  line-height: 1.8;
  overflow-x: auto;
  color: var(--gray-300);
}

.code-keyword { color: #C792EA; }
.code-module { color: #82AAFF; }
.code-string { color: #C3E88D; }
.code-number { color: #F78C6C; }
.code-comment { color: #546E7A; font-style: italic; }

.dev-features {
  display: flex;
  flex-direction: column;
  gap: 16px;
}

.dev-card {
  display: flex;
  align-items: flex-start;
  gap: 16px;
  padding: 20px;
  background: rgba(255, 255, 255, 0.03);
  border: 1px solid rgba(255, 255, 255, 0.06);
  border-radius: var(--radius-md);
  transition: var(--transition);
}

.dev-card:hover {
  background: rgba(255, 255, 255, 0.05);
  border-color: rgba(127, 219, 255, 0.15);
  transform: translateX(4px);
}

.dev-card-icon {
  width: 40px;
  height: 40px;
  flex-shrink: 0;
}

.dev-card-icon svg {
  width: 100%;
  height: 100%;
}

.dev-card h4 {
  font-size: 1rem;
  margin-bottom: 4px;
}

.dev-card p {
  font-size: 0.85rem;
  color: var(--gray-400);
  line-height: 1.5;
}

/* ===== Playground Section ===== */
.playground {
  padding: 100px 0;
}

.playground-container {
  max-width: 800px;
  margin: 0 auto;
}

.playground-input-area {
  margin-bottom: 32px;
}

.playground-label {
  display: block;
  font-size: 0.85rem;
  font-weight: 600;
  color: var(--gray-300);
  margin-bottom: 8px;
}

.playground-textarea {
  width: 100%;
  padding: 16px;
  background: rgba(255, 255, 255, 0.03);
  border: 1px solid rgba(255, 255, 255, 0.1);
  border-radius: var(--radius-md);
  color: var(--white);
  font-family: var(--font-sans);
  font-size: 0.95rem;
  resize: vertical;
  transition: var(--transition);
  margin-bottom: 16px;
}

.playground-textarea:focus {
  outline: none;
  border-color: var(--aurora);
  box-shadow: 0 0 0 3px var(--aurora-dim);
}

.playground-textarea::placeholder {
  color: var(--gray-600);
}

.playground-output {
  background: rgba(255, 255, 255, 0.02);
  border: 1px solid rgba(255, 255, 255, 0.06);
  border-radius: var(--radius-lg);
  padding: 32px;
}

.cycle-step {
  display: flex;
  gap: 16px;
  opacity: 0;
  transform: translateY(10px);
  transition: opacity 0.5s ease, transform 0.5s ease;
}

.cycle-step.visible {
  opacity: 1;
  transform: translateY(0);
}

.step-indicator {
  display: flex;
  flex-direction: column;
  align-items: center;
  flex-shrink: 0;
}

.step-dot {
  width: 12px;
  height: 12px;
  border-radius: 50%;
  background: var(--gray-700);
  border: 2px solid var(--gray-600);
  transition: var(--transition);
  flex-shrink: 0;
}

.cycle-step.visible .step-dot {
  background: var(--aurora);
  border-color: var(--aurora);
  box-shadow: 0 0 10px rgba(127, 219, 255, 0.4);
}

.step-line {
  width: 2px;
  flex: 1;
  min-height: 30px;
  background: var(--gray-700);
}

.cycle-step.visible .step-line {
  background: linear-gradient(to bottom, var(--aurora), var(--gray-700));
}

.step-content {
  padding-bottom: 24px;
}

.step-header {
  font-weight: 600;
  font-size: 0.9rem;
  color: var(--white);
  margin-bottom: 6px;
  font-family: var(--font-mono);
}

.step-body {
  font-size: 0.85rem;
  color: var(--gray-400);
  line-height: 1.5;
}

.step-body.result {
  color: var(--success);
  font-weight: 500;
}

/* ===== CTA Section ===== */
.cta-section {
  padding: 80px 0;
}

.cta-card {
  text-align: center;
  padding: 64px 40px;
  background: linear-gradient(135deg, rgba(127, 219, 255, 0.08), rgba(0, 180, 216, 0.04));
  border: 1px solid rgba(127, 219, 255, 0.15);
  border-radius: var(--radius-xl);
  position: relative;
  overflow: hidden;
}

.cta-card::before {
  content: '';
  position: absolute;
  top: -100px;
  right: -100px;
  width: 300px;
  height: 300px;
  background: radial-gradient(circle, rgba(127, 219, 255, 0.06) 0%, transparent 70%);
  pointer-events: none;
}

.cta-card h2 {
  margin-bottom: 16px;
}

.cta-card p {
  font-size: 1.1rem;
  color: var(--gray-400);
  max-width: 500px;
  margin: 0 auto 32px;
}

.cta-actions {
  display: flex;
  gap: 16px;
  justify-content: center;
  flex-wrap: wrap;
}

/* ===== Footer ===== */
.footer {
  padding: 64px 0 32px;
  border-top: 1px solid rgba(255, 255, 255, 0.06);
}

.footer-grid {
  display: grid;
  grid-template-columns: 2fr 1fr 1fr 1fr;
  gap: 40px;
  margin-bottom: 48px;
}

.footer-desc {
  font-size: 0.9rem;
  color: var(--gray-500);
  margin-top: 16px;
  line-height: 1.6;
}

.footer-links {
  display: flex;
  flex-direction: column;
  gap: 10px;
}

.footer-links h4 {
  font-size: 0.85rem;
  font-weight: 600;
  text-transform: uppercase;
  letter-spacing: 0.08em;
  color: var(--gray-400);
  margin-bottom: 4px;
}

.footer-links a {
  font-size: 0.9rem;
  color: var(--gray-500);
  transition: var(--transition);
}

.footer-links a:hover {
  color: var(--aurora);
}

.footer-bottom {
  display: flex;
  align-items: center;
  justify-content: space-between;
  padding-top: 24px;
  border-top: 1px solid rgba(255, 255, 255, 0.06);
}

.footer-bottom p {
  font-size: 0.85rem;
  color: var(--gray-600);
}

.footer-legal {
  display: flex;
  gap: 24px;
}

.footer-legal a {
  font-size: 0.85rem;
  color: var(--gray-600);
  transition: var(--transition);
}

.footer-legal a:hover {
  color: var(--aurora);
}

/* ===== Responsive ===== */
@media (max-width: 1024px) {
  .values-grid {
    grid-template-columns: 1fr;
    max-width: 500px;
    margin: 0 auto;
  }

  .feature-block,
  .feature-block.reverse {
    grid-template-columns: 1fr;
    direction: ltr;
    gap: 32px;
  }

  .dev-grid {
    grid-template-columns: 1fr;
  }

  .footer-grid {
    grid-template-columns: 1fr 1fr;
  }
}

@media (max-width: 768px) {
  .nav-links {
    display: none;
    position: absolute;
    top: 100%;
    left: 0;
    right: 0;
    flex-direction: column;
    background: rgba(0, 31, 63, 0.98);
    backdrop-filter: blur(20px);
    padding: 24px;
    gap: 16px;
    border-bottom: 1px solid rgba(127, 219, 255, 0.1);
  }

  .nav-links.active {
    display: flex;
  }

  .nav-toggle {
    display: flex;
  }

  .hero-stats {
    gap: 24px;
  }

  .stat-divider {
    display: none;
  }

  .footer-grid {
    grid-template-columns: 1fr;
    gap: 32px;
  }

  .footer-bottom {
    flex-direction: column;
    gap: 16px;
    text-align: center;
  }

  .logic-flow-demo {
    flex-wrap: wrap;
    justify-content: center;
    gap: 12px;
  }

  .flow-connector {
    display: none;
  }

  .flow-loop {
    display: none;
  }
}

@media (max-width: 480px) {
  .container {
    padding: 0 16px;
  }

  .hero {
    padding: 100px 0 60px;
  }

  .hero-actions {
    flex-direction: column;
    align-items: center;
  }

  .btn-lg {
    width: 100%;
    justify-content: center;
  }

  .playground-output {
    padding: 20px;
  }
}

/* ===== Animations ===== */
@keyframes fadeInUp {
  from {
    opacity: 0;
    transform: translateY(20px);
  }
  to {
    opacity: 1;
    transform: translateY(0);
  }
}

.fade-in-up {
  animation: fadeInUp 0.6s ease forwards;
}

/* Loop animation on hover for value cards */
.value-card:hover .value-icon svg {
  animation: loopSpin 1.5s ease-in-out;
}

@keyframes loopSpin {
  0% { transform: rotate(0deg); }
  50% { transform: rotate(180deg); }
  100% { transform: rotate(360deg); }
}

/* Scrollbar */
::-webkit-scrollbar {
  width: 8px;
}

::-webkit-scrollbar-track {
  background: var(--deep-sea);
}

::-webkit-scrollbar-thumb {
  background: var(--gray-700);
  border-radius: 4px;
}

::-webkit-scrollbar-thumb:hover {
  background: var(--gray-600);
}
