/* ============================================================
   GYM Remind - Landing Page Styles
   ============================================================ */

/* ============================================================
   ROOT & RESET
   ============================================================ */
:root {
  --primary:        #2563EB;
  --primary-dark:   #1D4ED8;
  --primary-glow:   rgba(37, 99, 235, 0.35);
  --bg:             #09090B;
  --bg-card:        #111113;
  --bg-card-hover:  #18181B;
  --border:         rgba(255, 255, 255, 0.08);
  --border-hover:   rgba(255, 255, 255, 0.14);
  --text:           #FAFAFA;
  --text-muted:     #A1A1AA;
  --text-dim:       #71717A;
  --radius:         12px;
  --radius-lg:      18px;
  --radius-xl:      24px;
  --shadow:         0 4px 24px rgba(0,0,0,0.35);
  --shadow-lg:      0 8px 40px rgba(0,0,0,0.5);
  --transition:     0.22s cubic-bezier(0.4,0,0.2,1);
}

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

html { scroll-behavior: smooth; }

body {
  font-family: 'Space Grotesk', -apple-system, BlinkMacSystemFont, sans-serif;
  background: var(--bg);
  color: var(--text);
  line-height: 1.65;
  -webkit-font-smoothing: antialiased;
}

/* ============================================================
   SKIP TO CONTENT (ACCESSIBILITY)
   ============================================================ */
.skip-link {
  position: fixed;
  top: -100%;
  left: 16px;
  z-index: 9999;
  background: var(--primary);
  color: #fff;
  padding: 10px 20px;
  border-radius: 0 0 var(--radius) var(--radius);
  font-weight: 600;
  text-decoration: none;
  transition: top 0.2s;
}
.skip-link:focus { top: 0; }

/* ============================================================
   UTILITIES
   ============================================================ */
.container { max-width: 1160px; margin: 0 auto; padding: 0 24px; }
.w-full { width: 100%; }

/* ============================================================
   BUTTONS
   ============================================================ */
.btn-primary {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  background: var(--primary);
  color: #fff;
  border: none;
  border-radius: var(--radius);
  padding: 12px 24px;
  font-family: inherit;
  font-size: 0.95rem;
  font-weight: 600;
  cursor: pointer;
  text-decoration: none;
  transition: background var(--transition), transform var(--transition), box-shadow var(--transition);
}
.btn-primary:hover {
  background: var(--primary-dark);
  transform: translateY(-1px);
  box-shadow: 0 6px 20px var(--primary-glow);
}
.btn-primary.btn-lg { padding: 15px 32px; font-size: 1rem; border-radius: var(--radius-lg); }
.btn-primary.btn-glow { box-shadow: 0 0 32px var(--primary-glow); }
.btn-primary.btn-glow:hover { box-shadow: 0 0 48px var(--primary-glow); }

.btn-outline {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  background: transparent;
  color: var(--text);
  border: 1.5px solid var(--border-hover);
  border-radius: var(--radius);
  padding: 12px 24px;
  font-family: inherit;
  font-size: 0.95rem;
  font-weight: 600;
  cursor: pointer;
  text-decoration: none;
  transition: border-color var(--transition), background var(--transition), transform var(--transition);
}
.btn-outline:hover {
  border-color: var(--primary);
  background: rgba(37,99,235,0.08);
  transform: translateY(-1px);
}
.btn-outline.btn-lg { padding: 15px 32px; font-size: 1rem; border-radius: var(--radius-lg); }

.btn-nav-cta {
  display: inline-flex;
  align-items: center;
  background: var(--primary);
  color: #fff;
  border-radius: var(--radius);
  padding: 9px 20px;
  font-weight: 600;
  font-size: 0.88rem;
  text-decoration: none;
  transition: background var(--transition), transform var(--transition);
}
.btn-nav-cta:hover { background: var(--primary-dark); transform: translateY(-1px); }

/* ============================================================
   SCROLL REVEAL ANIMATION
   ============================================================ */
.reveal {
  opacity: 0;
  transform: translateY(28px);
  transition: opacity 0.62s ease, transform 0.62s ease;
}
.reveal.visible {
  opacity: 1;
  transform: none;
}
.reveal-delay-1 { transition-delay: 0.1s; }
.reveal-delay-2 { transition-delay: 0.2s; }
.reveal-delay-3 { transition-delay: 0.3s; }

/* ============================================================
   SECTION HEADERS
   ============================================================ */
.section-header {
  text-align: center;
  margin-bottom: 56px;
}
.section-label {
  display: inline-block;
  font-size: 0.75rem;
  font-weight: 700;
  letter-spacing: 0.12em;
  text-transform: uppercase;
  color: var(--primary);
  background: rgba(37,99,235,0.1);
  border: 1px solid rgba(37,99,235,0.2);
  border-radius: 999px;
  padding: 4px 14px;
  margin-bottom: 16px;
}
.section-title {
  font-size: clamp(1.75rem, 4vw, 2.5rem);
  font-weight: 700;
  line-height: 1.2;
  letter-spacing: -0.02em;
  margin-bottom: 14px;
}
.section-sub {
  font-size: 1rem;
  color: var(--text-muted);
  max-width: 580px;
  margin: 0 auto;
  line-height: 1.7;
}

/* ============================================================
   NAVBAR
   ============================================================ */
.navbar {
  position: fixed;
  top: 0;
  left: 0;
  right: 0;
  z-index: 100;
  height: 68px;
  display: flex;
  align-items: center;
  transition: background 0.3s, border-color 0.3s, box-shadow 0.3s;
  border-bottom: 1px solid transparent;
}
.navbar.scrolled {
  background: rgba(9,9,11,0.88);
  backdrop-filter: blur(16px);
  border-color: var(--border);
  box-shadow: 0 1px 0 rgba(255,255,255,0.04);
}
.nav-inner {
  display: flex;
  align-items: center;
  justify-content: space-between;
  width: 100%;
  max-width: 1160px;
  margin: 0 auto;
  padding: 0 24px;
  gap: 24px;
}
.nav-logo {
  display: flex;
  align-items: center;
  text-decoration: none;
  flex-shrink: 0;
}
.nav-logo img { border-radius: 8px; }
.nav-logo-icon {
  width: 36px;
  height: 36px;
  background: var(--primary);
  border-radius: 10px;
  display: none;
  align-items: center;
  justify-content: center;
  color: #fff;
}
.nav-logo-icon svg { width: 20px; height: 20px; }

.nav-links {
  display: flex;
  align-items: center;
  gap: 4px;
  list-style: none;
  margin: 0;
}
.nav-links a {
  color: var(--text-muted);
  text-decoration: none;
  font-size: 0.88rem;
  font-weight: 500;
  padding: 6px 14px;
  border-radius: 8px;
  transition: color var(--transition), background var(--transition);
}
.nav-links a:hover,
.nav-links a.active { color: var(--text); background: rgba(255,255,255,0.05); }

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

/* Hamburger */
.nav-hamburger {
  display: none;
  flex-direction: column;
  justify-content: center;
  align-items: center;
  gap: 5px;
  width: 38px;
  height: 38px;
  background: rgba(255,255,255,0.06);
  border: 1px solid var(--border);
  border-radius: 10px;
  cursor: pointer;
  padding: 4px;
  transition: background var(--transition), border-color var(--transition);
}
.nav-hamburger:hover { background: rgba(255,255,255,0.1); border-color: var(--border-hover); }
.nav-hamburger span {
  display: block;
  width: 16px;
  height: 1.5px;
  background: var(--text);
  border-radius: 2px;
  transition: transform 0.28s cubic-bezier(0.4,0,0.2,1), opacity 0.2s, width 0.28s;
}
.nav-hamburger.open span:nth-child(1) { transform: translateY(6.5px) rotate(45deg); }
.nav-hamburger.open span:nth-child(2) { opacity: 0; transform: scaleX(0); }
.nav-hamburger.open span:nth-child(3) { transform: translateY(-6.5px) rotate(-45deg); }

/* Mobile nav — side drawer */
.mobile-nav-backdrop {
  position: fixed;
  inset: 0;
  z-index: 199;
  background: rgba(0,0,0,0.6);
  backdrop-filter: blur(4px);
  opacity: 0;
  pointer-events: none;
  transition: opacity 0.32s ease;
}
.mobile-nav-backdrop.open {
  opacity: 1;
  pointer-events: all;
}

.mobile-nav {
  position: fixed;
  top: 0;
  right: 0;
  bottom: 0;
  z-index: 200;
  width: 300px;
  max-width: 85vw;
  background: #0D0D10;
  border-left: 1px solid var(--border);
  display: flex;
  flex-direction: column;
  transform: translateX(100%);
  transition: transform 0.36s cubic-bezier(0.4,0,0.2,1);
  pointer-events: none;
  will-change: transform;
}
.mobile-nav.open {
  transform: translateX(0);
  pointer-events: all;
}

/* Drawer header */
.mobile-nav-header {
  display: flex;
  align-items: center;
  justify-content: space-between;
  padding: 20px 24px;
  border-bottom: 1px solid var(--border);
  flex-shrink: 0;
}
.mobile-nav-brand {
  display: flex;
  align-items: center;
  gap: 10px;
  text-decoration: none;
}
.mobile-nav-brand img {
  width: 34px;
  height: 34px;
  object-fit: contain;
}
.mobile-nav-brand-name {
  font-size: 0.95rem;
  font-weight: 700;
  color: var(--text);
  letter-spacing: -0.01em;
}
.mobile-nav-close {
  width: 34px;
  height: 34px;
  display: flex;
  align-items: center;
  justify-content: center;
  background: rgba(255,255,255,0.06);
  border: 1px solid var(--border);
  border-radius: 8px;
  color: var(--text-muted);
  cursor: pointer;
  transition: background var(--transition), color var(--transition);
}
.mobile-nav-close:hover { background: rgba(255,255,255,0.1); color: var(--text); }
.mobile-nav-close svg { width: 16px; height: 16px; }

/* Drawer links */
.mobile-nav-links {
  flex: 1;
  padding: 16px 16px;
  display: flex;
  flex-direction: column;
  gap: 2px;
  overflow-y: auto;
}
.mobile-nav-link {
  display: flex;
  align-items: center;
  gap: 14px;
  color: var(--text-muted);
  text-decoration: none;
  font-size: 0.95rem;
  font-weight: 500;
  padding: 13px 14px;
  border-radius: 10px;
  transition: color var(--transition), background var(--transition);
  letter-spacing: -0.01em;
}
.mobile-nav-link:hover {
  color: var(--text);
  background: rgba(255,255,255,0.06);
}
.mobile-nav-link-icon {
  width: 34px;
  height: 34px;
  border-radius: 9px;
  background: rgba(255,255,255,0.05);
  border: 1px solid var(--border);
  display: flex;
  align-items: center;
  justify-content: center;
  flex-shrink: 0;
  color: var(--text-muted);
  transition: background var(--transition), border-color var(--transition), color var(--transition);
}
.mobile-nav-link:hover .mobile-nav-link-icon {
  background: rgba(37,99,235,0.12);
  border-color: rgba(37,99,235,0.25);
  color: #60A5FA;
}
.mobile-nav-link-icon svg { width: 16px; height: 16px; }

.mobile-nav-sep {
  height: 1px;
  background: var(--border);
  margin: 8px 14px;
}

/* Drawer footer */
.mobile-nav-footer {
  padding: 16px 16px 28px;
  border-top: 1px solid var(--border);
  flex-shrink: 0;
}
.mobile-nav-footer .btn-primary {
  width: 100%;
  justify-content: center;
  padding: 13px 20px;
  font-size: 0.95rem;
  border-radius: 12px;
}

/* Body scroll lock */
body.nav-open { overflow: hidden; }

/* ============================================================
   HERO
   ============================================================ */
.hero {
  position: relative;
  min-height: 100svh;
  display: flex;
  align-items: center;
  padding: 100px 0 80px;
  overflow: hidden;
}

.hero-glow {
  position: absolute;
  inset: 0;
  background:
    radial-gradient(ellipse 70% 60% at 40% 40%, rgba(37,99,235,0.18) 0%, transparent 70%),
    radial-gradient(ellipse 40% 40% at 80% 80%, rgba(124,58,237,0.1) 0%, transparent 70%);
  pointer-events: none;
}

.hero-grid {
  position: absolute;
  inset: 0;
  background-image:
    linear-gradient(rgba(255,255,255,0.028) 1px, transparent 1px),
    linear-gradient(90deg, rgba(255,255,255,0.028) 1px, transparent 1px);
  background-size: 48px 48px;
  mask-image: radial-gradient(ellipse 80% 70% at 50% 50%, black 20%, transparent 80%);
  pointer-events: none;
  animation: gridPulse 8s ease-in-out infinite;
}

@keyframes gridPulse {
  0%, 100% { opacity: 0.7; }
  50% { opacity: 1; }
}

/* Hero floating particles */
.hero-particles {
  position: absolute;
  inset: 0;
  pointer-events: none;
  overflow: hidden;
}
.hero-particle {
  position: absolute;
  width: 3px;
  height: 3px;
  background: var(--primary);
  border-radius: 50%;
  opacity: 0;
  animation: floatParticle linear infinite;
}
@keyframes floatParticle {
  0%   { opacity: 0; transform: translateY(0) scale(0.5); }
  15%  { opacity: 0.7; }
  85%  { opacity: 0.4; }
  100% { opacity: 0; transform: translateY(-120px) scale(1.2); }
}

.hero > .container {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 48px;
  align-items: center;
  width: 100%;
}

.hero-content { max-width: 560px; }

.hero-badge {
  display: inline-flex;
  align-items: center;
  gap: 7px;
  font-size: 0.78rem;
  font-weight: 600;
  color: #4ADE80;
  background: rgba(74,222,128,0.1);
  border: 1px solid rgba(74,222,128,0.2);
  border-radius: 999px;
  padding: 6px 14px;
  margin-bottom: 24px;
  letter-spacing: 0.01em;
}
.hero-badge svg { width: 14px; height: 14px; }

.hero-headline {
  font-size: clamp(2.4rem, 5.5vw, 3.6rem);
  font-weight: 800;
  line-height: 1.08;
  letter-spacing: -0.035em;
  margin-bottom: 20px;
  background: linear-gradient(135deg, #fff 40%, #a1a1aa 100%);
  -webkit-background-clip: text;
  -webkit-text-fill-color: transparent;
  background-clip: text;
}

.hero-sub {
  font-size: 1.05rem;
  color: var(--text-muted);
  line-height: 1.7;
  margin-bottom: 32px;
  max-width: 460px;
}

.hero-actions {
  display: flex;
  align-items: center;
  gap: 14px;
  flex-wrap: wrap;
  margin-bottom: 20px;
}

.hero-note {
  display: flex;
  align-items: center;
  gap: 7px;
  font-size: 0.82rem;
  color: var(--text-dim);
}
.hero-note svg { width: 15px; height: 15px; }

/* ============================================================
   HERO MOCKUP
   ============================================================ */
.hero-mockup {
  display: flex;
  align-items: center;
  justify-content: center;
  perspective: 1200px;
}

.mockup-window {
  background: var(--bg-card);
  border: 1px solid var(--border);
  border-radius: var(--radius-xl);
  box-shadow: 0 32px 80px rgba(0,0,0,0.6), 0 0 0 1px rgba(255,255,255,0.04);
  overflow: hidden;
  width: 100%;
  max-width: 520px;
  transform: perspective(1200px) rotateY(-8deg) rotateX(3deg);
  transform-style: preserve-3d;
  transition: transform 0.6s cubic-bezier(0.4,0,0.2,1);
  animation: mockupFloat 6s ease-in-out infinite;
}
.mockup-window:hover {
  transform: perspective(1200px) rotateY(-2deg) rotateX(1deg) scale(1.01);
}
@keyframes mockupFloat {
  0%, 100% { transform: perspective(1200px) rotateY(-8deg) rotateX(3deg) translateY(0px); }
  50%       { transform: perspective(1200px) rotateY(-8deg) rotateX(3deg) translateY(-8px); }
}

.mockup-titlebar {
  display: flex;
  align-items: center;
  gap: 10px;
  padding: 10px 14px;
  background: rgba(255,255,255,0.03);
  border-bottom: 1px solid var(--border);
}
.mockup-dots { display: flex; gap: 6px; }
.dot {
  width: 10px; height: 10px;
  border-radius: 50%;
}
.dot-red    { background: #FF5F57; }
.dot-yellow { background: #FEBC2E; }
.dot-green  { background: #28C840; }
.mockup-url {
  flex: 1;
  text-align: center;
  font-size: 0.7rem;
  color: var(--text-dim);
  background: rgba(255,255,255,0.04);
  border-radius: 6px;
  padding: 3px 10px;
  font-family: 'SF Mono', 'Fira Code', monospace;
}
.mockup-body {
  display: flex;
  height: 340px;
}

/* Sidebar */
.mockup-sidebar {
  width: 80px;
  border-right: 1px solid var(--border);
  padding: 12px 8px;
  display: flex;
  flex-direction: column;
  gap: 4px;
  background: rgba(0,0,0,0.2);
  flex-shrink: 0;
}
.mockup-logo-row {
  display: flex;
  align-items: center;
  gap: 5px;
  padding: 4px 6px;
  margin-bottom: 8px;
}
.mockup-logo-icon { width: 16px; height: 16px; background: var(--primary); border-radius: 4px; flex-shrink: 0; animation: iconPulse 3s ease-in-out infinite; }
.mockup-logo-label { height: 7px; background: rgba(255,255,255,0.15); border-radius: 4px; flex: 1; }
.mockup-nav-item {
  display: flex;
  align-items: center;
  gap: 5px;
  padding: 5px 6px;
  border-radius: 6px;
  background: transparent;
  transition: background 0.2s;
}
.mockup-nav-item.active { background: rgba(37,99,235,0.2); }
.mockup-nav-icon { width: 12px; height: 12px; background: rgba(255,255,255,0.2); border-radius: 2px; flex-shrink: 0; }
.mockup-nav-item.active .mockup-nav-icon { background: var(--primary); }
.mockup-nav-label { height: 6px; background: rgba(255,255,255,0.12); border-radius: 3px; flex: 1; }
.mockup-nav-label.short { width: 60%; flex: none; }

/* Main area */
.mockup-main {
  flex: 1;
  display: flex;
  flex-direction: column;
  overflow: hidden;
}
.mockup-header-bar {
  display: flex;
  align-items: center;
  justify-content: space-between;
  padding: 10px 14px;
  border-bottom: 1px solid var(--border);
  background: rgba(0,0,0,0.1);
}
.mockup-page-title { width: 80px; height: 8px; background: rgba(255,255,255,0.2); border-radius: 4px; }
.mockup-header-actions { display: flex; align-items: center; gap: 6px; }
.mockup-icon-btn { width: 22px; height: 22px; background: rgba(255,255,255,0.07); border-radius: 6px; }
.mockup-avatar { width: 22px; height: 22px; background: var(--primary); border-radius: 50%; opacity: 0.7; animation: iconPulse 3s ease-in-out infinite 0.5s; }
@keyframes iconPulse {
  0%, 100% { opacity: 0.7; }
  50% { opacity: 1; }
}

.mockup-content { flex: 1; padding: 12px; overflow: hidden; display: flex; flex-direction: column; gap: 10px; }
.mockup-stat-row { display: grid; grid-template-columns: repeat(4,1fr); gap: 6px; }
.mockup-stat-card {
  background: rgba(255,255,255,0.04);
  border: 1px solid var(--border);
  border-radius: 8px;
  padding: 8px;
  display: flex;
  gap: 6px;
  align-items: flex-start;
}
.mockup-stat-icon {
  width: 18px; height: 18px;
  border-radius: 5px;
  flex-shrink: 0;
  animation: iconPulse 3s ease-in-out infinite;
}
.mockup-stat-icon.blue   { background: rgba(37,99,235,0.5); animation-delay: 0s; }
.mockup-stat-icon.purple { background: rgba(124,58,237,0.5); animation-delay: 0.4s; }
.mockup-stat-icon.orange { background: rgba(234,88,12,0.5); animation-delay: 0.8s; }
.mockup-stat-icon.green  { background: rgba(22,163,74,0.5); animation-delay: 1.2s; }
.mockup-stat-lines { display: flex; flex-direction: column; gap: 4px; flex: 1; }
.mockup-stat-label { height: 5px; background: rgba(255,255,255,0.12); border-radius: 3px; }
.mockup-stat-value { height: 8px; background: rgba(255,255,255,0.22); border-radius: 3px; width: 70%; }

.mockup-chart-row { display: grid; grid-template-columns: 1.6fr 1fr; gap: 6px; }
.mockup-chart-card {
  background: rgba(255,255,255,0.04);
  border: 1px solid var(--border);
  border-radius: 8px;
  padding: 8px;
  overflow: hidden;
}
.mockup-chart-title { height: 6px; background: rgba(255,255,255,0.15); border-radius: 3px; width: 50%; margin-bottom: 8px; }
.mockup-chart-area {
  height: 52px;
}
.mockup-chart-area svg { width: 100%; height: 100%; }

.mockup-mini-bars {
  height: 52px;
  display: flex;
  align-items: flex-end;
  gap: 3px;
}
.mockup-bar {
  flex: 1;
  background: rgba(37,99,235,0.5);
  border-radius: 2px 2px 0 0;
  animation: barPulse 2s ease-in-out infinite;
}
@keyframes barPulse {
  0%, 100% { opacity: 0.5; }
  50% { opacity: 1; }
}
.mockup-bar:nth-child(1) { animation-delay: 0s; }
.mockup-bar:nth-child(2) { animation-delay: 0.15s; }
.mockup-bar:nth-child(3) { animation-delay: 0.3s; }
.mockup-bar:nth-child(4) { animation-delay: 0.45s; }
.mockup-bar:nth-child(5) { animation-delay: 0.6s; }
.mockup-bar:nth-child(6) { animation-delay: 0.75s; }
.mockup-bar:nth-child(7) { animation-delay: 0.9s; }

.mockup-list-card {
  background: rgba(255,255,255,0.04);
  border: 1px solid var(--border);
  border-radius: 8px;
  padding: 8px;
}
.mockup-list-title { height: 6px; background: rgba(255,255,255,0.15); border-radius: 3px; width: 40%; margin-bottom: 8px; }
.mockup-list-item { display: flex; align-items: center; gap: 7px; padding: 5px 0; }
.mockup-list-dot {
  width: 6px; height: 6px;
  border-radius: 50%;
  flex-shrink: 0;
}
.mockup-list-dot.green  { background: #22C55E; }
.mockup-list-dot.blue   { background: #3B82F6; }
.mockup-list-dot.orange { background: #F97316; }
.mockup-list-text { flex: 1; height: 6px; background: rgba(255,255,255,0.12); border-radius: 3px; }
.mockup-list-text.short { max-width: 55%; }
.mockup-list-tag { width: 28px; height: 14px; background: rgba(37,99,235,0.25); border-radius: 4px; }

/* ============================================================
   STATS BAR
   ============================================================ */
.stats-bar {
  padding: 32px 0;
  border-top: 1px solid var(--border);
  border-bottom: 1px solid var(--border);
  background: rgba(255,255,255,0.015);
}
.stats-grid {
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 0;
  flex-wrap: wrap;
}
.stat-item {
  display: flex;
  flex-direction: column;
  align-items: center;
  padding: 8px 48px;
  gap: 4px;
}
.stat-num {
  font-size: 2rem;
  font-weight: 800;
  letter-spacing: -0.04em;
  color: var(--primary);
  line-height: 1;
}
.stat-label {
  font-size: 0.78rem;
  color: var(--text-muted);
  font-weight: 500;
  letter-spacing: 0.01em;
  white-space: nowrap;
}
.stat-divider {
  width: 1px;
  height: 40px;
  background: var(--border);
}

/* ============================================================
   FEATURES
   ============================================================ */
.features {
  padding: 100px 0;
}
.features-grid {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 20px;
}
.feature-card {
  background: var(--bg-card);
  border: 1px solid var(--border);
  border-radius: var(--radius-lg);
  padding: 28px;
  transition: border-color var(--transition), transform var(--transition), box-shadow var(--transition);
}
.feature-card:hover {
  border-color: var(--border-hover);
  transform: translateY(-3px);
  box-shadow: var(--shadow);
}
.feature-icon-wrap {
  width: 46px; height: 46px;
  border-radius: 12px;
  display: flex;
  align-items: center;
  justify-content: center;
  margin-bottom: 18px;
}
.feature-icon-wrap svg { width: 22px; height: 22px; }
.feature-icon-wrap.blue   { background: rgba(37,99,235,0.15);  color: #3B82F6; }
.feature-icon-wrap.orange { background: rgba(234,88,12,0.15);  color: #F97316; }
.feature-icon-wrap.green  { background: rgba(22,163,74,0.15);  color: #22C55E; }
.feature-icon-wrap.purple { background: rgba(124,58,237,0.15); color: #A855F7; }
.feature-icon-wrap.teal   { background: rgba(8,145,178,0.15);  color: #22D3EE; }
.feature-icon-wrap.yellow { background: rgba(245,158,11,0.15); color: #FCD34D; }
.feature-icon-wrap.pink   { background: rgba(219,39,119,0.15); color: #F472B6; }
.feature-icon-wrap.red    { background: rgba(220,38,38,0.15);  color: #F87171; }
.feature-card h3 {
  font-size: 1rem;
  font-weight: 700;
  margin-bottom: 8px;
  letter-spacing: -0.01em;
}
.feature-card p {
  font-size: 0.875rem;
  color: var(--text-muted);
  line-height: 1.65;
}

/* ============================================================
   COMPARISON (WHY BROWSER-BASED)
   ============================================================ */
.comparison {
  padding: 100px 0;
  background: linear-gradient(180deg, transparent 0%, rgba(37,99,235,0.025) 50%, transparent 100%);
}
.comparison-table-wrap {
  overflow-x: auto;
  border-radius: var(--radius-xl);
  border: 1px solid var(--border);
}
.comparison-table {
  width: 100%;
  border-collapse: collapse;
  background: var(--bg-card);
  min-width: 540px;
}
.comparison-table th,
.comparison-table td {
  padding: 16px 20px;
  text-align: center;
  border-bottom: 1px solid var(--border);
  font-size: 0.9rem;
}
.comparison-table thead th {
  font-size: 0.82rem;
  font-weight: 700;
  text-transform: uppercase;
  letter-spacing: 0.06em;
  color: var(--text-muted);
  background: rgba(255,255,255,0.025);
  padding: 18px 20px;
}
.comparison-table th.col-feature { text-align: left; width: 40%; }
.comparison-table td.col-feature { text-align: left; color: var(--text); font-weight: 500; }
.comparison-table th.col-gr { color: var(--primary); background: rgba(37,99,235,0.08); border-bottom: 1px solid var(--border); }
.comparison-table td.col-gr { background: rgba(37,99,235,0.04); }
.comparison-table tr:last-child td { border-bottom: none; }
.comparison-table tr:hover td { background: rgba(255,255,255,0.025); }
.comparison-table tr:hover td.col-gr { background: rgba(37,99,235,0.08); }

.check-yes     { color: #22C55E; font-size: 0.88rem; font-weight: 600; display: inline-flex; align-items: center; gap: 6px; }
.check-no      { color: #52525B; font-size: 0.88rem; font-weight: 600; display: inline-flex; align-items: center; gap: 6px; }
.check-partial { color: #F59E0B; font-size: 0.88rem; font-weight: 600; display: inline-flex; align-items: center; gap: 6px; }
.check-yes svg, .check-no svg, .check-partial svg { width: 14px; height: 14px; flex-shrink: 0; }

/* ============================================================
   MODULES
   ============================================================ */
.modules { padding: 100px 0; }
.modules-grid {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 16px;
}
.module-card {
  display: flex;
  align-items: flex-start;
  gap: 14px;
  background: var(--bg-card);
  border: 1px solid var(--border);
  border-radius: var(--radius-lg);
  padding: 20px;
  transition: border-color var(--transition), transform var(--transition), box-shadow var(--transition);
  cursor: default;
}
.module-card:hover {
  border-color: var(--border-hover);
  transform: translateY(-2px);
  box-shadow: var(--shadow);
}
.module-icon {
  width: 40px; height: 40px;
  border-radius: 10px;
  display: flex;
  align-items: center;
  justify-content: center;
  flex-shrink: 0;
  transition: transform 0.2s;
}
.module-card:hover .module-icon { transform: scale(1.08); }
.module-icon svg { width: 20px; height: 20px; }

/* Color-coded module icons */
.module-card:nth-child(1)  .module-icon { background: rgba(37,99,235,0.15);  color: #3B82F6; }
.module-card:nth-child(2)  .module-icon { background: rgba(124,58,237,0.15); color: #A855F7; }
.module-card:nth-child(3)  .module-icon { background: rgba(234,88,12,0.15);  color: #F97316; }
.module-card:nth-child(4)  .module-icon { background: rgba(22,163,74,0.15);  color: #22C55E; }
.module-card:nth-child(5)  .module-icon { background: rgba(37,99,235,0.15);  color: #3B82F6; }
.module-card:nth-child(6)  .module-icon { background: rgba(8,145,178,0.15);  color: #22D3EE; }
.module-card:nth-child(7)  .module-icon { background: rgba(245,158,11,0.15); color: #FCD34D; }
.module-card:nth-child(8)  .module-icon { background: rgba(124,58,237,0.15); color: #A855F7; }
.module-card:nth-child(9)  .module-icon { background: rgba(37,99,235,0.15);  color: #3B82F6; }
.module-card:nth-child(10) .module-icon { background: rgba(219,39,119,0.15); color: #F472B6; }
.module-card:nth-child(11) .module-icon { background: rgba(22,163,74,0.15);  color: #22C55E; }
.module-card:nth-child(12) .module-icon { background: rgba(234,88,12,0.15);  color: #F97316; }
.module-card:nth-child(13) .module-icon { background: rgba(113,113,122,0.15); color: #A1A1AA; }

.module-info h4 {
  font-size: 0.9rem;
  font-weight: 700;
  margin-bottom: 4px;
  letter-spacing: -0.01em;
}
.module-info p {
  font-size: 0.8rem;
  color: var(--text-muted);
  line-height: 1.6;
}

/* ============================================================
   HOW IT WORKS
   ============================================================ */
.how-it-works { padding: 100px 0; }
.steps-grid {
  display: grid;
  grid-template-columns: 1fr auto 1fr auto 1fr;
  gap: 24px;
  align-items: center;
}
.step-card {
  background: var(--bg-card);
  border: 1px solid var(--border);
  border-radius: var(--radius-lg);
  padding: 28px;
  text-align: center;
  transition: border-color var(--transition), transform var(--transition);
}
.step-card:hover { border-color: var(--border-hover); transform: translateY(-2px); }
.step-num {
  font-size: 2.5rem;
  font-weight: 800;
  color: var(--primary);
  opacity: 0.5;
  letter-spacing: -0.04em;
  margin-bottom: 12px;
  line-height: 1;
}
.step-card h3 { font-size: 1rem; font-weight: 700; margin-bottom: 8px; }
.step-card p  { font-size: 0.85rem; color: var(--text-muted); line-height: 1.65; }
.step-arrow { color: var(--text-dim); display: flex; align-items: center; }
.step-arrow svg { width: 24px; height: 24px; }

/* ============================================================
   PRIVACY
   ============================================================ */
.privacy { padding: 100px 0; }
.privacy-inner {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 60px;
  align-items: center;
}
.privacy-text .section-title { text-align: left; margin-bottom: 16px; }
.privacy-text p { color: var(--text-muted); line-height: 1.7; margin-bottom: 24px; }
.privacy-list { list-style: none; display: flex; flex-direction: column; gap: 12px; }
.privacy-list li {
  display: flex;
  align-items: center;
  gap: 12px;
  font-size: 0.9rem;
  color: var(--text-muted);
}
.privacy-check {
  width: 22px; height: 22px;
  background: rgba(22,163,74,0.15);
  border-radius: 50%;
  display: flex;
  align-items: center;
  justify-content: center;
  flex-shrink: 0;
  color: #22C55E;
}
.privacy-check svg { width: 13px; height: 13px; }

.privacy-visual {
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 24px;
}
.privacy-device {
  background: var(--bg-card);
  border: 1px solid var(--border);
  border-radius: var(--radius-xl);
  padding: 28px;
  width: 100%;
  max-width: 340px;
  text-align: center;
}
.privacy-device-icon {
  width: 56px; height: 56px;
  background: rgba(37,99,235,0.12);
  border-radius: var(--radius-lg);
  display: flex;
  align-items: center;
  justify-content: center;
  margin: 0 auto 12px;
  color: var(--primary);
}
.privacy-device-icon svg { width: 28px; height: 28px; }
.privacy-device-label { font-size: 0.85rem; font-weight: 600; color: var(--text-muted); margin-bottom: 18px; }
.privacy-data-chips { display: flex; flex-wrap: wrap; gap: 7px; justify-content: center; }
.data-chip {
  background: rgba(255,255,255,0.06);
  border: 1px solid var(--border);
  border-radius: 999px;
  padding: 4px 12px;
  font-size: 0.73rem;
  font-weight: 600;
  color: var(--text-muted);
}
.privacy-no-cloud {
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 8px;
  opacity: 0.55;
}
.privacy-cross-line {
  width: 2px; height: 28px;
  background: var(--border);
}
.privacy-cloud-icon {
  width: 44px; height: 44px;
  background: rgba(220,38,38,0.1);
  border-radius: 50%;
  display: flex;
  align-items: center;
  justify-content: center;
  color: #EF4444;
}
.privacy-cloud-icon svg { width: 22px; height: 22px; }
.privacy-cloud-label { font-size: 0.75rem; color: var(--text-dim); font-weight: 600; }

/* ============================================================
   TESTIMONIALS
   ============================================================ */
.testimonials {
  padding: 100px 0;
  background: linear-gradient(180deg, transparent, rgba(37,99,235,0.025) 50%, transparent);
}
.testimonials-grid {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 20px;
}
.testimonial-card {
  background: var(--bg-card);
  border: 1px solid var(--border);
  border-radius: var(--radius-lg);
  padding: 28px;
  display: flex;
  flex-direction: column;
  gap: 16px;
  transition: border-color var(--transition), transform var(--transition), box-shadow var(--transition);
}
.testimonial-card:hover {
  border-color: var(--border-hover);
  transform: translateY(-2px);
  box-shadow: var(--shadow);
}
.testimonial-stars {
  display: flex;
  gap: 3px;
  color: #FCD34D;
}
.testimonial-stars svg { width: 15px; height: 15px; }
.testimonial-text {
  font-size: 0.91rem;
  color: var(--text-muted);
  line-height: 1.7;
  flex: 1;
}
.testimonial-author {
  display: flex;
  align-items: center;
  gap: 12px;
  padding-top: 16px;
  border-top: 1px solid var(--border);
}
.testimonial-avatar {
  width: 38px; height: 38px;
  border-radius: 50%;
  display: flex;
  align-items: center;
  justify-content: center;
  font-weight: 700;
  font-size: 0.8rem;
  flex-shrink: 0;
}
.testimonial-avatar.a1 { background: rgba(37,99,235,0.2);  color: #60A5FA; }
.testimonial-avatar.a2 { background: rgba(22,163,74,0.2);  color: #4ADE80; }
.testimonial-avatar.a3 { background: rgba(124,58,237,0.2); color: #C084FC; }
.testimonial-avatar.a4 { background: rgba(234,88,12,0.2);  color: #FB923C; }
.testimonial-name { font-size: 0.88rem; font-weight: 700; }
.testimonial-role { font-size: 0.75rem; color: var(--text-dim); }

/* ============================================================
   CTA BANNER
   ============================================================ */
.cta-banner {
  padding: 80px 0;
  background: linear-gradient(135deg, rgba(37,99,235,0.12) 0%, rgba(124,58,237,0.08) 100%);
  border-top: 1px solid var(--border);
  border-bottom: 1px solid var(--border);
}
.cta-inner {
  text-align: center;
  max-width: 580px;
  margin: 0 auto;
}
.cta-inner h2 {
  font-size: clamp(1.75rem, 4vw, 2.4rem);
  font-weight: 800;
  letter-spacing: -0.025em;
  margin-bottom: 12px;
}
.cta-inner p {
  font-size: 1rem;
  color: var(--text-muted);
  margin-bottom: 28px;
}

/* ============================================================
   FAQ
   ============================================================ */
.faq { padding: 100px 0; }
.faq-list { max-width: 740px; margin: 0 auto; display: flex; flex-direction: column; gap: 10px; }
.faq-item {
  background: var(--bg-card);
  border: 1px solid var(--border);
  border-radius: var(--radius-lg);
  overflow: hidden;
  transition: border-color var(--transition);
}
.faq-item:hover { border-color: var(--border-hover); }
.faq-item.open { border-color: rgba(37,99,235,0.3); }

.faq-question {
  width: 100%;
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 16px;
  padding: 20px 22px;
  background: none;
  border: none;
  color: var(--text);
  font-family: inherit;
  font-size: 0.95rem;
  font-weight: 600;
  text-align: left;
  cursor: pointer;
  transition: color var(--transition);
}
.faq-item.open .faq-question { color: var(--primary); }

.faq-icon {
  width: 24px; height: 24px;
  display: flex;
  align-items: center;
  justify-content: center;
  flex-shrink: 0;
  color: var(--text-muted);
  transition: transform 0.3s cubic-bezier(0.4,0,0.2,1), color 0.2s;
}
.faq-icon svg { width: 18px; height: 18px; }
.faq-item.open .faq-icon {
  transform: rotate(180deg);
  color: var(--primary);
}

.faq-answer {
  max-height: 0;
  overflow: hidden;
  transition: max-height 0.35s cubic-bezier(0.4,0,0.2,1);
}
.faq-answer-inner {
  padding: 0 22px 20px;
}
.faq-answer-inner p {
  font-size: 0.9rem;
  color: var(--text-muted);
  line-height: 1.7;
}
.faq-item.open .faq-answer { max-height: 300px; }

/* ============================================================
   FOOTER
   ============================================================ */
.footer {
  padding: 56px 0 32px;
  border-top: 1px solid var(--border);
  background: rgba(0,0,0,0.3);
}
.footer-inner {
  display: grid;
  grid-template-columns: 1.4fr 1fr 1fr;
  gap: 40px;
  margin-bottom: 40px;
}
.footer-brand {}
.footer-logo {
  display: flex;
  align-items: center;
  text-decoration: none;
  margin-bottom: 12px;
}
.footer-logo img { border-radius: 8px; }
.footer-logo-icon {
  width: 40px; height: 40px;
  background: var(--primary);
  border-radius: 10px;
  display: none;
  align-items: center;
  justify-content: center;
  color: #fff;
}
.footer-logo-icon svg { width: 20px; height: 20px; }
.footer-tagline { font-size: 0.85rem; color: var(--text-muted); line-height: 1.6; max-width: 260px; margin-bottom: 20px; }
.footer-social { display: flex; gap: 10px; }
.footer-social-link {
  width: 34px; height: 34px;
  display: flex;
  align-items: center;
  justify-content: center;
  background: rgba(255,255,255,0.06);
  border: 1px solid var(--border);
  border-radius: 8px;
  color: var(--text-muted);
  text-decoration: none;
  transition: background var(--transition), color var(--transition), border-color var(--transition);
}
.footer-social-link:hover { background: rgba(37,99,235,0.15); color: var(--primary); border-color: rgba(37,99,235,0.3); }
.footer-social-link svg { width: 16px; height: 16px; }

.footer-links { display: contents; }
.footer-col {}
.footer-col h5 {
  font-size: 0.75rem;
  font-weight: 700;
  text-transform: uppercase;
  letter-spacing: 0.1em;
  color: var(--text-dim);
  margin-bottom: 14px;
}
.footer-col ul { list-style: none; display: flex; flex-direction: column; gap: 8px; }
.footer-col a {
  color: var(--text-muted);
  text-decoration: none;
  font-size: 0.875rem;
  transition: color var(--transition);
}
.footer-col a:hover { color: var(--text); }

.footer-bottom {
  padding-top: 28px;
  border-top: 1px solid var(--border);
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 16px;
  flex-wrap: wrap;
}
.footer-bottom p {
  font-size: 0.78rem;
  color: var(--text-dim);
}
.footer-bottom a { color: var(--text-dim); text-decoration: none; }
.footer-bottom a:hover { color: var(--text-muted); }

.footer-legal {
  display: flex;
  align-items: center;
  gap: 10px;
}
.footer-legal a {
  font-size: 0.78rem;
  color: var(--text-dim);
  text-decoration: none;
  transition: color var(--transition);
}
.footer-legal a:hover { color: var(--text-muted); }
.footer-legal-sep {
  width: 3px;
  height: 3px;
  border-radius: 50%;
  background: var(--text-dim);
  opacity: 0.4;
  flex-shrink: 0;
}

/* ============================================================
   BACK TO TOP
   ============================================================ */
.back-to-top {
  position: fixed;
  bottom: 28px;
  right: 28px;
  z-index: 200;
  width: 44px; height: 44px;
  display: flex;
  align-items: center;
  justify-content: center;
  background: var(--primary);
  color: #fff;
  border: none;
  border-radius: 50%;
  cursor: pointer;
  box-shadow: 0 4px 16px var(--primary-glow);
  opacity: 0;
  transform: translateY(12px) scale(0.9);
  pointer-events: none;
  transition: opacity 0.25s, transform 0.25s, background 0.2s;
}
.back-to-top.visible {
  opacity: 1;
  transform: translateY(0) scale(1);
  pointer-events: all;
}
.back-to-top:hover { background: var(--primary-dark); transform: translateY(-2px) scale(1.05); }
.back-to-top svg { width: 20px; height: 20px; }

/* ============================================================
   RESPONSIVE
   ============================================================ */
@media (max-width: 1024px) {
  .hero > .container { grid-template-columns: 1fr; gap: 48px; }
  .hero-content { max-width: 600px; margin: 0 auto; text-align: center; }
  .hero-actions { justify-content: center; }
  .hero-note { justify-content: center; }
  .hero-sub { margin: 0 auto 32px; }
  .hero-mockup { justify-content: center; }
  .mockup-window { transform: none !important; animation: mockupFloatSimple 6s ease-in-out infinite; }
  @keyframes mockupFloatSimple {
    0%, 100% { transform: translateY(0px); }
    50% { transform: translateY(-8px); }
  }

  .features-grid { grid-template-columns: repeat(2, 1fr); }
  .modules-grid  { grid-template-columns: repeat(2, 1fr); }
  .steps-grid {
    grid-template-columns: 1fr 1fr 1fr;
    grid-template-rows: auto auto;
  }
  .step-arrow { display: none; }
  .testimonials-grid { grid-template-columns: 1fr 1fr; }
  .privacy-inner { grid-template-columns: 1fr; gap: 40px; }
  .footer-inner { grid-template-columns: 1fr 1fr; }
}

@media (max-width: 768px) {
  .nav-links { display: none; }
  .nav-hamburger { display: flex; }
  .btn-nav-cta { display: none; }

  .features-grid  { grid-template-columns: 1fr; }
  .modules-grid   { grid-template-columns: 1fr; }
  .steps-grid     { grid-template-columns: 1fr; }
  .testimonials-grid { grid-template-columns: 1fr; }

  .stats-grid { gap: 0; }
  .stat-item { padding: 12px 24px; }
  .stat-divider { display: none; }

  .footer-inner { grid-template-columns: 1fr; }
  .footer-bottom { flex-direction: column; text-align: center; }

  .comparison-table th, .comparison-table td { padding: 12px 14px; font-size: 0.83rem; }
}

@media (max-width: 480px) {
  .hero { padding: 80px 0 60px; }
  .hero-actions { flex-direction: column; align-items: stretch; text-align: center; }
  .btn-primary.btn-lg, .btn-outline.btn-lg { justify-content: center; }
  .stat-num { font-size: 1.6rem; }
}
