/* ==========================================================
   DataPulse - Web Design System & Unified Styles
   Matches the Flutter App Dark Modern Tech Aesthetic
========================================================== */

@import url('https://fonts.googleapis.com/css2?family=Inter:wght@300;400;500;600;700;800&family=Outfit:wght@500;600;700;800;900&family=JetBrains+Mono:wght@400;500;600&display=swap');

:root {
  /* Brand Color Palette */
  --bg-dark: #050814;
  --bg-surface: #0a0f1d;
  --bg-card: rgba(14, 23, 42, 0.75);
  --bg-card-hover: rgba(20, 32, 58, 0.85);
  --border-glass: rgba(255, 255, 255, 0.08);
  --border-highlight: rgba(0, 240, 255, 0.3);
  
  /* Primary & Accent Glows */
  --accent-cyan: #00f0ff;
  --accent-cyan-glow: rgba(0, 240, 255, 0.25);
  --accent-purple: #8b5cf6;
  --accent-purple-glow: rgba(139, 92, 246, 0.25);
  --accent-emerald: #10b981;
  --accent-amber: #f59e0b;
  --accent-rose: #f43f5e;
  
  /* Typography Colors */
  --text-main: #f8fafc;
  --text-muted: #94a3b8;
  --text-subtle: #64748b;
  --text-white: #ffffff;
  
  /* Gradients */
  --grad-cyan-purple: linear-gradient(135deg, #00f0ff 0%, #8b5cf6 100%);
  --grad-emerald-cyan: linear-gradient(135deg, #10b981 0%, #00f0ff 100%);
  --grad-card: linear-gradient(180deg, rgba(255, 255, 255, 0.04) 0%, rgba(255, 255, 255, 0.01) 100%);
  
  /* Layout & Sizing */
  --container-max: 1200px;
  --header-height: 76px;
  --radius-sm: 8px;
  --radius-md: 14px;
  --radius-lg: 20px;
  --radius-full: 9999px;
  
  /* Shadow & Transitions */
  --shadow-soft: 0 10px 30px -10px rgba(0, 0, 0, 0.5);
  --shadow-glow: 0 0 25px rgba(0, 240, 255, 0.25);
  --shadow-purple-glow: 0 0 25px rgba(139, 92, 246, 0.25);
  --transition-fast: 0.2s cubic-bezier(0.4, 0, 0.2, 1);
  --transition-normal: 0.3s cubic-bezier(0.4, 0, 0.2, 1);
}

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

html {
  scroll-behavior: smooth;
  color-scheme: dark;
}

body {
  font-family: 'Inter', -apple-system, BlinkMacSystemFont, sans-serif;
  background-color: var(--bg-dark);
  color: var(--text-main);
  line-height: 1.6;
  overflow-x: hidden;
  position: relative;
  min-height: 100vh;
}

/* Atmospheric Ambient Background Glows */
body::before, body::after {
  content: '';
  position: fixed;
  border-radius: 50%;
  filter: blur(140px);
  pointer-events: none;
  z-index: 0;
  opacity: 0.45;
}

body::before {
  top: -150px;
  right: -100px;
  width: 550px;
  height: 550px;
  background: radial-gradient(circle, var(--accent-cyan-glow) 0%, transparent 70%);
}

body::after {
  top: 35%;
  left: -200px;
  width: 600px;
  height: 600px;
  background: radial-gradient(circle, var(--accent-purple-glow) 0%, transparent 70%);
}

.ambient-bottom-glow {
  position: absolute;
  bottom: 0;
  left: 50%;
  transform: translateX(-50%);
  width: 800px;
  height: 400px;
  background: radial-gradient(circle, rgba(16, 185, 129, 0.15) 0%, transparent 70%);
  filter: blur(120px);
  pointer-events: none;
  z-index: 0;
}

/* Typography Headings */
h1, h2, h3, h4, .font-heading {
  font-family: 'Outfit', sans-serif;
  color: var(--text-white);
  font-weight: 700;
  letter-spacing: -0.02em;
}

code, pre, .font-mono {
  font-family: 'JetBrains Mono', monospace;
}

a {
  color: inherit;
  text-decoration: none;
  transition: var(--transition-fast);
}

img {
  max-width: 100%;
  height: auto;
  display: block;
}

/* Layout Utilities */
.container {
  width: 100%;
  max-width: var(--container-max);
  margin-left: auto;
  margin-right: auto;
  padding-left: 24px;
  padding-right: 24px;
  position: relative;
  z-index: 1;
}

.section {
  padding: 90px 0;
  position: relative;
  z-index: 1;
}

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

.section-header h2 {
  font-size: 2.5rem;
  line-height: 1.2;
  margin-bottom: 16px;
}

.section-header p {
  font-size: 1.125rem;
  color: var(--text-muted);
}

/* Badges & Pills */
.badge {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  padding: 6px 14px;
  border-radius: var(--radius-full);
  font-size: 0.825rem;
  font-weight: 600;
  letter-spacing: 0.04em;
  text-transform: uppercase;
}

.badge-cyan {
  background: rgba(0, 240, 255, 0.1);
  color: var(--accent-cyan);
  border: 1px solid rgba(0, 240, 255, 0.3);
}

.badge-purple {
  background: rgba(139, 92, 246, 0.12);
  color: #c4b5fd;
  border: 1px solid rgba(139, 92, 246, 0.3);
}

.badge-emerald {
  background: rgba(16, 185, 129, 0.12);
  color: #6ee7b7;
  border: 1px solid rgba(16, 185, 129, 0.3);
}

.pulse-dot {
  width: 8px;
  height: 8px;
  border-radius: 50%;
  background: currentColor;
  position: relative;
}

.pulse-dot::after {
  content: '';
  position: absolute;
  inset: -4px;
  border-radius: 50%;
  background: inherit;
  opacity: 0.6;
  animation: pulse 2s infinite ease-out;
}

@keyframes pulse {
  0% { transform: scale(1); opacity: 0.7; }
  100% { transform: scale(2.5); opacity: 0; }
}

/* Gradient Text */
.gradient-text {
  background: var(--grad-cyan-purple);
  -webkit-background-clip: text;
  -webkit-text-fill-color: transparent;
  display: inline-block;
}

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

/* Buttons */
.btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 10px;
  padding: 13px 26px;
  border-radius: var(--radius-md);
  font-weight: 600;
  font-size: 0.95rem;
  cursor: pointer;
  border: 1px solid transparent;
  transition: all var(--transition-normal);
  text-decoration: none;
}

.btn-primary {
  background: var(--grad-cyan-purple);
  color: #050814;
  font-weight: 700;
  box-shadow: 0 4px 20px rgba(0, 240, 255, 0.3);
}

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

.btn-secondary {
  background: rgba(255, 255, 255, 0.05);
  color: var(--text-white);
  border-color: var(--border-glass);
  backdrop-filter: blur(8px);
}

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

.btn-outline-cyan {
  background: rgba(0, 240, 255, 0.05);
  color: var(--accent-cyan);
  border: 1px solid rgba(0, 240, 255, 0.3);
}

.btn-outline-cyan:hover {
  background: rgba(0, 240, 255, 0.15);
  border-color: var(--accent-cyan);
  box-shadow: 0 0 20px rgba(0, 240, 255, 0.2);
}

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

/* Header & Navigation */
.site-header {
  position: fixed;
  top: 0;
  left: 0;
  right: 0;
  height: var(--header-height);
  background: rgba(5, 8, 20, 0.85);
  backdrop-filter: blur(16px);
  -webkit-backdrop-filter: blur(16px);
  border-bottom: 1px solid var(--border-glass);
  z-index: 100;
  transition: all var(--transition-normal);
}

.site-header .container,
.nav-container {
  width: 100%;
  max-width: 1400px;
  margin: 0 auto;
  padding: 0 28px;
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 20px;
  height: 100%;
}

.brand-logo {
  display: flex;
  align-items: center;
  gap: 12px;
  flex-shrink: 0;
  text-decoration: none;
}

.brand-icon {
  width: 42px;
  height: 42px;
  border-radius: 10px;
  border: 1px solid rgba(0, 240, 255, 0.4);
  box-shadow: 0 0 15px rgba(0, 240, 255, 0.2);
  overflow: hidden;
}

.brand-title {
  font-family: 'Outfit', sans-serif;
  font-weight: 800;
  font-size: 1.35rem;
  letter-spacing: -0.01em;
  color: var(--text-white);
  line-height: 1.1;
}

.brand-subtitle {
  font-size: 0.72rem;
  color: var(--accent-cyan);
  text-transform: uppercase;
  letter-spacing: 0.08em;
  font-weight: 600;
  display: block;
}

.nav-menu {
  display: flex;
  align-items: center;
  justify-content: center;
  gap: clamp(8px, 1.4vw, 20px);
  list-style: none;
  margin: 0;
  padding: 0;
  flex-shrink: 1;
}

.nav-menu li {
  display: flex;
  align-items: center;
  list-style: none;
  margin: 0;
  padding: 0;
}


.nav-link {
  font-size: 0.9rem;
  font-weight: 500;
  color: var(--text-muted);
  position: relative;
  padding: 7px 10px;
  white-space: nowrap; /* Prevents text from breaking onto multiple lines */
  display: inline-flex;
  align-items: center;
  line-height: 1;
  border-radius: var(--radius-sm);
  transition: all var(--transition-fast);
}

.nav-link:hover {
  color: var(--text-white);
  background: rgba(255, 255, 255, 0.06);
}

.nav-link.active {
  color: var(--accent-cyan);
  background: rgba(0, 240, 255, 0.08);
  font-weight: 600;
}

.nav-link::after {
  content: '';
  position: absolute;
  bottom: 0;
  left: 10px;
  right: 10px;
  height: 2px;
  background: var(--accent-cyan);
  transform: scaleX(0);
  transition: transform var(--transition-fast);
  transform-origin: center;
}

.nav-link:hover::after, .nav-link.active::after {
  transform: scaleX(1);
}

.header-actions {
  display: flex;
  align-items: center;
  gap: 12px;
  flex-shrink: 0;
}

.header-actions .btn {
  white-space: nowrap;
}

.mobile-toggle {
  display: none;
  background: transparent;
  border: none;
  color: var(--text-white);
  font-size: 1.5rem;
  cursor: pointer;
  padding: 6px;
}

/* Hero Section */
.hero-section {
  padding-top: calc(var(--header-height) + 60px);
  padding-bottom: 80px;
  position: relative;
}

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

.hero-eyebrow {
  margin-bottom: 20px;
}

.hero-headline {
  font-size: 3.5rem;
  line-height: 1.12;
  margin-bottom: 24px;
}

.hero-description {
  font-size: 1.15rem;
  color: var(--text-muted);
  line-height: 1.7;
  margin-bottom: 36px;
}

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

.hero-meta-strip {
  display: flex;
  align-items: center;
  gap: 24px;
  padding-top: 24px;
  border-top: 1px solid var(--border-glass);
}

.meta-item {
  display: flex;
  align-items: center;
  gap: 8px;
  font-size: 0.85rem;
  color: var(--text-muted);
}

.meta-icon {
  color: var(--accent-emerald);
}

/* Hero Device Mockup */
.hero-preview {
  position: relative;
  display: flex;
  justify-content: center;
  align-items: center;
}

.device-frame-wrapper {
  position: relative;
  max-width: 380px;
  width: 100%;
}

.phone-mockup {
  position: relative;
  background: #111726;
  border-radius: 40px;
  padding: 12px;
  border: 3px solid rgba(255, 255, 255, 0.12);
  box-shadow: 0 25px 60px -15px rgba(0, 0, 0, 0.8), 0 0 40px rgba(0, 240, 255, 0.15);
  overflow: hidden;
}

.phone-screen {
  border-radius: 30px;
  overflow: hidden;
  background: var(--bg-dark);
}

.phone-screen img {
  width: 100%;
  height: auto;
  display: block;
}

.floating-badge {
  position: absolute;
  background: rgba(14, 23, 42, 0.9);
  backdrop-filter: blur(12px);
  border: 1px solid var(--border-highlight);
  border-radius: var(--radius-md);
  padding: 12px 18px;
  display: flex;
  align-items: center;
  gap: 12px;
  box-shadow: var(--shadow-glow);
  animation: floatSlow 5s ease-in-out infinite alternate;
  z-index: 2;
}

.floating-badge.badge-top {
  top: 12%;
  left: -30px;
}

.floating-badge.badge-bottom {
  bottom: 12%;
  right: -25px;
  animation-delay: -2.5s;
  border-color: rgba(139, 92, 246, 0.4);
  box-shadow: var(--shadow-purple-glow);
}

.badge-metric-value {
  font-family: 'Outfit', sans-serif;
  font-weight: 800;
  font-size: 1.25rem;
  color: var(--accent-cyan);
  line-height: 1;
}

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

@keyframes floatSlow {
  0% { transform: translateY(0px); }
  100% { transform: translateY(-12px); }
}

/* Trust & Metrics Counter Strip */
.metrics-strip {
  background: rgba(14, 23, 42, 0.5);
  border-top: 1px solid var(--border-glass);
  border-bottom: 1px solid var(--border-glass);
  padding: 36px 0;
}

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

.metric-card {
  padding: 12px;
}

.metric-number {
  font-family: 'Outfit', sans-serif;
  font-size: 2.75rem;
  font-weight: 800;
  margin-bottom: 4px;
}

.metric-label {
  font-size: 0.9rem;
  color: var(--text-muted);
  font-weight: 500;
}

/* Glass Card */
.glass-card {
  background: var(--bg-card);
  backdrop-filter: blur(16px);
  -webkit-backdrop-filter: blur(16px);
  border: 1px solid var(--border-glass);
  border-radius: var(--radius-lg);
  padding: 32px;
  transition: all var(--transition-normal);
  position: relative;
  overflow: hidden;
}

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

.glass-card:hover {
  background: var(--bg-card-hover);
  border-color: rgba(255, 255, 255, 0.15);
  transform: translateY(-4px);
  box-shadow: 0 15px 35px -10px rgba(0, 0, 0, 0.6);
}

/* Interactive Labs Showcase Section */
.labs-showcase-container {
  display: grid;
  grid-template-columns: 0.38fr 0.62fr;
  gap: 32px;
  align-items: start;
}

.labs-tabs-list {
  display: flex;
  flex-direction: column;
  gap: 12px;
}

.lab-tab-btn {
  display: flex;
  align-items: center;
  gap: 16px;
  padding: 18px 20px;
  border-radius: var(--radius-md);
  background: rgba(14, 23, 42, 0.5);
  border: 1px solid var(--border-glass);
  color: var(--text-muted);
  cursor: pointer;
  text-align: left;
  transition: all var(--transition-fast);
  width: 100%;
}

.lab-tab-btn:hover {
  background: rgba(20, 32, 58, 0.7);
  color: var(--text-white);
  border-color: rgba(255, 255, 255, 0.12);
}

.lab-tab-btn.active {
  background: rgba(0, 240, 255, 0.08);
  border-color: var(--accent-cyan);
  color: var(--text-white);
  box-shadow: 0 0 20px rgba(0, 240, 255, 0.15);
}

.lab-icon-box {
  width: 44px;
  height: 44px;
  border-radius: 10px;
  background: rgba(255, 255, 255, 0.04);
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 1.4rem;
  flex-shrink: 0;
}

.lab-tab-btn.active .lab-icon-box {
  background: rgba(0, 240, 255, 0.15);
  color: var(--accent-cyan);
}

.lab-tab-title {
  font-family: 'Outfit', sans-serif;
  font-weight: 700;
  font-size: 1.05rem;
  margin-bottom: 2px;
}

.lab-tab-desc {
  font-size: 0.8rem;
  color: var(--text-subtle);
}

.lab-tab-btn.active .lab-tab-desc {
  color: var(--text-muted);
}

/* Lab Detail Viewer */
.lab-viewer {
  background: rgba(14, 23, 42, 0.8);
  border: 1px solid var(--border-glass);
  border-radius: var(--radius-lg);
  padding: 36px;
  backdrop-filter: blur(16px);
  min-height: 480px;
}

.lab-preview-header {
  display: flex;
  justify-content: space-between;
  align-items: flex-start;
  margin-bottom: 24px;
  padding-bottom: 20px;
  border-bottom: 1px solid var(--border-glass);
}

.lab-preview-tags {
  display: flex;
  gap: 8px;
  flex-wrap: wrap;
}

.lab-features-list {
  list-style: none;
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 16px;
  margin: 28px 0;
}

.lab-feature-item {
  display: flex;
  align-items: flex-start;
  gap: 10px;
  font-size: 0.9rem;
  color: var(--text-muted);
}

.lab-feature-item svg {
  color: var(--accent-cyan);
  flex-shrink: 0;
  margin-top: 3px;
}

/* In-Browser Interactive Mini Lab Sandbox */
.interactive-sandbox {
  margin-top: 50px;
  background: linear-gradient(135deg, rgba(14, 23, 42, 0.9) 0%, rgba(10, 15, 29, 0.95) 100%);
  border: 1px solid rgba(0, 240, 255, 0.3);
  border-radius: var(--radius-lg);
  padding: 36px;
  box-shadow: 0 0 35px rgba(0, 240, 255, 0.1);
}

.sandbox-header {
  display: flex;
  justify-content: space-between;
  align-items: center;
  margin-bottom: 28px;
  flex-wrap: wrap;
  gap: 16px;
}

.sandbox-controls-grid {
  display: grid;
  grid-template-columns: 1.1fr 0.9fr;
  gap: 32px;
  align-items: center;
}

.sandbox-slider-card {
  background: rgba(5, 8, 20, 0.6);
  border: 1px solid var(--border-glass);
  border-radius: var(--radius-md);
  padding: 24px;
}

.slider-group {
  margin-bottom: 20px;
}

.slider-group:last-child {
  margin-bottom: 0;
}

.slider-label-row {
  display: flex;
  justify-content: space-between;
  font-size: 0.88rem;
  margin-bottom: 8px;
  font-weight: 500;
}

.slider-val {
  color: var(--accent-cyan);
  font-family: 'JetBrains Mono', monospace;
  font-weight: 600;
}

input[type="range"] {
  width: 100%;
  height: 6px;
  background: #1e293b;
  border-radius: 4px;
  outline: none;
  -webkit-appearance: none;
}

input[type="range"]::-webkit-slider-thumb {
  -webkit-appearance: none;
  width: 18px;
  height: 18px;
  border-radius: 50%;
  background: var(--accent-cyan);
  cursor: pointer;
  box-shadow: 0 0 10px var(--accent-cyan);
}

.sandbox-results-card {
  background: rgba(5, 8, 20, 0.7);
  border: 1px solid rgba(139, 92, 246, 0.3);
  border-radius: var(--radius-md);
  padding: 24px;
}

.sandbox-kpi-grid {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 16px;
}

.kpi-tile {
  background: rgba(255, 255, 255, 0.03);
  border-radius: var(--radius-sm);
  padding: 14px;
  border: 1px solid var(--border-glass);
}

.kpi-title {
  font-size: 0.75rem;
  color: var(--text-muted);
  text-transform: uppercase;
  letter-spacing: 0.05em;
  margin-bottom: 4px;
}

.kpi-number {
  font-family: 'JetBrains Mono', monospace;
  font-size: 1.4rem;
  font-weight: 700;
  color: var(--text-white);
}

/* Curriculum Grid */
.curriculum-grid {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 24px;
}

.curriculum-card {
  background: var(--bg-card);
  border: 1px solid var(--border-glass);
  border-radius: var(--radius-md);
  padding: 28px;
  transition: all var(--transition-normal);
  display: flex;
  flex-direction: column;
}

.curriculum-card:hover {
  transform: translateY(-4px);
  border-color: rgba(255, 255, 255, 0.2);
  background: var(--bg-card-hover);
}

.chapter-badge-row {
  display: flex;
  justify-content: space-between;
  align-items: center;
  margin-bottom: 16px;
}

.chapter-number {
  font-size: 0.78rem;
  font-weight: 700;
  text-transform: uppercase;
  color: var(--accent-cyan);
  letter-spacing: 0.08em;
}

.curriculum-card h3 {
  font-size: 1.25rem;
  margin-bottom: 12px;
  line-height: 1.3;
}

.curriculum-card p {
  font-size: 0.9rem;
  color: var(--text-muted);
  margin-bottom: 20px;
  flex-grow: 1;
}

.curriculum-topics-list {
  list-style: none;
  display: flex;
  flex-direction: column;
  gap: 8px;
  border-top: 1px solid var(--border-glass);
  padding-top: 16px;
}

.topic-item {
  font-size: 0.82rem;
  color: var(--text-muted);
  display: flex;
  align-items: center;
  gap: 8px;
}

.topic-item::before {
  content: '▹';
  color: var(--accent-purple);
  font-weight: bold;
}

/* Cheat Sheet Vault */
.cheatsheet-grid {
  display: grid;
  grid-template-columns: repeat(auto-fill, minmax(260px, 1fr));
  gap: 20px;
}

.cheatsheet-item {
  background: rgba(14, 23, 42, 0.6);
  border: 1px solid var(--border-glass);
  border-radius: var(--radius-md);
  padding: 20px;
  display: flex;
  align-items: center;
  gap: 16px;
  transition: all var(--transition-fast);
}

.cheatsheet-item:hover {
  border-color: var(--accent-cyan);
  background: rgba(20, 32, 58, 0.8);
  transform: translateX(4px);
}

.cheatsheet-icon {
  width: 40px;
  height: 40px;
  border-radius: 8px;
  background: rgba(0, 240, 255, 0.1);
  color: var(--accent-cyan);
  display: flex;
  align-items: center;
  justify-content: center;
  font-weight: bold;
  font-size: 1.1rem;
  flex-shrink: 0;
}

.cheatsheet-title {
  font-size: 0.92rem;
  font-weight: 600;
  color: var(--text-white);
  line-height: 1.3;
}

.cheatsheet-category {
  font-size: 0.75rem;
  color: var(--text-subtle);
  margin-top: 2px;
}

/* App Screenshots Gallery */
.gallery-grid {
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  gap: 24px;
}

.gallery-card {
  border-radius: var(--radius-lg);
  overflow: hidden;
  border: 1px solid var(--border-glass);
  background: rgba(14, 23, 42, 0.6);
  transition: all var(--transition-normal);
}

.gallery-card:hover {
  transform: translateY(-8px);
  border-color: rgba(0, 240, 255, 0.4);
  box-shadow: 0 20px 40px -10px rgba(0, 0, 0, 0.7), 0 0 25px rgba(0, 240, 255, 0.2);
}

.gallery-card img {
  width: 100%;
  aspect-ratio: 9/19;
  object-fit: cover;
  transition: transform var(--transition-normal);
}

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

.gallery-caption {
  padding: 16px;
  text-align: center;
}

.gallery-caption h4 {
  font-size: 0.95rem;
  font-weight: 600;
  margin-bottom: 4px;
}

.gallery-caption p {
  font-size: 0.78rem;
  color: var(--text-muted);
}

/* FAQ Accordion */
.faq-container {
  max-width: 800px;
  margin: 0 auto;
  display: flex;
  flex-direction: column;
  gap: 16px;
}

.faq-card {
  background: var(--bg-card);
  border: 1px solid var(--border-glass);
  border-radius: var(--radius-md);
  overflow: hidden;
  transition: all var(--transition-fast);
}

.faq-card:hover {
  border-color: rgba(255, 255, 255, 0.15);
}

.faq-question-btn {
  width: 100%;
  padding: 22px 24px;
  background: transparent;
  border: none;
  color: var(--text-white);
  font-family: 'Outfit', sans-serif;
  font-size: 1.1rem;
  font-weight: 600;
  display: flex;
  justify-content: space-between;
  align-items: center;
  cursor: pointer;
  text-align: left;
}

.faq-icon {
  width: 28px;
  height: 28px;
  border-radius: 50%;
  background: rgba(255, 255, 255, 0.05);
  display: flex;
  align-items: center;
  justify-content: center;
  transition: transform var(--transition-normal);
  color: var(--accent-cyan);
  flex-shrink: 0;
}

.faq-card.open .faq-icon {
  transform: rotate(180deg);
  background: rgba(0, 240, 255, 0.15);
}

.faq-answer {
  max-height: 0;
  overflow: hidden;
  transition: max-height 0.35s ease, padding 0.35s ease;
  padding: 0 24px;
  color: var(--text-muted);
  font-size: 0.95rem;
  line-height: 1.7;
}

.faq-card.open .faq-answer {
  max-height: 300px;
  padding: 0 24px 22px 24px;
}

/* Call to Action Banner */
.cta-banner {
  background: radial-gradient(circle at center, rgba(14, 23, 42, 0.95) 0%, rgba(5, 8, 20, 0.98) 100%);
  border: 1px solid rgba(0, 240, 255, 0.25);
  border-radius: 28px;
  padding: 60px 48px;
  text-align: center;
  box-shadow: 0 20px 60px -20px rgba(0, 0, 0, 0.9), 0 0 40px rgba(0, 240, 255, 0.15);
  position: relative;
  overflow: hidden;
}

.cta-banner h2 {
  font-size: 2.8rem;
  margin-bottom: 16px;
}

.cta-banner p {
  font-size: 1.15rem;
  color: var(--text-muted);
  max-width: 620px;
  margin: 0 auto 32px auto;
}

/* Footer */
.site-footer {
  border-top: 1px solid var(--border-glass);
  background: rgba(5, 8, 20, 0.95);
  padding: 70px 0 30px 0;
  position: relative;
  z-index: 10;
}

.footer-top {
  display: grid;
  grid-template-columns: 1.4fr 0.8fr 0.8fr 1fr;
  gap: 40px;
  margin-bottom: 50px;
}

.footer-desc {
  font-size: 0.88rem;
  color: var(--text-muted);
  margin-top: 16px;
  line-height: 1.6;
  max-width: 320px;
}

.footer-col-title {
  font-family: 'Outfit', sans-serif;
  font-size: 1rem;
  font-weight: 700;
  color: var(--text-white);
  margin-bottom: 20px;
  letter-spacing: 0.02em;
}

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

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

.footer-link:hover {
  color: var(--accent-cyan);
  padding-left: 4px;
}

.footer-bottom {
  display: flex;
  justify-content: space-between;
  align-items: center;
  padding-top: 30px;
  border-top: 1px solid var(--border-glass);
  font-size: 0.82rem;
  color: var(--text-subtle);
  flex-wrap: wrap;
  gap: 16px;
}

/* ==========================================================
   Privacy Policy Page Specific Styles
========================================================== */
.legal-page-header {
  padding-top: calc(var(--header-height) + 48px);
  padding-bottom: 48px;
  border-bottom: 1px solid var(--border-glass);
  background: radial-gradient(circle at 50% 0%, rgba(0, 240, 255, 0.08) 0%, transparent 70%);
}

.legal-grid {
  display: grid;
  grid-template-columns: 280px 1fr;
  gap: 48px;
  padding: 60px 0 100px 0;
  align-items: start;
}

.legal-sidebar {
  position: sticky;
  top: calc(var(--header-height) + 30px);
  background: var(--bg-card);
  border: 1px solid var(--border-glass);
  border-radius: var(--radius-md);
  padding: 24px;
  backdrop-filter: blur(12px);
}

.legal-toc-title {
  font-size: 0.85rem;
  text-transform: uppercase;
  letter-spacing: 0.06em;
  color: var(--accent-cyan);
  margin-bottom: 16px;
  font-weight: 700;
}

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

.legal-toc-link {
  font-size: 0.85rem;
  color: var(--text-muted);
  display: block;
  padding: 4px 8px;
  border-radius: 4px;
}

.legal-toc-link:hover {
  color: var(--text-white);
  background: rgba(255, 255, 255, 0.04);
}

.legal-content {
  background: var(--bg-card);
  border: 1px solid var(--border-glass);
  border-radius: var(--radius-lg);
  padding: 48px;
  backdrop-filter: blur(16px);
}

.legal-content h2 {
  font-size: 1.8rem;
  margin: 40px 0 16px 0;
  padding-bottom: 12px;
  border-bottom: 1px solid var(--border-glass);
  color: var(--text-white);
  scroll-margin-top: calc(var(--header-height) + 30px);
}

.legal-content h2:first-of-type {
  margin-top: 0;
}

.legal-content h3 {
  font-size: 1.25rem;
  margin: 24px 0 12px 0;
  color: #e2e8f0;
}

.legal-content p {
  color: var(--text-muted);
  margin-bottom: 18px;
  font-size: 0.98rem;
  line-height: 1.8;
}

.legal-content ul, .legal-content ol {
  margin: 0 0 24px 24px;
  color: var(--text-muted);
  font-size: 0.95rem;
  line-height: 1.8;
}

.legal-content li {
  margin-bottom: 8px;
}

.legal-highlight-box {
  background: rgba(0, 240, 255, 0.05);
  border-left: 4px solid var(--accent-cyan);
  border-radius: 0 var(--radius-md) var(--radius-md) 0;
  padding: 20px 24px;
  margin: 28px 0;
}

.legal-highlight-box p {
  margin-bottom: 0;
  color: #e0f2fe;
}

.legal-meta-card {
  background: rgba(255, 255, 255, 0.02);
  border: 1px solid var(--border-glass);
  border-radius: var(--radius-md);
  padding: 20px;
  margin-bottom: 36px;
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 16px;
  text-align: center;
}

.legal-meta-item strong {
  display: block;
  font-size: 0.78rem;
  color: var(--text-subtle);
  text-transform: uppercase;
  margin-bottom: 4px;
}

.legal-meta-item span {
  font-size: 0.92rem;
  color: var(--text-white);
  font-weight: 600;
}

/* ==========================================================
   Responsive Breakpoints
========================================================== */
@media (max-width: 1024px) {
  .hero-grid {
    grid-template-columns: 1fr;
    text-align: center;
  }

  .hero-eyebrow {
    margin-left: auto;
    margin-right: auto;
  }

  .hero-headline {
    font-size: 2.8rem;
  }

  .hero-cta-group {
    justify-content: center;
  }

  .hero-meta-strip {
    justify-content: center;
  }

  .device-frame-wrapper {
    margin: 40px auto 0 auto;
  }

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

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

  .labs-showcase-container {
    grid-template-columns: 1fr;
  }

  .sandbox-controls-grid {
    grid-template-columns: 1fr;
  }

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

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

  .legal-sidebar {
    display: none;
  }
}

@media (max-width: 1060px) {
  .mobile-toggle {
    display: block;
  }

  .nav-menu {
    position: fixed;
    top: var(--header-height);
    left: 0;
    right: 0;
    background: rgba(5, 8, 20, 0.98);
    backdrop-filter: blur(20px);
    -webkit-backdrop-filter: blur(20px);
    border-bottom: 1px solid var(--border-glass);
    flex-direction: column;
    padding: 30px 24px;
    gap: 16px;
    transform: translateY(-150%);
    opacity: 0;
    pointer-events: none;
    transition: all var(--transition-normal);
  }

  .nav-menu.open {
    transform: translateY(0);
    opacity: 1;
    pointer-events: auto;
  }

  .nav-link {
    font-size: 1.05rem;
    padding: 10px 14px;
    width: 100%;
    justify-content: flex-start;
  }
}

@media (max-width: 768px) {
  .section {
    padding: 60px 0;
  }

  .section-header h2 {
    font-size: 2rem;
  }

  .hero-headline {
    font-size: 2.2rem;
  }

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

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

  .gallery-grid {
    grid-template-columns: 1fr;
    max-width: 320px;
    margin: 0 auto;
  }

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

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

  .cta-banner {
    padding: 40px 24px;
  }

  .cta-banner h2 {
    font-size: 2rem;
  }

  .legal-content {
    padding: 24px;
  }

  .legal-meta-card {
    grid-template-columns: 1fr;
    gap: 12px;
  }
}
