/* ==========================================================================
   JAWU Digital School - Premium CSS Styling
   ========================================================================== */

/* --------------------------------------------------------------------------
   1. Design System & CSS Variables
   -------------------------------------------------------------------------- */
:root {
  /* Fonts */
  --font-main: 'Inter', system-ui, -apple-system, sans-serif;
  --font-title: 'Outfit', sans-serif;

  /* Theme Light Colors (Aligned with Logo Colors: Navy, Royal Blue, Green, Orange) */
  --bg-primary: #f8fafc;
  --bg-secondary: #ffffff;
  --bg-tertiary: #f1f5f9;
  
  --text-primary: #001b44; /* Brand Navy Blue */
  --text-secondary: #475569;
  --text-muted: #94a3b8;
  
  --primary-color: #001b44; /* Brand Navy Blue */
  --primary-rgb: 0, 27, 68;
  --primary-glow: rgba(0, 27, 68, 0.06);
  
  --accent-green: #009a3d; /* Brand Green */
  --accent-orange: #f97316; /* Brand Orange */
  --accent-orange-rgb: 249, 115, 22;
  --accent-orange-hover: #e06000;
  --accent-blue: #0052cc; /* Brand Royal Blue */
  --accent-purple: #8b5cf6;
  --accent-teal: #14b8a6;
  --accent-sky: #0284c7;

  --border-color: #e2e8f0;
  --border-hover: #cbd5e1;
  
  /* Glassmorphism & Shadows */
  --glass-bg: rgba(255, 255, 255, 0.75);
  --glass-border: rgba(255, 255, 255, 0.5);
  --glass-shadow: 0 10px 40px -10px rgba(0, 27, 68, 0.08);
  --card-shadow: 0 4px 20px 0 rgba(0, 27, 68, 0.04);
  --glow-shadow: 0 10px 30px rgba(249, 115, 22, 0.3);
  
  --transition-fast: 0.2s ease;
  --transition-normal: 0.3s cubic-bezier(0.4, 0, 0.2, 1);
  --transition-slow: 0.6s cubic-bezier(0.4, 0, 0.2, 1);

  --border-radius-sm: 8px;
  --border-radius-md: 16px;
  --border-radius-lg: 24px;
}

[data-theme="dark"] {
  /* Theme Dark Colors (Adapted for optimal contrast on dark backgrounds) */
  --bg-primary: #070b13;
  --bg-secondary: #0d1525;
  --bg-tertiary: #131e33;
  
  --text-primary: #f8fafc;
  --text-secondary: #94a3b8;
  --text-muted: #64748b;
  
  --primary-color: #4da6ff; /* Soft Royal Blue for dark contrast */
  --primary-rgb: 77, 166, 255;
  --primary-glow: rgba(77, 166, 255, 0.15);
  
  --accent-green: #00cc52; /* Vibrant Brand Green */
  --accent-orange: #fb923c; /* Brand Orange */
  --accent-orange-rgb: 251, 146, 60;
  --accent-orange-hover: #f97316;
  --accent-blue: #4da6ff; /* Soft Royal Blue */
  --accent-purple: #a78bfa;
  --accent-teal: #2dd4bf;
  --accent-sky: #38bdf8;

  --border-color: #1e293b;
  --border-hover: #334155;
  
  /* Glassmorphism & Shadows */
  --glass-bg: rgba(13, 21, 37, 0.75);
  --glass-border: rgba(30, 41, 59, 0.7);
  --glass-shadow: 0 10px 40px -10px rgba(0, 0, 0, 0.5);
  --card-shadow: 0 4px 20px 0 rgba(0, 0, 0, 0.3);
  --glow-shadow: 0 10px 30px rgba(251, 146, 60, 0.4);
}

/* --------------------------------------------------------------------------
   2. Reset & General Styles
   -------------------------------------------------------------------------- */
* {
  box-sizing: border-box;
  margin: 0;
  padding: 0;
}

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

body {
  font-family: var(--font-main);
  background-color: var(--bg-primary);
  color: var(--text-secondary);
  line-height: 1.6;
  overflow-x: hidden;
  transition: background-color var(--transition-normal), color var(--transition-normal);
}

h1, h2, h3, h4 {
  font-family: var(--font-title);
  color: var(--text-primary);
  font-weight: 700;
  line-height: 1.25;
  transition: color var(--transition-normal);
}

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

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

.container {
  width: 100%;
  max-width: 1200px;
  margin: 0 auto;
  padding: 0 24px;
}

.text-center {
  text-align: center;
}

.hidden {
  display: none !important;
}

/* --------------------------------------------------------------------------
   3. Buttons & Typography Layout
   -------------------------------------------------------------------------- */
.btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  font-family: var(--font-main);
  font-weight: 600;
  font-size: 0.95rem;
  padding: 12px 28px;
  border-radius: var(--border-radius-sm);
  border: none;
  cursor: pointer;
  transition: all var(--transition-normal);
  gap: 8px;
  white-space: nowrap;
}

.btn-primary {
  background-color: var(--accent-orange);
  color: #ffffff;
  box-shadow: var(--glow-shadow);
}

.btn-primary:hover {
  background-color: var(--accent-orange-hover);
  transform: translateY(-2px);
  box-shadow: 0 12px 35px rgba(var(--accent-orange-rgb), 0.4);
}

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

.btn-outline {
  background-color: transparent;
  color: var(--text-primary);
  border: 2px solid var(--border-color);
}

.btn-outline:hover {
  background-color: var(--bg-tertiary);
  border-color: var(--border-hover);
  transform: translateY(-2px);
}

.btn-white {
  background-color: #ffffff;
  color: #0b1a30;
  box-shadow: 0 10px 30px rgba(0, 0, 0, 0.1);
}

.btn-white:hover {
  background-color: #f8fafc;
  transform: translateY(-2px);
  box-shadow: 0 15px 35px rgba(0, 0, 0, 0.15);
}

.btn-lg {
  padding: 16px 36px;
  font-size: 1.05rem;
  border-radius: var(--border-radius-sm);
}

.btn-block {
  display: flex;
  width: 100%;
}

.btn-arrow {
  width: 18px;
  height: 18px;
  transition: transform var(--transition-fast);
}

.btn:hover .btn-arrow {
  transform: translateX(4px);
}

/* Glassmorphism Card Utility */
.glassmorphism {
  background: var(--glass-bg);
  backdrop-filter: blur(16px);
  -webkit-backdrop-filter: blur(16px);
  border: 1px solid var(--glass-border);
  box-shadow: var(--glass-shadow);
}

/* --------------------------------------------------------------------------
   4. Navigation Bar
   -------------------------------------------------------------------------- */
.navbar {
  position: fixed;
  top: 0;
  left: 0;
  width: 100%;
  z-index: 1000;
  height: 80px;
  display: flex;
  align-items: center;
  transition: background-color var(--transition-normal), border-bottom var(--transition-normal);
  border-bottom: 1px solid transparent;
}

.navbar.scrolled {
  background-color: var(--glass-bg);
  backdrop-filter: blur(16px);
  -webkit-backdrop-filter: blur(16px);
  border-bottom: 1px solid var(--glass-border);
  box-shadow: var(--glass-shadow);
  height: 70px;
}

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

.logo-link {
  display: flex;
  align-items: center;
}

.logo-img {
  height: 44px;
  width: auto;
  margin-right: 12px;
  border-radius: 6px;
  background-color: #ffffff;
  padding: 2px;
  box-shadow: 0 2px 8px rgba(0, 0, 0, 0.1);
  transition: transform var(--transition-fast);
}

.logo-link:hover .logo-img {
  transform: scale(1.05);
}

.logo-text-group {
  display: flex;
  flex-direction: column;
  justify-content: center;
}

.logo-text-main {
  font-family: var(--font-title);
  font-weight: 800;
  font-size: 1.25rem;
  color: var(--text-primary);
  line-height: 1.1;
  transition: color var(--transition-normal);
}

.logo-text-sub {
  font-family: var(--font-main);
  font-weight: 600;
  font-size: 0.65rem;
  letter-spacing: 1.5px;
  color: var(--text-muted);
  line-height: 1;
  margin-top: 2px;
  transition: color var(--transition-normal);
}

.nav-menu {
  display: flex;
  gap: 32px;
}

.nav-item {
  font-weight: 500;
  color: var(--text-secondary);
  font-size: 0.95rem;
  position: relative;
  padding: 6px 0;
}

.nav-item::after {
  content: '';
  position: absolute;
  bottom: 0;
  left: 0;
  width: 0;
  height: 2px;
  background-color: var(--accent-orange);
  transition: width var(--transition-fast);
}

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

.nav-item:hover::after {
  width: 100%;
}

.nav-actions {
  display: flex;
  align-items: center;
  gap: 20px;
}

/* Theme Toggle Button */
.theme-toggle-btn {
  background: none;
  border: 1px solid var(--border-color);
  color: var(--text-secondary);
  width: 40px;
  height: 40px;
  border-radius: 50%;
  cursor: pointer;
  display: flex;
  align-items: center;
  justify-content: center;
  transition: all var(--transition-fast);
}

.theme-toggle-btn:hover {
  border-color: var(--border-hover);
  color: var(--text-primary);
  background-color: var(--bg-tertiary);
}

.theme-toggle-btn .sun-icon {
  display: block;
  width: 20px;
  height: 20px;
}

.theme-toggle-btn .moon-icon {
  display: none;
  width: 20px;
  height: 20px;
}

[data-theme="dark"] .theme-toggle-btn .sun-icon {
  display: none;
}

[data-theme="dark"] .theme-toggle-btn .moon-icon {
  display: block;
}

/* Mobile Menu Toggle */
.mobile-menu-toggle {
  display: none;
  flex-direction: column;
  justify-content: space-between;
  width: 24px;
  height: 18px;
  background: none;
  border: none;
  cursor: pointer;
  z-index: 1001;
}

.mobile-menu-toggle span {
  width: 100%;
  height: 2px;
  background-color: var(--text-primary);
  border-radius: 2px;
  transition: all var(--transition-fast);
}

/* --------------------------------------------------------------------------
   5. Hero Section
   -------------------------------------------------------------------------- */
.hero-section {
  position: relative;
  padding-top: 160px;
  padding-bottom: 100px;
  overflow: hidden;
  background: radial-gradient(circle at 10% 20%, var(--primary-glow) 0%, transparent 60%);
}

.hero-bg-shapes {
  position: absolute;
  top: 0;
  right: 0;
  width: 100%;
  height: 100%;
  pointer-events: none;
  z-index: -1;
}

.shape {
  position: absolute;
  border-radius: 50%;
  filter: blur(80px);
  opacity: 0.15;
}

.shape-1 {
  top: 10%;
  right: 5%;
  width: 400px;
  height: 400px;
  background-color: var(--accent-blue);
}

.shape-2 {
  bottom: 10%;
  left: 20%;
  width: 300px;
  height: 300px;
  background-color: var(--accent-orange);
}

.hero-container {
  display: grid;
  grid-template-columns: 1.1fr 0.9fr;
  align-items: center;
  gap: 48px;
}

.badge-new {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  background-color: var(--bg-tertiary);
  color: var(--text-primary);
  font-weight: 600;
  font-size: 0.85rem;
  padding: 6px 16px;
  border-radius: 100px;
  margin-bottom: 24px;
  border: 1px solid var(--border-color);
}

.badge-dot {
  width: 8px;
  height: 8px;
  background-color: var(--accent-green);
  border-radius: 50%;
  animation: pulse-dot 2s infinite;
}

@keyframes pulse-dot {
  0% { transform: scale(0.95); box-shadow: 0 0 0 0 rgba(16, 185, 129, 0.7); }
  70% { transform: scale(1); box-shadow: 0 0 0 6px rgba(16, 185, 129, 0); }
  100% { transform: scale(0.95); box-shadow: 0 0 0 0 rgba(16, 185, 129, 0); }
}

.hero-title {
  font-size: 3.5rem;
  line-height: 1.15;
  margin-bottom: 24px;
  letter-spacing: -0.02em;
}

.hero-subtitle {
  font-size: 1.15rem;
  color: var(--text-secondary);
  margin-bottom: 36px;
  max-width: 580px;
}

.hero-ctas {
  display: flex;
  gap: 16px;
  margin-bottom: 48px;
}

.hero-trust {
  display: flex;
  align-items: center;
  gap: 16px;
  border-top: 1px solid var(--border-color);
  padding-top: 24px;
}

.trust-avatars {
  display: flex;
}

.avatar {
  width: 36px;
  height: 36px;
  border-radius: 50%;
  border: 2px solid var(--bg-secondary);
  background-color: var(--primary-color);
  color: #ffffff;
  display: flex;
  align-items: center;
  justify-content: center;
  font-weight: 700;
  font-size: 0.8rem;
  margin-left: -8px;
  box-shadow: var(--card-shadow);
}

.avatar:first-child {
  margin-left: 0;
  background-color: var(--accent-orange);
}
.avatar:nth-child(2) { background-color: var(--accent-green); }
.avatar:nth-child(3) { background-color: var(--accent-blue); }
.avatar:nth-child(4) { background-color: var(--accent-purple); }

.trust-text {
  font-size: 0.9rem;
}

/* Hero Desktop Mockup representation */
.hero-visual {
  position: relative;
  perspective: 1000px;
}

.mockup-frame {
  border-radius: var(--border-radius-md);
  overflow: hidden;
  box-shadow: 0 25px 60px -15px rgba(0, 0, 0, 0.12);
  transition: transform var(--transition-slow);
}

.mockup-header {
  height: 36px;
  background-color: var(--bg-tertiary);
  border-bottom: 1px solid var(--border-color);
  display: flex;
  align-items: center;
  padding: 0 16px;
  position: relative;
}

.window-dots {
  display: flex;
  gap: 6px;
}

.dot {
  width: 8px;
  height: 8px;
  border-radius: 50%;
}

.dot.red { background-color: #ef4444; }
.dot.yellow { background-color: #eab308; }
.dot.green { background-color: #22c55e; }

.window-url {
  position: absolute;
  left: 50%;
  transform: translateX(-50%);
  font-size: 0.75rem;
  color: var(--text-muted);
  font-family: monospace;
}

.mockup-body {
  height: 380px;
  display: flex;
  background-color: var(--bg-secondary);
}

/* Simulated mini sidebar */
.sim-sidebar {
  width: 80px;
  background-color: var(--bg-tertiary);
  border-right: 1px solid var(--border-color);
  padding: 16px 8px;
  display: flex;
  flex-direction: column;
  gap: 16px;
}

.sidebar-logo {
  display: flex;
  align-items: center;
  gap: 6px;
  font-weight: 700;
  font-size: 0.75rem;
  color: var(--text-primary);
  margin-bottom: 16px;
}

.sidebar-logo .circle-icon {
  width: 14px;
  height: 14px;
  background-color: var(--accent-orange);
  border-radius: 50%;
}

.sidebar-item {
  font-size: 0.65rem;
  padding: 6px 8px;
  border-radius: 4px;
  cursor: pointer;
  white-space: nowrap;
  overflow: hidden;
}

.sidebar-item.active, .sidebar-item:hover {
  background-color: var(--bg-secondary);
  color: var(--text-primary);
  font-weight: 600;
}

/* Simulated content inside mockup */
.sim-content {
  flex: 1;
  padding: 20px;
  display: flex;
  flex-direction: column;
  gap: 16px;
  overflow: hidden;
}

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

.sim-header h2 {
  font-size: 1.1rem;
}

.sim-user {
  font-size: 0.75rem;
  background-color: var(--bg-tertiary);
  padding: 4px 10px;
  border-radius: 100px;
  font-weight: 500;
}

.sim-stats-grid {
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  gap: 10px;
}

.sim-stat-card {
  background-color: var(--bg-tertiary);
  border: 1px solid var(--border-color);
  border-radius: 8px;
  padding: 10px;
  display: flex;
  flex-direction: column;
}

.sim-stat-card.highlight {
  border-color: rgba(249, 115, 22, 0.3);
  background-color: rgba(249, 115, 22, 0.03);
}

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

.stat-value {
  font-size: 1.15rem;
  font-weight: 700;
  font-family: var(--font-title);
  color: var(--text-primary);
  margin: 4px 0;
}

.stat-value.orange-text {
  color: var(--accent-orange);
}

.stat-change {
  font-size: 0.55rem;
  color: var(--text-muted);
}

.stat-change.positive {
  color: var(--accent-green);
}

.sim-charts {
  display: grid;
  grid-template-columns: 1.3fr 0.7fr;
  gap: 12px;
  flex: 1;
}

.sim-chart-box {
  background-color: var(--bg-tertiary);
  border: 1px solid var(--border-color);
  border-radius: 8px;
  padding: 10px;
  display: flex;
  flex-direction: column;
  justify-content: space-between;
}

.chart-header {
  font-size: 0.7rem;
  font-weight: 600;
  display: flex;
  justify-content: space-between;
  color: var(--text-primary);
}

.chart-legend {
  font-size: 0.6rem;
  color: var(--text-muted);
  display: inline-flex;
  align-items: center;
  gap: 4px;
}

.legend-color {
  width: 6px;
  height: 6px;
  border-radius: 50%;
  background-color: var(--accent-blue);
}

.chart-container {
  position: relative;
  width: 100%;
  height: 70px;
}

.svg-chart-line {
  width: 100%;
  height: 100%;
  overflow: visible;
}

.chart-stroke-path {
  stroke-dasharray: 600;
  stroke-dashoffset: 600;
  animation: draw-chart 2.5s ease-out forwards;
}

@keyframes draw-chart {
  to { stroke-dashoffset: 0; }
}

.doughnut-container {
  display: flex;
  justify-content: center;
  align-items: center;
  position: relative;
  height: 70px;
}

.svg-chart-doughnut {
  width: 70px;
  height: 70px;
}

.doughnut-segment {
  stroke-dasharray: 219.9;
  stroke-dashoffset: 219.9;
  animation: draw-doughnut 2s cubic-bezier(0.4, 0, 0.2, 1) forwards;
}

@keyframes draw-doughnut {
  to { stroke-dashoffset: var(--dashoffset, 0); }
}

/* Set specific dashoffsets for animated segments in JS */

.doughnut-center-text {
  position: absolute;
  font-size: 0.7rem;
  font-weight: 700;
  color: var(--text-primary);
}

/* --------------------------------------------------------------------------
   6. Simulator Section
   -------------------------------------------------------------------------- */
.simulator-section {
  padding: 100px 0;
  background-color: var(--bg-tertiary);
  transition: background-color var(--theme-transition);
}

.section-header {
  margin-bottom: 64px;
}

.section-title {
  font-size: 2.5rem;
  margin-bottom: 16px;
}

.section-subtitle {
  font-size: 1.1rem;
  max-width: 600px;
  margin: 0 auto;
}

.simulator-card {
  display: grid;
  grid-template-columns: 1.1fr 0.9fr;
  border-radius: var(--border-radius-lg);
  overflow: hidden;
  box-shadow: 0 30px 60px rgba(0, 0, 0, 0.05);
}

.simulator-inputs {
  padding: 48px;
}

.input-group {
  margin-bottom: 36px;
}

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

.label-wrapper {
  display: flex;
  justify-content: space-between;
  align-items: center;
  margin-bottom: 16px;
}

.label-wrapper label {
  font-weight: 600;
  font-size: 1.1rem;
  color: var(--text-primary);
}

.value-display {
  font-family: var(--font-title);
  font-size: 1.25rem;
  font-weight: 700;
  color: var(--accent-orange);
  background-color: rgba(249, 115, 22, 0.08);
  padding: 4px 14px;
  border-radius: 100px;
}

/* Custom range slider */
.slider {
  -webkit-appearance: none;
  width: 100%;
  height: 6px;
  border-radius: 3px;
  background: var(--border-color);
  outline: none;
}

.slider::-webkit-slider-thumb {
  -webkit-appearance: none;
  appearance: none;
  width: 20px;
  height: 20px;
  border-radius: 50%;
  background: var(--accent-orange);
  cursor: pointer;
  box-shadow: 0 4px 10px rgba(249, 115, 22, 0.3);
  transition: transform var(--transition-fast);
}

.slider::-webkit-slider-thumb:hover {
  transform: scale(1.25);
}

.range-labels {
  display: flex;
  justify-content: space-between;
  font-size: 0.8rem;
  color: var(--text-muted);
  margin-top: 8px;
}

.group-label {
  display: block;
  font-weight: 600;
  font-size: 1.1rem;
  color: var(--text-primary);
  margin-bottom: 20px;
}

.checkbox-list {
  display: flex;
  flex-direction: column;
  gap: 14px;
}

.checkbox-card {
  display: flex;
  align-items: flex-start;
  padding: 16px;
  background-color: var(--bg-secondary);
  border: 1px solid var(--border-color);
  border-radius: var(--border-radius-sm);
  cursor: pointer;
  transition: all var(--transition-fast);
  position: relative;
  user-select: none;
}

.checkbox-card:hover {
  border-color: var(--border-hover);
  transform: translateY(-1px);
}

.checkbox-card input {
  position: absolute;
  opacity: 0;
  cursor: pointer;
  height: 0;
  width: 0;
}

.checkbox-custom {
  position: relative;
  top: 3px;
  height: 20px;
  width: 20px;
  background-color: var(--bg-tertiary);
  border: 1px solid var(--border-color);
  border-radius: 4px;
  margin-right: 14px;
  flex-shrink: 0;
  transition: all var(--transition-fast);
}

.checkbox-card input:checked ~ .checkbox-custom {
  background-color: var(--accent-orange);
  border-color: var(--accent-orange);
}

.checkbox-custom::after {
  content: "";
  position: absolute;
  display: none;
  left: 6px;
  top: 2px;
  width: 5px;
  height: 10px;
  border: solid white;
  border-width: 0 2.5px 2.5px 0;
  transform: rotate(45deg);
}

.checkbox-card input:checked ~ .checkbox-custom::after {
  display: block;
}

/* Highlight checked card */
.checkbox-card input:checked ~ .checkbox-label strong {
  color: var(--text-primary);
}

.checkbox-card input:checked {
  background-color: rgba(var(--accent-orange-rgb), 0.02);
}

.checkbox-label strong {
  display: block;
  font-size: 0.95rem;
  color: var(--text-secondary);
  margin-bottom: 2px;
  transition: color var(--transition-fast);
}

.checkbox-desc {
  display: block;
  font-size: 0.8rem;
  color: var(--text-muted);
}

/* Results Card Column */
.simulator-results {
  background: linear-gradient(135deg, var(--primary-color) 0%, #1e293b 100%);
  color: #ffffff;
  padding: 48px;
  display: flex;
  flex-direction: column;
  justify-content: space-between;
}

[data-theme="dark"] .simulator-results {
  background: linear-gradient(135deg, #0d1525 0%, #1e293b 100%);
}

.results-header h3 {
  color: #ffffff;
  font-size: 1.6rem;
  margin-bottom: 4px;
}

.results-header p {
  color: rgba(255, 255, 255, 0.7);
  font-size: 0.9rem;
}

.results-grid {
  display: flex;
  flex-direction: column;
  gap: 32px;
  margin: 40px 0;
}

.result-box {
  display: flex;
  flex-direction: column;
}

.result-number {
  font-family: var(--font-title);
  font-size: 3rem;
  font-weight: 800;
  line-height: 1;
  color: var(--accent-orange);
}

.result-unit {
  font-size: 1rem;
  font-weight: 600;
  margin: 4px 0;
  color: #ffffff;
}

.result-desc {
  font-size: 0.85rem;
  color: rgba(255, 255, 255, 0.65);
}

.results-action {
  display: flex;
  flex-direction: column;
  gap: 16px;
}

.small-disclaimer {
  font-size: 0.75rem;
  color: rgba(255, 255, 255, 0.45);
  text-align: center;
}

/* --------------------------------------------------------------------------
   7. Persona Switcher Section
   -------------------------------------------------------------------------- */
.personas-section {
  padding: 100px 0;
}

.persona-tabs {
  display: flex;
  justify-content: center;
  gap: 12px;
  margin-bottom: 48px;
  overflow-x: auto;
  padding-bottom: 12px;
}

.persona-tab {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  background-color: var(--bg-secondary);
  border: 1px solid var(--border-color);
  padding: 12px 24px;
  border-radius: 100px;
  font-weight: 600;
  color: var(--text-secondary);
  cursor: pointer;
  transition: all var(--transition-fast);
  white-space: nowrap;
  box-shadow: var(--card-shadow);
}

.persona-tab:hover {
  border-color: var(--border-hover);
  color: var(--text-primary);
  transform: translateY(-1px);
}

.persona-tab.active {
  background-color: var(--accent-orange);
  border-color: var(--accent-orange);
  color: #ffffff;
  box-shadow: var(--glow-shadow);
}

.persona-showcase-box {
  border-radius: var(--border-radius-lg);
  padding: 48px;
  min-height: 420px;
}

.persona-layout {
  display: grid;
  grid-template-columns: 1fr 1fr;
  align-items: center;
  gap: 62px;
  opacity: 0;
  transform: translateY(15px);
  animation: fade-up-tab 0.4s ease forwards;
}

@keyframes fade-up-tab {
  to { opacity: 1; transform: translateY(0); }
}

.persona-details {
  display: flex;
  flex-direction: column;
}

.persona-badge {
  align-self: flex-start;
  font-size: 0.8rem;
  font-weight: 700;
  text-transform: uppercase;
  color: var(--accent-orange);
  letter-spacing: 1px;
  margin-bottom: 12px;
}

.persona-details h3 {
  font-size: 2.2rem;
  margin-bottom: 20px;
}

.persona-desc {
  font-size: 1.05rem;
  margin-bottom: 28px;
}

.persona-features {
  list-style: none;
  display: flex;
  flex-direction: column;
  gap: 16px;
}

.persona-features li {
  display: flex;
  align-items: center;
  gap: 12px;
  font-size: 0.95rem;
  font-weight: 500;
  color: var(--text-primary);
}

.feature-check {
  width: 20px;
  height: 20px;
  color: var(--accent-green);
  flex-shrink: 0;
}

/* Device mockup representation inside personas */
.persona-visual-wrap {
  display: flex;
  justify-content: center;
  align-items: center;
}

.device-mockup {
  width: 100%;
  max-width: 440px;
}

.mockup-window {
  border-radius: 12px;
  overflow: hidden;
  background-color: var(--bg-secondary);
  border: 1px solid var(--border-color);
  box-shadow: 0 20px 40px rgba(0, 0, 0, 0.08);
}

.mockup-window-bar {
  height: 28px;
  background-color: var(--bg-tertiary);
  border-bottom: 1px solid var(--border-color);
  display: flex;
  align-items: center;
  padding: 0 12px;
  gap: 6px;
}

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

.mockup-window-screen {
  background-color: var(--bg-tertiary);
  padding: 16px;
  height: 240px;
  display: flex;
  align-items: center;
  justify-content: center;
}

.screen-dashboard-preview {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 16px;
  width: 100%;
}

.preview-card {
  background-color: var(--bg-secondary);
  border: 1px solid var(--border-color);
  border-radius: var(--border-radius-sm);
  padding: 16px;
  box-shadow: var(--card-shadow);
  display: flex;
  flex-direction: column;
}

.preview-card-title {
  font-size: 0.75rem;
  font-weight: 500;
  color: var(--text-muted);
  margin-bottom: 8px;
}

.preview-card-number {
  font-family: var(--font-title);
  font-size: 1.5rem;
  font-weight: 700;
  color: var(--text-primary);
  margin-bottom: 10px;
}

.preview-card-chart {
  height: 30px;
}

.progress-bar-wrap {
  width: 100%;
  height: 6px;
  background-color: var(--bg-tertiary);
  border-radius: 100px;
  overflow: hidden;
  margin-bottom: 8px;
}

.progress-bar-inner {
  height: 100%;
  background-color: var(--accent-green);
  border-radius: 100px;
}

.progress-bar-label {
  font-size: 0.65rem;
  color: var(--text-muted);
}

/* Mobile frame style for Parents/Students */
.device-mockup.mobile {
  max-width: 240px;
}

.device-mockup.mobile .mockup-window {
  border-radius: 28px;
  border-width: 8px;
  border-color: var(--text-primary);
}

.device-mockup.mobile .mockup-window-bar {
  display: none;
}

.device-mockup.mobile .mockup-window-screen {
  height: 360px;
  padding: 12px;
}

.mobile-app-layout {
  display: flex;
  flex-direction: column;
  gap: 12px;
  width: 100%;
  height: 100%;
}

.mobile-app-header {
  font-family: var(--font-title);
  font-size: 0.95rem;
  font-weight: 700;
  color: var(--text-primary);
  display: flex;
  align-items: center;
  gap: 6px;
}

.mobile-app-content {
  flex: 1;
  display: flex;
  flex-direction: column;
  gap: 8px;
  overflow-y: auto;
}

.mobile-item-card {
  background-color: var(--bg-secondary);
  border: 1px solid var(--border-color);
  border-radius: 6px;
  padding: 10px;
  font-size: 0.75rem;
}

.mobile-item-card strong {
  display: block;
  color: var(--text-primary);
  font-size: 0.8rem;
  margin-bottom: 2px;
}

/* --------------------------------------------------------------------------
   8. Core Features Section
   -------------------------------------------------------------------------- */
.features-section {
  padding: 100px 0;
}

.features-grid {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 32px;
  margin-top: 64px;
}

.feature-card {
  background-color: var(--bg-secondary);
  border: 1px solid var(--border-color);
  border-radius: var(--border-radius-md);
  padding: 40px;
  transition: all var(--transition-normal);
  display: flex;
  flex-direction: column;
  position: relative;
  box-shadow: var(--card-shadow);
}

.feature-card:hover {
  transform: translateY(-8px);
  border-color: var(--border-hover);
  box-shadow: 0 20px 40px rgba(11, 26, 48, 0.06);
}

.feature-icon {
  width: 48px;
  height: 48px;
  border-radius: var(--border-radius-sm);
  display: flex;
  align-items: center;
  justify-content: center;
  margin-bottom: 24px;
  color: #ffffff;
}

.feature-icon svg {
  width: 24px;
  height: 24px;
}

.feature-icon.bg-blue { background-color: var(--text-primary); }
.feature-icon.bg-green { background-color: var(--accent-green); }
.feature-icon.bg-orange { background-color: var(--accent-orange); }
.feature-icon.bg-purple { background-color: var(--accent-purple); }
.feature-icon.bg-teal { background-color: var(--accent-teal); }
.feature-icon.bg-sky { background-color: var(--accent-sky); }

.feature-card h3 {
  font-size: 1.4rem;
  margin-bottom: 16px;
}

.feature-card p {
  font-size: 0.95rem;
  line-height: 1.6;
  margin-bottom: 24px;
  flex: 1;
}

.feature-sublist {
  list-style: none;
  border-top: 1px solid var(--border-color);
  padding-top: 20px;
  display: flex;
  flex-direction: column;
  gap: 10px;
}

.feature-sublist li {
  font-size: 0.85rem;
  font-weight: 600;
  color: var(--text-primary);
  display: flex;
  align-items: center;
  gap: 8px;
}

.feature-sublist li::before {
  content: "";
  display: inline-block;
  width: 5px;
  height: 5px;
  border-radius: 50%;
  background-color: var(--accent-orange);
}

/* Featured card style override */
.highlighted-card {
  border-color: rgba(249, 115, 22, 0.4);
  box-shadow: 0 15px 35px rgba(249, 115, 22, 0.08);
}

.card-glow {
  position: absolute;
  top: 0;
  left: 0;
  width: 100%;
  height: 100%;
  border-radius: inherit;
  pointer-events: none;
  z-index: -1;
  box-shadow: 0 0 40px rgba(249, 115, 22, 0.05);
  transition: opacity var(--transition-normal);
  opacity: 0.5;
}

.feature-card:hover .card-glow {
  opacity: 1;
}

.hot-badge {
  position: absolute;
  top: 24px;
  right: 24px;
  font-size: 0.7rem;
  font-weight: 700;
  text-transform: uppercase;
  letter-spacing: 0.5px;
  background-color: rgba(249, 115, 22, 0.1);
  color: var(--accent-orange);
  padding: 4px 10px;
  border-radius: 100px;
}

/* --------------------------------------------------------------------------
   9. Dashboard Showcase Section
   -------------------------------------------------------------------------- */
.dashboard-showcase-section {
  padding: 100px 0;
  background-color: var(--bg-tertiary);
  transition: background-color var(--theme-transition);
}

.showcase-box {
  display: grid;
  grid-template-columns: 1fr 1fr;
  align-items: center;
  gap: 64px;
}

.pill-badge {
  display: inline-block;
  font-size: 0.75rem;
  font-weight: 700;
  color: var(--accent-orange);
  background-color: rgba(249, 115, 22, 0.08);
  padding: 6px 14px;
  border-radius: 100px;
  letter-spacing: 1px;
  margin-bottom: 20px;
}

.showcase-content h2 {
  font-size: 2.6rem;
  margin-bottom: 24px;
}

.showcase-content p {
  font-size: 1.1rem;
  margin-bottom: 36px;
}

.showcase-kpis {
  display: flex;
  flex-direction: column;
  gap: 24px;
}

.kpi-item {
  display: flex;
  gap: 16px;
}

.kpi-icon-wrap {
  width: 44px;
  height: 44px;
  border-radius: 50%;
  background-color: var(--bg-secondary);
  border: 1px solid var(--border-color);
  color: var(--accent-orange);
  display: flex;
  align-items: center;
  justify-content: center;
  flex-shrink: 0;
  box-shadow: var(--card-shadow);
}

.kpi-icon-wrap svg {
  width: 20px;
  height: 20px;
}

.kpi-item h4 {
  font-size: 1.05rem;
  margin-bottom: 4px;
}

.kpi-item p {
  font-size: 0.85rem;
  color: var(--text-muted);
  margin-bottom: 0;
}

.showcase-visual {
  display: flex;
  justify-content: center;
}

.dashboard-render {
  border-radius: var(--border-radius-md);
  padding: 24px;
  width: 100%;
  max-width: 500px;
  box-shadow: 0 20px 45px rgba(0, 0, 0, 0.08);
}

.render-header {
  display: flex;
  justify-content: space-between;
  align-items: center;
  margin-bottom: 20px;
}

.render-title {
  font-size: 0.9rem;
  font-weight: 700;
  color: var(--text-primary);
}

.render-pill {
  font-size: 0.7rem;
  font-weight: 600;
  color: var(--accent-green);
  background-color: rgba(16, 185, 129, 0.08);
  padding: 4px 10px;
  border-radius: 100px;
}

.render-graph {
  width: 100%;
  height: 200px;
  background-color: var(--bg-secondary);
  border-radius: 8px;
  border: 1px solid var(--border-color);
  padding: 16px;
  margin-bottom: 16px;
}

.render-svg-chart {
  width: 100%;
  height: 100%;
  overflow: visible;
}

.chart-main-line {
  stroke-dasharray: 800;
  stroke-dashoffset: 800;
  animation: draw-chart 3s ease-out forwards;
}

.render-footer-stats {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 16px;
}

.render-footer-stats .stat {
  display: flex;
  flex-direction: column;
  background-color: var(--bg-secondary);
  border: 1px solid var(--border-color);
  padding: 12px;
  border-radius: var(--border-radius-sm);
}

.render-footer-stats .label {
  font-size: 0.7rem;
  color: var(--text-muted);
  margin-bottom: 4px;
}

.render-footer-stats .value {
  font-family: var(--font-title);
  font-size: 1.1rem;
  font-weight: 700;
  color: var(--text-primary);
}

.render-footer-stats .value.green-text { color: var(--accent-green); }
.render-footer-stats .value.orange-text { color: var(--accent-orange); }

/* --------------------------------------------------------------------------
   10. Final CTA Banner
   -------------------------------------------------------------------------- */
.cta-banner-section {
  padding: 100px 0 50px 0;
}

.cta-banner-card {
  position: relative;
  background: linear-gradient(135deg, #0b1a30 0%, #1e293b 100%);
  border-radius: var(--border-radius-lg);
  padding: 80px 48px;
  overflow: hidden;
  box-shadow: 0 20px 50px rgba(11, 26, 48, 0.15);
}

[data-theme="dark"] .cta-banner-card {
  background: linear-gradient(135deg, #0d1525 0%, #17253f 100%);
}

.cta-banner-shapes {
  position: absolute;
  top: 0;
  left: 0;
  width: 100%;
  height: 100%;
  pointer-events: none;
  z-index: 0;
}

.banner-shape {
  position: absolute;
  border-radius: 50%;
  filter: blur(80px);
  opacity: 0.15;
}

.banner-shape.b-1 {
  top: -20%;
  left: -10%;
  width: 300px;
  height: 300px;
  background-color: var(--accent-orange);
}

.banner-shape.b-2 {
  bottom: -20%;
  right: -10%;
  width: 300px;
  height: 300px;
  background-color: var(--accent-blue);
}

.cta-banner-content {
  position: relative;
  z-index: 1;
  max-width: 700px;
  margin: 0 auto;
}

.banner-title {
  color: #ffffff;
  font-size: 2.8rem;
  margin-bottom: 20px;
}

.banner-subtitle {
  color: rgba(255, 255, 255, 0.8);
  font-size: 1.15rem;
  margin-bottom: 40px;
}

.banner-actions {
  display: flex;
  justify-content: center;
  margin-bottom: 32px;
}

.banner-quote {
  color: rgba(255, 255, 255, 0.5);
  font-size: 0.95rem;
  font-style: italic;
}

/* --------------------------------------------------------------------------
   11. Footer Section
   -------------------------------------------------------------------------- */
.footer {
  background-color: #040810;
  color: #94a3b8;
  padding: 80px 0 30px 0;
  border-top: 1px solid rgba(255, 255, 255, 0.05);
}

.footer-container {
  display: grid;
  grid-template-columns: 1.5fr 1fr 1fr;
  gap: 64px;
}

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

.footer-logo {
  margin-bottom: 20px;
}

.footer-tagline {
  font-size: 0.95rem;
  margin-bottom: 24px;
  max-width: 300px;
}

.footer-contacts {
  display: flex;
  flex-direction: column;
  gap: 12px;
}

.contact-link {
  display: inline-flex;
  align-items: center;
  gap: 12px;
  font-size: 0.9rem;
  color: #cbd5e1;
}

.contact-link:hover {
  color: var(--accent-orange);
}

.contact-icon {
  width: 18px;
  height: 18px;
  color: var(--accent-orange);
}

.footer-links h4, .footer-qrcode h4 {
  color: #ffffff;
  font-size: 1.1rem;
  margin-bottom: 24px;
}

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

.footer-links a {
  font-size: 0.9rem;
  color: #94a3b8;
}

.footer-links a:hover {
  color: #ffffff;
}

.footer-qrcode {
  display: flex;
  flex-direction: column;
  align-items: flex-start;
}

.qr-box {
  background-color: #ffffff;
  padding: 12px;
  border-radius: 12px;
  margin-bottom: 12px;
  box-shadow: 0 10px 25px rgba(0, 0, 0, 0.3);
}

.qr-text {
  font-size: 0.8rem;
  color: #64748b;
  max-width: 140px;
}

.footer-bottom {
  border-top: 1px solid rgba(255, 255, 255, 0.05);
  margin-top: 60px;
  padding-top: 30px;
  font-size: 0.8rem;
}

/* --------------------------------------------------------------------------
   12. Demo Request Modal
   -------------------------------------------------------------------------- */
.modal {
  position: fixed;
  top: 0;
  left: 0;
  width: 100%;
  height: 100%;
  z-index: 2000;
  display: flex;
  align-items: center;
  justify-content: center;
  opacity: 0;
  pointer-events: none;
  transition: opacity var(--transition-normal);
}

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

.modal-overlay {
  position: absolute;
  top: 0;
  left: 0;
  width: 100%;
  height: 100%;
  background-color: rgba(4, 8, 16, 0.5);
  backdrop-filter: blur(8px);
  -webkit-backdrop-filter: blur(8px);
}

.modal-content {
  position: relative;
  z-index: 2;
  width: 100%;
  max-width: 640px;
  border-radius: var(--border-radius-lg);
  padding: 48px;
  box-shadow: 0 30px 70px rgba(0, 0, 0, 0.25);
  transform: translateY(20px);
  transition: transform var(--transition-normal);
  max-height: 90vh;
  overflow-y: auto;
}

.modal.active .modal-content {
  transform: translateY(0);
}

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

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

#modal-title {
  font-size: 2rem;
  margin-bottom: 8px;
}

.modal-subtitle {
  font-size: 0.95rem;
  color: var(--text-muted);
  margin-bottom: 32px;
}

/* Form Styles */
.demo-form {
  display: flex;
  flex-direction: column;
  gap: 20px;
}

.form-row {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 20px;
}

.form-group {
  display: flex;
  flex-direction: column;
  gap: 8px;
}

.form-group label {
  font-size: 0.85rem;
  font-weight: 600;
  color: var(--text-primary);
}

.form-group input,
.form-group select,
.form-group textarea {
  font-family: var(--font-main);
  font-size: 0.95rem;
  padding: 12px 16px;
  background-color: var(--bg-secondary);
  border: 1px solid var(--border-color);
  border-radius: var(--border-radius-sm);
  color: var(--text-primary);
  outline: none;
  transition: all var(--transition-fast);
}

.form-group input:focus,
.form-group select:focus,
.form-group textarea:focus {
  border-color: var(--accent-orange);
  box-shadow: 0 0 0 3px rgba(249, 115, 22, 0.15);
}

.modal-success-state {
  display: flex;
  flex-direction: column;
  align-items: center;
  text-align: center;
  padding: 30px 0;
}

.success-icon-wrap {
  width: 64px;
  height: 64px;
  border-radius: 50%;
  background-color: rgba(16, 185, 129, 0.1);
  color: var(--accent-green);
  display: flex;
  align-items: center;
  justify-content: center;
  margin-bottom: 24px;
}

.success-icon-wrap svg {
  width: 32px;
  height: 32px;
}

.modal-success-state h3 {
  font-size: 1.8rem;
  margin-bottom: 12px;
}

.modal-success-state p {
  font-size: 1rem;
  max-width: 420px;
  margin-bottom: 32px;
}

.success-calendar-hint {
  width: 100%;
  border-top: 1px solid var(--border-color);
  padding-top: 24px;
}

.success-calendar-hint p {
  font-size: 0.9rem;
  margin-bottom: 16px;
}

/* --------------------------------------------------------------------------
   13. Responsive Styles
   -------------------------------------------------------------------------- */
@media (max-width: 1024px) {
  .hero-title {
    font-size: 2.8rem;
  }
  .hero-container {
    gap: 32px;
  }
  .simulator-card {
    grid-template-columns: 1fr;
  }
  .simulator-results {
    padding: 36px;
  }
  .features-grid {
    grid-template-columns: repeat(2, 1fr);
  }
  .showcase-box {
    grid-template-columns: 1fr;
    gap: 48px;
  }
  .footer-container {
    grid-template-columns: 1.2fr 0.8fr 1fr;
    gap: 36px;
  }
}

@media (max-width: 768px) {
  /* Navigation mobile menu */
  .mobile-menu-toggle {
    display: flex;
  }
  
  .nav-menu {
    position: fixed;
    top: 80px;
    left: 0;
    width: 100%;
    background-color: var(--bg-secondary);
    border-bottom: 1px solid var(--border-color);
    flex-direction: column;
    padding: 32px 24px;
    gap: 20px;
    box-shadow: var(--glass-shadow);
    transform: translateY(-120%);
    opacity: 0;
    transition: transform var(--transition-normal), opacity var(--transition-normal);
    pointer-events: none;
    z-index: 999;
  }
  
  .nav-menu.active {
    transform: translateY(0);
    opacity: 1;
    pointer-events: all;
  }
  
  .nav-actions {
    display: none;
  }
  
  .hero-container {
    grid-template-columns: 1fr;
    text-align: center;
    padding-top: 40px;
  }
  
  .hero-title {
    font-size: 2.3rem;
  }
  
  .hero-subtitle {
    margin-left: auto;
    margin-right: auto;
  }
  
  .hero-ctas {
    justify-content: center;
  }
  
  .hero-trust {
    justify-content: center;
  }
  
  .persona-tabs {
    justify-content: flex-start;
  }
  
  .persona-showcase-box {
    padding: 24px;
  }
  
  .persona-layout {
    grid-template-columns: 1fr;
    gap: 36px;
  }
  
  .device-mockup {
    margin: 0 auto;
  }
  
  .features-grid {
    grid-template-columns: 1fr;
  }
  
  .feature-card {
    padding: 32px;
  }
  
  .cta-banner-card {
    padding: 48px 24px;
  }
  
  .banner-title {
    font-size: 2rem;
  }
  
  .footer-container {
    grid-template-columns: 1fr;
    gap: 40px;
    text-align: center;
  }
  
  .footer-qrcode {
    align-items: center;
  }
  
  .form-row {
    grid-template-columns: 1fr;
    gap: 0;
  }
  .form-row .form-group {
    margin-bottom: 20px;
  }
  
  .modal-content {
    padding: 32px 24px;
  }
}
