/* ==========================================================================
   MutualAI - Design System & Custom Styles
   Theme: Obsidian Glass & Electric Cyan / Neon Purple
   ========================================================================== */

:root {
  /* Color Palette */
  --bg-dark: #07090E;
  --bg-surface: #0F1420;
  --bg-card: rgba(15, 23, 42, 0.65);
  
  --accent-cyan: #00F2FE;
  --accent-blue: #4FACFE;
  --accent-purple: #7C3AED;
  --accent-emerald: #10B981;
  --accent-amber: #F59E0B;
  
  --text-main: #F8FAFC;
  --text-muted: #94A3B8;
  --text-dim: #64748B;
  
  --border-light: rgba(255, 255, 255, 0.08);
  --border-glow: rgba(0, 242, 254, 0.25);
  
  /* Typography */
  --font-heading: 'Outfit', -apple-system, BlinkMacSystemFont, sans-serif;
  --font-body: 'Inter', -apple-system, BlinkMacSystemFont, sans-serif;
  --font-mono: 'Courier New', Courier, monospace;
  
  /* Layout & Spacing */
  --container-max: 1200px;
  --radius-sm: 8px;
  --radius-md: 12px;
  --radius-lg: 20px;
  --radius-xl: 28px;
  
  /* Transitions & Shadows */
  --transition-fast: 0.2s cubic-bezier(0.4, 0, 0.2, 1);
  --transition-normal: 0.3s cubic-bezier(0.4, 0, 0.2, 1);
  --shadow-glass: 0 8px 32px 0 rgba(0, 0, 0, 0.37);
  --shadow-glow: 0 0 25px rgba(0, 242, 254, 0.2);
}

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

html {
  scroll-behavior: smooth;
  font-size: 16px;
}

body {
  background-color: var(--bg-dark);
  color: var(--text-main);
  font-family: var(--font-body);
  line-height: 1.6;
  overflow-x: hidden;
  position: relative;
  -webkit-font-smoothing: antialiased;
}

/* Ambient Canvas Background */
#ambient-canvas {
  position: fixed;
  top: 0;
  left: 0;
  width: 100vw;
  height: 100vh;
  z-index: -1;
  pointer-events: none;
  opacity: 0.65;
}

/* Typography & Global Utilities */
h1, h2, h3, h4, h5, h6 {
  font-family: var(--font-heading);
  color: var(--text-main);
  line-height: 1.2;
}

a {
  color: inherit;
  text-decoration: none;
}

.container {
  max-width: var(--container-max);
  margin: 0 auto;
  padding: 0 1.5rem;
}

.gradient-text {
  background: linear-gradient(135deg, var(--accent-cyan) 0%, var(--accent-blue) 50%, var(--accent-purple) 100%);
  -webkit-background-clip: text;
  -webkit-text-fill-color: transparent;
}

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

/* Glassmorphism Surface Utility */
.glass-panel {
  background: var(--bg-card);
  backdrop-filter: blur(16px);
  -webkit-backdrop-filter: blur(16px);
  border: 1px solid var(--border-light);
  border-radius: var(--radius-lg);
  box-shadow: var(--shadow-glass);
  transition: border-color var(--transition-normal), box-shadow var(--transition-normal);
}

.hover-glow:hover {
  border-color: var(--border-glow);
  box-shadow: 0 12px 40px rgba(0, 242, 254, 0.15);
  transform: translateY(-4px);
}

/* Buttons System */
.btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 0.5rem;
  padding: 0.75rem 1.5rem;
  font-family: var(--font-heading);
  font-weight: 600;
  font-size: 0.95rem;
  border-radius: var(--radius-md);
  border: none;
  cursor: pointer;
  transition: all var(--transition-fast);
  white-space: nowrap;
}

.btn-primary {
  background: linear-gradient(135deg, #00F2FE 0%, #4FACFE 100%);
  color: #07090E;
  box-shadow: 0 4px 20px rgba(0, 242, 254, 0.3);
}

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

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

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

.btn-ghost {
  background: transparent;
  color: var(--text-muted);
}

.btn-ghost:hover {
  color: var(--text-main);
  background: rgba(255, 255, 255, 0.05);
}

.btn-lg {
  padding: 0.9rem 2rem;
  font-size: 1.05rem;
  border-radius: var(--radius-lg);
}

.w-full {
  width: 100%;
}

/* Announcement Bar */
.announcement-bar {
  background: linear-gradient(90deg, rgba(0, 242, 254, 0.1) 0%, rgba(124, 58, 237, 0.1) 100%);
  border-bottom: 1px solid var(--border-light);
  padding: 0.5rem 0;
  font-size: 0.85rem;
  color: var(--text-muted);
}

.announcement-content {
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 0.75rem;
  flex-wrap: wrap;
}

.badge-new {
  background: var(--accent-cyan);
  color: var(--bg-dark);
  font-weight: 700;
  padding: 0.1rem 0.5rem;
  border-radius: 99px;
  font-size: 0.75rem;
}

.announcement-link {
  color: var(--accent-cyan);
  font-weight: 600;
}

.announcement-link:hover {
  text-decoration: underline;
}

/* Navigation Header */
.navbar {
  position: sticky;
  top: 0;
  z-index: 100;
  background: rgba(7, 9, 14, 0.75);
  backdrop-filter: blur(20px);
  -webkit-backdrop-filter: blur(20px);
  border-bottom: 1px solid var(--border-light);
  padding: 1rem 0;
  transition: background var(--transition-normal);
}

.nav-container {
  display: flex;
  align-items: center;
  justify-content: space-between;
}

.brand-logo {
  display: flex;
  align-items: center;
  gap: 0.75rem;
  font-family: var(--font-heading);
  font-weight: 800;
  font-size: 1.4rem;
}

.logo-icon {
  display: flex;
  align-items: center;
  justify-content: center;
  width: 38px;
  height: 38px;
  border-radius: 10px;
  background: rgba(0, 242, 254, 0.1);
  border: 1px solid var(--border-glow);
}

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

.nav-links {
  display: flex;
  gap: 2rem;
}

.nav-link {
  color: var(--text-muted);
  font-weight: 500;
  font-size: 0.95rem;
  transition: color var(--transition-fast);
}

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

.nav-actions {
  display: flex;
  align-items: center;
  gap: 1rem;
}

.mobile-toggle {
  display: none;
  flex-direction: column;
  gap: 5px;
  background: none;
  border: none;
  cursor: pointer;
}

.mobile-toggle span {
  width: 22px;
  height: 2px;
  background: var(--text-main);
  border-radius: 2px;
}

/* Hero Section */
.hero-section {
  padding: 6rem 0 4rem;
  text-align: center;
  position: relative;
}

.hero-badge {
  display: inline-flex;
  align-items: center;
  gap: 0.5rem;
  padding: 0.4rem 1rem;
  border-radius: 99px;
  background: rgba(0, 242, 254, 0.08);
  border: 1px solid var(--border-glow);
  font-size: 0.85rem;
  font-weight: 600;
  color: var(--accent-cyan);
  margin-bottom: 1.5rem;
}

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

@keyframes pulse {
  0% { transform: scale(0.95); opacity: 0.8; }
  50% { transform: scale(1.3); opacity: 1; }
  100% { transform: scale(0.95); opacity: 0.8; }
}

.hero-title {
  font-size: 3.8rem;
  font-weight: 800;
  letter-spacing: -0.02em;
  margin-bottom: 1.5rem;
}

.hero-subtitle {
  max-width: 720px;
  margin: 0 auto 2.5rem;
  font-size: 1.15rem;
  color: var(--text-muted);
  font-weight: 400;
}

.hero-cta-group {
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 1.25rem;
  margin-bottom: 4rem;
  flex-wrap: wrap;
}

.hero-stats-grid {
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  gap: 1.5rem;
  max-width: 1000px;
  margin: 0 auto;
}

.stat-card {
  background: var(--bg-card);
  border: 1px solid var(--border-light);
  border-radius: var(--radius-md);
  padding: 1.5rem 1rem;
  backdrop-filter: blur(12px);
}

.stat-value {
  font-family: var(--font-heading);
  font-size: 2.2rem;
  font-weight: 800;
  color: var(--text-main);
  background: linear-gradient(135deg, #FFF 0%, var(--accent-cyan) 100%);
  -webkit-background-clip: text;
  -webkit-text-fill-color: transparent;
}

.stat-label {
  font-size: 0.85rem;
  color: var(--text-muted);
  margin-top: 0.25rem;
}

/* Global Section Setup */
.section {
  padding: 6rem 0;
  position: relative;
}

.section-header {
  margin-bottom: 3.5rem;
}

.section-tag {
  display: inline-block;
  font-size: 0.85rem;
  font-weight: 700;
  text-transform: uppercase;
  letter-spacing: 0.1em;
  color: var(--accent-cyan);
  margin-bottom: 0.5rem;
}

.section-title {
  font-size: 2.5rem;
  font-weight: 700;
  margin-bottom: 0.75rem;
}

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

/* Live Playground Section */
.playground-card {
  padding: 2rem;
}

.playground-tabs {
  display: flex;
  gap: 0.75rem;
  margin-bottom: 1.5rem;
  border-bottom: 1px solid var(--border-light);
  padding-bottom: 1rem;
}

.tab-btn {
  display: flex;
  align-items: center;
  gap: 0.5rem;
  padding: 0.6rem 1.2rem;
  background: transparent;
  border: 1px solid transparent;
  border-radius: var(--radius-md);
  color: var(--text-muted);
  font-family: var(--font-heading);
  font-weight: 600;
  cursor: pointer;
  transition: all var(--transition-fast);
}

.tab-btn:hover {
  color: var(--text-main);
  background: rgba(255, 255, 255, 0.04);
}

.tab-btn.active {
  background: rgba(0, 242, 254, 0.1);
  border-color: var(--border-glow);
  color: var(--accent-cyan);
}

.playground-split {
  display: grid;
  grid-template-columns: 1fr 1.2fr;
  gap: 1.5rem;
}

.playground-pane {
  background: rgba(7, 9, 14, 0.6);
  border: 1px solid var(--border-light);
  border-radius: var(--radius-md);
  padding: 1.25rem;
  display: flex;
  flex-direction: column;
  gap: 1rem;
}

.pane-header {
  display: flex;
  align-items: center;
  justify-content: space-between;
  border-bottom: 1px solid var(--border-light);
  padding-bottom: 0.75rem;
}

.pane-title {
  display: flex;
  align-items: center;
  gap: 0.6rem;
  font-weight: 600;
  font-size: 0.9rem;
}

.user-badge, .agent-badge {
  font-size: 0.7rem;
  font-weight: 800;
  padding: 0.15rem 0.4rem;
  border-radius: 4px;
}

.user-badge {
  background: rgba(124, 58, 237, 0.2);
  color: #C084FC;
  border: 1px solid rgba(192, 132, 252, 0.3);
}

.agent-badge {
  background: rgba(0, 242, 254, 0.2);
  color: var(--accent-cyan);
  border: 1px solid var(--border-glow);
}

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

.agent-activity {
  display: flex;
  align-items: center;
  gap: 0.4rem;
  font-size: 0.75rem;
  color: var(--text-muted);
}

.activity-dot {
  width: 6px;
  height: 6px;
  border-radius: 50%;
  background: var(--text-dim);
}

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

.input-label {
  font-size: 0.85rem;
  color: var(--text-muted);
  margin-bottom: 0.4rem;
  display: block;
}

.glass-input {
  width: 100%;
  background: rgba(15, 23, 42, 0.8);
  border: 1px solid var(--border-light);
  border-radius: var(--radius-sm);
  color: var(--text-main);
  font-family: var(--font-body);
  padding: 0.75rem;
  font-size: 0.9rem;
  resize: vertical;
  outline: none;
}

.glass-input:focus {
  border-color: var(--accent-cyan);
  box-shadow: 0 0 10px rgba(0, 242, 254, 0.15);
}

.slider-group {
  display: flex;
  flex-direction: column;
  gap: 0.4rem;
}

.slider-label {
  display: flex;
  justify-content: space-between;
  font-size: 0.8rem;
  color: var(--text-muted);
}

.glass-range {
  -webkit-appearance: none;
  width: 100%;
  height: 6px;
  border-radius: 3px;
  background: rgba(255, 255, 255, 0.1);
  outline: none;
}

.glass-range::-webkit-slider-thumb {
  -webkit-appearance: none;
  appearance: none;
  width: 16px;
  height: 16px;
  border-radius: 50%;
  background: var(--accent-cyan);
  cursor: pointer;
  box-shadow: 0 0 10px var(--accent-cyan);
}

/* Terminal Stream Window */
.terminal-window {
  background: #04060A;
  border: 1px solid rgba(255, 255, 255, 0.05);
  border-radius: var(--radius-sm);
  padding: 1rem;
  min-height: 220px;
  max-height: 260px;
  overflow-y: auto;
  font-family: var(--font-mono);
  font-size: 0.85rem;
  display: flex;
  flex-direction: column;
  gap: 0.4rem;
}

.terminal-line {
  line-height: 1.4;
}

.terminal-line.comment { color: var(--text-dim); }
.terminal-line.info { color: var(--text-muted); }
.terminal-line.think { color: #C084FC; }
.terminal-line.success { color: var(--accent-emerald); }
.terminal-line.code { color: var(--accent-cyan); }

.agent-metrics-row {
  display: flex;
  gap: 0.75rem;
  justify-content: space-between;
  margin-top: auto;
}

.metric-pill {
  background: rgba(255, 255, 255, 0.03);
  border: 1px solid var(--border-light);
  padding: 0.3rem 0.6rem;
  border-radius: 6px;
  font-size: 0.75rem;
  display: flex;
  gap: 0.4rem;
}

.m-label { color: var(--text-muted); }
.m-val { font-weight: 700; color: var(--text-main); }
.m-val.green { color: var(--accent-emerald); }
.m-val.cyan { color: var(--accent-cyan); }

/* Features Grid */
.features-grid {
  display: grid;
  grid-template-columns: repeat(2, 1fr);
  gap: 2rem;
}

.feature-card {
  padding: 2.2rem;
  display: flex;
  flex-direction: column;
  gap: 1rem;
}

.feature-icon {
  width: 54px;
  height: 54px;
  border-radius: var(--radius-md);
  display: flex;
  align-items: center;
  justify-content: center;
  background: rgba(255, 255, 255, 0.05);
  border: 1px solid var(--border-light);
}

.glow-cyan { color: var(--accent-cyan); border-color: rgba(0, 242, 254, 0.3); background: rgba(0, 242, 254, 0.08); }
.glow-purple { color: #C084FC; border-color: rgba(192, 132, 252, 0.3); background: rgba(192, 132, 252, 0.08); }
.glow-blue { color: var(--accent-blue); border-color: rgba(79, 172, 254, 0.3); background: rgba(79, 172, 254, 0.08); }
.glow-emerald { color: var(--accent-emerald); border-color: rgba(16, 185, 129, 0.3); background: rgba(16, 185, 129, 0.08); }

.feature-card h3 {
  font-size: 1.4rem;
  font-weight: 700;
}

.feature-card p {
  color: var(--text-muted);
  font-size: 0.95rem;
}

.feature-link {
  margin-top: auto;
  font-size: 0.85rem;
  font-weight: 600;
  color: var(--accent-cyan);
  cursor: pointer;
}

/* Product Suite Showcase */
.product-tabs-container {
  display: flex;
  flex-direction: column;
  gap: 1.5rem;
}

.product-nav {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 1rem;
}

.prod-tab {
  background: var(--bg-card);
  border: 1px solid var(--border-light);
  border-radius: var(--radius-md);
  padding: 1.2rem;
  display: flex;
  align-items: center;
  gap: 1rem;
  cursor: pointer;
  transition: all var(--transition-fast);
  text-align: left;
}

.prod-tab:hover {
  background: rgba(255, 255, 255, 0.05);
}

.prod-tab.active {
  border-color: var(--accent-cyan);
  background: rgba(0, 242, 254, 0.06);
}

.p-num {
  font-family: var(--font-heading);
  font-weight: 800;
  font-size: 1.5rem;
  color: var(--text-dim);
}

.prod-tab.active .p-num {
  color: var(--accent-cyan);
}

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

.p-name {
  font-family: var(--font-heading);
  font-weight: 700;
  font-size: 1.1rem;
  color: var(--text-main);
}

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

.product-display {
  padding: 2.5rem;
}

.product-content-grid {
  display: grid;
  grid-template-columns: 1fr 1.2fr;
  gap: 2.5rem;
  align-items: center;
}

.badge-mini {
  display: inline-block;
  font-size: 0.75rem;
  font-weight: 700;
  color: var(--accent-cyan);
  background: rgba(0, 242, 254, 0.1);
  padding: 0.2rem 0.6rem;
  border-radius: 4px;
  margin-bottom: 0.75rem;
}

.prod-desc h3 {
  font-size: 1.8rem;
  margin-bottom: 0.75rem;
}

.prod-desc p {
  color: var(--text-muted);
  margin-bottom: 1.5rem;
}

.prod-features-list {
  list-style: none;
  display: flex;
  flex-direction: column;
  gap: 0.6rem;
  margin-bottom: 1.8rem;
  font-size: 0.9rem;
}

.prod-features-list li {
  display: flex;
  align-items: center;
  gap: 0.5rem;
  color: var(--text-main);
}

/* Preview Window Mockup */
.preview-window {
  border-radius: var(--radius-md);
  overflow: hidden;
  border: 1px solid var(--border-light);
  background: #05070D;
}

.window-bar {
  background: rgba(255, 255, 255, 0.04);
  padding: 0.5rem 1rem;
  display: flex;
  align-items: center;
  gap: 6px;
  border-bottom: 1px solid var(--border-light);
}

.w-dot {
  width: 10px;
  height: 10px;
  border-radius: 50%;
}
.w-dot.red { background: #FF5F56; }
.w-dot.yellow { background: #FFBD2E; }
.w-dot.green { background: #27C93F; }

.window-title {
  margin-left: auto;
  font-size: 0.75rem;
  color: var(--text-dim);
  font-family: var(--font-mono);
}

.window-body {
  padding: 2rem;
  min-height: 240px;
  display: flex;
  align-items: center;
  justify-content: center;
}

.graph-demo {
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 1rem;
  width: 100%;
}

.node {
  padding: 0.6rem 1.2rem;
  border-radius: var(--radius-sm);
  font-size: 0.85rem;
  font-weight: 600;
  border: 1px solid var(--border-light);
  background: rgba(255, 255, 255, 0.05);
  box-shadow: 0 4px 15px rgba(0,0,0,0.4);
}

.node-human { border-color: rgba(192, 132, 252, 0.4); color: #C084FC; }
.node-agent { border-color: var(--border-glow); color: var(--accent-cyan); background: rgba(0, 242, 254, 0.08); }
.node-output { border-color: rgba(16, 185, 129, 0.4); color: var(--accent-emerald); }

.node-line {
  width: 2px;
  height: 20px;
  background: linear-gradient(180deg, var(--accent-cyan), transparent);
}

/* Calculator Section */
.calculator-card {
  padding: 2.5rem;
}

.calc-grid {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 2.5rem;
}

.calc-controls {
  display: flex;
  flex-direction: column;
  gap: 1.8rem;
  justify-content: center;
}

.calc-input-group {
  display: flex;
  flex-direction: column;
  gap: 0.6rem;
}

.calc-label-row {
  display: flex;
  justify-content: space-between;
  align-items: center;
  font-size: 0.9rem;
  font-weight: 600;
}

.calc-val-badge {
  background: rgba(255, 255, 255, 0.06);
  border: 1px solid var(--border-light);
  padding: 0.2rem 0.6rem;
  border-radius: 6px;
  font-size: 0.8rem;
  color: var(--text-main);
}

.calc-val-badge.accent {
  background: rgba(0, 242, 254, 0.1);
  border-color: var(--border-glow);
  color: var(--accent-cyan);
}

.calc-results {
  padding: 2rem;
  display: flex;
  flex-direction: column;
  justify-content: center;
  background: rgba(7, 9, 14, 0.7);
}

.result-header {
  font-size: 0.85rem;
  text-transform: uppercase;
  letter-spacing: 0.05em;
  color: var(--text-muted);
}

.result-amount {
  font-family: var(--font-heading);
  font-size: 3.2rem;
  font-weight: 800;
  color: var(--accent-cyan);
  line-height: 1.1;
  margin: 0.2rem 0;
}

.result-subtitle {
  font-size: 0.8rem;
  color: var(--text-dim);
}

.result-divider {
  height: 1px;
  background: var(--border-light);
  margin: 1.5rem 0;
}

.result-metrics-grid {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 1rem;
  margin-bottom: 1.5rem;
}

.res-metric {
  display: flex;
  flex-direction: column;
}

.rm-num {
  font-family: var(--font-heading);
  font-size: 1.4rem;
  font-weight: 700;
}
.rm-num.cyan { color: var(--accent-cyan); }

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

.progress-bar-wrap {
  display: flex;
  flex-direction: column;
  gap: 0.4rem;
}

.progress-label {
  display: flex;
  justify-content: space-between;
  font-size: 0.8rem;
  color: var(--text-muted);
}

.progress-track {
  height: 8px;
  background: rgba(255, 255, 255, 0.08);
  border-radius: 4px;
  overflow: hidden;
}

.progress-fill {
  height: 100%;
  background: linear-gradient(90deg, var(--accent-cyan), var(--accent-purple));
  border-radius: 4px;
  transition: width var(--transition-normal);
}

.mt-4 { margin-top: 1rem; }

/* Pricing Section */
.pricing-toggle-wrap {
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 1rem;
  margin-top: 1.5rem;
}

.toggle-label {
  font-size: 0.95rem;
  color: var(--text-muted);
}

.toggle-label.active {
  color: var(--text-main);
  font-weight: 600;
}

.discount-badge {
  background: rgba(16, 185, 129, 0.15);
  color: var(--accent-emerald);
  border: 1px solid rgba(16, 185, 129, 0.3);
  font-size: 0.7rem;
  font-weight: 700;
  padding: 0.15rem 0.4rem;
  border-radius: 4px;
}

/* Switch Toggle UI */
.switch {
  position: relative;
  display: inline-block;
  width: 48px;
  height: 26px;
}

.switch input { opacity: 0; width: 0; height: 0; }

.slider.round {
  position: absolute;
  cursor: pointer;
  top: 0; left: 0; right: 0; bottom: 0;
  background-color: rgba(255, 255, 255, 0.15);
  transition: .3s;
  border-radius: 34px;
}

.slider.round:before {
  position: absolute;
  content: "";
  height: 18px;
  width: 18px;
  left: 4px;
  bottom: 4px;
  background-color: white;
  transition: .3s;
  border-radius: 50%;
}

input:checked + .slider {
  background-color: var(--accent-cyan);
}

input:checked + .slider:before {
  transform: translateX(22px);
  background-color: var(--bg-dark);
}

.pricing-grid {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 2rem;
  margin-top: 3rem;
}

.pricing-card {
  padding: 2.5rem;
  display: flex;
  flex-direction: column;
  position: relative;
}

.popular-tier {
  border-color: var(--accent-cyan);
  box-shadow: 0 8px 40px rgba(0, 242, 254, 0.2);
  transform: scale(1.03);
}

.popular-tag {
  position: absolute;
  top: -12px;
  left: 50%;
  transform: translateX(-50%);
  background: linear-gradient(135deg, var(--accent-cyan), var(--accent-blue));
  color: #07090E;
  font-size: 0.7rem;
  font-weight: 800;
  letter-spacing: 0.05em;
  padding: 0.25rem 0.8rem;
  border-radius: 99px;
}

.p-tier-name {
  font-family: var(--font-heading);
  font-size: 1.4rem;
  font-weight: 700;
}

.p-tier-desc {
  font-size: 0.85rem;
  color: var(--text-muted);
  margin: 0.4rem 0 1.5rem;
  min-height: 40px;
}

.p-price {
  font-family: var(--font-heading);
  font-size: 3rem;
  font-weight: 800;
  margin-bottom: 1.5rem;
  display: flex;
  align-items: baseline;
  gap: 0.2rem;
}

.p-price .currency { font-size: 1.5rem; color: var(--text-muted); }
.p-price .period { font-size: 0.9rem; color: var(--text-muted); font-weight: 400; }

.p-features {
  list-style: none;
  display: flex;
  flex-direction: column;
  gap: 0.8rem;
  font-size: 0.88rem;
  color: var(--text-muted);
  margin-bottom: 2rem;
}

.p-features li {
  display: flex;
  align-items: center;
  gap: 0.6rem;
}

.pricing-card .btn {
  margin-top: auto;
}

/* CTA Banner */
.cta-banner-section {
  padding: 4rem 0 6rem;
}

.cta-banner-card {
  padding: 4rem 2rem;
  background: linear-gradient(135deg, rgba(0, 242, 254, 0.08) 0%, rgba(124, 58, 237, 0.08) 100%);
  border-color: var(--border-glow);
}

.cta-title {
  font-size: 2.4rem;
  margin-bottom: 1rem;
}

.cta-text {
  color: var(--text-muted);
  max-width: 600px;
  margin: 0 auto 2rem;
  font-size: 1.1rem;
}

.cta-btn-row {
  display: flex;
  justify-content: center;
  gap: 1rem;
  flex-wrap: wrap;
}

/* Footer */
.footer {
  border-top: 1px solid var(--border-light);
  padding: 4rem 0 2rem;
  background: rgba(4, 6, 10, 0.8);
}

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

.footer-brand {
  display: flex;
  flex-direction: column;
  gap: 1rem;
}

.footer-bio {
  font-size: 0.88rem;
  color: var(--text-muted);
  max-width: 320px;
}

.system-status {
  display: flex;
  align-items: center;
  gap: 0.5rem;
  font-size: 0.78rem;
  color: var(--accent-emerald);
}

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

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

.f-col {
  display: flex;
  flex-direction: column;
  gap: 0.8rem;
}

.f-col h4 {
  font-size: 0.95rem;
  margin-bottom: 0.4rem;
}

.f-col a {
  font-size: 0.85rem;
  color: var(--text-muted);
  transition: color var(--transition-fast);
}

.f-col a:hover {
  color: var(--accent-cyan);
}

.footer-bottom {
  border-top: 1px solid var(--border-light);
  padding-top: 2rem;
  display: flex;
  justify-content: space-between;
  align-items: center;
  font-size: 0.8rem;
  color: var(--text-dim);
  flex-wrap: wrap;
  gap: 1rem;
}

.legal-links {
  display: flex;
  gap: 1.5rem;
}

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

/* Modal Overlay */
.modal-overlay {
  position: fixed;
  top: 0; left: 0; right: 0; bottom: 0;
  background: rgba(0, 0, 0, 0.8);
  backdrop-filter: blur(10px);
  z-index: 200;
  display: flex;
  align-items: center;
  justify-content: center;
  opacity: 0;
  pointer-events: none;
  transition: opacity var(--transition-normal);
}

.modal-overlay.active {
  opacity: 1;
  pointer-events: auto;
}

.modal-content {
  width: 90%;
  max-width: 700px;
  padding: 2rem;
  position: relative;
}

.modal-close {
  position: absolute;
  top: 1.2rem;
  right: 1.5rem;
  background: none;
  border: none;
  color: var(--text-muted);
  font-size: 1.8rem;
  cursor: pointer;
}

.video-placeholder {
  height: 320px;
  background: rgba(0, 0, 0, 0.6);
  border: 1px stroke var(--border-light);
  border-radius: var(--radius-md);
  margin-top: 1rem;
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  gap: 1rem;
}

.play-pulse {
  width: 70px;
  height: 70px;
  border-radius: 50%;
  background: rgba(0, 242, 254, 0.1);
  border: 1px solid var(--border-glow);
  display: flex;
  align-items: center;
  justify-content: center;
  cursor: pointer;
}

/* Toast System */
.toast-container {
  position: fixed;
  bottom: 2rem;
  right: 2rem;
  z-index: 300;
  display: flex;
  flex-direction: column;
  gap: 0.75rem;
}

.toast {
  background: rgba(15, 23, 42, 0.95);
  border: 1px solid var(--border-glow);
  border-radius: var(--radius-md);
  padding: 0.8rem 1.2rem;
  font-size: 0.88rem;
  color: var(--text-main);
  box-shadow: 0 8px 30px rgba(0,0,0,0.5);
  display: flex;
  align-items: center;
  gap: 0.6rem;
  animation: slideIn 0.3s ease forwards;
}

@keyframes slideIn {
  from { transform: translateX(100%); opacity: 0; }
  to { transform: translateX(0); opacity: 1; }
}

/* Responsive Media Queries */
@media (max-width: 992px) {
  .hero-title { font-size: 2.8rem; }
  .hero-stats-grid { grid-template-columns: repeat(2, 1fr); }
  .playground-split { grid-template-columns: 1fr; }
  .features-grid { grid-template-columns: 1fr; }
  .product-nav { grid-template-columns: 1fr; }
  .product-content-grid { grid-template-columns: 1fr; }
  .calc-grid { grid-template-columns: 1fr; }
  .pricing-grid { grid-template-columns: 1fr; }
  .popular-tier { transform: none; }
  .footer-top { grid-template-columns: 1fr; }
}

@media (max-width: 768px) {
  .nav-links { display: none; }
  .nav-links.active {
    display: flex;
    flex-direction: column;
    position: absolute;
    top: 100%;
    left: 0;
    width: 100%;
    background: rgba(7, 9, 14, 0.95);
    padding: 1.5rem;
    border-bottom: 1px solid var(--border-light);
  }
  .mobile-toggle { display: flex; }
  .hero-title { font-size: 2.2rem; }
}
