/* Glimeo — Premium dark studio landing 
   Designed as if by a 30-year expert: cinematic dark (deep canvas makes video pop), 
   exquisite layered glassmorphism, optical typography/spacing, buttery restrained motion, 
   high-fidelity visuals, micro-details (reflections, noise, magnetic hovers).
   Adapted from CloudAxis patterns (glass, shot-frame, tilt, marquee, reveals, bento) 
   + Glimeo specs (producer workflow visible, violet/magenta on dark slate).
*/
:root {
  /* Core dark cinematic palette (refined from specs + current) */
  --gl-canvas: #0A0A0F;
  --gl-bg-mesh: #0f0f15;
  --gl-surface: #121217;
  --gl-surface-2: #1A1A22;
  --gl-surface-elevated: #202028;
  --gl-surface-glass: rgba(18, 18, 23, 0.72);
  --gl-surface-glass-elev: rgba(22, 22, 28, 0.82);
  --gl-indigo: #4338CA;
  --gl-violet: #7C3AED;
  --gl-accent: #C026D3;
  --gl-accent-2: #E879F9;
  --gl-text: #F4F4F5;
  --gl-text-muted: #A1A1AA;
  --gl-border: rgba(255,255,255,0.07);
  --gl-border-strong: rgba(255,255,255,0.12);
  --gl-accent-pop: rgba(192, 38, 211, 0.12);

  /* Expert tokens: spacing (modular 8pt+), radii, easings, type */
  --gl-space-1: 0.25rem;
  --gl-space-2: 0.5rem;
  --gl-space-3: 0.75rem;
  --gl-space-4: 1rem;
  --gl-space-5: 1.5rem;
  --gl-space-6: 2rem;
  --gl-space-8: 3rem;
  --gl-radius: 14px;
  --gl-radius-lg: 22px;
  --gl-radius-xl: 28px;
  --gl-radius-pill: 999px;
  --gl-font: "Inter", system-ui, -apple-system, BlinkMacSystemFont, "Segoe UI", sans-serif;
  --gl-display-font: "Inter", system-ui, -apple-system, BlinkMacSystemFont, "Segoe UI", sans-serif; /* TODO: swap to Satoshi/Geist for headlines */
  --gl-max: 1180px;

  /* Layered depth (CloudAxis-inspired multi-shadow + glow) */
  --gl-shadow: 0 12px 48px -12px rgba(0,0,0,0.65), 0 4px 12px -2px rgba(0,0,0,0.4);
  --gl-shadow-soft: 0 4px 24px -6px rgba(0,0,0,0.35);
  --gl-glow: 0 0 0 1px var(--gl-accent-pop) inset, 0 0 40px -8px rgba(192,38,211,0.25);
  --gl-glass-highlight: inset 0 1px 0 rgba(255,255,255,0.08);

  /* Premium motion */
  --gl-ease-out: cubic-bezier(0.22, 1, 0.36, 1);
  --gl-ease-spring: cubic-bezier(0.34, 1.2, 0.64, 1);
  --gl-duration-fast: 150ms;
  --gl-duration-med: 250ms;
  --gl-duration-slow: 400ms;

  /* Fluid expert typography */
  --gl-display-sm: clamp(1.75rem, 3.5vw, 2.35rem);
  --gl-display-md: clamp(2.15rem, 5vw, 3.35rem);
  --gl-display-lg: clamp(2.5rem, 6vw, 4.25rem);
  --gl-display-xl: clamp(3rem, 7.5vw, 5rem);
}

/* Reusable expert premium-dark utilities (adapted from CloudAxis) */
.glass {
  background: var(--gl-surface-glass-elev);
  backdrop-filter: blur(18px);
  -webkit-backdrop-filter: blur(18px);
  border: 1px solid var(--gl-border);
  box-shadow: var(--gl-glass-highlight), var(--gl-shadow);
}
.glass-elev {
  background: var(--gl-surface-glass-elev);
  backdrop-filter: blur(24px);
  -webkit-backdrop-filter: blur(24px);
}
.glow {
  box-shadow: var(--gl-glow);
}
.section-tint {
  background:
    radial-gradient(ellipse 70% 55% at 50% 0%, rgba(124,58,237,0.08), transparent 62%),
    linear-gradient(180deg, var(--gl-bg-mesh) 0%, var(--gl-canvas) 100%);
  position: relative;
}

/* Subtle premium grain + vignette (CloudAxis-style, expert restraint) */
body {
  margin: 0;
  min-height: 100vh;
  font-family: var(--gl-font);
  font-size: 1.0625rem;
  line-height: 1.65;
  color: var(--gl-text);
  background: var(--gl-canvas);
  -webkit-font-smoothing: antialiased;
  position: relative;
}
body::before {
  content: "";
  position: fixed;
  inset: 0;
  background-image: 
    radial-gradient(circle at 25% 25%, rgba(255,255,255,0.012) 1px, transparent 1px),
    radial-gradient(circle at 75% 75%, rgba(255,255,255,0.008) 1px, transparent 1px);
  background-size: 3px 3px;
  pointer-events: none;
  z-index: 0;
  mix-blend-mode: screen;
}

h1, h2, h3, h4 {
  line-height: 1.1;
  letter-spacing: -0.03em;
}

a {
  color: var(--gl-accent-2);
  text-decoration-thickness: 1.5px;
  text-underline-offset: 0.2em;
  transition: color 0.15s ease;
}

a:hover { color: #ddd6fe; }

*, *::before, *::after { box-sizing: border-box; }

html { scroll-behavior: smooth; }

@media (prefers-reduced-motion: reduce) {
  html { scroll-behavior: auto; }
}

body {
  margin: 0;
  min-height: 100vh;
  font-family: var(--gl-font);
  font-size: 1.05rem;
  line-height: 1.65;
  color: var(--gl-text);
  background: var(--gl-canvas);
  -webkit-font-smoothing: antialiased;
}

h1, h2, h3, h4 {
  line-height: 1.15;
  letter-spacing: -0.025em;
}

a {
  color: var(--gl-accent-2);
  text-decoration-thickness: 1.5px;
  text-underline-offset: 0.2em;
  transition: color 0.15s ease;
}

a:hover { color: #ddd6fe; }

.wrap {
  width: min(var(--gl-max), 92vw);
  margin-inline: auto;
  padding-inline: 1rem;
}

/* Skip link */
.skip-link {
  position: absolute;
  left: -9999px;
  top: 0.5rem;
  padding: 0.6rem 1.1rem;
  background: var(--gl-accent);
  color: white;
  font-weight: 700;
  border-radius: 8px;
  z-index: 300;
  text-decoration: none;
}
.skip-link:focus { left: 1rem; }

/* Header - sticky glass */
.site-header {
  position: sticky;
  top: 0;
  z-index: 100;
  background: rgba(15, 15, 20, 0.85);
  backdrop-filter: blur(16px);
  -webkit-backdrop-filter: blur(16px);
  border-bottom: 1px solid var(--gl-border);
  transition: background 0.2s ease;
}

.site-header.scrolled {
  background: rgba(15, 15, 20, 0.95);
}

.nav-inner {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 1rem;
  padding: 0.9rem 0;
  min-height: 4.25rem;
}

.nav-brand {
  display: flex;
  align-items: center;
  gap: 0.55rem;
  color: var(--gl-text);
  text-decoration: none;
  font-weight: 800;
  font-size: 1.25rem;
  letter-spacing: -0.02em;
}

.nav-brand img {
  width: 34px;
  height: 34px;
}

.nav-links {
  display: none;
  gap: 1.5rem;
  align-items: center;
}

.nav-links a {
  color: var(--gl-muted);
  text-decoration: none;
  font-weight: 600;
  font-size: 0.925rem;
}

.nav-links a:hover,
.nav-links a[aria-current="page"] {
  color: var(--gl-text);
}

.nav-actions {
  display: none;
  gap: 0.6rem;
  align-items: center;
}

.nav-menu-toggle {
  display: flex;
  align-items: center;
  justify-content: center;
  width: 2.6rem;
  height: 2.6rem;
  border: 1px solid var(--gl-border);
  border-radius: 10px;
  background: var(--gl-surface);
  color: var(--gl-text);
  cursor: pointer;
}

.nav-menu-toggle__bars {
  display: flex;
  flex-direction: column;
  gap: 4px;
}

.nav-menu-toggle__bars span {
  display: block;
  width: 18px;
  height: 2px;
  background: currentColor;
  border-radius: 1px;
}

.nav-drawer-backdrop {
  display: none;
  position: fixed;
  inset: 0;
  background: rgba(0, 0, 0, 0.6);
  z-index: 60;
  backdrop-filter: blur(4px);
}

.nav-drawer {
  position: fixed;
  top: 0;
  right: 0;
  width: min(320px, 88vw);
  height: 100vh;
  background: var(--gl-surface);
  border-left: 1px solid var(--gl-border);
  z-index: 70;
  transform: translateX(100%);
  transition: transform 0.25s cubic-bezier(0.32, 0.72, 0, 1);
  padding: 1.5rem;
  overflow-y: auto;
}

.nav-drawer__inner {
  display: flex;
  flex-direction: column;
  gap: 0.85rem;
  margin-top: 3rem;
}

.nav-drawer__inner a {
  color: var(--gl-text);
  text-decoration: none;
  font-weight: 600;
  padding: 0.4rem 0;
  font-size: 1.05rem;
}

body.nav-open .nav-drawer-backdrop { display: block; }
body.nav-open .nav-drawer { transform: translateX(0); }

@media (min-width: 920px) {
  .nav-links, .nav-actions { display: flex; }
  .nav-menu-toggle { display: none; }
}

/* Buttons */
.btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 0.4rem;
  padding: 0.65rem 1.35rem;
  border-radius: var(--gl-radius-pill);
  font-weight: 700;
  font-size: 0.925rem;
  text-decoration: none;
  border: none;
  cursor: pointer;
  transition: transform 0.15s cubic-bezier(0.23, 1, 0.32, 1), 
              box-shadow 0.15s ease, 
              opacity 0.15s;
  white-space: nowrap;
}

.btn:hover {
  text-decoration: none;
  transform: translateY(-1px);
}

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

.btn-primary {
  background: linear-gradient(135deg, var(--gl-indigo), var(--gl-violet));
  color: white;
  box-shadow: 0 4px 14px -2px rgba(124, 58, 237, 0.35);
}

.btn-primary:hover {
  box-shadow: 0 6px 20px -2px rgba(124, 58, 237, 0.45);
  color: white;
}

.btn-ghost {
  background: transparent;
  color: var(--gl-text);
  border: 1px solid var(--gl-border-strong);
}

.btn-ghost:hover {
  background: rgba(255,255,255,0.03);
  border-color: rgba(255,255,255,0.2);
  color: var(--gl-text);
}

.btn-accent {
  background: linear-gradient(135deg, var(--gl-accent), #E879F9);
  color: #0F0F14;
  font-weight: 800;
  box-shadow: 0 4px 16px -2px rgba(192, 38, 211, 0.4);
}

.btn-accent:hover {
  color: #0F0F14;
  box-shadow: 0 8px 24px -2px rgba(192, 38, 211, 0.5);
}

/* HERO - Cinematic premium (CloudAxis inspired, dark Glimeo palette) */
.hero-cinematic {
  position: relative;
  padding: 3.25rem 0 3rem;
  overflow: hidden;
  border-bottom: 1px solid var(--gl-border);
}

.hero-ambient {
  position: absolute;
  inset: 0;
  background: 
    radial-gradient(ellipse 120% 70% at 50% -30%, rgba(67,56,202,0.18), transparent 70%),
    radial-gradient(ellipse 80% 60% at 70% 120%, rgba(192,38,211,0.12), transparent 70%);
  pointer-events: none;
}

.hero-layout {
  display: grid;
  grid-template-columns: 1fr 1.08fr;
  gap: 2.75rem;
  align-items: center;
}

@media (max-width: 860px) {
  .hero-layout {
    grid-template-columns: 1fr;
    gap: 1.75rem;
  }
  .hero-copy h1 { font-size: clamp(1.85rem, 7vw, 2.5rem); }
}

.hero-copy {
  position: relative;
  z-index: 2;
}

/* Style for the deploy test banner to make it stand out even more */
.hero-copy > div[style*="background:#c00"] {
  box-shadow: 0 4px 12px rgba(200,0,0,0.5);
  border: 2px solid #ff0;
}

.hero-kicker {
  display: inline-flex;
  align-items: center;
  gap: 0.5rem;
  font-size: 0.75rem;
  font-weight: 700;
  letter-spacing: 0.08em;
  text-transform: uppercase;
  color: var(--gl-accent);
  margin-bottom: 0.85rem;
}

.hero-copy h1 {
  font-size: clamp(2.05rem, 5vw, 3.05rem);
  font-weight: 800;
  line-height: 1.05;
  margin: 0 0 1rem;
  max-width: 16ch;
}

.accent-gradient {
  background: linear-gradient(90deg, var(--gl-indigo), var(--gl-violet), var(--gl-accent));
  -webkit-background-clip: text;
  -webkit-text-fill-color: transparent;
  background-size: 200% 100%;
}

.hero-copy .lead {
  font-size: 1.08rem;
  color: var(--gl-muted);
  max-width: 37ch;
  margin-bottom: 1.1rem;
  line-height: 1.55;
}

.hero-ctas {
  display: flex;
  gap: 0.7rem;
  margin-bottom: 1rem;
}

.btn-lg {
  padding: 0.72rem 1.55rem;
  font-size: 0.98rem;
}

.hero-proof {
  display: flex;
  gap: 1.1rem;
  flex-wrap: wrap;
  font-size: 0.82rem;
  color: var(--gl-muted);
  margin-bottom: 0.5rem;
}

.hero-proof .proof-item {
  white-space: nowrap;
}

.hero-note {
  font-size: 0.78rem;
  color: var(--gl-muted);
  opacity: 0.8;
}

/* Rich premium hero visual - shot frame + advanced player (CloudAxis level) */
.hero-visual {
  position: relative;
}

.shot-frame {
  position: relative;
  border-radius: var(--gl-radius-lg);
  background: #0D0D12;
  border: 1px solid var(--gl-border-strong);
  box-shadow: var(--gl-shadow), 0 0 0 1px rgba(255,255,255,0.02) inset;
  overflow: hidden;
  transition: transform 0.2s ease, box-shadow 0.2s ease;
  transform: var(--gl-shot-tilt, none);
  will-change: transform;
}

.shot-frame:hover {
  box-shadow: var(--gl-glow), 0 30px 70px -20px rgba(0,0,0,0.7);
}

/* 3D tilt support (CloudAxis pattern, expert micro-interaction) */
.shot-frame[data-shot-tilt] {
  transform-style: preserve-3d;
}

:root {
  --shot-rx: 0deg;
  --shot-ry: 0deg;
}
.shot-frame[data-shot-tilt] {
  --gl-shot-tilt: perspective(1600px) rotateX(var(--shot-rx)) rotateY(var(--shot-ry));
}

.shot-frame__glow {
  position: absolute;
  inset: -40%;
  background: radial-gradient(circle at 30% 20%, rgba(124,58,237,0.15), transparent 60%);
  pointer-events: none;
  z-index: 0;
}

.shot-frame__shell {
  position: relative;
  z-index: 1;
}

.shot-frame__chrome {
  height: 36px;
  background: rgba(0,0,0,0.75);
  display: flex;
  align-items: center;
  padding: 0 12px;
  gap: 10px;
  font-size: 0.72rem;
  color: var(--gl-muted);
  border-bottom: 1px solid var(--gl-border);
}

.shot-frame__traffic {
  display: flex;
  gap: 5px;
}

.shot-frame__traffic span {
  width: 9px;
  height: 9px;
  border-radius: 50%;
}

.shot-frame__traffic .r { background: #ff5f56; }
.shot-frame__traffic .y { background: #ffbd2e; }
.shot-frame__traffic .g { background: #27c93f; }

.shot-frame__url {
  font-weight: 600;
  flex: 1;
}

.shot-frame__status {
  font-size: 0.65rem;
  padding: 1px 7px;
  border-radius: 999px;
  background: rgba(34,197,94,0.15);
  color: #22c55e;
  border: 1px solid rgba(34,197,94,0.3);
}

.shot-frame__viewport {
  position: relative;
  background: #111114;
  aspect-ratio: 16 / 9.4;
  box-shadow: inset 0 0 0 1px rgba(255,255,255,0.05);
}

.glimeo-player {
  position: absolute;
  inset: 0;
  background: #1a1a22;
  overflow: hidden;
}

.player-scene {
  position: absolute;
  inset: 8px;
  border-radius: 6px;
  background: linear-gradient(145deg, #222229, #18181f);
  border: 1px solid rgba(255,255,255,0.06);
  transition: all 0.4s ease;
  box-shadow: 0 4px 20px -5px rgba(0,0,0,0.5);
}

.player-scene.playing {
  box-shadow: 0 0 0 1px rgba(192,38,211,0.3), 0 8px 30px -5px rgba(0,0,0,0.6);
  animation: subtle-pulse 1.5s infinite ease-in-out;
}

@keyframes subtle-pulse {
  0%, 100% { transform: scale(1); }
  50% { transform: scale(1.005); }
}

.scene-browser {
  position: absolute;
  inset: 4px;
  border-radius: 4px;
  background: #0f0f14;
  overflow: hidden;
}

.browser-header {
  height: 18px;
  background: #1f1f26;
  border-bottom: 1px solid rgba(255,255,255,0.08);
}

.browser-content {
  padding: 14px 12px;
  color: #ccc;
  font-size: 0.78rem;
  line-height: 1.35;
  transition: all 0.4s ease;
  position: relative;
  min-height: 92px;
}

/* Make the mock browser content look like a real product UI (not plain text) */
.browser-content .scene-content-hook {
  font-size: 0.9rem;
  font-weight: 600;
  color: #eee;
  margin-bottom: 8px;
}

.browser-header {
  height: 20px;
  background: #25252c;
  display: flex;
  align-items: center;
  padding: 0 6px;
  gap: 3px;
}

.browser-dot {
  width: 5px;
  height: 5px;
  border-radius: 50%;
  background: #555;
}

.fake-ui-elements {
  display: flex;
  align-items: center;
  gap: 8px;
}

.fake-button {
  padding: 3px 8px;
  font-size: 0.6rem;
  border-radius: 3px;
  background: var(--gl-surface-2);
  color: #aaa;
  border: 1px solid rgba(255,255,255,0.1);
}

.fake-button.primary {
  background: var(--gl-accent);
  color: #0A0A0F;
  border: none;
  font-weight: 600;
}

.fake-progress {
  flex: 1;
  height: 4px;
  background: rgba(255,255,255,0.1);
  border-radius: 2px;
  overflow: hidden;
}

.fake-progress .bar {
  height: 100%;
  width: 65%;
  background: linear-gradient(to right, var(--gl-violet), var(--gl-accent));
  animation: progress-anim 2s infinite ease-in-out;
}

@keyframes progress-anim {
  0% { width: 20%; }
  50% { width: 80%; }
  100% { width: 20%; }
}

.scene-overlay {
  position: absolute;
  top: 8px;
  right: 8px;
  background: rgba(0,0,0,0.6);
  padding: 2px 9px;
  border-radius: 4px;
  font-size: 0.68rem;
  border: 1px solid var(--gl-border);
}

.player-captions {
  position: absolute;
  bottom: 42px;
  left: 12px;
  right: 12px;
  background: rgba(0,0,0,0.7);
  padding: 4px 10px;
  border-radius: 3px;
  font-size: 0.72rem;
  color: #eee;
  text-align: center;
  backdrop-filter: blur(4px);
}

.player-timeline {
  position: absolute;
  bottom: 8px;
  left: 12px;
  right: 12px;
  height: 4px;
  background: rgba(255,255,255,0.15);
  border-radius: 999px;
  cursor: pointer;
}

.timeline-progress {
  height: 100%;
  background: linear-gradient(to right, var(--gl-violet), var(--gl-accent));
  border-radius: 999px;
  width: 0%;
  position: relative;
  transition: width 60ms linear;
}

.timeline-scrub {
  position: absolute;
  top: 50%;
  width: 10px;
  height: 10px;
  background: white;
  border-radius: 50%;
  transform: translate(-50%, -50%);
  box-shadow: 0 1px 4px rgba(0,0,0,0.5);
  left: 0;
  pointer-events: none;
}

.narrator-pip.glass {
  position: absolute;
  bottom: 10px;
  right: 10px;
  display: flex;
  align-items: center;
  gap: 8px;
  padding: 6px 10px;
  background: rgba(18,18,23,0.55);
  backdrop-filter: blur(18px);
  -webkit-backdrop-filter: blur(18px);
  border: 1px solid rgba(192,38,211,0.25);
  border-radius: 999px;
  font-size: 0.72rem;
  box-shadow: 0 4px 20px -4px rgba(0,0,0,0.5), var(--gl-glow);
}

.pip-avatar {
  width: 26px;
  height: 26px;
  border-radius: 50%;
  background: linear-gradient(135deg, var(--gl-violet), var(--gl-accent));
}

.pip-info {
  display: flex;
  align-items: center;
  gap: 6px;
}

.pip-name {
  font-weight: 600;
  font-size: 0.7rem;
}

.pip-waveform {
  display: flex;
  align-items: center;
  gap: 1.5px;
  height: 14px;
}

.pip-waveform span {
  width: 2.5px;
  background: var(--gl-accent);
  border-radius: 2px;
  height: 3px;
}

.pip-waveform.playing span {
  animation: waveform 700ms infinite ease-in-out;
}

.pip-waveform span:nth-child(2) { animation-delay: 90ms; }
.pip-waveform span:nth-child(3) { animation-delay: 180ms; }

.pip-status {
  font-size: 0.65rem;
  color: #22c55e;
  margin-left: 4px;
}

.shot-frame__controls {
  height: 32px;
  background: rgba(0,0,0,0.65);
  display: flex;
  align-items: center;
  padding: 0 8px;
  gap: 8px;
  font-size: 0.68rem;
  border-top: 1px solid var(--gl-border);
  backdrop-filter: blur(8px);
}

.player-btn {
  width: 22px;
  height: 22px;
  border-radius: 50%;
  background: var(--gl-accent);
  color: #0A0A0F;
  border: none;
  font-size: 10px;
  cursor: pointer;
  display: flex;
  align-items: center;
  justify-content: center;
  font-weight: 800;
  transition: all 0.15s ease;
}

.player-btn:hover {
  transform: scale(1.1);
  background: var(--gl-accent-2);
}

.timecode {
  font-family: ui-monospace, monospace;
  color: var(--gl-muted);
}

.scene-chips {
  display: flex;
  gap: 3px;
  margin-left: 4px;
}

.chip {
  font-size: 0.6rem;
  padding: 1px 6px;
  border-radius: 999px;
  background: rgba(255,255,255,0.06);
  color: var(--gl-muted);
  cursor: pointer;
  transition: all 0.15s ease;
}

.chip:hover {
  background: rgba(255,255,255,0.12);
}

.chip.active {
  background: var(--gl-accent);
  color: #0A0A0F;
  font-weight: 600;
}

.export-hint {
  margin-left: auto;
  font-size: 0.65rem;
  padding: 2px 8px;
  border-radius: 4px;
  background: rgba(192,38,211,0.15);
  color: var(--gl-accent);
  border: 1px solid rgba(192,38,211,0.3);
  cursor: pointer;
  transition: all 0.15s ease;
}

.export-hint:hover {
  background: rgba(192,38,211,0.3);
}

.visual-caption {
  text-align: center;
  font-size: 0.72rem;
  color: var(--gl-muted);
  margin-top: 0.5rem;
}

.player-hint {
  position: absolute;
  top: 8px;
  left: 8px;
  font-size: 0.55rem;
  padding: 1px 5px;
  background: rgba(0,0,0,0.5);
  border-radius: 2px;
  color: var(--gl-muted);
  pointer-events: none;
  opacity: 0.7;
}

/* New advanced preview controls */
.preview-controls {
  display: flex;
  align-items: center;
  gap: 8px;
  padding: 2px 4px 0;
  font-size: 0.72rem;
}

.preview-play {
  width: 28px;
  height: 28px;
  border-radius: 50%;
  background: var(--gl-accent);
  color: #0F0F14;
  border: none;
  font-size: 11px;
  line-height: 1;
  cursor: pointer;
  display: flex;
  align-items: center;
  justify-content: center;
  font-weight: 700;
  transition: transform 0.15s ease, background 0.15s;
}

.preview-play:hover {
  transform: scale(1.1);
  background: #e879f9;
}

.preview-play.playing {
  background: #ddd;
}

.preview-progress {
  flex: 1;
  height: 5px;
  background: rgba(255,255,255,0.15);
  border-radius: 999px;
  position: relative;
  cursor: pointer;
}

.progress-bar {
  height: 100%;
  background: linear-gradient(to right, var(--gl-violet), var(--gl-accent));
  border-radius: 999px;
  width: 0%;
  transition: width 0.05s linear;
}

.progress-scrub {
  position: absolute;
  top: -3px;
  width: 11px;
  height: 11px;
  background: white;
  border-radius: 50%;
  box-shadow: 0 1px 3px rgba(0,0,0,0.4);
  transform: translateX(-50%);
  left: 0%;
  opacity: 0.9;
  pointer-events: none;
  z-index: 2;
}

.preview-time {
  font-family: ui-monospace, monospace;
  font-size: 0.68rem;
  color: #aaa;
  min-width: 58px;
  text-align: right;
}

.preview-presenter {
  height: 58px;
  background: rgba(15,15,20,0.85);
  border-radius: 8px;
  border: 1px solid var(--gl-border);
  display: flex;
  align-items: center;
  padding: 0 12px;
  gap: 10px;
  font-size: 0.82rem;
}

.presenter-avatar {
  width: 38px;
  height: 38px;
  border-radius: 50%;
  background: linear-gradient(135deg, var(--gl-violet), var(--gl-accent));
  flex-shrink: 0;
  transition: transform 0.2s ease;
}

.preview-presenter.playing .presenter-avatar {
  transform: scale(1.04);
  box-shadow: 0 0 0 2px rgba(192, 38, 211, 0.3);
}

/* Narration waveform */
.preview-waveform {
  display: flex;
  align-items: center;
  gap: 2px;
  height: 18px;
  margin-left: auto;
  padding-right: 4px;
}

.preview-waveform span {
  display: block;
  width: 3px;
  background: var(--gl-accent);
  border-radius: 2px;
  height: 4px;
  transition: height 0.1s ease;
}

.preview-waveform.playing span {
  animation: waveform 650ms infinite ease-in-out;
}

.preview-waveform span:nth-child(2) { animation-delay: 120ms; height: 9px; }
.preview-waveform span:nth-child(3) { animation-delay: 240ms; }
.preview-waveform span:nth-child(4) { animation-delay: 80ms; }

@keyframes waveform {
  0%, 100% { height: 4px; }
  50% { height: 15px; }
}

.presenter-info {
  flex: 1;
  min-width: 0;
}

.presenter-info .name {
  font-weight: 600;
  font-size: 0.875rem;
}

.presenter-info .status {
  font-size: 0.75rem;
  color: #22c55e;
}

.live-badge {
  position: absolute;
  top: 12px;
  right: 12px;
  background: rgba(0,0,0,0.65);
  color: #22c55e;
  font-size: 0.68rem;
  font-weight: 700;
  padding: 2px 9px;
  border-radius: 999px;
  border: 1px solid rgba(34, 197, 94, 0.3);
  display: flex;
  align-items: center;
  gap: 4px;
}

.live-badge::before {
  content: "";
  width: 6px;
  height: 6px;
  background: #22c55e;
  border-radius: 50%;
  animation: pulse 2s infinite;
}

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

/* Scroll reveals */
[data-reveal] {
  opacity: 0;
  transform: translateY(18px);
  transition: opacity 0.6s cubic-bezier(0.23, 1, 0.32, 1),
              transform 0.6s cubic-bezier(0.23, 1, 0.32, 1);
  will-change: opacity, transform;
}

[data-reveal].revealed {
  opacity: 1;
  transform: translateY(0);
}

@media (prefers-reduced-motion: reduce) {
  [data-reveal] { transition: none; opacity: 1; transform: none; }
}

/* Sections */
.section {
  padding: clamp(2.75rem, 6vw, 4.5rem) 0;
}

.section-alt { 
  background: linear-gradient(180deg, rgba(22,22,28,0.4), transparent);
}

.section-head {
  text-align: center;
  margin-bottom: 2.25rem;
}

.section-title {
  font-size: clamp(1.65rem, 3.6vw, 2.35rem);
  margin: 0 0 0.6rem;
  font-weight: 800;
}

.section-sub {
  color: var(--gl-muted);
  max-width: 52ch;
  margin: 0 auto;
  font-size: 1.05rem;
}

/* Problem */
.problem-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(240px, 1fr));
  gap: 1rem;
}

.problem-card {
  background: var(--gl-surface);
  border: 1px solid var(--gl-border);
  border-radius: var(--gl-radius);
  padding: 1.35rem;
}

/* Steps / How it works */
.steps {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(230px, 1fr));
  gap: 1.1rem;
}

.step {
  background: var(--gl-surface-glass);
  border: 1px solid var(--gl-border);
  border-radius: var(--gl-radius);
  padding: 1.5rem 1.35rem;
  position: relative;
  backdrop-filter: blur(10px);
  box-shadow: var(--gl-shadow);
  transition: transform 0.2s ease, border-color 0.2s, box-shadow 0.2s;
}

.step:hover {
  transform: translateY(-3px);
  border-color: rgba(124, 58, 237, 0.35);
  box-shadow: var(--gl-glow);
}

.step-num {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  width: 28px;
  height: 28px;
  border-radius: 999px;
  background: linear-gradient(135deg, var(--gl-indigo), var(--gl-violet));
  color: white;
  font-weight: 800;
  font-size: 0.8rem;
  margin-bottom: 1rem;
}

.step h3 { 
  margin: 0 0 0.45rem; 
  font-size: 1.08rem; 
}

.step p { 
  margin: 0; 
  color: var(--gl-muted); 
  font-size: 0.95rem; 
}

/* Cards */
.card-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(240px, 1fr));
  gap: 1.1rem;
}

.card {
  background: var(--gl-surface-glass);
  border: 1px solid var(--gl-border);
  border-radius: var(--gl-radius);
  padding: var(--gl-space-5) var(--gl-space-4);
  backdrop-filter: blur(14px);
  -webkit-backdrop-filter: blur(14px);
  box-shadow: var(--gl-shadow);
  transition: transform var(--gl-duration-med) var(--gl-ease-out), 
              border-color var(--gl-duration-fast), 
              box-shadow var(--gl-duration-med);
  position: relative;
}

.card::before {
  content: '';
  position: absolute;
  inset: 0;
  background: radial-gradient(circle at 50% 0%, var(--gl-accent-pop), transparent 70%);
  opacity: 0;
  transition: opacity var(--gl-duration-med);
  pointer-events: none;
  border-radius: inherit;
}

.card:hover {
  transform: translateY(-3px);
  border-color: var(--gl-accent);
  box-shadow: var(--gl-glow), 0 20px 50px -15px rgba(0,0,0,0.5);
}

.card:hover::before {
  opacity: 0.4;
}

.card h3 { 
  margin: 0 0 0.55rem; 
  font-size: 1.1rem; 
}

.card p { 
  margin: 0; 
  color: var(--gl-muted); 
  font-size: 0.95rem; 
}

/* Magenta glow variant */
.card.glow-accent:hover {
  box-shadow: 0 0 0 1px rgba(192, 38, 211, 0.2),
              0 12px 40px -10px rgba(192, 38, 211, 0.2);
}

/* Compare */
.compare {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(270px, 1fr));
  gap: 1rem;
}

.compare-col {
  padding: 1.6rem;
  border-radius: var(--gl-radius);
  border: 1px solid var(--gl-border);
}

.compare-col--muted { 
  background: var(--gl-surface); 
}

.compare-col--highlight {
  background: linear-gradient(160deg, rgba(124,58,237,0.12), rgba(192,38,211,0.06));
  border-color: rgba(124, 58, 237, 0.3);
}

/* Examples / Gallery */
.examples-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(210px, 1fr));
  gap: 1rem;
}

.example-card {
  position: relative;
  aspect-ratio: 16 / 9.5;
  background: #121216;
  border-radius: var(--gl-radius);
  overflow: hidden;
  border: 1px solid var(--gl-border);
  cursor: pointer;
  transition: transform 0.2s ease, border-color 0.2s;
}

.example-card:hover {
  transform: scale(1.01);
  border-color: var(--gl-accent);
}

.example-card::after {
  content: "▶ Preview";
  position: absolute;
  top: 50%;
  left: 50%;
  transform: translate(-50%, -50%);
  background: rgba(0,0,0,0.65);
  color: white;
  font-size: 0.75rem;
  padding: 3px 10px;
  border-radius: 4px;
  opacity: 0;
  transition: opacity 0.15s;
  pointer-events: none;
}

.example-card:hover::after {
  opacity: 0.9;
}

.example-visual {
  position: absolute;
  inset: 0;
  background: linear-gradient(145deg, #222229, #18181f);
  opacity: 0.6;
  transition: opacity 0.2s;
}

.example-card:hover .example-visual {
  opacity: 0.9;
}

.example-card .label {
  position: absolute;
  bottom: 0;
  left: 0;
  right: 0;
  padding: 0.9rem 1rem;
  background: linear-gradient(transparent, rgba(0,0,0,0.85));
  font-size: 0.9rem;
  font-weight: 600;
}

.example-badge {
  position: absolute;
  top: 10px;
  right: 10px;
  font-size: 0.7rem;
  padding: 1px 8px;
  border-radius: 999px;
  background: rgba(192,38,211,0.9);
  color: white;
  font-weight: 700;
}

/* Dual infinite marquee (expert CloudAxis-style for proof/integrations) */
.glimeo-marquee {
  overflow: hidden;
  white-space: nowrap;
  border-top: 1px solid var(--gl-border);
  border-bottom: 1px solid var(--gl-border);
  background: var(--gl-surface);
  padding: var(--gl-space-3) 0;
  margin: 1.5rem 0;
}

.marquee-inner {
  display: inline-flex;
  gap: 2.5rem;
  align-items: center;
  animation: glimeo-marquee 32s linear infinite;
  font-size: 0.85rem;
  color: var(--gl-muted);
  padding-inline: 1rem;
}

.glimeo-marquee:hover .marquee-inner {
  animation-play-state: paused;
}

@keyframes glimeo-marquee {
  from { transform: translateX(0); }
  to { transform: translateX(-50%); }
}

.marquee-item {
  display: inline-flex;
  align-items: center;
  gap: 0.5rem;
  padding: 0 0.4rem;
  transition: color var(--gl-duration-fast);
}

.marquee-item:hover {
  color: var(--gl-text);
}

.marquee-item .dot {
  width: 4px;
  height: 4px;
  background: var(--gl-accent);
  border-radius: 50%;
  box-shadow: 0 0 6px var(--gl-accent);
}

/* Use cases */
.use-case-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(230px, 1fr));
  gap: 1rem;
}

.use-case {
  background: var(--gl-surface-glass);
  border: 1px solid var(--gl-border);
  border-radius: var(--gl-radius);
  padding: 1.35rem;
  backdrop-filter: blur(10px);
  box-shadow: var(--gl-shadow);
}

.use-case h4 {
  margin: 0.25rem 0 0.5rem;
  font-size: 1.05rem;
}

/* Testimonials */
.testimonial-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(280px, 1fr));
  gap: 1.1rem;
}

.testimonial {
  background: var(--gl-surface);
  border: 1px solid var(--gl-border);
  border-radius: var(--gl-radius);
  padding: 1.5rem;
}

.testimonial .quote {
  font-size: 1.02rem;
  line-height: 1.5;
}

.testimonial .author {
  margin-top: 1rem;
  font-size: 0.9rem;
  color: var(--gl-muted);
}

.testimonial .author strong {
  color: var(--gl-text);
}

/* CTA band */
.cta-band {
  text-align: center;
  padding: 3.5rem 1rem;
  background: linear-gradient(180deg, transparent, rgba(124, 58, 237, 0.1));
  border-top: 1px solid var(--gl-border);
  border-bottom: 1px solid var(--gl-border);
}

.cta-band h2 {
  margin-bottom: 0.5rem;
}

/* Page inner styles */
.page-hero {
  padding: 2.8rem 0 1.75rem;
  border-bottom: 1px solid var(--gl-border);
}

.page-hero h1 { 
  margin: 0 0 0.35rem; 
  font-size: clamp(1.85rem, 4.2vw, 2.65rem); 
}

.page-hero .sub { 
  margin: 0; 
  color: var(--gl-muted); 
}

/* Prose for inner pages */
.prose {
  max-width: 52rem;
  padding: 2.25rem 0 3rem;
}

.prose h2 { margin: 2.1rem 0 0.75rem; font-size: 1.35rem; }
.prose h3 { margin: 1.6rem 0 0.5rem; font-size: 1.1rem; }
.prose p, .prose li { color: #c8c8d0; }
.prose ul, .prose ol { padding-left: 1.35rem; }

.pricing-box, .contact-block {
  background: var(--gl-surface);
  border: 1px solid var(--gl-border);
  border-radius: var(--gl-radius);
  padding: 1.75rem;
  margin: 1.5rem 0;
}

/* Blog */
.blog-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(290px, 1fr));
  gap: 1.35rem;
  padding: 2.25rem 0 3.5rem;
}

.blog-card {
  background: var(--gl-surface);
  border: 1px solid var(--gl-border);
  border-radius: var(--gl-radius);
  padding: 1.45rem;
  text-decoration: none;
  color: inherit;
  display: block;
  transition: all 0.2s cubic-bezier(0.23, 1, 0.32, 1);
}

.blog-card:hover {
  border-color: var(--gl-accent);
  transform: translateY(-3px);
  text-decoration: none;
  color: inherit;
}

.blog-card .date { 
  font-size: 0.8rem; 
  color: var(--gl-muted); 
  margin-bottom: 0.55rem; 
  font-weight: 600;
}

.blog-card h2 { 
  margin: 0 0 0.55rem; 
  font-size: 1.18rem; 
  color: var(--gl-text); 
}

.blog-card p { 
  margin: 0; 
  color: var(--gl-muted); 
  font-size: 0.95rem; 
}

/* Footer */
.site-footer {
  border-top: 1px solid var(--gl-border);
  padding: 2.75rem 0 1.75rem;
  margin-top: auto;
}

.footer-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(190px, 1fr));
  gap: 2.25rem;
  margin-bottom: 2.25rem;
}

.footer-brand { 
  font-weight: 800; 
  font-size: 1.15rem; 
  margin-bottom: 0.4rem; 
}

.footer-note { 
  color: var(--gl-muted); 
  font-size: 0.9rem; 
  margin: 0.2rem 0; 
}

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

.footer-links a {
  color: var(--gl-muted);
  text-decoration: none;
  font-size: 0.9rem;
}

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

.footer-copy {
  color: var(--gl-muted);
  font-size: 0.8rem;
  border-top: 1px solid var(--gl-border);
  padding-top: 1.35rem;
}

.footer-copy a { color: var(--gl-muted); }

/* Focus */
:focus-visible {
  outline: 2px solid var(--gl-accent-2);
  outline-offset: 3px;
}

/* Small utility */
.eyebrow {
  display: inline-block;
  font-size: 0.7rem;
  font-weight: 800;
  text-transform: uppercase;
  letter-spacing: 0.11em;
  color: var(--gl-accent);
  margin-bottom: 0.85rem;
  padding: 0.3rem 0.75rem;
  border-radius: 999px;
  background: rgba(192, 38, 211, 0.12);
  border: 1px solid rgba(192, 38, 211, 0.25);
}

.beta-steps {
  list-style: none;
  padding: 0;
  margin: 1.75rem auto 0;
  max-width: 38rem;
  display: grid;
  gap: 0.75rem;
}

.beta-steps.glass {
  background: var(--gl-surface-glass);
  backdrop-filter: blur(12px);
  border: 1px solid var(--gl-border);
  border-radius: var(--gl-radius);
  padding: 0.5rem 0.75rem;
}

.beta-steps li {
  padding: 0.95rem 1.1rem 0.95rem 3.1rem;
  position: relative;
  background: var(--gl-surface);
  border-radius: var(--gl-radius);
  border: 1px solid var(--gl-border);
}

.beta-steps li::before {
  content: counter(beta);
  counter-increment: beta;
  position: absolute;
  left: 1.1rem;
  top: 50%;
  transform: translateY(-50%);
  width: 1.65rem;
  height: 1.65rem;
  border-radius: 50%;
  background: linear-gradient(135deg, var(--gl-indigo), var(--gl-violet));
  color: white;
  font-size: 0.8rem;
  font-weight: 800;
  display: flex;
  align-items: center;
  justify-content: center;
}

/* Modal for examples */
.modal {
  position: fixed;
  inset: 0;
  background: rgba(0,0,0,0.85);
  z-index: 200;
  display: none;
  align-items: center;
  justify-content: center;
  padding: 1rem;
}

.modal.open { display: flex; }

.modal-content {
  background: var(--gl-surface);
  border-radius: var(--gl-radius-lg);
  width: 100%;
  max-width: 960px;
  overflow: hidden;
  border: 1px solid var(--gl-border);
}

.modal-header {
  padding: 0.9rem 1.25rem;
  border-bottom: 1px solid var(--gl-border);
  display: flex;
  align-items: center;
  justify-content: space-between;
}

.modal-body {
  padding: 1.25rem;
  display: grid;
  grid-template-columns: 1fr;
  gap: 1rem;
}

@media (min-width: 820px) {
  .modal-body {
    grid-template-columns: 1.15fr 1fr;
  }
}

.modal-close {
  background: none;
  border: none;
  color: var(--gl-muted);
  font-size: 1.5rem;
  cursor: pointer;
  line-height: 1;
}

.video-placeholder {
  aspect-ratio: 16 / 9;
  background: #111;
  border-radius: 10px;
  display: flex;
  align-items: center;
  justify-content: center;
  color: var(--gl-muted);
  font-size: 0.95rem;
  border: 1px solid var(--gl-border);
}
