/* ===================================
   CADBrix — Professional Light Theme
   ================================= */

/* === CSS RESET & VARIABLES === */
*, *::before, *::after { box-sizing: border-box; margin: 0; padding: 0; }

:root {
  /* Primary palette */
  --primary: #2563eb;
  --primary-dark: #1d4ed8;
  --primary-light: #3b82f6;
  --primary-50: #eff6ff;
  --primary-100: #dbeafe;
  --primary-200: #bfdbfe;

  /* Neutrals */
  --bg-primary: #ffffff;
  --bg-secondary: #f8fafc;
  --bg-tertiary: #f1f5f9;
  --bg-card: #ffffff;

  /* Text */
  --text-primary: #0f172a;
  --text-secondary: #334155;
  --text-muted: #64748b;
  --text-light: #94a3b8;

  /* Borders */
  --border-light: #e2e8f0;
  --border-medium: #cbd5e1;

  /* Status colors */
  --green: #10b981;
  --green-bg: #ecfdf5;
  --amber: #f59e0b;
  --amber-bg: #fffbeb;
  --red: #ef4444;
  --red-bg: #fef2f2;

  /* Shadows */
  --shadow-sm: 0 1px 2px rgba(0, 0, 0, 0.04);
  --shadow-md: 0 4px 6px -1px rgba(0, 0, 0, 0.06), 0 2px 4px -1px rgba(0, 0, 0, 0.04);
  --shadow-lg: 0 10px 15px -3px rgba(0, 0, 0, 0.06), 0 4px 6px -2px rgba(0, 0, 0, 0.03);
  --shadow-xl: 0 20px 25px -5px rgba(0, 0, 0, 0.06), 0 10px 10px -5px rgba(0, 0, 0, 0.02);
  --shadow-2xl: 0 25px 50px -12px rgba(0, 0, 0, 0.1);

  /* Typography */
  --font-display: 'Space Grotesk', sans-serif;
  --font-body: 'Inter', sans-serif;

  /* Sizing */
  --nav-height: 72px;
  --container-max: 1200px;
  --section-padding: 100px 0;

  /* Transitions */
  --transition-fast: 0.15s ease;
  --transition-base: 0.25s ease;
  --transition-slow: 0.4s cubic-bezier(0.4, 0, 0.2, 1);
}

html {
  scroll-behavior: smooth;
  scroll-padding-top: var(--nav-height);
}

body {
  background: var(--bg-primary);
  color: var(--text-secondary);
  font-family: var(--font-body);
  font-size: 16px;
  line-height: 1.7;
  overflow-x: hidden;
  -webkit-font-smoothing: antialiased;
}

.container {
  max-width: var(--container-max);
  margin: 0 auto;
  padding: 0 24px;
}

img { max-width: 100%; }
a { text-decoration: none; color: inherit; }

/* === NAVIGATION === */
nav {
  position: fixed;
  top: 0; left: 0; right: 0;
  z-index: 1000;
  height: var(--nav-height);
  display: flex;
  align-items: center;
  justify-content: space-between;
  padding: 0 5%;
  background: rgba(255, 255, 255, 0.92);
  backdrop-filter: blur(16px);
  -webkit-backdrop-filter: blur(16px);
  border-bottom: 1px solid var(--border-light);
  transition: box-shadow var(--transition-base);
}

nav.scrolled {
  box-shadow: var(--shadow-md);
}

.logo {
  display: flex;
  align-items: center;
  gap: 8px;
}

.logo-text {
  font-family: var(--font-display);
  font-size: 1.5rem;
  font-weight: 700;
  color: var(--text-primary);
  letter-spacing: -0.02em;
}

.logo-accent {
  color: var(--primary);
}

.nav-links {
  list-style: none;
  display: flex;
  align-items: center;
  gap: 2rem;
}

.nav-links a {
  font-size: 0.875rem;
  font-weight: 500;
  color: var(--text-muted);
  transition: color var(--transition-fast);
  letter-spacing: 0.01em;
}

.nav-links a:hover {
  color: var(--text-primary);
}

.nav-pages-dropdown {
  position: relative;
}

.dropdown-toggle {
  display: flex;
  align-items: center;
  gap: 4px;
  cursor: pointer;
}

.dropdown-menu {
  position: absolute;
  top: calc(100% + 12px);
  right: 0;
  background: var(--bg-primary);
  border: 1px solid var(--border-light);
  border-radius: 12px;
  box-shadow: var(--shadow-xl);
  padding: 8px;
  min-width: 200px;
  opacity: 0;
  visibility: hidden;
  transform: translateY(-8px);
  transition: all var(--transition-base);
  list-style: none;
}

.nav-pages-dropdown:hover .dropdown-menu {
  opacity: 1;
  visibility: visible;
  transform: translateY(0);
}

.dropdown-menu li a {
  display: block;
  padding: 10px 16px;
  font-size: 0.85rem;
  border-radius: 8px;
  transition: background var(--transition-fast);
}

.dropdown-menu li a:hover {
  background: var(--bg-secondary);
  color: var(--primary);
}

.nav-cta {
  background: var(--primary);
  color: #fff !important;
  padding: 10px 24px;
  border-radius: 10px;
  font-size: 0.875rem;
  font-weight: 600;
  transition: all var(--transition-fast);
  box-shadow: 0 2px 8px rgba(37, 99, 235, 0.3);
}

.nav-cta:hover {
  background: var(--primary-dark);
  box-shadow: 0 4px 16px rgba(37, 99, 235, 0.4);
  transform: translateY(-1px);
}

.hamburger {
  display: none;
  background: none;
  border: none;
  cursor: pointer;
  padding: 8px;
  z-index: 1001;
}

.hamburger span {
  display: block;
  width: 22px;
  height: 2px;
  background: var(--text-primary);
  margin: 5px 0;
  transition: all var(--transition-base);
  border-radius: 2px;
}

.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);
}

/* Mobile Menu */
.mobile-menu {
  display: none;
  position: fixed;
  top: var(--nav-height);
  left: 0; right: 0;
  background: var(--bg-primary);
  border-bottom: 1px solid var(--border-light);
  padding: 24px;
  flex-direction: column;
  gap: 4px;
  z-index: 999;
  box-shadow: var(--shadow-xl);
  max-height: calc(100vh - var(--nav-height));
  overflow-y: auto;
}

.mobile-menu.active {
  display: flex;
}

.mobile-menu a {
  padding: 14px 16px;
  font-size: 0.95rem;
  font-weight: 500;
  color: var(--text-secondary);
  border-radius: 10px;
  transition: all var(--transition-fast);
}

.mobile-menu a:hover {
  background: var(--bg-secondary);
  color: var(--primary);
}

.mobile-menu-divider {
  height: 1px;
  background: var(--border-light);
  margin: 8px 0;
}

.mobile-menu-cta {
  background: var(--primary) !important;
  color: #fff !important;
  text-align: center;
  border-radius: 10px !important;
  margin-top: 8px;
}

/* === BUTTONS === */
.btn {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  padding: 14px 28px;
  border-radius: 12px;
  font-size: 0.95rem;
  font-weight: 600;
  font-family: var(--font-body);
  cursor: pointer;
  border: none;
  transition: all var(--transition-base);
  white-space: nowrap;
}

.btn-primary {
  background: var(--primary);
  color: #fff;
  box-shadow: 0 2px 12px rgba(37, 99, 235, 0.3);
}

.btn-primary:hover {
  background: var(--primary-dark);
  box-shadow: 0 6px 20px rgba(37, 99, 235, 0.4);
  transform: translateY(-2px);
}

.btn-outline {
  background: transparent;
  color: var(--text-primary);
  border: 1.5px solid var(--border-medium);
}

.btn-outline:hover {
  border-color: var(--primary);
  color: var(--primary);
  background: var(--primary-50);
}

.btn-full {
  width: 100%;
  justify-content: center;
}

/* === HERO SECTION === */
.hero {
  min-height: 100vh;
  display: grid;
  grid-template-columns: 1fr 1fr;
  align-items: center;
  gap: 60px;
  padding: calc(var(--nav-height) + 40px) 5% 60px;
  position: relative;
  overflow: hidden;
}

.hero-bg-shapes {
  position: absolute;
  inset: 0;
  pointer-events: none;
  overflow: hidden;
}

.hero-shape {
  position: absolute;
  border-radius: 50%;
  filter: blur(80px);
  opacity: 0.4;
}

.shape-1 {
  width: 500px;
  height: 500px;
  background: var(--primary-200);
  top: -100px;
  right: -100px;
  animation: float 20s ease-in-out infinite;
}

.shape-2 {
  width: 400px;
  height: 400px;
  background: #c7d2fe;
  bottom: -50px;
  left: -50px;
  animation: float 25s ease-in-out infinite reverse;
}

.shape-3 {
  width: 300px;
  height: 300px;
  background: #ddd6fe;
  top: 50%;
  left: 40%;
  animation: float 18s ease-in-out infinite 3s;
}

@keyframes float {
  0%, 100% { transform: translate(0, 0) rotate(0deg); }
  33% { transform: translate(30px, -30px) rotate(5deg); }
  66% { transform: translate(-20px, 20px) rotate(-5deg); }
}

.hero-content {
  position: relative;
  z-index: 1;
}

.hero-badge {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  padding: 8px 18px;
  background: var(--primary-50);
  border: 1px solid var(--primary-200);
  border-radius: 100px;
  font-size: 0.8rem;
  font-weight: 600;
  color: var(--primary);
  margin-bottom: 24px;
}

.badge-dot {
  width: 6px;
  height: 6px;
  background: var(--green);
  border-radius: 50%;
  animation: pulse 2s infinite;
}

@keyframes pulse {
  0%, 100% { opacity: 1; }
  50% { opacity: 0.4; }
}

.hero-title {
  font-family: var(--font-display);
  font-size: clamp(2.5rem, 5vw, 3.75rem);
  font-weight: 700;
  color: var(--text-primary);
  line-height: 1.15;
  letter-spacing: -0.03em;
  margin-bottom: 20px;
}

.gradient-text {
  background: linear-gradient(135deg, var(--primary) 0%, #7c3aed 50%, var(--primary-dark) 100%);
  -webkit-background-clip: text;
  -webkit-text-fill-color: transparent;
  background-clip: text;
}

.hero-subtitle {
  font-size: 1.1rem;
  color: var(--text-muted);
  line-height: 1.7;
  max-width: 520px;
  margin-bottom: 32px;
}

.hero-actions {
  display: flex;
  gap: 16px;
  margin-bottom: 48px;
  flex-wrap: wrap;
}

.hero-stats {
  display: flex;
  align-items: center;
  gap: 32px;
}

.hero-stat {
  text-align: center;
}

.stat-number {
  font-family: var(--font-display);
  font-size: 2rem;
  font-weight: 700;
  color: var(--text-primary);
  line-height: 1;
}

.stat-label {
  font-size: 0.78rem;
  color: var(--text-muted);
  margin-top: 4px;
  font-weight: 500;
}

.stat-divider {
  width: 1px;
  height: 40px;
  background: var(--border-light);
}

/* Hero Dashboard Preview */
.hero-visual {
  position: relative;
  z-index: 1;
}

.dashboard-preview {
  background: var(--bg-primary);
  border: 1px solid var(--border-light);
  border-radius: 16px;
  box-shadow: var(--shadow-2xl);
  overflow: hidden;
  animation: slideUp 0.8s ease-out;
}

@keyframes slideUp {
  from { opacity: 0; transform: translateY(30px); }
  to { opacity: 1; transform: translateY(0); }
}

.preview-header {
  display: flex;
  align-items: center;
  gap: 12px;
  padding: 14px 20px;
  background: var(--bg-secondary);
  border-bottom: 1px solid var(--border-light);
}

.preview-dots {
  display: flex;
  gap: 6px;
}

.preview-dots span {
  width: 10px;
  height: 10px;
  border-radius: 50%;
}

.preview-title {
  font-size: 0.78rem;
  color: var(--text-muted);
  font-weight: 500;
}

.preview-body {
  display: flex;
  min-height: 300px;
}

.preview-sidebar {
  width: 160px;
  padding: 16px 12px;
  border-right: 1px solid var(--border-light);
  background: var(--bg-secondary);
}

.sidebar-item {
  display: flex;
  align-items: center;
  gap: 8px;
  padding: 8px 12px;
  border-radius: 8px;
  font-size: 0.75rem;
  color: var(--text-muted);
  margin-bottom: 4px;
  transition: all var(--transition-fast);
  cursor: pointer;
}

.sidebar-item:hover {
  background: var(--bg-tertiary);
  color: var(--text-secondary);
}

.sidebar-item.active {
  background: var(--primary-50);
  color: var(--primary);
  font-weight: 600;
}

.preview-main {
  flex: 1;
  padding: 20px;
}

.preview-metrics {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 12px;
  margin-bottom: 20px;
}

.metric-box {
  padding: 14px;
  background: var(--bg-secondary);
  border-radius: 10px;
  border: 1px solid var(--border-light);
}

.metric-label {
  display: block;
  font-size: 0.7rem;
  color: var(--text-muted);
  margin-bottom: 4px;
}

.metric-value {
  display: block;
  font-family: var(--font-display);
  font-size: 1.4rem;
  font-weight: 700;
  color: var(--text-primary);
}

.metric-trend {
  font-size: 0.7rem;
  font-weight: 600;
}

.metric-trend.up { color: var(--green); }
.metric-trend.down { color: var(--red); }

.preview-chart {
  background: var(--bg-secondary);
  border-radius: 10px;
  border: 1px solid var(--border-light);
  padding: 20px;
}

.chart-bars {
  display: flex;
  align-items: flex-end;
  gap: 12px;
  height: 100px;
}

.chart-bar {
  flex: 1;
  background: var(--primary-200);
  border-radius: 6px 6px 0 0;
  position: relative;
  transition: background var(--transition-fast);
  min-height: 20px;
}

.chart-bar.active {
  background: var(--primary);
}

.chart-bar:hover {
  background: var(--primary-light);
}

.chart-bar span {
  position: absolute;
  bottom: -22px;
  left: 50%;
  transform: translateX(-50%);
  font-size: 0.65rem;
  color: var(--text-muted);
  font-weight: 500;
}

/* === TRUSTED SECTION === */
.trusted-section {
  padding: 48px 0;
  background: var(--bg-secondary);
  border-top: 1px solid var(--border-light);
  border-bottom: 1px solid var(--border-light);
}

.trusted-label {
  text-align: center;
  font-size: 0.8rem;
  color: var(--text-light);
  text-transform: uppercase;
  letter-spacing: 0.08em;
  font-weight: 600;
  margin-bottom: 24px;
}

.trusted-logos {
  display: flex;
  justify-content: center;
  align-items: center;
  gap: 48px;
  flex-wrap: wrap;
}

.trusted-item {
  display: flex;
  align-items: center;
  gap: 10px;
  font-size: 0.85rem;
  color: var(--text-muted);
  font-weight: 500;
}

/* === SECTION HEADERS === */
.section-header {
  text-align: center;
  max-width: 640px;
  margin: 0 auto 64px;
}

.section-tag {
  display: inline-block;
  padding: 6px 16px;
  background: var(--primary-50);
  color: var(--primary);
  border-radius: 100px;
  font-size: 0.78rem;
  font-weight: 600;
  letter-spacing: 0.03em;
  margin-bottom: 16px;
  border: 1px solid var(--primary-200);
}

.section-title {
  font-family: var(--font-display);
  font-size: clamp(1.75rem, 3.5vw, 2.5rem);
  font-weight: 700;
  color: var(--text-primary);
  line-height: 1.2;
  letter-spacing: -0.02em;
  margin-bottom: 16px;
}

.section-desc {
  font-size: 1.05rem;
  color: var(--text-muted);
  line-height: 1.7;
}

/* === PRODUCTS SECTION === */
.products-section {
  padding: var(--section-padding);
  background: var(--bg-primary);
}

.product-card {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 60px;
  align-items: center;
  margin-bottom: 100px;
  padding: 48px;
  background: var(--bg-secondary);
  border: 1px solid var(--border-light);
  border-radius: 24px;
  transition: box-shadow var(--transition-slow);
}

.product-card:hover {
  box-shadow: var(--shadow-xl);
}

.product-card:last-child {
  margin-bottom: 0;
}

.product-card.reverse {
  direction: rtl;
}

.product-card.reverse > * {
  direction: ltr;
}

.product-badge {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  padding: 6px 14px;
  background: var(--primary-50);
  border: 1px solid var(--primary-200);
  border-radius: 100px;
  font-size: 0.78rem;
  font-weight: 600;
  color: var(--primary);
  margin-bottom: 16px;
}

.product-title {
  font-family: var(--font-display);
  font-size: 2rem;
  font-weight: 700;
  color: var(--text-primary);
  letter-spacing: -0.02em;
  margin-bottom: 12px;
}

.product-desc {
  font-size: 1rem;
  color: var(--text-muted);
  line-height: 1.7;
  margin-bottom: 24px;
}

.product-features {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 12px;
  margin-bottom: 24px;
}

.feature-item {
  display: flex;
  align-items: center;
  gap: 10px;
  font-size: 0.85rem;
  color: var(--text-secondary);
  font-weight: 500;
}

.product-platforms {
  display: flex;
  gap: 10px;
  flex-wrap: wrap;
}

.platform-chip {
  display: inline-flex;
  align-items: center;
  gap: 6px;
  padding: 6px 14px;
  background: var(--bg-primary);
  border: 1px solid var(--border-light);
  border-radius: 100px;
  font-size: 0.75rem;
  color: var(--text-muted);
  font-weight: 500;
}

/* Product Mockups */
.product-visual {
  display: flex;
  justify-content: center;
}

.product-mockup {
  width: 100%;
  max-width: 480px;
  border-radius: 16px;
  overflow: hidden;
  box-shadow: var(--shadow-xl);
  border: 1px solid var(--border-light);
  background: var(--bg-primary);
}

.mockup-header {
  display: flex;
  align-items: center;
  gap: 12px;
  padding: 12px 16px;
  background: var(--bg-tertiary);
  border-bottom: 1px solid var(--border-light);
  font-size: 0.75rem;
  color: var(--text-muted);
  font-weight: 500;
}

.mockup-dots {
  display: flex;
  gap: 5px;
}

.mockup-dots span {
  width: 8px;
  height: 8px;
  border-radius: 50%;
  background: var(--border-medium);
}

.mockup-dots span:first-child { background: #FF5F57; }
.mockup-dots span:nth-child(2) { background: #FEBC2E; }
.mockup-dots span:nth-child(3) { background: #28C840; }

.mockup-content {
  padding: 20px;
}

/* Production Mockup */
.mockup-stat-row {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 10px;
  margin-bottom: 16px;
}

.mockup-stat {
  padding: 12px;
  border-radius: 10px;
  text-align: center;
}

.mockup-stat.blue {
  background: var(--primary-50);
  border: 1px solid var(--primary-200);
}

.mockup-stat.green {
  background: var(--green-bg);
  border: 1px solid #a7f3d0;
}

.mockup-stat.amber {
  background: var(--amber-bg);
  border: 1px solid #fde68a;
}

.ms-num {
  display: block;
  font-family: var(--font-display);
  font-size: 1.4rem;
  font-weight: 700;
  color: var(--text-primary);
}

.ms-label {
  font-size: 0.65rem;
  color: var(--text-muted);
  font-weight: 500;
}

.mockup-table {
  border: 1px solid var(--border-light);
  border-radius: 10px;
  overflow: hidden;
}

.mt-header, .mt-row {
  display: grid;
  grid-template-columns: 1fr 1.2fr 0.8fr 0.9fr;
  gap: 8px;
  padding: 10px 14px;
  font-size: 0.7rem;
  align-items: center;
}

.mt-header {
  background: var(--bg-tertiary);
  font-weight: 600;
  color: var(--text-muted);
  text-transform: uppercase;
  letter-spacing: 0.04em;
  font-size: 0.6rem;
}

.mt-row {
  color: var(--text-secondary);
  border-top: 1px solid var(--border-light);
}

.status-badge {
  display: inline-block;
  padding: 3px 8px;
  border-radius: 100px;
  font-size: 0.6rem;
  font-weight: 600;
  text-align: center;
}

.status-badge.active {
  background: var(--primary-50);
  color: var(--primary);
}

.status-badge.done {
  background: var(--green-bg);
  color: var(--green);
}

.status-badge.pending {
  background: var(--amber-bg);
  color: var(--amber);
}

/* Dealer Mockup */
.dealer-grid {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 10px;
  margin-bottom: 16px;
}

.dealer-card-mini {
  padding: 14px;
  background: var(--bg-secondary);
  border: 1px solid var(--border-light);
  border-radius: 10px;
  text-align: center;
}

.dcm-icon {
  margin-bottom: 8px;
}

.dcm-val {
  display: block;
  font-family: var(--font-display);
  font-size: 1.15rem;
  font-weight: 700;
  color: var(--text-primary);
}

.dcm-label {
  font-size: 0.6rem;
  color: var(--text-muted);
  font-weight: 500;
}

.dealer-list {
  border: 1px solid var(--border-light);
  border-radius: 10px;
  overflow: hidden;
}

.dl-row {
  display: flex;
  align-items: center;
  justify-content: space-between;
  padding: 12px 14px;
  font-size: 0.75rem;
  border-top: 1px solid var(--border-light);
}

.dl-row:first-child {
  border-top: none;
}

.dl-name {
  font-weight: 500;
  color: var(--text-secondary);
  flex: 1;
}

.dl-amt {
  font-family: var(--font-display);
  font-weight: 600;
  color: var(--text-primary);
  margin-right: 12px;
}

/* VisiTrack Phone Mockup */
.mockup-visitrack {
  display: flex;
  justify-content: center;
  padding: 40px 0;
  background: transparent;
  box-shadow: none;
  border: none;
}

.mockup-phone {
  width: 280px;
  background: var(--bg-primary);
  border-radius: 32px;
  border: 3px solid var(--text-primary);
  box-shadow: var(--shadow-2xl);
  overflow: hidden;
  position: relative;
}

.phone-notch {
  width: 120px;
  height: 24px;
  background: var(--text-primary);
  border-radius: 0 0 16px 16px;
  margin: 0 auto;
}

.phone-screen-content {
  padding: 16px;
}

.vt-header {
  display: flex;
  justify-content: space-between;
  align-items: center;
  margin-bottom: 12px;
  padding-bottom: 12px;
  border-bottom: 1px solid var(--border-light);
}

.vt-title {
  font-family: var(--font-display);
  font-size: 0.95rem;
  font-weight: 700;
  color: var(--text-primary);
}

.vt-count {
  font-size: 0.65rem;
  color: var(--primary);
  font-weight: 600;
  background: var(--primary-50);
  padding: 3px 10px;
  border-radius: 100px;
}

.vt-status-bar {
  display: flex;
  justify-content: space-between;
  align-items: center;
  font-size: 0.65rem;
  color: var(--text-muted);
  margin-bottom: 12px;
}

.vt-status-item {
  display: flex;
  align-items: center;
  gap: 4px;
}

.vt-dot {
  width: 6px;
  height: 6px;
  border-radius: 50%;
}

.vt-dot.green {
  background: var(--green);
  animation: pulse 2s infinite;
}

.vt-card {
  padding: 12px;
  background: var(--bg-secondary);
  border: 1px solid var(--border-light);
  border-radius: 10px;
  margin-bottom: 8px;
}

.vt-card-header {
  display: flex;
  justify-content: space-between;
  align-items: center;
  margin-bottom: 4px;
}

.vt-plate {
  font-family: var(--font-display);
  font-size: 0.8rem;
  font-weight: 700;
  color: var(--text-primary);
  letter-spacing: 0.02em;
}

.vt-card-detail {
  font-size: 0.65rem;
  color: var(--text-muted);
}

.vt-card-advisor {
  font-size: 0.6rem;
  color: var(--text-light);
  margin-top: 4px;
}

/* Payroll & Attendance Tablet Mockup */
.mockup-payroll,
.mockup-tablet-wrapper {
  display: flex;
  justify-content: center;
  width: 100%;
}

.mockup-tablet-frame {
  width: 100%;
  max-width: 390px;
  background: #1e293b;
  border-radius: 28px;
  padding: 12px;
  box-shadow: 0 25px 50px -12px rgba(15, 23, 42, 0.35), 0 0 0 2px #334155;
  position: relative;
  transition: transform var(--transition-base), box-shadow var(--transition-base);
}

.mockup-tablet-frame:hover {
  transform: translateY(-4px);
  box-shadow: 0 30px 60px -12px rgba(15, 23, 42, 0.4), 0 0 0 2px var(--primary-light);
}

.mockup-tablet {
  width: 100%;
  max-width: 440px;
  background: var(--bg-primary);
  border-radius: 20px;
  border: 1px solid var(--border-light);
  box-shadow: var(--shadow-xl);
  overflow: hidden;
}

.tablet-kiosk-bar {
  display: flex;
  justify-content: space-between;
  align-items: center;
  padding: 12px 18px;
  background: #0f172a;
  color: #f8fafc;
  font-size: 0.78rem;
  font-weight: 600;
  letter-spacing: 0.01em;
}

.tablet-cam-indicator {
  display: flex;
  align-items: center;
  gap: 6px;
  font-size: 0.7rem;
  color: #34d399;
}

.tablet-cam-dot {
  width: 8px;
  height: 8px;
  border-radius: 50%;
  background: #10b981;
  animation: pulse 2s infinite;
}

.tablet-body {
  padding: 18px;
  background: var(--bg-secondary);
}

.tablet-face-scanner {
  background: var(--bg-primary);
  border: 1.5px dashed var(--primary-light);
  border-radius: 14px;
  padding: 14px 16px;
  margin-bottom: 12px;
  display: flex;
  align-items: center;
  gap: 14px;
}

.scanner-avatar-box {
  width: 52px;
  height: 52px;
  border-radius: 12px;
  background: var(--primary-50);
  border: 1.5px solid var(--primary-200);
  display: flex;
  align-items: center;
  justify-content: center;
  color: var(--primary);
  flex-shrink: 0;
  position: relative;
}

.scanner-check-badge {
  position: absolute;
  bottom: -4px;
  right: -4px;
  width: 18px;
  height: 18px;
  border-radius: 50%;
  background: var(--green);
  color: #ffffff;
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 10px;
  font-weight: bold;
  border: 2px solid #ffffff;
}

.scanner-info {
  flex: 1;
}

.scanner-name {
  font-family: var(--font-display);
  font-weight: 700;
  font-size: 0.92rem;
  color: var(--text-primary);
  line-height: 1.3;
}

.scanner-sub {
  font-size: 0.7rem;
  color: var(--text-muted);
  margin-bottom: 6px;
}

.scanner-punch-badge {
  display: inline-flex;
  align-items: center;
  gap: 4px;
  padding: 3px 8px;
  background: var(--green-bg);
  color: #047857;
  border: 1px solid #a7f3d0;
  border-radius: 6px;
  font-size: 0.68rem;
  font-weight: 600;
}

.tablet-stats-grid {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 8px;
  margin-bottom: 12px;
}

.tablet-stat-card {
  background: var(--bg-primary);
  border: 1px solid var(--border-light);
  border-radius: 10px;
  padding: 10px 8px;
  text-align: center;
}

.tablet-stat-val {
  display: block;
  font-family: var(--font-display);
  font-size: 1.15rem;
  font-weight: 700;
}

.tablet-stat-lbl {
  font-size: 0.62rem;
  color: var(--text-muted);
  font-weight: 500;
}

.tablet-kiosk-notice {
  display: flex;
  align-items: center;
  gap: 8px;
  padding: 10px 12px;
  background: #eff6ff;
  border: 1px solid var(--primary-200);
  border-radius: 10px;
  font-size: 0.72rem;
  color: #1e40af;
  line-height: 1.4;
}

.tablet-kiosk-notice svg {
  flex-shrink: 0;
  color: var(--primary);
}

/* === WHY SECTION === */
.why-section {
  padding: var(--section-padding);
  background: var(--bg-secondary);
}

.why-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(320px, 1fr));
  gap: 24px;
}


.why-card {
  padding: 32px;
  background: var(--bg-primary);
  border: 1px solid var(--border-light);
  border-radius: 16px;
  transition: all var(--transition-base);
}

.why-card:hover {
  box-shadow: var(--shadow-lg);
  border-color: var(--primary-200);
  transform: translateY(-4px);
}

.why-icon {
  width: 52px;
  height: 52px;
  display: flex;
  align-items: center;
  justify-content: center;
  background: var(--primary-50);
  border-radius: 14px;
  margin-bottom: 20px;
}

.why-card h4 {
  font-family: var(--font-display);
  font-size: 1.1rem;
  font-weight: 600;
  color: var(--text-primary);
  margin-bottom: 8px;
}

.why-card p {
  font-size: 0.88rem;
  color: var(--text-muted);
  line-height: 1.6;
}

/* === TECH SECTION === */
.tech-section {
  padding: 80px 0;
  background: var(--bg-primary);
  border-top: 1px solid var(--border-light);
}

.tech-grid {
  display: flex;
  justify-content: center;
  gap: 40px;
  flex-wrap: wrap;
}

.tech-item {
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 12px;
}

.tech-icon-box {
  width: 72px;
  height: 72px;
  display: flex;
  align-items: center;
  justify-content: center;
  background: var(--bg-secondary);
  border: 1px solid var(--border-light);
  border-radius: 16px;
  color: var(--text-muted);
  transition: all var(--transition-base);
}

.tech-item:hover .tech-icon-box {
  border-color: var(--primary-200);
  background: var(--primary-50);
  color: var(--primary);
  transform: translateY(-4px);
  box-shadow: var(--shadow-md);
}

.tech-item span {
  font-size: 0.8rem;
  font-weight: 600;
  color: var(--text-muted);
}

/* === CONTACT SECTION === */
.contact-section {
  padding: var(--section-padding);
  background: var(--bg-secondary);
}

.contact-wrapper {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 60px;
  align-items: start;
}

.contact-desc {
  font-size: 1rem;
  color: var(--text-muted);
  line-height: 1.7;
  margin-bottom: 32px;
}

.contact-details {
  display: flex;
  flex-direction: column;
  gap: 16px;
}

.contact-detail-item {
  display: flex;
  align-items: center;
  gap: 16px;
  padding: 16px;
  background: var(--bg-primary);
  border: 1px solid var(--border-light);
  border-radius: 14px;
  transition: all var(--transition-base);
}

a.contact-detail-item:hover {
  border-color: var(--primary-200);
  box-shadow: var(--shadow-md);
}

.contact-icon {
  width: 44px;
  height: 44px;
  display: flex;
  align-items: center;
  justify-content: center;
  background: var(--primary-50);
  border-radius: 12px;
  color: var(--primary);
  flex-shrink: 0;
}

.cd-label {
  display: block;
  font-size: 0.72rem;
  color: var(--text-light);
  font-weight: 500;
  text-transform: uppercase;
  letter-spacing: 0.05em;
}

.cd-value {
  display: block;
  font-size: 0.95rem;
  color: var(--text-primary);
  font-weight: 600;
}

/* Contact Form */
.contact-form-wrapper {
  background: var(--bg-primary);
  border: 1px solid var(--border-light);
  border-radius: 20px;
  padding: 40px;
  box-shadow: var(--shadow-lg);
}

.contact-form h3 {
  font-family: var(--font-display);
  font-size: 1.3rem;
  font-weight: 700;
  color: var(--text-primary);
  margin-bottom: 28px;
}

.form-group {
  margin-bottom: 20px;
}

.form-group label {
  display: block;
  font-size: 0.82rem;
  font-weight: 600;
  color: var(--text-secondary);
  margin-bottom: 8px;
}

.form-group input,
.form-group select,
.form-group textarea {
  width: 100%;
  padding: 12px 16px;
  border: 1.5px solid var(--border-light);
  border-radius: 10px;
  font-family: var(--font-body);
  font-size: 0.9rem;
  color: var(--text-primary);
  background: var(--bg-primary);
  transition: border-color var(--transition-fast), box-shadow var(--transition-fast);
  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(37, 99, 235, 0.1);
}

.form-group input::placeholder,
.form-group textarea::placeholder {
  color: var(--text-light);
}

.form-group select {
  cursor: pointer;
  appearance: none;
  background-image: url("data:image/svg+xml,%3Csvg width='12' height='12' viewBox='0 0 12 12' fill='none' xmlns='http://www.w3.org/2000/svg'%3E%3Cpath d='M3 4.5L6 7.5L9 4.5' stroke='%2364748b' stroke-width='1.5' stroke-linecap='round'/%3E%3C/svg%3E");
  background-repeat: no-repeat;
  background-position: right 16px center;
  padding-right: 40px;
}

.form-row {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 16px;
}

.form-group textarea {
  resize: vertical;
  min-height: 100px;
}

.form-status {
  margin-top: 18px;
  padding: 14px 18px;
  border-radius: 12px;
  font-size: 0.85rem;
  line-height: 1.5;
  display: flex;
  flex-direction: column;
  gap: 6px;
}

.form-status.success {
  background: var(--green-bg);
  border: 1px solid #a7f3d0;
  color: #065f46;
}

.form-status.warning {
  background: var(--amber-bg);
  border: 1px solid #fde68a;
  color: #92400e;
}

.form-status.info {
  background: var(--primary-50);
  border: 1px solid var(--primary-200);
  color: #1e40af;
}

.form-status-btn {
  display: inline-flex;
  align-items: center;
  gap: 6px;
  margin-top: 8px;
  padding: 8px 16px;
  background: var(--primary);
  color: #ffffff !important;
  border-radius: 8px;
  font-weight: 600;
  font-size: 0.8rem;
  width: fit-content;
  text-decoration: none !important;
  transition: background var(--transition-fast);
}

.form-status-btn:hover {
  background: var(--primary-dark);
}

.form-status a {
  color: inherit;
  font-weight: 600;
  text-decoration: underline;
}

/* === FOOTER === */
footer {
  background: var(--text-primary);
  color: #94a3b8;
  padding: 64px 0 0;
}

.footer-grid {
  display: grid;
  grid-template-columns: 2fr 1fr 1fr 1fr;
  gap: 48px;
  padding-bottom: 48px;
  border-bottom: 1px solid rgba(255,255,255,0.08);
}

.footer-brand .logo-text {
  color: #fff;
}

.footer-tagline {
  font-size: 0.88rem;
  color: #64748b;
  margin-top: 16px;
  line-height: 1.6;
  max-width: 320px;
}

.footer-col h4 {
  font-family: var(--font-display);
  font-size: 0.9rem;
  font-weight: 600;
  color: #e2e8f0;
  margin-bottom: 20px;
  letter-spacing: 0.01em;
}

.footer-col a {
  display: block;
  font-size: 0.85rem;
  color: #64748b;
  margin-bottom: 12px;
  transition: color var(--transition-fast);
}

.footer-col a:hover {
  color: #e2e8f0;
}

.footer-bottom {
  display: flex;
  justify-content: space-between;
  align-items: center;
  padding: 24px 0;
  font-size: 0.8rem;
}

.footer-contact-links {
  display: flex;
  align-items: center;
  gap: 12px;
}

.footer-contact-links a {
  color: #64748b;
  transition: color var(--transition-fast);
}

.footer-contact-links a:hover {
  color: var(--primary-light);
}

.footer-contact-links span {
  color: #475569;
}

/* === LEGAL PAGES === */
.legal-page {
  padding: calc(var(--nav-height) + 60px) 5% 80px;
  max-width: 800px;
  margin: 0 auto;
}

.legal-page h1 {
  font-family: var(--font-display);
  font-size: 2.2rem;
  font-weight: 700;
  color: var(--text-primary);
  margin-bottom: 8px;
}

.legal-page .legal-updated {
  font-size: 0.85rem;
  color: var(--text-muted);
  margin-bottom: 40px;
  padding-bottom: 24px;
  border-bottom: 1px solid var(--border-light);
}

.legal-page h2 {
  font-family: var(--font-display);
  font-size: 1.3rem;
  font-weight: 600;
  color: var(--text-primary);
  margin-top: 40px;
  margin-bottom: 12px;
}

.legal-page p, .legal-page li {
  font-size: 0.95rem;
  color: var(--text-secondary);
  line-height: 1.8;
  margin-bottom: 12px;
}

.legal-page ul, .legal-page ol {
  padding-left: 24px;
  margin-bottom: 16px;
}

.legal-page li {
  margin-bottom: 8px;
}

.legal-page a {
  color: var(--primary);
  text-decoration: underline;
}

.legal-back-link {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  color: var(--primary);
  font-weight: 600;
  font-size: 0.9rem;
  margin-bottom: 32px;
  text-decoration: none;
}

.legal-back-link:hover {
  text-decoration: underline;
}

/* === RESPONSIVE === */
@media (max-width: 1024px) {
  .hero {
    grid-template-columns: 1fr;
    gap: 40px;
    min-height: auto;
    padding-top: calc(var(--nav-height) + 60px);
    padding-bottom: 60px;
  }

  .hero-visual {
    order: -1;
    max-width: 600px;
    margin: 0 auto;
  }

  .hero-content {
    text-align: center;
    max-width: 600px;
    margin: 0 auto;
  }

  .hero-subtitle {
    margin-left: auto;
    margin-right: auto;
  }

  .hero-actions {
    justify-content: center;
  }

  .hero-stats {
    justify-content: center;
  }

  .product-card,
  .product-card.reverse {
    grid-template-columns: 1fr;
    direction: ltr;
    padding: 32px;
  }

  .product-visual {
    order: -1;
  }

  .contact-wrapper {
    grid-template-columns: 1fr;
  }

  .why-grid {
    grid-template-columns: repeat(2, 1fr);
  }

  .footer-grid {
    grid-template-columns: 1fr 1fr;
    gap: 32px;
  }
}

@media (max-width: 768px) {
  :root {
    --section-padding: 64px 0;
  }

  .nav-links, .nav-cta {
    display: none;
  }

  .hamburger {
    display: block;
  }

  .hero-title {
    font-size: 2.2rem;
  }

  .preview-sidebar {
    display: none;
  }

  .product-card {
    padding: 24px;
  }

  .product-features {
    grid-template-columns: 1fr;
  }

  .why-grid {
    grid-template-columns: 1fr;
  }

  .hero-stats {
    gap: 20px;
  }

  .stat-number {
    font-size: 1.6rem;
  }

  .footer-grid {
    grid-template-columns: 1fr;
    gap: 32px;
  }

  .footer-bottom {
    flex-direction: column;
    gap: 12px;
    text-align: center;
  }

  .form-row {
    grid-template-columns: 1fr;
  }

  .contact-form-wrapper {
    padding: 28px;
  }

  .trusted-logos {
    gap: 24px;
  }

  .tech-grid {
    gap: 24px;
  }

  .mockup-stat-row {
    grid-template-columns: 1fr;
  }

  .dealer-grid {
    grid-template-columns: 1fr;
  }

  .mt-header, .mt-row {
    grid-template-columns: 1fr 1fr;
  }

  .mt-header span:nth-child(3),
  .mt-header span:nth-child(4),
  .mt-row span:nth-child(3) {
    display: none;
  }
}

@media (max-width: 480px) {
  .hero-title {
    font-size: 1.8rem;
  }

  .hero-actions {
    flex-direction: column;
    align-items: stretch;
  }

  .btn {
    justify-content: center;
  }

  .hero-stats {
    flex-direction: column;
    gap: 16px;
  }

  .stat-divider {
    width: 40px;
    height: 1px;
  }

  .section-title {
    font-size: 1.5rem;
  }
}

/* === ANIMATIONS === */
.fade-in {
  opacity: 0;
  transform: translateY(20px);
  transition: opacity 0.6s ease, transform 0.6s ease;
}

.fade-in.visible {
  opacity: 1;
  transform: translateY(0);
}

/* Smooth scrollbar */
::-webkit-scrollbar {
  width: 8px;
}

::-webkit-scrollbar-track {
  background: var(--bg-secondary);
}

::-webkit-scrollbar-thumb {
  background: var(--border-medium);
  border-radius: 4px;
}

::-webkit-scrollbar-thumb:hover {
  background: var(--text-light);
}
