/* ══════════════════════════════════════
   Charge26 – Design System
   ══════════════════════════════════════ */

/* ── Variables ── */
:root {
  --primary: #1a365d;
  --primary-light: #2a4a7f;
  --primary-dark: #0f2440;
  --accent: #2563eb;
  --accent-light: #3b82f6;
  --accent-glow: rgba(37, 99, 235, 0.18);
  --bg: #f8fafc;
  --bg-alt: #f1f5f9;
  --white: #ffffff;
  --text: #334155;
  --text-light: #64748b;
  --text-dark: #0f172a;
  --border: #e2e8f0;
  --shadow: 0 4px 24px rgba(15,23,42,0.06);
  --shadow-lg: 0 16px 48px rgba(15,23,42,0.08);
  --shadow-xl: 0 24px 64px rgba(15,23,42,0.12);
  --radius: 18px;
  --radius-sm: 10px;
  --radius-xl: 24px;
  --spring: 0.5s cubic-bezier(0.32, 0.72, 0, 1);
  --spring-bounce: 0.6s cubic-bezier(0.34, 1.56, 0.64, 1);
  --transition: var(--spring);
  --transition-slow: 0.8s cubic-bezier(0.32, 0.72, 0, 1);
}

/* ── Reset & Base ── */
*, *::before, *::after { margin: 0; padding: 0; box-sizing: border-box; }
html { scroll-behavior: smooth; }
body {
  font-family: 'Outfit', system-ui, -apple-system, sans-serif;
  color: var(--text);
  background: var(--bg);
  line-height: 1.6;
  -webkit-font-smoothing: antialiased;
  -moz-osx-font-smoothing: grayscale;
}

/* ── Navigation ── */
nav {
  position: fixed; top: 0; left: 0; right: 0; z-index: 1000;
  background: rgba(255,255,255,0.95);
  backdrop-filter: blur(16px);
  -webkit-backdrop-filter: blur(16px);
  box-shadow: 0 1px 8px rgba(26,54,93,0.06);
  padding: 0 24px;
  transition: box-shadow var(--transition);
}
nav.scrolled { box-shadow: 0 4px 20px rgba(26,54,93,0.10); }
.nav-inner {
  max-width: 1200px; margin: 0 auto;
  display: flex; align-items: center; justify-content: space-between;
  height: 72px;
}
.logo {
  text-decoration: none; font-size: 1.5rem; font-weight: 800;
  color: var(--primary); letter-spacing: -0.5px;
}
.logo span { color: var(--accent); }
.nav-links { display: flex; gap: 32px; align-items: center; }
.nav-links a {
  text-decoration: none; color: var(--text); font-size: 0.95rem;
  font-weight: 500; transition: color var(--transition);
  position: relative;
}
.nav-links a::after {
  content: ''; position: absolute; bottom: -4px; left: 0;
  width: 0; height: 2px; background: var(--accent);
  transition: width var(--transition);
}
.nav-links a:hover { color: var(--accent); }
.nav-links a:hover::after { width: 100%; }
.nav-cta {
  background: var(--text-dark) !important; color: var(--white) !important;
  padding: 10px 24px !important; border-radius: 50px !important;
  font-weight: 600 !important; font-size: 0.9rem !important;
  transition: all var(--transition) !important;
  box-shadow: 0 2px 8px rgba(15,23,42,0.1);
}
.nav-cta::after { display: none !important; }
.nav-cta:hover {
  background: var(--accent) !important;
  transform: translateY(-1px);
  box-shadow: 0 4px 16px rgba(37,99,235,0.2) !important;
}

/* Hamburger Menu */
.nav-toggle {
  display: none; background: none; border: none; cursor: pointer;
  width: 32px; height: 32px; position: relative; z-index: 1001;
}
.nav-toggle span {
  display: block; width: 24px; height: 2px; background: var(--primary);
  position: absolute; left: 4px; transition: all var(--transition);
}
.nav-toggle span:nth-child(1) { top: 8px; }
.nav-toggle span:nth-child(2) { top: 15px; }
.nav-toggle span:nth-child(3) { top: 22px; }
.nav-toggle.active span:nth-child(1) { top: 15px; transform: rotate(45deg); }
.nav-toggle.active span:nth-child(2) { opacity: 0; }
.nav-toggle.active span:nth-child(3) { top: 15px; transform: rotate(-45deg); }

/* ── Container ── */
.container { max-width: 1200px; margin: 0 auto; padding: 0 24px; }

/* ── Section Labels ── */
.section-label {
  font-size: 0.78rem; font-weight: 600; text-transform: uppercase;
  letter-spacing: 0.12em; color: var(--accent); margin-bottom: 14px;
}
.section-title {
  font-size: clamp(1.9rem, 4.2vw, 2.8rem); font-weight: 800;
  color: var(--text-dark); margin-bottom: 16px; letter-spacing: -0.025em;
  line-height: 1.15;
}
.section-subtitle {
  font-size: 1.05rem; color: var(--text-light); max-width: 58ch;
  line-height: 1.7;
}
.section-header-center {
  text-align: center;
}
.section-header-center .section-subtitle {
  margin: 0 auto;
}

/* ── Buttons ── */
.btn-primary {
  display: inline-flex; align-items: center; gap: 8px;
  background: var(--accent); color: #fff;
  padding: 14px 32px; border-radius: 50px;
  font-size: 15px; font-weight: 600; text-decoration: none;
  transition: all var(--transition); border: none; cursor: pointer;
  box-shadow: 0 2px 12px rgba(37,99,235,0.2);
}
.btn-primary:hover {
  background: var(--primary); transform: translateY(-2px);
  box-shadow: 0 8px 24px rgba(37,99,235,0.25);
}
.btn-primary:active { transform: translateY(0) scale(0.98); }
.btn-secondary {
  display: inline-flex; align-items: center; gap: 8px;
  background: rgba(255,255,255,0.08); color: #ffffff;
  padding: 14px 32px; border-radius: 50px;
  font-size: 15px; font-weight: 600; text-decoration: none;
  border: 1.5px solid rgba(255,255,255,0.2); transition: all var(--transition);
  backdrop-filter: blur(8px);
}
.btn-secondary:hover {
  border-color: rgba(255,255,255,0.5); color: #ffffff;
  background: rgba(255,255,255,0.15);
  transform: translateY(-2px);
}
.btn-secondary:active { transform: translateY(0) scale(0.98); }
.btn-outline {
  display: inline-flex; align-items: center; gap: 8px;
  background: transparent; color: var(--accent);
  padding: 14px 32px; border-radius: 50px;
  font-size: 15px; font-weight: 600; text-decoration: none;
  border: 1.5px solid var(--accent); transition: all var(--transition);
  cursor: pointer;
}
.btn-outline:hover {
  background: var(--accent); color: #fff;
  transform: translateY(-2px); box-shadow: 0 8px 24px rgba(37,99,235,0.2);
}
.btn-outline:active { transform: translateY(0) scale(0.98); }

/* ── Hero (Subpages) ── */
.hero {
  padding: 140px 24px 80px;
  background: linear-gradient(170deg, rgba(15,30,55,0.65) 0%, rgba(20,40,70,0.45) 100%),
              var(--hero-bg, none) center/cover no-repeat;
  text-align: center; position: relative; overflow: hidden;
}
.hero::before {
  content: ''; position: absolute; top: 0; left: 0; right: 0; bottom: 0;
  background: radial-gradient(ellipse at 30% 20%, rgba(43,108,176,0.15) 0%, transparent 70%);
  pointer-events: none;
}
.hero-badges { display: flex; gap: 12px; justify-content: center; flex-wrap: wrap; margin-bottom: 32px; }
.hero-badge {
  display: inline-block;
  background: linear-gradient(135deg, var(--primary), var(--primary-light));
  color: #fff; font-size: 1rem; font-weight: 700;
  padding: 12px 28px; border-radius: 50px; letter-spacing: 0.3px;
  box-shadow: 0 4px 15px rgba(26,54,93,0.25);
}
.hero h1 {
  font-size: clamp(2rem, 5vw, 3.2rem); font-weight: 800; line-height: 1.12;
  color: #ffffff; max-width: 850px; margin: 0 auto 20px;
  letter-spacing: -0.03em;
}
.hero h1 span, .hero h1 em { color: #90cdf4; font-style: normal; }
.hero p {
  font-size: clamp(1rem, 2vw, 1.2rem); color: rgba(255,255,255,0.85);
  max-width: 620px; margin: 0 auto 40px; line-height: 1.7;
}
.hero-buttons { display: flex; gap: 16px; justify-content: center; flex-wrap: wrap; }
.hero-duo {
  display: grid; grid-template-columns: 1fr 1fr;
  gap: 20px; margin-top: 40px;
  max-width: 900px; margin-left: auto; margin-right: auto;
}
.hero-duo-img {
  border-radius: var(--radius); overflow: hidden;
  box-shadow: var(--shadow-lg);
}
.hero-duo-img img {
  width: 100%; height: 260px; object-fit: cover; display: block;
  transition: transform var(--transition-slow);
}
.hero-duo-img:hover img { transform: scale(1.04); }

/* Hero Stats */
.hero-stats { display: flex; gap: 48px; margin-top: 32px; justify-content: center; }
.hero-stat { text-align: center; }
.hero-stat .num { font-size: 2rem; font-weight: 800; color: var(--white); }
.hero-stat .label { font-size: 0.85rem; color: rgba(255,255,255,0.7); margin-top: 4px; }

/* ── Social Proof Bar ── */
.social-proof-section { padding: 40px 24px; background: var(--primary-dark); }
.social-proof-bar {
  max-width: 1200px; margin: 0 auto;
  display: flex; justify-content: center; align-items: center;
  gap: 48px; flex-wrap: wrap;
}
.proof-item { display: flex; flex-direction: column; align-items: center; text-align: center; }
.proof-number { font-size: 1.5rem; font-weight: 800; color: #fff; }
.proof-label { font-size: 0.8rem; color: rgba(255,255,255,0.7); margin-top: 4px; font-weight: 500; }
.proof-divider { width: 1px; height: 40px; background: rgba(255,255,255,0.2); }

/* ── Pain Points ── */
.pain-section { padding: 100px 24px; background: var(--bg); }
.pain-grid {
  display: grid; grid-template-columns: repeat(3, 1fr);
  gap: 28px; margin-top: 48px;
}
.pain-card {
  background: var(--white); border: 1px solid var(--border);
  border-radius: var(--radius-xl); overflow: hidden;
  transition: all var(--spring); position: relative;
}
.pain-card::after {
  content: ''; position: absolute; bottom: 0; left: 24px; right: 24px;
  height: 3px; background: var(--accent); border-radius: 3px 3px 0 0;
  opacity: 0; transition: opacity var(--transition);
}
.pain-card:hover {
  box-shadow: var(--shadow-lg); transform: translateY(-6px);
}
.pain-card:hover::after { opacity: 1; }
.pain-card img {
  width: 100%; height: 220px; object-fit: cover; display: block;
  transition: transform var(--transition-slow);
}
.pain-card:hover img { transform: scale(1.04); }
.pain-card-body { padding: 24px 28px 28px; }
.pain-card-body h3 {
  font-size: 1.1rem; font-weight: 700; margin-bottom: 10px;
  color: var(--text-dark);
}
.pain-card-body p {
  font-size: 0.9rem; color: var(--text-light); line-height: 1.65;
}

/* ── Tab System ── */
.solution-section { padding: 100px 24px; }
.tabs {
  display: flex; gap: 8px; margin-top: 40px;
  border-bottom: 2px solid var(--border); padding-bottom: 0;
}
.tab-btn {
  display: flex; align-items: center; gap: 10px;
  padding: 16px 28px; border: none; background: none;
  font-family: inherit; font-size: 0.95rem; font-weight: 600;
  color: var(--text-light); cursor: pointer;
  border-bottom: 3px solid transparent; margin-bottom: -2px;
  transition: all var(--transition); border-radius: var(--radius-sm) var(--radius-sm) 0 0;
}
.tab-btn:hover { color: var(--primary); background: var(--bg); }
.tab-btn.active {
  color: var(--primary); border-bottom-color: var(--accent);
  background: var(--bg);
}
.tab-icon { font-size: 1.25rem; }

.tab-panels { margin-top: 0; }
.tab-panel {
  display: none; padding: 48px 0;
  animation: fadeSlideUp 0.5s ease;
}
.tab-panel.active {
  display: grid; grid-template-columns: 1fr 1fr;
  gap: 48px; align-items: center;
}
@keyframes fadeSlideUp {
  from { opacity: 0; transform: translateY(12px); }
  to { opacity: 1; transform: translateY(0); }
}

.tab-content h3 {
  font-size: 1.5rem; font-weight: 800; color: var(--primary);
  margin: 12px 0 16px;
}
.tab-content p {
  font-size: 0.95rem; color: var(--text-light); line-height: 1.7;
  margin-bottom: 20px;
}
.feature-tag {
  display: inline-block; font-size: 0.75rem; font-weight: 600;
  color: var(--primary); background: #dbeafe;
  padding: 4px 12px; border-radius: 6px;
}
.tab-checklist { list-style: none; padding: 0; }
.tab-checklist li {
  padding: 10px 0; font-size: 0.9rem; color: var(--text-light);
  border-bottom: 1px solid var(--border);
  display: flex; align-items: center; gap: 10px;
}
.tab-checklist li:last-child { border-bottom: none; }
.tab-checklist li::before {
  content: '\2713'; color: var(--accent); font-weight: 700;
  font-size: 1rem; flex-shrink: 0;
}

/* Tab Visuals */
.tab-visual { display: flex; justify-content: center; align-items: center; }
.visual-box {
  background: var(--bg); border: 1px solid var(--border);
  border-radius: var(--radius); padding: 40px;
  display: flex; flex-direction: row; flex-wrap: wrap;
  align-items: center; justify-content: center; gap: 8px;
  width: 100%; text-align: center;
}
.visual-icon {
  width: 64px; height: 64px; background: #dbeafe;
  border-radius: var(--radius); display: flex; align-items: center;
  justify-content: center; font-size: 1.75rem;
}
.visual-icon.accent {
  background: var(--accent); color: #fff;
}
.visual-connector {
  font-size: 1.5rem; color: var(--accent); font-weight: 800; margin: 4px 0;
}
.visual-label { font-size: 0.8rem; color: var(--text-light); font-weight: 500; }

.visual-stat { display: inline-flex; flex-direction: column; align-items: center; margin: 0 20px; }
.stat-value { font-size: 2rem; font-weight: 800; color: var(--primary); }
.stat-desc { font-size: 0.75rem; color: var(--text-light); margin-top: 4px; }

/* Calendar Visual */
.visual-calendar { display: flex; flex-direction: column; gap: 6px; }
.cal-row { display: flex; gap: 6px; }
.cal-slot {
  width: 48px; height: 28px; border-radius: 6px;
  background: #e2e8f0; border: 1px solid var(--border);
  transition: all var(--transition);
}
.cal-slot.booked { background: var(--accent); border-color: var(--accent); }

/* ── White Label Section ── */
.whitelabel-section {
  padding: 100px 24px;
  background: linear-gradient(135deg, #0f2440 0%, #1a365d 50%, #2b4c7e 100%);
}
.wl-layout {
  display: flex; flex-direction: column; gap: 48px; align-items: center;
}
.wl-text { text-align: center; max-width: 700px; }
.wl-badge {
  display: inline-block; background: #e08a1e; color: #fff;
  font-size: 0.8rem; font-weight: 800; text-transform: uppercase;
  padding: 6px 18px; border-radius: 50px; letter-spacing: 1.5px;
  margin-bottom: 16px;
}
.wl-text h2 {
  font-size: clamp(1.6rem, 3.5vw, 2.2rem); font-weight: 800;
  color: #fff; line-height: 1.25; margin-bottom: 16px;
}
.wl-text h2 em { font-style: normal; color: #e08a1e; }
.wl-text p {
  font-size: 1rem; color: rgba(255,255,255,0.75); line-height: 1.7;
  margin-bottom: 28px;
}
.wl-features {
  display: grid; grid-template-columns: 1fr 1fr;
  gap: 14px; max-width: 500px; margin: 0 auto;
}
.wl-feat {
  display: flex; align-items: center; gap: 10px;
  background: rgba(255,255,255,0.08); border: 1px solid rgba(255,255,255,0.1);
  border-radius: 10px; padding: 12px 16px;
  font-size: 0.875rem; color: rgba(255,255,255,0.9); font-weight: 500;
  transition: all var(--transition);
}
.wl-feat:hover {
  background: rgba(255,255,255,0.14);
  transform: translateY(-2px);
}
.wl-feat-icon { font-size: 1.125rem; }

/* Mockup Browser */
.mockup-duo {
  display: flex; flex-direction: row;
  gap: 24px; align-items: flex-end; justify-content: center;
}
.mockup-browser-col { flex: 1 1 0; min-width: 280px; max-width: 480px; }
.mockup-browser {
  width: 100%; background: #fff; border-radius: 12px; overflow: hidden;
  box-shadow: 0 25px 60px -12px rgba(0,0,0,0.4);
}
.mockup-topbar {
  background: #f1f5f9; padding: 12px 16px;
  display: flex; align-items: center; gap: 12px;
  border-bottom: 1px solid #e2e8f0;
}
.mockup-dots { display: flex; gap: 6px; }
.mockup-dots span { width: 10px; height: 10px; border-radius: 50%; }
.mockup-dots span:nth-child(1) { background: #ef4444; }
.mockup-dots span:nth-child(2) { background: #f59e0b; }
.mockup-dots span:nth-child(3) { background: #22c55e; }
.mockup-url {
  background: #fff; border: 1px solid #e2e8f0; border-radius: 6px;
  padding: 4px 14px; font-size: 0.75rem; color: #64748b; flex: 1;
  font-family: monospace;
}
.mockup-content { padding: 20px; }
.mockup-header {
  display: flex; justify-content: space-between; align-items: center;
  margin-bottom: 20px;
}
.mockup-logo-placeholder {
  background: linear-gradient(135deg, #1a365d, #2b4c7e); color: #fff;
  padding: 6px 16px; border-radius: 6px; font-size: 0.75rem; font-weight: 700;
}
.mockup-nav-dots { display: flex; gap: 8px; }
.mockup-nav-dots span {
  width: 40px; height: 8px; background: #e2e8f0; border-radius: 4px;
}
.mockup-hero-area { margin-bottom: 20px; }
.mockup-title-line {
  width: 70%; height: 14px; background: #1a365d; border-radius: 4px;
  margin-bottom: 8px;
}
.mockup-subtitle-line {
  width: 50%; height: 10px; background: #e2e8f0; border-radius: 4px;
}
.mockup-cards { display: flex; gap: 12px; margin-bottom: 20px; }
.mockup-card {
  flex: 1; background: #f8fafc; border: 1px solid #e2e8f0;
  border-radius: var(--radius-sm); padding: 14px; text-align: center;
}
.mockup-card-icon { font-size: 1.25rem; margin-bottom: 8px; }
.mockup-card-lines span {
  display: block; height: 6px; background: #e2e8f0; border-radius: 3px;
  margin-bottom: 4px;
}
.mockup-card-lines span:last-child { width: 60%; margin: 0 auto; }
.mockup-chart-svg { width: 100%; height: auto; }
.mockup-color-hint {
  display: flex; align-items: center; gap: 8px;
  margin-top: 16px; justify-content: center;
}
.color-dot {
  width: 20px; height: 20px; border-radius: 50%;
  border: 2px solid rgba(255,255,255,0.3);
}
.color-arrow { font-size: 0.8rem; color: rgba(255,255,255,0.5); margin-left: 4px; }

/* Mockup animations */
.mockup-content, .mockup-logo-placeholder, .mockup-title-line,
.anim-line, .cd1, .cd2, .cd3 { transition: all 0.8s ease; }
.mockup-url { transition: opacity 0.4s; }

/* Phone Mockup */
.mockup-phone-wrap { display: flex; flex-direction: column; align-items: center; }
.mockup-phone {
  width: 160px; background: #1a1a1a; border-radius: 24px;
  padding: 8px; box-shadow: 0 25px 60px -12px rgba(0,0,0,0.4);
}
.phone-notch {
  width: 60px; height: 6px; background: #1a1a1a; border-radius: 0 0 8px 8px;
  margin: 0 auto; position: relative; z-index: 2;
}
.phone-screen {
  background: #fff; border-radius: 18px; padding: 14px 12px 12px;
  min-height: 280px;
}
.phone-header {
  display: flex; justify-content: space-between; align-items: center;
  margin-bottom: 12px; transition: all 0.8s;
}
.phone-logo {
  font-size: 0.625rem; font-weight: 800; color: #fff;
  background: #1a365d; padding: 3px 10px; border-radius: 4px;
  transition: background 0.8s;
}
.phone-user { font-size: 0.875rem; }
.phone-greeting { font-size: 0.7rem; color: #64748b; margin-bottom: 10px; }
.phone-status-card {
  background: #f8fafc; border: 1px solid #e2e8f0; border-radius: 10px;
  padding: 10px; margin-bottom: 10px;
}
.phone-status-icon { font-size: 1rem; margin-bottom: 4px; }
.phone-status-label { display: block; font-size: 0.56rem; color: #94a3b8; }
.phone-status-value { display: block; font-size: 0.7rem; font-weight: 700; color: #1e293b; }
.phone-progress {
  height: 4px; background: #e2e8f0; border-radius: 2px;
  margin-top: 6px; overflow: hidden;
}
.phone-progress-bar {
  height: 100%; width: 72%; border-radius: 2px;
  background: #1a365d; transition: background 0.8s, width 1s;
}
.phone-actions { display: flex; gap: 6px; margin-bottom: 10px; }
.phone-action-btn {
  flex: 1; background: #f1f5f9; border: 1px solid #e2e8f0;
  border-radius: var(--radius-sm); padding: 8px 4px; text-align: center;
  font-size: 0.56rem; color: #475569; font-weight: 600;
  display: flex; flex-direction: column; align-items: center; gap: 2px;
  transition: border-color 0.8s;
}
.phone-action-btn span:first-child { font-size: 0.875rem; }
.phone-next {
  background: #f8fafc; border-radius: var(--radius-sm); padding: 8px;
  text-align: center;
}
.phone-next-label { display: block; font-size: 0.5rem; color: #94a3b8; }
.phone-next-time { display: block; font-size: 0.625rem; font-weight: 700; color: #1e293b; }
.phone-home-bar {
  width: 50px; height: 4px; background: #fff; border-radius: 2px;
  margin: 8px auto 4px;
}
.phone-label {
  font-size: 0.75rem; color: rgba(255,255,255,0.5);
  margin-top: 12px; font-weight: 500;
}

/* ── Steps Section ── */
.steps-section { padding: 100px 24px; background: var(--bg); }
.steps {
  display: grid; grid-template-columns: repeat(auto-fit, minmax(240px, 1fr));
  gap: 32px; margin-top: 48px;
}
.step {
  text-align: center; padding: 32px 24px;
  background: var(--white); border-radius: var(--radius-xl);
  border: 1px solid var(--border);
  transition: all var(--spring);
}
.step:hover {
  box-shadow: var(--shadow-lg); transform: translateY(-6px);
}
.step-number {
  width: 56px; height: 56px; background: var(--accent); color: #fff;
  border-radius: 50%; display: flex; align-items: center; justify-content: center;
  font-size: 1.375rem; font-weight: 800; margin: 0 auto 20px;
}
.step h3 { font-size: 1.05rem; font-weight: 700; margin-bottom: 10px; color: var(--text-dark); }
.step p { font-size: 0.875rem; color: var(--text-light); line-height: 1.65; }

/* ── Trust Bar ── */
.trust-bar {
  display: flex; justify-content: center; gap: 48px; flex-wrap: wrap;
  padding: 32px; margin-top: 48px;
  background: var(--white); border: 1px solid var(--border);
  border-radius: var(--radius-xl);
}
.trust-item {
  display: flex; align-items: center; gap: 12px;
  font-size: 0.875rem; color: var(--text-light); font-weight: 500;
}
.trust-icon {
  width: 40px; height: 40px; background: #ebf2fa;
  border-radius: var(--radius-sm); display: flex; align-items: center;
  justify-content: center; font-size: 1.125rem;
}

/* ── CTA Section ── */
.cta-section {
  padding: 100px 24px; text-align: center;
  background: linear-gradient(135deg, rgba(26,54,93,0.92) 0%, rgba(43,76,126,0.88) 100%),
              var(--cta-bg, none) center/cover no-repeat;
  color: #fff;
}
.cta-section .section-title { color: #fff; }
.cta-section p {
  color: rgba(255,255,255,0.85); font-size: 1.05rem;
  max-width: 560px; margin: 0 auto 36px; line-height: 1.7;
}
.cta-section .btn-primary {
  background: #fff; color: var(--primary);
  font-size: 1rem; padding: 16px 40px;
  box-shadow: 0 4px 20px rgba(0,0,0,0.15);
}
.cta-section .btn-primary:hover {
  background: #f7fafc; transform: translateY(-3px);
  box-shadow: 0 8px 30px rgba(0,0,0,0.2);
}

/* ── Cards Grid (Landing Page) ── */
.cards-section { padding: 100px 24px; }
.cards-grid { display: grid; grid-template-columns: repeat(3, 1fr); gap: 28px; }
.card {
  position: relative; border-radius: var(--radius-xl); overflow: hidden;
  height: 420px; cursor: pointer; text-decoration: none; color: inherit;
  box-shadow: var(--shadow); transition: all var(--spring);
}
.card:hover { transform: translateY(-8px); box-shadow: var(--shadow-xl); }
.card-img-wrap { position: absolute; top: 0; left: 0; right: 0; bottom: 0; }
.card-img-wrap img {
  width: 100%; height: 100%; object-fit: cover;
  transition: transform var(--transition-slow);
}
.card:hover .card-img-wrap img { transform: scale(1.1); }
.card-img-overlay {
  position: absolute; top: 0; left: 0; right: 0; bottom: 0;
  background: linear-gradient(to top, rgba(10,25,47,0.92) 0%, rgba(10,25,47,0.4) 50%, rgba(10,25,47,0.15) 100%);
  transition: background 0.4s ease;
}
.card:hover .card-img-overlay {
  background: linear-gradient(to top, rgba(10,25,47,0.95) 0%, rgba(10,25,47,0.5) 50%, rgba(10,25,47,0.2) 100%);
}
.card-body {
  position: absolute; bottom: 0; left: 0; right: 0;
  padding: 32px 28px; display: flex; flex-direction: column; z-index: 2;
}
.card-body .card-icon {
  width: 48px; height: 48px; background: rgba(255,255,255,0.15);
  border-radius: 12px; display: flex; align-items: center; justify-content: center;
  margin-bottom: 16px; backdrop-filter: blur(4px);
  border: 1px solid rgba(255,255,255,0.1);
}
.card-body .card-icon svg {
  width: 24px; height: 24px; stroke: #90cdf4; fill: none;
  stroke-width: 2; stroke-linecap: round; stroke-linejoin: round;
}
.card-body h3 {
  font-size: 1.4rem; font-weight: 700; color: var(--white);
  margin-bottom: 8px; line-height: 1.3;
}
.card-body p {
  font-size: 0.9rem; color: rgba(255,255,255,0.75); line-height: 1.6;
  margin-bottom: 18px; max-height: 0; overflow: hidden; opacity: 0;
  transition: max-height 0.4s ease, opacity 0.3s ease;
}
.card:hover .card-body p { max-height: 80px; opacity: 1; }
.card-link {
  display: inline-flex; align-items: center; gap: 8px;
  color: #90cdf4; font-weight: 600; font-size: 0.9rem;
  transition: gap var(--transition);
}
.card:hover .card-link { gap: 14px; }
.card-link svg {
  width: 18px; height: 18px;
  transition: transform var(--transition);
}
.card:hover .card-link svg { transform: translateX(4px); }

/* ── Features Bar (Landing Page) ── */
.features-bar { background: var(--primary); padding: 72px 24px; overflow: hidden; }
.feature-dup { display: none; }
.features-bar-inner {
  max-width: 1200px; margin: 0 auto;
  display: grid; grid-template-columns: repeat(4, 1fr);
  gap: 40px; text-align: center;
}
.feature-item { color: var(--white); }
.feature-icon {
  width: 56px; height: 56px; margin: 0 auto 16px;
  background: rgba(255,255,255,0.1); border-radius: 14px;
  display: flex; align-items: center; justify-content: center;
  transition: all var(--transition);
}
.feature-item:hover .feature-icon {
  background: rgba(255,255,255,0.18);
  transform: translateY(-4px);
}
.feature-icon svg {
  width: 24px; height: 24px; stroke: var(--white); fill: none;
  stroke-width: 2; stroke-linecap: round; stroke-linejoin: round;
}
.feature-item h4 { font-size: 1rem; font-weight: 600; margin-bottom: 8px; }
.feature-item p { font-size: 0.85rem; opacity: 0.7; line-height: 1.6; }

/* ── FAQ Accordion ── */
.faq-section { padding: 100px 24px; }
.faq-search {
  max-width: 500px; margin: 0 auto 48px; position: relative;
}
.faq-search input {
  width: 100%; padding: 16px 24px 16px 48px;
  border: 2px solid var(--border); border-radius: var(--radius);
  font-size: 1rem; font-family: inherit; color: var(--text);
  background: var(--white); transition: border-color var(--transition);
}
.faq-search input:focus {
  outline: none; border-color: var(--accent);
  box-shadow: 0 0 0 4px var(--accent-glow);
}
.faq-search svg {
  position: absolute; left: 16px; top: 50%; transform: translateY(-50%);
  width: 20px; height: 20px; stroke: var(--text-light); fill: none;
  stroke-width: 2;
}
.faq-categories {
  display: flex; gap: 8px; justify-content: center; flex-wrap: wrap;
  margin-bottom: 40px;
}
.faq-cat-btn {
  padding: 8px 20px; border-radius: 50px; border: 1.5px solid var(--border);
  background: var(--white); color: var(--text-light);
  font-size: 0.85rem; font-weight: 600; cursor: pointer;
  transition: all var(--transition); font-family: inherit;
}
.faq-cat-btn:hover, .faq-cat-btn.active {
  background: var(--primary); color: #fff; border-color: var(--primary);
}
.faq-list { max-width: 800px; margin: 0 auto; }
.faq-item {
  border: 1px solid var(--border); border-radius: var(--radius);
  margin-bottom: 12px; overflow: hidden;
  transition: box-shadow var(--transition);
}
.faq-item:hover { box-shadow: var(--shadow); }
.faq-question {
  width: 100%; padding: 20px 24px; display: flex;
  justify-content: space-between; align-items: center;
  background: var(--white); border: none; cursor: pointer;
  font-family: inherit; font-size: 1rem; font-weight: 600;
  color: var(--text-dark); text-align: left;
  transition: background var(--transition);
}
.faq-question:hover { background: var(--bg); }
.faq-question svg {
  width: 20px; height: 20px; stroke: var(--text-light); fill: none;
  stroke-width: 2; flex-shrink: 0;
  transition: transform var(--transition);
}
.faq-item.open .faq-question svg { transform: rotate(180deg); }
.faq-answer {
  max-height: 0; overflow: hidden;
  transition: max-height 0.4s ease;
}
.faq-answer-inner {
  padding: 0 24px 20px;
  font-size: 0.95rem; color: var(--text-light); line-height: 1.7;
}

/* ── Product Demo ── */
.demo-section { padding: 100px 24px; background: var(--bg); }
.demo-steps {
  max-width: 1000px; margin: 48px auto 0;
  display: flex; flex-direction: column; gap: 80px;
}
.demo-step {
  display: grid; grid-template-columns: 1fr 1fr;
  gap: 48px; align-items: center;
}
.demo-step:nth-child(even) { direction: rtl; }
.demo-step:nth-child(even) > * { direction: ltr; }
.demo-step-content { }
.demo-step-number {
  display: inline-flex; align-items: center; justify-content: center;
  width: 36px; height: 36px; background: var(--accent);
  color: #fff; border-radius: 50%; font-weight: 800;
  font-size: 0.9rem; margin-bottom: 16px;
}
.demo-step-content h3 {
  font-size: 1.4rem; font-weight: 800; color: var(--primary);
  margin-bottom: 12px;
}
.demo-step-content p {
  font-size: 0.95rem; color: var(--text-light); line-height: 1.7;
}
.demo-step-visual {
  background: var(--white); border: 1px solid var(--border);
  border-radius: var(--radius-xl); padding: 32px;
  box-shadow: var(--shadow);
  transition: all var(--spring);
}
.demo-step-visual:hover {
  box-shadow: var(--shadow-lg); transform: translateY(-6px);
}

/* Feature Grid (Product Page) */
.feature-grid {
  display: grid; grid-template-columns: repeat(auto-fit, minmax(280px, 1fr));
  gap: 24px; margin-top: 48px;
}
.feature-card {
  background: var(--white); border: 1px solid var(--border);
  border-radius: var(--radius-xl); padding: 32px;
  transition: all var(--spring);
}
.feature-card:hover {
  box-shadow: var(--shadow-lg); transform: translateY(-6px);
}
.feature-card-icon {
  width: 48px; height: 48px; background: #dbeafe;
  border-radius: 12px; display: flex; align-items: center;
  justify-content: center; font-size: 1.5rem; margin-bottom: 16px;
}
.feature-card h3 {
  font-size: 1.1rem; font-weight: 700; color: var(--text-dark);
  margin-bottom: 8px;
}
.feature-card p {
  font-size: 0.875rem; color: var(--text-light); line-height: 1.6;
}

/* ── Footer ── */
footer {
  background: var(--text-dark); color: rgba(255,255,255,0.5);
  padding: 48px 24px; font-size: 0.875rem;
}
.footer-inner {
  max-width: 1200px; margin: 0 auto;
  display: flex; justify-content: space-between;
  align-items: center; flex-wrap: wrap; gap: 16px;
}
footer a { color: rgba(255,255,255,0.85); text-decoration: none; transition: color var(--transition); }
footer a:hover { color: var(--white); }
.footer-links { display: flex; gap: 24px; }

/* ══════════════════════════════════════
   Scroll Animations
   ══════════════════════════════════════ */

.animate {
  opacity: 0; transform: translateY(24px);
  transition: opacity 0.7s cubic-bezier(0.32, 0.72, 0, 1), transform 0.7s cubic-bezier(0.32, 0.72, 0, 1);
}
.animate.animate-left {
  transform: translateX(-40px);
}
.animate.animate-right {
  transform: translateX(40px);
}
.animate.animate-scale {
  transform: scale(0.95);
}
.animate.visible {
  opacity: 1; transform: translateY(0) translateX(0) scale(1);
}

/* Staggered children */
.stagger > .animate:nth-child(1) { transition-delay: 0s; }
.stagger > .animate:nth-child(2) { transition-delay: 0.1s; }
.stagger > .animate:nth-child(3) { transition-delay: 0.2s; }
.stagger > .animate:nth-child(4) { transition-delay: 0.3s; }
.stagger > .animate:nth-child(5) { transition-delay: 0.4s; }
.stagger > .animate:nth-child(6) { transition-delay: 0.5s; }

/* Reduced motion */
@media (prefers-reduced-motion: reduce) {
  .animate { opacity: 1; transform: none; transition: none; }
}

/* ══════════════════════════════════════
   Responsive
   ══════════════════════════════════════ */

@media (max-width: 960px) {
  .cards-grid { grid-template-columns: 1fr; max-width: 500px; margin: 0 auto; }
  .card { height: 340px; }
  .features-bar-inner { grid-template-columns: repeat(2, 1fr); }
  .pain-section { padding: 60px 16px; }
  .pain-section .container { padding: 0; }
  .pain-grid {
    display: flex; overflow-x: auto; scroll-snap-type: x mandatory;
    -webkit-overflow-scrolling: touch; gap: 16px;
    padding: 16px 16px 20px; margin-top: 24px;
    scrollbar-width: none;
  }
  .pain-grid::-webkit-scrollbar { display: none; }
  .pain-card {
    min-width: 260px; max-width: 280px; flex-shrink: 0;
    scroll-snap-align: start;
  }
  .pain-card img { height: 160px; }
  .pain-card-body { padding: 16px 20px 20px; }
  .pain-card-body h3 { font-size: 1rem; }
  .pain-card-body p { font-size: 0.82rem; }
  .pain-grid.auto-scroll { scroll-behavior: smooth; }

  /* Steps horizontal scroll */
  .steps-section { padding: 60px 16px; }
  .steps {
    display: flex; overflow-x: auto; scroll-snap-type: x mandatory;
    -webkit-overflow-scrolling: touch; gap: 14px;
    padding: 16px 4px 20px; margin-top: 24px;
    scrollbar-width: none;
  }
  .steps.auto-scroll { scroll-behavior: smooth; }
  .steps::-webkit-scrollbar { display: none; }
  .step {
    min-width: 220px; max-width: 240px; flex-shrink: 0;
    scroll-snap-align: start; padding: 24px 20px;
  }
  .step-number { width: 44px; height: 44px; font-size: 1.1rem; margin-bottom: 14px; }
  .step h3 { font-size: 0.92rem; }
  .step p { font-size: 0.8rem; }
  .demo-step, .demo-step:nth-child(even) {
    grid-template-columns: 1fr; direction: ltr;
  }
}

@media (max-width: 768px) {
  .nav-links { display: none; }
  .nav-links.open {
    display: flex; flex-direction: column;
    position: fixed; top: 60px; left: 0; right: 0;
    height: auto;
    background: #ffffff;
    padding: 24px 24px 28px; gap: 18px;
    animation: fadeSlideUp 0.3s ease;
    z-index: 9999;
    box-shadow: 0 12px 32px rgba(0,0,0,0.12);
    border-radius: 0 0 16px 16px;
  }
  .nav-links.open a { font-size: 1rem; color: var(--text-dark); }
  .nav-links.open .nav-cta {
    margin-top: 12px;
  }
  .nav-toggle { display: block; }

  .hero { padding: 130px 20px 60px; }
  .hero-badge { font-size: 0.9rem; padding: 10px 22px; }
  .hero-duo { grid-template-columns: 1fr; }
  .hero-stats { flex-direction: column; gap: 20px; }

  .tabs {
    flex-direction: row !important; flex-wrap: nowrap;
    overflow-x: auto; gap: 6px;
    -webkit-overflow-scrolling: touch;
    scrollbar-width: none; padding-bottom: 8px;
  }
  .tabs::-webkit-scrollbar { display: none; }
  .tab-btn {
    padding: 10px 14px; font-size: 0.78rem;
    white-space: nowrap; flex-shrink: 0;
  }
  .tab-btn .tab-icon { font-size: 1rem; }
  .tab-panel.active { grid-template-columns: 1fr; }

  .wl-features { grid-template-columns: 1fr; }
  .mockup-duo { flex-direction: row; gap: 12px; }
  .mockup-phone { width: 120px; }

  .social-proof-bar { gap: 24px; }
  .proof-divider { display: none; }
  .trust-bar { gap: 24px; }

  .features-bar { padding: 0; overflow: hidden; }
  .feature-dup { display: flex; }
  .features-bar-inner {
    display: flex !important; grid-template-columns: none;
    gap: 0; overflow: hidden;
    padding: 24px 0;
    animation: featuresScroll 16s linear infinite;
    width: max-content;
  }
  .feature-item {
    min-width: 180px; flex-shrink: 0;
    padding: 0 20px; text-align: center;
  }
  .feature-item h4 { font-size: 0.8rem; margin-bottom: 4px; }
  .feature-item p { font-size: 0.7rem; }
  .feature-icon { width: 36px; height: 36px; margin-bottom: 8px; }
  @keyframes featuresScroll {
    0% { transform: translateX(0); }
    100% { transform: translateX(-50%); }
  }
}

@media (max-width: 600px) {
  .hero h1 { font-size: 1.8rem; }
  .hero p { font-size: 0.9rem; }
  .hero-buttons { gap: 10px; }
  .hero-buttons .btn-primary,
  .hero-buttons .btn-secondary {
    padding: 11px 22px; font-size: 0.85rem;
  }
  .footer-inner { flex-direction: column; text-align: center; }
  .footer-links { flex-wrap: wrap; justify-content: center; }

  /* Cards */
  .cards-section { padding: 60px 16px; }
  .card { height: 280px; }
  .card-body { padding: 20px; }
  .card-body h3 { font-size: 1.15rem; }
  .card-body .card-icon { width: 40px; height: 40px; margin-bottom: 12px; }

  /* Section headers */
  .section-label { font-size: 0.7rem; }
  .section-title { font-size: clamp(1.4rem, 5vw, 2rem); }
  .section-subtitle { font-size: 0.9rem; }

  /* Features bar */
  .features-bar { padding: 48px 16px; }
  .feature-item h4 { font-size: 0.9rem; }
  .feature-item p { font-size: 0.78rem; }
  .feature-icon { width: 48px; height: 48px; }

  /* CTA section */
  .cta-section { padding: 60px 16px; }
  .cta-section .section-title { font-size: clamp(1.3rem, 5vw, 1.8rem); }
  .cta-section p { font-size: 0.9rem; }
  .cta-section .btn-primary { padding: 14px 28px; font-size: 0.9rem; }

  /* Buttons global */
  .btn-primary { padding: 12px 24px; font-size: 0.85rem; }
  .btn-outline { padding: 12px 24px; font-size: 0.85rem; }

  /* Nav */
  .nav-inner { height: 60px; }
  .logo { font-size: 1.3rem; }
}
