/* Targeto - Apple Liquid Glass & 3D Cubes Design System */
@import url('https://fonts.googleapis.com/css2?family=Geist+Mono:wght@400;500;600;700&family=Geist:wght@300;400;500;600;700;800&display=swap');

/* --- CSS Variables & Design Tokens (Zero Purple Vibeslop) --- */
:root {
  /* Dark Mode Obsidian & Monochromatic Steel */
  --bg-surface: #030712;
  --bg-surface-lowest: #01040a;
  --bg-surface-low: #080e1a;
  --bg-surface-container: rgba(15, 23, 42, 0.45);
  --bg-surface-high: rgba(30, 41, 59, 0.6);
  --bg-surface-highest: rgba(51, 65, 85, 0.8);
  
  --text-main: #f8fafc;
  --text-muted: #94a3b8;
  --text-inverse: #030712;
  
  --outline: #334155;
  --outline-subtle: rgba(255, 255, 255, 0.08);
  
  --primary: #ffffff;
  --primary-glow: rgba(255, 255, 255, 0.2);
  --on-primary: #030712;
  --primary-container: #e2e8f0;
  --on-primary-container: #0f172a;
  
  --secondary: #38bdf8;
  --secondary-glow: rgba(56, 189, 248, 0.3);
  --on-secondary: #030712;
  --secondary-container: rgba(56, 189, 248, 0.15);
  
  --tertiary: #38bdf8;
  --tertiary-glow: rgba(56, 189, 248, 0.3);
  --on-tertiary: #030712;
  
  --error: #f87171;
  --success: #34d399;
  --warning: #fbbf24;

  /* Apple Liquid Glass Translucency */
  --glass-bg: rgba(255, 255, 255, 0.03);
  --glass-bg-hover: rgba(255, 255, 255, 0.07);
  --glass-border: rgba(255, 255, 255, 0.12);
  --glass-border-hover: rgba(255, 255, 255, 0.3);
  --glass-shadow: 0 30px 60px -12px rgba(0, 0, 0, 0.56);
  --glass-inset: inset 0 1px 1px 0 rgba(255, 255, 255, 0.18);

  /* Radius */
  --radius-sm: 6px;
  --radius-md: 10px;
  --radius-lg: 16px;
  --radius-xl: 24px;
  --radius-full: 9999px;

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

  /* Transitions */
  --transition-fast: 0.15s cubic-bezier(0.4, 0, 0.2, 1);
  --transition-smooth: 0.35s cubic-bezier(0.16, 1, 0.3, 1);
  --transition-bounce: 0.4s cubic-bezier(0.34, 1.56, 0.64, 1);

  /* 3D Cubes Variables */
  --col-gap: 4%;
  --row-gap: 4%;
  --cube-perspective: 1000px;
  --cube-face-border: 1px solid rgba(255, 255, 255, 0.35);
  --cube-face-bg: rgba(6, 10, 20, 0.42);
}

/* Light Theme Mode */
[data-theme="light"] {
  --bg-surface: #f8fafc;
  --bg-surface-lowest: #ffffff;
  --bg-surface-low: #f1f5f9;
  --bg-surface-container: rgba(226, 232, 240, 0.5);
  --bg-surface-high: rgba(203, 213, 225, 0.7);
  --bg-surface-highest: rgba(148, 163, 184, 0.9);
  
  --text-main: #0f172a;
  --text-muted: #64748b;
  --text-inverse: #f8fafc;
  
  --outline: #cbd5e1;
  --outline-subtle: rgba(15, 23, 42, 0.08);
  
  --primary: #0f172a;
  --primary-glow: rgba(15, 23, 42, 0.15);
  --on-primary: #ffffff;
  --primary-container: #334155;
  --on-primary-container: #f8fafc;
  
  --secondary: #0284c7;
  --secondary-glow: rgba(2, 132, 199, 0.2);
  --on-secondary: #ffffff;
  --secondary-container: #e0f2fe;
  
  --tertiary: #0284c7;
  --tertiary-glow: rgba(2, 132, 199, 0.2);
  --on-tertiary: #ffffff;

  --glass-bg: rgba(255, 255, 255, 0.55);
  --glass-bg-hover: rgba(255, 255, 255, 0.75);
  --glass-border: rgba(15, 23, 42, 0.12);
  --glass-border-hover: rgba(15, 23, 42, 0.3);
  --glass-shadow: 0 20px 40px -10px rgba(15, 23, 42, 0.08);
  --glass-inset: inset 0 1px 1px 0 rgba(255, 255, 255, 0.8);

  --cube-face-border: 1px solid rgba(15, 23, 42, 0.35);
  --cube-face-bg: rgba(240, 244, 248, 0.45);
}

/* --- Background Placeholder Image --- */
.bg-image-wrapper {
  position: fixed;
  top: 0;
  left: 0;
  width: 100vw;
  height: 100vh;
  z-index: -1;
  background: url('bg_placeholder.jpg') no-repeat center center / cover;
  filter: brightness(0.68) contrast(1.08);
  pointer-events: none;
  transition: filter var(--transition-smooth);
}

[data-theme="light"] .bg-image-wrapper {
  filter: brightness(0.92) contrast(1);
}

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

html {
  scroll-behavior: smooth;
  font-size: 16px;
  -webkit-text-size-adjust: 100%;
}

body {
  font-family: var(--font-sans);
  background-color: var(--bg-surface);
  color: var(--text-main);
  line-height: 1.6;
  overflow-x: hidden;
  position: relative;
  transition: background-color var(--transition-smooth), color var(--transition-smooth);
}

/* --- Faulty Terminal WebGL Background Wrapper --- */
.terminal-bg-wrapper {
  position: fixed;
  top: 0;
  left: 0;
  width: 100vw;
  height: 100vh;
  z-index: 0;
  overflow: hidden;
  pointer-events: auto;
  opacity: 0.65;
}

.faulty-terminal-container {
  width: 100%;
  height: 100%;
  position: relative;
  overflow: hidden;
}

.faulty-terminal-container canvas {
  display: block;
  width: 100%;
  height: 100%;
}

/* Container Utility */
.container {
  width: 100%;
  max-width: 1240px;
  margin: 0 auto;
  padding: 0 24px;
  position: relative;
  z-index: 2;
}

/* --- Apple Liquid Glass Components (No Tint) --- */
.glass-card {
  background: var(--glass-bg);
  backdrop-filter: blur(24px) saturate(190%);
  -webkit-backdrop-filter: blur(24px) saturate(190%);
  border: 1px solid var(--glass-border);
  box-shadow: var(--glass-shadow), var(--glass-inset);
  border-radius: var(--radius-lg);
  transition: transform var(--transition-smooth), border-color var(--transition-smooth), box-shadow var(--transition-smooth);
  position: relative;
  overflow: hidden;
}

.glass-card::before {
  content: '';
  position: absolute;
  top: 0;
  left: -100%;
  width: 100%;
  height: 100%;
  background: linear-gradient(90deg, transparent, rgba(255, 255, 255, 0.12), transparent);
  transition: left 0.6s ease;
  pointer-events: none;
}

.glass-card:hover::before {
  left: 100%;
}

.glass-card:hover {
  border-color: var(--glass-border-hover);
  transform: translateY(-4px);
  box-shadow: 0 32px 64px -16px rgba(0, 0, 0, 0.65), var(--glass-inset);
}

.glass-pill {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  padding: 6px 18px;
  border-radius: var(--radius-full);
  background: rgba(255, 255, 255, 0.05);
  border: 1px solid rgba(255, 255, 255, 0.18);
  backdrop-filter: blur(16px);
  -webkit-backdrop-filter: blur(16px);
  font-size: 13px;
  font-weight: 600;
  letter-spacing: 0.03em;
  color: var(--text-main);
  box-shadow: 0 4px 16px rgba(0, 0, 0, 0.2);
}

/* --- Floating Liquid Glass Navigation Dock --- */
header.dock-header {
  position: fixed;
  top: 18px;
  left: 50%;
  transform: translateX(-50%);
  z-index: 1000;
  width: auto;
  max-width: 95vw;
}

.dock-outer {
  display: flex;
  align-items: center;
  justify-content: center;
  position: relative;
}

.dock-panel {
  display: flex;
  align-items: center;
  gap: 8px;
  padding: 6px 12px;
  border-radius: 20px;
  background: rgba(3, 7, 18, 0.65);
  backdrop-filter: blur(28px) saturate(200%);
  -webkit-backdrop-filter: blur(28px) saturate(200%);
  border: 1px solid var(--glass-border);
  box-shadow: 0 20px 40px -10px rgba(0, 0, 0, 0.6), inset 0 1px 1px 0 rgba(255, 255, 255, 0.2);
  transition: background 0.3s ease, border-color 0.3s ease;
}

[data-theme="light"] .dock-panel {
  background: rgba(255, 255, 255, 0.75);
  border: 1px solid rgba(15, 23, 42, 0.12);
  box-shadow: 0 16px 36px -8px rgba(15, 23, 42, 0.12);
}

.dock-item {
  position: relative;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  width: 44px;
  height: 44px;
  border-radius: 12px;
  background: rgba(255, 255, 255, 0.04);
  border: 1px solid rgba(255, 255, 255, 0.1);
  color: var(--text-main);
  text-decoration: none;
  cursor: pointer;
  outline: none;
  transition: transform 0.2s cubic-bezier(0.34, 1.56, 0.64, 1), width 0.15s ease, height 0.15s ease, background 0.2s ease, border-color 0.2s ease;
  flex-shrink: 0;
}

[data-theme="light"] .dock-item {
  background: rgba(15, 23, 42, 0.04);
  border: 1px solid rgba(15, 23, 42, 0.08);
}

.dock-item:hover {
  background: rgba(255, 255, 255, 0.14);
  border-color: rgba(255, 255, 255, 0.35);
  transform: translateY(-2px) scale(1.12);
  z-index: 10;
}

[data-theme="light"] .dock-item:hover {
  background: rgba(15, 23, 42, 0.08);
  border-color: rgba(15, 23, 42, 0.25);
}

.dock-icon {
  display: flex;
  align-items: center;
  justify-content: center;
}

.dock-logo-img {
  height: 24px;
  width: auto;
  object-fit: contain;
}

.dock-label {
  position: absolute;
  top: 54px;
  left: 50%;
  transform: translateX(-50%) translateY(-6px);
  white-space: nowrap;
  border-radius: 6px;
  border: 1px solid var(--glass-border);
  background: rgba(3, 7, 18, 0.9);
  padding: 4px 10px;
  font-size: 12px;
  font-weight: 600;
  color: #ffffff;
  opacity: 0;
  pointer-events: none;
  transition: opacity 0.2s ease, transform 0.2s ease;
  backdrop-filter: blur(12px);
  box-shadow: 0 8px 16px rgba(0, 0, 0, 0.4);
}

[data-theme="light"] .dock-label {
  background: rgba(255, 255, 255, 0.95);
  color: #0f172a;
  box-shadow: 0 8px 16px rgba(15, 23, 42, 0.12);
}

.dock-item:hover .dock-label {
  opacity: 1;
  transform: translateX(-50%) translateY(0);
}

.dock-divider {
  width: 1px;
  height: 24px;
  background: var(--outline-subtle);
  margin: 0 2px;
}

.dock-btn-primary {
  background: linear-gradient(135deg, rgba(255, 255, 255, 0.95) 0%, rgba(226, 232, 240, 0.85) 100%);
  color: #030712;
  border: 1px solid rgba(255, 255, 255, 0.5);
  font-weight: 700;
}

[data-theme="light"] .dock-btn-primary {
  background: #0f172a;
  color: #ffffff;
}

/* Theme Switcher Button */
.theme-toggle-btn {
  background: rgba(255, 255, 255, 0.05);
  border: 1px solid var(--outline-subtle);
  color: var(--text-main);
  width: 40px;
  height: 40px;
  border-radius: var(--radius-md);
  cursor: pointer;
  display: flex;
  align-items: center;
  justify-content: center;
  transition: background var(--transition-fast), border-color var(--transition-fast);
  backdrop-filter: blur(10px);
}

.theme-toggle-btn:hover {
  background: rgba(255, 255, 255, 0.12);
  border-color: rgba(255, 255, 255, 0.3);
}

/* Buttons (Apple Liquid Glass Style) */
.btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 10px;
  padding: 12px 24px;
  height: 48px;
  border-radius: var(--radius-md);
  font-size: 15px;
  font-weight: 600;
  cursor: pointer;
  text-decoration: none;
  transition: all var(--transition-smooth);
  border: none;
  outline: none;
}

.btn-primary {
  background: linear-gradient(135deg, rgba(255, 255, 255, 0.95) 0%, rgba(226, 232, 240, 0.85) 100%);
  color: #030712;
  box-shadow: 0 4px 20px rgba(255, 255, 255, 0.2);
  border: 1px solid rgba(255, 255, 255, 0.5);
  position: relative;
  overflow: hidden;
  font-weight: 700;
}

[data-theme="light"] .btn-primary {
  background: linear-gradient(135deg, #0f172a 0%, #334155 100%);
  color: #ffffff;
  border: 1px solid rgba(15, 23, 42, 0.2);
}

.btn-primary:hover {
  transform: translateY(-2px);
  box-shadow: 0 8px 30px rgba(255, 255, 255, 0.3);
  filter: brightness(1.08);
}

.btn-primary:active {
  transform: translateY(0);
}

.btn-secondary {
  background: rgba(255, 255, 255, 0.04);
  color: var(--text-main);
  border: 1px solid var(--glass-border);
  backdrop-filter: blur(16px);
  -webkit-backdrop-filter: blur(16px);
}

.btn-secondary:hover {
  background: rgba(255, 255, 255, 0.1);
  border-color: rgba(255, 255, 255, 0.3);
  color: var(--text-main);
}

.btn-glow {
  box-shadow: 0 0 30px rgba(255, 255, 255, 0.2);
}

/* --- Mobile Menu Button --- */
.mobile-menu-toggle {
  display: none;
  background: transparent;
  border: none;
  color: var(--text-main);
  font-size: 24px;
  cursor: pointer;
}

/* --- Hero Section --- */
.hero-section {
  padding: 170px 0 100px;
  position: relative;
  text-align: center;
}

.hero-content {
  max-width: 900px;
  margin: 0 auto;
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 24px;
}

.hero-badge-wrap {
  margin-bottom: 8px;
}

.hero-title {
  font-size: clamp(38px, 5.5vw, 68px);
  font-weight: 800;
  line-height: 1.08;
  letter-spacing: -0.035em;
  color: var(--text-main);
}

.hero-title span.gradient-text {
  background: linear-gradient(135deg, #ffffff 0%, #38bdf8 50%, #cbd5e1 100%);
  -webkit-background-clip: text;
  -webkit-text-fill-color: transparent;
}

[data-theme="light"] .hero-title span.gradient-text {
  background: linear-gradient(135deg, #0f172a 0%, #0284c7 50%, #475569 100%);
  -webkit-background-clip: text;
  -webkit-text-fill-color: transparent;
}

.hero-subtitle {
  font-size: clamp(16px, 2vw, 20px);
  color: var(--text-muted);
  max-width: 740px;
  font-weight: 400;
  line-height: 1.6;
}

.hero-ctas {
  display: flex;
  align-items: center;
  gap: 16px;
  margin-top: 12px;
  flex-wrap: wrap;
  justify-content: center;
}

.hero-stats-row {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(180px, 1fr));
  gap: 16px;
  width: 100%;
  max-width: 850px;
  margin-top: 48px;
}

.stat-card {
  padding: 24px 20px;
  text-align: center;
}

.stat-number {
  font-size: 32px;
  font-weight: 700;
  font-family: var(--font-mono);
  color: var(--text-main);
  margin-bottom: 4px;
}

.stat-label {
  font-size: 13px;
  color: var(--text-muted);
  text-transform: uppercase;
  letter-spacing: 0.05em;
  font-weight: 600;
}

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

.section-tag {
  font-size: 12px;
  font-weight: 700;
  text-transform: uppercase;
  letter-spacing: 0.12em;
  color: var(--secondary);
  margin-bottom: 12px;
  display: block;
}

.section-title {
  font-size: clamp(28px, 3.5vw, 42px);
  font-weight: 800;
  letter-spacing: -0.025em;
  line-height: 1.2;
  margin-bottom: 16px;
}

.section-desc {
  font-size: 17px;
  color: var(--text-muted);
}

/* --- Section 1: Interactive Syllabus & Daily Task Demo --- */
.demo-section {
  padding: 80px 0;
}

.demo-card-container {
  padding: 36px;
  background: var(--glass-bg);
  backdrop-filter: blur(28px) saturate(190%);
  -webkit-backdrop-filter: blur(28px) saturate(190%);
  border: 1px solid var(--glass-border);
  border-radius: var(--radius-xl);
}

.demo-header-bar {
  display: flex;
  align-items: center;
  justify-content: space-between;
  padding-bottom: 24px;
  border-bottom: 1px solid var(--outline-subtle);
  margin-bottom: 28px;
  flex-wrap: wrap;
  gap: 16px;
}

/* Exam Switcher Tabs */
.exam-switcher {
  display: flex;
  background: rgba(0, 0, 0, 0.4);
  padding: 4px;
  border-radius: var(--radius-md);
  border: 1px solid var(--outline-subtle);
}

[data-theme="light"] .exam-switcher {
  background: rgba(226, 232, 240, 0.6);
}

.exam-btn {
  padding: 8px 20px;
  border-radius: var(--radius-sm);
  background: transparent;
  border: none;
  color: var(--text-muted);
  font-weight: 600;
  font-size: 14px;
  cursor: pointer;
  transition: all var(--transition-fast);
}

.exam-btn.active {
  background: rgba(255, 255, 255, 0.95);
  color: #030712;
  box-shadow: 0 2px 12px rgba(255, 255, 255, 0.2);
}

[data-theme="light"] .exam-btn.active {
  background: #0f172a;
  color: #ffffff;
}

.demo-meta {
  display: flex;
  align-items: center;
  gap: 16px;
}

.meta-pill {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  font-size: 14px;
  font-weight: 600;
  color: var(--text-main);
  background: rgba(255, 255, 255, 0.04);
  padding: 6px 14px;
  border-radius: var(--radius-full);
  border: 1px solid var(--outline-subtle);
  white-space: nowrap;
  flex-shrink: 0;
}

.meta-pill .fire-icon {
  color: #f87171;
}

/* Task Progress Bar */
.progress-container {
  margin-bottom: 28px;
}

.progress-info {
  display: flex;
  justify-content: space-between;
  font-size: 14px;
  font-weight: 600;
  margin-bottom: 8px;
}

.progress-track {
  width: 100%;
  height: 8px;
  background: rgba(255, 255, 255, 0.08);
  border-radius: var(--radius-full);
  overflow: hidden;
  position: relative;
}

.progress-fill {
  height: 100%;
  width: 50%;
  background: linear-gradient(90deg, #ffffff 0%, #38bdf8 100%);
  border-radius: var(--radius-full);
  transition: width 0.5s ease;
}

[data-theme="light"] .progress-fill {
  background: linear-gradient(90deg, #0f172a 0%, #0284c7 100%);
}

/* Task Checklist Cards Grid */
.tasks-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(300px, 1fr));
  gap: 16px;
}

.task-item {
  display: flex;
  align-items: flex-start;
  gap: 16px;
  padding: 18px;
  background: rgba(255, 255, 255, 0.02);
  border: 1px solid var(--glass-border);
  border-radius: var(--radius-md);
  cursor: pointer;
  transition: all var(--transition-fast);
  backdrop-filter: blur(12px);
}

.task-item:hover {
  border-color: rgba(255, 255, 255, 0.3);
  background: rgba(255, 255, 255, 0.05);
}

.task-item.completed {
  opacity: 0.65;
  border-color: var(--success);
}

.task-checkbox {
  width: 22px;
  height: 22px;
  border-radius: var(--radius-sm);
  border: 2px solid var(--outline);
  display: flex;
  align-items: center;
  justify-content: center;
  margin-top: 2px;
  transition: all var(--transition-fast);
  flex-shrink: 0;
}

.task-item.completed .task-checkbox {
  background: var(--success);
  border-color: var(--success);
  color: #030712;
}

.task-content {
  flex: 1;
}

.task-subject-tag {
  font-size: 11px;
  font-weight: 700;
  text-transform: uppercase;
  letter-spacing: 0.05em;
  padding: 2px 8px;
  border-radius: 4px;
  display: inline-block;
  margin-bottom: 6px;
}

.tag-physics { background: rgba(56, 189, 248, 0.15); color: #38bdf8; }
.tag-chemistry { background: rgba(248, 250, 25c, 0.15); color: var(--text-main); }
.tag-biology { background: rgba(52, 211, 153, 0.15); color: var(--success); }
.tag-maths { background: rgba(251, 191, 36, 0.15); color: var(--warning); }

.task-title {
  font-size: 15px;
  font-weight: 600;
  margin-bottom: 4px;
  color: var(--text-main);
}

.task-meta {
  font-size: 12px;
  color: var(--text-muted);
  display: flex;
  align-items: center;
  gap: 12px;
}

/* --- Section 2: Features Grid --- */
.features-section {
  padding: 80px 0;
}

.features-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(340px, 1fr));
  gap: 24px;
}

.feature-card {
  padding: 32px;
  display: flex;
  flex-direction: column;
  gap: 16px;
}

.feature-icon-box {
  width: 52px;
  height: 52px;
  border-radius: var(--radius-md);
  background: rgba(255, 255, 255, 0.05);
  border: 1px solid var(--glass-border);
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 24px;
  color: var(--text-main);
  margin-bottom: 8px;
}

.feature-title {
  font-size: 20px;
  font-weight: 700;
  color: var(--text-main);
}

.feature-desc {
  font-size: 15px;
  color: var(--text-muted);
  line-height: 1.6;
}

/* --- Section 3: Interactive Pricing --- */
.pricing-section {
  padding: 80px 0;
}

.pricing-billing-toggle {
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 16px;
  margin-bottom: 48px;
}

.billing-label {
  font-size: 15px;
  font-weight: 600;
  color: var(--text-muted);
}

.billing-label.active {
  color: var(--text-main);
}

.switch {
  position: relative;
  display: inline-block;
  width: 56px;
  height: 30px;
}

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

.slider {
  position: absolute;
  cursor: pointer;
  top: 0; left: 0; right: 0; bottom: 0;
  background-color: rgba(255, 255, 255, 0.1);
  transition: .4s;
  border-radius: 34px;
  border: 1px solid var(--outline-subtle);
}

.slider:before {
  position: absolute;
  content: "";
  height: 22px;
  width: 22px;
  left: 3px;
  bottom: 3px;
  background-color: var(--text-main);
  transition: .4s;
  border-radius: 50%;
}

input:checked + .slider {
  background-color: rgba(255, 255, 255, 0.3);
}

input:checked + .slider:before {
  transform: translateX(26px);
  background-color: #030712;
}

.discount-badge {
  background: rgba(56, 189, 248, 0.2);
  color: #38bdf8;
  border: 1px solid rgba(56, 189, 248, 0.4);
  font-size: 11px;
  font-weight: 800;
  padding: 3px 8px;
  border-radius: var(--radius-full);
  text-transform: uppercase;
}

.pricing-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(320px, 1fr));
  gap: 24px;
  align-items: stretch;
}

.pricing-card {
  padding: 40px 32px;
  display: flex;
  flex-direction: column;
  justify-content: space-between;
}

.pricing-card.popular {
  border-color: rgba(255, 255, 255, 0.35);
  background: rgba(255, 255, 255, 0.05);
  box-shadow: 0 30px 60px rgba(0, 0, 0, 0.6), 0 0 40px rgba(255, 255, 255, 0.08);
  position: relative;
}

.popular-badge {
  position: absolute;
  top: 16px;
  right: 20px;
  background: rgba(255, 255, 255, 0.9);
  color: #030712;
  font-size: 11px;
  font-weight: 800;
  padding: 4px 12px;
  border-radius: var(--radius-full);
  text-transform: uppercase;
  letter-spacing: 0.05em;
}

.plan-name {
  font-size: 22px;
  font-weight: 700;
  margin-bottom: 8px;
}

.plan-desc {
  font-size: 14px;
  color: var(--text-muted);
  margin-bottom: 24px;
}

.plan-price-wrap {
  display: flex;
  align-items: baseline;
  gap: 6px;
  margin-bottom: 28px;
}

.plan-currency {
  font-size: 24px;
  font-weight: 700;
  color: var(--text-main);
}

.plan-price {
  font-size: 48px;
  font-weight: 800;
  font-family: var(--font-mono);
  color: var(--text-main);
  line-height: 1;
}

.plan-period {
  font-size: 14px;
  color: var(--text-muted);
}

.plan-features {
  list-style: none;
  display: flex;
  flex-direction: column;
  gap: 14px;
  margin-bottom: 36px;
}

.plan-feature-item {
  font-size: 14px;
  display: flex;
  align-items: center;
  gap: 10px;
  color: var(--text-main);
}

.plan-feature-item .check-icon {
  color: var(--secondary);
  font-weight: bold;
}

/* --- Section 4: Mobile App Preview Simulator --- */
.mobile-section {
  padding: 80px 0;
}

.mobile-preview-wrapper {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 48px;
  align-items: center;
}

.mobile-info-box {
  display: flex;
  flex-direction: column;
  gap: 20px;
}

.mobile-feature-list {
  list-style: none;
  display: flex;
  flex-direction: column;
  gap: 16px;
  margin-top: 12px;
}

.mobile-feature-item {
  display: flex;
  align-items: flex-start;
  gap: 14px;
}

.mobile-feature-icon {
  width: 36px;
  height: 36px;
  border-radius: var(--radius-sm);
  background: rgba(255, 255, 255, 0.05);
  border: 1px solid var(--glass-border);
  color: var(--text-main);
  display: flex;
  align-items: center;
  justify-content: center;
  flex-shrink: 0;
}

.phone-mockup-container {
  display: flex;
  justify-content: center;
  position: relative;
}

.phone-frame {
  width: 310px;
  height: 620px;
  background: #020610;
  border: 10px solid #1e293b;
  border-radius: 44px;
  box-shadow: 0 30px 80px rgba(0, 0, 0, 0.7), 0 0 30px rgba(255, 255, 255, 0.1);
  position: relative;
  overflow: hidden;
  display: flex;
  flex-direction: column;
}

.phone-notch {
  width: 120px;
  height: 22px;
  background: #1e293b;
  position: absolute;
  top: 0;
  left: 50%;
  transform: translateX(-50%);
  border-bottom-left-radius: 14px;
  border-bottom-right-radius: 14px;
  z-index: 10;
}

.phone-screen {
  flex: 1;
  padding: 40px 16px 16px;
  display: flex;
  flex-direction: column;
  gap: 16px;
  overflow-y: auto;
  background: var(--bg-surface);
}

.phone-app-header {
  display: flex;
  align-items: center;
  justify-content: space-between;
}

.phone-app-header img {
  height: 26px;
}

.phone-daily-card {
  background: var(--glass-bg);
  backdrop-filter: blur(16px);
  border: 1px solid var(--glass-border);
  padding: 16px;
  border-radius: var(--radius-md);
}

.phone-bottom-nav {
  height: 56px;
  background: rgba(3, 7, 18, 0.9);
  border-top: 1px solid var(--outline-subtle);
  display: flex;
  align-items: center;
  justify-content: space-around;
}

.phone-nav-item {
  color: var(--text-muted);
  font-size: 18px;
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 2px;
}

.phone-nav-item.active {
  color: var(--text-main);
}

/* --- Section 5: FAQs Accordion --- */
.faq-section {
  padding: 80px 0;
}

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

.faq-item {
  padding: 24px;
  cursor: pointer;
}

.faq-question {
  display: flex;
  align-items: center;
  justify-content: space-between;
  font-size: 18px;
  font-weight: 700;
  color: var(--text-main);
}

.faq-icon {
  transition: transform var(--transition-smooth);
}

.faq-item.active .faq-icon {
  transform: rotate(180deg);
  color: var(--text-main);
}

.faq-answer {
  max-height: 0;
  overflow: hidden;
  transition: max-height var(--transition-smooth), opacity var(--transition-smooth);
  opacity: 0;
  font-size: 15px;
  color: var(--text-muted);
  margin-top: 0;
}

.faq-item.active .faq-answer {
  max-height: 200px;
  opacity: 1;
  margin-top: 16px;
}

/* --- Footer --- */
footer.footer {
  padding: 80px 0 40px;
  border-top: 1px solid var(--outline-subtle);
  background: var(--bg-surface-lowest);
  position: relative;
  z-index: 2;
}

.footer-grid {
  display: grid;
  grid-template-columns: 2fr repeat(3, 1fr);
  gap: 40px;
  margin-bottom: 60px;
}

.footer-brand img {
  height: 44px;
  margin-bottom: 16px;
}

.footer-brand p {
  color: var(--text-muted);
  font-size: 14px;
  max-width: 320px;
}

.footer-col-title {
  font-size: 15px;
  font-weight: 700;
  color: var(--text-main);
  margin-bottom: 20px;
}

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

.footer-link {
  color: var(--text-muted);
  text-decoration: none;
  font-size: 14px;
  transition: color var(--transition-fast);
}

.footer-link:hover {
  color: var(--text-main);
}

.footer-bottom {
  display: flex;
  align-items: center;
  justify-content: center;
  text-align: center;
  padding-top: 32px;
  border-top: 1px solid var(--outline-subtle);
  font-size: 13px;
  color: var(--text-muted);
}

/* --- Responsive Rules --- */
@media (max-width: 992px) {
  .mobile-preview-wrapper {
    grid-template-columns: 1fr;
    text-align: center;
  }
  .mobile-info-box {
    align-items: center;
  }
  .footer-grid {
    grid-template-columns: 1fr 1fr;
  }
}

@media (max-width: 768px) {
  header.dock-header {
    top: auto;
    bottom: 16px;
    left: 50%;
    transform: translateX(-50%);
    width: calc(100vw - 24px);
    max-width: 480px;
  }

  .dock-panel {
    width: 100%;
    overflow-x: auto;
    overflow-y: hidden;
    -webkit-overflow-scrolling: touch;
    scrollbar-width: none;
    justify-content: flex-start;
    padding: 8px 12px;
    border-radius: 24px;
    gap: 10px;
  }

  .dock-panel::-webkit-scrollbar {
    display: none;
  }

  .dock-item {
    width: 44px;
    height: 44px;
    flex-shrink: 0;
  }

  /* Pop up tooltips above the bottom dock on mobile */
  .dock-label {
    top: -42px;
    transform: translateX(-50%) translateY(4px);
  }

  .dock-item:hover .dock-label,
  .dock-item:focus .dock-label {
    opacity: 1;
    transform: translateX(-50%) translateY(0);
  }

  .hero-section {
    padding-top: 100px;
    padding-bottom: 120px;
  }

  .hero-stats-row {
    grid-template-columns: 1fr 1fr;
  }
  .footer-grid {
    grid-template-columns: 1fr;
  }

  /* Ensure Sign In button on mobile displays text and is wide, front-pinned */
  .dock-panel .dock-btn-login {
    width: auto !important;
    min-width: 95px !important;
    padding: 0 20px !important;
    flex-shrink: 0 !important;
    display: inline-flex !important;
    align-items: center !important;
    justify-content: center !important;
    border-radius: 20px;
  }

  .dock-btn-login .dock-btn-text {
    display: inline-block !important;
    font-weight: 700;
    font-size: 13px;
    color: #38bdf8;
    white-space: nowrap;
  }

  /* Simulator Demo Card Responsive Fixes */
  .demo-card-container {
    padding: 20px 14px;
    border-radius: var(--radius-lg);
  }

  .demo-header-bar {
    flex-direction: column;
    align-items: stretch;
    gap: 14px;
    padding-bottom: 18px;
    margin-bottom: 20px;
  }

  .exam-switcher {
    width: 100%;
    display: flex;
  }

  .exam-btn {
    flex: 1;
    text-align: center;
    padding: 10px 6px;
    font-size: 13px;
    white-space: nowrap;
  }

  .demo-meta {
    width: 100%;
    display: flex;
    justify-content: space-between;
    gap: 8px;
  }

  .meta-pill {
    flex: 1;
    justify-content: center;
    font-size: 12px;
    padding: 6px 10px;
    white-space: nowrap;
  }

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

  .task-item {
    padding: 14px 12px;
  }

  .task-title {
    font-size: 14px;
    line-height: 1.35;
    word-break: break-word;
    overflow-wrap: break-word;
  }

  .task-meta {
    font-size: 11px;
    flex-wrap: wrap;
    gap: 6px;
  }
}

/* --- Dock Login Button (Always Visible & Front Pinned) --- */
.dock-btn-login {
  width: auto;
  min-width: 110px;
  padding: 0 24px;
  background: rgba(56, 189, 248, 0.16);
  border: 1px solid rgba(56, 189, 248, 0.45);
  color: #38bdf8;
  border-radius: var(--radius-md);
  flex-shrink: 0;
  cursor: pointer;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  transition: all var(--transition-fast);
  box-shadow: 0 0 16px rgba(56, 189, 248, 0.15);
}

.dock-btn-login:hover {
  background: rgba(56, 189, 248, 0.28);
  border-color: rgba(56, 189, 248, 0.8);
  box-shadow: 0 0 24px rgba(56, 189, 248, 0.35);
  transform: translateY(-2px);
}

.dock-btn-login .dock-icon {
  display: flex;
  align-items: center;
  gap: 6px;
}

.dock-btn-login .dock-btn-text {
  font-weight: 700;
  font-size: 13px;
  color: #38bdf8;
  white-space: nowrap;
}

/* --- Auth Modal Overlay --- */
.auth-modal-overlay {
  position: fixed;
  top: 0;
  left: 0;
  width: 100vw;
  height: 100vh;
  background: rgba(2, 6, 16, 0.75);
  backdrop-filter: blur(16px);
  -webkit-backdrop-filter: blur(16px);
  z-index: 9999;
  display: flex;
  align-items: center;
  justify-content: center;
  padding: 20px;
  opacity: 0;
  visibility: hidden;
  transition: opacity 0.3s ease, visibility 0.3s ease;
}

.auth-modal-overlay.active {
  opacity: 1;
  visibility: visible;
  display: flex !important;
}

.auth-modal {
  width: 100%;
  max-width: 440px;
  padding: 36px 32px;
  position: relative;
  background: var(--bg-surface);
  border: 1px solid var(--glass-border);
  box-shadow: 0 24px 60px rgba(0, 0, 0, 0.6);
  transform: translateY(12px) scale(0.96);
  transition: transform 0.3s cubic-bezier(0.16, 1, 0.3, 1);
}

.auth-modal-overlay.active .auth-modal {
  transform: translateY(0) scale(1);
}

.modal-close-btn {
  position: absolute;
  top: 16px;
  right: 18px;
  background: transparent;
  border: none;
  color: var(--text-muted);
  font-size: 24px;
  cursor: pointer;
  line-height: 1;
  transition: color var(--transition-fast);
}

.modal-close-btn:hover {
  color: var(--text-main);
}

.auth-modal-header {
  text-align: center;
  margin-bottom: 24px;
}

.auth-modal-logo {
  height: 38px;
  margin-bottom: 12px;
}

.auth-title {
  font-size: 22px;
  font-weight: 800;
  color: var(--text-main);
  margin-bottom: 4px;
}

.auth-subtitle {
  font-size: 13px;
  color: var(--text-muted);
}

.auth-tabs {
  display: flex;
  background: rgba(0, 0, 0, 0.3);
  padding: 4px;
  border-radius: var(--radius-md);
  margin-bottom: 20px;
  border: 1px solid var(--outline-subtle);
}

.auth-tab-btn {
  flex: 1;
  padding: 10px;
  border: none;
  background: transparent;
  color: var(--text-muted);
  font-weight: 600;
  font-size: 14px;
  border-radius: var(--radius-sm);
  cursor: pointer;
  transition: all var(--transition-fast);
}

.auth-tab-btn.active {
  background: var(--text-main);
  color: var(--bg-main);
}

.form-group {
  margin-bottom: 16px;
  display: flex;
  flex-direction: column;
  gap: 6px;
}

.form-group label {
  font-size: 12px;
  font-weight: 700;
  text-transform: uppercase;
  letter-spacing: 0.05em;
  color: var(--text-muted);
}

.form-input {
  padding: 12px 14px;
  border-radius: var(--radius-md);
  border: 1px solid var(--outline);
  background: rgba(255, 255, 255, 0.04);
  color: var(--text-main);
  font-size: 15px;
  outline: none;
  transition: border-color var(--transition-fast);
}

.form-input:focus {
  border-color: var(--primary);
  background: rgba(255, 255, 255, 0.08);
}

.auth-feedback {
  padding: 10px;
  border-radius: var(--radius-sm);
  font-size: 13px;
  margin-bottom: 16px;
}

.auth-feedback.error {
  background: rgba(239, 68, 68, 0.15);
  color: #f87171;
  border: 1px solid rgba(239, 68, 68, 0.3);
}

.auth-feedback.success {
  background: rgba(52, 211, 153, 0.15);
  color: #34d399;
  border: 1px solid rgba(52, 211, 153, 0.3);
}

.auth-submit-btn {
  width: 100%;
  margin-top: 8px;
}

.auth-divider {
  display: flex;
  align-items: center;
  text-align: center;
  margin: 20px 0;
  color: var(--text-muted);
  font-size: 12px;
}

.auth-divider::before,
.auth-divider::after {
  content: '';
  flex: 1;
  border-bottom: 1px solid var(--outline-subtle);
}

.auth-divider span {
  padding: 0 10px;
}

.demo-auth-btn {
  width: 100%;
}

