/* Clean & Airy Design System */
:root {
  --font-sans: 'Inter', -apple-system, BlinkMacSystemFont, sans-serif;
  --font-display: 'Plus Jakarta Sans', sans-serif;
  
  --color-bg: #ffffff;
  --color-bg-subtle: #f9fafb;
  --color-text: #111827;
  --color-text-subtle: #6b7280;
  --color-primary: #2563eb;
  --color-primary-dark: #1d4ed8;
  --color-accent: #f59e0b;
  --color-border: #e5e7eb;
  
  --shadow-xs: 0 1px 2px 0 rgba(0, 0, 0, 0.05);
  --shadow-sm: 0 4px 6px -1px rgba(0, 0, 0, 0.05);
  --shadow-md: 0 10px 15px -3px rgba(0, 0, 0, 0.05);
  --shadow-lg: 0 20px 25px -5px rgba(0, 0, 0, 0.05);
  
  --radius-sm: 8px;
  --radius-md: 16px;
  --radius-lg: 24px;
}

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

body {
  font-family: var(--font-sans);
  background: var(--color-bg);
  color: var(--color-text);
  line-height: 1.6;
  overflow-x: hidden;
}

.container {
  max-width: 1100px;
  margin: 0 auto;
  padding: 0 24px;
}

/* Responsive Navigation */
.nav {
  position: fixed;
  top: 0;
  left: 0;
  right: 0;
  height: 70px;
  background: rgba(255, 255, 255, 0.9);
  backdrop-filter: blur(12px);
  z-index: 1000;
  border-bottom: 1px solid var(--color-border);
}

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

.nav-logo {
  display: flex;
  align-items: center;
  gap: 10px;
  text-decoration: none;
  color: var(--color-text);
  font-weight: 700;
  font-family: var(--font-display);
  font-size: 18px;
  z-index: 1002;
}

.nav-logo img { width: 32px; border-radius: 8px; }

/* Desktop Menu */
.nav-links {
  display: flex;
  gap: 32px;
  align-items: center;
}

.nav-links a {
  text-decoration: none;
  color: var(--color-text-subtle);
  font-size: 15px;
  font-weight: 500;
  transition: color 0.2s;
}

.nav-links a:hover { color: var(--color-primary); }

.nav-cta {
  background: var(--color-text);
  color: white !important;
  padding: 10px 20px;
  border-radius: 99px;
  font-size: 14px !important;
  transition: transform 0.2s, background 0.2s !important;
}

.nav-cta:hover {
  background: black !important;
  transform: translateY(-1px);
}

/* Mobile Menu Toggle */
.mobile-menu-btn {
  display: none;
  background: none;
  border: none;
  cursor: pointer;
  z-index: 1002;
  padding: 8px;
}

.mobile-menu-btn span {
  display: block;
  width: 24px;
  height: 2px;
  background: var(--color-text);
  margin: 5px 0;
  transition: 0.3s;
}

/* Drawer + Backdrop (mobile) */
.nav-backdrop {
  position: fixed;
  inset: 0;
  background: rgba(17, 24, 39, 0.35);
  opacity: 0;
  pointer-events: none;
  transition: opacity 0.25s ease;
  z-index: 1001;
}

.nav-drawer {
  position: fixed;
  top: 0;
  right: 0;
  height: 100vh;
  width: min(380px, 92vw);
  background: #fff;
  border-left: 1px solid var(--color-border);
  transform: translateX(105%);
  transition: transform 0.25s ease;
  z-index: 1002;
  padding: 18px 18px 24px;
  display: flex;
  flex-direction: column;
  gap: 12px;
}

.nav-drawer-header {
  display: flex;
  align-items: center;
  justify-content: space-between;
  padding-bottom: 10px;
  border-bottom: 1px solid var(--color-border);
}

.nav-drawer-title {
  font-family: var(--font-display);
  font-weight: 700;
  font-size: 16px;
}

.nav-drawer-close {
  appearance: none;
  border: 1px solid var(--color-border);
  background: #fff;
  border-radius: 10px;
  padding: 8px 10px;
  cursor: pointer;
  font-weight: 700;
  line-height: 1;
}

.nav-drawer-links {
  display: flex;
  flex-direction: column;
  gap: 10px;
  padding-top: 8px;
}

.nav-drawer-links a {
  text-decoration: none;
  color: var(--color-text);
  font-size: 16px;
  font-weight: 600;
  padding: 12px 12px;
  border-radius: 12px;
  border: 1px solid transparent;
}

.nav-drawer-links a:hover {
  background: var(--color-bg-subtle);
  border-color: var(--color-border);
}

body.nav-open {
  overflow: hidden;
}

body.nav-open .nav-backdrop {
  opacity: 1;
  pointer-events: auto;
}

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

/* Hero Section */
.hero {
  padding: 180px 0 100px;
  background: linear-gradient(180deg, var(--color-bg-subtle) 0%, #fff 100%);
  position: relative;
}

.hero::before {
  content: '';
  position: absolute;
  inset: 0;
  background: url('/assets/hero-bg.webp') center / cover no-repeat;
  opacity: 0.75;
  pointer-events: none;
}

.hero::after {
  content: '';
  position: absolute;
  inset: 0;
  background: linear-gradient(180deg, rgba(249, 250, 251, 0.72) 0%, rgba(255, 255, 255, 0.85) 100%);
  pointer-events: none;
}

.hero > .container {
  position: relative;
  z-index: 1;
}

.hero-content {
  text-align: center;
  max-width: 800px;
  margin: 0 auto 80px;
}

.hero-badge {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  padding: 6px 16px;
  background: white;
  border: 1px solid var(--color-border);
  border-radius: 99px;
  font-size: 13px;
  font-weight: 500;
  color: var(--color-text-subtle);
  margin-bottom: 32px;
  box-shadow: var(--shadow-sm);
}

.pulse {
  width: 8px;
  height: 8px;
  background: #10b981;
  border-radius: 50%;
  box-shadow: 0 0 0 4px rgba(16, 185, 129, 0.2);
}

.hero-title {
  font-family: var(--font-display);
  font-size: 64px;
  line-height: 1.1;
  font-weight: 800;
  color: var(--color-text);
  margin-bottom: 24px;
  letter-spacing: -0.03em;
}

.hero-title span {
  color: var(--color-primary);
  /* Optional gradient text if desired */
  /* background: linear-gradient(135deg, #2563eb, #4f46e5); -webkit-background-clip: text; -webkit-text-fill-color: transparent; */
}

.hero-desc {
  font-size: 20px;
  color: var(--color-text-subtle);
  max-width: 580px;
  margin: 0 auto 40px;
}

.hero-btns {
  display: flex;
  justify-content: center;
  gap: 16px;
}

.btn {
  display: inline-flex;
  align-items: center;
  gap: 10px;
  padding: 14px 28px;
  border-radius: 12px;
  font-weight: 600;
  text-decoration: none;
  transition: all 0.2s;
  font-size: 16px;
}

.btn-primary {
  background: var(--color-primary);
  color: white;
  box-shadow: var(--shadow-md);
}

.btn-primary:hover {
  background: var(--color-primary-dark);
  transform: translateY(-2px);
  box-shadow: var(--shadow-lg);
}

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

.btn-secondary:hover {
  background: var(--color-bg-subtle);
  border-color: #d1d5db;
}

/* Feature 1: The Visual Comparison (Light Mode) */
.comparison-section {
  padding: 100px 0;
}

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

.comp-text h2 {
  font-family: var(--font-display);
  font-size: 40px;
  font-weight: 700;
  margin-bottom: 24px;
  line-height: 1.2;
}

.comp-text p {
  font-size: 18px;
  color: var(--color-text-subtle);
  margin-bottom: 32px;
}

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

.check-item {
  display: flex;
  align-items: center;
  gap: 12px;
  font-weight: 500;
}

.check-icon {
  width: 24px;
  height: 24px;
  background: #dbeafe;
  color: var(--color-primary);
  border-radius: 50%;
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 14px;
}

.comp-visual {
  background: white;
  border: 1px solid var(--color-border);
  border-radius: var(--radius-lg);
  padding: 40px;
  box-shadow: var(--shadow-lg);
  position: relative;
}

/* Before/After slider */
.ba {
  display: grid;
  gap: 12px;
}

.ba-stage {
  position: relative;
  border-radius: 18px;
  overflow: hidden;
  border: 1px solid var(--color-border);
  background: #0b0f17;
  box-shadow: var(--shadow-md);
  min-height: 320px;
}

.ba-layer {
  position: absolute;
  inset: 0;
}

.ba-after {
  z-index: 1;
}

.ba-before {
  z-index: 2;
  width: var(--pos);
  overflow: hidden;
}

.ba-handle {
  position: absolute;
  top: 0;
  bottom: 0;
  left: var(--pos);
  transform: translateX(-50%);
  width: 44px;
  z-index: 4;
  display: grid;
  place-items: center;
  pointer-events: none;
}

.ba-handle::before {
  content: '';
  position: absolute;
  top: 0;
  bottom: 0;
  width: 2px;
  background: rgba(255, 255, 255, 0.75);
  box-shadow: 0 0 0 1px rgba(0,0,0,0.25);
}

.ba-grip {
  width: 32px;
  height: 32px;
  border-radius: 999px;
  background: #fff;
  border: 1px solid rgba(17, 24, 39, 0.18);
  box-shadow: 0 10px 25px rgba(0,0,0,0.2);
  position: relative;
}

.ba-grip::before,
.ba-grip::after {
  content: '';
  position: absolute;
  top: 50%;
  width: 7px;
  height: 7px;
  border-top: 2px solid #111827;
  border-right: 2px solid #111827;
  transform: translateY(-50%) rotate(45deg);
  opacity: 0.65;
}

.ba-grip::before {
  left: 9px;
  transform: translateY(-50%) rotate(225deg);
}

.ba-grip::after {
  right: 9px;
}

.ba-range {
  position: absolute;
  inset: 0;
  z-index: 5;
  opacity: 0;
  cursor: ew-resize;
}

.ba-labels {
  display: flex;
  justify-content: space-between;
  padding: 0 6px;
}

.ba-label {
  font-size: 12px;
  font-weight: 700;
  letter-spacing: 0.06em;
  text-transform: uppercase;
  color: var(--color-text-subtle);
}

/* Stylized mock “screens” (no external images needed) */
.mock-screen {
  height: 100%;
  padding: 16px;
  display: grid;
  gap: 14px;
  background: radial-gradient(1200px 600px at 10% 0%, rgba(37, 99, 235, 0.18), transparent 60%),
              radial-gradient(1000px 600px at 90% 100%, rgba(245, 158, 11, 0.16), transparent 60%),
              #0b0f17;
}

.mock-topbar {
  display: flex;
  align-items: center;
  gap: 8px;
  padding: 10px 12px;
  border-radius: 14px;
  border: 1px solid rgba(255, 255, 255, 0.12);
  background: rgba(255, 255, 255, 0.06);
}

.mock-topbar .dot {
  width: 9px;
  height: 9px;
  border-radius: 999px;
  background: rgba(255, 255, 255, 0.22);
}

.mock-url {
  margin-left: 6px;
  font-size: 12px;
  color: rgba(255, 255, 255, 0.72);
}

.mock-grid {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 12px;
}

.tile {
  aspect-ratio: 16 / 9;
  border-radius: 14px;
  background:
    linear-gradient(135deg, rgba(255, 255, 255, 0.18), rgba(255, 255, 255, 0.05));
  border: 1px solid rgba(255, 255, 255, 0.10);
}

.tile.hot {
  outline: 2px solid rgba(245, 158, 11, 0.9);
  box-shadow: 0 0 0 4px rgba(245, 158, 11, 0.18);
}

.tile.hidden {
  background: rgba(37, 99, 235, 0.12);
  border: 1px dashed rgba(37, 99, 235, 0.55);
  position: relative;
}

.tile.hidden::after {
  content: 'Hidden';
  position: absolute;
  inset: 0;
  display: grid;
  place-items: center;
  color: rgba(255, 255, 255, 0.78);
  font-size: 12px;
  font-weight: 700;
}

.mock-badge {
  justify-self: start;
  font-size: 12px;
  font-weight: 700;
  letter-spacing: 0.02em;
  padding: 8px 10px;
  border-radius: 999px;
  border: 1px solid rgba(255, 255, 255, 0.16);
  background: rgba(255, 255, 255, 0.08);
  color: rgba(255, 255, 255, 0.85);
}

.mock-badge.warn {
  border-color: rgba(245, 158, 11, 0.45);
}

.mock-badge.ok {
  border-color: rgba(16, 185, 129, 0.45);
}

/* Feature 2: Bento Grid (Clean Light) */
.bento-section {
  padding: 100px 0;
  background: var(--color-bg-subtle);
}

.section-header {
  text-align: center;
  margin-bottom: 60px;
}

.section-header h2 {
  font-family: var(--font-display);
  font-size: 36px;
  font-weight: 700;
  margin-bottom: 16px;
}

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

.bento-editorial {
  grid-auto-rows: 1fr;
}

.card {
  background: white;
  padding: 32px;
  border-radius: var(--radius-md);
  border: 1px solid var(--color-border);
  transition: transform 0.2s, box-shadow 0.2s;
}

.card:hover {
  transform: translateY(-4px);
  box-shadow: var(--shadow-md);
}

.card-hero {
  position: relative;
  overflow: hidden;
}

.card-hero::before {
  content: '';
  position: absolute;
  inset: -2px;
  background: linear-gradient(135deg, rgba(37, 99, 235, 0.12), rgba(245, 158, 11, 0.10));
  pointer-events: none;
}

.card-hero > * {
  position: relative;
}

.pill-row {
  margin-top: 18px;
  display: flex;
  flex-wrap: wrap;
  gap: 10px;
}

.pill {
  font-size: 12px;
  font-weight: 700;
  letter-spacing: 0.02em;
  padding: 8px 10px;
  border-radius: 999px;
  border: 1px solid rgba(17, 24, 39, 0.12);
  background: rgba(255, 255, 255, 0.8);
}

.card-mini p {
  font-size: 14px;
}

.card-wide {
  position: relative;
  overflow: hidden;
}

.mini-strip {
  margin-top: 18px;
  display: grid;
  grid-template-columns: repeat(5, 1fr);
  gap: 10px;
}

.mini-tile {
  aspect-ratio: 16 / 9;
  border-radius: 12px;
  background: linear-gradient(135deg, rgba(17, 24, 39, 0.12), rgba(17, 24, 39, 0.05));
  border: 1px solid rgba(17, 24, 39, 0.08);
}

.mini-tile.hidden {
  background: rgba(37, 99, 235, 0.10);
  border: 1px dashed rgba(37, 99, 235, 0.40);
}

.card-icon {
  width: 48px;
  height: 48px;
  background: var(--color-bg-subtle);
  border-radius: 12px;
  display: flex;
  align-items: center;
  justify-content: center;
  margin-bottom: 24px;
  overflow: hidden;
  border: 1px solid rgba(17, 24, 39, 0.06);
}

.card-icon img {
  width: 44px;
  height: 44px;
  display: block;
}

.card h3 {
  font-size: 20px;
  font-weight: 600;
  margin-bottom: 12px;
}

.card p {
  color: var(--color-text-subtle);
  font-size: 15px;
}

/* Span classes for Bento */
.span-2 { grid-column: span 2; }

/* FAQ (Minimal Accordion) */
.faq-section {
  padding: 100px 0;
}

.faq-container {
  max-width: 700px;
  margin: 0 auto;
}

details {
  border-bottom: 1px solid var(--color-border);
  padding: 24px 0;
}

summary {
  font-size: 18px;
  font-weight: 600;
  cursor: pointer;
  list-style: none;
  display: flex;
  justify-content: space-between;
  align-items: center;
}

summary::-webkit-details-marker { display: none; }

summary::after {
  content: '+';
  font-size: 24px;
  font-weight: 300;
  color: var(--color-text-subtle);
}

details[open] summary::after { content: '-'; }

details p {
  margin-top: 12px;
  color: var(--color-text-subtle);
}

/* Trust strip */
.trust-section {
  padding: 80px 0;
  background: #fff;
}

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

.trust-card {
  border: 1px solid var(--color-border);
  border-radius: 16px;
  padding: 22px;
  background: #fff;
  box-shadow: var(--shadow-xs);
}

.trust-mark {
  font-family: var(--font-display);
  font-weight: 800;
  font-size: 14px;
  letter-spacing: 0.04em;
  text-transform: uppercase;
  margin-bottom: 10px;
  display: inline-block;
  padding: 6px 10px;
  border-radius: 999px;
  border: 1px solid rgba(17, 24, 39, 0.12);
  background: var(--color-bg-subtle);
}

.trust-card p {
  color: var(--color-text-subtle);
  font-size: 14px;
  line-height: 1.7;
}

/* Footer */
.footer {
  padding: 60px 0;
  border-top: 1px solid var(--color-border);
  background: white;
}

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

.footer-brand {
  display: flex;
  align-items: center;
  gap: 12px;
  font-weight: 600;
  color: var(--color-text);
}

.footer-brand img { width: 24px; border-radius: 6px; }

.footer-nav {
  display: flex;
  gap: 24px;
}

.footer-nav a {
  color: var(--color-text-subtle);
  text-decoration: none;
  font-size: 14px;
}

.footer-nav a:hover { color: var(--color-primary); }

/* MOBILE RESPONSIVE FIXES */
@media (max-width: 768px) {
  .hero {
    background: linear-gradient(180deg, var(--color-bg-subtle) 0%, #fff 100%);
  }

  .hero::before {
    background-image: url('/assets/hero-bg-mobile.webp');
    opacity: 0.82;
  }

  #navLinksDesktop {
    display: none;
  }
  .mobile-menu-btn { display: block; }

  .hero-title { font-size: 42px; }
  .comp-grid { grid-template-columns: 1fr; }
  .bento-grid { grid-template-columns: 1fr; }
  .span-2 { grid-column: span 1; }
  .trust-grid { grid-template-columns: 1fr; }
  .mini-strip { grid-template-columns: repeat(3, 1fr); }
  
  .hero-btns { flex-direction: column; }
  .btn { width: 100%; justify-content: center; }
}

/* Motion polish */
@media (prefers-reduced-motion: reduce) {
  * {
    animation: none !important;
    transition: none !important;
    scroll-behavior: auto !important;
  }
}

.reveal {
  opacity: 0;
  transform: translateY(10px);
  transition: opacity 500ms ease, transform 500ms ease;
}

.reveal.is-visible {
  opacity: 1;
  transform: translateY(0);
}
