/* ==========================================================================
   CAPTION BUNNY — MASTER DESIGN SYSTEM & STYLESHEET
   Brand Direction: Clean, Modern, Professional Light Aesthetic with Purple Accents
   Typography: Inter (-apple-system)
   Themes: Light Mode (Default) + Dark Mode (Toggleable)
   ========================================================================== */

/* --------------------------------------------------------------------------
   DESIGN TOKENS (LIGHT MODE DEFAULT)
   -------------------------------------------------------------------------- */
:root {
  /* Surface & Backgrounds */
  --bg-body: #ffffff;
  --bg-subtle: #f8fafc;
  --bg-card: #ffffff;
  --bg-card-hover: #ffffff;
  --bg-panel-top: #f1f5f9;
  --bg-video-canvas: radial-gradient(circle at center, #f8fafc 0%, #edf2f7 100%);
  --bg-cta-section: linear-gradient(135deg, #f5f3ff 0%, #fdf2f8 50%, #eff6ff 100%);
  --bg-badge-pill: #f5f3ff;

  /* Text & Typography */
  --text-heading: #0f172a;   /* Deep Navy Black */
  --text-body: #334155;      /* Slate Charcoal */
  --text-muted: #64748b;     /* Refined Neutral */
  --text-dim: #94a3b8;       /* Subtle tertiary */
  --text-inverse: #ffffff;

  /* Purple Primary Brand Accents */
  --purple: #7c3aed;
  --purple-hover: #6d28d9;
  --purple-active: #5b21b6;
  --purple-light: #f5f3ff;
  --purple-border: rgba(124, 58, 237, 0.18);
  --purple-glow: rgba(124, 58, 237, 0.16);

  /* Subtle Pink / Mascot Coral (Used with restraint) */
  --coral: #ff4f6d;
  --coral-soft: #fff1f3;

  /* Borders & Dividers */
  --border-subtle: rgba(15, 23, 42, 0.08);
  --border-card: rgba(15, 23, 42, 0.07);
  --border-hover: rgba(124, 58, 237, 0.35);

  /* Shadows */
  --shadow-sm: 0 1px 3px rgba(15, 23, 42, 0.04);
  --shadow-md: 0 4px 14px rgba(15, 23, 42, 0.06);
  --shadow-lg: 0 16px 36px -6px rgba(15, 23, 42, 0.08);
  --shadow-video: 0 20px 48px -10px rgba(15, 23, 42, 0.1), 0 0 0 1px rgba(15, 23, 42, 0.06);
  --shadow-button: 0 4px 14px rgba(124, 58, 237, 0.28);
  --shadow-play: 0 10px 25px -4px rgba(124, 58, 237, 0.25);

  /* Gradients */
  --gradient-accent: linear-gradient(135deg, #7c3aed 0%, #9333ea 50%, #ec4899 100%);
  --gradient-hero-bg: radial-gradient(ellipse 80% 50% at 50% -10%, rgba(124, 58, 237, 0.05) 0%, rgba(255, 255, 255, 0) 70%);

  /* Radii */
  --radius-sm: 8px;
  --radius-md: 14px;
  --radius-lg: 20px;
  --radius-xl: 28px;
  --radius-full: 9999px;

  /* Transitions */
  --transition: all 0.22s cubic-bezier(0.16, 1, 0.3, 1);
  --font-sans: 'Inter', -apple-system, BlinkMacSystemFont, "Segoe UI", Roboto, sans-serif;
}

/* --------------------------------------------------------------------------
   DARK THEME OVERRIDES (TOGGLEABLE)
   -------------------------------------------------------------------------- */
[data-theme="dark"] {
  --bg-body: #090d16;
  --bg-subtle: #0f1626;
  --bg-card: #131c31;
  --bg-card-hover: #18233c;
  --bg-panel-top: #151f36;
  --bg-video-canvas: radial-gradient(circle at center, #151f36 0%, #0d1424 100%);
  --bg-cta-section: linear-gradient(135deg, #121026 0%, #1a102b 50%, #0c1429 100%);
  --bg-badge-pill: rgba(124, 58, 237, 0.15);

  --text-heading: #ffffff;
  --text-body: #cbd5e1;
  --text-muted: #94a3b8;
  --text-dim: #64748b;

  --border-subtle: rgba(255, 255, 255, 0.08);
  --border-card: rgba(255, 255, 255, 0.07);
  --border-hover: rgba(168, 85, 247, 0.45);

  --shadow-sm: 0 1px 3px rgba(0, 0, 0, 0.3);
  --shadow-md: 0 4px 14px rgba(0, 0, 0, 0.4);
  --shadow-lg: 0 16px 36px -6px rgba(0, 0, 0, 0.5);
  --shadow-video: 0 20px 50px -10px rgba(0, 0, 0, 0.6), 0 0 0 1px rgba(255, 255, 255, 0.08);

  --gradient-hero-bg: radial-gradient(ellipse 80% 50% at 50% -10%, rgba(124, 58, 237, 0.15) 0%, rgba(9, 13, 22, 0) 70%);
}

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

html {
  scroll-behavior: smooth;
  color-scheme: light dark;
}

body {
  font-family: var(--font-sans);
  background-color: var(--bg-body);
  color: var(--text-body);
  line-height: 1.6;
  font-size: 16px;
  -webkit-font-smoothing: antialiased;
  -moz-osx-font-smoothing: grayscale;
  overflow-x: hidden;
  transition: background-color 0.25s ease, color 0.25s ease;
}

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

button {
  font-family: inherit;
  cursor: pointer;
  border: none;
  background: none;
}

ul, ol {
  list-style: none;
  margin: 0;
  padding: 0;
}

/* Containers */
.container {
  width: 100%;
  max-width: 1200px;
  margin: 0 auto;
  padding: 0 28px;
}

.container-narrow {
  max-width: 860px;
}

/* --------------------------------------------------------------------------
   BUTTONS & BADGES
   -------------------------------------------------------------------------- */
.btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 8px;
  font-size: 15px;
  font-weight: 600;
  padding: 11px 22px;
  border-radius: var(--radius-full);
  transition: var(--transition);
  white-space: nowrap;
  user-select: none;
}

.btn-primary {
  background: var(--purple);
  color: #ffffff !important;
  box-shadow: var(--shadow-button);
}

.btn-primary:hover {
  background: var(--purple-hover);
  transform: translateY(-1px);
  box-shadow: 0 6px 20px rgba(124, 58, 237, 0.38);
}

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

.btn-secondary {
  background: var(--bg-card);
  color: var(--text-heading);
  border: 1px solid var(--border-subtle);
  box-shadow: var(--shadow-sm);
}

.btn-secondary:hover {
  background: var(--bg-subtle);
  border-color: var(--border-hover);
  transform: translateY(-1px);
}

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

/* Theme Toggle Button */
.btn-theme-toggle {
  width: 38px;
  height: 38px;
  border-radius: 50%;
  display: flex;
  align-items: center;
  justify-content: center;
  background: var(--bg-subtle);
  border: 1px solid var(--border-subtle);
  color: var(--text-heading);
  font-size: 16px;
  transition: var(--transition);
}

.btn-theme-toggle:hover {
  background: var(--purple-light);
  border-color: var(--purple-border);
  color: var(--purple);
}

/* Badges */
.badge-pill {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  font-size: 13px;
  font-weight: 600;
  padding: 6px 14px;
  border-radius: var(--radius-full);
  background: var(--bg-badge-pill);
  color: var(--purple);
  border: 1px solid var(--purple-border);
}

.badge-dot {
  width: 6px;
  height: 6px;
  border-radius: 50%;
  background: var(--purple);
}

/* --------------------------------------------------------------------------
   STICKY NAVIGATION BAR
   -------------------------------------------------------------------------- */
.navbar {
  position: sticky;
  top: 0;
  z-index: 100;
  background: var(--bg-body);
  background: rgba(255, 255, 255, 0.94);
  backdrop-filter: blur(16px);
  -webkit-backdrop-filter: blur(16px);
  border-bottom: 1px solid var(--border-subtle);
  transition: var(--transition);
}

[data-theme="dark"] .navbar {
  background: rgba(9, 13, 22, 0.92);
}

.nav-container {
  display: flex;
  align-items: center;
  justify-content: space-between;
  height: 72px;
}

.nav-brand {
  display: flex;
  align-items: center;
  gap: 10px;
  flex-shrink: 0;
}

.nav-brand-logo {
  height: 34px;
  width: auto;
  display: block;
}

/* Dual Logo Light / Dark Mode Toggle */
.logo-dark {
  display: none !important;
}

.logo-light {
  display: block !important;
}

[data-theme="dark"] .logo-light {
  display: none !important;
}

[data-theme="dark"] .logo-dark {
  display: block !important;
}

/* Strict Desktop Navigation Flex Row */
.nav-menu {
  display: flex !important;
  flex-direction: row !important;
  align-items: center !important;
  gap: 32px !important;
  list-style: none !important;
  margin: 0 !important;
  padding: 0 !important;
}

.nav-menu li {
  list-style: none !important;
  margin: 0 !important;
  padding: 0 !important;
}

.nav-link {
  font-size: 14.5px;
  font-weight: 500;
  color: var(--text-body);
  text-decoration: none !important;
  transition: color 0.18s ease;
}

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

.nav-actions {
  display: flex;
  align-items: center;
  gap: 12px;
  flex-shrink: 0;
}

.mobile-toggle {
  display: none !important;
  background: none;
  border: none;
  padding: 6px;
  color: var(--text-heading);
}

/* --------------------------------------------------------------------------
   SECTION 1 — HERO / HOOK
   -------------------------------------------------------------------------- */
.hero {
  position: relative;
  padding: 76px 0 60px;
  text-align: center;
  background: var(--gradient-hero-bg);
}

.hero-content {
  max-width: 820px;
  margin: 0 auto 48px;
}

.hero-pill-wrap {
  margin-bottom: 24px;
}

.hero-title {
  font-size: 56px;
  line-height: 1.08;
  font-weight: 800;
  letter-spacing: -0.035em;
  color: var(--text-heading);
  margin-bottom: 20px;
}

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

.hero-subtitle {
  font-size: 21px;
  line-height: 1.45;
  color: var(--text-muted);
  max-width: 620px;
  margin: 0 auto 32px;
  font-weight: 400;
}

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

.hero-trust {
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 10px;
  font-size: 13.5px;
  font-weight: 500;
  color: var(--text-muted);
}

.hero-trust .dot {
  color: var(--text-dim);
}

.hero-video-wrapper {
  max-width: 1080px;
  margin: 0 auto;
}

/* --------------------------------------------------------------------------
   PREMIUM 16:9 VIDEO CONTAINER & PREMIERE WINDOW MOCKUP
   -------------------------------------------------------------------------- */
.cb-video-container {
  position: relative;
  width: 100%;
  aspect-ratio: 16 / 9;
  border-radius: var(--radius-lg);
  overflow: hidden;
  background: var(--bg-card);
  box-shadow: var(--shadow-video);
  border: 1px solid var(--border-subtle);
  display: flex;
  flex-direction: column;
  transition: var(--transition);
  user-select: none;
}

.cb-video-container:hover {
  box-shadow: 0 24px 54px -12px rgba(124, 58, 237, 0.16), 0 0 0 1px var(--purple-border);
  transform: translateY(-2px);
}

/* Window Mockup Header */
.cb-mockup-topbar {
  display: flex;
  align-items: center;
  justify-content: space-between;
  padding: 10px 16px;
  background: var(--bg-panel-top);
  border-bottom: 1px solid var(--border-subtle);
  flex-shrink: 0;
  z-index: 3;
}

.cb-mockup-dots {
  display: flex;
  gap: 7px;
}

.cb-dot {
  width: 10px;
  height: 10px;
  border-radius: 50%;
}
.cb-dot-red { background: #ef4444; }
.cb-dot-yellow { background: #f59e0b; }
.cb-dot-green { background: #10b981; }

.cb-mockup-title {
  font-size: 11.5px;
  font-weight: 600;
  color: var(--text-muted);
  display: flex;
  align-items: center;
  gap: 6px;
}

.cb-mockup-badge {
  font-size: 10px;
  font-weight: 700;
  text-transform: uppercase;
  letter-spacing: 0.05em;
  padding: 2px 7px;
  background: rgba(124, 58, 237, 0.1);
  color: var(--purple);
  border-radius: var(--radius-full);
}

/* Video Stage Area */
.cb-mockup-stage {
  position: relative;
  flex: 1;
  width: 100%;
  height: 100%;
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  padding: 24px;
  background: var(--bg-video-canvas);
  cursor: pointer;
  overflow: hidden;
}

.cb-watermark-bg {
  position: absolute;
  top: 50%;
  left: 50%;
  transform: translate(-50%, -50%);
  width: 260px;
  opacity: 0.05;
  pointer-events: none;
}

[data-theme="dark"] .cb-watermark-bg {
  opacity: 0.08;
  filter: invert(1);
}

.cb-play-circle {
  width: 64px;
  height: 64px;
  border-radius: 50%;
  background: #ffffff;
  box-shadow: var(--shadow-play);
  display: flex;
  align-items: center;
  justify-content: center;
  color: var(--purple);
  margin-bottom: 14px;
  transition: var(--transition);
  z-index: 2;
  border: 1px solid rgba(124, 58, 237, 0.15);
}

.cb-video-container:hover .cb-play-circle {
  transform: scale(1.1);
  background: var(--purple);
  color: #ffffff;
  box-shadow: 0 14px 28px rgba(124, 58, 237, 0.38);
}

.cb-play-circle svg {
  width: 24px;
  height: 24px;
  margin-left: 3px;
}

.cb-stage-meta {
  z-index: 2;
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 5px;
  text-align: center;
}

.cb-stage-label {
  font-size: 14px;
  font-weight: 700;
  color: var(--text-heading);
  letter-spacing: -0.01em;
}

.cb-stage-sub {
  font-size: 12px;
  font-weight: 500;
  color: var(--text-muted);
}

/* Real HTML5 Video Element (when video file is dropped in) */
.cb-video-element {
  position: absolute;
  inset: 0;
  width: 100%;
  height: 100%;
  object-fit: cover;
  display: block;
  z-index: 1;
}

/* --------------------------------------------------------------------------
   SECTION COMMON STYLES
   -------------------------------------------------------------------------- */
.section {
  padding: 96px 0;
  position: relative;
}

.section-alt {
  background: var(--bg-subtle);
}

.section-header {
  text-align: center;
  max-width: 680px;
  margin: 0 auto 60px;
}

.section-label {
  font-size: 13px;
  font-weight: 700;
  text-transform: uppercase;
  letter-spacing: 0.08em;
  color: var(--purple);
  margin-bottom: 12px;
}

.section-title {
  font-size: 38px;
  font-weight: 800;
  line-height: 1.18;
  letter-spacing: -0.03em;
  color: var(--text-heading);
  margin-bottom: 16px;
}

.section-subtitle {
  font-size: 17px;
  line-height: 1.5;
  color: var(--text-muted);
}

/* --------------------------------------------------------------------------
   SECTION 2 — FEATURES (Large Video -> Short Explanation Flow)
   -------------------------------------------------------------------------- */
.features-flow {
  display: flex;
  flex-direction: column;
  gap: 84px;
}

.feature-row {
  display: grid;
  grid-template-columns: 1.18fr 0.82fr;
  align-items: center;
  gap: 56px;
}

.feature-row.reverse {
  grid-template-columns: 0.82fr 1.18fr;
}

.feature-row.reverse .feature-video-col {
  order: 2;
}

.feature-row.reverse .feature-info-col {
  order: 1;
}

.feature-info-col {
  display: flex;
  flex-direction: column;
  gap: 16px;
}

.feature-step-num {
  font-size: 12px;
  font-weight: 800;
  letter-spacing: 0.08em;
  text-transform: uppercase;
  color: var(--purple);
}

.feature-heading {
  font-size: 28px;
  font-weight: 800;
  letter-spacing: -0.025em;
  color: var(--text-heading);
  line-height: 1.25;
}

.feature-desc {
  font-size: 16px;
  color: var(--text-body);
  line-height: 1.6;
}

.feature-bullets {
  list-style: none;
  display: flex;
  flex-direction: column;
  gap: 10px;
  margin-top: 6px;
}

.feature-bullet-item {
  display: flex;
  align-items: center;
  gap: 10px;
  font-size: 14.5px;
  font-weight: 500;
  color: var(--text-body);
}

.feature-bullet-icon {
  width: 18px;
  height: 18px;
  border-radius: 50%;
  background: var(--purple-light);
  color: var(--purple);
  display: flex;
  align-items: center;
  justify-content: center;
  flex-shrink: 0;
  font-size: 11px;
  font-weight: 700;
}

.pacing-comparison-tag {
  display: inline-flex;
  align-items: center;
  gap: 6px;
  font-size: 12px;
  padding: 4px 10px;
  border-radius: var(--radius-full);
  background: rgba(16, 185, 129, 0.1);
  color: #059669;
  font-weight: 600;
  margin-top: 6px;
  width: fit-content;
}

/* --------------------------------------------------------------------------
   SECTION 3 — HOW IT WORKS (Connected 4-Step Horizontal Workflow)
   -------------------------------------------------------------------------- */
.how-it-works-grid {
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  gap: 24px;
}

.how-step-card {
  display: flex;
  flex-direction: column;
  gap: 16px;
  background: var(--bg-card);
  border: 1px solid var(--border-card);
  border-radius: var(--radius-lg);
  padding: 16px;
  box-shadow: var(--shadow-sm);
  transition: var(--transition);
}

.how-step-card:hover {
  transform: translateY(-4px);
  box-shadow: var(--shadow-md);
  border-color: var(--purple-border);
}

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

.how-step-badge {
  font-size: 11px;
  font-weight: 800;
  letter-spacing: 0.05em;
  color: var(--purple);
  background: var(--purple-light);
  padding: 3px 8px;
  border-radius: var(--radius-full);
}

.how-step-title {
  font-size: 18px;
  font-weight: 700;
  color: var(--text-heading);
  letter-spacing: -0.015em;
}

.how-step-desc {
  font-size: 13.5px;
  color: var(--text-muted);
  line-height: 1.45;
}

/* --------------------------------------------------------------------------
   SECTION 4 — USE CASES (4 Built for Editors Cards)
   -------------------------------------------------------------------------- */
.use-cases-grid {
  display: grid;
  grid-template-columns: repeat(2, 1fr);
  gap: 32px;
}

.use-case-card {
  background: var(--bg-card);
  border: 1px solid var(--border-card);
  border-radius: var(--radius-xl);
  padding: 22px;
  box-shadow: var(--shadow-sm);
  display: flex;
  flex-direction: column;
  gap: 18px;
  transition: var(--transition);
}

.use-case-card:hover {
  transform: translateY(-3px);
  box-shadow: var(--shadow-lg);
  border-color: var(--purple-border);
}

.use-case-info {
  display: flex;
  flex-direction: column;
  gap: 6px;
}

.use-case-title {
  font-size: 20px;
  font-weight: 700;
  color: var(--text-heading);
  letter-spacing: -0.02em;
}

.use-case-desc {
  font-size: 14.5px;
  color: var(--text-muted);
}

/* --------------------------------------------------------------------------
   SECTION 5 — FAQ ACCORDION
   -------------------------------------------------------------------------- */
.faq-wrapper {
  max-width: 780px;
  margin: 0 auto;
  display: flex;
  flex-direction: column;
  gap: 12px;
}

.faq-item {
  background: var(--bg-card);
  border: 1px solid var(--border-card);
  border-radius: var(--radius-md);
  box-shadow: var(--shadow-sm);
  overflow: hidden;
  transition: var(--transition);
}

.faq-item:hover {
  border-color: var(--purple-border);
}

.faq-item.active {
  border-color: var(--purple);
  box-shadow: 0 4px 14px rgba(124, 58, 237, 0.08);
}

.faq-question-btn {
  width: 100%;
  padding: 20px 24px;
  display: flex;
  align-items: center;
  justify-content: space-between;
  text-align: left;
  font-size: 16px;
  font-weight: 600;
  color: var(--text-heading);
  gap: 16px;
}

.faq-toggle-icon {
  width: 24px;
  height: 24px;
  border-radius: 50%;
  background: var(--bg-subtle);
  display: flex;
  align-items: center;
  justify-content: center;
  color: var(--text-muted);
  flex-shrink: 0;
  transition: var(--transition);
  font-size: 14px;
}

.faq-item.active .faq-toggle-icon {
  background: var(--purple);
  color: #ffffff;
  transform: rotate(45deg);
}

.faq-answer {
  max-height: 0;
  overflow: hidden;
  transition: max-height 0.28s cubic-bezier(0.16, 1, 0.3, 1);
}

.faq-answer-content {
  padding: 0 24px 22px;
  font-size: 15px;
  line-height: 1.6;
  color: var(--text-body);
}

/* --------------------------------------------------------------------------
   SECTION 6 — GET STARTED (FINAL CTA)
   -------------------------------------------------------------------------- */
.cta-section {
  padding: 90px 0 110px;
  position: relative;
  background: var(--bg-cta-section);
  border-top: 1px solid var(--border-subtle);
  overflow: hidden;
}

.cta-box {
  max-width: 780px;
  margin: 0 auto;
  text-align: center;
  position: relative;
  z-index: 2;
}

.cta-mascot-visual {
  width: 72px;
  height: 72px;
  margin: 0 auto 20px;
  display: block;
  filter: drop-shadow(0 8px 16px rgba(124, 58, 237, 0.16));
  animation: floatMascot 4s ease-in-out infinite;
}

@keyframes floatMascot {
  0%, 100% { transform: translateY(0); }
  50% { transform: translateY(-6px); }
}

[data-theme="dark"] .cta-mascot-visual {
  filter: drop-shadow(0 0 1px rgba(255, 255, 255, 0.75)) drop-shadow(0 8px 24px rgba(124, 58, 237, 0.4));
}

.cta-title {
  font-size: 42px;
  font-weight: 800;
  line-height: 1.15;
  letter-spacing: -0.03em;
  color: var(--text-heading);
  margin-bottom: 16px;
}

.cta-subtitle {
  font-size: 19px;
  color: var(--text-muted);
  margin-bottom: 32px;
}

.cta-buttons {
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 14px;
  flex-wrap: wrap;
}

/* --------------------------------------------------------------------------
   FOOTER
   -------------------------------------------------------------------------- */
.footer {
  background: var(--bg-body);
  border-top: 1px solid var(--border-subtle);
  padding: 64px 0 36px;
}

.footer-top {
  display: grid;
  grid-template-columns: 1.4fr 2fr;
  gap: 60px;
  margin-bottom: 50px;
}

.footer-brand-info {
  display: flex;
  flex-direction: column;
  gap: 14px;
}

.footer-logo {
  height: 32px;
  width: auto;
  display: block;
}

.footer-desc {
  font-size: 14px;
  color: var(--text-muted);
  line-height: 1.55;
  max-width: 320px;
}

.footer-links-grid {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 32px;
}

.footer-col-title {
  font-size: 12px;
  font-weight: 700;
  text-transform: uppercase;
  letter-spacing: 0.08em;
  color: var(--text-heading);
  margin-bottom: 16px;
}

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

.footer-link {
  font-size: 14px;
  color: var(--text-muted);
}

.footer-link:hover {
  color: var(--purple);
}

.footer-bottom {
  display: flex;
  align-items: center;
  justify-content: space-between;
  padding-top: 28px;
  border-top: 1px solid var(--border-subtle);
  font-size: 13px;
  color: var(--text-dim);
}

.footer-bottom-links {
  display: flex;
  gap: 20px;
}

/* --------------------------------------------------------------------------
   VIDEO MODAL (FOR WATCH DEMO)
   -------------------------------------------------------------------------- */
.modal-backdrop {
  position: fixed;
  inset: 0;
  z-index: 200;
  background: rgba(15, 23, 42, 0.65);
  backdrop-filter: blur(8px);
  -webkit-backdrop-filter: blur(8px);
  display: flex;
  align-items: center;
  justify-content: center;
  padding: 24px;
  opacity: 0;
  pointer-events: none;
  transition: opacity 0.24s ease;
}

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

.modal-dialog {
  width: 100%;
  max-width: 960px;
  background: var(--bg-card);
  border-radius: var(--radius-xl);
  overflow: hidden;
  box-shadow: 0 30px 80px rgba(0, 0, 0, 0.25);
  position: relative;
  transform: translateY(16px) scale(0.98);
  transition: transform 0.24s cubic-bezier(0.16, 1, 0.3, 1);
}

.modal-backdrop.active .modal-dialog {
  transform: translateY(0) scale(1);
}

.modal-header {
  display: flex;
  align-items: center;
  justify-content: space-between;
  padding: 16px 22px;
  border-bottom: 1px solid var(--border-subtle);
}

.modal-title {
  font-size: 15px;
  font-weight: 700;
  color: var(--text-heading);
}

.modal-close-btn {
  width: 32px;
  height: 32px;
  border-radius: 50%;
  background: var(--bg-subtle);
  color: var(--text-body);
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 16px;
  transition: var(--transition);
}

.modal-close-btn:hover {
  background: var(--purple-light);
  color: var(--purple);
}

.modal-body {
  padding: 16px;
}

/* --------------------------------------------------------------------------
   RESPONSIVE DESIGN (Desktop 1440px+, Tablet 768-1439px, Mobile 320-767px)
   -------------------------------------------------------------------------- */
@media (max-width: 1024px) {
  .hero-title {
    font-size: 46px;
  }
  .section-title {
    font-size: 34px;
  }
  .feature-row, .feature-row.reverse {
    grid-template-columns: 1fr;
    gap: 36px;
  }
  .feature-row.reverse .feature-video-col {
    order: 1;
  }
  .feature-row.reverse .feature-info-col {
    order: 2;
  }
  .how-it-works-grid {
    grid-template-columns: repeat(2, 1fr);
  }
  .footer-top {
    grid-template-columns: 1fr;
    gap: 40px;
  }
}

@media (max-width: 768px) {
  .nav-menu {
    position: fixed;
    top: 72px;
    left: 0;
    width: 100%;
    background: var(--bg-body) !important;
    flex-direction: column !important;
    padding: 24px !important;
    gap: 20px !important;
    border-bottom: 1px solid var(--border-subtle);
    box-shadow: var(--shadow-lg);
    display: none !important;
  }
  .nav-menu.open {
    display: flex !important;
  }
  .mobile-toggle {
    display: block !important;
  }
  .hero {
    padding: 50px 0 40px;
  }
  .hero-title {
    font-size: 36px;
  }
  .hero-subtitle {
    font-size: 17px;
  }
  .how-it-works-grid {
    grid-template-columns: 1fr;
  }
  .use-cases-grid {
    grid-template-columns: 1fr;
  }
  .cta-title {
    font-size: 32px;
  }
  .footer-links-grid {
    grid-template-columns: repeat(2, 1fr);
  }
  .footer-bottom {
    flex-direction: column;
    gap: 12px;
    text-align: center;
  }
}

/* --------------------------------------------------------------------------
   ACCESSIBILITY & POLISH
   -------------------------------------------------------------------------- */
:focus-visible {
  outline: 2px solid var(--purple);
  outline-offset: 3px;
  border-radius: 6px;
}

.nav-link-active {
  color: var(--purple) !important;
  font-weight: 700 !important;
}

.hero-trust {
  flex-wrap: wrap;
}

.cb-mockup-title,
.cb-mockup-topbar > span:not(.cb-mockup-badge) {
  min-width: 0;
  overflow: hidden;
  text-overflow: ellipsis;
  white-space: nowrap;
}

@media (prefers-reduced-motion: reduce) {
  *, *::before, *::after {
    animation-duration: 0.01ms !important;
    animation-iteration-count: 1 !important;
    transition-duration: 0.01ms !important;
    scroll-behavior: auto !important;
  }
}

/* --------------------------------------------------------------------------
   PRICING PAGE
   -------------------------------------------------------------------------- */
.pricing-hero {
  padding: 64px 0 88px;
  background: var(--gradient-hero-bg);
}

.pricing-head {
  text-align: center;
  max-width: 720px;
  margin: 0 auto 36px;
}

.pricing-title {
  font-size: 48px;
  margin-bottom: 16px;
}

.pricing-head .hero-subtitle {
  font-size: 18px;
  margin-bottom: 28px;
}

.currency-switch {
  display: inline-flex;
  gap: 4px;
  padding: 4px;
  background: var(--bg-subtle);
  border: 1px solid var(--border-subtle);
  border-radius: var(--radius-full);
}

.currency-btn {
  padding: 8px 18px;
  font-size: 13.5px;
  font-weight: 600;
  color: var(--text-muted);
  border-radius: var(--radius-full);
  transition: var(--transition);
}

.currency-btn:hover {
  color: var(--text-heading);
}

.currency-btn.active {
  background: var(--bg-card);
  color: var(--text-heading);
  box-shadow: var(--shadow-md);
}

.pricing-card {
  position: relative;
  max-width: 560px;
  margin: 0 auto;
  padding: 36px;
  background: var(--bg-card);
  border: 1px solid var(--border-card);
  border-radius: var(--radius-xl);
  box-shadow: var(--shadow-lg), 0 0 0 1px var(--purple-border);
  overflow: hidden;
}

.pricing-card::before {
  content: "";
  position: absolute;
  inset: 0 0 auto 0;
  height: 4px;
  background: var(--gradient-accent);
}

.pricing-card-top {
  display: flex;
  align-items: flex-start;
  justify-content: space-between;
  gap: 16px;
  margin-bottom: 20px;
}

.pricing-plan-name {
  font-size: 22px;
  font-weight: 800;
  letter-spacing: -0.02em;
  color: var(--text-heading);
}

.pricing-plan-sub {
  font-size: 14.5px;
  color: var(--text-muted);
  margin-top: 4px;
}

.pricing-badge {
  flex-shrink: 0;
  font-size: 11px;
  font-weight: 700;
  text-transform: uppercase;
  letter-spacing: 0.06em;
  padding: 5px 10px;
  border-radius: var(--radius-full);
  background: var(--bg-badge-pill);
  color: var(--purple);
  border: 1px solid var(--purple-border);
}

.pricing-price-row {
  display: flex;
  align-items: baseline;
  gap: 4px;
  color: var(--text-heading);
}

.pricing-symbol {
  font-size: 30px;
  font-weight: 700;
  align-self: flex-start;
  margin-top: 10px;
}

.pricing-num {
  font-size: 64px;
  font-weight: 800;
  line-height: 1;
  letter-spacing: -0.04em;
}

.pricing-term {
  font-size: 15px;
  font-weight: 500;
  color: var(--text-muted);
  margin-left: 8px;
}

.pricing-compare {
  font-size: 13.5px;
  color: var(--text-muted);
  margin: 8px 0 24px;
}

.pricing-buy-btn {
  width: 100%;
}

.pricing-assurance {
  display: flex;
  flex-wrap: wrap;
  justify-content: center;
  gap: 6px 16px;
  margin-top: 14px;
  font-size: 12.5px;
  color: var(--text-muted);
}

.pricing-divider {
  height: 1px;
  background: var(--border-subtle);
  margin: 28px 0 22px;
}

.pricing-features-label,
.pricing-after-title {
  font-size: 12px;
  font-weight: 700;
  text-transform: uppercase;
  letter-spacing: 0.06em;
  color: var(--text-heading);
  margin-bottom: 14px;
}

.pricing-features {
  display: flex;
  flex-direction: column;
  gap: 12px;
}

.pricing-features li {
  display: flex;
  gap: 12px;
  font-size: 14.5px;
  line-height: 1.5;
  color: var(--text-body);
}

.pricing-features b {
  color: var(--text-heading);
  font-weight: 600;
}

.pricing-features code {
  font-size: 12.5px;
  padding: 1px 5px;
  border-radius: 4px;
  background: var(--bg-subtle);
}

.pricing-check {
  flex-shrink: 0;
  width: 20px;
  height: 20px;
  margin-top: 1px;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  border-radius: 50%;
  font-size: 11px;
  font-weight: 800;
  background: var(--bg-badge-pill);
  color: var(--purple);
}

.pricing-after {
  margin-top: 28px;
  padding: 20px;
  border-radius: var(--radius-md);
  background: var(--bg-subtle);
  border: 1px solid var(--border-subtle);
}

.pricing-steps {
  display: flex;
  flex-direction: column;
  gap: 10px;
  list-style: none;
}

.pricing-steps li {
  display: flex;
  align-items: flex-start;
  gap: 10px;
  font-size: 14px;
  color: var(--text-body);
}

.pricing-steps li span {
  flex-shrink: 0;
  width: 22px;
  height: 22px;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  border-radius: 50%;
  font-size: 12px;
  font-weight: 700;
  background: var(--purple);
  color: #ffffff;
}

.pricing-faq {
  max-width: 860px;
  margin: 72px auto 0;
}

.pricing-faq-title {
  text-align: center;
  font-size: 28px;
  font-weight: 800;
  letter-spacing: -0.02em;
  color: var(--text-heading);
  margin-bottom: 28px;
}

.pricing-faq-grid {
  display: grid;
  grid-template-columns: repeat(2, 1fr);
  gap: 16px;
}

.pricing-faq-item {
  padding: 22px;
  background: var(--bg-card);
  border: 1px solid var(--border-card);
  border-radius: var(--radius-md);
}

.pricing-faq-item h3 {
  font-size: 15.5px;
  font-weight: 700;
  color: var(--text-heading);
  margin-bottom: 6px;
}

.pricing-faq-item p {
  font-size: 14px;
  color: var(--text-muted);
}

.pricing-faq-item a {
  color: var(--purple);
  font-weight: 600;
}

.footer-compact {
  padding: 40px 0;
}

.footer-compact-inner {
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 8px;
  text-align: center;
  font-size: 14px;
  color: var(--text-muted);
}

.footer-compact-inner .footer-logo {
  margin-bottom: 6px;
}

.footer-copy {
  font-size: 13px;
  color: var(--text-dim);
}

/* --------------------------------------------------------------------------
   MOBILE REFINEMENTS
   -------------------------------------------------------------------------- */
@media (max-width: 768px) {
  .container {
    padding: 0 20px;
  }
  .pricing-faq-grid {
    grid-template-columns: 1fr;
  }
  .pricing-title {
    font-size: 36px;
  }
  .pricing-card {
    padding: 28px 22px;
  }
  .pricing-num {
    font-size: 54px;
  }
}

@media (max-width: 560px) {
  .nav-cta,
  .nav-actions > .btn-primary {
    display: none !important;
  }
  .nav-brand-logo {
    height: 30px;
  }
  .hero-title {
    font-size: 32px;
  }
  .hero-cta-group .btn {
    width: 100%;
  }
  .cb-mockup-badge {
    display: none;
  }
  .cb-watermark-bg {
    width: 160px;
  }
}

/* --------------------------------------------------------------------------
   AUTH PAGES (SIGN UP / LOG IN)
   -------------------------------------------------------------------------- */
.auth-page {
  min-height: calc(100vh - 72px);
  display: flex;
  align-items: center;
  justify-content: center;
  padding: 48px 20px 72px;
  background: var(--gradient-hero-bg);
}

.auth-card {
  width: 100%;
  max-width: 420px;
  padding: 36px 32px;
  background: var(--bg-card);
  border: 1px solid var(--border-card);
  border-radius: var(--radius-xl);
  box-shadow: var(--shadow-lg);
  position: relative;
  overflow: hidden;
}

.auth-card::before {
  content: "";
  position: absolute;
  inset: 0 0 auto 0;
  height: 4px;
  background: var(--gradient-accent);
}

.auth-mascot {
  width: 56px;
  height: 56px;
  display: block;
  margin: 0 auto 14px;
}

.auth-title {
  font-size: 26px;
  font-weight: 800;
  letter-spacing: -0.02em;
  text-align: center;
  color: var(--text-heading);
}

.auth-sub {
  font-size: 14.5px;
  color: var(--text-muted);
  text-align: center;
  margin: 6px 0 24px;
}

.auth-form {
  display: flex;
  flex-direction: column;
  gap: 14px;
}

.auth-field label {
  display: block;
  font-size: 13px;
  font-weight: 600;
  color: var(--text-heading);
  margin-bottom: 6px;
}

.auth-field input {
  width: 100%;
  padding: 12px 14px;
  font: inherit;
  font-size: 15px;
  color: var(--text-heading);
  background: var(--bg-subtle);
  border: 1px solid var(--border-subtle);
  border-radius: var(--radius-sm);
  transition: var(--transition);
}

.auth-field input:focus {
  outline: none;
  border-color: var(--purple);
  box-shadow: 0 0 0 3px var(--purple-glow);
  background: var(--bg-card);
}

.auth-label-row {
  display: flex;
  justify-content: space-between;
  align-items: baseline;
}

.auth-link {
  font-size: 13px;
  font-weight: 600;
  color: var(--purple);
}

.auth-link:hover {
  text-decoration: underline;
}

.auth-form .btn {
  width: 100%;
  margin-top: 4px;
}

.auth-divider {
  display: flex;
  align-items: center;
  gap: 12px;
  font-size: 12px;
  color: var(--text-dim);
  margin: 4px 0;
}

.auth-divider::before,
.auth-divider::after {
  content: "";
  flex: 1;
  height: 1px;
  background: var(--border-subtle);
}

.auth-msg {
  min-height: 18px;
  font-size: 13.5px;
  text-align: center;
}

.auth-msg.err { color: #dc2626; }
.auth-msg.ok  { color: #059669; }
[data-theme="dark"] .auth-msg.err { color: #f87171; }
[data-theme="dark"] .auth-msg.ok  { color: #34d399; }

.auth-foot {
  margin-top: 22px;
  text-align: center;
  font-size: 14px;
  color: var(--text-muted);
}

.auth-fine {
  font-size: 12px;
  color: var(--text-dim);
  text-align: center;
  line-height: 1.5;
}

.auth-done {
  display: none;
  text-align: center;
}

.auth-done-icon {
  font-size: 40px;
  margin-bottom: 8px;
}

/* --------------------------------------------------------------------------
   ACCOUNT PAGE
   -------------------------------------------------------------------------- */
.account-page {
  padding: 48px 0 88px;
  background: var(--gradient-hero-bg);
  min-height: calc(100vh - 72px);
}

.account-head {
  display: flex;
  justify-content: space-between;
  align-items: flex-end;
  gap: 16px;
  max-width: 760px;
  margin: 0 auto 28px;
}

.account-head h1 {
  font-size: 32px;
  font-weight: 800;
  letter-spacing: -0.02em;
  color: var(--text-heading);
}

.account-grid {
  max-width: 760px;
  margin: 0 auto;
  display: flex;
  flex-direction: column;
  gap: 18px;
}

.acc-card {
  padding: 26px;
  background: var(--bg-card);
  border: 1px solid var(--border-card);
  border-radius: var(--radius-lg);
  box-shadow: var(--shadow-md);
}

.acc-card h2 {
  font-size: 13px;
  font-weight: 700;
  text-transform: uppercase;
  letter-spacing: 0.06em;
  color: var(--text-heading);
  margin-bottom: 14px;
}

.acc-key-row {
  display: flex;
  gap: 10px;
  align-items: center;
}

.acc-key {
  flex: 1;
  padding: 14px 16px;
  font-family: "JetBrains Mono", ui-monospace, Menlo, monospace;
  font-size: 18px;
  font-weight: 700;
  letter-spacing: 1px;
  color: var(--purple);
  background: var(--bg-badge-pill);
  border: 1px dashed var(--purple-border);
  border-radius: var(--radius-sm);
  user-select: all;
  overflow-wrap: anywhere;
}

.acc-meta {
  display: flex;
  flex-wrap: wrap;
  gap: 6px 16px;
  margin-top: 12px;
  font-size: 13.5px;
  color: var(--text-muted);
}

.acc-status { font-weight: 700; text-transform: capitalize; }
.acc-status.ok  { color: #059669; }
.acc-status.bad { color: #dc2626; }

.acc-downloads {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 12px;
}

.acc-downloads .btn {
  width: 100%;
  padding: 14px;
}

.acc-device {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 12px;
  padding: 14px 0;
  border-top: 1px solid var(--border-subtle);
}

.acc-device:first-child { border-top: none; padding-top: 0; }

.acc-device-name {
  font-weight: 600;
  color: var(--text-heading);
}

.acc-muted {
  font-size: 13.5px;
  color: var(--text-muted);
}

.acc-empty {
  text-align: center;
  padding: 12px 0;
  color: var(--text-muted);
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 14px;
}

.acc-spinner {
  width: 26px;
  height: 26px;
  border: 3px solid var(--purple-border);
  border-top-color: var(--purple);
  border-radius: 50%;
  animation: accSpin 0.8s linear infinite;
}

@keyframes accSpin { to { transform: rotate(360deg); } }

/* --------------------------------------------------------------------------
   ADMIN DASHBOARD
   -------------------------------------------------------------------------- */
.admin-stats {
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  gap: 14px;
  margin-bottom: 18px;
}

.admin-stat {
  padding: 20px;
  background: var(--bg-card);
  border: 1px solid var(--border-card);
  border-radius: var(--radius-md);
}

.admin-stat-label {
  font-size: 12px;
  font-weight: 600;
  text-transform: uppercase;
  letter-spacing: 0.05em;
  color: var(--text-muted);
}

.admin-stat-value {
  font-size: 28px;
  font-weight: 800;
  letter-spacing: -0.02em;
  color: var(--text-heading);
  margin-top: 4px;
}

.admin-stat-sub {
  font-size: 12.5px;
  color: var(--text-dim);
}

.admin-table-wrap {
  overflow-x: auto;
}

.admin-table {
  width: 100%;
  border-collapse: collapse;
  font-size: 13.5px;
}

.admin-table th {
  text-align: left;
  font-size: 11.5px;
  font-weight: 700;
  text-transform: uppercase;
  letter-spacing: 0.05em;
  color: var(--text-muted);
  padding: 10px 12px;
  border-bottom: 1px solid var(--border-subtle);
}

.admin-table td {
  padding: 11px 12px;
  border-bottom: 1px solid var(--border-subtle);
  color: var(--text-body);
  white-space: nowrap;
}

.admin-table code {
  font-size: 12.5px;
}

.admin-search {
  width: 100%;
  max-width: 320px;
  padding: 9px 12px;
  font: inherit;
  font-size: 14px;
  color: var(--text-heading);
  background: var(--bg-subtle);
  border: 1px solid var(--border-subtle);
  border-radius: var(--radius-sm);
}

.admin-wide {
  max-width: 1100px;
}

@media (max-width: 768px) {
  .admin-stats { grid-template-columns: repeat(2, 1fr); }
  .acc-downloads { grid-template-columns: 1fr; }
  .acc-key { font-size: 15px; }
  .account-head { flex-direction: column; align-items: flex-start; }
  .auth-card { padding: 30px 22px; }
}
