﻿/* ================================================
   ArcGIS Pro ID — Styles
   Design System: Clean White & Blue, Minimalist
   ================================================ */

/* --- Google Fonts --- */
/* --- Design Tokens --- */
:root {
  /* Colors */
  --blue-900: #0a1628;
  --blue-800: #0d2240;
  --blue-700: #0e3568;
  --blue-600: #1055a8;
  --blue-500: #1971d3;
  --blue-400: #3d8ef0;
  --blue-300: #74aef6;
  --blue-100: #dbeafe;
  --blue-50:  #eff6ff;

  --white: #ffffff;
  --gray-50:  #f9fafb;
  --gray-100: #f3f4f6;
  --gray-200: #e5e7eb;
  --gray-300: #d1d5db;
  --gray-400: #9ca3af;
  --gray-500: #6b7280;
  --gray-600: #4b5563;
  --gray-700: #374151;
  --gray-900: #111827;

  /* Semantic */
  --primary:       var(--blue-500);
  --primary-dark:  var(--blue-600);
  --primary-light: var(--blue-400);
  --text-primary:  var(--gray-900);
  --text-secondary: var(--gray-600);
  --text-muted:    var(--gray-400);
  --bg-body:       var(--white);
  --bg-subtle:     var(--gray-50);
  --bg-card:       var(--white);
  --border-color:  var(--gray-200);

  /* Typography */
  --font-sans:    'Inter', sans-serif;
  --font-display: 'Plus Jakarta Sans', sans-serif;

  /* Sizes */
  --header-height: 68px;
  --container-max: 1200px;

  /* Radius */
  --radius-sm: 6px;
  --radius-md: 10px;
  --radius-lg: 16px;
  --radius-xl: 24px;

  /* Shadows */
  --shadow-xs: 0 1px 2px rgba(0,0,0,.05);
  --shadow-sm: 0 2px 8px rgba(0,0,0,.06), 0 1px 2px rgba(0,0,0,.04);
  --shadow-md: 0 4px 16px rgba(0,0,0,.08), 0 2px 4px rgba(0,0,0,.04);
  --shadow-lg: 0 8px 32px rgba(0,0,0,.10), 0 4px 8px rgba(0,0,0,.04);
  --shadow-blue: 0 4px 20px rgba(25,113,211,.25);

  /* Transitions */
  --trans-fast: 0.15s ease;
  --trans-base: 0.25s ease;
  --trans-slow: 0.4s ease;

  /* Spacing */
  --sp-1: 4px; --sp-2: 8px; --sp-3: 12px; --sp-4: 16px;
  --sp-5: 20px; --sp-6: 24px; --sp-8: 32px; --sp-10: 40px;
  --sp-12: 48px; --sp-16: 64px; --sp-20: 80px; --sp-24: 96px;
}

/* --- Reset & Base --- */
*, *::before, *::after { box-sizing: border-box; margin: 0; padding: 0; }

html { scroll-behavior: smooth; font-size: 16px; }

body {
  font-family: var(--font-sans);
  color: var(--text-primary);
  background: var(--bg-body);
  line-height: 1.6;
  -webkit-font-smoothing: antialiased;
  overflow-x: hidden;
}

img { display: block; max-width: 100%; }
a { color: var(--primary); text-decoration: none; transition: color var(--trans-fast); }
a:hover { color: var(--primary-dark); }

h1, h2, h3, h4, h5, h6 {
  font-family: var(--font-display);
  font-weight: 700;
  line-height: 1.25;
  color: var(--text-primary);
}

/* --- Utility --- */
.container {
  width: 100%;
  max-width: var(--container-max);
  margin: 0 auto;
  padding: 0 var(--sp-6);
}

.section { padding: var(--sp-20) 0; }
.section-sm { padding: var(--sp-12) 0; }

.section-tag {
  display: inline-block;
  font-size: 12px;
  font-weight: 600;
  letter-spacing: .08em;
  text-transform: uppercase;
  color: var(--blue-700);
  background: var(--blue-50);
  border: 1px solid var(--blue-100);
  padding: 4px 12px;
  border-radius: 999px;
  margin-bottom: var(--sp-4);
}

.section-title {
  font-size: clamp(26px, 4vw, 38px);
  color: var(--text-primary);
  margin-bottom: var(--sp-4);
}

.section-subtitle {
  font-size: 17px;
  color: var(--text-secondary);
  max-width: 580px;
}

.section-header { margin-bottom: var(--sp-12); }
.section-header.centered { text-align: center; }
.section-header.centered .section-subtitle { margin: 0 auto; }

/* --- Buttons --- */
.btn {
  display: inline-flex;
  align-items: center;
  gap: var(--sp-2);
  font-family: var(--font-sans);
  font-size: 15px;
  font-weight: 600;
  padding: 11px 24px;
  border-radius: var(--radius-md);
  border: 1.5px solid transparent;
  cursor: pointer;
  transition: all var(--trans-base);
  text-decoration: none;
  white-space: nowrap;
}

.btn-primary {
  background: var(--primary);
  color: var(--white);
  border-color: var(--primary);
}
.btn-primary:hover {
  background: var(--primary-dark);
  border-color: var(--primary-dark);
  color: var(--white);
  box-shadow: var(--shadow-blue);
  transform: translateY(-1px);
}

.btn-outline {
  background: transparent;
  color: var(--primary);
  border-color: var(--primary);
}
.btn-outline:hover {
  background: var(--blue-50);
  color: var(--primary-dark);
}

.btn-white {
  background: var(--white);
  color: var(--primary);
  border-color: var(--white);
}
.btn-white:hover {
  background: var(--blue-50);
  box-shadow: var(--shadow-md);
}

/* --- HEADER --- */
.header {
  position: fixed;
  top: 0; left: 0; right: 0;
  height: var(--header-height);
  background: rgba(255,255,255,0.95);
  backdrop-filter: blur(12px);
  -webkit-backdrop-filter: blur(12px);
  border-bottom: 1px solid var(--border-color);
  z-index: 10000;
  transition: box-shadow var(--trans-base);
}

.header.scrolled { box-shadow: var(--shadow-md); }

.header .container {
  height: 100%;
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: var(--sp-6);
}

.logo {
  display: flex;
  align-items: center;
  gap: var(--sp-3);
  text-decoration: none;
  flex-shrink: 0;
}

.logo-icon {
  width: 36px;
  height: 36px;
  background: var(--primary);
  border-radius: var(--radius-md);
  display: flex;
  align-items: center;
  justify-content: center;
}

.logo-icon svg { width: 20px; height: 20px; fill: white; }

.logo-text {
  font-family: var(--font-display);
  font-size: 18px;
  font-weight: 800;
  color: var(--text-primary);
  letter-spacing: -.02em;
}
.logo-text span { color: var(--primary); }

.nav-links {
  display: flex;
  align-items: center;
  gap: var(--sp-1);
}

.nav-links a {
  font-size: 14px;
  font-weight: 500;
  color: var(--text-secondary);
  padding: 8px 14px;
  border-radius: var(--radius-md);
  transition: all var(--trans-fast);
  text-decoration: none;
}
.nav-links a:hover, .nav-links a.active {
  color: var(--blue-700);
  background: var(--blue-50);
}

.nav-cta {
  background: var(--primary) !important;
  color: var(--white) !important;
  padding: 8px 18px !important;
  border-radius: var(--radius-md) !important;
  font-weight: 600 !important;
}
.nav-cta:hover {
  background: var(--primary-dark) !important;
  box-shadow: var(--shadow-blue);
}

.mobile-toggle {
  display: none;
  flex-direction: column;
  justify-content: space-between;
  width: 26px; height: 18px;
  background: none; border: none; cursor: pointer;
  padding: 0;
}
.mobile-toggle span {
  display: block;
  height: 2px;
  width: 100%;
  background: var(--gray-700);
  border-radius: 2px;
  transition: all var(--trans-base);
}

/* --- HERO --- */
.hero {
  padding-top: calc(var(--header-height) + var(--sp-20));
  padding-bottom: var(--sp-20);
  background: linear-gradient(160deg, var(--white) 0%, var(--blue-50) 60%, var(--blue-100) 100%);
  position: relative;
  overflow: hidden;
}

.hero::before {
  content: '';
  position: absolute;
  top: -80px; right: -120px;
  width: 600px; height: 600px;
  background: radial-gradient(circle, rgba(25,113,211,.08) 0%, transparent 70%);
  pointer-events: none;
}

.hero .container {
  display: grid;
  grid-template-columns: 1fr 1fr;
  align-items: center;
  gap: var(--sp-16);
}

.hero-eyebrow {
  display: inline-flex;
  align-items: center;
  gap: var(--sp-2);
  font-size: 12px;
  font-weight: 600;
  letter-spacing: .1em;
  text-transform: uppercase;
  color: var(--primary);
  margin-bottom: var(--sp-5);
}

.hero-eyebrow::before {
  content: '';
  display: block;
  width: 24px; height: 2px;
  background: var(--primary);
  border-radius: 2px;
}

.hero-title {
  font-size: clamp(32px, 5vw, 52px);
  font-weight: 800;
  letter-spacing: -.02em;
  line-height: 1.1;
  margin-bottom: var(--sp-5);
  color: var(--text-primary);
}

.hero-title span { color: var(--primary); }

.hero-desc {
  font-size: 17px;
  color: var(--text-secondary);
  margin-bottom: var(--sp-8);
  max-width: 480px;
}

.hero-actions { display: flex; gap: var(--sp-3); flex-wrap: wrap; }

.hero-badges {
  margin-top: var(--sp-10);
  display: flex;
  align-items: center;
  gap: var(--sp-5);
  padding-top: var(--sp-8);
  border-top: 1px solid var(--gray-200);
}

.hero-badge-item { text-align: center; }
.hero-badge-item strong { display: block; font-size: 22px; font-weight: 800; color: var(--primary); }
.hero-badge-item span { font-size: 13px; color: var(--text-secondary); }
.hero-badge-sep { width: 1px; height: 36px; background: var(--gray-200); }

.hero-visual {
  display: flex;
  justify-content: center;
  align-items: center;
}

.hero-img-wrap {
  position: relative;
  width: 100%;
  max-width: 500px;
  border-radius: var(--radius-xl);
  overflow: hidden;
  box-shadow: var(--shadow-lg);
  border: 1px solid var(--gray-200);
  aspect-ratio: 4/3;
  background: var(--blue-50);
  display: flex;
  align-items: center;
  justify-content: center;
}

.hero-img-wrap img {
  width: 100%;
  height: 100%;
  object-fit: cover;
}

/* --- SECTION: PRODUCTS --- */
.products-section {
  background: var(--white);
}

/* Product Type Toggle */
.product-type-tabs {
  display: flex;
  justify-content: center;
  gap: var(--sp-2);
  margin-bottom: var(--sp-12);
  background: var(--gray-100);
  border-radius: var(--radius-lg);
  padding: 6px;
  max-width: 380px;
  margin-left: auto;
  margin-right: auto;
}

.type-tab {
  flex: 1;
  padding: 10px 20px;
  border: none;
  background: transparent;
  font-family: var(--font-sans);
  font-size: 14px;
  font-weight: 600;
  color: var(--text-secondary);
  border-radius: var(--radius-md);
  cursor: pointer;
  transition: all var(--trans-base);
}
.type-tab.active {
  background: var(--white);
  color: var(--primary);
  box-shadow: var(--shadow-sm);
}

/* Product Panels */
.product-panel { display: none; }
.product-panel.active { display: block; }

.product-panel-header {
  text-align: center;
  margin-bottom: var(--sp-10);
}

.product-panel-header h3 {
  font-size: 22px;
  color: var(--text-primary);
  margin-bottom: var(--sp-2);
}

.product-panel-header p {
  font-size: 15px;
  color: var(--text-secondary);
  max-width: 540px;
  margin: 0 auto;
}

/* Subscription Grid (3 cols) */
.subscription-grid {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: var(--sp-6);
}

/* Perpetual Grid (2 cols centered) */
.perpetual-grid {
  display: grid;
  grid-template-columns: repeat(2, 1fr);
  gap: var(--sp-6);
  max-width: 800px;
  margin: 0 auto;
}

/* Product Card */
.product-card {
  background: var(--white);
  border: 1.5px solid var(--border-color);
  border-radius: var(--radius-lg);
  padding: var(--sp-8);
  display: flex;
  flex-direction: column;
  transition: all var(--trans-base);
  position: relative;
  overflow: hidden;
}

.product-card::before {
  content: '';
  position: absolute;
  top: 0; left: 0; right: 0;
  height: 3px;
  background: var(--primary);
  transform: scaleX(0);
  transform-origin: left;
  transition: transform var(--trans-base);
}

.product-card:hover {
  border-color: var(--blue-300);
  box-shadow: var(--shadow-md);
  transform: translateY(-3px);
}

.product-card:hover::before { transform: scaleX(1); }

.product-card.featured {
  border-color: var(--primary);
  background: linear-gradient(160deg, var(--white) 0%, var(--blue-50) 100%);
  box-shadow: 0 0 0 1px var(--blue-200), var(--shadow-md);
}

.product-card.featured::before { transform: scaleX(1); }

.card-badge {
  position: absolute;
  top: 20px; right: 20px;
  font-size: 11px;
  font-weight: 700;
  letter-spacing: .05em;
  text-transform: uppercase;
  padding: 3px 10px;
  border-radius: 999px;
  background: var(--primary);
  color: var(--white);
}

.card-icon {
  width: 52px;
  height: 52px;
  background: var(--blue-50);
  border: 1px solid var(--blue-100);
  border-radius: var(--radius-md);
  display: flex;
  align-items: center;
  justify-content: center;
  margin-bottom: var(--sp-5);
}

.card-icon svg { width: 26px; height: 26px; }

/* Product Image Frame */
.card-image-frame {
  width: 100%;
  aspect-ratio: 4 / 3;
  border-radius: var(--radius-lg);
  background: transparent;
  border: none;
  display: flex;
  align-items: center;
  justify-content: center;
  margin-bottom: var(--sp-5);
  overflow: hidden;
  transition: border-color var(--trans-base);
}
.product-card:hover .card-image-frame { border-color: var(--blue-300); }
.card-image-frame img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  display: block;
}
.card-image-placeholder {
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 6px;
  color: var(--blue-300);
  font-size: 0.72rem;
  font-weight: 500;
  padding: var(--sp-4);
}
.card-image-placeholder svg { opacity: 0.6; }
.card-image-placeholder .placeholder-filename { color: var(--blue-400); font-weight: 600; }
.card-image-placeholder .placeholder-size { color: var(--blue-300); font-size: 0.65rem; }

.card-user-type {
  font-size: 11px;
  font-weight: 700;
  letter-spacing: .08em;
  text-transform: uppercase;
  color: var(--primary);
  margin-bottom: var(--sp-2);
}

.card-title {
  font-size: 20px;
  font-weight: 700;
  margin-bottom: var(--sp-3);
  color: var(--text-primary);
}

.card-desc {
  font-size: 14px;
  color: var(--text-secondary);
  line-height: 1.65;
  margin-bottom: var(--sp-6);
}

.card-features {
  list-style: none;
  margin-bottom: var(--sp-6);
  display: flex;
  flex-direction: column;
  gap: var(--sp-2);
}

.card-features li {
  display: flex;
  align-items: flex-start;
  gap: var(--sp-2);
  font-size: 13px;
  color: var(--text-secondary);
}

.card-features li::before {
  content: '';
  flex-shrink: 0;
  width: 16px;
  height: 16px;
  margin-top: 1px;
  background: var(--blue-50);
  border-radius: 50%;
  background-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 16 16'%3E%3Cpath d='M3 8l3.5 3.5L13 4' stroke='%231971d3' stroke-width='1.8' fill='none' stroke-linecap='round' stroke-linejoin='round'/%3E%3C/svg%3E");
  background-repeat: no-repeat;
  background-size: 16px;
}

.card-img {
  width: 100%;
  height: 180px;
  object-fit: cover;
  border-radius: var(--radius-md);
  margin-bottom: var(--sp-6);
  background: var(--gray-100);
}

.card-cta {
  display: flex;
  width: 100%;
  gap: var(--sp-3);
  margin-top: auto;
}

/* --- Comparison Note --- */
.comparison-note {
  margin-top: var(--sp-10);
  background: var(--blue-50);
  border: 1px solid var(--blue-100);
  border-radius: var(--radius-lg);
  padding: var(--sp-6) var(--sp-8);
  display: flex;
  align-items: center;
  gap: var(--sp-4);
}

.comparison-note-icon {
  flex-shrink: 0;
  width: 40px; height: 40px;
  background: var(--primary);
  border-radius: var(--radius-md);
  display: flex;
  align-items: center;
  justify-content: center;
}

.comparison-note-icon svg { width: 20px; height: 20px; fill: white; }

.comparison-note p {
  font-size: 14px;
  color: var(--text-secondary);
  flex: 1;
}

.comparison-note a { font-weight: 600; color: var(--primary); }

/* --- WHY US --- */
.why-section { background: var(--gray-50); }

.why-grid {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: var(--sp-6);
  margin-top: var(--sp-10);
}

.why-card {
  background: var(--white);
  border: 1.5px solid var(--border-color);
  border-radius: var(--radius-lg);
  padding: var(--sp-8);
  transition: all var(--trans-base);
  text-align: center;
}

.why-card:hover {
  border-color: var(--blue-200);
  box-shadow: var(--shadow-sm);
  transform: translateY(-2px);
}

.why-icon {
  width: 48px; height: 48px;
  background: var(--blue-50);
  border-radius: var(--radius-md);
  display: flex;
  align-items: center;
  justify-content: center;
  margin: 0 auto var(--sp-5) auto;
}

.why-icon svg { width: 24px; height: 24px; stroke: var(--primary); fill: none; stroke-width: 1.8; }

.why-card h3 { font-size: 16px; margin-bottom: var(--sp-3); }
.why-card p { font-size: 14px; color: var(--text-secondary); line-height: 1.65; }

/* --- CLIENTS --- */
.clients-section { background: var(--white); }

.clients-grid {
  display: flex;
  justify-content: center;
  flex-wrap: wrap;
  gap: var(--sp-3);
  margin-top: var(--sp-10);
}

.client-chip {
  display: inline-flex;
  align-items: center;
  gap: var(--sp-2);
  padding: 8px 16px;
  background: var(--gray-50);
  border: 1.5px solid var(--gray-200);
  border-radius: 999px;
  font-size: 13px;
  font-weight: 500;
  color: var(--text-secondary);
  transition: all var(--trans-fast);
}

.client-chip:hover {
  border-color: var(--blue-300);
  color: var(--blue-700);
  background: var(--blue-50);
}

/* --- FAQ --- */
.faq-section { background: var(--gray-50); }

.faq-list {
  max-width: 720px;
  margin: 0 auto;
  display: flex;
  flex-direction: column;
  gap: var(--sp-3);
}

.faq-item {
  background: var(--white);
  border: 1.5px solid var(--border-color);
  border-radius: var(--radius-lg);
  overflow: hidden;
  transition: border-color var(--trans-fast);
}

.faq-item.open { border-color: var(--blue-300); }

.faq-question {
  width: 100%;
  display: flex;
  justify-content: space-between;
  align-items: center;
  gap: var(--sp-4);
  padding: var(--sp-5) var(--sp-6);
  background: none;
  border: none;
  cursor: pointer;
  text-align: left;
  font-family: var(--font-sans);
  font-size: 15px;
  font-weight: 600;
  color: var(--text-primary);
  transition: color var(--trans-fast);
}

.faq-item.open .faq-question { color: var(--primary); }

.faq-icon {
  flex-shrink: 0;
  width: 28px; height: 28px;
  background: var(--gray-100);
  border-radius: 50%;
  display: flex;
  align-items: center;
  justify-content: center;
  transition: all var(--trans-base);
}
.faq-item.open .faq-icon {
  background: var(--primary);
  transform: rotate(45deg);
}
.faq-icon svg { width: 14px; height: 14px; stroke: var(--gray-600); }
.faq-item.open .faq-icon svg { stroke: white; }

.faq-answer {
  max-height: 0;
  overflow: hidden;
  transition: max-height var(--trans-slow), padding var(--trans-slow);
}
.faq-item.open .faq-answer { max-height: 300px; }

.faq-answer-inner {
  padding: 0 var(--sp-6) var(--sp-5);
  font-size: 14px;
  color: var(--text-secondary);
  line-height: 1.7;
}

/* --- CTA Section --- */
.cta-section {
  background: linear-gradient(135deg, var(--blue-700) 0%, var(--blue-500) 100%);
  color: var(--white);
  text-align: center;
}

.cta-section .section-title { color: var(--white); }
.cta-section .section-subtitle { color: rgba(255,255,255,.8); margin: 0 auto var(--sp-8); }
.cta-section .section-tag { background: rgba(255,255,255,.15); border-color: rgba(255,255,255,.2); color: white; }

.cta-actions { display: flex; gap: var(--sp-3); justify-content: center; flex-wrap: wrap; }

/* --- CONTACT --- */
.contact-section { background: var(--white); }

.contact-grid {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: var(--sp-16);
  align-items: start;
}

.contact-info h3 { font-size: 22px; margin-bottom: var(--sp-4); }
.contact-info p { font-size: 15px; color: var(--text-secondary); margin-bottom: var(--sp-8); }

.contact-details {
  display: flex;
  flex-direction: column;
  gap: var(--sp-5);
}

.contact-item {
  display: flex;
  align-items: flex-start;
  gap: var(--sp-4);
}

.contact-item-icon {
  flex-shrink: 0;
  width: 42px; height: 42px;
  background: var(--blue-50);
  border: 1px solid var(--blue-100);
  border-radius: var(--radius-md);
  display: flex;
  align-items: center;
  justify-content: center;
}
.contact-item-icon svg { width: 20px; height: 20px; stroke: var(--primary); fill: none; stroke-width: 1.8; }

.contact-item-body h3 { font-size: 13px; font-weight: 600; color: #4b5563; text-transform: uppercase; letter-spacing: .05em; margin-bottom: 2px; }
.contact-item-body a, .contact-item-body p { font-size: 15px; color: var(--text-primary); margin: 0; }

/* Contact Form */
.contact-form {
  background: var(--gray-50);
  border: 1.5px solid var(--border-color);
  border-radius: var(--radius-xl);
  padding: var(--sp-8);
}

.form-group { margin-bottom: var(--sp-5); }
.form-group label {
  display: block;
  font-size: 13px;
  font-weight: 600;
  color: var(--text-primary);
  margin-bottom: var(--sp-2);
}

.form-group input, .form-group select, .form-group textarea {
  width: 100%;
  padding: 10px 14px;
  background: var(--white);
  border: 1.5px solid var(--border-color);
  border-radius: var(--radius-md);
  font-family: var(--font-sans);
  font-size: 14px;
  color: var(--text-primary);
  outline: none;
  transition: border-color var(--trans-fast), box-shadow var(--trans-fast);
}

.form-group input:focus, .form-group select:focus, .form-group textarea:focus {
  border-color: var(--primary);
  box-shadow: 0 0 0 3px rgba(25,113,211,.12);
}

.form-group textarea { resize: vertical; min-height: 100px; }

.form-row { display: grid; grid-template-columns: 1fr 1fr; gap: var(--sp-4); }

/* --- FOOTER --- */
.footer {
  background: var(--gray-900);
  color: rgba(255,255,255,.75);
  padding: var(--sp-16) 0 var(--sp-8);
}

.footer-grid {
  display: grid;
  grid-template-columns: 2fr 1fr 1fr;
  gap: var(--sp-8);
  margin-bottom: var(--sp-12);
}

.footer-brand .logo-text { color: white; }
.footer-brand .logo-text span { color: var(--blue-300); }
.footer-brand p {
  font-size: 14px;
  color: rgba(255,255,255,.7);
  margin-top: var(--sp-4);
  max-width: 260px;
  line-height: 1.65;
}

.footer-col h3 {
  font-size: 13px;
  font-weight: 700;
  color: white;
  text-transform: uppercase;
  letter-spacing: .06em;
  margin-bottom: var(--sp-5);
}

.footer-col nav {
  display: flex;
  flex-direction: column;
  gap: var(--sp-3);
}

.footer-col a {
  font-size: 14px;
  color: rgba(255,255,255,.75);
  text-decoration: none;
  transition: color var(--trans-fast);
}
.footer-col a:hover { color: var(--blue-300); }

.footer-divider {
  height: 1px;
  background: rgba(255,255,255,.08);
  margin-bottom: var(--sp-6);
}

.footer-bottom {
  display: flex;
  justify-content: space-between;
  align-items: center;
  font-size: 13px;
  color: rgba(255,255,255,.7);
  flex-wrap: wrap;
  gap: var(--sp-4);
}

.footer-bottom-links { display: flex; gap: var(--sp-5); }
.footer-bottom-links a { color: rgba(255,255,255,.7); font-size: 13px; }
.footer-bottom-links a:hover { color: rgba(255,255,255,.75); }

/* --- Scroll Animations --- */
.animate-on-scroll {
  opacity: 0;
  transform: translateY(24px);
  transition: opacity .55s ease, transform .55s ease;
}
.animate-on-scroll.visible {
  opacity: 1;
  transform: translateY(0);
}

/* --- CART UI --- */
#cart-fab {
  position: fixed;
  bottom: 28px;
  right: 28px;
  background: var(--primary);
  color: white;
  width: 56px;
  height: 56px;
  border-radius: 50%;
  display: flex;
  align-items: center;
  justify-content: center;
  box-shadow: var(--shadow-blue);
  cursor: pointer;
  z-index: 900;
  transition: all var(--trans-base);
  border: none;
}
#cart-fab:hover { background: var(--primary-dark); transform: scale(1.08); }
#cart-fab svg { width: 22px; height: 22px; stroke: white; fill: none; stroke-width: 2; stroke-linecap: round; }

#cart-count {
  position: absolute;
  top: -5px; right: -5px;
  background: #ef4444;
  color: white;
  font-size: 11px;
  font-weight: 700;
  width: 22px; height: 22px;
  border-radius: 50%;
  display: flex;
  align-items: center;
  justify-content: center;
  border: 2px solid white;
}

.cart-overlay {
  position: fixed; inset: 0;
  background: rgba(0,0,0,.4);
  z-index: 1000;
  display: none;
  backdrop-filter: blur(2px);
}
.cart-overlay.active { display: block; }

#cart-sidebar {
  position: fixed;
  top: 0; right: -420px;
  width: 100%; max-width: 400px;
  height: 100vh;
  background: var(--white);
  box-shadow: var(--shadow-lg);
  z-index: 1100;
  display: flex;
  flex-direction: column;
  transition: right var(--trans-slow);
}
#cart-sidebar.open { right: 0; }

.cart-header {
  padding: var(--sp-5) var(--sp-6);
  border-bottom: 1px solid var(--border-color);
  display: flex;
  justify-content: space-between;
  align-items: center;
}
.cart-header h2 { font-size: 18px; }

.close-cart {
  width: 32px; height: 32px;
  border-radius: 50%;
  background: var(--gray-100);
  border: none;
  font-size: 18px;
  cursor: pointer;
  display: flex;
  align-items: center;
  justify-content: center;
  color: var(--gray-600);
  transition: background var(--trans-fast);
}
.close-cart:hover { background: var(--gray-200); }

/* Back button - visible only on mobile */
.cart-back-btn { display: none; }

.cart-items { flex: 1; overflow-y: auto; padding: var(--sp-5) var(--sp-6); }

.cart-empty {
  text-align: center;
  padding: var(--sp-16) 0;
  color: var(--text-muted);
}
.cart-empty svg { width: 48px; height: 48px; margin: 0 auto var(--sp-4); stroke: var(--gray-300); fill: none; stroke-width: 1.5; }

.cart-item {
  display: flex;
  align-items: center;
  gap: var(--sp-4);
  padding: var(--sp-4) 0;
  border-bottom: 1px solid var(--border-color);
}
.cart-item-icon {
  width: 40px; height: 40px;
  background: var(--blue-50);
  border-radius: var(--radius-md);
  display: flex;
  align-items: center;
  justify-content: center;
  flex-shrink: 0;
  font-size: 18px;
}
.cart-item-info { flex: 1; }
.cart-item-info h4 { font-size: 14px; font-weight: 600; margin-bottom: 2px; }
.cart-item-info p { font-size: 12px; color: var(--text-muted); }

.remove-item {
  width: 28px; height: 28px;
  background: var(--gray-100);
  border: none;
  border-radius: 50%;
  cursor: pointer;
  display: flex;
  align-items: center;
  justify-content: center;
  color: var(--gray-500);
  font-size: 16px;
  line-height: 1;
  transition: all var(--trans-fast);
  flex-shrink: 0;
}
.remove-item:hover { background: #fee2e2; color: #ef4444; }

.cart-footer {
  padding: var(--sp-5) var(--sp-6);
  border-top: 1px solid var(--border-color);
  background: var(--gray-50);
}

.checkout-btn {
  width: 100%;
  background: #25D366;
  color: white;
  border: none;
  padding: 14px;
  border-radius: var(--radius-md);
  font-family: var(--font-sans);
  font-size: 15px;
  font-weight: 700;
  cursor: pointer;
  display: flex;
  align-items: center;
  justify-content: center;
  gap: var(--sp-2);
  transition: all var(--trans-base);
  margin-top: var(--sp-4);
}
.checkout-btn:hover { background: #1fb856; box-shadow: 0 4px 12px rgba(37,211,102,.3); }

.add-to-cart-btn {
  display: inline-flex;
  align-items: center;
  gap: var(--sp-2);
  background: var(--primary);
  color: white;
  border: none;
  padding: 9px 18px;
  border-radius: var(--radius-md);
  font-family: var(--font-sans);
  font-size: 13px;
  font-weight: 600;
  cursor: pointer;
  transition: all var(--trans-base);
}
.add-to-cart-btn:hover { background: var(--primary-dark); box-shadow: var(--shadow-blue); }

/* --- HERO CAROUSEL --- */
.carousel {
  position: relative;
  width: 100%;
  max-width: 681px;
  aspect-ratio: 681 / 380;
  border-radius: var(--radius-xl);
  overflow: hidden;
  background: var(--gray-100);
  border: 1.5px solid var(--border-color);
  box-shadow: var(--shadow-lg);
}

.carousel-track {
  display: flex;
  width: 100%;
  height: 100%;
  transition: transform .5s cubic-bezier(.4, 0, .2, 1);
}

.carousel-slide {
  min-width: 100%;
  height: 100%;
  position: relative;
}

/* When real images are added, use this on <img> inside .carousel-slide */
.carousel-slide img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  display: block;
}

/* Placeholder frame (remove this block once real images are added) */
.carousel-placeholder {
  width: 100%;
  height: 100%;
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  gap: 8px;
  background: linear-gradient(135deg, var(--blue-50) 0%, var(--gray-100) 100%);
  border: 2px dashed var(--blue-100);
  border-radius: var(--radius-lg);
}
.carousel-placeholder span {
  font-size: 14px;
  font-weight: 600;
  color: var(--blue-300);
}
.carousel-placeholder .placeholder-size {
  font-size: 12px;
  font-weight: 400;
  color: var(--gray-400);
}

/* Carousel nav buttons */
.carousel-btn {
  position: absolute;
  top: 50%;
  transform: translateY(-50%);
  width: 36px;
  height: 36px;
  border-radius: 50%;
  background: rgba(255,255,255,.9);
  border: 1px solid var(--gray-200);
  color: var(--gray-700);
  cursor: pointer;
  display: flex;
  align-items: center;
  justify-content: center;
  z-index: 5;
  transition: all var(--trans-fast);
  box-shadow: var(--shadow-sm);
}
.carousel-btn:hover { background: white; box-shadow: var(--shadow-md); color: var(--primary); }
.carousel-prev { left: 10px; }
.carousel-next { right: 10px; }

/* Carousel dots */
.carousel-dots {
  position: absolute;
  bottom: 14px;
  left: 50%;
  transform: translateX(-50%);
  display: flex;
  gap: 8px;
  z-index: 5;
}
.dot {
    width: 48px;
    height: 48px;
    padding: 0;
    border: none;
    background: transparent;
    cursor: pointer;
    position: relative;
    display: flex;
    align-items: center;
    justify-content: center;
}
.dot::before {
    content: '';
    width: 8px;
    height: 8px;
    border-radius: 50%;
    background: rgba(255,255,255,.5);
    border: 1px solid rgba(0,0,0,.1);
    transition: all var(--trans-base);
}
.dot.active::before {
    background: var(--primary);
    border-color: var(--primary);
    transform: scale(1.5);
}

/* --- Responsive --- */
@media (max-width: 1024px) {
  .footer-grid { grid-template-columns: 1fr 1fr; gap: var(--sp-8); }
  .subscription-grid { grid-template-columns: 1fr 1fr; }
}

@media (max-width: 768px) {
  /* Base typography scaling */
  html { font-size: 15px; }

  /* Header */
  .header .container { padding: 0 var(--sp-4); }
  .nav-links {
    display: none;
    position: absolute;
    top: var(--header-height);
    left: 0; right: 0;
    height: auto;
    max-height: calc(100vh - var(--header-height));
    flex-direction: column;
    background: #ffffff;
    padding: var(--sp-6) var(--sp-5);
    gap: var(--sp-1);
    border-top: 1px solid var(--border-color);
    box-shadow: 0 10px 15px -3px rgba(0, 0, 0, 0.1), 0 4px 6px -2px rgba(0, 0, 0, 0.05);
    overflow-y: auto;
    z-index: 9999;
  }
  .nav-links.open { display: flex; }
  .nav-links a { padding: 14px 16px; font-size: 16px; border-radius: var(--radius-md); }
  .nav-cta { text-align: center; margin-top: var(--sp-3); }

  /* Mobile toggle animation */
  .mobile-toggle { display: flex; }
  .mobile-toggle.active span:nth-child(1) { transform: translateY(8px) rotate(45deg); }
  .mobile-toggle.active span:nth-child(2) { opacity: 0; }
  .mobile-toggle.active span:nth-child(3) { transform: translateY(-8px) rotate(-45deg); }

  /* Hero */
  .hero { padding-top: calc(var(--header-height) + var(--sp-10)); padding-bottom: var(--sp-10); }
  .hero .container { grid-template-columns: 1fr; text-align: center; gap: var(--sp-8); }
  .hero-desc { margin: 0 auto var(--sp-6); font-size: 15px; }
  .hero-actions { justify-content: center; }
  .hero-badges { justify-content: center; flex-wrap: wrap; }
  .hero-visual { order: -1; display: flex; justify-content: center; }
  .carousel { max-width: 100%; }
  .hero-eyebrow { justify-content: center; }

  /* Product grids */
  .subscription-grid { grid-template-columns: 1fr; }
  .perpetual-grid { grid-template-columns: 1fr; max-width: 100%; }
  .product-card { padding: var(--sp-6); }
  .card-features li { font-size: 13px; }

  /* Why grid */
  .why-grid { grid-template-columns: 1fr 1fr; }

  /* FAQ - ensure text never clips */
  .faq-question { font-size: 14px; padding: var(--sp-4) var(--sp-5); gap: var(--sp-3); }
  .faq-answer-inner { padding: 0 var(--sp-5) var(--sp-4); font-size: 13px; }
  .faq-item.open .faq-answer { max-height: 500px; }

  /* Contact */
  .contact-grid { grid-template-columns: 1fr; }
  .contact-form { padding: var(--sp-6); }
  .form-row { grid-template-columns: 1fr; }

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

  /* Sections */
  .section { padding: var(--sp-12) 0; }
  .section-title { font-size: clamp(22px, 5vw, 32px); }
  .section-subtitle { font-size: 15px; }

  /* Comparison note */
  .comparison-note { flex-direction: column; text-align: center; padding: var(--sp-5); }
}

@media (max-width: 480px) {
  html { font-size: 14px; }

  .container { padding: 0 var(--sp-4); }
  .hero-title { font-size: clamp(26px, 7vw, 36px); }
  .hero-desc { font-size: 14px; }

  .why-grid { grid-template-columns: 1fr; }
  .footer-grid { grid-template-columns: 1fr; }

  #cart-fab { bottom: 18px; right: 18px; width: 50px; height: 50px; }
  #cart-fab svg { width: 18px; height: 18px; }
  #cart-count { width: 18px; height: 18px; font-size: 10px; top: -3px; right: -3px; }

  .hero-badges { flex-direction: column; align-items: center; gap: var(--sp-3); }
  .hero-badge-sep { display: none; }

  .carousel-btn { width: 30px; height: 30px; }
  .carousel-prev { left: 6px; }
  .carousel-next { right: 6px; }

  .product-type-tabs { max-width: 100%; }
  .type-tab { font-size: 13px; padding: 9px 14px; }

  .btn { font-size: 13px; padding: 10px 18px; }
  .card-cta { flex-direction: column; gap: var(--sp-2); }
  .card-cta .btn, .card-cta .add-to-cart-btn { width: 100%; justify-content: center; text-align: center; }

  .clients-grid { gap: var(--sp-2); }
  .client-chip { font-size: 12px; padding: 6px 12px; }

  .cta-actions { flex-direction: column; align-items: center; }
  .cta-actions .btn { width: 100%; justify-content: center; }

  #cart-sidebar { max-width: 100%; }

  /* Mobile cart close enhancements */
  .close-cart { width: 40px; height: 40px; font-size: 22px; }
  .cart-back-btn {
    display: flex;
    align-items: center;
    justify-content: center;
    gap: var(--sp-2);
    width: 100%;
    padding: 14px;
    background: var(--gray-100);
    border: none;
    border-top: 1px solid var(--border-color);
    color: var(--text-primary);
    font-size: 15px;
    font-weight: 600;
    cursor: pointer;
  }
  .cart-back-btn:hover { background: var(--gray-200); }
}





/* Comprehensive Anchor Jump Fix */
html { scroll-padding-top: 120px !important; }
[id], :target { scroll-margin-top: 120px !important; }


.btn-white:hover { color: var(--primary) !important; }




/* Accessibility: Form contrast */
::placeholder { color: #6b7280; opacity: 1; }




@media (min-width: 768px) { .w-auto-md { width: auto !important; display: inline-flex !important; } }




