/* ==============================================================================
   CASPR LANDING PAGE - MODERN DARK GLASSMORPHIC DESIGN SYSTEM
   Palette: Dark Void #07090E, Electric Cyan #00D2FF, Neon Blue #0072FF
   ============================================================================== */

:root {
  /* Color Palette */
  --bg-dark: #07090e;
  --bg-surface: #0e121b;
  --bg-card: rgba(18, 24, 37, 0.75);
  --bg-card-hover: rgba(24, 32, 50, 0.9);
  
  --accent: #00e5cc;
  --accent-glow: rgba(0, 229, 204, 0.35);
  --accent-hover: #14f8dd;
  --accent-dark: #042f2e;
  
  --blue-bright: #38bdf8;
  --blue-primary: #0284c7;
  --purple-glow: #818cf8;
  
  --text-primary: #ffffff;
  --text-secondary: #cbd5e1;
  --text-muted: #94a3b8;
  
  --border-light: rgba(255, 255, 255, 0.12);
  --border-active: rgba(0, 229, 204, 0.5);
  
  --font-heading: 'Outfit', -apple-system, BlinkMacSystemFont, 'SF Pro Display', sans-serif;
  --font-body: 'Inter', -apple-system, BlinkMacSystemFont, 'SF Pro Text', sans-serif;
  --font-mono: 'JetBrains Mono', 'SF Mono', Menlo, monospace;
  
  --radius-sm: 8px;
  --radius-md: 14px;
  --radius-lg: 20px;
  --radius-full: 9999px;
  
  --shadow-card: 0 16px 40px rgba(0, 0, 0, 0.5), inset 0 1px 0 rgba(255, 255, 255, 0.1);
  --shadow-glow: 0 0 30px rgba(0, 229, 204, 0.2);
}

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

html {
  scroll-behavior: smooth;
  color-scheme: dark;
  width: 100%;
  max-width: 100%;
  overflow-x: clip;
}

body {
  background-color: var(--bg-dark);
  color: var(--text-primary);
  font-family: var(--font-body);
  font-size: 16px;
  line-height: 1.6;
  width: 100%;
  max-width: 100%;
  overflow-x: clip;
  position: relative;
  -webkit-font-smoothing: antialiased;
  -moz-osx-font-smoothing: grayscale;
}

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

/* BACKGROUND GLOWS */
.glow-orb {
  position: absolute;
  border-radius: 50%;
  filter: blur(120px);
  pointer-events: none;
  z-index: 0;
  opacity: 0.45;
  max-width: 100vw;
}

.glow-top-left {
  top: -100px;
  left: 10%;
  width: 450px;
  height: 450px;
  background: radial-gradient(circle, rgba(0, 229, 204, 0.25) 0%, transparent 70%);
}

.glow-top-right {
  top: 150px;
  right: 5%;
  width: 450px;
  height: 450px;
  background: radial-gradient(circle, rgba(2, 132, 199, 0.2) 0%, transparent 70%);
}

.glow-bottom-center {
  bottom: 200px;
  left: 30%;
  width: 500px;
  height: 500px;
  background: radial-gradient(circle, rgba(129, 140, 248, 0.15) 0%, transparent 70%);
}

/* TYPOGRAPHY */
h1, h2, h3, h4 {
  font-family: var(--font-heading);
  color: var(--text-primary);
  font-weight: 700;
  line-height: 1.2;
}

.gradient-text {
  background: linear-gradient(135deg, #ffffff 30%, var(--accent) 80%, var(--blue-bright) 100%);
  -webkit-background-clip: text;
  -webkit-text-fill-color: transparent;
  display: inline-block;
}

/* HERO TYPEWRITER CONTAINER */
.typewriter-container {
  display: block;
  min-height: 1.3em;
  margin: 4px auto 0;
  text-align: center;
  position: relative;
}

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

.typewriter-cursor {
  display: inline-block;
  color: var(--accent);
  font-weight: 300;
  margin-left: 2px;
  animation: blink 0.8s infinite;
}
/* BUTTONS */
.btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 10px;
  padding: 12px 24px;
  border-radius: var(--radius-md);
  font-family: var(--font-heading);
  font-size: 15px;
  font-weight: 600;
  text-decoration: none;
  cursor: pointer;
  border: 1px solid transparent;
  transition: all 0.2s cubic-bezier(0.16, 1, 0.3, 1);
  white-space: nowrap;
}

.btn-primary {
  background: linear-gradient(135deg, var(--accent) 0%, #00bfa5 100%);
  color: #042f2e;
  font-weight: 700;
  box-shadow: 0 6px 22px var(--accent-glow);
}

.btn-primary:hover {
  transform: translateY(-2px);
  box-shadow: 0 10px 32px rgba(0, 229, 204, 0.5);
  background: linear-gradient(135deg, var(--accent-hover) 0%, var(--accent) 100%);
}

.btn-download-hero {
  padding: 15px 32px;
  font-size: 16.5px;
  border-radius: 14px;
}

.btn-secondary {
  background: rgba(255, 255, 255, 0.05);
  color: var(--text-primary);
  border-color: var(--border-light);
  backdrop-filter: blur(12px);
}

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

.btn-sm {
  padding: 8px 16px;
  font-size: 13px;
  border-radius: 10px;
}

.btn-lg {
  padding: 14px 28px;
  font-size: 16px;
}

.btn-icon {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  padding: 8px 14px;
  border-radius: 10px;
  color: var(--text-secondary);
  text-decoration: none;
  background: rgba(255, 255, 255, 0.04);
  border: 1px solid var(--border-light);
  font-size: 13.5px;
  font-weight: 500;
  transition: all 0.15s ease;
}

.btn-icon:hover {
  color: var(--text-primary);
  background: rgba(255, 255, 255, 0.08);
  border-color: rgba(255, 255, 255, 0.2);
}

/* HEADER & NAVBAR */
.site-header {
  position: sticky;
  top: 0;
  z-index: 1000;
  padding: 14px 0;
  backdrop-filter: blur(20px);
  -webkit-backdrop-filter: blur(20px);
  background: rgba(7, 9, 14, 0.8);
  border-bottom: 1px solid rgba(255, 255, 255, 0.06);
}

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

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

.logo-squircle {
  width: 40px;
  height: 40px;
  border-radius: 11px;
  background: linear-gradient(145deg, #00b4d8 0%, #0077fe 60%, #005ce6 100%);
  display: flex;
  align-items: center;
  justify-content: center;
  box-shadow: 0 4px 16px rgba(0, 153, 255, 0.45), inset 0 1px 1px rgba(255, 255, 255, 0.4);
  flex-shrink: 0;
}

.logo-squircle svg {
  width: 26px;
  height: 26px;
}

.logo-footer {
  width: 50px;
  height: 50px;
  border-radius: 14px;
  box-shadow: 0 6px 20px rgba(0, 153, 255, 0.5), inset 0 1px 1px rgba(255, 255, 255, 0.4);
}

.logo-footer svg {
  width: 32px;
  height: 32px;
}

.logo-modal {
  width: 54px;
  height: 54px;
  border-radius: 15px;
  margin-bottom: 12px;
  box-shadow: 0 8px 24px rgba(0, 153, 255, 0.55), inset 0 1px 1px rgba(255, 255, 255, 0.4);
}

.logo-modal svg {
  width: 34px;
  height: 34px;
}

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

.brand-name {
  font-family: var(--font-heading);
  font-size: 18px;
  font-weight: 800;
  color: var(--text-primary);
  letter-spacing: -0.02em;
}

.brand-sub {
  font-size: 10.5px;
  color: var(--text-muted);
  font-weight: 500;
}

.nav-links {
  display: flex;
  align-items: center;
  gap: 24px;
}

.nav-link {
  color: var(--text-secondary);
  text-decoration: none;
  font-size: 13.5px;
  font-weight: 500;
  transition: color 0.15s ease;
}

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

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

/* LANGUAGE SWITCHER */
.lang-switcher {
  display: flex;
  align-items: center;
  background: rgba(255, 255, 255, 0.05);
  border: 1px solid var(--border-light);
  border-radius: 8px;
  padding: 2px 6px;
  gap: 4px;
}

.lang-btn {
  background: transparent;
  border: none;
  color: var(--text-secondary);
  font-size: 11.5px;
  font-weight: 600;
  cursor: pointer;
  padding: 3px 6px;
  border-radius: 4px;
  text-decoration: none;
  transition: all 0.15s ease;
}

.lang-btn:hover {
  color: #fff;
}

.lang-btn.active {
  background: rgba(0, 229, 204, 0.2);
  color: var(--accent);
}

.lang-divider {
  font-size: 10px;
  color: var(--text-muted);
  opacity: 0.5;
}

/* HERO SECTION */
.hero-section {
  position: relative;
  z-index: 10;
  padding: 60px 0 50px;
  text-align: center;
}

.hero-content {
  display: flex;
  flex-direction: column;
  align-items: center;
}

.hero-badge {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  padding: 6px 16px;
  border-radius: var(--radius-full);
  background: rgba(0, 229, 204, 0.08);
  border: 1px solid rgba(0, 229, 204, 0.3);
  margin-bottom: 24px;
  animation: fadeIn 0.8s ease;
}

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

.badge-text {
  font-size: 13px;
  font-weight: 600;
  color: var(--accent);
  letter-spacing: 0.02em;
}

.hero-title {
  font-size: clamp(26px, 3.8vw, 44px);
  letter-spacing: -0.03em;
  max-width: 1060px;
  width: 100%;
  margin-bottom: 20px;
  line-height: 1.25;
  text-align: center;
  min-height: 115px;
}

.hero-title-static {
  display: block;
}

.hero-subtitle {
  font-size: 17.5px;
  color: var(--text-secondary);
  max-width: 680px;
  margin-bottom: 32px;
  line-height: 1.6;
}

.hero-subtitle strong {
  color: var(--text-primary);
}

.hero-cta-group {
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  gap: 14px;
  margin-bottom: 36px;
}

.release-status-banner {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  font-size: 13px;
  color: var(--text-secondary);
  background: rgba(255, 255, 255, 0.04);
  border: 1px solid rgba(255, 255, 255, 0.08);
  padding: 6px 16px;
  border-radius: 99px;
  backdrop-filter: blur(10px);
}

.status-indicator {
  width: 7px;
  height: 7px;
  border-radius: 50%;
  background: #22c55e;
  box-shadow: 0 0 8px #22c55e;
  animation: pulse 2s infinite;
}

/* HUD SIMULATOR PLAYGROUND */
.hud-simulator-wrapper {
  width: 100%;
  max-width: 820px;
  margin-top: 10px;
  background: rgba(15, 20, 32, 0.92);
  border: 1px solid rgba(255, 255, 255, 0.12);
  border-radius: 20px;
  box-shadow: 0 30px 80px rgba(0, 0, 0, 0.7), 0 0 40px rgba(0, 229, 204, 0.1);
  overflow: hidden;
  backdrop-filter: blur(24px);
}

.hud-mockup-header {
  display: flex;
  align-items: center;
  justify-content: space-between;
  padding: 12px 18px;
  background: rgba(0, 0, 0, 0.35);
  border-bottom: 1px solid rgba(255, 255, 255, 0.06);
}

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

.dot {
  width: 11px;
  height: 11px;
  border-radius: 50%;
}
.dot-red { background: #ff5f56; }
.dot-yellow { background: #ffbd2e; }
.dot-green { background: #27c93f; }

.hud-mockup-title {
  font-size: 12px;
  font-weight: 500;
  color: var(--text-muted);
}

.hud-badge-tag {
  font-size: 11px;
  font-family: var(--font-mono);
  background: rgba(255, 255, 255, 0.08);
  padding: 2px 8px;
  border-radius: 6px;
  color: var(--text-secondary);
}

.hud-stage-scene {
  padding: 32px 24px;
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 16px;
  background: radial-gradient(ellipse at 50% 30%, rgba(20, 26, 42, 0.9), rgba(9, 12, 18, 1));
}

/* Mock Editor */
.mock-editor {
  width: 100%;
  background: rgba(0, 0, 0, 0.45);
  border: 1px solid rgba(255, 255, 255, 0.08);
  border-radius: 12px;
  padding: 16px 20px;
  text-align: left;
  font-family: var(--font-mono);
  font-size: 13.5px;
  line-height: 1.6;
  min-height: 105px;
}

.mock-editor-header {
  display: flex;
  justify-content: space-between;
  font-size: 11px;
  color: var(--text-muted);
  border-bottom: 1px solid rgba(255, 255, 255, 0.05);
  padding-bottom: 8px;
  margin-bottom: 12px;
}

.editor-faded {
  color: rgba(255, 255, 255, 0.35);
  margin-bottom: 4px;
}

.editor-active-line {
  color: #fff;
  font-weight: 500;
}

.cursor-blink {
  color: var(--accent);
  font-weight: 700;
  animation: blink 1s infinite;
}

/* Floating HUD Card */
.floating-hud-card {
  width: 100%;
  max-width: 440px;
  min-height: 74px;
  background: rgba(23, 28, 42, 0.96);
  border: 1px solid rgba(255, 255, 255, 0.18);
  border-radius: 16px;
  padding: 12px 18px 14px;
  box-shadow: 0 16px 40px rgba(0, 0, 0, 0.6), inset 0 1px 0 rgba(255, 255, 255, 0.15);
  backdrop-filter: blur(28px);
  display: flex;
  flex-direction: column;
  justify-content: center;
  gap: 8px;
  text-align: left;
  transition: all 0.2s ease;
}

.hud-top-row {
  display: flex;
  align-items: center;
  justify-content: space-between;
}

.hud-status-left {
  display: flex;
  align-items: center;
  gap: 8px;
}

.hud-rec-dot {
  width: 8px;
  height: 8px;
  border-radius: 50%;
  background: #ef4444;
  box-shadow: 0 0 8px rgba(239, 68, 68, 0.8);
  animation: pulse 1.2s infinite;
}

.hud-rec-dot.processing {
  background: var(--accent);
  box-shadow: 0 0 8px var(--accent);
}

.hud-timer {
  font-family: var(--font-mono);
  font-size: 12.5px;
  font-weight: 600;
  color: #fff;
}

.hud-vumeter {
  display: flex;
  align-items: center;
  gap: 2px;
  height: 16px;
  margin-left: 4px;
}

.vu-bar {
  width: 2.5px;
  background: var(--accent);
  border-radius: 2px;
  transition: height 0.15s ease;
}

.hud-status-right {
  display: flex;
  align-items: center;
  gap: 8px;
}

.hud-btn-mode {
  background: transparent;
  border: none;
  font-size: 11px;
  font-weight: 500;
  color: rgba(255, 255, 255, 0.7);
  cursor: pointer;
}

.hud-btn-badge {
  padding: 2px 6px;
  border-radius: 5px;
  font-size: 9.5px;
  font-weight: 600;
  letter-spacing: 0.04em;
  border: 1px solid rgba(249, 115, 22, 0.6);
  background: rgba(249, 115, 22, 0.14);
  color: #fb923c;
  cursor: pointer;
  transition: all 0.15s ease;
}

.hud-preview-text {
  font-style: italic;
  font-size: 13px;
  color: rgba(255, 255, 255, 0.8);
  line-height: 1.4;
  min-height: 20px;
}

/* Bottom Floating Tabs */
.hud-bottom-tabs {
  display: flex;
  align-items: center;
  justify-content: space-between;
  width: 100%;
  max-width: 440px;
  padding: 0 4px;
  gap: 6px;
}

.hud-pill-group {
  display: flex;
  background: rgba(23, 28, 42, 0.92);
  border: 1px solid rgba(255, 255, 255, 0.14);
  border-radius: 99px;
  padding: 3px;
  backdrop-filter: blur(20px);
}

.hud-pill-btn {
  padding: 4px 10px;
  border-radius: 99px;
  border: none;
  font-size: 11px;
  font-weight: 600;
  background: transparent;
  color: rgba(255, 255, 255, 0.7);
  cursor: pointer;
  white-space: nowrap;
  transition: all 0.15s ease;
}

.hud-pill-btn.active {
  background: var(--accent);
  color: #042f2e;
}

.hud-pill-indicator {
  display: flex;
  align-items: center;
  gap: 4px;
  background: rgba(23, 28, 42, 0.92);
  border: 1px solid rgba(255, 255, 255, 0.12);
  border-radius: 99px;
  padding: 3px 8px;
  font-size: 11px;
  font-weight: 600;
  color: rgba(255, 255, 255, 0.8);
  white-space: nowrap;
}

.simulator-controls {
  display: flex;
  align-items: center;
  gap: 12px;
  margin-top: 12px;
}

.sim-btn {
  background: rgba(255, 255, 255, 0.08);
  border: 1px solid var(--border-light);
  color: var(--accent);
  padding: 7px 16px;
  border-radius: 8px;
  font-size: 13px;
  font-weight: 600;
  cursor: pointer;
  transition: all 0.15s ease;
}

.sim-btn:hover {
  background: rgba(0, 229, 204, 0.15);
  border-color: var(--accent);
  transform: translateY(-1px);
}

.sim-hint {
  font-size: 12px;
  color: var(--text-muted);
}

/* SECTION COMMONS */
.section {
  padding: 90px 0;
  position: relative;
  z-index: 10;
}

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

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

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

.section-title {
  font-size: 38px;
  letter-spacing: -0.02em;
  margin-bottom: 16px;
}

.section-subtitle {
  font-size: 16.5px;
  color: var(--text-secondary);
  max-width: 640px;
  margin: 0 auto;
}

/* COMPARISON SECTION */
.comparison-section {
  background: linear-gradient(180deg, transparent 0%, rgba(14, 18, 28, 0.6) 50%, transparent 100%);
}

.comparison-grid {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 28px;
}

.comparison-card {
  background: var(--bg-card);
  border: 1px solid var(--border-light);
  border-radius: var(--radius-lg);
  padding: 32px 28px;
  box-shadow: var(--shadow-card);
  backdrop-filter: blur(20px);
  display: flex;
  flex-direction: column;
  gap: 20px;
}

.card-classic {
  border-color: rgba(239, 68, 68, 0.2);
}

.card-caspr {
  border-color: rgba(0, 229, 204, 0.35);
  background: linear-gradient(180deg, rgba(18, 26, 40, 0.85) 0%, rgba(12, 17, 27, 0.85) 100%);
  box-shadow: 0 20px 50px rgba(0, 0, 0, 0.6), 0 0 30px rgba(0, 229, 204, 0.08);
}

.card-badge-status {
  display: inline-flex;
  padding: 4px 10px;
  border-radius: 6px;
  font-size: 12px;
  font-weight: 700;
  width: fit-content;
}

.status-bad {
  background: rgba(239, 68, 68, 0.12);
  color: #f87171;
  border: 1px solid rgba(239, 68, 68, 0.3);
}

.status-good {
  background: rgba(0, 229, 204, 0.12);
  color: var(--accent);
  border: 1px solid rgba(0, 229, 204, 0.3);
}

.comparison-card-title {
  font-size: 20px;
}

.speech-bubble {
  padding: 18px 20px;
  border-radius: 12px;
  font-size: 15px;
  line-height: 1.5;
}

.speech-bubble-bad {
  background: rgba(239, 68, 68, 0.05);
  border-left: 3px solid #ef4444;
  color: #cbd5e1;
}

.highlight-bad {
  color: #f87171;
  text-decoration: line-through;
}

.speech-bubble-good {
  background: rgba(0, 229, 204, 0.08);
  border-left: 3px solid var(--accent);
  color: #fff;
  font-weight: 500;
}

.speech-bubble-good code {
  background: rgba(0, 0, 0, 0.4);
  color: var(--accent);
  padding: 2px 6px;
  border-radius: 4px;
  font-family: var(--font-mono);
  font-size: 13.5px;
}

.comparison-points {
  list-style: none;
  display: flex;
  flex-direction: column;
  gap: 10px;
  font-size: 14px;
  color: var(--text-secondary);
}

.comparison-points li {
  display: flex;
  align-items: center;
  gap: 10px;
}

/* DUAL ENGINES SECTION */
.engines-section {
  background: radial-gradient(ellipse at 50% 50%, rgba(2, 132, 199, 0.1) 0%, transparent 70%);
}

.engines-grid {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 28px;
}

.engine-card {
  background: var(--bg-card);
  border: 1px solid var(--border-light);
  border-radius: var(--radius-lg);
  padding: 32px 28px;
  box-shadow: var(--shadow-card);
  backdrop-filter: blur(20px);
  display: flex;
  flex-direction: column;
  gap: 20px;
  transition: transform 0.2s ease, border-color 0.2s ease;
}

.engine-card:hover {
  transform: translateY(-2px);
}

.engine-apple {
  border-color: rgba(56, 189, 248, 0.3);
}

.engine-crisper {
  border-color: rgba(0, 229, 204, 0.35);
  background: linear-gradient(180deg, rgba(18, 26, 42, 0.85) 0%, rgba(12, 18, 28, 0.85) 100%);
}

.engine-badge {
  display: inline-flex;
  padding: 4px 10px;
  border-radius: 6px;
  font-size: 11.5px;
  font-weight: 700;
  width: fit-content;
  margin-bottom: 12px;
}

.badge-apple {
  background: rgba(56, 189, 248, 0.12);
  color: var(--blue-bright);
  border: 1px solid rgba(56, 189, 248, 0.3);
}

.badge-crisper {
  background: rgba(0, 229, 204, 0.12);
  color: var(--accent);
  border: 1px solid rgba(0, 229, 204, 0.3);
}

.engine-header h3 {
  font-size: 22px;
  margin-bottom: 8px;
}

.engine-header p {
  color: var(--text-secondary);
  font-size: 14.5px;
  line-height: 1.5;
}

.engine-features-list {
  list-style: none;
  display: flex;
  flex-direction: column;
  gap: 12px;
  font-size: 14px;
  color: var(--text-secondary);
  border-top: 1px solid rgba(255, 255, 255, 0.06);
  padding-top: 16px;
}

.engine-features-list li {
  position: relative;
  padding-left: 18px;
  line-height: 1.5;
}

.engine-features-list li::before {
  content: '▸';
  position: absolute;
  left: 0;
  color: var(--accent);
  font-weight: 700;
}

.engine-apple .engine-features-list li::before {
  color: var(--blue-bright);
}

.engine-features-list strong {
  color: var(--text-primary);
}

.engine-license-note {
  font-size: 12px;
  color: var(--text-muted);
  border-top: 1px dashed rgba(255, 255, 255, 0.08);
  padding-top: 12px;
  margin-top: auto;
  line-height: 1.5;
}

.engine-license-note a {
  color: var(--accent);
  text-decoration: underline;
}

/* BENTO GRID */
.bento-grid {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 24px;
}

.bento-card {
  background: var(--bg-card);
  border: 1px solid var(--border-light);
  border-radius: var(--radius-lg);
  padding: 30px;
  box-shadow: var(--shadow-card);
  backdrop-filter: blur(20px);
  display: flex;
  flex-direction: column;
  justify-content: space-between;
  gap: 18px;
  transition: all 0.25s ease;
}

.bento-card:hover {
  border-color: rgba(0, 229, 204, 0.3);
  transform: translateY(-3px);
  box-shadow: 0 24px 50px rgba(0, 0, 0, 0.6), 0 0 25px rgba(0, 229, 204, 0.08);
}

.bento-span-2 {
  grid-column: span 2;
}

.bento-span-3 {
  grid-column: span 3;
}

.bento-card-header {
  display: flex;
  align-items: center;
  gap: 16px;
  margin-bottom: 2px;
}

.bento-icon-box {
  width: 46px;
  height: 46px;
  border-radius: 12px;
  background: rgba(255, 255, 255, 0.05);
  border: 1px solid var(--border-light);
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 22px;
  flex-shrink: 0;
}

.bento-header-text {
  display: flex;
  flex-direction: column;
  gap: 3px;
  flex: 1;
}

.bento-tag {
  font-size: 11px;
  font-weight: 700;
  text-transform: uppercase;
  letter-spacing: 0.06em;
  color: var(--accent);
  margin-bottom: 0;
}

.bento-card h3,
.bento-title {
  font-size: 19px;
  font-weight: 700;
  color: var(--text-primary);
  margin-bottom: 0;
  line-height: 1.25;
}

.bento-card p,
.bento-desc {
  color: var(--text-secondary);
  font-size: 14.5px;
  line-height: 1.6;
  margin: 0;
}

.bento-graphic-privacy {
  display: flex;
  gap: 12px;
  flex-wrap: wrap;
}

.privacy-pill {
  padding: 6px 12px;
  border-radius: var(--radius-full);
  background: rgba(0, 229, 204, 0.08);
  border: 1px solid rgba(0, 229, 204, 0.2);
  font-size: 12px;
  font-weight: 600;
  color: var(--accent);
  display: flex;
  align-items: center;
  gap: 6px;
}

.vocabulary-tags-cloud {
  display: flex;
  gap: 8px;
  flex-wrap: wrap;
}

.vocab-tag {
  background: rgba(255, 255, 255, 0.06);
  border: 1px solid rgba(255, 255, 255, 0.12);
  padding: 4px 10px;
  border-radius: 6px;
  font-family: var(--font-mono);
  font-size: 12px;
  color: var(--blue-bright);
}

/* OPEN SOURCE SECTION */
.os-section {
  background: radial-gradient(ellipse at 50% 50%, rgba(20, 28, 48, 0.6) 0%, transparent 70%);
}

.os-cards-grid {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 24px;
}

.os-feature-card {
  background: var(--bg-card);
  border: 1px solid var(--border-light);
  border-radius: var(--radius-lg);
  padding: 28px;
  display: flex;
  flex-direction: column;
  gap: 14px;
  backdrop-filter: blur(20px);
  transition: transform 0.2s ease;
}

.os-feature-card:hover {
  transform: translateY(-2px);
  border-color: rgba(255, 255, 255, 0.2);
}

.os-card-header {
  display: flex;
  align-items: center;
  gap: 14px;
  margin-bottom: 2px;
}

.os-icon {
  width: 44px;
  height: 44px;
  border-radius: 12px;
  background: rgba(255, 255, 255, 0.05);
  border: 1px solid var(--border-light);
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 22px;
  flex-shrink: 0;
}

.os-header-text {
  display: flex;
  flex-direction: column;
  gap: 3px;
  flex: 1;
}

.os-tag {
  font-size: 11px;
  font-weight: 700;
  text-transform: uppercase;
  letter-spacing: 0.06em;
  color: var(--accent);
}

.os-feature-card h3 {
  font-size: 17px;
  font-weight: 700;
  color: var(--text-primary);
  margin: 0;
  line-height: 1.25;
}

.os-feature-card p {
  color: var(--text-secondary);
  font-size: 14px;
  line-height: 1.6;
}

/* FAQ ACCORDION */
.faq-container {
  max-width: 760px;
}

.faq-accordion {
  display: flex;
  flex-direction: column;
  gap: 14px;
}

.faq-item {
  background: var(--bg-card);
  border: 1px solid var(--border-light);
  border-radius: var(--radius-md);
  overflow: hidden;
  transition: border-color 0.2s ease;
}

.faq-item:hover {
  border-color: rgba(255, 255, 255, 0.2);
}

.faq-question {
  width: 100%;
  background: transparent;
  border: none;
  padding: 20px 24px;
  display: flex;
  align-items: center;
  justify-content: space-between;
  font-family: var(--font-heading);
  font-size: 16.5px;
  font-weight: 600;
  color: var(--text-primary);
  text-align: left;
  cursor: pointer;
}

.faq-icon {
  font-size: 22px;
  font-weight: 400;
  color: var(--accent);
  transition: transform 0.2s ease;
}

.faq-item.active .faq-icon {
  transform: rotate(45deg);
}

.faq-answer {
  display: none;
  padding: 0 24px 22px;
  color: var(--text-secondary);
  font-size: 14.5px;
  line-height: 1.6;
}

.faq-item.active .faq-answer {
  display: block;
  animation: fadeIn 0.2s ease;
}

/* BOTTOM CTA BANNER */
.bottom-cta-section {
  padding: 50px 0 90px;
}

.bottom-cta-box {
  position: relative;
  background: linear-gradient(135deg, rgba(20, 28, 48, 0.9) 0%, rgba(10, 14, 24, 0.9) 100%);
  border: 1px solid rgba(0, 229, 204, 0.35);
  border-radius: 24px;
  padding: 60px 40px;
  text-align: center;
  box-shadow: 0 30px 80px rgba(0, 0, 0, 0.7), 0 0 50px rgba(0, 229, 204, 0.15);
  overflow: hidden;
}

.cta-glow-bg {
  position: absolute;
  top: 50%;
  left: 50%;
  transform: translate(-50%, -50%);
  width: 500px;
  height: 250px;
  background: radial-gradient(ellipse, rgba(0, 229, 204, 0.25) 0%, transparent 70%);
  pointer-events: none;
}

.bottom-cta-content {
  position: relative;
  z-index: 1;
  display: flex;
  flex-direction: column;
  align-items: center;
}

.bottom-cta-title {
  font-size: 38px;
  margin-bottom: 14px;
}

.bottom-cta-desc {
  font-size: 17px;
  color: var(--text-secondary);
  max-width: 580px;
  margin-bottom: 32px;
}

.bottom-cta-actions {
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 12px;
}

.cta-safe-note {
  font-size: 13px;
  color: var(--text-muted);
}

/* FOOTER */
.site-footer {
  background: rgba(5, 7, 12, 0.98);
  border-top: 1px solid rgba(255, 255, 255, 0.08);
  padding: 48px 0 28px;
  position: relative;
  z-index: 10;
}

.footer-inner {
  display: flex;
  flex-direction: column;
  gap: 32px;
}

.footer-top-row {
  display: flex;
  justify-content: space-between;
  align-items: flex-start;
  flex-wrap: wrap;
  gap: 24px;
}

.footer-brand {
  display: flex;
  align-items: center;
  gap: 14px;
}

.footer-title {
  font-family: var(--font-heading);
  font-size: 18px;
  font-weight: 700;
  color: #fff;
}

.footer-desc {
  font-size: 13px;
  color: var(--text-muted);
  max-width: 340px;
  margin-top: 4px;
}

.footer-links {
  display: flex;
  gap: 24px;
  flex-wrap: wrap;
}

.footer-links a {
  color: var(--text-secondary);
  text-decoration: none;
  font-size: 14px;
  transition: color 0.15s ease;
}

.footer-links a:hover {
  color: var(--accent);
}

.footer-bottom-bar {
  border-top: 1px solid rgba(255, 255, 255, 0.06);
  padding-top: 24px;
  display: flex;
  align-items: center;
  justify-content: space-between;
  flex-wrap: wrap;
  gap: 16px;
  font-size: 13px;
  color: var(--text-muted);
}

.footer-legal-links {
  display: flex;
  align-items: center;
  gap: 12px;
  flex-wrap: wrap;
}

.footer-legal-links a {
  color: var(--text-secondary);
  text-decoration: none;
  transition: color 0.15s ease;
}

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

.footer-sep {
  color: rgba(255, 255, 255, 0.2);
}

.lyria-backlink {
  color: var(--accent) !important;
  font-weight: 600;
  text-decoration: none;
  transition: all 0.15s ease;
}

.lyria-backlink:hover {
  color: var(--accent-hover) !important;
  text-decoration: underline;
}

/* LEGAL PAGES STYLES */
.legal-page-container {
  padding: 60px 24px 80px;
  max-width: 840px;
}

.legal-content-card {
  background: var(--bg-card);
  border: 1px solid var(--border-light);
  border-radius: var(--radius-lg);
  padding: 48px 40px;
  box-shadow: var(--shadow-card);
  backdrop-filter: blur(20px);
  text-align: left;
}

.legal-content-card h1 {
  font-size: 36px;
  margin-bottom: 8px;
}

.legal-updated {
  font-size: 13px;
  color: var(--text-muted);
  margin-bottom: 32px;
  border-bottom: 1px solid rgba(255, 255, 255, 0.08);
  padding-bottom: 16px;
}

.legal-content-card section {
  margin-bottom: 28px;
}

.legal-content-card h2 {
  font-size: 20px;
  color: var(--accent);
  margin-bottom: 12px;
}

.legal-content-card p {
  color: var(--text-secondary);
  font-size: 15px;
  line-height: 1.7;
  margin-bottom: 12px;
}

.legal-content-card a {
  color: var(--accent);
  text-decoration: underline;
}

.legal-list {
  padding-left: 24px;
  color: var(--text-secondary);
  font-size: 14.5px;
  line-height: 1.7;
  display: flex;
  flex-direction: column;
  gap: 8px;
}

/* ==========================================================================
   DOWNLOAD & INSTALLATION CAROUSEL MODAL (LARGE & CRISP)
   ========================================================================== */
.modal-backdrop {
  position: fixed;
  top: 0;
  left: 0;
  width: 100vw;
  height: 100vh;
  background: rgba(0, 0, 0, 0.85);
  backdrop-filter: blur(18px);
  -webkit-backdrop-filter: blur(18px);
  z-index: 9999;
  display: flex;
  align-items: center;
  justify-content: center;
  padding: 20px;
  opacity: 0;
  pointer-events: none;
  transition: opacity 0.25s ease;
}

.modal-backdrop.open {
  opacity: 1;
  pointer-events: auto;
}

.modal-card {
  background: rgba(16, 22, 36, 0.97);
  border: 1px solid rgba(0, 229, 204, 0.35);
  border-radius: 24px;
  padding: 32px 36px 28px;
  max-width: 880px;
  width: 100%;
  max-height: 92vh;
  overflow-y: auto;
  box-shadow: 0 30px 80px rgba(0, 0, 0, 0.85), 0 0 60px rgba(0, 229, 204, 0.15);
  position: relative;
  transform: scale(0.95);
  transition: transform 0.25s cubic-bezier(0.16, 1, 0.3, 1);
}

.modal-backdrop.open .modal-card {
  transform: scale(1);
}

.modal-close-btn {
  position: absolute;
  top: 18px;
  right: 18px;
  background: rgba(255, 255, 255, 0.08);
  border: 1px solid var(--border-light);
  color: #fff;
  font-size: 24px;
  line-height: 1;
  width: 36px;
  height: 36px;
  border-radius: 50%;
  cursor: pointer;
  display: flex;
  align-items: center;
  justify-content: center;
  transition: all 0.15s ease;
  z-index: 10;
}

.modal-close-btn:hover {
  background: rgba(255, 255, 255, 0.18);
  transform: scale(1.05);
}

.modal-header {
  display: flex;
  flex-direction: column;
  align-items: center;
  text-align: center;
  margin-bottom: 16px;
}

.modal-title {
  font-size: 26px;
  margin-bottom: 6px;
}

.modal-subtitle {
  color: var(--text-secondary);
  font-size: 14.5px;
  max-width: 620px;
}

.modal-why-box {
  background: rgba(0, 229, 204, 0.06);
  border: 1px solid rgba(0, 229, 204, 0.25);
  border-radius: 12px;
  padding: 12px 18px;
  margin-bottom: 20px;
  text-align: left;
}

.modal-why-box h4 {
  font-size: 13.5px;
  color: var(--accent);
  margin-bottom: 4px;
}

.modal-why-box p {
  font-size: 12.5px;
  color: var(--text-secondary);
  line-height: 1.5;
}

/* CAROUSEL CONTAINER */
.carousel-wrapper {
  background: rgba(0, 0, 0, 0.4);
  border: 1px solid var(--border-light);
  border-radius: 18px;
  padding: 20px;
  margin-bottom: 20px;
  display: flex;
  flex-direction: column;
  align-items: center;
}

.carousel-step-header {
  display: flex;
  align-items: center;
  justify-content: space-between;
  width: 100%;
  margin-bottom: 14px;
}

.carousel-counter-badge {
  font-size: 12px;
  font-weight: 700;
  color: var(--accent);
  background: rgba(0, 229, 204, 0.12);
  border: 1px solid rgba(0, 229, 204, 0.3);
  padding: 4px 10px;
  border-radius: 99px;
}

.carousel-step-title {
  font-size: 16px;
  font-weight: 700;
  color: #fff;
}

.carousel-slide-viewport {
  width: 100%;
  height: 340px;
  display: flex;
  align-items: center;
  justify-content: center;
  background: rgba(8, 12, 20, 0.8);
  border-radius: 12px;
  overflow: hidden;
  border: 1px solid rgba(255, 255, 255, 0.08);
  margin-bottom: 14px;
}

.carousel-img {
  max-width: 100%;
  max-height: 100%;
  object-fit: contain;
  border-radius: 8px;
  box-shadow: 0 10px 30px rgba(0, 0, 0, 0.7);
  transition: opacity 0.2s ease;
}

.carousel-instruction-text {
  font-size: 14px;
  color: var(--text-secondary);
  line-height: 1.5;
  text-align: center;
  max-width: 720px;
  min-height: 42px;
  margin-bottom: 14px;
}

.carousel-instruction-text strong {
  color: #fff;
}

/* CAROUSEL CONTROLS & DOTS */
.carousel-nav-row {
  display: flex;
  align-items: center;
  justify-content: space-between;
  width: 100%;
  gap: 12px;
}

.carousel-nav-btn {
  background: rgba(255, 255, 255, 0.08);
  border: 1px solid var(--border-light);
  color: #fff;
  padding: 8px 16px;
  border-radius: 8px;
  font-family: var(--font-heading);
  font-size: 13px;
  font-weight: 600;
  cursor: pointer;
  transition: all 0.15s ease;
}

.carousel-nav-btn:hover {
  background: rgba(0, 229, 204, 0.2);
  border-color: var(--accent);
  color: var(--accent);
}

.carousel-dots-group {
  display: flex;
  align-items: center;
  gap: 6px;
}

.carousel-dot {
  width: 10px;
  height: 10px;
  border-radius: 50%;
  background: rgba(255, 255, 255, 0.2);
  border: none;
  cursor: pointer;
  transition: all 0.2s ease;
}

.carousel-dot.active {
  width: 24px;
  border-radius: 99px;
  background: var(--accent);
  box-shadow: 0 0 10px var(--accent);
}

.modal-footer {
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 10px;
}

.modal-restart-link {
  font-size: 12px;
  color: var(--text-muted);
  text-decoration: underline;
  cursor: pointer;
}

.modal-restart-link:hover {
  color: var(--text-secondary);
}

/* ANIMATIONS */
@keyframes fadeIn {
  from { opacity: 0; transform: translateY(6px); }
  to { opacity: 1; transform: translateY(0); }
}

@keyframes pulse {
  0% { transform: scale(1); opacity: 1; }
  50% { transform: scale(1.15); opacity: 0.6; }
  100% { transform: scale(1); opacity: 1; }
}

@keyframes blink {
  0%, 100% { opacity: 1; }
  50% { opacity: 0; }
}

/* ==========================================================================
   RESPONSIVE MEDIA QUERIES (TABLET & MOBILE OPTIMIZATIONS)
   ========================================================================== */

@media (max-width: 1024px) {
  .container {
    padding: 0 20px;
  }
  .bento-grid {
    grid-template-columns: repeat(2, 1fr);
  }
  .bento-span-2,
  .bento-span-3 {
    grid-column: span 2;
  }
  .engines-grid {
    grid-template-columns: 1fr 1fr;
  }
}

@media (max-width: 768px) {
  /* Prevent horizontal overflow completely */
  html, body {
    overflow-x: hidden !important;
    overflow-x: clip !important;
    width: 100% !important;
    max-width: 100vw !important;
  }

  .glow-orb {
    display: none !important; /* Eliminates off-screen canvas expansion entirely on mobile */
  }

  .desktop-only,
  .nav-links {
    display: none !important;
  }

  .site-header {
    height: auto;
    padding: 10px 0;
  }
  .header-inner {
    padding: 0 16px;
    width: 100%;
    max-width: 100%;
  }

  .bento-grid,
  .engines-grid,
  .os-cards-grid,
  .comparison-grid {
    grid-template-columns: 1fr;
    gap: 18px;
  }

  .bento-span-2,
  .bento-span-3 {
    grid-column: span 1;
  }

  .section {
    padding: 50px 0;
  }

  .section-title {
    font-size: 26px;
  }

  .footer-top-row {
    flex-direction: column;
    gap: 24px;
    text-align: center;
    align-items: center;
  }

  .footer-brand {
    flex-direction: column;
    align-items: center;
    text-align: center;
    gap: 12px;
  }

  .footer-links {
    justify-content: center;
    flex-wrap: wrap;
    gap: 14px;
  }

  .footer-bottom-bar {
    flex-direction: column;
    gap: 12px;
    text-align: center;
  }

  .footer-legal-links {
    justify-content: center;
    flex-wrap: wrap;
    gap: 8px;
  }
}

@media (max-width: 640px) {
  /* 1. Header Mobile - Sleek, Uncluttered, Zero Overlap */
  .container {
    padding: 0 16px;
    width: 100%;
    max-width: 100vw;
    overflow-x: hidden;
  }

  .site-header {
    padding: 8px 0;
  }
  .header-inner {
    padding: 0 12px;
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 8px;
  }
  .brand-logo {
    gap: 8px;
    flex-shrink: 0;
  }
  .logo-squircle {
    width: 32px;
    height: 32px;
    border-radius: 8px;
  }
  .logo-squircle svg {
    width: 20px;
    height: 20px;
  }
  .brand-name {
    font-size: 16px;
    font-weight: 700;
  }
  .brand-sub {
    display: none !important; /* Hide subtitle on mobile to give room */
  }
  .header-actions {
    display: flex;
    align-items: center;
    gap: 6px;
    flex-shrink: 0;
  }
  .header-download-btn {
    display: none !important; /* Hide the duplicate download button from the mobile header */
  }
  .lang-switcher {
    padding: 2px 6px;
    gap: 4px;
    border-radius: 6px;
    background: rgba(255, 255, 255, 0.05);
  }
  .lang-btn {
    font-size: 11px;
    padding: 2px 4px;
  }
  .btn-icon {
    padding: 6px 8px;
    border-radius: 6px;
  }

  /* 2. Hero Section - Zero Layout Shift on Typewriter */
  .hero-section {
    padding: 24px 0 20px;
    text-align: center;
  }
  .hero-badge {
    font-size: 11px;
    padding: 4px 10px;
    margin: 0 auto 12px;
    max-width: 95%;
    white-space: normal;
    line-height: 1.3;
    display: inline-flex;
  }
  .hero-title {
    font-size: 22px;
    line-height: 1.25;
    margin-bottom: 12px;
    height: 112px;
    min-height: 112px;
    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: flex-start;
  }
  .hero-title-static {
    display: block;
    line-height: 1.25;
  }
  .typewriter-container {
    display: block;
    width: 100%;
    max-width: 320px;
    height: 56px;
    min-height: 56px;
    margin: 4px auto 0;
    text-align: center;
    vertical-align: baseline;
  }
  .typewriter-text {
    font-size: 21px;
    line-height: 1.25;
    display: inline;
    word-break: normal;
    white-space: normal;
  }
  .typewriter-cursor {
    display: inline;
  }
  .hero-subtitle {
    font-size: 13.5px;
    line-height: 1.5;
    margin-bottom: 18px;
    padding: 0 4px;
  }
  .hero-cta-group {
    width: 100%;
    max-width: 320px;
    margin: 0 auto 24px;
    gap: 8px;
  }
  .btn-download-hero {
    width: 100%;
    font-size: 14.5px;
    padding: 12px 18px;
    border-radius: 12px;
  }
  .release-status-banner {
    width: 100%;
    font-size: 10.5px;
    padding: 6px 10px;
    justify-content: center;
    text-align: center;
    line-height: 1.3;
  }

  /* 3. Simulator on Mobile - Unified, Aesthetic and Clean */
  .hud-simulator-wrapper {
    margin-top: 16px;
    width: 100%;
    max-width: 100%;
    border-radius: 14px;
    padding: 0;
  }
  .hud-simulator-card {
    padding: 12px 10px;
    border-radius: 14px;
  }
  .hud-mockup-header {
    padding: 6px 8px;
  }
  .hud-mockup-title {
    display: none;
  }
  .hud-badge-tag {
    font-size: 10px;
    padding: 2px 6px;
  }
  .mock-editor {
    padding: 10px 10px;
    min-height: 120px;
    border-radius: 10px;
    font-size: 11px;
  }
  .mock-editor-content p {
    font-size: 11px;
  }
  .floating-hud-card {
    width: 100%;
    max-width: 100%;
    padding: 8px 10px;
    margin: 10px auto;
    border-radius: 10px;
  }
  .hud-top-row {
    flex-wrap: wrap;
    gap: 6px;
  }
  .hud-status-left {
    gap: 4px;
  }
  .hud-vumeter {
    gap: 1px;
  }
  .vu-bar {
    width: 2px;
  }
  .hud-preview-text {
    font-size: 11px;
    min-height: 16px;
    line-height: 1.35;
  }
  .hud-bottom-tabs {
    flex-direction: row;
    flex-wrap: wrap;
    justify-content: center;
    gap: 6px;
    width: 100%;
  }
  .hud-pill-group {
    padding: 2px;
  }
  .hud-pill-btn {
    padding: 3px 6px;
    font-size: 10px;
  }
  .hud-pill-indicator {
    padding: 2px 5px;
    font-size: 10px;
  }
  .simulator-controls {
    flex-direction: column;
    align-items: center;
    width: 100%;
    gap: 6px;
    margin-top: 8px;
  }
  .sim-btn {
    width: 100%;
    max-width: 240px;
    font-size: 12px;
    padding: 8px 14px;
  }
  .sim-hint {
    font-size: 10.5px;
    line-height: 1.3;
    padding: 0 4px;
  }

  /* Bento & OS Cards Mobile */
  .bento-card,
  .os-feature-card {
    padding: 18px 14px;
    border-radius: 16px;
    gap: 12px;
  }
  .bento-card-header,
  .os-card-header {
    display: flex;
    align-items: center;
    gap: 12px;
    margin-bottom: 0;
  }
  .bento-icon-box,
  .os-icon {
    width: 38px;
    height: 38px;
    font-size: 18px;
    border-radius: 10px;
  }
  .bento-tag,
  .os-tag {
    font-size: 10.5px;
  }
  .bento-card h3,
  .bento-title,
  .os-feature-card h3 {
    font-size: 16.5px;
    line-height: 1.25;
  }
  .bento-card p,
  .bento-desc,
  .os-feature-card p {
    font-size: 13px;
    line-height: 1.5;
  }
}
