/* ==========================================================================
   Omni Browser — RebelRoot Light Base Red UI Design System
   Cinematic Deep Carbon (#050505) + RebelRoot Red (#ef4444) Accent
   ========================================================================== */

:root {
  --bg: #050505;
  --bg-elevated: #0d0d12;
  --surface: rgba(255, 255, 255, 0.03);
  --surface-hover: rgba(255, 255, 255, 0.06);
  --surface-active: rgba(255, 255, 255, 0.08);

  --border: rgba(255, 255, 255, 0.08);
  --border-strong: rgba(255, 255, 255, 0.16);

  --text: #f5f5f7;
  --text-secondary: #a1a1aa;
  --text-muted: #71717a;

  /* RebelRoot Signature Light Base Red */
  --accent-red: #ef4444;
  --accent-red-glow: rgba(239, 68, 68, 0.15);
  --accent-red-subtle: rgba(239, 68, 68, 0.08);
  --accent-red-border: rgba(239, 68, 68, 0.25);

  --font-display: 'Space Grotesk', -apple-system, BlinkMacSystemFont, sans-serif;
  --font-body: 'Inter', -apple-system, BlinkMacSystemFont, sans-serif;
  --font-mono: 'JetBrains Mono', monospace;

  --radius-sm: 8px;
  --radius-md: 14px;
  --radius-lg: 24px;
  --radius-xl: 36px;
  --radius-full: 9999px;

  --ease-out: cubic-bezier(0.16, 1, 0.3, 1);
  --nav-h: 72px;
  --page-max: 1200px;
}

/* --------------------------------------------------------------------------
   Reset & Base Styles
   -------------------------------------------------------------------------- */
*, *::before, *::after {
  box-sizing: border-box;
  margin: 0;
  padding: 0;
}

html {
  scroll-behavior: smooth;
  -webkit-text-size-adjust: 100%;
  background: var(--bg);
  color-scheme: dark;
}

body {
  font-family: var(--font-body);
  font-size: 1rem;
  line-height: 1.6;
  color: var(--text);
  background: var(--bg);
  -webkit-font-smoothing: antialiased;
  overflow-x: hidden;
  min-height: 100vh;
}

img, svg, video {
  display: block;
  max-width: 100%;
}

a {
  color: inherit;
  text-decoration: none;
}

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

::selection {
  background: rgba(239, 68, 68, 0.3);
  color: #ffffff;
}

:focus-visible {
  outline: 2px solid var(--accent-red);
  outline-offset: 4px;
  border-radius: var(--radius-sm);
}

.skip-link {
  position: fixed;
  top: -100px;
  left: 20px;
  z-index: 9999;
  padding: 12px 24px;
  background: var(--accent-red);
  color: #fff;
  border-radius: var(--radius-md);
  font-weight: 600;
  transition: top 0.2s ease;
}

.skip-link:focus {
  top: 20px;
}

/* Container Utility */
.container {
  width: 100%;
  max-width: var(--page-max);
  margin: 0 auto;
  padding: 0 24px;
}

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

/* Ambient Grain & Glow Overlay (RebelRoot Red Glow) */
.grain {
  position: fixed;
  inset: 0;
  z-index: 9998;
  pointer-events: none;
  opacity: 0.03;
  background-image: url("data:image/svg+xml,%3Csvg viewBox='0 0 200 200' xmlns='http://www.w3.org/2000/svg'%3E%3Cfilter id='n'%3E%3CfeTurbulence type='fractalNoise' baseFrequency='0.8' numOctaves='3' stitchTiles='stitch'/%3E%3C/filter%3E%3Crect width='100%25' height='100%25' filter='url(%23n)'/%3E%3C/svg%3E");
  background-repeat: repeat;
}

.ambient-glow {
  position: fixed;
  top: -10vw;
  left: 50%;
  transform: translateX(-50%);
  width: 80vw;
  height: 50vh;
  background: radial-gradient(circle, rgba(239, 68, 68, 0.08) 0%, rgba(239, 68, 68, 0.02) 50%, rgba(0, 0, 0, 0) 80%);
  filter: blur(80px);
  pointer-events: none;
  z-index: -1;
}

/* --------------------------------------------------------------------------
   Navigation — RebelRoot Base UI Alignment
   -------------------------------------------------------------------------- */
.nav {
  position: fixed;
  top: 0;
  left: 0;
  right: 0;
  z-index: 1000;
  height: var(--nav-h);
  display: flex;
  align-items: center;
  justify-content: space-between;
  padding: 0 32px;
  background: #050505;
  border-bottom: 1px solid var(--border);
  transition: transform 0.35s cubic-bezier(0.16, 1, 0.3, 1), background 0.3s ease, border-color 0.3s ease;
  will-change: transform;
}

.nav.solid {
  background: #050505;
  border-bottom-color: var(--border-strong);
}

.nav.hidden,
.nav.nav--hidden {
  transform: translateY(-100%);
}

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

.nav__logo {
  width: 32px;
  height: 32px;
  border-radius: 9px;
  background: rgba(239, 68, 68, 0.08);
  border: 1px solid var(--accent-red-border);
  display: grid;
  place-items: center;
  color: var(--accent-red);
  flex-shrink: 0;
  transition: transform 0.2s ease, border-color 0.2s ease;
}

.nav__brand:hover .nav__logo {
  transform: scale(1.05);
  border-color: var(--accent-red);
}

.nav__logo img,
.nav__logo-img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  border-radius: 8px;
}

.nav__logo svg {
  width: 18px;
  height: 18px;
  flex-shrink: 0;
}

.nav__title {
  font-family: var(--font-display);
  font-weight: 700;
  font-size: 1.1rem;
  letter-spacing: -0.02em;
  color: var(--text);
  white-space: nowrap;
}

.nav__title-dim {
  color: var(--text-muted);
  font-weight: 400;
}

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

.nav__link {
  font-size: 0.88rem;
  font-weight: 500;
  color: var(--text-secondary);
  transition: color 0.2s ease;
}

.nav__link:hover {
  color: var(--accent-red);
}

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

.nav__toggle {
  display: none;
  width: 38px;
  height: 38px;
  border-radius: var(--radius-sm);
  background: var(--surface);
  border: 1px solid var(--border);
  align-items: center;
  justify-content: center;
  color: var(--text);
  transition: all 0.2s ease;
}

.nav__toggle:hover {
  background: var(--surface-hover);
  border-color: var(--border-strong);
}

.nav__toggle svg {
  width: 20px;
  height: 20px;
}

.nav__toggle .icon-close {
  display: none;
}

.nav__mobile-drawer {
  position: fixed;
  top: var(--nav-h);
  left: 0;
  right: 0;
  bottom: 0;
  background: #000000;
  z-index: 999;
  padding: 32px 24px;
  opacity: 0;
  visibility: hidden;
  pointer-events: none;
  transition: opacity 0.3s ease, visibility 0.3s ease;
  overflow-y: auto;
}

.nav__mobile-drawer.active {
  opacity: 1;
  visibility: visible;
  pointer-events: auto;
}

.nav__mobile-drawer-inner {
  display: flex;
  flex-direction: column;
  gap: 20px;
  max-width: 400px;
  margin: 0 auto;
}

.nav__mobile-link {
  font-size: 1.15rem;
  font-weight: 600;
  color: var(--text);
  padding: 12px 16px;
  border-radius: var(--radius-md);
  background: var(--surface);
  border: 1px solid var(--border);
  transition: all 0.2s ease;
  display: flex;
  align-items: center;
  gap: 10px;
}

.nav__mobile-link:hover {
  background: var(--surface-hover);
  border-color: var(--accent-red-border);
  color: var(--accent-red);
}

.nav__mobile-cta {
  margin-top: 16px;
}

@media (max-width: 1024px) {
  .nav__center {
    display: none;
  }
  .nav__toggle {
    display: flex;
  }
  /* drawer visibility controlled via .active class */
  .nav__mobile-drawer.active + .nav__actions .nav__toggle .icon-menu {
    display: none;
  }
}

.nav__gh {
  display: flex;
  align-items: center;
  gap: 8px;
  padding: 8px 14px;
  border-radius: var(--radius-full);
  background: var(--surface);
  border: 1px solid var(--border);
  font-size: 0.85rem;
  color: var(--text-secondary);
  transition: all 0.2s ease;
}

.nav__gh:hover {
  background: var(--surface-hover);
  color: var(--text);
  border-color: var(--border-strong);
}

.nav__gh svg {
  width: 16px;
  height: 16px;
  flex-shrink: 0;
}

.nav__stars {
  font-family: var(--font-mono);
  font-size: 0.8rem;
  color: var(--text-muted);
}

.btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 8px;
  padding: 10px 20px;
  border-radius: var(--radius-full);
  font-weight: 600;
  font-size: 0.9rem;
  white-space: nowrap;
  transition: all 0.25s var(--ease-out);
}

.btn svg {
  width: 18px;
  height: 18px;
  flex-shrink: 0;
  display: inline-block;
}

.btn--nav {
  background: var(--accent-red);
  color: #ffffff;
  padding: 8px 16px;
  font-size: 0.84rem;
}

.btn--nav:hover {
  transform: translateY(-1px);
  background: #dc2626;
  box-shadow: 0 4px 20px rgba(239, 68, 68, 0.35);
}

.btn--primary {
  background: var(--accent-red);
  color: #ffffff;
  border: 1px solid var(--accent-red);
}

.btn--primary:hover {
  transform: translateY(-2px);
  background: #dc2626;
  border-color: #dc2626;
  box-shadow: 0 6px 30px rgba(239, 68, 68, 0.35);
}

.btn--secondary {
  background: rgba(255, 255, 255, 0.05);
  color: var(--text);
  border: 1px solid var(--border);
  backdrop-filter: blur(10px);
}

.btn--secondary:hover {
  background: rgba(255, 255, 255, 0.09);
  border-color: var(--accent-red-border);
  color: #ffffff;
  transform: translateY(-2px);
}

.btn--hero {
  padding: 14px 28px;
  font-size: 1rem;
}

/* --------------------------------------------------------------------------
   Hero Section
   -------------------------------------------------------------------------- */
.hero {
  min-height: 100vh;
  padding-top: calc(var(--nav-h) + 40px);
  padding-bottom: 120px;
  margin-bottom: 80px;
  display: flex;
  flex-direction: column;
  align-items: center;
  text-align: center;
  position: relative;
  z-index: 1;
}

.hero__badge {
  display: inline-flex;
  align-items: center;
  gap: 10px;
  padding: 6px 16px;
  border-radius: var(--radius-full);
  background: var(--surface);
  border: 1px solid var(--border);
  font-family: var(--font-mono);
  font-size: 0.78rem;
  letter-spacing: 0.04em;
  color: var(--text-secondary);
  margin-bottom: 24px;
  text-decoration: none;
  transition: all 0.2s ease;
}

.hero__badge:hover {
  background: var(--surface-hover);
  border-color: var(--border-strong);
  color: var(--text);
  transform: translateY(-1px);
}

.badge__app-icon {
  width: 18px;
  height: 18px;
  border-radius: 4px;
  object-fit: cover;
  flex-shrink: 0;
}

.hero__headline {
  font-family: var(--font-display);
  font-size: clamp(2.2rem, 5.5vw, 4.5rem);
  font-weight: 700;
  line-height: 1.08;
  letter-spacing: -0.03em;
  color: var(--text);
  max-width: 900px;
  margin-bottom: 20px;
}

.hero__headline-glow {
  color: var(--text-secondary);
  background: linear-gradient(180deg, #ffffff 0%, rgba(255, 255, 255, 0.5) 100%);
  -webkit-background-clip: text;
  -webkit-text-fill-color: transparent;
}

.hero__subhead {
  font-size: clamp(0.95rem, 1.8vw, 1.2rem);
  color: var(--text-secondary);
  max-width: 620px;
  line-height: 1.6;
  margin-bottom: 32px;
  padding: 0 16px;
}

.hero__cta-group {
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 16px;
  margin-bottom: 48px;
}

/* Phone Mockup Frame */
.hero__phone-wrap {
  width: 100%;
  max-width: 300px;
  perspective: 1200px;
  margin-bottom: 48px;
}

.phone-frame {
  width: 100%;
  aspect-ratio: 9 / 18.5;
  max-height: 540px;
  background: #0d0d12;
  border-radius: 40px;
  border: 1px solid rgba(255, 255, 255, 0.16);
  box-shadow: 0 25px 80px rgba(0, 0, 0, 0.8), inset 0 0 0 1px rgba(255, 255, 255, 0.05);
  position: relative;
  overflow: hidden;
  padding: 10px;
  transform: translateZ(0);
  will-change: transform;
}

.phone-screen {
  width: 100%;
  height: 100%;
  background: #050505;
  border-radius: 30px;
  overflow: hidden;
  position: relative;
  border: 1px solid rgba(255, 255, 255, 0.05);
}

.screen-real-img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  object-position: top center;
}

.hero__scroll-indicator {
  display: flex;
  align-items: center;
  gap: 8px;
  font-size: 0.82rem;
  color: var(--text-muted);
  animation: float 2s infinite ease-in-out;
}

.hero__scroll-indicator svg {
  width: 16px;
  height: 16px;
  flex-shrink: 0;
}

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

/* --------------------------------------------------------------------------
   Product Story Mode — DESKTOP PINNED / MOBILE RESPONSIVE STACK
   -------------------------------------------------------------------------- */
.story {
  position: relative;
  width: 100%;
  z-index: 2;
  margin-top: 40px;
}

.story__desktop-only {
  display: flex;
  align-items: center;
  justify-content: center;
}

.story__mobile-only {
  display: none;
}

.story__pin {
  min-height: 100vh;
  width: 100%;
  padding-top: calc(var(--nav-h) + 40px);
  box-sizing: border-box;
}

.story__viewport {
  width: 100%;
  max-width: var(--page-max);
  padding: 0 40px;
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 80px;
  align-items: center;
  max-height: calc(100vh - var(--nav-h) - 40px);
}

.story__mockup-col {
  display: flex;
  justify-content: center;
}

.phone-frame--story {
  max-width: 320px;
  max-height: calc(100vh - var(--nav-h) - 80px);
}

/* Morphing Container inside Pinned Phone */
.morph-container {
  position: relative;
  width: 100%;
  height: 100%;
}

.story-screen {
  position: absolute;
  inset: 0;
  opacity: 0;
  transform: scale(0.96) translateZ(0);
  will-change: opacity, transform;
  transition: opacity 0.35s var(--ease-out), transform 0.35s var(--ease-out);
  pointer-events: none;
}

.story-screen.active {
  opacity: 1;
  transform: scale(1) translateZ(0);
  pointer-events: auto;
}

/* Story Right Column (Text Chapter Copies) */
.story__copy-col {
  display: flex;
  flex-direction: column;
  justify-content: center;
  position: relative;
  min-height: 320px;
}

.story-copy {
  position: absolute;
  top: 50%;
  transform: translateY(-50%) translateY(30px);
  opacity: 0;
  transition: opacity 0.5s var(--ease-out), transform 0.5s var(--ease-out);
  pointer-events: none;
}

.story-copy.active {
  opacity: 1;
  transform: translateY(-50%) translateY(0);
  pointer-events: auto;
}

.story__chapter-tag {
  font-family: var(--font-mono);
  font-size: 0.8rem;
  letter-spacing: 0.1em;
  color: var(--accent-red);
  margin-bottom: 16px;
}

.story__title {
  font-family: var(--font-display);
  font-size: clamp(1.8rem, 3.5vw, 2.8rem);
  font-weight: 700;
  letter-spacing: -0.02em;
  line-height: 1.1;
  color: var(--text);
  margin-bottom: 16px;
}

.story__desc {
  font-size: clamp(0.95rem, 1.4vw, 1.12rem);
  color: var(--text-secondary);
  line-height: 1.6;
  max-width: 480px;
  margin-bottom: 12px;
  min-height: 80px;
}

.story-doc-link {
  display: inline-flex;
  align-items: center;
  gap: 6px;
  font-family: var(--font-mono);
  font-size: 0.85rem;
  color: var(--accent-red);
  font-weight: 500;
  transition: color 0.2s ease;
}

.story-doc-link:hover {
  color: #ffffff;
  text-decoration: underline;
}

/* --------------------------------------------------------------------------
   Mobile & Tablet Story Cards (< 1024px)
   -------------------------------------------------------------------------- */
@media (max-width: 1023px) {
  .story__desktop-only {
    display: none !important;
  }
  .story__mobile-only {
    display: block !important;
    padding: 80px 20px;
  }

  .story-mobile__header {
    margin-bottom: 48px;
    text-align: center;
  }

  .story-mobile__list {
    display: flex;
    flex-direction: column;
    gap: 64px;
  }

  .story-mobile__card {
    background: var(--surface);
    border: 1px solid var(--border);
    border-radius: var(--radius-xl);
    padding: 32px 20px;
    display: flex;
    flex-direction: column;
    align-items: center;
    text-align: center;
    transition: border-color 0.3s ease;
  }

  .story-mobile__card:hover {
    border-color: var(--accent-red-border);
  }

  .story-mobile__frame {
    width: 100%;
    max-width: 280px;
    margin-bottom: 28px;
  }

  .story-mobile__content {
    display: flex;
    flex-direction: column;
    align-items: center;
  }

  .story-mobile__title {
    font-family: var(--font-display);
    font-size: 1.5rem;
    font-weight: 700;
    color: var(--text);
    margin-bottom: 12px;
  }

  .story-mobile__desc {
    font-size: 0.95rem;
    color: var(--text-secondary);
    line-height: 1.6;
    margin-bottom: 16px;
    max-width: 500px;
  }
}

/* --------------------------------------------------------------------------
   Real App Screenshot Showcase Section
   -------------------------------------------------------------------------- */
.showcase {
  padding: 120px 0;
  border-top: 1px solid var(--border);
}

.showcase__header {
  margin-bottom: 56px;
}

.showcase__grid {
  display: grid;
  grid-template-columns: repeat(auto-fill, minmax(300px, 1fr));
  gap: 24px;
}

.showcase-card {
  background: var(--surface);
  border: 1px solid var(--border);
  border-radius: var(--radius-lg);
  overflow: hidden;
  display: flex;
  flex-direction: column;
  transition: all 0.3s var(--ease-out);
}

.showcase-card:hover {
  background: var(--surface-hover);
  border-color: var(--accent-red-border);
  transform: translateY(-6px);
  box-shadow: 0 16px 40px rgba(0, 0, 0, 0.5);
}

.showcase-card__image {
  width: 100%;
  height: 360px;
  background: #08080c;
  border-bottom: 1px solid var(--border);
  display: flex;
  align-items: center;
  justify-content: center;
  padding: 20px;
  box-sizing: border-box;
}

.showcase-card__image img {
  max-width: 100%;
  max-height: 100%;
  object-fit: contain;
  border-radius: 18px;
  border: 1px solid rgba(255, 255, 255, 0.12);
  box-shadow: 0 10px 30px rgba(0, 0, 0, 0.6);
  transition: transform 0.4s var(--ease-out);
}

.showcase-card:hover .showcase-card__image img {
  transform: translateY(-4px) scale(1.02);
}

.showcase-card__body {
  padding: 24px;
  flex: 1;
  display: flex;
  flex-direction: column;
}

.showcase-card__title {
  font-size: 1.1rem;
  font-weight: 600;
  color: var(--text);
  margin-bottom: 6px;
}

.showcase-card__desc {
  font-size: 0.88rem;
  color: var(--text-secondary);
  line-height: 1.5;
  flex: 1;
}

.card-doc-link {
  display: inline-flex;
  align-items: center;
  gap: 4px;
  font-family: var(--font-mono);
  font-size: 0.78rem;
  color: var(--accent-red);
  margin-top: 14px;
  font-weight: 500;
  transition: color 0.2s ease;
}

.card-doc-link:hover {
  color: #ffffff;
  text-decoration: underline;
}

/* --------------------------------------------------------------------------
   Quick Tools Breakdown Grid (16 Utilities)
   -------------------------------------------------------------------------- */
.quicktools {
  padding: 120px 0;
  border-top: 1px solid var(--border);
}

.quicktools__header {
  margin-bottom: 56px;
}

.quicktools__grid {
  display: grid;
  grid-template-columns: repeat(auto-fill, minmax(240px, 1fr));
  gap: 20px;
}

.qt-card {
  background: var(--surface);
  border: 1px solid var(--border);
  border-radius: var(--radius-lg);
  padding: 24px;
  transition: all 0.3s var(--ease-out);
  display: flex;
  flex-direction: column;
}

.qt-card:hover {
  background: var(--surface-hover);
  border-color: var(--accent-red-border);
  transform: translateY(-4px);
  box-shadow: 0 12px 30px rgba(0, 0, 0, 0.4);
}

.qt-card__icon {
  width: 40px;
  height: 40px;
  border-radius: 12px;
  background: rgba(239, 68, 68, 0.08);
  border: 1px solid rgba(239, 68, 68, 0.2);
  display: grid;
  place-items: center;
  color: var(--accent-red);
  margin-bottom: 16px;
  flex-shrink: 0;
}

.qt-card__icon svg {
  width: 20px;
  height: 20px;
  flex-shrink: 0;
}

.qt-card__title {
  font-size: 1.05rem;
  font-weight: 600;
  color: var(--text);
  margin-bottom: 6px;
}

.qt-card__desc {
  font-size: 0.86rem;
  color: var(--text-secondary);
  line-height: 1.5;
  flex: 1;
}

.qt-doc-link {
  display: inline-flex;
  align-items: center;
  gap: 4px;
  font-family: var(--font-mono);
  font-size: 0.76rem;
  color: var(--accent-red);
  margin-top: 12px;
  font-weight: 500;
  transition: color 0.2s ease;
}

.qt-doc-link:hover {
  color: #ffffff;
  text-decoration: underline;
}

/* --------------------------------------------------------------------------
   Capabilities / Feature Grid
   -------------------------------------------------------------------------- */
.features {
  padding: 120px 0;
  border-top: 1px solid var(--border);
}

.section-tag {
  font-family: var(--font-mono);
  font-size: 0.78rem;
  letter-spacing: 0.1em;
  color: var(--accent-red);
  margin-bottom: 12px;
}

.section-title {
  font-family: var(--font-display);
  font-size: clamp(2rem, 4.5vw, 3.2rem);
  font-weight: 700;
  line-height: 1.1;
  letter-spacing: -0.02em;
  color: var(--text);
  margin-bottom: 16px;
}

.text-dim {
  color: var(--text-muted);
}

.section-sub {
  font-size: 1.1rem;
  color: var(--text-secondary);
  max-width: 580px;
}

.features__header {
  margin-bottom: 64px;
}

.features__grid {
  display: grid;
  grid-template-columns: repeat(auto-fill, minmax(260px, 1fr));
  gap: 20px;
}

.feat-card {
  background: var(--surface);
  border: 1px solid var(--border);
  border-radius: var(--radius-lg);
  padding: 28px;
  transition: all 0.3s var(--ease-out);
  display: flex;
  flex-direction: column;
}

.feat-card:hover {
  background: var(--surface-hover);
  border-color: var(--accent-red-border);
  transform: translateY(-4px);
  box-shadow: 0 12px 32px rgba(0, 0, 0, 0.4);
}

.feat-card__icon {
  width: 42px;
  height: 42px;
  border-radius: 12px;
  background: rgba(239, 68, 68, 0.08);
  border: 1px solid var(--accent-red-border);
  display: grid;
  place-items: center;
  color: var(--accent-red);
  margin-bottom: 20px;
  flex-shrink: 0;
}

.feat-card__icon svg {
  width: 22px;
  height: 22px;
  flex-shrink: 0;
}

.feat-card__title {
  font-size: 1.1rem;
  font-weight: 600;
  color: var(--text);
  margin-bottom: 8px;
}

.feat-card__desc {
  font-size: 0.9rem;
  color: var(--text-secondary);
  line-height: 1.5;
  flex: 1;
}

.feat-doc-link {
  display: inline-flex;
  align-items: center;
  gap: 4px;
  font-family: var(--font-mono);
  font-size: 0.78rem;
  color: var(--accent-red);
  margin-top: 16px;
  font-weight: 500;
  transition: color 0.2s ease;
}

.feat-doc-link:hover {
  color: #ffffff;
  text-decoration: underline;
}

/* --------------------------------------------------------------------------
   Comparison Table
   -------------------------------------------------------------------------- */
.compare {
  padding: 120px 0;
  border-top: 1px solid var(--border);
}

.compare__header {
  margin-bottom: 48px;
}

.compare__table-wrap {
  width: 100%;
  overflow-x: auto;
  border-radius: var(--radius-lg);
  border: 1px solid var(--border);
  background: var(--surface);
}

.compare-table {
  width: 100%;
  border-collapse: collapse;
  text-align: left;
  font-size: 0.92rem;
}

.compare-table th,
.compare-table td {
  padding: 18px 24px;
  border-bottom: 1px solid var(--border);
}

.compare-table th {
  font-family: var(--font-mono);
  font-size: 0.8rem;
  letter-spacing: 0.05em;
  color: var(--text-muted);
  font-weight: 500;
}

.compare-table th.th-highlight {
  color: var(--accent-red);
  background: rgba(239, 68, 68, 0.04);
}

.compare-table td.td-highlight {
  font-weight: 600;
  color: var(--text);
  background: rgba(239, 68, 68, 0.04);
}

.pill-check {
  color: var(--accent-red);
  font-weight: 600;
}

.pill-cross {
  color: var(--text-muted);
}

/* --------------------------------------------------------------------------
   Social Proof & Open Source Stats
   -------------------------------------------------------------------------- */
.proof {
  padding: 80px 0;
  border-top: 1px solid var(--border);
}

.proof__grid {
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  gap: 24px;
}

.proof__stat-card {
  background: var(--surface);
  border: 1px solid var(--border);
  border-radius: var(--radius-md);
  padding: 24px;
  text-align: center;
}

.proof__num {
  font-family: var(--font-display);
  font-size: 2.5rem;
  font-weight: 700;
  color: var(--text);
  margin-bottom: 4px;
}

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

/* --------------------------------------------------------------------------
   FAQ Section
   -------------------------------------------------------------------------- */
.faq {
  padding: 120px 0;
  border-top: 1px solid var(--border);
}

.faq__header {
  margin-bottom: 48px;
  text-align: center;
}

.faq__list {
  display: flex;
  flex-direction: column;
  gap: 16px;
}

.faq__item {
  background: var(--surface);
  border: 1px solid var(--border);
  border-radius: var(--radius-md);
  overflow: hidden;
  transition: border-color 0.2s ease;
}

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

.faq__q {
  width: 100%;
  padding: 20px 24px;
  display: flex;
  align-items: center;
  justify-content: space-between;
  text-align: left;
  font-size: 1.05rem;
  font-weight: 600;
  color: var(--text);
}

.faq__q svg {
  width: 20px;
  height: 20px;
  color: var(--text-muted);
  flex-shrink: 0;
  transition: transform 0.3s ease;
}

.faq__item.open .faq__q svg {
  transform: rotate(45deg);
}

.faq__a {
  max-height: 0;
  overflow: hidden;
  transition: max-height 0.35s var(--ease-out);
}

.faq__a-inner {
  padding: 0 24px 20px;
  font-size: 0.95rem;
  color: var(--text-secondary);
  line-height: 1.6;
}

/* --------------------------------------------------------------------------
   Final Call To Action — REBELROOT RED GLOW
   -------------------------------------------------------------------------- */
.final-cta {
  padding: 120px 0 160px;
  border-top: 1px solid var(--border);
}

.final-cta__box {
  background: linear-gradient(180deg, rgba(255, 255, 255, 0.03) 0%, rgba(255, 255, 255, 0.01) 100%);
  border: 1px solid var(--border-strong);
  border-radius: var(--radius-xl);
  padding: 80px 40px;
  text-align: center;
  position: relative;
  overflow: hidden;
}

.final-cta__glow {
  position: absolute;
  top: 50%;
  left: 50%;
  transform: translate(-50%, -50%);
  width: 400px;
  height: 250px;
  background: radial-gradient(circle, rgba(239, 68, 68, 0.14) 0%, transparent 70%);
  filter: blur(60px);
  pointer-events: none;
}

.final-cta__title {
  font-family: var(--font-display);
  font-size: clamp(2rem, 5vw, 3.5rem);
  font-weight: 700;
  letter-spacing: -0.02em;
  line-height: 1.15;
  color: var(--text);
  margin-bottom: 16px;
  position: relative;
}

.text-glow {
  color: var(--text-secondary);
}

.final-cta__sub {
  font-size: 1.15rem;
  color: var(--text-secondary);
  margin-bottom: 40px;
  position: relative;
}

.final-cta__actions {
  display: flex;
  justify-content: center;
  gap: 16px;
  position: relative;
}

/* --------------------------------------------------------------------------
   Footer
   -------------------------------------------------------------------------- */
.footer {
  border-top: 1px solid var(--border);
  padding: 40px 0;
  font-size: 0.88rem;
  color: var(--text-muted);
}

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

.footer__links {
  display: flex;
  gap: 24px;
}

.footer__links a {
  transition: color 0.2s ease;
}

.footer__links a:hover {
  color: var(--accent-red);
}

/* --------------------------------------------------------------------------
   Responsive Media Queries — ULTRA-FAST MOBILE PERFORMANCE
   -------------------------------------------------------------------------- */
.showcase, .quicktools, .features, .compare, .proof, .faq, .final-cta {
  content-visibility: auto;
  contain-intrinsic-size: 1px 600px;
}

@media (max-width: 1024px) {
  .nav {
    padding: 0 20px;
  }
  .nav__center {
    display: none;
  }
  .proof__grid {
    grid-template-columns: repeat(2, 1fr);
  }
}

@media (max-width: 768px) {
  html, body {
    -webkit-overflow-scrolling: touch;
  }

  .ambient-glow, .final-cta__glow, .grain {
    display: none !important;
  }

  .nav {
    padding: 0 16px;
    backdrop-filter: none !important;
    -webkit-backdrop-filter: none !important;
    background: #09090e !important;
  }

  .nav__mobile-drawer {
    backdrop-filter: none !important;
    -webkit-backdrop-filter: none !important;
    background: #050505 !important;
  }

  .nav__gh {
    display: none;
  }

  .nav__title {
    font-size: 0.95rem;
  }

  .btn--nav {
    padding: 6px 12px;
    font-size: 0.76rem;
  }

  .story-mobile__card, .showcase-card, .qt-card, .feat-card {
    contain: content;
    box-shadow: none !important;
  }
}

@media (max-width: 640px) {
  .hero {
    padding-top: calc(var(--nav-h) + 20px);
    padding-bottom: 40px;
    margin-bottom: 40px;
  }
  .hero__headline {
    font-size: 2rem;
    line-height: 1.12;
  }
  .hero__subhead {
    font-size: 0.95rem;
    margin-bottom: 24px;
  }
  .hero__cta-group {
    flex-direction: column;
    width: 100%;
    max-width: 320px;
    gap: 12px;
    margin-bottom: 36px;
  }
  .btn--hero {
    width: 100%;
    justify-content: center;
    padding: 12px 20px;
    font-size: 0.92rem;
  }
  .hero__phone-wrap {
    max-width: 260px;
  }
  .proof__grid {
    grid-template-columns: 1fr;
  }
  .showcase__grid {
    grid-template-columns: 1fr;
  }
  .quicktools__grid {
    grid-template-columns: 1fr;
  }
  .features__grid {
    grid-template-columns: 1fr;
  }
  .showcase-card__image {
    height: 280px;
  }
  .final-cta__box {
    padding: 48px 20px;
  }
  .final-cta__actions {
    flex-direction: column;
    width: 100%;
    align-items: center;
  }
  .footer__inner {
    flex-direction: column;
    gap: 16px;
    text-align: center;
  }
}

@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;
  }
}
