/* ═══════════════════════════════════════
   WorkNow — World-Class Landing Page
   ═══════════════════════════════════════ */

*, *::before, *::after { box-sizing: border-box; margin: 0; padding: 0; }
html { scroll-behavior: smooth; -webkit-font-smoothing: antialiased; -moz-osx-font-smoothing: grayscale; }
body {
  font-family: 'Inter', system-ui, -apple-system, 'Segoe UI', Roboto, sans-serif;
  background: var(--bg);
  color: var(--text);
  line-height: 1.6;
  overflow-x: hidden;
  transition: background 0.4s ease, color 0.4s ease, opacity 0.5s ease;
}
body.loading { opacity: 0; }
a { color: inherit; text-decoration: none; }
button, [role="button"], [onclick] { cursor: pointer; -webkit-tap-highlight-color: transparent; }
button { border: none; background: none; font-family: inherit; color: inherit; }
img { display: block; max-width: 100%; height: auto; }

/* ≈ Lazy image fade-in */
img[loading="lazy"] { opacity: 0; transition: opacity 0.6s ease; }
img[loading="lazy"].loaded, img[loading="lazy"][src*=".webp"] { opacity: 1; }
ul, ol { list-style: none; }

/* ≈ Content sections — lazy render */
.section, .hero-banner {
  content-visibility: auto;
  contain-intrinsic-size: 400px;
}
#features { contain-intrinsic-size: 500px; }
#gallery { contain-intrinsic-size: 500px; }
#reviews { contain-intrinsic-size: 600px; }
.stats-section { contain-intrinsic-size: 300px; }

.skip-link {
  position: fixed; top: -100%; left: 16px; z-index: var(--z-skip);
  padding: 12px 24px; background: var(--accent); color: var(--text);
  font-weight: 600; border-radius: 0 0 8px 8px;
  transition: top 0.2s;
}
.skip-link:focus { top: 0; }

:focus-visible {
  outline: 2px solid var(--accent);
  outline-offset: 2px;
}

.reveal { opacity: 0; transform: translateY(30px); transition: opacity 0.7s ease, transform 0.7s cubic-bezier(0.22, 1, 0.36, 1); }
.reveal.visible { opacity: 1; transform: translateY(0); }
.reveal-delay-1 { transition-delay: 0.1s; }
.reveal-delay-2 { transition-delay: 0.2s; }
.reveal-delay-3 { transition-delay: 0.3s; }
.reveal-delay-4 { transition-delay: 0.4s; }
.reveal-delay-5 { transition-delay: 0.5s; }

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

/* ≈ Page entrance fade */
body { animation: pageIn 0.6s ease both; }
@keyframes pageIn { from { opacity: 0; } to { opacity: 1; } }

/* ≈ Button press feedback */
.btn:active, .icon-btn:active, .lang-btn:active { transform: scale(0.96); }
.btn-primary:active { transform: scale(0.96) translateY(-1px); }

/* ─── Light Theme ─── */
:root {
  --bg: #F5F5F7;
  --surface: #FFFFFF;
  --surface-alt: #EFEFF0;
  --border: #E0E0E0;
  --text: #1D1D1F;
  --text-soft: #515154;
  --text-muted: #8E8E93;
  --accent: #007AFF;
  --accent-hover: #0066D6;
  --accent-glow: rgba(0,122,255,0.25);
  --cyan: #00D9FF;
  --volt: #DFFF00;
  --volt-hover: #CCE600;
  --header-bg: #16191c;
  --header-text: #FFFFFF;
  --radius: 12px;
  --radius-lg: 20px;
  --radius-xl: 28px;
  --max-w: 1200px;
  --hdr-h: 64px;
  --shadow-card: 0 1px 3px rgba(0,0,0,0.04), 0 4px 12px rgba(0,0,0,0.06);
  --shadow-card-hover: 0 8px 30px rgba(0,0,0,0.08);
  --shadow-float: 0 8px 32px rgba(0,0,0,0.12);
  /* Z-index scale (use named vars instead of raw numbers) */
  --z-base: 0;
  --z-content: 10;
  --z-float: 20;
  --z-float-top: 40;
  --z-hero: 30;
  --z-header: 100;
  --z-nav: 200;
  --z-drawer: 300;
  --z-overlay: 400;
  --z-modal: 450;
  --z-popover: 500;
  --z-toast: 600;
  --z-skip: 10000;
}

/* ─── Dark Theme ─── */
[data-theme="dark"] {
  --bg: #1F1F1F;
  --surface: #2A2A2A;
  --surface-alt: #242424;
  --border: #333333;
  --text: #F5F5F7;
  --text-soft: #A0A0A0;
  --text-muted: #6F6F6F;
  --accent: #DFFF00;
  --accent-hover: #F0FF66;
  --accent-glow: rgba(223,255,0,0.25);
  --volt: #DFFF00;
  --volt-hover: #F0FF66;
  --header-bg: #16191c;
  --header-text: #F5F5F7;
  --shadow-card: 0 1px 3px rgba(0,0,0,0.2), 0 4px 12px rgba(0,0,0,0.15);
  --shadow-card-hover: 0 8px 30px rgba(0,0,0,0.3);
  --shadow-float: 0 8px 32px rgba(0,0,0,0.4);
}

/* ─── Layout ─── */
.container { width: 100%; max-width: var(--max-w); margin: 0 auto; padding: 0 24px; }
@media (min-width: 1024px) { .container { padding: 0 48px; } }

.section { padding: 120px 0; }
@media (max-width: 768px) { .section { padding: 80px 0; } }

.sec-header { text-align: center; max-width: 640px; margin: 0 auto 64px; }
.sec-label {
  display: inline-block; font-size: 12px; font-weight: 700;
  letter-spacing: 0.1em; text-transform: uppercase; color: var(--accent); margin-bottom: 14px;
}
.sec-title { font-size: clamp(32px, 3.8vw, 48px); font-weight: 800; line-height: 1.1; letter-spacing: -0.025em; }
.sec-desc { font-size: 17px; color: var(--text-soft); margin-top: 16px; line-height: 1.7; }
@media (max-width: 768px) { .sec-header { margin-bottom: 48px; } }

/* ─── Buttons ─── */
.btn {
  display: inline-flex; align-items: center; gap: 8px;
  padding: 10px 22px; border-radius: 999px; font-weight: 600;
  font-size: 13px; transition: all 0.25s ease; white-space: nowrap;
}
.btn i { font-size: 17px; }
@media (max-width: 768px) {
  .btn { padding: 8px 18px; font-size: 12px; }
  .btn i { font-size: 15px; }
}
.btn-primary {
  background: var(--accent); color: #fff;
  box-shadow: 0 2px 12px var(--accent-glow);
}
[data-theme="dark"] .btn-primary { color: #1D1D1F; }
.btn-primary:hover { background: var(--accent-hover); transform: translateY(-2px); box-shadow: 0 6px 20px var(--accent-glow); }
.btn-ghost {
  background: transparent; color: var(--text-soft);
  border: 1.5px solid var(--border);
}
.btn-ghost:hover { border-color: var(--text-soft); color: var(--text); transform: translateY(-2px); }

/* ═══ HEADER ═══ */
.header {
  position: fixed; top: 0; left: 0; right: 0; z-index: var(--z-header);
  height: var(--hdr-h);
  /* Use solid header background (not transparent) and match theme variable */
  background: var(--header-bg);
  /* remove backdrop blur to keep header opaque */
  backdrop-filter: none;
  -webkit-backdrop-filter: none;
  transition: box-shadow 0.3s;
}
.header.scrolled { box-shadow: 0 1px 0 rgba(255,255,255,0.08); }
.header-inner {
  max-width: var(--max-w); margin: 0 auto; padding: 0 24px;
  height: 100%; display: flex; align-items: center; justify-content: space-between;
}
@media (min-width: 1024px) { .header-inner { padding: 0 48px; } }

.header-logo { display: flex; align-items: center; }
.header-logo img {
  height: clamp(22px, 3.2vw, 32px);
  width: auto;
  border-radius: 4px;
  border: none;
}
[data-theme="dark"] .header-logo img { border-color: rgba(223,255,0,0.3); }

@media (min-width: 901px) {
.header-inner { display: flex; align-items: center; gap: 24px; }
.header-nav-desktop { display: flex; align-items: center; gap: 4px; }
.header-actions { margin-left: auto; }
.menu-btn { display: none; }
.mobile-menu { display: none; }
.nav-link {
  padding: 8px 14px; border-radius: 8px; font-size: 14px; font-weight: 500;
  color: rgba(255,255,255,0.7); transition: all 0.2s;
}
.nav-link:hover { background: rgba(255,255,255,0.08); color: #fff; }
}

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

.icon-btn {
  display: flex; align-items: center; justify-content: center;
  width: 36px; height: 36px; border-radius: 10px;
  transition: all 0.2s; font-size: 22px; color: rgba(255,255,255,0.5);
}
.icon-btn:hover { background: rgba(255,255,255,0.1); color: rgba(255,255,255,0.8); }

.lang-wrap { position: relative; }
.lang-btn {
  display: flex; align-items: center; gap: 4px; width: auto;
  padding: 0 10px; font-size: 14px; height: 36px; border-radius: 10px;
  transition: all 0.2s; color: rgba(255,255,255,0.5);
}
.lang-btn:hover { background: rgba(255,255,255,0.1); color: rgba(255,255,255,0.8); }
.lang-btn span { font-size: 13px; font-weight: 600; }
.lang-btn .ph-caret-down { font-size: 11px; }
.lang-menu {
  position: absolute; top: calc(100% + 8px); right: 0; min-width: 180px; max-height: 320px;
  overflow-y: auto;
  background: var(--surface); border: 1px solid var(--border);
  border-radius: 12px; box-shadow: var(--shadow-float);
  opacity: 0; transform: translateY(-8px) scale(0.96); pointer-events: none;
  transition: all 0.2s ease; z-index: var(--z-popover);
}
.lang-wrap.open .lang-menu { opacity: 1; transform: translateY(0) scale(1); pointer-events: all; }
.lang-opt {
  display: block; padding: 10px 16px; font-size: 14px; font-weight: 500;
  transition: background 0.15s; color: var(--text);
}
.lang-opt:hover { background: color-mix(in srgb, var(--accent) 10%, transparent); }
.lang-opt.active { color: var(--accent); font-weight: 600; }

.btn-signin {
  display: inline-flex; align-items: center; gap: 6px;
  padding: 8px 16px; border-radius: 999px;
  background: var(--accent); color: #fff; font-size: 14px; font-weight: 600;
  transition: all 0.2s; margin-left: 6px;
}
[data-theme="dark"] .btn-signin { color: #1D1D1F; }
.btn-signin:hover { background: var(--accent-hover); transform: translateY(-1px); }

.menu-btn { display: none; font-size: 24px; color: rgba(255,255,255,0.8); }
@media (max-width: 900px) {
  :root { --hdr-h: 52px; }
  .menu-btn { display: flex; }
  .header-nav-desktop { display: none; }

  /* Show condensed header actions on mobile (keep hamburger for navigation) */
  .header .header-actions { display: flex; align-items: center; gap: 8px; margin-left: auto; }
  /* hide full sign-in button on small screens to save space */
  .header .btn-signin { display: none !important; }

  /* Reduce header height and touch targets slightly for mobile to avoid feeling bulky */
  .header-logo img { height: clamp(22px, 4.4vw, 31px); }
  .header .icon-btn { width: 40px; height: 40px; font-size: 18px; border-radius: 10px; }
  .header .lang-btn { height: 40px; padding: 0 8px; }
  .header .lang-btn span { font-size: 13px; font-weight: 600; }

  /* keep sheet-local controls hidden when duplicating in header */
  .mobile-sheet .sheet-bottom-actions.header-actions { display: none; }

  /* ensure header menu button sits after header-actions */
  .menu-btn { margin-left: 8px; }

  /* Backdrop wrapper for bottom-sheet menu */
  .mobile-menu {
    position: fixed; inset: 0; z-index: var(--z-drawer);
    display: flex; align-items: flex-end; justify-content: center;
    pointer-events: none; transition: background-color 180ms ease;
    background: rgba(0,0,0,0);
  }
  .mobile-menu.open { pointer-events: all; background: rgba(0,0,0,0.45); }

  /* Prevent background touch gestures when menu is open; allow vertical pan inside sheet */
  .mobile-menu.open { touch-action: none; -webkit-touch-callout: none; }
  .mobile-sheet { touch-action: pan-y; }
  .sheet-body { overscroll-behavior: contain; }

  .mobile-sheet {
    width: 100%; max-width: 840px; border-radius: 18px 18px 0 0;
    background: var(--surface); color: var(--text);
    transform: translateY(100%);
    transition: transform 320ms cubic-bezier(0.22,1,0.36,1);
    box-shadow: 0 -20px 40px rgba(0,0,0,0.36);
    max-height: calc(100vh - var(--hdr-h)); overflow: hidden;
    display: flex; flex-direction: column; pointer-events: all;
  }
  .mobile-menu.open .mobile-sheet { transform: translateY(0); }

  .sheet-header { padding: 8px 12px; position: relative; display: flex; align-items: center; justify-content: center; }
  .sheet-handle { position: absolute; top: 8px; left: 50%; transform: translateX(-50%); width: 64px; height: 6px; border-radius: 999px; background: color-mix(in srgb, var(--text), transparent 75%); opacity: 0.22; box-shadow: 0 1px 0 rgba(0,0,0,0.02) inset; }
  .sheet-close { position: absolute; right: 10px; top: 6px; width: 40px; height: 40px; border-radius: 10px; background: transparent; border: none; color: var(--text-soft); font-size: 18px; z-index: 40; }

  .sheet-body { padding: 12px 16px 28px; overflow-y: auto; -webkit-overflow-scrolling: touch; }
  .sheet-search { padding: 0 16px 8px; position: relative; }
  .sheet-search input {
    width: 100%; height: 44px; padding: 10px 44px 10px 14px; border-radius: 12px; border: 1px solid var(--border);
    background: var(--surface-alt); color: var(--text); font-size: 15px; outline: none; transition: box-shadow 0.15s, border-color 0.15s;
  }
  .sheet-search .sheet-search-clear { position: absolute; right: 18px; top: 50%; transform: translateY(-50%); width: 32px; height: 32px; border-radius: 8px; border: none; background: transparent; color: var(--text-soft); font-size: 18px; display: none; align-items: center; justify-content: center; cursor: pointer; padding: 0; }
  .sheet-search input:focus { box-shadow: 0 6px 20px rgba(0,0,0,0.06); border-color: var(--accent); }
  .sheet-top-actions .btn-signin { width: 100%; justify-content: center; margin-bottom: 12px; }
  .sheet-links { display: flex; flex-direction: column; gap: 8px; }
  .sheet-links .nav-link { display: block; padding: 16px 16px; border-radius: 12px; font-size: 17px; color: var(--text); background: transparent; line-height: 1.2; }
  .sheet-links .nav-link:hover { background: color-mix(in srgb, var(--accent) 6%, transparent); color: var(--accent); }

    /* When the search input is focused, give extra bottom padding so results and input are visible above virtual keyboard.
      Use CSS variable --keyboard-space (set by JS using visualViewport) with sensible fallback. */
    .mobile-menu.input-focused .sheet-body { padding-bottom: calc(env(safe-area-inset-bottom, 16px) + var(--keyboard-space, 220px)); }
    .mobile-menu.input-focused .mobile-sheet { max-height: calc(100vh - var(--hdr-h) - var(--keyboard-space, 220px)); }

    /* Suggestions row to show autocomplete / helper text above virtual keyboard */
    .sheet-suggestions { display: none; padding: 8px 16px; }
    .sheet-suggestions .suggest-row { height: 48px; display:flex; align-items:center; gap:10px; padding: 0 12px; border-radius: 12px; background: var(--surface-alt); margin-bottom:8px; font-size: 15px; color: var(--text); }
    .mobile-menu.input-focused .sheet-suggestions { display: block; }

    /* Hide native browser clear/reveal controls to avoid duplicate 'x' buttons */
    .sheet-search input::-webkit-search-cancel-button,
    .sheet-search input::-webkit-search-decoration,
    .sheet-search input::-ms-clear,
    .sheet-search input::-ms-reveal { -webkit-appearance: none; appearance: none; display: none; }

  @media (prefers-reduced-motion: reduce) {
    .mobile-sheet { transition: none !important; }
  }

  .sheet-bottom-actions { margin-top: 12px; padding-top: 12px; border-top: 1px solid color-mix(in srgb, var(--text), transparent 88%); display: flex; flex-direction: column; gap: 8px; }

  .mobile-menu .lang-menu { position: static; left: auto; right: auto; min-width: 0; border-radius: 10px; max-height: 220px; overflow: auto; box-shadow: var(--shadow-float); }

  .mobile-menu .icon-btn { width: 100%; justify-content: flex-start; gap: 10px; padding: 10px 16px; height: auto; border-radius: 10px; font-size: 18px; color: var(--text-soft); }
  .mobile-menu .icon-btn:hover { background: color-mix(in srgb, var(--accent) 6%, transparent); color: var(--text); }
}

/* When mobile menu is open, lock background scrolling */
body.menu-open { overflow: hidden; }

/* Hide the header hamburger / close icon while the sheet is open to avoid duplicate 'x' near the search input */
/* Use !important to override other header rules and target the id for extra specificity */
body.menu-open #menuBtn,
body.menu-open .menu-btn { display: none !important; }

/* In case a sheet-level close button exists, we'll control its visibility via JS when needed. */
/* Do not hide `.sheet-close` globally here — some sheets/modals rely on it. */

/* Prevent native browser clear/decoration controls from showing on the search input */
.sheet-search input { -webkit-appearance: none; appearance: none; }
.sheet-search input::-webkit-clear-button,
.sheet-search input::-webkit-clear-button-container,
.sheet-search input::-webkit-search-cancel-button,
.sheet-search input::-webkit-search-decoration,
.sheet-search input::-webkit-search-results-decoration,
.sheet-search input::-webkit-search-results-button,
.sheet-search input::-ms-clear,
.sheet-search input::-ms-reveal {
  -webkit-appearance: none; appearance: none; display: none !important;
}

/* ═══ HERO ═══ */
.hero {
  position: relative;
  min-height: 700px;
  display: flex;
  align-items: center;
  padding-top: var(--hdr-h);
  background: var(--bg);
  overflow: hidden;
}
.hero-inner {
  max-width: var(--max-w);
  margin: 0 auto;
  padding: 60px 24px;
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 60px;
  align-items: center;
  position: relative;
  z-index: var(--z-hero);
}
@media (min-width: 1024px) { .hero-inner { padding: 80px 48px; gap: 80px; } }
@media (max-width: 900px) {
  .hero-inner { grid-template-columns: 1fr; gap: 48px; padding: 48px 24px; }
  .hero { min-height: auto; padding-top: calc(var(--hdr-h) + 40px); }
}

.hero-left { max-width: 560px; text-align: center; margin: 0 auto; }
@media (max-width: 900px) { .hero-left { max-width: 100%; } }

.hero-tag {
  display: block; font-size: 13px; font-weight: 700;
  letter-spacing: 0.08em; text-transform: uppercase; color: var(--accent);
  margin-bottom: 16px;
}

.hero-title {
  display: flex;
  flex-direction: column;
  align-items: center;
  margin-bottom: 16px;
}
.hero-brand { font-size: clamp(48px, 7.2vw, 120px); font-weight: 800; line-height: 1; letter-spacing: -0.03em; }
@media (max-width: 900px) { .hero-brand { font-size: clamp(64px, 12vw, 90px); } }
.hero-title .hero-sub { font-size: clamp(22px, 3.2vw, 42px); font-weight: 800; letter-spacing: -0.02em; margin-top: -6px; }
.hero-desc { font-size: clamp(12px, 1vw, 13px); margin: 0 auto 28px; color: var(--text-soft); }
@media (max-width: 900px) { .hero-desc { font-size: clamp(12px, 1.2vw, 14px); } }

.hero-cta { display: flex; gap: 14px; flex-wrap: wrap; margin-bottom: 40px; justify-content: center; }

.hero-stats { display: flex; gap: 32px; justify-content: center; }
.hero-stat { display: flex; flex-direction: column; }
.hs-num { font-size: 24px; font-weight: 800; letter-spacing: -0.02em; }
.hs-lbl { font-size: 13px; color: var(--text-muted); font-weight: 500; }

/* ─── Hero Right: Phone Mockup ─── */
.hero-right {
  position: relative;
  display: flex;
  justify-content: center;
  align-items: center;
  min-height: 500px;
}
@media (max-width: 900px) { .hero-right { min-height: 400px; } }

.hero-phone { position: relative; z-index: var(--z-hero); }
.phone-frame {
  width: 280px;
  height: 560px;
  background: #1A1A1A;
  border-radius: 40px;
  padding: 12px;
  position: relative;
  box-shadow: 0 20px 60px rgba(0,0,0,0.3), 0 0 0 1px rgba(255,255,255,0.05);
}
@media (max-width: 480px) {
  .phone-frame { width: 240px; height: 480px; border-radius: 32px; }
}
.phone-notch {
  position: absolute;
  top: 12px; left: 50%;
  transform: translateX(-50%);
  width: 120px; height: 28px;
  background: #1A1A1A;
  border-radius: 0 0 16px 16px;
  z-index: var(--z-float);
}
.phone-screen {
  width: 100%;
  height: 100%;
  object-fit: cover;
  border-radius: 28px;
  overflow: hidden;
}
@media (max-width: 480px) { .phone-screen { border-radius: 22px; } }
.phone-shadow {
  position: absolute;
  bottom: -20px; left: 50%;
  transform: translateX(-50%);
  width: 80%; height: 40px;
  background: radial-gradient(ellipse, rgba(0,0,0,0.3) 0%, transparent 70%);
  border-radius: 50%;
}

/* ─── Floating Cards ─── */
.float-card {
  position: absolute;
  /* ensure floating cards sit above the phone mockup but below header */
  z-index: var(--z-float-top);
  display: flex;
  align-items: center;
  gap: 10px;
  padding: 12px 16px;
  background: var(--surface);
  border: 1px solid var(--border);
  border-radius: 14px;
  box-shadow: var(--shadow-float);
  backdrop-filter: blur(12px);
  animation: floatIn 0.8s ease both;
}
.float-card i { font-size: 22px; color: var(--accent); }
.fc-title { display: block; font-size: 13px; font-weight: 600; }
.fc-sub { display: block; font-size: 11px; color: var(--text-muted); }
@media (max-width: 900px) {
  .float-card { padding: 8px 12px; gap: 6px; border-radius: 10px; }
  .float-card i { font-size: 16px; }
  .fc-title { font-size: 11px; }
  .fc-sub { font-size: 10px; }
}

.fc-1 { top: 15%; right: -3%; animation-delay: 0.3s; }
.fc-2 { bottom: 20%; left: -4%; animation-delay: 0.6s; }
@media (max-width: 900px) {
  .fc-1 { top: 8%; right: 0; }
  .fc-2 { bottom: 10%; left: 0; }
}
@media (max-width: 480px) {
  .fc-1 { top: 5%; right: 0; }
  .fc-2 { bottom: 5%; left: 0; }
}

@keyframes floatIn {
  from { opacity: 0; transform: translateY(20px); }
  to { opacity: 1; transform: translateY(0); }
}

/* ─── Hero BG Gradient ─── */
.hero-bg-gradient {
  position: absolute;
  top: -20%; right: -10%;
  width: 60%; height: 120%;
  background: radial-gradient(ellipse at center, rgba(0,122,255,0.12) 0%, transparent 70%);
  pointer-events: none;
  z-index: var(--z-base);
  display: none;
}
[data-theme="dark"] .hero-bg-gradient { display: block; }

/* ═══════════════════════════════════════
   HERO BANNER (auto-scroll, app-style)
   ═══════════════════════════════════════ */
.hero-banner {
  position: relative;
  width: 100%;
  height: clamp(220px, 40vw, 380px);
  overflow: hidden;
  background: var(--bg);
}
.hb-slides { width: 100%; height: 100%; position: relative; }
.hb-slide {
  position: absolute; top: 0; left: 0; width: 100%; height: 100%;
  opacity: 0; transition: opacity 0.8s ease; pointer-events: none;
}
.hb-slide.active { opacity: 1; pointer-events: all; }
.hb-slide img {
  width: 100%; height: 100%;
  object-fit: cover;
  display: block;
}
.hb-scrim {
  position: absolute; top: 0; left: 0; width: 100%; height: 100%;
  background: linear-gradient(
    to bottom,
    transparent 0%,
    transparent 35%,
    rgba(0,0,0,0.5) 70%,
    rgba(0,0,0,0.75) 100%
  );
  z-index: var(--z-hero);
}
.hb-text {
  position: absolute;
  bottom: 36px; left: 0; right: 0;
  text-align: center;
  z-index: var(--z-hero);
  padding: 0 24px;
}
.hb-text h2 {
  font-size: clamp(22px, 3vw, 32px);
  font-weight: 700;
  color: #fff;
  margin-bottom: 6px;
  letter-spacing: -0.01em;
}
.hb-text p {
  font-size: clamp(13px, 1.5vw, 16px);
  color: rgba(255,255,255,0.85);
  font-weight: 400;
}
.hb-dots {
  position: absolute;
  bottom: 0; left: 0; right: 0;
  display: flex;
  justify-content: center;
  gap: 4px;
  padding: 14px 0;
  z-index: var(--z-float);
}
.hb-dot {
  width: 6px; height: 6px;
  border-radius: 3px;
  background: rgba(255,255,255,0.4);
  transition: all 0.3s;
  border: none;
  padding: 0;
}
.hb-dot.active {
  width: 18px;
  background: var(--accent);
}
.hb-dot:hover { background: rgba(255,255,255,0.7); }

/* ═══════════════════════════════════════
   FEATURES
   ═══════════════════════════════════════ */
#features { background: linear-gradient(180deg, var(--surface) 50%, color-mix(in srgb, var(--accent) 4%, var(--surface))); }
.features-grid {
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  gap: 24px;
}
@media (max-width: 1100px) { .features-grid { grid-template-columns: repeat(2, 1fr); } }
@media (max-width: 480px) { .features-grid { grid-template-columns: 1fr; } }

.feat-card {
  background: var(--surface);
  border: 1px solid color-mix(in srgb, var(--accent) 20%, var(--border));
  border-radius: var(--radius-lg);
  padding: 36px 32px;
  transition: all 0.35s ease;
  position: relative;
  overflow: hidden;
  display: flex;
  flex-direction: column;
  box-shadow: 0 1px 3px rgba(0,0,0,0.04), 0 2px 8px rgba(0,0,0,0.03);
}
.feat-card::before {
  content: '';
  position: absolute;
  top: 0; left: 0; right: 0;
  height: 3px;
  background: var(--accent);
  transform: scaleX(0);
  transform-origin: left;
  transition: transform 0.35s ease;
}
.feat-card:hover { transform: translateY(-6px); box-shadow: var(--shadow-card-hover); }
.feat-card:hover::before { transform: scaleX(1); }
.feat-card:active { transform: scale(0.97); box-shadow: 0 2px 8px rgba(0,0,0,0.06); }

.feat-card::after {
  content: '';
  position: absolute;
  top: 16px; right: 16px;
  width: 20px; height: 20px;
  background: var(--text);
  mask: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 256 256'%3E%3Cpath d='M181.66 133.66l-80 80a8 8 0 01-11.32-11.32L164.69 128 90.34 53.66a8 8 0 0111.32-11.32l80 80a8 8 0 010 11.32z'/%3E%3C/svg%3E") no-repeat center;
  mask-size: contain;
  -webkit-mask: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 256 256'%3E%3Cpath d='M181.66 133.66l-80 80a8 8 0 01-11.32-11.32L164.69 128 90.34 53.66a8 8 0 0111.32-11.32l80 80a8 8 0 010 11.32z'/%3E%3C/svg%3E") no-repeat center;
  -webkit-mask-size: contain;
  opacity: 0.2;
  transition: opacity 0.3s ease, transform 0.3s ease;
  pointer-events: none;
}
.feat-card:hover::after { opacity: 0.6; transform: translateX(2px); }
.feat-card:active::after { opacity: 0.8; transform: translateX(2px); }

.feat-icon {
  width: 56px; height: 56px;
  border-radius: 14px;
  display: flex; align-items: center; justify-content: center;
  font-size: 28px;
  color: #fff;
  background: var(--accent);
  margin-bottom: 20px;
  flex-shrink: 0;
}
[data-theme="dark"] .feat-icon {
  color: var(--accent);
  background: color-mix(in srgb, var(--accent) 12%, transparent);
}
.feat-card h3 { font-size: 19px; font-weight: 700; margin-bottom: 10px; line-height: 1.3; }
.feat-card p { font-size: 14px; color: var(--text-soft); line-height: 1.7; flex: 1; }
.feat-card { cursor: pointer; -webkit-tap-highlight-color: transparent; }

/* ═══════════════════════════════════════
   FEATURE MODAL
   ═══════════════════════════════════════ */
.modal-overlay {
  position: fixed; inset: 0; z-index: var(--z-overlay);
  display: flex; align-items: center; justify-content: center;
  opacity: 0; pointer-events: none;
  transition: opacity 0.3s ease;
}
.modal-overlay.open {
  opacity: 1; pointer-events: auto;
}
.modal-backdrop {
  position: absolute; inset: 0;
  background: rgba(0,0,0,0.6);
  backdrop-filter: blur(4px);
  -webkit-backdrop-filter: blur(4px);
}
.modal-content {
  position: relative;
  width: calc(100% - 32px);
  max-width: 540px;
  max-height: 85vh;
  background: var(--surface);
  border-radius: var(--radius-xl);
  box-shadow: 0 24px 80px rgba(0,0,0,0.2);
  overflow-y: auto;
  transform: scale(0.92) translateY(12px);
  transition: transform 0.3s cubic-bezier(0.22, 1, 0.36, 1);
}
.modal-overlay.open .modal-content {
  transform: scale(1) translateY(0);
}
.modal-close {
  position: absolute; top: 16px; right: 16px;
  width: 36px; height: 36px; border-radius: 50%;
  display: flex; align-items: center; justify-content: center;
  background: var(--bg); border: none;
  color: var(--text-soft); font-size: 18px;
  cursor: pointer; z-index: var(--z-modal);
  transition: background 0.2s;
}
.modal-close:hover { background: var(--surface-alt); }
.modal-body {
  padding: 40px 32px 32px;
}
.modal-icon {
  width: 56px; height: 56px; border-radius: 16px;
  display: flex; align-items: center; justify-content: center;
  font-size: 28px;
  color: var(--accent);
  background: color-mix(in srgb, var(--accent) 12%, transparent);
  margin-bottom: 20px;
}
.modal-body h3 {
  font-size: 24px; font-weight: 800; line-height: 1.2;
  color: var(--text); margin-bottom: 8px;
}
.modal-tagline {
  font-size: 15px; color: var(--text-soft); line-height: 1.6;
  margin-bottom: 28px;
}
.modal-details {
  display: flex; flex-direction: column; gap: 16px;
}
.modal-detail-row {
  display: flex; gap: 14px; align-items: flex-start;
}
.modal-detail-row i {
  font-size: 20px; color: var(--accent);
  flex-shrink: 0; margin-top: 2px;
}
.modal-detail-row p {
  font-size: 14px; color: var(--text-soft); line-height: 1.65;
}

/* ═══════════════════════════════════════
   GALLERY MODAL
   ═══════════════════════════════════════ */
.modal-content--wide {
  max-width: 620px;
}
.gmodal-body {
  padding: 0;
  overflow: hidden;
  border-radius: var(--radius-xl);
}
.gmodal-img {
  width: 100%;
  max-height: 260px;
  overflow: hidden;
  background: var(--surface-alt);
}
.gmodal-img img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  display: block;
}
.gmodal-text {
  padding: 28px 28px 32px;
}
.gmodal-text h3 {
  font-size: 22px; font-weight: 800; line-height: 1.2;
  color: var(--text); margin-bottom: 16px;
}
.gmodal-text p {
  font-size: 15px; color: var(--text-soft); line-height: 1.7;
}
@media (max-width: 480px) {
  .gmodal-img { max-height: 180px; }
  .gmodal-text { padding: 20px 20px 24px; }
  .gmodal-text h3 { font-size: 19px; }
  .gmodal-text p { font-size: 14px; }
}

/* ═══════════════════════════════════════
   STATS
   ═══════════════════════════════════════ */
.stats-section { background: linear-gradient(180deg, var(--header-bg) 50%, color-mix(in srgb, var(--accent) 8%, var(--header-bg))); color: #fff; }
.stats-grid {
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  gap: 32px;
  text-align: center;
}
@media (max-width: 768px) { .stats-grid { grid-template-columns: repeat(2, 1fr); gap: 24px; } }

.stat-item { padding: 12px 0; }
.stat-item .stat-icon {
  width: 52px; height: 52px;
  border-radius: 14px;
  display: flex; align-items: center; justify-content: center;
  font-size: 26px;
  color: #fff;
  background: var(--accent);
  margin: 0 auto 14px;
}
[data-theme="dark"] .stat-item .stat-icon {
  color: var(--accent);
  background: color-mix(in srgb, var(--accent) 14%, transparent);
}
.stat-num {
  display: block;
  font-size: clamp(32px, 4vw, 52px);
  font-weight: 800;
  line-height: 1;
  letter-spacing: -0.03em;
  margin-bottom: 6px;
}
.stat-lbl {
  font-size: 13px;
  color: rgba(255,255,255,0.45);
  font-weight: 500;
  text-transform: uppercase;
  letter-spacing: 0.06em;
}

/* ═══════════════════════════════════════
   GALLERY
   ═══════════════════════════════════════ */
#gallery { background: linear-gradient(180deg, var(--surface-alt) 40%, color-mix(in srgb, var(--accent) 5%, var(--surface-alt))); }
.gallery-grid {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 20px;
}
@media (max-width: 768px) { .gallery-grid { grid-template-columns: repeat(2, 1fr); gap: 14px; } }
@media (max-width: 480px) { .gallery-grid { grid-template-columns: 1fr; } }

.gallery-item {
  display: flex;
  flex-direction: column;
  background: var(--surface);
  border-radius: var(--radius-lg);
  overflow: hidden;
  border: 1px solid var(--border);
  transition: transform 0.3s ease, box-shadow 0.3s ease;
  -webkit-tap-highlight-color: transparent;
}
.gallery-item:hover { transform: translateY(-4px); box-shadow: var(--shadow-card-hover); }
.gallery-item:active { transform: scale(0.97); }
.gi-img {
  position: relative;
  aspect-ratio: 4 / 3;
  overflow: hidden;
  cursor: pointer;
  -webkit-tap-highlight-color: transparent;
}
.gi-img img {
  width: 100%; height: 100%;
  object-fit: cover;
  transition: transform 0.5s ease;
}
.gi-img:hover img { transform: scale(1.05); }
.gi-img span {
  position: absolute;
  bottom: 0; left: 0; right: 0;
  padding: 20px;
  background: linear-gradient(transparent, rgba(0,0,0,0.7));
  color: #fff;
  font-size: 14px;
  font-weight: 600;
  opacity: 0;
  transform: translateY(8px);
  transition: all 0.3s ease;
}
.gi-img:hover span { opacity: 1; transform: translateY(0); }
@media (max-width: 768px) { .gi-img span { opacity: 1; transform: translateY(0); } }

.gi-desc {
  padding: 14px 16px 16px;
  font-size: 13px;
  color: var(--text-soft);
  line-height: 1.6;
  flex: 1;
}

/* ═══════════════════════════════════════
   REVIEWS
   ═══════════════════════════════════════ */
.reviews-section { background: linear-gradient(180deg, var(--surface) 40%, color-mix(in srgb, var(--accent) 4%, var(--surface))); }
.reviews-cols {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 40px;
}
@media (max-width: 900px) { .reviews-cols { grid-template-columns: 1fr; gap: 48px; } }

.review-hdr {
  display: flex; align-items: center; gap: 12px; margin-bottom: 20px;
}
.review-hdr i {
  font-size: 22px; color: #fff;
  width: 44px; height: 44px;
  display: flex; align-items: center; justify-content: center;
  border-radius: 12px;
  background: var(--accent);
}
[data-theme="dark"] .review-hdr i {
  color: var(--accent);
  background: color-mix(in srgb, var(--accent) 12%, transparent);
}
.review-hdr h3 { font-size: 20px; font-weight: 700; }

.rv-carousel { overflow: hidden; position: relative; border-radius: var(--radius-lg); }
.rv-track { display: flex; transition: transform 0.5s cubic-bezier(0.4, 0, 0.2, 1); }
.rv-card {
  min-width: 100%;
  position: relative; border-radius: var(--radius-lg); overflow: hidden;
}
.rv-card img {
  width: 100%;
  display: block;
  aspect-ratio: 1;
}
.rv-overlay {
  position: absolute; bottom: 0; left: 0; right: 0;
  padding: 36px 16px 18px;
  background: linear-gradient(transparent 15%, rgba(0,0,0,0.80) 48%);
  pointer-events: none;
}
.rv-overlay p {
  color: #fff;
  font-size: 15px;
  line-height: 1.5;
  font-weight: 500;
  text-align: center;
  text-shadow: 0 1px 4px rgba(0,0,0,0.4);
}
@media (max-width: 600px) {
  .rv-overlay p { font-size: 13px; }
}

.rv-controls { display: flex; align-items: center; justify-content: center; gap: 12px; margin-top: 16px; }
.rv-arrow {
  width: 36px; height: 36px; border-radius: 50%;
  display: flex; align-items: center; justify-content: center;
  font-size: 16px;
  background: var(--bg);
  border: 1px solid var(--border);
  color: var(--text);
  transition: all 0.2s;
}
.rv-arrow:hover { background: var(--accent); color: #1D1D1F; border-color: var(--accent); }
.rv-dots { display: flex; gap: 6px; }
.rv-dots .dot {
  width: 7px; height: 7px; border-radius: 50%;
  background: var(--border); transition: all 0.25s;
}
.rv-dots .dot.active { background: var(--accent); width: 22px; border-radius: 4px; }

/* ═══════════════════════════════════════
   CTA
   ═══════════════════════════════════════ */
.cta-section {
  background: linear-gradient(135deg, #007AFF 0%, #00D9FF 100%);
  text-align: center;
  position: relative;
  overflow: hidden;
}
.cta-section::before {
  content: '';
  position: absolute;
  top: -50%; left: -20%;
  width: 140%; height: 200%;
  background: radial-gradient(ellipse at 30% 50%, rgba(255,255,255,0.1) 0%, transparent 60%);
  pointer-events: none;
}
.cta-box { max-width: 560px; margin: 0 auto; position: relative; z-index: var(--z-content); }
.cta-icon { font-size: 48px; color: rgba(255,255,255,0.8); margin-bottom: 20px; display: block; }
.cta-box h2 {
  font-size: clamp(32px, 4vw, 48px);
  font-weight: 800;
  line-height: 1.1;
  letter-spacing: -0.03em;
  color: #fff;
  margin-bottom: 16px;
}
.cta-box p { font-size: 18px; color: rgba(255,255,255,0.8); margin-bottom: 32px; }
.cta-btns { display: flex; gap: 14px; justify-content: center; flex-wrap: wrap; }
.cta-btns .store-badge { flex: 1; min-width: 200px; max-width: 280px; }
.store-badge {
  display: inline-flex; align-items: center; gap: 14px;
  padding: 12px 48px; border-radius: 14px;
  min-width: 200px;
  background: #000; color: #fff;
  transition: transform 0.25s ease, opacity 0.25s ease;
}
.store-badge img { height: 32px; width: 32px; object-fit: contain; }
.store-text { display: flex; flex-direction: column; line-height: 1.2; text-align: left; }
.store-sub { font-size: 11px; font-weight: 500; opacity: 0.8; letter-spacing: 0.01em; }
.store-main { font-size: 22px; font-weight: 700; letter-spacing: -0.02em; }
.store-badge:hover { transform: translateY(-3px); opacity: 0.9; }
.store-apple img { filter: brightness(0) invert(1); }

.store-google { background: #fff; color: #1D1D1F; }
.store-google .store-sub { color: #757575; }
.store-google .store-main { color: #1D1D1F; }

@media (max-width: 600px) {
  .cta-btns .store-badge { flex: 1; min-width: 140px; max-width: none; }
  .store-badge { padding: 10px 16px; min-width: 0; gap: 8px; justify-content: center; }
  .store-badge img { height: 24px; width: 24px; }
  .store-main { font-size: 16px; }
  .store-sub { font-size: 9px; }
  .store-text { text-align: left; }
}
@media (max-width: 400px) {
  .store-badge { padding: 8px 12px; gap: 6px; }
  .store-badge img { height: 20px; width: 20px; }
  .store-main { font-size: 13px; }
  .store-sub { font-size: 9px; }
}

.cta-footnote { display: block; margin-top: 18px; font-size: 13px; color: rgba(255,255,255,0.5); }

/* ═══════════════════════════════════════
   FOOTER
   ═══════════════════════════════════════ */
.footer { background: linear-gradient(180deg, var(--header-bg) 50%, color-mix(in srgb, var(--accent) 6%, var(--header-bg))); color: rgba(255,255,255,0.7); padding: 64px 0 28px; }
.footer-grid {
  display: grid;
  grid-template-columns: 1.5fr 1fr 1fr 1fr;
  gap: 40px;
  margin-bottom: 48px;
}
@media (max-width: 900px) { .footer-grid { grid-template-columns: 1fr 1fr; gap: 24px; } }

.footer-logo { height: 36px; width: auto; margin-bottom: 12px; opacity: 0.9; border-radius: 6px; border: 1.5px solid rgba(255,255,255,0.15); }
[data-theme="dark"] .footer-logo { border-color: rgba(223,255,0,0.3); }
.footer-brand > .footer-tagline { font-size: 11px; font-weight: 700; color: #fff; margin-bottom: 6px; max-width: 125px; text-align: left; }
.footer-brand > p { font-size: 13px; color: rgba(255,255,255,0.4); line-height: 1.6; max-width: 260px; margin-bottom: 18px; }
.footer-social { display: flex; gap: 8px; }
.footer-social a {
  width: 36px; height: 36px; border-radius: 50%;
  display: flex; align-items: center; justify-content: center;
  font-size: 18px;
  background: rgba(255,255,255,0.06);
  color: rgba(255,255,255,0.5);
  transition: all 0.2s;
}
.footer-social a:hover { background: var(--accent); color: #fff; }
[data-theme="dark"] .footer-social a:hover { color: #1D1D1F; }

.footer-col h4 {
  font-size: 12px; font-weight: 700; text-transform: uppercase;
  letter-spacing: 0.08em; color: #fff; margin-bottom: 16px;
}
.footer-col a {
  display: block; font-size: 14px; color: rgba(255,255,255,0.45);
  padding: 5px 0; transition: color 0.2s;
}
.footer-col a:hover { color: #fff; }
.admin-link { display: flex; align-items: center; gap: 4px; color: var(--accent) !important; font-weight: 600; margin-top: 6px; }

.footer-bar {
  border-top: 1px solid rgba(255,255,255,0.06);
  padding-top: 24px;
  display: flex;
  justify-content: space-between;
  align-items: center;
  flex-wrap: wrap;
  gap: 12px;
  font-size: 13px;
  color: rgba(255,255,255,0.3);
}
.footer-powered { display: flex; align-items: center; gap: 6px; }
.footer-powered img { height: 16px; width: auto; opacity: 0.5; }

@media (max-width: 600px) {
  .footer-bar { flex-direction: column; justify-content: center; align-items: center; text-align: center; }
  .footer-powered { justify-content: center; }
}

/* ─── Selection ─── */
::selection { background: var(--accent); color: #fff; }

/* ─── Scrollbar ─── */
::-webkit-scrollbar { width: 6px; }
::-webkit-scrollbar-track { background: var(--bg); }
::-webkit-scrollbar-thumb { background: var(--border); border-radius: 3px; }
::-webkit-scrollbar-thumb:hover { background: var(--text-muted); }
