:root {
  --bg: #060b11;
  --bg-elevated: #0c141f;
  --panel: #111c2a;
  --panel-hover: #162436;
  --surface-glass: rgba(17, 28, 42, 0.86);
  --text: #f4f8fc;
  --text-muted: #9fb2c7;
  --border: rgba(93, 126, 158, 0.28);
  --border-strong: rgba(0, 229, 255, 0.45);
  --cyan: #00e5ff;
  --blue: #0077fe;
  --royal: #0047ff;
  --coral: #ff3366;
  --green: #3ddc84;
  --amber: #ffc247;
  --red: #ff6b60;
  --shadow-lg: 0 20px 50px rgba(0, 0, 0, 0.52);
  --shadow-glow: 0 0 32px rgba(0, 119, 254, 0.24);
  --radius-lg: 18px;
  --radius-md: 14px;
  --radius-sm: 10px;
  --font-sans: 'Inter', system-ui, -apple-system, BlinkMacSystemFont, 'Segoe UI', Roboto, sans-serif;
  --font-mono: ui-monospace, 'Cascadia Mono', 'SFMono-Regular', Consolas, monospace;
}

:root[data-site-theme='light'] {
  --bg: #f4f7fb;
  --bg-elevated: #ffffff;
  --panel: #ffffff;
  --panel-hover: #edf3f9;
  --surface-glass: rgba(255, 255, 255, 0.9);
  --text: #0b1622;
  --text-muted: #4a5d70;
  --border: rgba(15, 42, 74, 0.14);
  --border-strong: rgba(0, 119, 254, 0.45);
  --cyan: #0066db;
  --blue: #0058c4;
  --green: #0a7a35;
  --amber: #945d00;
  --red: #b3261e;
  --shadow-lg: 0 18px 42px rgba(11, 22, 34, 0.1);
  --shadow-glow: 0 8px 26px rgba(0, 119, 254, 0.14);
}

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

html {
  scroll-behavior: smooth;
  scroll-padding-top: 80px;
}

body {
  margin: 0;
  background-color: var(--bg);
  background-image:
    radial-gradient(circle at 15% 6%, rgba(0, 229, 255, 0.08), transparent 34%),
    radial-gradient(circle at 85% 16%, rgba(0, 119, 254, 0.1), transparent 38%);
  color: var(--text);
  font-family: var(--font-sans);
  font-size: 16px;
  line-height: 1.6;
  -webkit-font-smoothing: antialiased;
  overflow-x: hidden;
}

.mono {
  font-family: var(--font-mono);
  font-variant-numeric: tabular-nums;
}

/* ==================== MOBILE-FIRST CONTAINER ==================== */
.container {
  width: 100%;
  max-width: 1240px;
  margin: 0 auto;
  padding: 0 16px;
}

/* ==================== STICKY HEADER (MOBILE FIRST) ==================== */
.site-header {
  position: sticky;
  top: 0;
  z-index: 100;
  background: var(--surface-glass);
  backdrop-filter: blur(16px);
  -webkit-backdrop-filter: blur(16px);
  border-bottom: 1px solid var(--border);
}

.header-inner {
  display: flex;
  align-items: center;
  justify-content: space-between;
  min-height: 64px;
  gap: 12px;
}

.brand-link {
  display: inline-flex;
  align-items: center;
  gap: 10px;
  text-decoration: none;
  color: var(--text);
  font-weight: 800;
  font-size: 1.2rem;
  letter-spacing: -0.02em;
}

.brand-link img {
  width: 34px;
  height: 34px;
  display: block;
}

.brand-tag {
  display: none;
  font-size: 0.72rem;
  font-weight: 700;
  padding: 3px 9px;
  border-radius: 999px;
  background: rgba(0, 229, 255, 0.12);
  color: var(--cyan);
  border: 1px solid rgba(0, 229, 255, 0.28);
}

/* Mobile dropdown nav by default */
.site-nav {
  display: none;
  position: absolute;
  top: 64px;
  left: 12px;
  right: 12px;
  flex-direction: column;
  gap: 4px;
  background: var(--panel);
  border: 1px solid var(--border);
  border-radius: var(--radius-md);
  padding: 10px;
  box-shadow: var(--shadow-lg);
}

.site-nav.open {
  display: flex;
}

.nav-link {
  color: var(--text-muted);
  text-decoration: none;
  font-size: 0.95rem;
  font-weight: 600;
  padding: 10px 14px;
  border-radius: 10px;
  transition: all 0.16s ease;
}

.nav-link:hover,
.nav-link:focus-visible {
  color: var(--text);
  background: var(--panel-hover);
}

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

.header-cta {
  display: inline-flex;
  width: auto;
  padding: 9px 14px;
  font-size: 0.88rem;
  border-radius: 10px;
  white-space: nowrap;
}

.theme-btn,
.mobile-menu-btn {
  appearance: none;
  border: 1px solid var(--border);
  background: var(--panel);
  color: var(--text);
  width: 42px;
  height: 42px;
  border-radius: 10px;
  cursor: pointer;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  font-size: 1.05rem;
  transition: all 0.18s ease;
}

.theme-btn:hover,
.mobile-menu-btn:hover {
  border-color: var(--cyan);
}

/* ==================== BUTTONS & EYEBROW BADGES ==================== */
.btn-cta {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 8px;
  width: 100%;
  padding: 12px 20px;
  border-radius: 12px;
  font-family: inherit;
  font-size: 0.95rem;
  font-weight: 700;
  text-decoration: none;
  cursor: pointer;
  border: none;
  transition: all 0.2s ease;
}

.btn-cta-primary {
  background: linear-gradient(135deg, #00c6ff 0%, #0072ff 100%);
  color: #ffffff;
  box-shadow: 0 8px 22px rgba(0, 114, 255, 0.32);
}

.btn-cta-primary:hover {
  transform: translateY(-2px);
  box-shadow: 0 12px 28px rgba(0, 114, 255, 0.45);
}

.btn-cta-secondary {
  background: var(--panel);
  color: var(--text);
  border: 1px solid var(--border);
}

.btn-cta-secondary:hover {
  border-color: var(--cyan);
  background: var(--panel-hover);
}

.eyebrow {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  font-size: 0.8rem;
  font-weight: 700;
  color: var(--cyan);
  background: rgba(0, 229, 255, 0.1);
  border: 1px solid rgba(0, 229, 255, 0.26);
  padding: 5px 12px;
  border-radius: 999px;
  margin-bottom: 14px;
}

/* ==================== HERO SECTION (MOBILE FIRST) ==================== */
.hero {
  padding: 36px 0 40px;
}

.hero-grid {
  display: grid;
  grid-template-columns: 1fr;
  gap: 32px;
  align-items: center;
}

.hero-title {
  font-size: clamp(2rem, 6vw, 3.4rem);
  line-height: 1.1;
  font-weight: 850;
  letter-spacing: -0.03em;
  margin: 0 0 16px;
}

.gradient-text {
  background: linear-gradient(135deg, #00e5ff 0%, #3a8dff 55%, #ff6b8b 100%);
  -webkit-background-clip: text;
  -webkit-text-fill-color: transparent;
  background-clip: text;
}

.hero-lead {
  font-size: 1.05rem;
  color: var(--text-muted);
  margin: 0 0 24px;
}

.hero-cta-row {
  display: flex;
  flex-direction: column;
  gap: 12px;
  margin-bottom: 24px;
}

.hero-proof-pills {
  display: grid;
  grid-template-columns: 1fr;
  gap: 12px;
  padding-top: 18px;
  border-top: 1px solid var(--border);
}

.proof-item {
  display: flex;
  align-items: baseline;
  justify-content: space-between;
  gap: 8px;
}

.proof-item strong {
  font-size: 1.15rem;
  font-weight: 800;
  color: var(--text);
}

.proof-item span {
  font-size: 0.85rem;
  color: var(--text-muted);
}

/* Tablet frame */
.tablet-frame {
  background: #0b1017;
  border-radius: 18px;
  padding: 10px;
  border: 2px solid rgba(130, 165, 200, 0.32);
  box-shadow: var(--shadow-lg), var(--shadow-glow);
}

.tablet-screen {
  border-radius: 12px;
  overflow: hidden;
  background: #080c10;
  aspect-ratio: 1366 / 860;
}

.tablet-screen img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  display: block;
}

.tablet-toolbar {
  display: flex;
  flex-direction: column;
  align-items: flex-start;
  gap: 10px;
  margin-top: 10px;
  padding: 0 4px;
}

.tablet-caption {
  font-size: 0.82rem;
  color: var(--text-muted);
}

.seg-switch {
  display: flex;
  flex-wrap: wrap;
  width: 100%;
  background: var(--bg-elevated);
  border: 1px solid var(--border);
  border-radius: 8px;
  padding: 3px;
  gap: 4px;
}

.seg-btn {
  flex: 1 1 auto;
  appearance: none;
  border: none;
  background: transparent;
  color: var(--text-muted);
  font-family: inherit;
  font-size: 0.78rem;
  font-weight: 650;
  padding: 6px 10px;
  border-radius: 6px;
  cursor: pointer;
}

.seg-btn.active {
  background: var(--blue);
  color: #ffffff;
}

/* ==================== SECTIONS (MOBILE FIRST) ==================== */
.section {
  padding: 48px 0;
}

.section-alt {
  background: var(--bg-elevated);
  border-top: 1px solid var(--border);
  border-bottom: 1px solid var(--border);
}

.section-head {
  text-align: left;
  max-width: 740px;
  margin: 0 auto 32px;
}

.section-head h2 {
  font-size: clamp(1.65rem, 4.5vw, 2.45rem);
  font-weight: 820;
  letter-spacing: -0.025em;
  margin: 0 0 12px;
}

.section-head p {
  color: var(--text-muted);
  font-size: 1rem;
  margin: 0;
}

/* ==================== FEATURE CARDS (MOBILE FIRST) ==================== */
.feature-grid {
  display: grid;
  grid-template-columns: 1fr;
  gap: 16px;
}

.feature-card {
  background: var(--panel);
  border: 1px solid var(--border);
  border-radius: var(--radius-lg);
  padding: 22px;
  transition: all 0.2s ease;
  display: flex;
  flex-direction: column;
  gap: 10px;
}

.feature-card:hover {
  border-color: var(--border-strong);
  box-shadow: var(--shadow-glow);
}

.feature-icon {
  width: 44px;
  height: 44px;
  border-radius: 12px;
  background: rgba(0, 229, 255, 0.12);
  border: 1px solid rgba(0, 229, 255, 0.25);
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 1.3rem;
}

.feature-card h3 {
  font-size: 1.15rem;
  font-weight: 780;
  margin: 0;
}

.feature-card p {
  color: var(--text-muted);
  margin: 0;
  font-size: 0.94rem;
}

.feature-tag-list {
  display: flex;
  flex-wrap: wrap;
  gap: 6px;
  margin-top: auto;
  padding-top: 8px;
}

.feature-tag {
  font-size: 0.74rem;
  font-weight: 650;
  padding: 3px 9px;
  border-radius: 6px;
  background: rgba(90, 162, 255, 0.12);
  color: var(--cyan);
}

/* ==================== SCREENSHOT GALLERY (MOBILE FIRST) ==================== */
.gallery-layout {
  display: grid;
  grid-template-columns: 1fr;
  gap: 20px;
  align-items: start;
}

.gallery-tabs {
  display: flex;
  flex-direction: column;
  gap: 8px;
}

.gallery-tab {
  appearance: none;
  text-align: left;
  background: var(--panel);
  border: 1px solid var(--border);
  border-radius: var(--radius-md);
  padding: 14px 16px;
  cursor: pointer;
  color: var(--text);
  font-family: inherit;
  transition: all 0.16s ease;
}

.gallery-tab:hover {
  border-color: var(--border-strong);
}

.gallery-tab.active {
  background: linear-gradient(135deg, rgba(0, 119, 254, 0.18), rgba(0, 229, 255, 0.07));
  border-color: var(--cyan);
  box-shadow: var(--shadow-glow);
}

.gallery-tab-title {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 8px;
  font-weight: 760;
  font-size: 0.96rem;
  margin-bottom: 4px;
}

.gallery-tab-desc {
  font-size: 0.84rem;
  color: var(--text-muted);
  margin: 0;
}

.gallery-stage {
  background: var(--panel);
  border: 1px solid var(--border);
  border-radius: var(--radius-lg);
  padding: 14px;
}

.stage-screen-wrap {
  position: relative;
  border-radius: 12px;
  overflow: hidden;
  border: 2px solid rgba(130, 165, 200, 0.28);
  background: #080c10;
  cursor: zoom-in;
}

.stage-screen-wrap img {
  width: 100%;
  height: auto;
  display: block;
}

.hotspot {
  position: absolute;
  width: 28px;
  height: 28px;
  border-radius: 50%;
  background: var(--coral);
  color: #ffffff;
  border: 2px solid #ffffff;
  font-weight: 800;
  font-size: 0.78rem;
  display: flex;
  align-items: center;
  justify-content: center;
  cursor: pointer;
  box-shadow: 0 0 0 5px rgba(255, 51, 102, 0.3);
  transform: translate(-50%, -50%);
  transition: transform 0.16s ease;
  z-index: 5;
}

.hotspot:hover,
.hotspot.active {
  transform: translate(-50%, -50%) scale(1.16);
  background: var(--cyan);
  color: #001a3d;
}

.stage-meta-bar {
  display: flex;
  flex-direction: column;
  gap: 12px;
  margin-top: 14px;
  padding-top: 14px;
  border-top: 1px solid var(--border);
}

.hotspot-callout {
  background: var(--bg-elevated);
  border-left: 4px solid var(--cyan);
  padding: 12px 14px;
  border-radius: 8px;
  flex: 1;
}

.hotspot-callout strong {
  display: block;
  font-size: 0.94rem;
  margin-bottom: 3px;
}

.hotspot-callout p {
  margin: 0;
  font-size: 0.86rem;
  color: var(--text-muted);
}

.thumb-grid {
  display: grid;
  grid-template-columns: 1fr;
  gap: 16px;
  margin-top: 24px;
}

.thumb-card {
  background: var(--panel);
  border: 1px solid var(--border);
  border-radius: var(--radius-md);
  overflow: hidden;
  cursor: pointer;
  transition: all 0.2s ease;
}

.thumb-card:hover {
  transform: translateY(-3px);
  border-color: var(--cyan);
}

.thumb-card img {
  width: 100%;
  aspect-ratio: 1366 / 860;
  object-fit: cover;
  display: block;
  border-bottom: 1px solid var(--border);
}

.thumb-card-body {
  padding: 14px 16px;
}

.thumb-card-body strong {
  display: block;
  font-size: 0.95rem;
  margin-bottom: 4px;
}

.thumb-card-body span {
  font-size: 0.82rem;
  color: var(--text-muted);
}

/* ==================== COMPARISON TABLE & ROI (MOBILE FIRST) ==================== */
.compare-table-wrap {
  overflow-x: auto;
  -webkit-overflow-scrolling: touch;
  background: var(--panel);
  border: 1px solid var(--border);
  border-radius: var(--radius-lg);
}

.compare-table {
  width: 100%;
  min-width: 620px;
  border-collapse: collapse;
  text-align: left;
}

.compare-table th,
.compare-table td {
  padding: 14px 16px;
  border-bottom: 1px solid var(--border);
  font-size: 0.92rem;
}

.compare-table th {
  font-size: 0.84rem;
  font-weight: 750;
  color: var(--text-muted);
  background: rgba(0, 0, 0, 0.14);
}

.compare-table th.highlight-col,
.compare-table td.highlight-col {
  background: rgba(0, 119, 254, 0.1);
  font-weight: 650;
}

.roi-grid {
  display: grid;
  grid-template-columns: 1fr;
  gap: 24px;
  background: var(--panel);
  border: 1px solid var(--border);
  border-radius: var(--radius-lg);
  padding: 22px;
  margin-top: 28px;
}

.slider-group {
  margin-bottom: 18px;
}

.slider-group label {
  display: flex;
  justify-content: space-between;
  gap: 8px;
  font-weight: 650;
  font-size: 0.92rem;
  margin-bottom: 6px;
}

.slider-group input[type='range'] {
  width: 100%;
  accent-color: var(--cyan);
}

.roi-results {
  display: grid;
  grid-template-columns: 1fr;
  gap: 14px;
}

.roi-stat-box {
  background: var(--bg-elevated);
  border: 1px solid var(--border);
  border-radius: var(--radius-md);
  padding: 18px;
}

.roi-stat-box strong {
  display: block;
  font-size: 1.85rem;
  font-weight: 850;
  color: var(--cyan);
}

/* ==================== FAQ ACCORDION ==================== */
.faq-list {
  max-width: 860px;
  margin: 0 auto;
  display: grid;
  gap: 12px;
}

.faq-item {
  background: var(--panel);
  border: 1px solid var(--border);
  border-radius: var(--radius-md);
  overflow: hidden;
}

.faq-q {
  width: 100%;
  appearance: none;
  background: transparent;
  border: none;
  color: var(--text);
  font-family: inherit;
  font-size: 1rem;
  font-weight: 700;
  padding: 16px 18px;
  text-align: left;
  display: flex;
  justify-content: space-between;
  align-items: center;
  gap: 12px;
  cursor: pointer;
}

.faq-a {
  padding: 0 18px 16px;
  color: var(--text-muted);
  font-size: 0.94rem;
  display: none;
}

.faq-item.open .faq-a {
  display: block;
}

/* ==================== LIGHTBOX MODAL ==================== */
.lightbox {
  position: fixed;
  inset: 0;
  z-index: 999;
  background: rgba(4, 8, 14, 0.92);
  backdrop-filter: blur(10px);
  display: none;
  align-items: center;
  justify-content: center;
  padding: 12px;
}

.lightbox.open {
  display: flex;
}

.lightbox-content {
  max-width: 1366px;
  width: 100%;
  background: var(--panel);
  border: 1px solid var(--border-strong);
  border-radius: var(--radius-lg);
  padding: 12px;
  box-shadow: var(--shadow-lg);
}

.lightbox-content img {
  width: 100%;
  height: auto;
  border-radius: 8px;
  display: block;
}

.lightbox-bar {
  display: flex;
  flex-direction: column;
  align-items: stretch;
  gap: 10px;
  margin-top: 12px;
}

/* ==================== FOOTER ==================== */
.site-footer {
  padding: 36px 0;
  border-top: 1px solid var(--border);
  background: var(--bg-elevated);
  color: var(--text-muted);
  font-size: 0.88rem;
}

.footer-inner {
  display: flex;
  flex-direction: column;
  align-items: flex-start;
  gap: 16px;
}

/* =========================================================================
   PROGRESSIVE ENHANCEMENT: SMALL TABLETS (min-width: 640px)
   ========================================================================= */
@media (min-width: 640px) {
  .container {
    padding: 0 24px;
  }

  .brand-tag {
    display: inline-block;
  }

  .btn-cta {
    width: auto;
  }

  .hero-cta-row {
    flex-direction: row;
    flex-wrap: wrap;
  }

  .hero-proof-pills {
    grid-template-columns: repeat(3, 1fr);
  }

  .proof-item {
    flex-direction: column;
    align-items: flex-start;
    gap: 2px;
  }

  .tablet-toolbar {
    flex-direction: row;
    align-items: center;
    justify-content: space-between;
  }

  .seg-switch {
    width: auto;
  }

  .section-head {
    text-align: center;
    margin-bottom: 44px;
  }

  .feature-grid,
  .thumb-grid,
  .roi-results {
    grid-template-columns: repeat(2, 1fr);
  }

  .stage-meta-bar {
    flex-direction: row;
    align-items: center;
    justify-content: space-between;
  }

  .lightbox {
    padding: 24px;
  }

  .lightbox-bar {
    flex-direction: row;
    align-items: center;
    justify-content: space-between;
  }

  .footer-inner {
    flex-direction: row;
    align-items: center;
    justify-content: space-between;
  }
}

/* =========================================================================
   PROGRESSIVE ENHANCEMENT: TABLETS & DESKTOPS (min-width: 768px)
   ========================================================================= */
@media (min-width: 768px) {
  .header-inner {
    min-height: 72px;
  }

  .site-nav {
    display: flex;
    position: static;
    flex-direction: row;
    align-items: center;
    gap: 4px;
    background: var(--bg-elevated);
    padding: 5px;
    border-radius: 999px;
    box-shadow: none;
  }

  .nav-link {
    font-size: 0.9rem;
    padding: 8px 14px;
    border-radius: 999px;
  }

  .mobile-menu-btn {
    display: none;
  }

  .header-cta {
    display: inline-flex;
    padding: 10px 18px;
    font-size: 0.92rem;
  }

  .section {
    padding: 64px 0;
  }

  .tablet-frame {
    border-radius: 24px;
    padding: 14px;
  }
}

/* =========================================================================
   PROGRESSIVE ENHANCEMENT: LARGE DESKTOPS (min-width: 1024px)
   ========================================================================= */
@media (min-width: 1024px) {
  .hero {
    padding: 56px 0 52px;
  }

  .hero-grid {
    grid-template-columns: 1.05fr 1.25fr;
    gap: 44px;
  }

  .feature-grid,
  .thumb-grid {
    grid-template-columns: repeat(3, 1fr);
    gap: 22px;
  }

  .gallery-layout {
    grid-template-columns: 340px 1fr;
    gap: 28px;
  }

  .gallery-stage {
    padding: 20px;
  }

  .roi-grid {
    grid-template-columns: 1fr 1fr;
    padding: 32px;
  }
}

/* ==================== How it works / quick answer ==================== */
.answer-summary {
  max-width: 760px;
  margin-left: auto;
  margin-right: auto;
}

.howto-steps {
  list-style: none;
  padding: 0;
  margin: 0;
}

.howto-steps .feature-icon {
  font-weight: 800;
  font-family: var(--font-mono);
}

.howto-steps a,
.fact-list a {
  color: var(--cyan);
}

.fact-list {
  display: grid;
  grid-template-columns: 1fr;
  gap: 10px;
  margin: 28px 0 0;
  padding: 18px;
  border: 1px solid var(--border);
  border-radius: var(--radius-lg);
  background: var(--panel);
}

.fact-list div {
  display: grid;
  gap: 2px;
}

.fact-list dt {
  font-size: 0.78rem;
  font-weight: 700;
  color: var(--text-muted);
}

.fact-list dd {
  margin: 0;
  color: var(--text);
}

@media (min-width: 768px) {
  .fact-list {
    grid-template-columns: repeat(2, 1fr);
    gap: 14px 24px;
  }
}

@media (min-width: 1024px) {
  .fact-list {
    grid-template-columns: repeat(3, 1fr);
  }
}
