/* ============================================
   HAVENCOURT — Community Marketing Site
   ============================================ */

@import url('https://fonts.googleapis.com/css2?family=Inter:wght@300;400;500;600;700&family=Playfair+Display:wght@700&display=swap');

/* === Reset === */
*, *::before, *::after { box-sizing: border-box; margin: 0; padding: 0; }
html { scroll-behavior: smooth; }
body {
  font-family: 'Inter', -apple-system, BlinkMacSystemFont, sans-serif;
  color: #111827;
  background: #fff;
  -webkit-font-smoothing: antialiased;
}
img { display: block; max-width: 100%; }
a { text-decoration: none; color: inherit; }
button { cursor: pointer; border: none; background: none; font-family: inherit; }
ul { list-style: none; }

/* === Tokens === */
:root {
  --primary:        #393A95;
  --primary-light:  #6B6EC4;
  --primary-subtle: #F0F0FA;
  --primary-border: #C7C8E8;
  --primary-dark:   #2A2B76;
  --white:          #FFFFFF;
  --grey-50:        #F9FAFB;
  --grey-100:       #F3F4F6;
  --grey-200:       #E5E7EB;
  --grey-400:       #9CA3AF;
  --grey-600:       #6B7280;
  --grey-700:       #374151;
  --grey-900:       #111827;
  --success:        #10B981;
  --warning:        #F59E0B;
  --radius-sm:      6px;
  --radius-md:      10px;
  --radius-lg:      16px;
  --radius-xl:      24px;
  --shadow-sm:      0 1px 3px rgba(0,0,0,0.07), 0 1px 2px rgba(0,0,0,0.04);
  --shadow-md:      0 4px 16px rgba(0,0,0,0.08), 0 2px 4px rgba(0,0,0,0.04);
  --shadow-lg:      0 12px 40px rgba(0,0,0,0.10), 0 4px 8px rgba(0,0,0,0.05);
  --container:      1160px;
  --section-v:      96px;
}

/* === Layout === */
.container {
  max-width: var(--container);
  margin: 0 auto;
  padding: 0 24px;
}

/* === Buttons === */
.btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 8px;
  padding: 10px 20px;
  border-radius: var(--radius-md);
  font-size: 14px;
  font-weight: 600;
  transition: all 0.18s ease;
  white-space: nowrap;
}
.btn-lg { padding: 14px 28px; font-size: 15px; border-radius: var(--radius-md); }
.btn-full { width: 100%; }
.btn-primary {
  background: var(--primary);
  color: var(--white);
}
.btn-primary:hover { background: var(--primary-dark); transform: translateY(-1px); box-shadow: 0 4px 12px rgba(57,58,149,0.35); }
.btn-white {
  background: var(--white);
  color: var(--primary);
}
.btn-white:hover { background: var(--primary-subtle); transform: translateY(-1px); }
.btn-ghost {
  background: rgba(255,255,255,0.12);
  color: var(--white);
  border: 1.5px solid rgba(255,255,255,0.35);
}
.btn-ghost:hover { background: rgba(255,255,255,0.20); }
.btn-outline {
  background: transparent;
  color: var(--primary);
  border: 1.5px solid var(--primary-border);
}
.btn-outline:hover { background: var(--primary-subtle); border-color: var(--primary); }

/* === Section Helpers === */
.section-tag {
  display: inline-block;
  font-size: 12px;
  font-weight: 700;
  letter-spacing: 0.08em;
  text-transform: uppercase;
  color: var(--primary);
  background: var(--primary-subtle);
  border: 1px solid var(--primary-border);
  padding: 5px 12px;
  border-radius: 100px;
  margin-bottom: 20px;
}
.section-header {
  text-align: center;
  max-width: 640px;
  margin: 0 auto 56px;
}
h2 {
  font-size: 40px;
  font-weight: 700;
  line-height: 1.15;
  letter-spacing: -0.02em;
  color: var(--grey-900);
  margin-bottom: 16px;
}
.section-sub {
  font-size: 17px;
  line-height: 1.65;
  color: var(--grey-600);
}
.eyebrow {
  display: inline-block;
  font-size: 12px;
  font-weight: 600;
  letter-spacing: 0.08em;
  text-transform: uppercase;
  color: rgba(255,255,255,0.75);
  background: rgba(255,255,255,0.12);
  border: 1px solid rgba(255,255,255,0.2);
  padding: 5px 14px;
  border-radius: 100px;
  margin-bottom: 24px;
}

/* ============================================
   NAV
   ============================================ */
.nav {
  position: sticky;
  top: 0;
  z-index: 200;
  background: rgba(255,255,255,0.95);
  backdrop-filter: blur(12px);
  -webkit-backdrop-filter: blur(12px);
  border-bottom: 1px solid transparent;
  transition: border-color 0.2s, box-shadow 0.2s;
}
.nav.scrolled {
  border-bottom-color: var(--grey-200);
  box-shadow: 0 2px 12px rgba(0,0,0,0.06);
}
.nav-inner {
  max-width: var(--container);
  margin: 0 auto;
  padding: 0 24px;
  height: 68px;
  display: flex;
  align-items: center;
  gap: 40px;
}
.nav-logo {
  display: flex;
  align-items: center;
  gap: 10px;
  flex-shrink: 0;
}
.nav-logo-img { width: 30px; height: 30px; object-fit: contain; }
.nav-logo-text {
  font-family: 'Playfair Display', Georgia, serif;
  font-size: 17px;
  font-weight: 700;
  color: var(--primary);
}
.nav-links {
  display: flex;
  align-items: center;
  gap: 32px;
  flex: 1;
}
.nav-links a {
  font-size: 14px;
  font-weight: 500;
  color: var(--grey-700);
  transition: color 0.15s;
}
.nav-links a:hover { color: var(--primary); }
.nav-inner .btn { margin-left: auto; }
.nav-hamburger {
  display: none;
  flex-direction: column;
  gap: 5px;
  padding: 4px;
  margin-left: auto;
}
.nav-hamburger span {
  display: block;
  width: 22px;
  height: 2px;
  background: var(--grey-700);
  border-radius: 2px;
  transition: all 0.2s;
}
.nav-mobile {
  display: none;
  flex-direction: column;
  gap: 4px;
  padding: 12px 24px 20px;
  border-top: 1px solid var(--grey-200);
  background: var(--white);
}
.nav-mobile a {
  font-size: 15px;
  font-weight: 500;
  color: var(--grey-700);
  padding: 10px 0;
  border-bottom: 1px solid var(--grey-100);
}
.nav-mobile .btn { margin-top: 12px; }
.nav-mobile.open { display: flex; }

/* ============================================
   HERO
   ============================================ */
.hero {
  background: var(--primary);
  background-image: radial-gradient(ellipse at 70% 50%, rgba(107,110,196,0.4) 0%, transparent 70%),
                    radial-gradient(ellipse at 10% 80%, rgba(42,43,118,0.6) 0%, transparent 60%);
  min-height: 680px;
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  padding: 80px 24px 60px;
  position: relative;
  overflow: hidden;
}
.hero::before {
  content: '';
  position: absolute;
  inset: 0;
  background: url("data:image/svg+xml,%3Csvg width='60' height='60' viewBox='0 0 60 60' xmlns='http://www.w3.org/2000/svg'%3E%3Cg fill='none' fill-rule='evenodd'%3E%3Cg fill='%23ffffff' fill-opacity='0.03'%3E%3Cpath d='M36 34v-4h-2v4h-4v2h4v4h2v-4h4v-2h-4zm0-30V0h-2v4h-4v2h4v4h2V6h4V4h-4zM6 34v-4H4v4H0v2h4v4h2v-4h4v-2H6zM6 4V0H4v4H0v2h4v4h2V6h4V4H6z'/%3E%3C/g%3E%3C/g%3E%3C/svg%3E");
  pointer-events: none;
}
.hero-inner {
  max-width: var(--container);
  width: 100%;
  margin: 0 auto;
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 60px;
  align-items: center;
  position: relative;
  z-index: 1;
}
.hero-content { max-width: 520px; }
.hero h1 {
  font-size: 64px;
  font-weight: 700;
  line-height: 1.05;
  letter-spacing: -0.03em;
  color: var(--white);
  margin-bottom: 24px;
}
.hero-sub {
  font-size: 18px;
  line-height: 1.65;
  color: rgba(255,255,255,0.78);
  margin-bottom: 36px;
  max-width: 440px;
}
.hero-ctas {
  display: flex;
  gap: 12px;
  flex-wrap: wrap;
}
.hero-visual {
  display: flex;
  justify-content: center;
  align-items: center;
}
.hero-scroll-hint {
  display: flex;
  justify-content: center;
  margin-top: 48px;
  position: relative;
  z-index: 1;
}
.scroll-line {
  width: 1px;
  height: 48px;
  background: linear-gradient(to bottom, rgba(255,255,255,0.5), transparent);
  animation: scrollPulse 2s ease-in-out infinite;
}
@keyframes scrollPulse {
  0%, 100% { opacity: 0.4; transform: scaleY(1); }
  50% { opacity: 1; transform: scaleY(1.1); }
}

/* === Phone Mockup === */
.phone-mockup {
  position: relative;
}
.phone-frame {
  width: 280px;
  background: #12122A;
  border-radius: 44px;
  padding: 8px;
  box-shadow:
    0 0 0 1px rgba(255,255,255,0.08),
    0 40px 100px rgba(0,0,0,0.5),
    0 10px 30px rgba(0,0,0,0.3),
    inset 0 1px 0 rgba(255,255,255,0.06);
}
.phone-screen {
  background: var(--primary-subtle);
  border-radius: 36px;
  overflow: hidden;
  display: flex;
  flex-direction: column;
}
.phone-screenshot {
  width: 100%;
  height: auto;
  display: block;
  border-radius: 36px;
}
.mock-header {
  background: var(--white);
  padding: 10px 12px;
  display: flex;
  align-items: center;
  gap: 8px;
  border-bottom: 1px solid var(--grey-200);
  flex-shrink: 0;
}
.mock-logo-wrap { display: flex; align-items: center; gap: 5px; }
.mock-logo-dot {
  width: 18px;
  height: 18px;
  border-radius: 50%;
  background: var(--primary);
  flex-shrink: 0;
}
.mock-logo-wordmark {
  width: 54px;
  height: 8px;
  background: var(--primary);
  border-radius: 4px;
  opacity: 0.8;
}
.mock-header-title {
  flex: 1;
  height: 8px;
  background: var(--grey-200);
  border-radius: 4px;
  margin: 0 8px;
}
.mock-avatar-sm {
  width: 22px;
  height: 22px;
  border-radius: 50%;
  background: var(--primary-border);
  flex-shrink: 0;
}
.mock-body {
  flex: 1;
  padding: 10px;
  display: flex;
  flex-direction: column;
  gap: 8px;
  overflow: hidden;
}
.mock-greeting { padding: 4px 0 2px; }
.mock-stat-card {
  background: var(--primary);
  border-radius: 10px;
  padding: 10px;
}
.mock-stat-label {
  width: 60%;
  height: 6px;
  background: rgba(255,255,255,0.4);
  border-radius: 3px;
  margin-bottom: 6px;
}
.mock-stat-value {
  width: 45%;
  height: 14px;
  background: rgba(255,255,255,0.9);
  border-radius: 4px;
  margin-bottom: 8px;
}
.mock-stat-badge {
  width: 36px;
  height: 8px;
  background: rgba(255,255,255,0.3);
  border-radius: 4px;
  margin-bottom: 10px;
}
.mock-progress-bar {
  height: 4px;
  background: rgba(255,255,255,0.2);
  border-radius: 2px;
  overflow: hidden;
}
.mock-progress-fill {
  height: 100%;
  background: rgba(255,255,255,0.8);
  border-radius: 2px;
}
.mock-section-label { padding: 2px 0; }
.mock-deal-item {
  background: var(--white);
  border-radius: 8px;
  padding: 8px 10px;
  display: flex;
  align-items: center;
  gap: 8px;
}
.mock-deal-dot {
  width: 8px;
  height: 8px;
  border-radius: 50%;
  flex-shrink: 0;
}
.mock-deal-dot.primary { background: var(--primary); }
.mock-deal-dot.warning { background: var(--warning); }
.mock-deal-text { flex: 1; }
.mock-pill {
  font-size: 8px;
  font-weight: 700;
  padding: 2px 6px;
  border-radius: 100px;
  white-space: nowrap;
  flex-shrink: 0;
}
.mock-pill.active { background: #ECFDF5; color: #10B981; }
.mock-pill.dd { background: #FFFBEB; color: #D97706; }
.mock-news-item {
  background: var(--white);
  border-radius: 8px;
  padding: 8px 10px;
  display: flex;
  gap: 8px;
  align-items: flex-start;
}
.mock-news-thumb {
  width: 36px;
  height: 36px;
  border-radius: 6px;
  background: var(--primary-light);
  flex-shrink: 0;
}
.mock-news-thumb.alt { background: #6B6EC4; opacity: 0.6; }
.mock-news-text { flex: 1; }
.mock-bottom-nav {
  background: var(--white);
  border-top: 1px solid var(--grey-200);
  padding: 8px 16px;
  display: flex;
  justify-content: space-between;
  align-items: center;
  flex-shrink: 0;
}
.mock-nav-item {
  width: 20px;
  height: 20px;
  border-radius: 50%;
  background: var(--grey-200);
}
.mock-nav-item.active { background: var(--primary); }

/* Shared mock helpers */
.mock-line {
  height: 6px;
  background: var(--grey-200);
  border-radius: 3px;
}
.mock-line.w80 { width: 80%; }
.mock-line.w70 { width: 70%; }
.mock-line.w60 { width: 60%; }
.mock-line.w55 { width: 55%; }
.mock-line.w50 { width: 50%; }
.mock-line.w45 { width: 45%; }
.mock-line.w40 { width: 40%; }
.mock-line.w35 { width: 35%; }
.mock-line.w30 { width: 30%; }
.mock-line.grey { background: var(--grey-400); opacity: 0.4; }
.mt4 { margin-top: 4px; }
.mt8 { margin-top: 8px; }

/* ============================================
   TRUSTED BY
   ============================================ */
.trusted {
  background: var(--white);
  border-bottom: 1px solid var(--grey-200);
  padding: 36px 0;
}
.trusted .container {
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 24px;
}
.trusted-label {
  font-size: 12px;
  font-weight: 600;
  letter-spacing: 0.07em;
  text-transform: uppercase;
  color: var(--grey-400);
}
.trusted-logos {
  display: flex;
  align-items: center;
  gap: 100px;
  flex-wrap: wrap;
  justify-content: center;
}
.trusted-logo {
  height: 72px;
  width: auto;
}

/* ============================================
   PROBLEM
   ============================================ */
.problem {
  background: var(--primary-subtle);
  padding: var(--section-v) 0;
}
.problem-grid {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 24px;
}
.problem-card {
  background: var(--white);
  border: 1px solid var(--grey-200);
  border-radius: var(--radius-lg);
  padding: 36px 32px;
  text-align: center;
  box-shadow: var(--shadow-sm);
}
.problem-stat {
  font-size: 56px;
  font-weight: 700;
  letter-spacing: -0.04em;
  color: var(--primary);
  line-height: 1;
  margin-bottom: 16px;
}
.problem-card p {
  font-size: 15px;
  line-height: 1.6;
  color: var(--grey-600);
}

/* ============================================
   SOLUTION
   ============================================ */
.solution {
  background: var(--white);
  padding: var(--section-v) 0;
}
.solution-inner {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 80px;
  align-items: center;
}
.solution-content h2 { text-align: left; margin-bottom: 20px; }
.solution-content p {
  font-size: 16px;
  line-height: 1.7;
  color: var(--grey-600);
  margin-bottom: 16px;
}
.solution-content .btn { margin-top: 12px; }
.solution-stats {
  display: flex;
  flex-direction: column;
  gap: 20px;
}
.solution-stat-card {
  background: var(--primary-subtle);
  border: 1px solid var(--primary-border);
  border-radius: var(--radius-lg);
  padding: 24px 28px;
  display: flex;
  align-items: center;
  gap: 24px;
}
.solution-stat-value {
  font-size: 40px;
  font-weight: 700;
  letter-spacing: -0.03em;
  color: var(--primary);
  line-height: 1;
  flex-shrink: 0;
  min-width: 72px;
}
.solution-stat-label {
  font-size: 14px;
  line-height: 1.5;
  color: var(--grey-700);
  font-weight: 500;
}

/* ============================================
   PLATFORM PREVIEW
   ============================================ */
.preview-section {
  background: var(--white);
  padding: var(--section-v) 0;
}
.browser-mockup {
  border-radius: var(--radius-xl);
  overflow: hidden;
  box-shadow: 0 24px 80px rgba(57,58,149,0.15), 0 8px 24px rgba(0,0,0,0.08);
  border: 1px solid var(--grey-200);
}
.browser-bar {
  background: var(--grey-50);
  border-bottom: 1px solid var(--grey-200);
  padding: 10px 16px;
  display: flex;
  align-items: center;
  gap: 12px;
}
.browser-dots {
  display: flex;
  gap: 6px;
  flex-shrink: 0;
}
.browser-dot {
  width: 10px;
  height: 10px;
  border-radius: 50%;
}
.browser-dot.red    { background: #FF5F57; }
.browser-dot.yellow { background: #FFBD2E; }
.browser-dot.green  { background: #28C840; }
.browser-url {
  flex: 1;
  background: var(--white);
  border: 1px solid var(--grey-200);
  border-radius: 6px;
  padding: 4px 12px;
  font-size: 12px;
  color: var(--grey-400);
  text-align: center;
  max-width: 320px;
  margin: 0 auto;
}
.browser-body { line-height: 0; }
.browser-screenshot {
  width: 100%;
  height: auto;
  display: block;
}

/* ============================================
   FEATURES
   ============================================ */
.features {
  background: var(--primary-subtle);
  padding: var(--section-v) 0;
}
.features-grid {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 20px;
}
.feature-card {
  background: var(--white);
  border: 1px solid var(--grey-200);
  border-radius: var(--radius-lg);
  padding: 32px 28px;
  transition: box-shadow 0.2s, border-color 0.2s, transform 0.2s;
}
.feature-card:hover {
  box-shadow: var(--shadow-md);
  border-color: var(--primary-border);
  transform: translateY(-2px);
}
.feature-icon {
  width: 44px;
  height: 44px;
  background: var(--primary-subtle);
  border: 1px solid var(--primary-border);
  border-radius: var(--radius-md);
  display: flex;
  align-items: center;
  justify-content: center;
  color: var(--primary);
  margin-bottom: 20px;
}
.feature-card h3 {
  font-size: 17px;
  font-weight: 700;
  color: var(--grey-900);
  margin-bottom: 10px;
}
.feature-card p {
  font-size: 14px;
  line-height: 1.65;
  color: var(--grey-600);
}

/* ============================================
   HOW IT WORKS
   ============================================ */
.how {
  background: var(--white);
  padding: var(--section-v) 0;
}
.how-steps {
  display: flex;
  align-items: flex-start;
  gap: 0;
}
.how-step {
  flex: 1;
  text-align: center;
  padding: 0 24px;
}
.how-num {
  font-size: 13px;
  font-weight: 700;
  letter-spacing: 0.05em;
  color: var(--primary);
  background: var(--primary-subtle);
  border: 1px solid var(--primary-border);
  width: 44px;
  height: 44px;
  border-radius: 50%;
  display: flex;
  align-items: center;
  justify-content: center;
  margin: 0 auto 20px;
}
.how-step h3 {
  font-size: 18px;
  font-weight: 700;
  color: var(--grey-900);
  margin-bottom: 12px;
}
.how-step p {
  font-size: 14px;
  line-height: 1.65;
  color: var(--grey-600);
}
.how-connector {
  flex-shrink: 0;
  width: 60px;
  display: flex;
  align-items: flex-start;
  padding-top: 22px;
}
.how-connector-line {
  width: 100%;
  height: 1px;
  background: linear-gradient(to right, var(--primary-border), var(--primary-border));
  position: relative;
}
.how-connector-line::after {
  content: '';
  position: absolute;
  right: -1px;
  top: -3px;
  width: 6px;
  height: 6px;
  border-top: 1.5px solid var(--primary-border);
  border-right: 1.5px solid var(--primary-border);
  transform: rotate(45deg);
}

/* ============================================
   STATS BAND
   ============================================ */
.stats-band {
  background: var(--primary-dark);
  background-image: radial-gradient(ellipse at 30% 50%, rgba(107,110,196,0.3) 0%, transparent 60%);
  padding: 72px 0;
}
.stats-grid {
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  gap: 40px;
}
.stat-item {
  text-align: center;
}
.stat-value {
  font-size: 52px;
  font-weight: 700;
  letter-spacing: -0.04em;
  color: var(--white);
  line-height: 1;
  margin-bottom: 12px;
}
.stat-label {
  font-size: 13px;
  line-height: 1.5;
  color: rgba(255,255,255,0.6);
  font-weight: 500;
}

/* ============================================
   PRICING
   ============================================ */
.pricing {
  background: var(--primary-subtle);
  padding: var(--section-v) 0;
}
.pricing-grid {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 24px;
  align-items: start;
}
.pricing-card {
  background: var(--white);
  border: 1px solid var(--grey-200);
  border-radius: var(--radius-xl);
  padding: 36px 32px;
  position: relative;
  box-shadow: var(--shadow-sm);
}
.pricing-card.featured {
  background: var(--primary);
  border-color: var(--primary);
  box-shadow: 0 20px 60px rgba(57,58,149,0.35), var(--shadow-md);
  transform: scale(1.02);
}
.pricing-popular {
  position: absolute;
  top: -13px;
  left: 50%;
  transform: translateX(-50%);
  font-size: 11px;
  font-weight: 700;
  letter-spacing: 0.06em;
  text-transform: uppercase;
  color: var(--primary);
  background: var(--white);
  border: 1px solid var(--primary-border);
  padding: 4px 14px;
  border-radius: 100px;
  white-space: nowrap;
}
.pricing-tier {
  font-size: 13px;
  font-weight: 700;
  letter-spacing: 0.05em;
  text-transform: uppercase;
  color: var(--grey-600);
  margin-bottom: 16px;
}
.pricing-card.featured .pricing-tier { color: rgba(255,255,255,0.7); }
.pricing-price {
  font-size: 48px;
  font-weight: 700;
  letter-spacing: -0.04em;
  color: var(--grey-900);
  line-height: 1;
  margin-bottom: 6px;
}
.pricing-card.featured .pricing-price { color: var(--white); }
.pricing-period {
  font-size: 20px;
  font-weight: 400;
  letter-spacing: 0;
}
.pricing-annual {
  font-size: 13px;
  color: var(--grey-400);
  margin-bottom: 28px;
}
.pricing-card.featured .pricing-annual { color: rgba(255,255,255,0.5); }
.pricing-features {
  display: flex;
  flex-direction: column;
  gap: 12px;
  margin-bottom: 32px;
}
.pricing-features li {
  display: flex;
  align-items: center;
  gap: 10px;
  font-size: 14px;
  color: var(--grey-700);
  font-weight: 500;
}
.pricing-card.featured .pricing-features li { color: rgba(255,255,255,0.85); }
.check {
  width: 16px;
  height: 16px;
  flex-shrink: 0;
  color: var(--primary);
  stroke: var(--primary);
}
.pricing-card.featured .check { color: rgba(255,255,255,0.9); stroke: rgba(255,255,255,0.9); }

/* ============================================
   CTA SECTION
   ============================================ */
.cta-section {
  background: var(--primary);
  background-image: radial-gradient(ellipse at 60% 40%, rgba(107,110,196,0.4) 0%, transparent 60%);
  padding: var(--section-v) 0;
  text-align: center;
}
.cta-section .container {
  max-width: 600px;
}
.cta-section h2 {
  color: var(--white);
  font-size: 44px;
  margin-bottom: 16px;
  white-space: nowrap;
}
.cta-section p {
  font-size: 17px;
  color: rgba(255,255,255,0.72);
  margin-bottom: 36px;
  line-height: 1.6;
}

/* ============================================
   FOOTER
   ============================================ */
.footer {
  background: var(--grey-900);
  padding: 64px 0 0;
}
.footer-inner {
  display: flex;
  justify-content: space-between;
  gap: 60px;
  padding-bottom: 56px;
  border-bottom: 1px solid rgba(255,255,255,0.08);
}
.footer-brand { max-width: 280px; }
.footer-tagline {
  font-size: 14px;
  line-height: 1.65;
  color: rgba(255,255,255,0.45);
  margin-top: 16px;
}
.footer-links { display: flex; gap: 60px; }
.footer-col {
  display: flex;
  flex-direction: column;
  gap: 12px;
}
.footer-col-title {
  font-size: 12px;
  font-weight: 700;
  letter-spacing: 0.07em;
  text-transform: uppercase;
  color: rgba(255,255,255,0.35);
  margin-bottom: 4px;
}
.footer-col a {
  font-size: 14px;
  color: rgba(255,255,255,0.55);
  transition: color 0.15s;
  font-weight: 500;
}
.footer-col a:hover { color: var(--white); }
.footer-bottom {
  display: flex;
  justify-content: space-between;
  align-items: center;
  padding: 20px 0;
}
.footer-bottom p {
  font-size: 13px;
  color: rgba(255,255,255,0.3);
}
.footer-legal {
  display: flex;
  gap: 24px;
}
.footer-legal a {
  font-size: 13px;
  color: rgba(255,255,255,0.3);
  transition: color 0.15s;
}
.footer-legal a:hover { color: rgba(255,255,255,0.7); }

/* ============================================
   DEMO MODAL
   ============================================ */
.modal-overlay {
  position: fixed;
  inset: 0;
  background: rgba(10,10,30,0.65);
  backdrop-filter: blur(6px);
  -webkit-backdrop-filter: blur(6px);
  z-index: 1000;
  display: flex;
  align-items: center;
  justify-content: center;
  padding: 24px;
  opacity: 0;
  pointer-events: none;
  transition: opacity 0.2s;
}
.modal-overlay.open {
  opacity: 1;
  pointer-events: all;
}
.modal {
  background: var(--white);
  border-radius: var(--radius-xl);
  padding: 40px;
  width: 100%;
  max-width: 540px;
  max-height: 90vh;
  overflow-y: auto;
  position: relative;
  box-shadow: 0 30px 80px rgba(0,0,0,0.25);
  transform: translateY(12px);
  transition: transform 0.25s ease;
}
.modal-overlay.open .modal { transform: translateY(0); }
.modal-close {
  position: absolute;
  top: 16px;
  right: 20px;
  width: 32px;
  height: 32px;
  display: flex;
  align-items: center;
  justify-content: center;
  border-radius: 50%;
  font-size: 22px;
  color: var(--grey-400);
  line-height: 1;
  transition: all 0.15s;
}
.modal-close:hover { background: var(--grey-100); color: var(--grey-900); }
.modal-logo {
  display: flex;
  align-items: center;
  gap: 8px;
  margin-bottom: 20px;
}
.modal h2 {
  font-size: 26px;
  letter-spacing: -0.02em;
  margin-bottom: 8px;
  text-align: left;
}
.modal-sub {
  font-size: 14px;
  color: var(--grey-600);
  line-height: 1.6;
  margin-bottom: 28px;
}
.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(--grey-700);
}
.form-optional {
  font-weight: 400;
  color: var(--grey-400);
}
.form-group input,
.form-group select,
.form-group textarea {
  font-family: inherit;
  font-size: 14px;
  color: var(--grey-900);
  background: var(--white);
  border: 1.5px solid var(--grey-200);
  border-radius: var(--radius-md);
  padding: 10px 14px;
  transition: border-color 0.15s, box-shadow 0.15s;
  width: 100%;
  outline: none;
}
.form-group input:focus,
.form-group select:focus,
.form-group textarea:focus {
  border-color: var(--primary);
  box-shadow: 0 0 0 3px rgba(57,58,149,0.1);
}
.form-group textarea { resize: vertical; min-height: 80px; }
.modal-success {
  display: none;
  flex-direction: column;
  align-items: center;
  text-align: center;
  padding: 24px 0;
  gap: 16px;
}
.modal-success.show { display: flex; }
.success-icon {
  width: 60px;
  height: 60px;
  border-radius: 50%;
  background: #ECFDF5;
  border: 2px solid #10B981;
  display: flex;
  align-items: center;
  justify-content: center;
  color: #10B981;
}
.success-icon svg { width: 26px; height: 26px; }
.modal-success h3 { font-size: 22px; color: var(--grey-900); }
.modal-success p { font-size: 15px; color: var(--grey-600); }

/* ============================================
   RESPONSIVE
   ============================================ */
@media (max-width: 1024px) {
  h2 { font-size: 34px; }
  .hero h1 { font-size: 52px; }
  .features-grid { grid-template-columns: repeat(2, 1fr); }
  .stats-grid { grid-template-columns: repeat(2, 1fr); gap: 32px; }
  .solution-inner { gap: 48px; }
}

@media (max-width: 860px) {
  .nav-links, .nav-inner .btn { display: none; }
  .nav-hamburger { display: flex; }
  .hero-inner { grid-template-columns: 1fr; text-align: center; gap: 24px; }
  .hero-visual {
    display: flex;
    justify-content: center;
    margin-top: 0;
    order: -1;
    overflow: hidden;
    max-height: 240px;
    align-items: flex-start;
    position: relative;
  }
  .hero-visual::after {
    content: '';
    position: absolute;
    bottom: 0;
    left: 0;
    right: 0;
    height: 100px;
    background: linear-gradient(to bottom, rgba(57,58,149,0), var(--primary));
    pointer-events: none;
  }
  .phone-frame { width: 220px; }
  .hero h1 { font-size: 44px; }
  .hero-sub { margin: 0 auto 32px; }
  .hero-ctas { justify-content: center; }
  .problem-grid { grid-template-columns: 1fr; max-width: 400px; margin: 0 auto; }
  .solution-inner { grid-template-columns: 1fr; gap: 40px; }
  .solution-content h2 { text-align: center; }
  .solution-content { text-align: center; }
  .how-steps { flex-direction: column; align-items: center; }
  .how-connector { width: 1px; height: 32px; padding: 0; }
  .how-connector-line { width: 1px; height: 100%; background: var(--primary-border); }
  .how-connector-line::after { display: none; }
  .pricing-grid { grid-template-columns: 1fr; max-width: 400px; margin: 0 auto; }
  .pricing-card.featured { transform: none; }
  .footer-inner { flex-direction: column; gap: 40px; }
  .footer-brand { max-width: 100%; }
}

@media (max-width: 640px) {
  :root { --section-v: 64px; }
  h2 { font-size: 28px; }
  h2[style*="white-space"], .cta-section h2 { white-space: normal !important; }
  .hero { padding: 60px 20px 48px; }
  .hero h1 { font-size: 36px; }
  .hero-ctas { flex-direction: column; width: 100%; max-width: 280px; margin: 0 auto; }
  .features-grid { grid-template-columns: 1fr; }
  .stats-grid { grid-template-columns: repeat(2, 1fr); gap: 24px; }
  .stat-value { font-size: 40px; }
  .trusted-logos { gap: 16px; }
  .trusted-divider { display: none; }
  .form-row { grid-template-columns: 1fr; }
  .footer-links { flex-direction: column; gap: 32px; }
  .footer-bottom { flex-direction: column; gap: 12px; text-align: center; }
  .modal { padding: 28px 20px; }
}
