/* =============================================
   SMARTED – Premium SaaS Landing Page Styles
   ============================================= */

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

:root {
  --black: #000000;
  --white: #ffffff;
  --accent: #2563EB;
  --accent-light: #3B82F6;
  --accent-glow: rgba(37, 99, 235, 0.15);
  --gray-50: #f8fafc;
  --gray-100: #f1f5f9;
  --gray-200: #e2e8f0;
  --gray-300: #cbd5e1;
  --gray-400: #94a3b8;
  --gray-600: #475569;
  --gray-800: #1e293b;
  --green: #10b981;
  --orange: #f59e0b;
  --red: #ef4444;
  --purple: #8b5cf6;
  --font-head: 'Syne', sans-serif;
  --font-body: 'DM Sans', sans-serif;
  --radius: 16px;
  --radius-sm: 10px;
  --shadow: 0 4px 24px rgba(0,0,0,0.08);
  --shadow-md: 0 8px 40px rgba(0,0,0,0.12);
  --shadow-lg: 0 20px 60px rgba(0,0,0,0.15);
  --transition: 0.3s cubic-bezier(0.4, 0, 0.2, 1);
}

html { scroll-behavior: smooth; }

body {
  font-family: var(--font-body);
  background: var(--white);
  color: var(--black);
  overflow-x: hidden;
  -webkit-font-smoothing: antialiased;
}

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

/* ===== SCROLLBAR ===== */
::-webkit-scrollbar { width: 6px; }
::-webkit-scrollbar-track { background: var(--gray-100); }
::-webkit-scrollbar-thumb { background: var(--accent); border-radius: 3px; }

/* ===== MODAL ===== */
.modal-overlay {
  position: fixed; inset: 0; z-index: 9999;
  background: rgba(0,0,0,0.7);
  backdrop-filter: blur(8px);
  -webkit-backdrop-filter: blur(8px);
  display: flex; align-items: center; justify-content: center;
  padding: 20px;
  opacity: 0; pointer-events: none;
  transition: opacity 0.35s cubic-bezier(0.4, 0, 0.2, 1);
}
.modal-overlay.active {
  opacity: 1; pointer-events: all;
}
.modal-box {
  background: var(--white);
  border-radius: 24px;
  padding: 40px;
  width: 100%; max-width: 560px;
  max-height: 90vh; overflow-y: auto;
  position: relative;
  box-shadow: 0 30px 80px rgba(0,0,0,0.25);
  transform: translateY(30px) scale(0.96);
  transition: transform 0.35s cubic-bezier(0.4, 0, 0.2, 1);
}
.modal-overlay.active .modal-box {
  transform: translateY(0) scale(1);
}
.modal-close {
  position: absolute; top: 16px; right: 16px;
  width: 36px; height: 36px;
  background: var(--gray-100); border: none; border-radius: 50%;
  cursor: pointer; display: flex; align-items: center; justify-content: center;
  transition: var(--transition); color: var(--gray-600);
}
.modal-close:hover { background: var(--gray-200); color: var(--black); }
.modal-close svg { width: 18px; height: 18px; }
.modal-header { margin-bottom: 28px; }
.modal-badge {
  display: inline-flex; align-items: center; gap: 6px;
  background: var(--accent-glow); color: var(--accent);
  font-size: 12px; font-weight: 700;
  padding: 4px 12px; border-radius: 100px;
  text-transform: uppercase; letter-spacing: 1px;
  margin-bottom: 14px;
}
.modal-header h2 {
  font-family: var(--font-head);
  font-size: 28px; font-weight: 800;
  letter-spacing: -0.8px; margin-bottom: 8px;
  color: var(--black);
}
.modal-header p { font-size: 15px; color: var(--gray-600); line-height: 1.5; }

/* Form */
.demo-form { display: flex; flex-direction: column; gap: 16px; }
.form-row { display: grid; grid-template-columns: 1fr 1fr; gap: 16px; }
.form-group { display: flex; flex-direction: column; gap: 6px; }
.form-group label {
  font-size: 13px; font-weight: 600; color: var(--gray-800);
}
.form-group .req { color: var(--red); }
.form-group .opt { color: var(--gray-400); font-weight: 400; }
.form-group input,
.form-group select,
.form-group textarea {
  width: 100%;
  padding: 12px 14px;
  border: 1.5px solid var(--gray-200);
  border-radius: var(--radius-sm);
  font-family: var(--font-body);
  font-size: 14px; color: var(--black);
  background: var(--white);
  transition: border-color 0.2s, box-shadow 0.2s;
  outline: none;
  appearance: none;
  -webkit-appearance: none;
}
.form-group input:focus,
.form-group select:focus,
.form-group textarea:focus {
  border-color: var(--accent);
  box-shadow: 0 0 0 3px var(--accent-glow);
}
.form-group input.error,
.form-group select.error {
  border-color: var(--red);
  box-shadow: 0 0 0 3px rgba(239,68,68,0.12);
}
.form-group textarea { resize: vertical; min-height: 80px; }
.select-wrap { position: relative; }
.select-wrap select { padding-right: 36px; cursor: pointer; }
.select-arrow {
  position: absolute; right: 12px; top: 50%; transform: translateY(-50%);
  width: 16px; height: 16px; pointer-events: none;
  stroke: var(--gray-400); fill: none; stroke-width: 2;
  stroke-linecap: round; stroke-linejoin: round;
}
.field-error { font-size: 11px; color: var(--red); min-height: 16px; }
.btn-submit {
  background: #25D366;
  color: white; border: none; cursor: pointer;
  padding: 15px 28px; border-radius: 12px;
  font-family: var(--font-body);
  font-size: 15px; font-weight: 700;
  transition: var(--transition); position: relative; overflow: hidden;
  margin-top: 4px;
}
.btn-submit:hover { background: #1da851; transform: translateY(-2px); box-shadow: 0 8px 24px rgba(37,211,102,0.35); }
.form-note { font-size: 11px; color: var(--gray-400); text-align: center; line-height: 1.5; }

/* ===== NAVBAR ===== */
.navbar {
  position: fixed; top: 0; left: 0; right: 0; z-index: 1000;
  padding: 0 40px;
  background: rgba(255,255,255,0.9);
  backdrop-filter: blur(20px);
  -webkit-backdrop-filter: blur(20px);
  border-bottom: 1px solid rgba(0,0,0,0.06);
  transition: var(--transition);
}
.navbar.scrolled {
  box-shadow: 0 2px 20px rgba(0,0,0,0.08);
}
.nav-inner {
  display: flex; align-items: center; justify-content: space-between;
  height: 72px; max-width: 1200px; margin: 0 auto;padding-right:20px;
}
.nav-logo { display: flex; align-items: center; gap: 10px; text-decoration: none; }
/* .logo-mark {
  width: 36px; height: 36px;
  background: var(--black);
  color: var(--white);
  display: flex; align-items: center; justify-content: center;
  font-family: var(--font-head);
  font-weight: 800; font-size: 18px;
  border-radius: 8px;
  letter-spacing: -1px;
}
.logo-text {
  font-family: var(--font-head);
  font-weight: 800; font-size: 20px;
  color: var(--black);
  letter-spacing: -0.5px;
} */
.nav-links {
  display: flex; align-items: center; gap: 8px; list-style: none;
}
.nav-links li a {
  color: var(--gray-600); text-decoration: none;
  font-size: 14px; font-weight: 500;
  padding: 8px 14px; border-radius: 8px;
  transition: var(--transition);
}
.nav-links li a:hover { color: var(--black); background: var(--gray-100); }
/* .nav-cta {
  background: var(--black) !important;
  color: var(--white) !important;
  padding: 10px 20px !important;
  border-radius: 10px !important;
}
.nav-cta:hover { background: var(--accent) !important; } */
.btn-book-demo {
  background: var(--black); color: var(--white);
  padding: 10px 22px; border-radius: 10px;
  border: none; cursor: pointer;
  font-family: var(--font-body);
  font-size: 14px; font-weight: 600;
  transition: var(--transition); position: relative; overflow: hidden;
  white-space: nowrap; flex-shrink: 0;
}
.btn-book-demo:hover { background: var(--accent); transform: translateY(-1px); box-shadow: 0 6px 20px rgba(37,99,235,0.3); }

.hamburger {
  display: none; flex-direction: column; gap: 5px;
  background: none; border: none; cursor: pointer; padding: 8px;
}
.hamburger span {
  display: block; width: 24px; height: 2px;
  background: var(--black); border-radius: 2px;
  transition: var(--transition);
}
.hamburger.active span:nth-child(1) { transform: rotate(45deg) translate(5px, 5px); }
.hamburger.active span:nth-child(2) { opacity: 0; }
.hamburger.active span:nth-child(3) { transform: rotate(-45deg) translate(5px, -5px); }

/* ===== HERO ===== */
.hero {
  min-height: 100vh;
  padding: 120px 40px 80px;
  position: relative; overflow: hidden;
  background: #fff;
}
.hero-bg-grid {
  position: absolute; inset: 0;
  background-image:
    linear-gradient(rgba(37,99,235,0.04) 1px, transparent 1px),
    linear-gradient(90deg, rgba(37,99,235,0.04) 1px, transparent 1px);
  background-size: 60px 60px;
  mask-image: radial-gradient(ellipse 80% 80% at 50% 50%, black, transparent);
}
.hero-inner {
  max-width: 1200px; margin: 0 auto;
  display: grid; grid-template-columns: 1fr 1fr;
  gap: 80px; align-items: center;
}
.hero-badge {
  display: inline-flex; align-items: center; gap: 8px;
  background: var(--gray-100); border: 1px solid var(--gray-200);
  padding: 6px 16px; border-radius: 100px;
  font-size: 13px; font-weight: 500; color: var(--gray-600);
  margin-bottom: 24px;
}
.hero-headline {
  font-family: var(--font-head);
  font-size: clamp(42px, 5vw, 68px);
  font-weight: 800; line-height: 1.05;
  letter-spacing: -2px; margin-bottom: 20px;
  color: var(--black);
}
.accent-text { color: var(--accent); }
.hero-sub {
  font-size: 18px; line-height: 1.6;
  color: var(--gray-600); margin-bottom: 36px;
  max-width: 480px;
}
.hero-buttons { display: flex; gap: 14px; align-items: center; margin-bottom: 48px; flex-wrap: wrap; }

.btn-primary {
  background: var(--black); color: var(--white);
  padding: 14px 28px; border-radius: 12px;
  text-decoration: none; font-weight: 600; font-size: 15px;
  transition: var(--transition); position: relative; overflow: hidden;
  display: inline-flex; align-items: center; gap: 8px;
}
.btn-primary:hover { background: var(--accent); transform: translateY(-2px); box-shadow: 0 8px 24px rgba(37,99,235,0.3); }

.btn-secondary {
  color: var(--black); text-decoration: none;
  font-weight: 600; font-size: 15px; padding: 14px 4px;
  display: inline-flex; align-items: center; gap: 8px;
  transition: var(--transition);
}
.btn-secondary:hover { color: var(--accent); }
.btn-secondary span { transition: var(--transition); }
.btn-secondary:hover span { transform: translateX(4px); }

.btn-secondary-white {
  color: rgba(255,255,255,0.8); text-decoration: none;
  font-weight: 600; font-size: 15px; padding: 14px 4px;
  display: inline-flex; align-items: center; gap: 8px;
  transition: var(--transition); border-bottom: 1px solid rgba(255,255,255,0.3);
}
.btn-secondary-white:hover { color: #fff; border-color: #fff; }

/* Ripple */
.ripple { position: relative; overflow: hidden; }
.ripple::after {
  content: ''; position: absolute; border-radius: 50%;
  background: rgba(255,255,255,0.4);
  width: 0; height: 0;
  top: 50%; left: 50%;
  transform: translate(-50%, -50%);
  transition: width 0.6s ease, height 0.6s ease, opacity 0.6s ease;
  opacity: 0;
}
.ripple:active::after { width: 200px; height: 200px; opacity: 1; }

.hero-stats {
  display: flex; gap: 24px; align-items: center;
}
.stat { display: flex; flex-direction: column; }
.stat-num {
  font-family: var(--font-head);
  font-size: 26px; font-weight: 800; color: var(--black); line-height: 1;
}
.stat-label { font-size: 13px; color: var(--gray-400); margin-top: 2px; }
.stat-divider { width: 1px; height: 32px; background: var(--gray-200); }

/* Dashboard Mockup */
.hero-right { position: relative; }
.dashboard-mockup {
  background: var(--white);
  border: 1px solid var(--gray-200);
  border-radius: 20px;
  box-shadow: var(--shadow-lg);
  overflow: hidden;
  animation: floatMockup 6s ease-in-out infinite;
}
@keyframes floatMockup {
  0%, 100% { transform: translateY(0); }
  50% { transform: translateY(-10px); }
}
.mockup-topbar {
  background: var(--gray-50);
  border-bottom: 1px solid var(--gray-200);
  padding: 12px 16px;
  display: flex; align-items: center; gap: 12px;
}
.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: #10b981; }
.mockup-title { font-size: 12px; font-weight: 600; color: var(--gray-600); flex: 1; text-align: center; }
.mockup-user .user-avatar {
  width: 24px; height: 24px; background: var(--accent);
  border-radius: 50%; display: flex; align-items: center; justify-content: center;
  color: white; font-size: 11px; font-weight: 700;
}
.mockup-body { padding: 16px; }
.mockup-stat-row { display: grid; grid-template-columns: repeat(3, 1fr); gap: 10px; margin-bottom: 14px; }
.m-stat {
  background: var(--gray-50); border-radius: 10px; padding: 12px 10px;
  display: flex; align-items: center; gap: 8px;
  border: 1px solid var(--gray-200);
}
.m-stat.blue { border-left: 3px solid var(--accent); }
.m-stat.green { border-left: 3px solid var(--green); }
.m-stat.orange { border-left: 3px solid var(--orange); }
.m-stat-icon { font-size: 18px; }
.m-val { font-size: 14px; font-weight: 700; color: var(--black); line-height: 1; }
.m-lbl { font-size: 10px; color: var(--gray-400); margin-top: 2px; }
.mockup-charts { display: grid; grid-template-columns: 1fr 80px; gap: 10px; margin-bottom: 12px; }
.chart-box {
  background: var(--gray-50); border-radius: 10px; padding: 12px;
  border: 1px solid var(--gray-200);
}
.chart-label { font-size: 10px; font-weight: 600; color: var(--gray-600); margin-bottom: 8px; }
.bar-chart { display: flex; gap: 4px; align-items: flex-end; height: 48px; }
.bar {
  flex: 1; background: var(--gray-200); border-radius: 3px 3px 0 0;
  height: var(--h); position: relative; transition: var(--transition);
  display: flex; flex-direction: column; justify-content: flex-end; align-items: center;
}
.bar.active { background: var(--accent); }
.bar span { font-size: 7px; color: var(--gray-400); position: absolute; bottom: -12px; }
.donut-wrap { position: relative; display: flex; align-items: center; justify-content: center; height: 60px; }
.donut {
  width: 60px; height: 60px;
  border-radius: 50%;
  background: conic-gradient(var(--accent) 84%, var(--gray-200) 84%);
  animation: spinDonut 2s ease-in-out;
}
@keyframes spinDonut { from { transform: rotate(-90deg); opacity: 0; } to { transform: rotate(0deg); opacity: 1; } }
.donut-center {
  position: absolute; display: flex; flex-direction: column; align-items: center;
}
.donut-center span { font-size: 11px; font-weight: 700; color: var(--black); line-height: 1; }
.donut-center small { font-size: 7px; color: var(--gray-400); }
.mockup-alerts { display: flex; flex-direction: column; gap: 6px; }
.alert-item {
  font-size: 10px; padding: 7px 10px; border-radius: 6px;
  background: var(--gray-50); border-left: 3px solid var(--gray-200);
  color: var(--gray-600);
}
.alert-item.blue-border { border-left-color: var(--accent); }
.alert-item.green-border { border-left-color: var(--green); }
.alert-item.orange-border { border-left-color: var(--orange); }

/* Floating Cards */
.float-card {
  position: absolute; background: var(--white);
  border: 1px solid var(--gray-200); border-radius: 12px;
  padding: 10px 14px; box-shadow: var(--shadow-md);
  display: flex; align-items: center; gap: 10px;
  font-size: 12px; z-index: 10;
  animation: floatCard 5s ease-in-out infinite;
}
.float-card span { font-size: 22px; }
.float-card strong { display: block; font-weight: 700; color: var(--black); font-size: 13px; }
.float-card small { color: var(--gray-400); }
.fc1 { top: -20px; right: -20px; animation-delay: 0s; }
.fc2 { bottom: 60px; right: -30px; animation-delay: 1.5s; }
.fc3 { bottom: -20px; left: 20px; animation-delay: 3s; }
@keyframes floatCard {
  0%, 100% { transform: translateY(0) rotate(0deg); }
  50% { transform: translateY(-8px) rotate(1deg); }
}

.hero-scroll-hint {
  position: absolute; bottom: 40px; left: 50%; transform: translateX(-50%);
  display: flex; flex-direction: column; align-items: center; gap: 8px;
  color: var(--gray-400); font-size: 12px;
}
.scroll-line {
  width: 1px; height: 40px;
  background: linear-gradient(to bottom, var(--gray-300), transparent);
  animation: scrollPulse 2s ease-in-out infinite;
}
@keyframes scrollPulse {
  0%, 100% { opacity: 1; height: 40px; }
  50% { opacity: 0.5; height: 20px; }
}

/* ===== SCROLL REVEAL ===== */
.reveal {
  opacity: 0;
  transform: translateY(30px);
  transition: opacity 0.7s ease, transform 0.7s ease;
}
.reveal.visible {
  opacity: 1;
  transform: translateY(0);
}

/* ===== SECTION COMMON ===== */
.section-head { text-align: center; margin-bottom: 64px; }
.section-tag {
  display: inline-block;
  background: var(--accent-glow);
  color: var(--accent);
  font-size: 12px; font-weight: 700;
  padding: 5px 14px; border-radius: 100px;
  text-transform: uppercase; letter-spacing: 1px;
  margin-bottom: 16px;
}
.section-head h2 {
  font-family: var(--font-head);
  font-size: clamp(32px, 4vw, 52px);
  font-weight: 800; letter-spacing: -1.5px;
  margin-bottom: 16px; color: var(--black);
}
.section-head p { font-size: 17px; color: var(--gray-600); max-width: 560px; margin: 0 auto; line-height: 1.6; }

/* ===== FEATURES ===== */
.features-section { padding: 100px 40px; background: var(--white); }
.feature-category { margin-bottom: 60px; }
.cat-title {
  font-family: var(--font-head);
  font-size: 20px; font-weight: 700;
  display: flex; align-items: center; gap: 10px;
  margin-bottom: 24px; color: var(--black);
  padding-bottom: 12px;
  border-bottom: 2px solid var(--gray-100);
}
.cat-icon { font-size: 22px; }
.feature-grid {
  display: grid;
  grid-template-columns: repeat(auto-fill, minmax(220px, 1fr));
  gap: 16px;
}
.feature-card {
  background: var(--white);
  border: 1px solid var(--gray-200);
  border-radius: var(--radius);
  padding: 24px 20px;
  transition: var(--transition);
  cursor: default; position: relative;
  overflow: hidden;
}
.feature-card::before {
  content: ''; position: absolute;
  bottom: 0; left: 0; right: 0; height: 3px;
  background: var(--accent);
  transform: scaleX(0); transition: var(--transition);
  transform-origin: left;
}
.feature-card:hover { transform: translateY(-6px); box-shadow: var(--shadow-md); border-color: transparent; }
.feature-card:hover::before { transform: scaleX(1); }
.fc-icon {
  width: 44px; height: 44px;
  background: var(--gray-100); border-radius: 10px;
  display: flex; align-items: center; justify-content: center;
  margin-bottom: 14px; transition: var(--transition);
}
.feature-card:hover .fc-icon { background: var(--accent-glow); }
.fc-icon svg { width: 22px; height: 22px; fill: var(--gray-600); transition: var(--transition); }
.feature-card:hover .fc-icon svg { fill: var(--accent); }
.feature-card h4 { font-family: var(--font-head); font-size: 15px; font-weight: 700; margin-bottom: 8px; }
.feature-card p { font-size: 13px; color: var(--gray-600); line-height: 1.5; }
.ai-badge {
  position: absolute; top: 12px; right: 12px;
  background: linear-gradient(135deg, var(--accent), #7c3aed);
  color: white; font-size: 9px; font-weight: 800;
  padding: 2px 7px; border-radius: 4px; letter-spacing: 0.5px;
}
.ai-card { border-color: rgba(37,99,235,0.15); }

/* Mini grid */
.feature-two-col { display: grid; grid-template-columns: 1fr 1fr; gap: 32px; }
.feature-grid-mini { display: grid; gap: 10px; }
.feature-card-mini {
  display: flex; align-items: center; gap: 14px;
  padding: 14px 16px;
  background: var(--gray-50); border: 1px solid var(--gray-200);
  border-radius: var(--radius-sm); transition: var(--transition);
}
.feature-card-mini:hover { background: var(--white); box-shadow: var(--shadow); border-color: var(--gray-300); }
.feature-card-mini > span { font-size: 20px; }
.feature-card-mini strong { font-size: 13px; font-weight: 700; display: block; }
.feature-card-mini p { font-size: 12px; color: var(--gray-600); margin: 0; }

/* ===== AI SECTION ===== */
.ai-section {
  padding: 100px 40px;
  background: var(--gray-50);
  border-top: 1px solid var(--gray-200);
  border-bottom: 1px solid var(--gray-200);
}
.ai-cards-row { display: grid; grid-template-columns: repeat(3, 1fr); gap: 24px; }
.ai-feature-card {
  background: var(--white); border-radius: 20px;
  border: 1px solid var(--gray-200);
  padding: 28px; transition: var(--transition);
  box-shadow: var(--shadow);
}
.ai-feature-card:hover { transform: translateY(-8px); box-shadow: var(--shadow-lg); }
.ai-card-top { display: flex; align-items: center; gap: 12px; margin-bottom: 16px; }
.ai-pulse {
  width: 10px; height: 10px; border-radius: 50%;
  background: var(--green);
  box-shadow: 0 0 0 rgba(16,185,129,0.4);
  animation: pulseDot 2s ease-in-out infinite;
}
.ai-pulse.orange { background: var(--orange); box-shadow: 0 0 0 rgba(245,158,11,0.4); }
.ai-pulse.blue { background: var(--accent); box-shadow: 0 0 0 rgba(37,99,235,0.4); }
@keyframes pulseDot {
  0% { box-shadow: 0 0 0 0 rgba(16,185,129,0.5); }
  70% { box-shadow: 0 0 0 8px rgba(16,185,129,0); }
  100% { box-shadow: 0 0 0 0 rgba(16,185,129,0); }
}
.ai-icon { font-size: 28px; }
.ai-feature-card h3 { font-family: var(--font-head); font-size: 20px; font-weight: 700; margin-bottom: 10px; }
.ai-feature-card > p { font-size: 14px; color: var(--gray-600); line-height: 1.6; margin-bottom: 20px; }

/* Chat demo */
.ai-chat-demo { display: flex; flex-direction: column; gap: 8px; }
.chat-msg {
  padding: 8px 12px; border-radius: 10px;
  font-size: 12px; font-weight: 500; max-width: 85%;
}
.chat-msg.bot { background: var(--gray-100); color: var(--gray-800); align-self: flex-start; }
.chat-msg.user { background: var(--accent); color: var(--white); align-self: flex-end; }

/* Graph demo */
.ai-graph-demo { display: flex; flex-direction: column; gap: 10px; }
.graph-bar-row { display: flex; flex-direction: column; gap: 8px; }
.g-bar {
  display: flex; align-items: center; gap: 10px; font-size: 12px;
}
.g-bar span { width: 60px; color: var(--gray-600); font-size: 11px; flex-shrink: 0; }
.g-bar::after {
  content: ''; display: block;
  height: 8px; width: var(--w); border-radius: 4px;
  background: var(--gray-200); flex: 1; max-width: 100%;
  position: relative; overflow: hidden;
}
.g-bar { position: relative; }
.g-bar::before {
  content: ''; position: absolute;
  left: 70px; height: 8px; border-radius: 4px;
  width: var(--w); max-width: calc(100% - 70px - 40px);
  background: var(--orange); z-index: 1;
}
.g-bar.blue::before { background: var(--accent); }
.g-bar.green::before { background: var(--green); }
.g-bar.purple::before { background: var(--purple); }
.g-bar em { font-style: normal; font-size: 11px; font-weight: 700; color: var(--black); margin-left: 4px; }

/* Predict demo */
.ai-predict-demo { display: flex; flex-direction: column; gap: 12px; }
.predict-item { display: flex; align-items: center; gap: 10px; }
.p-label { font-size: 11px; color: var(--gray-600); width: 80px; flex-shrink: 0; }
.p-bar { flex: 1; height: 8px; background: var(--gray-200); border-radius: 4px; overflow: hidden; }
.p-fill {
  height: 100%; border-radius: 4px;
  transition: width 1.5s ease;
}
.p-fill.red { background: var(--red); }
.p-fill.green { background: var(--green); }
.p-fill.orange { background: var(--orange); }
.p-val { font-size: 11px; font-weight: 700; color: var(--black); width: 30px; text-align: right; }

/* ===== DASHBOARD SECTION ===== */
.dashboard-section { padding: 100px 40px; background: var(--white); }
.full-dashboard {
  background: var(--gray-50);
  border: 1px solid var(--gray-200);
  border-radius: 20px;
  box-shadow: var(--shadow-lg);
  overflow: hidden;
  display: grid; grid-template-columns: 220px 1fr;
  min-height: 560px;
}
.fd-sidebar {
  background: var(--black); padding: 24px 16px;
  display: flex; flex-direction: column; gap: 0;
}
.fd-logo {
  width: 36px; height: 36px;
  background: var(--accent); border-radius: 8px;
  color: white; font-family: var(--font-head);
  font-weight: 800; font-size: 18px;
  display: flex; align-items: center; justify-content: center;
  margin-bottom: 32px;
}
.fd-nav { display: flex; flex-direction: column; gap: 4px; }
.fd-nav-item {
  padding: 10px 12px; border-radius: 8px;
  color: rgba(255,255,255,0.5); font-size: 13px;
  cursor: pointer; transition: var(--transition);
  display: flex; align-items: center; gap: 8px;
  text-decoration: none;
}
.fd-nav-item:hover { background: rgba(255,255,255,0.08); color: white; }
.fd-nav-item.active { background: var(--accent); color: white; }
.fd-main { padding: 24px; overflow: auto; }
.fd-header {
  display: flex; justify-content: space-between; align-items: center;
  margin-bottom: 24px;
}
.fd-header h3 { font-family: var(--font-head); font-size: 20px; font-weight: 700; }
.fd-header small { color: var(--gray-400); font-size: 12px; }
.fd-header-right { display: flex; align-items: center; gap: 12px; }
.fd-search {
  background: var(--gray-100); border: 1px solid var(--gray-200);
  border-radius: 8px; padding: 8px 14px; font-size: 12px;
  color: var(--gray-400); cursor: text;
}
.fd-avatar {
  width: 32px; height: 32px; background: var(--accent);
  border-radius: 50%; color: white;
  font-size: 12px; font-weight: 700;
  display: flex; align-items: center; justify-content: center;
}
.fd-stats { display: grid; grid-template-columns: repeat(4, 1fr); gap: 12px; margin-bottom: 20px; }
.fd-stat-card {
  background: var(--white); border-radius: 12px;
  padding: 16px; border-left: 4px solid transparent;
  display: flex; align-items: center; gap: 12px;
  box-shadow: var(--shadow);
}
.fd-stat-card.s-blue { border-left-color: var(--accent); }
.fd-stat-card.s-green { border-left-color: var(--green); }
.fd-stat-card.s-orange { border-left-color: var(--orange); }
.fd-stat-card.s-purple { border-left-color: var(--purple); }
.fd-stat-icon { font-size: 22px; }
.fd-stat-val { font-family: var(--font-head); font-size: 18px; font-weight: 800; line-height: 1; }
.fd-stat-lbl { font-size: 11px; color: var(--gray-600); margin: 2px 0; }
.fd-stat-change { font-size: 10px; color: var(--green); font-weight: 600; }
.fd-charts-row { display: grid; grid-template-columns: 1fr 1fr 1fr; gap: 12px; }
.fd-chart-box {
  background: var(--white); border-radius: 12px; padding: 16px;
  box-shadow: var(--shadow);
}
.fd-chart-title { font-size: 12px; font-weight: 700; color: var(--gray-600); margin-bottom: 14px; text-transform: uppercase; letter-spacing: 0.5px; }
.fd-bar-chart { display: flex; gap: 6px; align-items: flex-end; height: 80px; }
.fd-bar {
  flex: 1; background: var(--gray-200); border-radius: 4px 4px 0 0;
  height: var(--h); position: relative; transition: height 1s ease;
}
.fd-bar-active { background: var(--accent); }
.fd-bar span { font-size: 8px; color: var(--gray-400); position: absolute; bottom: -14px; left: 50%; transform: translateX(-50%); white-space: nowrap; }
.fd-hbar-chart { display: flex; flex-direction: column; gap: 10px; }
.fd-hbar-item { display: flex; align-items: center; gap: 8px; font-size: 11px; }
.fd-hbar-item > span { width: 50px; color: var(--gray-600); flex-shrink: 0; }
.fd-hbar { flex: 1; background: var(--gray-100); height: 8px; border-radius: 4px; overflow: hidden; }
.fd-hfill { height: 100%; background: var(--green); border-radius: 4px; }
.fd-hfill.blue-fill { background: var(--accent); }
.fd-hfill.orange-fill { background: var(--orange); }
.fd-hbar-item em { font-style: normal; font-size: 10px; font-weight: 700; color: var(--black); width: 30px; text-align: right; }
.fd-activity { list-style: none; display: flex; flex-direction: column; gap: 10px; }
.fd-activity li { display: flex; align-items: center; gap: 8px; font-size: 12px; color: var(--gray-600); }
.act-dot { width: 7px; height: 7px; border-radius: 50%; flex-shrink: 0; }
.green-dot { background: var(--green); }
.blue-dot { background: var(--accent); }
.orange-dot { background: var(--orange); }
.red-dot { background: var(--red); }

/* ===== HOW IT WORKS ===== */
.how-section {
  padding: 100px 40px;
  background: var(--black); color: var(--white);
}
.how-section .section-tag { background: rgba(37,99,235,0.2); }
.how-section .section-head h2 { color: var(--white); }
.how-section .section-head p { color: rgba(255,255,255,0.6); }
.steps-row {
  display: flex; align-items: center; gap: 16px;
  max-width: 900px; margin: 0 auto;
}
.step-card {
  flex: 1; background: rgba(255,255,255,0.04);
  border: 1px solid rgba(255,255,255,0.1);
  border-radius: 20px; padding: 36px 28px;
  text-align: center; transition: var(--transition);
  position: relative;
}
.step-card:hover { background: rgba(37,99,235,0.1); border-color: var(--accent); transform: translateY(-4px); }
.step-num {
  font-family: var(--font-head); font-size: 64px; font-weight: 800;
  color: rgba(255,255,255,0.06); line-height: 1;
  position: absolute; top: 12px; right: 16px;
}
.step-icon { font-size: 44px; margin-bottom: 16px; }
.step-card h3 { font-family: var(--font-head); font-size: 20px; font-weight: 700; margin-bottom: 10px; }
.step-card p { font-size: 14px; color: rgba(255,255,255,0.6); line-height: 1.6; }
.step-arrow { font-size: 28px; color: var(--accent); flex-shrink: 0; }

/* ===== TESTIMONIALS ===== */
.testimonials-section { padding: 100px 40px; background: var(--gray-50); }
.testimonials-row { display: grid; grid-template-columns: repeat(3, 1fr); gap: 24px; }
.testimonial-card {
  background: var(--white); border: 1px solid var(--gray-200);
  border-radius: 20px; padding: 32px 28px;
  transition: var(--transition); box-shadow: var(--shadow);
}
.testimonial-card:hover { transform: translateY(-6px); box-shadow: var(--shadow-md); }
.t-stars { color: #f59e0b; font-size: 18px; margin-bottom: 14px; letter-spacing: 2px; }
.testimonial-card p { font-size: 14px; color: var(--gray-600); line-height: 1.7; margin-bottom: 20px; font-style: italic; }
.t-author { display: flex; align-items: center; gap: 12px; }
.t-avatar {
  width: 40px; height: 40px; background: var(--black);
  border-radius: 50%; color: white; font-weight: 700;
  display: flex; align-items: center; justify-content: center;
  font-size: 16px; flex-shrink: 0;
}
.t-author strong { display: block; font-size: 14px; font-weight: 700; }
.t-author small { color: var(--gray-400); font-size: 12px; }

/* ===== CTA SECTION ===== */
.cta-section {
  padding: 120px 40px;
  background: var(--black);
  text-align: center; position: relative; overflow: hidden;
}
.cta-bg-shapes { position: absolute; inset: 0; overflow: hidden; }
.cta-shape {
  position: absolute; border-radius: 50%;
  background: radial-gradient(circle, var(--accent-glow), transparent 70%);
}
.cta-shape.s1 { width: 600px; height: 600px; top: -200px; left: -100px; }
.cta-shape.s2 { width: 500px; height: 500px; bottom: -200px; right: -100px; }
.cta-inner { position: relative; z-index: 1; }
.cta-tag {
  display: inline-block;
  background: rgba(37,99,235,0.2);
  color: var(--accent-light);
  font-size: 12px; font-weight: 700;
  padding: 5px 14px; border-radius: 100px;
  text-transform: uppercase; letter-spacing: 1px;
  margin-bottom: 20px;
}
.cta-section h2 {
  font-family: var(--font-head);
  font-size: clamp(36px, 5vw, 60px);
  font-weight: 800; color: var(--white);
  letter-spacing: -1.5px; margin-bottom: 16px;
}
.cta-section p { color: rgba(255,255,255,0.6); font-size: 18px; margin-bottom: 40px; }
.cta-buttons { display: flex; gap: 16px; justify-content: center; align-items: center; margin-bottom: 36px; }
.cta-trust { display: flex; gap: 24px; justify-content: center; flex-wrap: wrap; }
.cta-trust span { font-size: 13px; color: rgba(255,255,255,0.5); }

/* ===== FOOTER ===== */
.footer {
  background: #0a0a0a;
  padding: 80px 40px 0;
  color: rgba(255,255,255,0.7);
}
.footer-inner {
  max-width: 1200px; margin: 0 auto;
  display: grid; grid-template-columns: 280px 1fr;
  gap: 80px; padding-bottom: 60px;
}
.footer-brand .nav-logo { margin-bottom: 16px; }
.footer-brand .logo-mark { background: var(--accent); }
.footer-brand .logo-text { color: var(--white); }
.footer-brand > p { font-size: 13px; line-height: 1.6; color: rgba(255,255,255,0.5); margin-bottom: 24px; }
.social-icons { display: flex; gap: 12px; }
.social-icon {
  width: 36px; height: 36px; border-radius: 8px;
  background: rgba(255,255,255,0.07);
  display: flex; align-items: center; justify-content: center;
  transition: var(--transition);
}
.social-icon:hover { background: var(--accent); }
.social-icon svg { width: 16px; height: 16px; fill: rgba(255,255,255,0.7); }
.footer-links { display: grid; grid-template-columns: repeat(4, 1fr); gap: 32px; }
.footer-col h4 {
  font-family: var(--font-head); font-size: 13px; font-weight: 700;
  color: var(--white); text-transform: uppercase; letter-spacing: 1px;
  margin-bottom: 16px;
}
.footer-col ul { list-style: none; display: flex; flex-direction: column; gap: 10px; }
.footer-col ul li a {
  color: rgba(255,255,255,0.5); text-decoration: none;
  font-size: 13px; transition: var(--transition);
}
.footer-col ul li a:hover { color: var(--white); }
.footer-bottom {
  max-width: 1200px; margin: 0 auto;
  border-top: 1px solid rgba(255,255,255,0.08);
  padding: 24px 0;
  display: flex; justify-content: space-between; align-items: center;
  font-size: 12px; color: rgba(255,255,255,0.3);
}

/* ===== RESPONSIVE ===== */
img, svg { max-width: 100%; }

.nav-logo img {
  width: auto;
  max-width: 170px;
  height: 60px;
  object-fit: contain;
}

.footer-brand .nav-logo img {
  height: 60px;
  max-width: 180px;
}

@media (max-width: 1180px) {
  .navbar,
  .hero,
  .features-section,
  .ai-section,
  .dashboard-section,
  .how-section,
  .testimonials-section,
  .cta-section,
  .footer {
    padding-left: 28px;
    padding-right: 28px;
  }

  .hero-inner {
    gap: 48px;
  }

  .fd-stats {
    grid-template-columns: repeat(2, minmax(0, 1fr));
  }

  .fd-charts-row {
    grid-template-columns: repeat(2, minmax(0, 1fr));
  }

  .fd-recent {
    grid-column: 1 / -1;
  }

  .footer-inner {
    grid-template-columns: 240px 1fr;
    gap: 48px;
  }
}

@media (max-width: 980px) {
  .navbar {
    padding: 0 24px;
  }

  .nav-inner {
    padding-right: 0;
  }

  .nav-links {
    position: absolute;
    top: calc(100% + 1px);
    left: 0;
    right: 0;
    display: grid;
    gap: 0;
    background: rgba(255,255,255,0.98);
    border-bottom: 1px solid rgba(0,0,0,0.08);
    box-shadow: 0 18px 36px rgba(0,0,0,0.08);
    padding: 10px 24px 16px;
    opacity: 0;
    pointer-events: none;
    transform: translateY(-10px);
    transition: var(--transition);
  }

  .nav-links.open {
    opacity: 1;
    pointer-events: auto;
    transform: translateY(0);
  }

  .nav-links li a {
    display: block;
    padding: 13px 10px;
  }

  .hamburger {
    display: flex;
  }

  .btn-book-demo {
    margin-left: auto;
  }

  .hero {
    min-height: auto;
    padding-top: 112px;
  }

  .hero-inner {
    grid-template-columns: 1fr;
    gap: 56px;
  }

  .hero-left {
    max-width: 720px;
  }

  .hero-sub {
    max-width: 640px;
  }

  .hero-right {
    max-width: 680px;
    width: 100%;
    margin: 0 auto;
  }

  .hero-scroll-hint {
    display: none;
  }

  .ai-cards-row,
  .testimonials-row {
    grid-template-columns: 1fr;
  }

  .feature-two-col,
  .footer-inner {
    grid-template-columns: 1fr;
  }

  .steps-row {
    align-items: stretch;
  }

  .step-card {
    padding: 32px 22px;
  }

  .full-dashboard {
    grid-template-columns: 1fr;
  }

  .fd-sidebar {
    padding: 16px;
  }

  .fd-logo {
    margin-bottom: 14px;
  }

  .fd-nav {
    display: grid;
    grid-template-columns: repeat(4, minmax(0, 1fr));
  }

  .fd-nav-item {
    justify-content: center;
    text-align: center;
    min-height: 44px;
  }

  .footer-links {
    grid-template-columns: repeat(2, minmax(0, 1fr));
  }
}

@media (max-width: 760px) {
  .container {
    padding: 0 18px;
  }

  .navbar,
  .hero,
  .features-section,
  .ai-section,
  .dashboard-section,
  .how-section,
  .testimonials-section,
  .cta-section,
  .footer {
    padding-left: 0;
    padding-right: 0;
  }

  .navbar {
    padding: 0 18px;
  }

  .nav-inner {
    height: 66px;
  }

  .nav-logo img {
    max-width: 128px;
    height: 50px;
  }

  .nav-inner > .btn-book-demo {
    padding: 9px 14px;
    font-size: 13px;
  }

  .hero {
    padding-top: 96px;
    padding-bottom: 68px;
  }

  .hero-inner,
  .cta-inner,
  .footer-inner,
  .footer-bottom {
    padding-left: 18px;
    padding-right: 18px;
  }

  .hero-headline {
    font-size: clamp(38px, 12vw, 52px);
    letter-spacing: -1.2px;
  }

  .hero-sub {
    font-size: 16px;
    margin-bottom: 28px;
  }

  .hero-buttons,
  .cta-buttons {
    align-items: stretch;
    flex-direction: column;
  }

  .btn-primary,
  .btn-secondary,
  .btn-secondary-white,
  .cta-buttons .btn-book-demo {
    justify-content: center;
    width: 100%;
    text-align: center;
  }

  .hero-stats {
    gap: 14px;
    justify-content: space-between;
  }

  .stat-num {
    font-size: 22px;
  }

  .dashboard-mockup {
    border-radius: 16px;
  }

  .mockup-stat-row,
  .mockup-charts,
  .fd-stats,
  .fd-charts-row {
    grid-template-columns: 1fr;
  }

  .float-card {
    display: none;
  }

  .features-section,
  .ai-section,
  .dashboard-section,
  .how-section,
  .testimonials-section {
    padding-top: 72px;
    padding-bottom: 72px;
  }

  .section-head {
    margin-bottom: 42px;
  }

  .section-head h2,
  .cta-section h2 {
    letter-spacing: -0.8px;
  }

  .feature-category {
    margin-bottom: 46px;
  }

  .feature-grid {
    grid-template-columns: 1fr;
  }

  .cat-title {
    align-items: flex-start;
    line-height: 1.3;
  }

  .ai-feature-card,
  .testimonial-card,
  .feature-card {
    border-radius: 16px;
  }

  .full-dashboard {
    border-radius: 16px;
    min-height: 0;
  }

  .fd-nav {
    grid-template-columns: repeat(2, minmax(0, 1fr));
  }

  .fd-main {
    padding: 18px;
  }

  .fd-header {
    align-items: flex-start;
    flex-direction: column;
    gap: 14px;
  }

  .fd-header-right,
  .fd-search {
    width: 100%;
  }

  .fd-search {
    flex: 1;
  }

  .fd-stat-card {
    align-items: flex-start;
  }

  .steps-row {
    flex-direction: column;
  }

  .step-arrow {
    transform: rotate(90deg);
    align-self: center;
  }

  .cta-section {
    padding-top: 88px;
    padding-bottom: 88px;
  }

  .cta-section p {
    font-size: 16px;
  }

  .cta-trust {
    flex-direction: column;
    gap: 12px;
  }

  .footer {
    padding-top: 64px;
  }

  .footer-inner {
    gap: 40px;
    padding-bottom: 44px;
  }

  .footer-links {
    grid-template-columns: 1fr;
    gap: 28px;
  }

  .footer-bottom {
    flex-direction: column;
    align-items: flex-start;
    gap: 10px;
  }

  .modal-overlay {
    align-items: flex-start;
    padding: 14px;
    overflow-y: auto;
  }

  .modal-box {
    max-height: none;
    padding: 30px 20px 24px;
    border-radius: 18px;
  }

  .form-row {
    grid-template-columns: 1fr;
  }
}

@media (max-width: 440px) {
  .container {
    padding: 0 14px;
  }

  .hero-inner,
  .cta-inner,
  .footer-inner,
  .footer-bottom {
    padding-left: 14px;
    padding-right: 14px;
  }

  .navbar {
    padding: 0 14px;
  }

  .nav-logo img {
    max-width: 108px;
    height: 44px;
  }

  .nav-inner > .btn-book-demo {
    padding: 8px 11px;
    font-size: 12px;
  }

  .hamburger {
    padding: 7px 0 7px 7px;
  }

  .hero-headline {
    font-size: clamp(34px, 13vw, 44px);
  }

  .hero-stats {
    display: grid;
    grid-template-columns: repeat(3, minmax(0, 1fr));
  }

  .stat-divider {
    display: none;
  }

  .stat-label {
    font-size: 12px;
  }

  .mockup-topbar {
    gap: 8px;
    padding: 10px 12px;
  }

  .mockup-title {
    font-size: 11px;
  }

  .m-stat,
  .chart-box,
  .fd-chart-box,
  .fd-stat-card {
    padding: 12px;
  }

  .fd-nav {
    grid-template-columns: 1fr;
  }

  .fd-header-right {
    align-items: stretch;
  }

  .footer-brand .nav-logo img {
    max-width: 150px;
  }
}
