@import url('https://fonts.googleapis.com/css2?family=IBM+Plex+Sans+Arabic:wght@300;400;500;600;700&family=Manrope:wght@300;400;500;600;700;800&family=Plus+Jakarta+Sans:ital,wght@0,300..800;1,300..800&family=Sora:wght@300;400;500;600;700;800&family=Tajawal:wght@400;500;700;800;900&display=swap');

:root {
  --primary-cyan: #00B8FF;
  --primary-green: #3AE374;
  --primary-indigo: #6366F1;
  --bg-dark-900: #060B18;
  --bg-dark-800: #0A1022;
  --bg-dark-700: #101827;
  --font-heading: 'Sora', -apple-system, BlinkMacSystemFont, sans-serif;
  --font-body: 'Plus Jakarta Sans', -apple-system, BlinkMacSystemFont, sans-serif;
  --font-accent: 'Manrope', monospace;

  /* ============================================================
     THEME TOKENS — Dark (default)
     Component classes below (.glass-*, .btn-*, .qr-card, etc.)
     and the Tailwind `white` / `slate` remap in index.html both
     read these, so toggling html.dark flips the entire page.
     ============================================================ */
  /* NOTE: space-separated triplets (not comma-separated) — required by the
     modern rgb(var(--x) / <alpha>) syntax used throughout this file. */
  --surface-0: #060B18;          /* page background */
  --surface-1-rgb: 10 16 34;     /* panels, footer, floating cards (#0A1022) */
  --surface-2-rgb: 16 24 39;     /* cards, qr-card, terminal (#101827) */
  --surface-nav-rgb: 6 11 24;    /* header glass-nav (#060B18) */
  --ink-rgb: 255 255 255;        /* primary text / hairline borders / overlays */
  --ink-soft-rgb: 203 213 225;   /* secondary text (slate-300 equivalent) */
  --ink-mute-rgb: 148 163 184;   /* muted text (slate-400/500 equivalent) */
  color-scheme: dark;
}

html:not(.dark) {
  --surface-0: #F2F5FA;
  --surface-1-rgb: 255 255 255;
  --surface-2-rgb: 255 255 255;
  --surface-nav-rgb: 255 255 255;
  --ink-rgb: 15 23 42;
  --ink-soft-rgb: 51 65 85;
  --ink-mute-rgb: 100 116 139;
  color-scheme: light;
}

/* Always-dark chrome: phone mockup screens, photo overlays, and the
   in-terminal console keep their dark look regardless of site theme —
   they render on top of screenshots/photos, not the page surface. */
.iphone-screen-viewport,
.dark-scope,
.btn-store,
.lightbox-modal {
  --ink-rgb: 255 255 255;
  --ink-soft-rgb: 203 213 225;
  --ink-mute-rgb: 148 163 184;
  --surface-1-rgb: 10 16 34;
  --surface-2-rgb: 16 24 39;
}

/* Arabic Font Overrides when dir="rtl" */
[dir="rtl"] {
  --font-heading: 'Tajawal', -apple-system, BlinkMacSystemFont, sans-serif;
  --font-body: 'IBM Plex Sans Arabic', -apple-system, BlinkMacSystemFont, sans-serif;
  --font-accent: 'Tajawal', -apple-system, BlinkMacSystemFont, sans-serif;
}

[dir="rtl"] body {
  font-family: var(--font-body);
}

[dir="rtl"] h1, [dir="rtl"] h2, [dir="rtl"] h3, [dir="rtl"] h4, [dir="rtl"] h5, [dir="rtl"] h6 {
  font-family: var(--font-heading);
}

/* Tailwind's font-mono stack has no Arabic glyphs, so every badge/label/stat
   using it (there are dozens across this page) was silently falling all the
   way through to the browser's generic system monospace font for Arabic
   text — which doesn't shape Arabic letterforms correctly and reads as
   broken/ugly. Route font-mono through the Arabic accent font in RTL. */
[dir="rtl"] .font-mono {
  font-family: var(--font-accent);
}

* {
  margin: 0;
  padding: 0;
  box-sizing: border-box;
}

html {
  font-family: var(--font-body);
  background-color: var(--surface-0);
  color: rgb(var(--ink-rgb));
  scroll-behavior: smooth;
  overflow-x: hidden;
  transition: background-color 0.3s ease;
}

body {
  overflow-x: hidden;
  background-color: var(--surface-0);
  min-height: 100vh;
  position: relative;
  -webkit-font-smoothing: antialiased;
  -moz-osx-font-smoothing: grayscale;
}

h1, h2, h3, h4, h5, h6 {
  font-family: var(--font-heading);
}

/* Company Logo Styling (logo_viaara.svg) */
.company-logo-svg {
  display: inline-block;
  vertical-align: middle;
  background: transparent !important;
  object-fit: contain;
}

/* Fast Scrollbar */
::-webkit-scrollbar {
  width: 8px;
  height: 8px;
}
::-webkit-scrollbar-track {
  background: var(--surface-0);
}
::-webkit-scrollbar-thumb {
  background: rgb(var(--ink-rgb) / 0.15);
  border-radius: 9999px;
  border: 2px solid var(--surface-0);
}
::-webkit-scrollbar-thumb:hover {
  background: var(--primary-cyan);
}

/* Tech Vector Grid Overlay */
.tech-grid-overlay {
  position: fixed;
  inset: 0;
  pointer-events: none;
  z-index: 1;
  opacity: 0.035;
  background-image:
    linear-gradient(to right, rgb(var(--ink-rgb) / 0.1) 1px, transparent 1px),
    linear-gradient(to bottom, rgb(var(--ink-rgb) / 0.1) 1px, transparent 1px);
  background-size: 40px 40px;
}

/* Noise Background Overlay */
.noise-overlay {
  position: fixed;
  inset: 0;
  opacity: 0.025;
  pointer-events: none;
  z-index: 1;
  background: url("data:image/svg+xml,%3Csvg viewBox='0 0 200 200' xmlns='http://www.w3.org/2000/svg'%3E%3Cfilter id='n'%3E%3CfeTurbulence type='fractalNoise' baseFrequency='0.8' numOctaves='2' stitchTiles='stitch'/%3E%3C/filter%3E%3Crect width='100%25' height='100%25' filter='url(%23n)'/%3E%3C/svg%3E");
}

/* Glassmorphism Components */
.glass-nav {
  background: rgb(var(--surface-nav-rgb) / 0.88);
  backdrop-filter: blur(20px);
  -webkit-backdrop-filter: blur(20px);
  border-bottom: 1px solid rgb(var(--ink-rgb) / 0.08);
}

.glass-panel {
  background: rgb(var(--surface-1-rgb) / 0.85);
  backdrop-filter: blur(16px);
  -webkit-backdrop-filter: blur(16px);
  border: 1px solid rgb(var(--ink-rgb) / 0.08);
  box-shadow: 0 20px 50px rgba(0, 0, 0, 0.4);
}

.glass-card {
  position: relative;
  background: rgb(var(--surface-2-rgb) / 0.75);
  backdrop-filter: blur(12px);
  -webkit-backdrop-filter: blur(12px);
  border: 1px solid rgb(var(--ink-rgb) / 0.08);
  border-radius: 1.5rem;
  transition: transform 0.3s cubic-bezier(0.16, 1, 0.3, 1), border-color 0.3s ease, box-shadow 0.3s ease;
  will-change: transform;
}

.glass-card:hover {
  border-color: rgba(0, 184, 255, 0.4);
  box-shadow: 0 12px 30px -10px rgba(0, 184, 255, 0.25), 0 0 20px rgba(58, 227, 116, 0.1);
  transform: translateY(-4px);
}

/* Section Separator Divider Lines */
.section-divider {
  width: 100%;
  height: 1px;
  background: linear-gradient(90deg, transparent 0%, rgba(0, 184, 255, 0.2) 50%, transparent 100%);
}

/* Cursor Dynamic Glow */
.glow-card {
  position: relative;
  overflow: hidden;
}
.glow-card::before {
  content: "";
  position: absolute;
  top: var(--mouse-y, 50%);
  left: var(--mouse-x, 50%);
  transform: translate(-50%, -50%);
  width: 350px;
  height: 350px;
  background: radial-gradient(circle, rgba(0, 184, 255, 0.15) 0%, rgba(58, 227, 116, 0.05) 50%, transparent 80%);
  opacity: 0;
  transition: opacity 0.3s ease;
  pointer-events: none;
  border-radius: 50%;
  z-index: 1;
}
.glow-card:hover::before {
  opacity: 1;
}

/* Gradient Text */
.text-gradient {
  background: linear-gradient(135deg, #FFFFFF 20%, #00B8FF 60%, #3AE374 100%);
  -webkit-background-clip: text;
  -webkit-text-fill-color: transparent;
}

.text-gradient-cyan {
  background: linear-gradient(135deg, #00B8FF 0%, #3AE374 100%);
  -webkit-background-clip: text;
  -webkit-text-fill-color: transparent;
}

/* Language Switcher Button */
.lang-switcher-btn,
.theme-switcher-btn {
  display: inline-flex;
  align-items: center;
  gap: 0.4rem;
  padding: 0.45rem 0.85rem;
  border-radius: 9999px;
  background: rgb(var(--ink-rgb) / 0.08);
  border: 1px solid rgb(var(--ink-rgb) / 0.15);
  color: rgb(var(--ink-rgb));
  font-size: 0.8rem;
  font-weight: 700;
  cursor: pointer;
  transition: all 0.25s ease;
  user-select: none;
}

.theme-switcher-btn {
  padding: 0.5rem;
  width: 2.35rem;
  height: 2.35rem;
  justify-content: center;
}

.lang-switcher-btn:hover,
.theme-switcher-btn:hover {
  background: rgba(0, 184, 255, 0.15);
  border-color: var(--primary-cyan);
  color: var(--primary-cyan);
  transform: scale(1.05);
}

/* Store CTA Buttons */
.btn-store {
  position: relative;
  display: inline-flex;
  align-items: center;
  gap: 0.75rem;
  padding: 0.75rem 1.5rem;
  border-radius: 0.85rem;
  background: rgb(var(--surface-2-rgb) / 0.95);
  border: 1px solid rgb(var(--ink-rgb) / 0.15);
  box-shadow: 0 10px 30px rgba(0, 0, 0, 0.5);
  transition: transform 0.3s cubic-bezier(0.16, 1, 0.3, 1), border-color 0.3s ease, box-shadow 0.3s ease;
  overflow: hidden;
  will-change: transform;
}

.btn-store:hover {
  transform: translateY(-3px) scale(1.02);
  border-color: rgba(0, 184, 255, 0.6);
  box-shadow: 0 15px 35px rgba(0, 184, 255, 0.25);
}

.btn-store:active {
  transform: translateY(0) scale(0.98);
}

.btn-primary {
  position: relative;
  background: linear-gradient(135deg, #00B8FF 0%, #0088CC 50%, #3AE374 100%);
  background-size: 200% 200%;
  color: #060B18;
  font-weight: 700;
  border-radius: 9999px;
  transition: transform 0.3s cubic-bezier(0.16, 1, 0.3, 1), box-shadow 0.3s ease, background-position 0.3s ease;
  box-shadow: 0 8px 25px rgba(0, 184, 255, 0.3);
  overflow: hidden;
  will-change: transform;
}

.btn-primary:hover {
  background-position: 100% 0;
  transform: translateY(-2px) scale(1.02);
  box-shadow: 0 12px 35px rgba(58, 227, 116, 0.4);
}

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

.btn-secondary {
  position: relative;
  background: rgb(var(--ink-rgb) / 0.06);
  color: rgb(var(--ink-rgb));
  font-weight: 600;
  border: 1px solid rgb(var(--ink-rgb) / 0.15);
  border-radius: 9999px;
  transition: transform 0.3s cubic-bezier(0.16, 1, 0.3, 1), border-color 0.3s ease, color 0.3s ease;
  will-change: transform;
}

.btn-secondary:hover {
  background: rgba(255, 255, 255, 0.12);
  border-color: var(--primary-cyan);
  color: var(--primary-cyan);
  transform: translateY(-2px);
  box-shadow: 0 8px 20px rgba(0, 184, 255, 0.15);
}

/* Button Ripple Animation */
.ripple-effect {
  position: absolute;
  border-radius: 50%;
  background: rgba(255, 255, 255, 0.4);
  transform: scale(0);
  animation: ripple 0.6s linear;
  pointer-events: none;
}

@keyframes ripple {
  to {
    transform: scale(4);
    opacity: 0;
  }
}

/* ==========================================================================
   ULTRA-REALISTIC APPLE iPHONE 16 PRO / 15 PRO TITANIUM MOCKUP (SIMULATOR)
   ========================================================================== */

.perspective-container {
  perspective: 1400px;
}

.phone-wrapper {
  position: relative;
  transform-style: preserve-3d;
  transition: transform 0.25s cubic-bezier(0.16, 1, 0.3, 1);
  will-change: transform;
}

.phone-wrapper.float-anim {
  animation: phoneSubtleFloat 6s ease-in-out infinite alternate;
}

@keyframes phoneSubtleFloat {
  0% { transform: translateY(0px) rotateX(0deg) rotateY(0deg); }
  50% { transform: translateY(-8px) rotateX(1.5deg) rotateY(-1deg); }
  100% { transform: translateY(-14px) rotateX(2.5deg) rotateY(1.5deg); }
}

/* Outer iPhone Chassis & Titanium Ring */
.iphone-frame {
  position: relative;
  width: 295px;
  height: 615px;
  background: linear-gradient(145deg, #2A3342 0%, #151D2C 30%, #0D131F 70%, #202A3A 100%);
  border-radius: 52px;
  padding: 10px;
  box-shadow: 
    0 0 0 1px rgba(255, 255, 255, 0.22),
    0 0 0 3px #1E2638,
    0 0 0 4.5px rgba(0, 184, 255, 0.3),
    0 30px 70px -15px rgba(0, 0, 0, 0.9),
    0 20px 50px -10px rgba(0, 184, 255, 0.35),
    0 0 80px rgba(58, 227, 116, 0.15);
  border: 1px solid rgba(255, 255, 255, 0.18);
  user-select: none;
}

@media (min-width: 640px) {
  .iphone-frame {
    width: 315px;
    height: 655px;
    border-radius: 54px;
    padding: 11px;
  }
}

@media (min-width: 1024px) {
  .iphone-frame {
    width: 325px;
    height: 675px;
    border-radius: 56px;
    padding: 12px;
  }
}

/* iPhone Physical Hardware Buttons */
.iphone-btn-action {
  position: absolute;
  left: -4px;
  top: 105px;
  width: 4px;
  height: 26px;
  background: linear-gradient(to right, #3A475C, #1E2638);
  border-radius: 3px 0 0 3px;
  box-shadow: -1px 0 3px rgba(0, 0, 0, 0.5);
}

.iphone-btn-vol-up {
  position: absolute;
  left: -4px;
  top: 148px;
  width: 4px;
  height: 48px;
  background: linear-gradient(to right, #3A475C, #1E2638);
  border-radius: 3px 0 0 3px;
  box-shadow: -1px 0 3px rgba(0, 0, 0, 0.5);
}

.iphone-btn-vol-down {
  position: absolute;
  left: -4px;
  top: 206px;
  width: 4px;
  height: 48px;
  background: linear-gradient(to right, #3A475C, #1E2638);
  border-radius: 3px 0 0 3px;
  box-shadow: -1px 0 3px rgba(0, 0, 0, 0.5);
}

.iphone-btn-power {
  position: absolute;
  right: -4px;
  top: 160px;
  width: 4px;
  height: 72px;
  background: linear-gradient(to left, #3A475C, #1E2638);
  border-radius: 0 3px 3px 0;
  box-shadow: 1px 0 3px rgba(0, 0, 0, 0.5);
}

/* Inner Screen Container with Apple Bezel Corner Radii */
.iphone-screen-viewport {
  position: relative;
  width: 100%;
  height: 100%;
  background: #060B18;
  border-radius: 42px;
  overflow: hidden;
  box-shadow: inset 0 0 0 1px rgba(255, 255, 255, 0.1), inset 0 0 10px rgba(0, 0, 0, 0.8);
}

@media (min-width: 640px) {
  .iphone-screen-viewport {
    border-radius: 44px;
  }
}

@media (min-width: 1024px) {
  .iphone-screen-viewport {
    border-radius: 46px;
  }
}

/* Dynamic Island (Apple Pill Cutout) */
.iphone-dynamic-island {
  position: absolute;
  top: 12px;
  left: 50%;
  transform: translateX(-50%);
  width: 106px;
  height: 28px;
  background: #000000;
  border-radius: 20px;
  z-index: 50;
  display: flex;
  align-items: center;
  justify-content: space-between;
  padding: 0 10px;
  box-shadow: 0 1px 4px rgba(0, 0, 0, 0.8), 0 0 0 0.5px rgba(255, 255, 255, 0.1);
  transition: width 0.3s cubic-bezier(0.16, 1, 0.3, 1), height 0.3s ease, border-radius 0.3s ease;
}

.iphone-camera-sensor {
  width: 11px;
  height: 11px;
  background: radial-gradient(circle at 35% 35%, #182B49 10%, #08101E 50%, #000000 100%);
  border-radius: 50%;
  box-shadow: inset 0 0 1.5px rgba(0, 184, 255, 0.6), 0 0 2px rgba(0, 0, 0, 0.9);
  position: relative;
}

.iphone-camera-sensor::after {
  content: "";
  position: absolute;
  top: 2px;
  left: 2px;
  width: 3px;
  height: 3px;
  background: rgba(255, 255, 255, 0.7);
  border-radius: 50%;
  filter: blur(0.2px);
}

.iphone-speaker-mic {
  width: 7px;
  height: 7px;
  background: radial-gradient(circle, #101622 40%, #000000 90%);
  border-radius: 50%;
}

/* iOS Real Status Bar */
.iphone-status-bar {
  position: absolute;
  top: 14px;
  left: 0;
  right: 0;
  padding: 0 26px;
  height: 24px;
  display: flex;
  align-items: center;
  justify-content: space-between;
  font-family: -apple-system, BlinkMacSystemFont, 'SF Pro Text', sans-serif;
  font-size: 13px;
  font-weight: 600;
  color: #FFFFFF;
  z-index: 45;
  pointer-events: none;
}

.iphone-status-time {
  letter-spacing: -0.2px;
  padding-left: 2px;
}

.iphone-status-icons {
  display: flex;
  align-items: center;
  gap: 5px;
}

/* Battery Icon */
.iphone-battery {
  width: 22px;
  height: 11px;
  border: 1.5px solid rgba(255, 255, 255, 0.85);
  border-radius: 3.5px;
  padding: 1px;
  position: relative;
  display: flex;
  align-items: center;
}

.iphone-battery::after {
  content: "";
  position: absolute;
  right: -3.5px;
  top: 2px;
  width: 2px;
  height: 4px;
  background: rgba(255, 255, 255, 0.85);
  border-radius: 0 1px 1px 0;
}

.iphone-battery-level {
  width: 85%;
  height: 100%;
  background: #3AE374;
  border-radius: 1.5px;
}

/* iOS Home Indicator Bar */
.iphone-home-bar {
  position: absolute;
  bottom: 8px;
  left: 50%;
  transform: translateX(-50%);
  width: 125px;
  height: 4.5px;
  background: rgba(255, 255, 255, 0.75);
  border-radius: 10px;
  z-index: 45;
  pointer-events: none;
  box-shadow: 0 1px 3px rgba(0, 0, 0, 0.5);
}

/* Photorealistic Studio Glare Sheen */
.iphone-glass-glare {
  position: absolute;
  inset: 0;
  background: linear-gradient(130deg, rgba(255, 255, 255, 0.16) 0%, rgba(255, 255, 255, 0.04) 30%, transparent 50%, transparent 100%);
  pointer-events: none;
  z-index: 40;
  border-radius: inherit;
}

/* Screenshots Slideshow Container */
.iphone-slides-container {
  position: absolute;
  inset: 0;
  width: 100%;
  height: 100%;
  z-index: 10;
}

.iphone-slide {
  position: absolute;
  inset: 0;
  width: 100%;
  height: 100%;
  opacity: 0;
  transform: scale(1.02);
  transition: opacity 0.45s cubic-bezier(0.16, 1, 0.3, 1), transform 0.45s cubic-bezier(0.16, 1, 0.3, 1);
  pointer-events: none;
  display: flex;
  align-items: center;
  justify-content: center;
  background: #060B18;
}

.iphone-slide.active {
  opacity: 1;
  transform: scale(1);
  pointer-events: auto;
  z-index: 12;
}

.iphone-slide img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  object-position: top center;
  display: block;
}

/* Floating Interactive Badges around Phone */
.floating-hero-card {
  position: absolute;
  backdrop-filter: blur(16px);
  -webkit-backdrop-filter: blur(16px);
  background: rgb(var(--surface-1-rgb) / 0.9);
  border: 1px solid rgba(0, 184, 255, 0.35);
  box-shadow: 0 15px 35px rgba(0, 0, 0, 0.6), 0 0 25px rgba(0, 184, 255, 0.2);
  border-radius: 1.25rem;
  padding: 0.85rem 1.15rem;
  z-index: 30;
  transition: transform 0.3s cubic-bezier(0.16, 1, 0.3, 1), opacity 0.3s ease;
  animation: floatCard 4s ease-in-out infinite alternate;
}

@keyframes floatCard {
  0% { transform: translateY(0px); }
  100% { transform: translateY(-8px); }
}

/* Simulator Navigation Controls */
.simulator-nav-btn {
  width: 44px;
  height: 44px;
  border-radius: 50%;
  background: rgb(var(--surface-2-rgb) / 0.85);
  backdrop-filter: blur(10px);
  border: 1px solid rgb(var(--ink-rgb) / 0.15);
  color: rgb(var(--ink-rgb));
  display: flex;
  align-items: center;
  justify-content: center;
  cursor: pointer;
  transition: all 0.25s ease;
  box-shadow: 0 8px 20px rgba(0, 0, 0, 0.4);
}

.simulator-nav-btn:hover {
  background: var(--primary-cyan);
  color: #060B18;
  border-color: var(--primary-cyan);
  transform: scale(1.1);
  box-shadow: 0 0 25px rgba(0, 184, 255, 0.5);
}

.simulator-nav-btn:active {
  transform: scale(0.95);
}

/* Interactive Screen Tabs */
.screen-tab-pill {
  padding: 0.5rem 1rem;
  border-radius: 9999px;
  font-size: 0.75rem;
  font-weight: 600;
  font-family: var(--font-accent);
  transition: all 0.25s cubic-bezier(0.16, 1, 0.3, 1);
  display: inline-flex;
  align-items: center;
  gap: 0.5rem;
  cursor: pointer;
  user-select: none;
  background: rgb(var(--ink-rgb) / 0.05);
  border: 1px solid rgb(var(--ink-rgb) / 0.1);
  color: rgb(var(--ink-mute-rgb));
}

.screen-tab-pill:hover {
  background: rgb(var(--ink-rgb) / 0.1);
  color: rgb(var(--ink-rgb));
  border-color: rgba(0, 184, 255, 0.4);
}

.screen-tab-pill.active {
  background: linear-gradient(135deg, rgba(0, 184, 255, 0.2) 0%, rgba(58, 227, 116, 0.15) 100%);
  border-color: #00B8FF;
  color: #00B8FF;
  box-shadow: 0 0 20px rgba(0, 184, 255, 0.25);
  transform: scale(1.04);
}

/* "SEE ZEKY THINKING" Microphone Trigger Engine */
.mic-trigger-btn {
  width: 64px;
  height: 64px;
  border-radius: 50%;
  background: linear-gradient(135deg, #00B8FF 0%, #3AE374 100%);
  color: #060B18;
  display: flex;
  align-items: center;
  justify-content: center;
  box-shadow: 0 0 30px rgba(0, 184, 255, 0.4);
  cursor: pointer;
  transition: transform 0.3s cubic-bezier(0.16, 1, 0.3, 1), box-shadow 0.3s ease;
  position: relative;
}

.mic-trigger-btn:hover {
  transform: scale(1.1);
  box-shadow: 0 0 45px rgba(58, 227, 116, 0.6);
}

.mic-trigger-btn::after {
  content: "";
  position: absolute;
  inset: -6px;
  border-radius: 50%;
  border: 2px solid rgba(0, 184, 255, 0.4);
  animation: pulseRing 2s infinite;
}

@keyframes pulseRing {
  0% { transform: scale(1); opacity: 0.8; }
  100% { transform: scale(1.4); opacity: 0; }
}

.thinking-terminal {
  background: rgb(var(--surface-1-rgb) / 0.95);
  border: 1px solid rgba(0, 184, 255, 0.25);
  border-radius: 1.75rem;
  box-shadow: 0 25px 60px -15px rgba(0, 184, 255, 0.2);
  overflow: hidden;
}

.thinking-cursor {
  display: inline-block;
  width: 8px;
  height: 18px;
  background: var(--primary-cyan);
  margin-left: 4px;
  margin-right: 4px;
  animation: blink 0.8s infinite;
  vertical-align: middle;
}

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

.progress-bar-fill {
  height: 100%;
  background: linear-gradient(90deg, #00B8FF 0%, #3AE374 100%);
  width: 0%;
  transition: width 0.4s ease;
  border-radius: 9999px;
}

.soundwave-bar {
  width: 4px;
  height: 14px;
  background: var(--primary-cyan);
  border-radius: 2px;
  animation: soundwave 1s ease-in-out infinite alternate;
}

.soundwave-bar:nth-child(2) { animation-delay: 0.15s; height: 26px; background: var(--primary-green); }
.soundwave-bar:nth-child(3) { animation-delay: 0.35s; height: 36px; }
.soundwave-bar:nth-child(4) { animation-delay: 0.2s; height: 22px; background: var(--primary-green); }
.soundwave-bar:nth-child(5) { animation-delay: 0.4s; height: 16px; }

@keyframes soundwave {
  0% { transform: scaleY(0.4); }
  100% { transform: scaleY(1.2); }
}

/* Lightbox Modal */
.lightbox-modal {
  position: fixed;
  inset: 0;
  background: rgba(6, 11, 24, 0.95);
  backdrop-filter: blur(20px);
  -webkit-backdrop-filter: blur(20px);
  z-index: 100;
  display: flex;
  align-items: center;
  justify-content: center;
  opacity: 0;
  pointer-events: none;
  transition: opacity 0.3s ease;
}

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

.lightbox-content {
  max-width: 92vw;
  max-height: 88vh;
  transform: scale(0.95);
  transition: transform 0.3s cubic-bezier(0.16, 1, 0.3, 1);
  box-shadow: 0 25px 60px rgba(0, 0, 0, 0.9), 0 0 50px rgba(0, 184, 255, 0.3);
}

.lightbox-modal.active .lightbox-content {
  transform: scale(1);
}

/* QR Code Cards */
.qr-card {
  position: relative;
  background: rgb(var(--surface-2-rgb) / 0.85);
  backdrop-filter: blur(12px);
  border: 1px solid rgb(var(--ink-rgb) / 0.08);
  border-radius: 1.5rem;
  padding: 1.75rem;
  transition: transform 0.3s ease, border-color 0.3s ease, box-shadow 0.3s ease;
}

.qr-card:hover {
  border-color: var(--primary-cyan);
  box-shadow: 0 0 30px rgba(0, 184, 255, 0.25);
  transform: translateY(-4px);
}

.qr-box {
  background: #FFFFFF;
  padding: 10px;
  border-radius: 1rem;
  transition: transform 0.3s ease;
}

.qr-card:hover .qr-box {
  transform: scale(1.04);
}

/* Glow Blobs */
.aurora-blob {
  position: absolute;
  filter: blur(100px);
  border-radius: 50%;
  opacity: 0.22;
  pointer-events: none;
  z-index: 0;
}

.aurora-cyan { background: #00B8FF; }
.aurora-green { background: #3AE374; }

html:not(.dark) .aurora-blob {
  opacity: 0.14;
}

.reveal-up {
  will-change: transform, opacity;
}

/* Theme Switcher Icon Swap */
.theme-switcher-btn .icon-sun { display: none; }
.theme-switcher-btn .icon-moon { display: inline-flex; }
html:not(.dark) .theme-switcher-btn .icon-sun { display: inline-flex; }
html:not(.dark) .theme-switcher-btn .icon-moon { display: none; }

/* Mobile Menu Toggle Icon Swap (menu <-> close) */
#mobile-menu-btn.is-open .icon-menu-open { display: none; }
#mobile-menu-btn.is-open .icon-menu-close { display: inline-flex; }

/* Mobile Nav Dropdown: near-opaque so hero content doesn't ghost through the links */
#mobile-menu {
  background: rgb(var(--surface-nav-rgb) / 0.98);
  box-shadow: 0 20px 40px rgba(0, 0, 0, 0.35);
}
