/* ==========================================================================
   VIORA COURSE - Modern Interactive Web Platform
   Styles & Design System (Dark/Light Modes + Responsive RTL)
   Powered by: Oravia Software LLC
   ========================================================================== */

/* --- Fonts & Base Reset --- */
@import url('https://fonts.googleapis.com/css2?family=Cairo:wght@300;400;500;600;700;800;900&family=Plus+Jakarta+Sans:wght@400;500;600;700;800&display=swap');

:root {
  /* Color Palette - Dark Theme (Default) */
  --bg-main: #0a0414;
  --bg-alt: #120824;
  --bg-card: rgba(26, 12, 48, 0.7);
  --bg-card-hover: rgba(42, 20, 77, 0.85);
  --bg-glass: rgba(18, 8, 36, 0.75);
  --bg-glass-nav: rgba(10, 4, 20, 0.82);
  --bg-input: rgba(30, 15, 55, 0.8);

  --border-subtle: rgba(157, 78, 221, 0.18);
  --border-glow: rgba(157, 78, 221, 0.45);
  --border-cyan: rgba(0, 180, 216, 0.35);

  --text-primary: #f8fafc;
  --text-secondary: #cbd5e1;
  --text-muted: #94a3b8;
  --text-inverse: #0a0414;

  /* Brand Accents */
  --brand-primary: #7b2cbf;
  --brand-secondary: #9d4edd;
  --brand-light: #c77dff;
  --brand-cyan: #00b4d8;
  --brand-cyan-glow: rgba(0, 180, 216, 0.4);
  --brand-magenta: #ff007f;
  --brand-magenta-glow: rgba(255, 0, 127, 0.35);
  --brand-emerald: #10b981;
  --brand-gold: #f59e0b;

  /* Gradients */
  --grad-brand: linear-gradient(135deg, #7b2cbf 0%, #00b4d8 100%);
  --grad-brand-alt: linear-gradient(135deg, #9d4edd 0%, #ff007f 100%);
  --grad-glow: linear-gradient(180deg, rgba(123, 44, 191, 0.15) 0%, rgba(0, 180, 216, 0.05) 100%);
  --grad-text: linear-gradient(135deg, #ffffff 20%, #c77dff 60%, #00b4d8 100%);
  --grad-cyan-text: linear-gradient(135deg, #00b4d8 0%, #90e0ef 100%);
  
  /* Shadows & Glows */
  --shadow-sm: 0 4px 16px rgba(0, 0, 0, 0.3);
  --shadow-md: 0 12px 32px rgba(0, 0, 0, 0.45);
  --shadow-lg: 0 20px 48px rgba(0, 0, 0, 0.6);
  --glow-brand: 0 0 40px rgba(123, 44, 191, 0.35);
  --glow-cyan: 0 0 35px rgba(0, 180, 216, 0.35);
  --glow-card: 0 8px 32px -4px rgba(123, 44, 191, 0.25);

  /* Typography & Layout */
  --font-arabic: 'Cairo', system-ui, -apple-system, sans-serif;
  --font-latin: 'Plus Jakarta Sans', system-ui, sans-serif;
  --radius-sm: 10px;
  --radius-md: 16px;
  --radius-lg: 24px;
  --radius-xl: 32px;
  --radius-full: 9999px;
  
  --transition-fast: 0.2s cubic-bezier(0.4, 0, 0.2, 1);
  --transition-normal: 0.35s cubic-bezier(0.4, 0, 0.2, 1);
  --transition-smooth: 0.5s cubic-bezier(0.16, 1, 0.3, 1);

  --nav-height: 80px;
}

/* Light Theme Overrides */
[data-theme="light"] {
  --bg-main: #f8fafc;
  --bg-alt: #f1f5f9;
  --bg-card: rgba(255, 255, 255, 0.88);
  --bg-card-hover: #ffffff;
  --bg-glass: rgba(255, 255, 255, 0.9);
  --bg-glass-nav: rgba(255, 255, 255, 0.94);
  --bg-input: #ffffff;

  --border-subtle: rgba(123, 44, 191, 0.12);
  --border-glow: rgba(123, 44, 191, 0.28);
  --border-cyan: rgba(0, 180, 216, 0.25);

  --text-primary: #0f172a;
  --text-secondary: #334155;
  --text-muted: #64748b;
  --text-inverse: #ffffff;

  --grad-text: linear-gradient(135deg, #1e1b4b 20%, #7b2cbf 70%, #0077b6 100%);
  --grad-glow: linear-gradient(180deg, rgba(123, 44, 191, 0.08) 0%, rgba(0, 180, 216, 0.03) 100%);
  
  --shadow-sm: 0 4px 16px rgba(15, 23, 42, 0.06);
  --shadow-md: 0 12px 32px rgba(15, 23, 42, 0.08);
  --shadow-lg: 0 20px 48px rgba(15, 23, 42, 0.12);
  --glow-brand: 0 8px 30px rgba(123, 44, 191, 0.15);
  --glow-cyan: 0 8px 30px rgba(0, 180, 216, 0.15);
  --glow-card: 0 8px 24px rgba(123, 44, 191, 0.08);
}

/* --- Universal Reset --- */
*, *::before, *::after {
  box-sizing: border-box;
  margin: 0;
  padding: 0;
  -webkit-tap-highlight-color: transparent;
}

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

body {
  font-family: var(--font-arabic);
  background-color: var(--bg-main);
  color: var(--text-primary);
  line-height: 1.7;
  direction: rtl;
  text-align: right;
  overflow-x: hidden;
  position: relative;
  transition: background-color var(--transition-normal), color var(--transition-normal);
}

/* Global Ambient Background Effects */
body::before {
  content: '';
  position: fixed;
  top: -20%;
  right: -10%;
  width: 600px;
  height: 600px;
  border-radius: 50%;
  background: radial-gradient(circle, rgba(123, 44, 191, 0.22) 0%, rgba(0,0,0,0) 70%);
  filter: blur(80px);
  pointer-events: none;
  z-index: -1;
  animation: floatOrb 18s ease-in-out infinite alternate;
}

body::after {
  content: '';
  position: fixed;
  bottom: -15%;
  left: -10%;
  width: 650px;
  height: 650px;
  border-radius: 50%;
  background: radial-gradient(circle, rgba(0, 180, 216, 0.16) 0%, rgba(0,0,0,0) 70%);
  filter: blur(90px);
  pointer-events: none;
  z-index: -1;
  animation: floatOrb 22s ease-in-out infinite alternate-reverse;
}

@keyframes floatOrb {
  0% { transform: translate(0, 0) scale(1); }
  50% { transform: translate(60px, 40px) scale(1.1); }
  100% { transform: translate(-40px, 70px) scale(0.95); }
}

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

ul {
  list-style: none;
}

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

button, input, textarea {
  font-family: inherit;
  font-size: inherit;
  border: none;
  outline: none;
}

/* --- Container & Utilities --- */
.container {
  width: 100%;
  max-width: 1280px;
  margin-inline: auto;
  padding-inline: 1.5rem;
}

.section-padding {
  padding-block: 6rem;
}

.text-gradient {
  background: var(--grad-text);
  -webkit-background-clip: text;
  -webkit-text-fill-color: transparent;
}

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

.badge-pill {
  display: inline-flex;
  align-items: center;
  gap: 0.5rem;
  padding: 0.45rem 1.1rem;
  border-radius: var(--radius-full);
  background: rgba(123, 44, 191, 0.12);
  border: 1px solid var(--border-glow);
  color: var(--brand-light);
  font-weight: 600;
  font-size: 0.88rem;
  backdrop-filter: blur(10px);
  box-shadow: 0 4px 16px rgba(123, 44, 191, 0.15);
}

[data-theme="light"] .badge-pill {
  color: var(--brand-primary);
  background: rgba(123, 44, 191, 0.08);
}

.badge-pill-cyan {
  background: rgba(0, 180, 216, 0.12);
  border-color: var(--border-cyan);
  color: var(--brand-cyan);
}

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

@keyframes pulseDot {
  0%, 100% { transform: scale(1); opacity: 1; }
  50% { transform: scale(1.4); opacity: 0.6; }
}

.section-header {
  text-align: center;
  max-width: 760px;
  margin-inline: auto;
  margin-bottom: 4rem;
}

.section-header .subtitle {
  color: var(--text-muted);
  font-size: 1.15rem;
  margin-top: 1rem;
  line-height: 1.8;
}

.section-header h2 {
  font-size: clamp(2rem, 3.5vw, 2.75rem);
  font-weight: 800;
  margin-top: 1rem;
  letter-spacing: -0.02em;
}

/* --- Buttons & CTAs --- */
.btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 0.65rem;
  padding: 0.85rem 1.8rem;
  border-radius: var(--radius-md);
  font-weight: 700;
  font-size: 1rem;
  cursor: pointer;
  transition: all var(--transition-normal);
  position: relative;
  overflow: hidden;
  white-space: nowrap;
}

.btn-primary {
  background: var(--grad-brand);
  color: #ffffff;
  box-shadow: 0 6px 24px rgba(123, 44, 191, 0.35);
  border: 1px solid rgba(255, 255, 255, 0.15);
}

.btn-primary:hover {
  transform: translateY(-3px);
  box-shadow: 0 10px 32px rgba(0, 180, 216, 0.45);
}

.btn-secondary {
  background: var(--bg-card);
  color: var(--text-primary);
  border: 1px solid var(--border-glow);
  backdrop-filter: blur(12px);
}

.btn-secondary:hover {
  background: var(--bg-card-hover);
  border-color: var(--brand-cyan);
  transform: translateY(-3px);
  box-shadow: var(--shadow-sm);
}

.btn-glow {
  position: relative;
}
.btn-glow::after {
  content: '';
  position: absolute;
  inset: -2px;
  background: var(--grad-brand-alt);
  filter: blur(12px);
  z-index: -1;
  opacity: 0;
  transition: opacity var(--transition-normal);
  border-radius: inherit;
}
.btn-glow:hover::after {
  opacity: 0.8;
}

/* --- Navigation Bar --- */
.navbar {
  position: fixed;
  top: 0;
  left: 0;
  width: 100%;
  height: var(--nav-height);
  z-index: 1000;
  display: flex;
  align-items: center;
  background: transparent;
  transition: all var(--transition-normal);
}

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

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

.nav-brand {
  display: flex;
  align-items: center;
  gap: 0.85rem;
}

.nav-logo-img {
  width: 44px;
  height: 44px;
  object-fit: contain;
  filter: drop-shadow(0 0 10px rgba(123, 44, 191, 0.5));
  transition: transform var(--transition-normal);
}

.nav-brand:hover .nav-logo-img {
  transform: rotate(8deg) scale(1.08);
}

.nav-brand-text {
  display: flex;
  flex-direction: column;
}

.nav-brand-title {
  font-size: 1.4rem;
  font-weight: 900;
  letter-spacing: 0.5px;
  line-height: 1.1;
  background: var(--grad-text);
  -webkit-background-clip: text;
  -webkit-text-fill-color: transparent;
}

.nav-brand-tag {
  font-size: 0.75rem;
  color: var(--brand-cyan);
  font-weight: 600;
}

.nav-menu {
  display: flex;
  align-items: center;
  gap: 1.75rem;
}

.nav-link {
  font-size: 0.96rem;
  font-weight: 600;
  color: var(--text-secondary);
  position: relative;
  padding: 0.4rem 0.2rem;
}

.nav-link::after {
  content: '';
  position: absolute;
  bottom: 0;
  right: 0;
  width: 0;
  height: 2px;
  background: var(--grad-brand);
  transition: width var(--transition-fast);
  border-radius: var(--radius-full);
}

.nav-link:hover, .nav-link.active {
  color: var(--text-primary);
}

.nav-link:hover::after, .nav-link.active::after {
  width: 100%;
}

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

/* Theme Toggle Button */
.theme-toggle-btn {
  width: 44px;
  height: 44px;
  border-radius: var(--radius-full);
  background: var(--bg-card);
  border: 1px solid var(--border-subtle);
  color: var(--text-primary);
  display: flex;
  align-items: center;
  justify-content: center;
  cursor: pointer;
  transition: all var(--transition-fast);
  font-size: 1.15rem;
}

.theme-toggle-btn:hover {
  background: var(--bg-card-hover);
  border-color: var(--brand-light);
  transform: scale(1.08);
}

.theme-toggle-btn svg {
  width: 20px;
  height: 20px;
  fill: currentColor;
  transition: transform var(--transition-normal);
}

.nav-hamburger {
  display: none;
  background: transparent;
  color: var(--text-primary);
  font-size: 1.6rem;
  cursor: pointer;
  padding: 0.4rem;
}

/* --- Hero Section --- */
.hero-section {
  min-height: 100vh;
  padding-top: calc(var(--nav-height) + 3.5rem);
  padding-bottom: 4rem;
  display: flex;
  align-items: center;
  position: relative;
}

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

.hero-content {
  display: flex;
  flex-direction: column;
  align-items: flex-start;
  gap: 1.5rem;
}

.hero-title {
  font-size: clamp(2.4rem, 4.2vw, 3.8rem);
  font-weight: 900;
  line-height: 1.25;
  letter-spacing: -0.02em;
}

.hero-description {
  font-size: 1.18rem;
  color: var(--text-secondary);
  line-height: 1.85;
  max-width: 580px;
}

.hero-cta-group {
  display: flex;
  align-items: center;
  gap: 1.25rem;
  flex-wrap: wrap;
  margin-top: 0.5rem;
}

.hero-trust-row {
  display: flex;
  align-items: center;
  gap: 1.5rem;
  margin-top: 1rem;
  padding-top: 1.5rem;
  border-top: 1px solid var(--border-subtle);
  width: 100%;
}

.trust-item {
  display: flex;
  align-items: center;
  gap: 0.6rem;
}

.trust-icon {
  width: 36px;
  height: 36px;
  border-radius: var(--radius-sm);
  background: rgba(123, 44, 191, 0.15);
  display: flex;
  align-items: center;
  justify-content: center;
  color: var(--brand-cyan);
  font-size: 1rem;
}

.trust-text {
  font-size: 0.88rem;
  color: var(--text-secondary);
  font-weight: 600;
}

/* Hero Visual & Interactive 3D Frame */
.hero-visual {
  position: relative;
  display: flex;
  justify-content: center;
  align-items: center;
}

.hero-image-card {
  position: relative;
  border-radius: var(--radius-lg);
  overflow: hidden;
  border: 1px solid var(--border-glow);
  box-shadow: var(--shadow-lg), var(--glow-brand);
  background: var(--bg-card);
  transition: transform var(--transition-normal);
}

.hero-image-card img {
  width: 100%;
  height: auto;
  object-fit: cover;
  transition: transform var(--transition-smooth);
}

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

.hero-floating-badge {
  position: absolute;
  padding: 0.85rem 1.25rem;
  border-radius: var(--radius-md);
  background: var(--bg-glass);
  backdrop-filter: blur(16px);
  border: 1px solid var(--border-glow);
  box-shadow: var(--shadow-md);
  display: flex;
  align-items: center;
  gap: 0.85rem;
  z-index: 2;
  animation: floatBadge 4s ease-in-out infinite alternate;
}

.badge-top-left {
  top: -20px;
  right: -20px;
}

.badge-bottom-right {
  bottom: -20px;
  left: -20px;
  animation-delay: 2s;
}

@keyframes floatBadge {
  0% { transform: translateY(0); }
  100% { transform: translateY(-10px); }
}

.badge-icon {
  width: 42px;
  height: 42px;
  border-radius: var(--radius-sm);
  background: var(--grad-brand);
  display: flex;
  align-items: center;
  justify-content: center;
  color: #fff;
  font-size: 1.2rem;
}

.badge-info h4 {
  font-size: 0.95rem;
  font-weight: 700;
  color: var(--text-primary);
}

.badge-info p {
  font-size: 0.78rem;
  color: var(--brand-cyan);
  font-weight: 600;
}

/* --- Stats Counter Bar --- */
.stats-section {
  padding-block: 2.5rem;
  position: relative;
  z-index: 5;
}

.stats-card-wrapper {
  background: var(--bg-card);
  backdrop-filter: blur(16px);
  border: 1px solid var(--border-glow);
  border-radius: var(--radius-xl);
  padding: 2.2rem 2.5rem;
  box-shadow: var(--shadow-md), var(--glow-card);
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  gap: 2rem;
  position: relative;
}

.stat-box {
  display: flex;
  flex-direction: column;
  align-items: center;
  text-align: center;
  position: relative;
}

.stat-box:not(:last-child)::after {
  content: '';
  position: absolute;
  left: 0;
  top: 15%;
  height: 70%;
  width: 1px;
  background: var(--border-subtle);
}

.stat-number {
  font-size: 2.75rem;
  font-weight: 900;
  font-family: var(--font-latin);
  line-height: 1.1;
  margin-bottom: 0.35rem;
  background: var(--grad-text);
  -webkit-background-clip: text;
  -webkit-text-fill-color: transparent;
}

.stat-label {
  font-size: 0.96rem;
  color: var(--text-secondary);
  font-weight: 600;
}

/* --- Core Features Section --- */
.features-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(340px, 1fr));
  gap: 2rem;
}

.feature-card {
  background: var(--bg-card);
  backdrop-filter: blur(14px);
  border: 1px solid var(--border-subtle);
  border-radius: var(--radius-lg);
  padding: 2.25rem;
  transition: all var(--transition-normal);
  display: flex;
  flex-direction: column;
  gap: 1.25rem;
  position: relative;
  overflow: hidden;
}

.feature-card::before {
  content: '';
  position: absolute;
  top: 0;
  right: 0;
  width: 100%;
  height: 3px;
  background: var(--grad-brand);
  opacity: 0;
  transition: opacity var(--transition-normal);
}

.feature-card:hover {
  transform: translateY(-8px);
  border-color: var(--border-glow);
  background: var(--bg-card-hover);
  box-shadow: var(--shadow-md), var(--glow-card);
}

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

.feature-icon-wrapper {
  width: 60px;
  height: 60px;
  border-radius: var(--radius-md);
  background: rgba(123, 44, 191, 0.15);
  border: 1px solid var(--border-glow);
  display: flex;
  align-items: center;
  justify-content: center;
  color: var(--brand-light);
  font-size: 1.7rem;
  transition: transform var(--transition-normal);
}

.feature-card:hover .feature-icon-wrapper {
  transform: scale(1.1) rotate(5deg);
  background: var(--grad-brand);
  color: #fff;
  box-shadow: 0 0 20px rgba(0, 180, 216, 0.4);
}

.feature-card h3 {
  font-size: 1.35rem;
  font-weight: 800;
  color: var(--text-primary);
}

.feature-card p {
  font-size: 0.98rem;
  color: var(--text-secondary);
  line-height: 1.75;
}

.feature-tags {
  display: flex;
  gap: 0.5rem;
  flex-wrap: wrap;
  margin-top: auto;
}

.tag-item {
  font-size: 0.76rem;
  padding: 0.25rem 0.75rem;
  border-radius: var(--radius-full);
  background: rgba(157, 78, 221, 0.1);
  color: var(--brand-light);
  font-weight: 600;
}

[data-theme="light"] .tag-item {
  color: var(--brand-primary);
  background: rgba(123, 44, 191, 0.08);
}

/* --- Interactive Curriculum Stages Explorer --- */
.curriculum-section {
  background: var(--grad-glow);
  position: relative;
}

.stages-tab-nav {
  display: flex;
  justify-content: center;
  gap: 1rem;
  flex-wrap: wrap;
  margin-bottom: 3rem;
}

.stage-tab-btn {
  padding: 0.85rem 1.6rem;
  border-radius: var(--radius-full);
  background: var(--bg-card);
  border: 1px solid var(--border-subtle);
  color: var(--text-secondary);
  font-weight: 700;
  font-size: 1rem;
  cursor: pointer;
  transition: all var(--transition-fast);
}

.stage-tab-btn:hover, .stage-tab-btn.active {
  background: var(--grad-brand);
  color: #ffffff;
  border-color: transparent;
  box-shadow: 0 4px 20px rgba(123, 44, 191, 0.4);
  transform: translateY(-2px);
}

.stage-content-card {
  display: none;
  background: var(--bg-card);
  backdrop-filter: blur(16px);
  border: 1px solid var(--border-glow);
  border-radius: var(--radius-xl);
  padding: 3rem;
  box-shadow: var(--shadow-lg);
  animation: fadeIn 0.4s ease-in-out;
}

.stage-content-card.active {
  display: block;
}

@keyframes fadeIn {
  from { opacity: 0; transform: translateY(12px); }
  to { opacity: 1; transform: translateY(0); }
}

.stage-header-row {
  display: flex;
  justify-content: space-between;
  align-items: center;
  margin-bottom: 2rem;
  padding-bottom: 1.5rem;
  border-bottom: 1px solid var(--border-subtle);
  flex-wrap: wrap;
  gap: 1rem;
}

.stage-badge-group {
  display: flex;
  align-items: center;
  gap: 0.75rem;
}

.stage-title {
  font-size: 1.8rem;
  font-weight: 800;
}

.subjects-grid {
  display: grid;
  grid-template-columns: repeat(auto-fill, minmax(260px, 1fr));
  gap: 1.25rem;
}

.subject-item-box {
  background: rgba(123, 44, 191, 0.08);
  border: 1px solid var(--border-subtle);
  border-radius: var(--radius-md);
  padding: 1.25rem;
  display: flex;
  align-items: center;
  gap: 1rem;
  transition: all var(--transition-fast);
}

[data-theme="light"] .subject-item-box {
  background: #ffffff;
}

.subject-item-box:hover {
  background: var(--bg-card-hover);
  border-color: var(--brand-cyan);
  transform: translateY(-3px);
  box-shadow: var(--shadow-sm);
}

.subject-icon {
  width: 44px;
  height: 44px;
  border-radius: var(--radius-sm);
  background: rgba(0, 180, 216, 0.12);
  display: flex;
  align-items: center;
  justify-content: center;
  color: var(--brand-cyan);
  font-size: 1.2rem;
  flex-shrink: 0;
}

.subject-info h4 {
  font-size: 1.05rem;
  font-weight: 700;
  margin-bottom: 0.2rem;
}

.subject-info p {
  font-size: 0.8rem;
  color: var(--text-muted);
}

/* --- 3D Simulation Lab Showcase --- */
.sim-section {
  position: relative;
}

.sim-showcase-grid {
  display: grid;
  grid-template-columns: 1fr 1.15fr;
  gap: 3.5rem;
  align-items: center;
}

.sim-visual-box {
  position: relative;
  border-radius: var(--radius-xl);
  overflow: hidden;
  border: 1px solid var(--border-glow);
  box-shadow: var(--shadow-lg), var(--glow-cyan);
  background: var(--bg-card);
}

.sim-visual-box img {
  width: 100%;
  height: auto;
  display: block;
}

.sim-interactive-badge {
  position: absolute;
  bottom: 20px;
  right: 20px;
  padding: 0.75rem 1.25rem;
  border-radius: var(--radius-md);
  background: var(--bg-glass);
  backdrop-filter: blur(12px);
  border: 1px solid var(--border-cyan);
  display: flex;
  align-items: center;
  gap: 0.75rem;
  color: #fff;
  font-weight: 700;
  font-size: 0.9rem;
}

.sim-features-list {
  display: flex;
  flex-direction: column;
  gap: 1.25rem;
  margin-top: 1.5rem;
}

.sim-feature-point {
  display: flex;
  align-items: flex-start;
  gap: 1rem;
}

.sim-point-icon {
  width: 36px;
  height: 36px;
  border-radius: 50%;
  background: rgba(0, 180, 216, 0.15);
  border: 1px solid var(--border-cyan);
  display: flex;
  align-items: center;
  justify-content: center;
  color: var(--brand-cyan);
  flex-shrink: 0;
  margin-top: 0.2rem;
}

.sim-point-text h4 {
  font-size: 1.15rem;
  font-weight: 700;
  margin-bottom: 0.3rem;
}

.sim-point-text p {
  font-size: 0.95rem;
  color: var(--text-secondary);
}

/* --- Viora AI Showcase & Interactive Mock Chat --- */
.ai-section {
  background: var(--grad-glow);
  position: relative;
}

.ai-showcase-grid {
  display: grid;
  grid-template-columns: 1fr 1.1fr;
  gap: 3.5rem;
  align-items: center;
}

/* Interactive AI Chat Mockup */
.ai-chat-mockup {
  background: var(--bg-card);
  backdrop-filter: blur(20px);
  border: 1px solid var(--border-glow);
  border-radius: var(--radius-xl);
  box-shadow: var(--shadow-lg), var(--glow-brand);
  overflow: hidden;
  display: flex;
  flex-direction: column;
  height: 520px;
}

.chat-mock-header {
  padding: 1rem 1.5rem;
  background: rgba(123, 44, 191, 0.15);
  border-bottom: 1px solid var(--border-subtle);
  display: flex;
  align-items: center;
  justify-content: space-between;
}

.chat-bot-info {
  display: flex;
  align-items: center;
  gap: 0.85rem;
}

.bot-avatar {
  width: 40px;
  height: 40px;
  border-radius: 50%;
  background: var(--grad-brand);
  display: flex;
  align-items: center;
  justify-content: center;
  color: #fff;
  font-size: 1.1rem;
}

.bot-name-status h4 {
  font-size: 1rem;
  font-weight: 700;
  color: var(--text-primary);
}

.bot-name-status p {
  font-size: 0.78rem;
  color: var(--brand-cyan);
  display: flex;
  align-items: center;
  gap: 0.35rem;
}

.chat-messages-container {
  flex: 1;
  padding: 1.5rem;
  overflow-y: auto;
  display: flex;
  flex-direction: column;
  gap: 1.25rem;
}

.chat-msg {
  display: flex;
  gap: 0.85rem;
  max-width: 85%;
}

.chat-msg.user {
  align-self: flex-start;
  flex-direction: row;
}

.chat-msg.bot {
  align-self: flex-end;
  flex-direction: row-reverse;
}

.msg-bubble {
  padding: 0.95rem 1.25rem;
  border-radius: var(--radius-md);
  font-size: 0.92rem;
  line-height: 1.65;
}

.chat-msg.user .msg-bubble {
  background: rgba(0, 180, 216, 0.15);
  border: 1px solid var(--border-cyan);
  color: var(--text-primary);
  border-top-right-radius: 2px;
}

.chat-msg.bot .msg-bubble {
  background: rgba(123, 44, 191, 0.2);
  border: 1px solid var(--border-glow);
  color: var(--text-primary);
  border-top-left-radius: 2px;
}

.chat-suggested-prompts {
  padding: 0.75rem 1.5rem;
  display: flex;
  gap: 0.5rem;
  overflow-x: auto;
  border-top: 1px solid var(--border-subtle);
  background: rgba(0, 0, 0, 0.15);
}

.prompt-chip {
  padding: 0.4rem 0.9rem;
  border-radius: var(--radius-full);
  background: rgba(123, 44, 191, 0.15);
  border: 1px solid var(--border-subtle);
  font-size: 0.78rem;
  color: var(--text-secondary);
  cursor: pointer;
  white-space: nowrap;
  transition: all var(--transition-fast);
}

.prompt-chip:hover {
  background: var(--brand-primary);
  color: #fff;
  border-color: transparent;
}

.chat-input-bar {
  padding: 1rem 1.5rem;
  background: var(--bg-card);
  border-top: 1px solid var(--border-subtle);
  display: flex;
  align-items: center;
  gap: 0.75rem;
}

.chat-input-bar input {
  flex: 1;
  background: var(--bg-input);
  border: 1px solid var(--border-subtle);
  border-radius: var(--radius-full);
  padding: 0.65rem 1.25rem;
  color: var(--text-primary);
  font-size: 0.92rem;
}

.chat-input-bar button {
  width: 42px;
  height: 42px;
  border-radius: 50%;
  background: var(--grad-brand);
  color: #fff;
  display: flex;
  align-items: center;
  justify-content: center;
  cursor: pointer;
  transition: transform var(--transition-fast);
}

.chat-input-bar button:hover {
  transform: scale(1.08);
}

/* --- Mobile App & Security Section --- */
.mobile-app-section {
  position: relative;
}

.app-showcase-grid {
  display: grid;
  grid-template-columns: 1.1fr 1fr;
  gap: 3.5rem;
  align-items: center;
}

.app-mockup-frame {
  position: relative;
  border-radius: var(--radius-xl);
  overflow: hidden;
  border: 1px solid var(--border-glow);
  box-shadow: var(--shadow-lg), var(--glow-brand);
  background: var(--bg-card);
}

.app-store-badges {
  display: flex;
  align-items: center;
  gap: 1rem;
  flex-wrap: wrap;
  margin-top: 1.5rem;
}

.store-badge-btn {
  display: flex;
  align-items: center;
  gap: 0.85rem;
  padding: 0.75rem 1.5rem;
  border-radius: var(--radius-md);
  background: var(--bg-card);
  border: 1px solid var(--border-glow);
  color: var(--text-primary);
  transition: all var(--transition-fast);
}

.store-badge-btn:hover {
  background: var(--bg-card-hover);
  border-color: var(--brand-cyan);
  transform: translateY(-3px);
  box-shadow: var(--shadow-sm);
}

.store-icon {
  font-size: 1.75rem;
  color: var(--brand-cyan);
}

.store-btn-text span {
  display: block;
  font-size: 0.72rem;
  color: var(--text-muted);
}

.store-btn-text strong {
  display: block;
  font-size: 1rem;
  font-weight: 700;
}

/* --- FAQ Section --- */
.faq-section {
  background: var(--grad-glow);
  position: relative;
}

.faq-container {
  max-width: 860px;
  margin-inline: auto;
  display: flex;
  flex-direction: column;
  gap: 1.25rem;
}

.faq-item {
  background: var(--bg-card);
  backdrop-filter: blur(14px);
  border: 1px solid var(--border-subtle);
  border-radius: var(--radius-md);
  overflow: hidden;
  transition: all var(--transition-normal);
}

.faq-item.active {
  border-color: var(--border-glow);
  box-shadow: var(--shadow-sm);
}

.faq-question {
  width: 100%;
  padding: 1.35rem 1.75rem;
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 1rem;
  background: transparent;
  color: var(--text-primary);
  font-size: 1.12rem;
  font-weight: 700;
  text-align: right;
  cursor: pointer;
}

.faq-icon-arrow {
  width: 32px;
  height: 32px;
  border-radius: 50%;
  background: rgba(123, 44, 191, 0.12);
  display: flex;
  align-items: center;
  justify-content: center;
  color: var(--brand-light);
  font-size: 1.2rem;
  transition: transform var(--transition-normal);
  flex-shrink: 0;
}

.faq-item.active .faq-icon-arrow {
  transform: rotate(180deg);
  background: var(--brand-primary);
  color: #fff;
}

.faq-answer {
  max-height: 0;
  overflow: hidden;
  transition: max-height 0.4s cubic-bezier(0, 1, 0, 1), padding 0.35s ease;
  padding-inline: 1.75rem;
}

.faq-item.active .faq-answer {
  max-height: 500px;
  padding-bottom: 1.5rem;
  transition: max-height 0.45s ease-in-out, padding 0.35s ease;
}

.faq-answer p {
  color: var(--text-secondary);
  line-height: 1.8;
  font-size: 0.98rem;
}

/* --- Call To Action (CTA Banner) --- */
.cta-banner-section {
  position: relative;
  padding-block: 5rem;
}

.cta-banner-box {
  background: linear-gradient(135deg, rgba(123, 44, 191, 0.85) 0%, rgba(18, 8, 36, 0.95) 50%, rgba(0, 180, 216, 0.75) 100%);
  border: 1px solid var(--border-glow);
  border-radius: var(--radius-xl);
  padding: 4.5rem 3rem;
  text-align: center;
  position: relative;
  overflow: hidden;
  box-shadow: var(--shadow-lg), var(--glow-brand);
}

.cta-banner-box::before {
  content: '';
  position: absolute;
  inset: 0;
  background: radial-gradient(circle at 50% 50%, rgba(255, 255, 255, 0.12), transparent 70%);
  pointer-events: none;
}

.cta-banner-box h2 {
  font-size: clamp(2.2rem, 3.8vw, 3.2rem);
  font-weight: 900;
  color: #ffffff;
  margin-bottom: 1.25rem;
}

.cta-banner-box p {
  font-size: 1.2rem;
  color: #e2e8f0;
  max-width: 680px;
  margin-inline: auto;
  margin-bottom: 2.25rem;
  line-height: 1.8;
}

.cta-btn-group {
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 1.25rem;
  flex-wrap: wrap;
}

.btn-white {
  background: #ffffff;
  color: #120824;
  box-shadow: 0 8px 24px rgba(0, 0, 0, 0.25);
}

.btn-white:hover {
  background: #f1f5f9;
  transform: translateY(-3px);
  box-shadow: 0 12px 32px rgba(255, 255, 255, 0.3);
}

/* --- Footer --- */
.footer {
  background: var(--bg-alt);
  border-top: 1px solid var(--border-subtle);
  padding-top: 5rem;
  padding-bottom: 2.5rem;
  position: relative;
}

.footer-grid {
  display: grid;
  grid-template-columns: 1.5fr repeat(3, 1fr);
  gap: 3.5rem;
  margin-bottom: 4rem;
}

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

.footer-brand-col p {
  color: var(--text-secondary);
  font-size: 0.95rem;
  line-height: 1.8;
}

.footer-col h4 {
  font-size: 1.15rem;
  font-weight: 800;
  margin-bottom: 1.5rem;
  color: var(--text-primary);
  position: relative;
}

.footer-col h4::after {
  content: '';
  position: absolute;
  bottom: -6px;
  right: 0;
  width: 32px;
  height: 2px;
  background: var(--brand-cyan);
  border-radius: var(--radius-full);
}

.footer-links {
  display: flex;
  flex-direction: column;
  gap: 0.85rem;
}

.footer-link {
  color: var(--text-muted);
  font-size: 0.94rem;
  transition: all var(--transition-fast);
}

.footer-link:hover {
  color: var(--brand-cyan);
  transform: translateX(-4px);
}

.footer-bottom {
  padding-top: 2rem;
  border-top: 1px solid var(--border-subtle);
  display: flex;
  align-items: center;
  justify-content: space-between;
  flex-wrap: wrap;
  gap: 1.25rem;
}

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

/* Powered by Oravia Badge */
.powered-by-badge {
  display: inline-flex;
  align-items: center;
  gap: 0.6rem;
  padding: 0.55rem 1.25rem;
  border-radius: var(--radius-full);
  background: rgba(123, 44, 191, 0.15);
  border: 1px solid var(--border-glow);
  color: var(--text-primary);
  font-size: 0.92rem;
  font-weight: 700;
  transition: all var(--transition-normal);
  backdrop-filter: blur(10px);
}

.powered-by-badge strong {
  background: linear-gradient(135deg, #c77dff 0%, #00b4d8 100%);
  -webkit-background-clip: text;
  -webkit-text-fill-color: transparent;
  font-family: var(--font-latin);
  letter-spacing: 0.5px;
}

.powered-by-badge:hover {
  transform: translateY(-2px);
  border-color: var(--brand-cyan);
  box-shadow: 0 4px 20px rgba(0, 180, 216, 0.3);
}

/* ==========================================================================
   Comprehensive Adaptive Layouts (Smartphones & Tablets / iPads)
   ========================================================================== */

/* --- Mobile Floating Quick Navigation Bar --- */
.mobile-bottom-nav {
  display: none;
  position: fixed;
  bottom: 12px;
  left: 50%;
  transform: translateX(-50%);
  width: calc(100% - 24px);
  max-width: 440px;
  background: var(--bg-glass-nav);
  backdrop-filter: blur(20px);
  -webkit-backdrop-filter: blur(20px);
  border: 1px solid var(--border-glow);
  border-radius: var(--radius-full);
  padding: 0.45rem 0.6rem;
  z-index: 998;
  box-shadow: 0 10px 30px rgba(0, 0, 0, 0.4), 0 0 20px rgba(123, 44, 191, 0.25);
  justify-content: space-around;
  align-items: center;
}

.mobile-bottom-item {
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 0.2rem;
  color: var(--text-muted);
  font-size: 0.72rem;
  font-weight: 700;
  padding: 0.35rem 0.55rem;
  border-radius: var(--radius-sm);
  transition: all var(--transition-fast);
}

.mobile-bottom-item.active,
.mobile-bottom-item:hover {
  color: var(--brand-cyan);
  transform: translateY(-2px);
}

.mobile-bottom-icon {
  font-size: 1.15rem;
  line-height: 1;
}

/* --- TABLETS & iPADS (768px to 1024px) --- */
@media (min-width: 768px) and (max-width: 1024px) {
  :root {
    --nav-height: 76px;
  }

  .container {
    padding-inline: 2rem;
  }

  .section-padding {
    padding-block: 4.5rem;
  }

  /* Tablet Hero */
  .hero-section {
    padding-top: calc(var(--nav-height) + 2rem);
    min-height: auto;
  }

  .hero-grid {
    grid-template-columns: 1fr;
    gap: 3rem;
    text-align: center;
  }

  .hero-content {
    align-items: center;
    text-align: center;
  }

  .hero-title {
    font-size: 2.85rem;
  }

  .hero-description {
    max-width: 650px;
  }

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

  .hero-trust-row {
    justify-content: center;
    gap: 2rem;
  }

  .hero-visual {
    max-width: 720px;
    margin-inline: auto;
    width: 100%;
  }

  /* Tablet Stats: 2x2 Clean Balanced Dashboard */
  .stats-card-wrapper {
    grid-template-columns: repeat(2, 1fr);
    gap: 1.75rem;
    padding: 2rem;
  }

  .stat-box:nth-child(2)::after {
    display: none;
  }

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

  /* Tablet Disciplines & Subjects: 2 Columns */
  .subjects-grid {
    grid-template-columns: repeat(2, 1fr);
    gap: 1.25rem;
  }

  .stages-tab-nav {
    gap: 0.75rem;
  }

  /* Tablet Simulation Lab & AI Showcase */
  .sim-showcase-grid, .ai-showcase-grid, .app-showcase-grid {
    grid-template-columns: 1fr;
    gap: 2.75rem;
  }

  .sim-visual-box, .app-mockup-frame {
    max-width: 680px;
    margin-inline: auto;
    width: 100%;
  }

  .ai-chat-mockup {
    height: 480px;
    max-width: 680px;
    margin-inline: auto;
    width: 100%;
  }

  /* Tablet Footer: 2x2 Grid */
  .footer-grid {
    grid-template-columns: 1.2fr 1fr;
    gap: 2.5rem;
  }
}

/* --- MOBILE PHONES (320px to 767px) --- */
@media (max-width: 767px) {
  :root {
    --nav-height: 68px;
  }

  body {
    padding-bottom: 75px; /* Spacing for floating bottom bar */
  }

  .mobile-bottom-nav {
    display: flex;
  }

  .container {
    padding-inline: 1.15rem;
  }

  .section-padding {
    padding-block: 3.5rem;
  }

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

  .section-header h2 {
    font-size: 1.85rem;
    line-height: 1.3;
  }

  .section-header .subtitle {
    font-size: 0.98rem;
  }

  /* Mobile Navbar */
  .nav-menu {
    position: fixed;
    top: var(--nav-height);
    right: -100%;
    width: 82%;
    max-width: 320px;
    height: calc(100vh - var(--nav-height));
    background: var(--bg-glass-nav);
    backdrop-filter: blur(24px);
    -webkit-backdrop-filter: blur(24px);
    border-left: 1px solid var(--border-subtle);
    flex-direction: column;
    align-items: flex-start;
    padding: 2rem 1.5rem;
    gap: 1.25rem;
    transition: right var(--transition-normal);
    z-index: 999;
    box-shadow: var(--shadow-lg);
  }

  .nav-menu.open {
    right: 0;
  }

  .nav-hamburger {
    display: block;
    width: 40px;
    height: 40px;
    border-radius: var(--radius-sm);
    background: var(--bg-card);
    border: 1px solid var(--border-subtle);
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 1.35rem;
  }

  /* Mobile Hero */
  .hero-section {
    padding-top: calc(var(--nav-height) + 1.25rem);
    padding-bottom: 2.5rem;
    min-height: auto;
  }

  .hero-grid {
    grid-template-columns: 1fr;
    gap: 2.25rem;
  }

  .hero-content {
    align-items: flex-start;
    gap: 1.15rem;
  }

  .hero-title {
    font-size: clamp(1.9rem, 8vw, 2.45rem);
    line-height: 1.28;
    letter-spacing: -0.01em;
  }

  .hero-description {
    font-size: 1.02rem;
    line-height: 1.75;
  }

  .hero-cta-group {
    flex-direction: column;
    width: 100%;
    gap: 0.85rem;
  }

  .btn {
    width: 100%;
    padding: 0.85rem 1.25rem;
    font-size: 0.98rem;
  }

  /* Hero Trust Bar on Mobile */
  .hero-trust-row {
    flex-direction: column;
    align-items: flex-start;
    gap: 0.85rem;
    padding-top: 1rem;
  }

  .trust-item {
    gap: 0.75rem;
  }

  /* Hero Visual & Badges on Mobile */
  .hero-visual {
    width: 100%;
  }

  .hero-image-card {
    border-radius: var(--radius-md);
  }

  .badge-top-left, .badge-bottom-right {
    position: static;
    margin-top: 0.75rem;
    width: 100%;
  }

  /* Mobile Stats: 2x2 Touch Dashboard */
  .stats-section {
    padding-block: 1.5rem;
  }

  .stats-card-wrapper {
    grid-template-columns: repeat(2, 1fr);
    gap: 1rem;
    padding: 1.35rem 1rem;
    border-radius: var(--radius-lg);
  }

  .stat-box {
    padding: 0.5rem;
  }

  .stat-box:not(:last-child)::after {
    display: none;
  }

  .stat-number {
    font-size: 1.95rem;
    margin-bottom: 0.2rem;
  }

  .stat-label {
    font-size: 0.82rem;
    line-height: 1.4;
  }

  /* Mobile Features Grid */
  .features-grid {
    grid-template-columns: 1fr;
    gap: 1.25rem;
  }

  .feature-card {
    padding: 1.6rem;
    border-radius: var(--radius-md);
    gap: 1rem;
  }

  .feature-icon-wrapper {
    width: 52px;
    height: 52px;
    font-size: 1.45rem;
  }

  .feature-card h3 {
    font-size: 1.22rem;
  }

  /* Mobile Specialty Tabs: Smooth Horizontal Scroll Strip */
  .stages-tab-nav {
    display: flex;
    flex-wrap: nowrap;
    overflow-x: auto;
    justify-content: flex-start;
    padding-bottom: 0.6rem;
    gap: 0.6rem;
    -webkit-overflow-scrolling: touch;
    scrollbar-width: none;
  }

  .stages-tab-nav::-webkit-scrollbar {
    display: none;
  }

  .stage-tab-btn {
    flex-shrink: 0;
    padding: 0.7rem 1.2rem;
    font-size: 0.88rem;
    white-space: nowrap;
  }

  .stage-content-card {
    padding: 1.5rem 1.15rem;
    border-radius: var(--radius-lg);
  }

  .stage-header-row {
    flex-direction: column;
    align-items: flex-start;
    gap: 0.85rem;
    margin-bottom: 1.35rem;
    padding-bottom: 1rem;
  }

  .stage-title {
    font-size: 1.35rem;
  }

  /* Mobile Subjects Grid */
  .subjects-grid {
    grid-template-columns: 1fr;
    gap: 0.85rem;
  }

  .subject-item-box {
    padding: 1rem;
    gap: 0.85rem;
  }

  .subject-icon {
    width: 38px;
    height: 38px;
    font-size: 1.1rem;
  }

  .subject-info h4 {
    font-size: 0.98rem;
  }

  .subject-info p {
    font-size: 0.84rem;
    line-height: 1.55;
  }

  /* Mobile 3D Simulation Showcase */
  .sim-showcase-grid, .ai-showcase-grid, .app-showcase-grid {
    grid-template-columns: 1fr;
    gap: 2rem;
  }

  .sim-visual-box {
    border-radius: var(--radius-md);
  }

  .sim-interactive-badge {
    position: static;
    margin-top: 0.75rem;
    width: 100%;
    justify-content: center;
  }

  /* Mobile AI Chat Mockup */
  .ai-chat-mockup {
    height: 440px;
    border-radius: var(--radius-lg);
  }

  .chat-mock-header {
    padding: 0.85rem 1rem;
  }

  .chat-messages-container {
    padding: 1rem;
    gap: 0.95rem;
  }

  .chat-msg {
    max-width: 92%;
  }

  .msg-bubble {
    padding: 0.75rem 1rem;
    font-size: 0.88rem;
  }

  .chat-suggested-prompts {
    padding: 0.6rem 1rem;
  }

  .chat-input-bar {
    padding: 0.75rem 1rem;
  }

  .chat-input-bar input {
    padding: 0.55rem 1rem;
    font-size: 0.86rem;
  }

  /* Mobile App Store Badges */
  .app-store-badges {
    flex-direction: column;
    width: 100%;
  }

  .store-badge-btn {
    width: 100%;
    justify-content: center;
  }

  /* Mobile FAQ Accordion */
  .faq-question {
    padding: 1.15rem 1.25rem;
    font-size: 0.98rem;
  }

  .faq-answer {
    padding-inline: 1.25rem;
  }

  /* Mobile CTA Banner */
  .cta-banner-box {
    padding: 2.75rem 1.25rem;
    border-radius: var(--radius-lg);
  }

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

  .cta-banner-box p {
    font-size: 1.02rem;
  }

  .cta-btn-group {
    flex-direction: column;
    width: 100%;
  }

  /* Mobile Footer */
  .footer {
    padding-top: 3.5rem;
    padding-bottom: 2rem;
  }

  .footer-grid {
    grid-template-columns: 1fr;
    gap: 2rem;
    margin-bottom: 2.5rem;
  }

  .footer-bottom {
    flex-direction: column;
    gap: 1rem;
    text-align: center;
  }
}

/* Touch Device Micro-interactions */
@media (hover: none) and (pointer: coarse) {
  .btn:active,
  .feature-card:active,
  .subject-item-box:active,
  .stage-tab-btn:active,
  .store-badge-btn:active {
    transform: scale(0.97);
  }
}

