/* ============================================
   HOTELGENIUS — Design System
   Ispirazione: Stripe.com
   Palette: Blu profondo + Teal accent
   ============================================ */

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

:root {
  --hg-primary: #1e40af;
  --hg-primary-light: #3b82f6;
  --hg-primary-dark: #0f172a;
  --hg-accent: #14b8a6;
  --hg-accent-light: #5eead4;
  --hg-accent-dark: #0d9488;
  --hg-text: #1e293b;
  --hg-text-muted: #64748b;
  --hg-text-light: #94a3b8;
  --hg-bg: #ffffff;
  --hg-bg-light: #f8fafc;
  --hg-bg-alt: #f1f5f9;
  --hg-border: #e2e8f0;
  --hg-gradient-hero: linear-gradient(135deg, #0f172a 0%, #1e3a5f 40%, #1e40af 100%);
  --hg-gradient-dark: linear-gradient(135deg, #0f172a, #1e293b);
  --hg-gradient-text: linear-gradient(to right, #1e40af, #14b8a6);
  --hg-gradient-accent: linear-gradient(135deg, #14b8a6, #06b6d4);
  --hg-shadow-sm: 0 1px 3px rgba(0,0,0,.08);
  --hg-shadow: 0 4px 16px rgba(0,0,0,.08);
  --hg-shadow-lg: 0 8px 32px rgba(0,0,0,.12);
  --hg-shadow-xl: 0 16px 48px rgba(0,0,0,.16);
  --hg-radius: 12px;
  --hg-radius-sm: 8px;
  --hg-radius-lg: 16px;
  --hg-max-width: 1280px;
  --hg-transition: 0.3s cubic-bezier(.4,0,.2,1);
}

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

body {
  font-family: 'Inter', -apple-system, BlinkMacSystemFont, 'Segoe UI', sans-serif;
  color: var(--hg-text);
  background: var(--hg-bg);
  line-height: 1.6;
  -webkit-font-smoothing: antialiased;
  -moz-osx-font-smoothing: grayscale;
}

a { color: var(--hg-primary); text-decoration: none; transition: color var(--hg-transition); }
a:hover { color: var(--hg-accent); }

img { max-width: 100%; height: auto; display: block; }

.container {
  width: 100%;
  max-width: var(--hg-max-width);
  margin: 0 auto;
  padding: 0 24px;
}

/* ============================================
   TYPOGRAPHY
   ============================================ */

h1, h2, h3, h4, h5, h6 { font-weight: 700; line-height: 1.2; color: var(--hg-text); }

h1 { font-size: clamp(2.25rem, 5vw, 3.5rem); letter-spacing: -0.02em; }
h2 { font-size: clamp(1.75rem, 4vw, 2.5rem); letter-spacing: -0.01em; }
h3 { font-size: clamp(1.25rem, 3vw, 1.5rem); }
h4 { font-size: 1.125rem; }

.text-gradient {
  background: var(--hg-gradient-text);
  -webkit-background-clip: text;
  -webkit-text-fill-color: transparent;
  background-clip: text;
}

.section-label {
  display: inline-block;
  font-size: 0.75rem;
  font-weight: 700;
  text-transform: uppercase;
  letter-spacing: 0.1em;
  color: var(--hg-accent);
  margin-bottom: 12px;
}

.section-title { margin-bottom: 16px; }
.section-subtitle {
  font-size: 1.125rem;
  color: var(--hg-text-muted);
  max-width: 640px;
  line-height: 1.7;
}

/* ============================================
   BUTTONS
   ============================================ */

.btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 8px;
  padding: 12px 28px;
  font-size: 0.9375rem;
  font-weight: 600;
  border-radius: var(--hg-radius-sm);
  border: none;
  cursor: pointer;
  transition: all var(--hg-transition);
  text-decoration: none;
  line-height: 1.4;
}

.btn-primary {
  background: var(--hg-gradient-accent);
  color: white;
  box-shadow: 0 2px 8px rgba(20,184,166,0.3);
}
.btn-primary:hover {
  transform: translateY(-2px);
  box-shadow: 0 4px 16px rgba(20,184,166,0.4);
  color: white;
}

.btn-secondary {
  background: transparent;
  color: white;
  border: 2px solid rgba(255,255,255,0.3);
}
.btn-secondary:hover {
  background: rgba(255,255,255,0.1);
  border-color: rgba(255,255,255,0.5);
  color: white;
}

.btn-outline {
  background: transparent;
  color: var(--hg-primary);
  border: 2px solid var(--hg-primary);
}
.btn-outline:hover {
  background: var(--hg-primary);
  color: white;
}

.btn-dark {
  background: var(--hg-primary-dark);
  color: white;
}
.btn-dark:hover {
  background: #1e293b;
  transform: translateY(-2px);
  color: white;
}

.btn-lg { padding: 16px 36px; font-size: 1.0625rem; border-radius: var(--hg-radius); }
.btn-sm { padding: 8px 20px; font-size: 0.8125rem; }

/* ============================================
   NAVBAR
   ============================================ */

.navbar {
  position: fixed;
  top: 0;
  left: 0;
  right: 0;
  z-index: 1000;
  padding: 16px 0;
  transition: all var(--hg-transition);
}

.navbar.scrolled {
  background: rgba(255,255,255,0.95);
  backdrop-filter: blur(12px);
  box-shadow: var(--hg-shadow-sm);
  padding: 10px 0;
}

.navbar .container {
  display: flex;
  align-items: center;
  justify-content: space-between;
}

.navbar-logo { display: flex; align-items: center; gap: 10px; }
.navbar-logo img { height: 32px; }
.navbar-logo span {
  font-size: 1.25rem;
  font-weight: 800;
  color: white;
  letter-spacing: -0.02em;
}
.navbar.scrolled .navbar-logo span { color: var(--hg-primary-dark); }

.navbar-nav {
  display: flex;
  align-items: center;
  gap: 32px;
  list-style: none;
}

.navbar-nav a {
  font-size: 0.9375rem;
  font-weight: 500;
  color: rgba(255,255,255,0.8);
  transition: color var(--hg-transition);
}
.navbar-nav a:hover { color: white; }
.navbar.scrolled .navbar-nav a { color: var(--hg-text-muted); }
.navbar.scrolled .navbar-nav a:hover { color: var(--hg-text); }

.navbar-actions { display: flex; align-items: center; gap: 12px; }

.navbar-actions .btn-login {
  font-size: 0.875rem;
  font-weight: 600;
  color: rgba(255,255,255,0.9);
  padding: 8px 16px;
}
.navbar.scrolled .navbar-actions .btn-login { color: var(--hg-text); }

.navbar-actions .btn-cta {
  font-size: 0.875rem;
  padding: 8px 20px;
}

.lang-toggle {
  font-size: 0.8125rem;
  font-weight: 600;
  color: rgba(255,255,255,0.7);
  cursor: pointer;
  border: 1px solid rgba(255,255,255,0.2);
  border-radius: 6px;
  padding: 4px 10px;
  background: transparent;
  transition: all var(--hg-transition);
}
.lang-toggle:hover { border-color: rgba(255,255,255,0.5); color: white; }
.navbar.scrolled .lang-toggle { color: var(--hg-text-muted); border-color: var(--hg-border); }

/* Mobile menu */
.mobile-toggle {
  display: none;
  background: transparent;
  border: none;
  cursor: pointer;
  padding: 8px;
}
.mobile-toggle span {
  display: block;
  width: 24px;
  height: 2px;
  background: white;
  margin: 5px 0;
  transition: all var(--hg-transition);
}
.navbar.scrolled .mobile-toggle span { background: var(--hg-text); }

.mobile-menu {
  display: none;
  position: fixed;
  top: 0;
  left: 0;
  right: 0;
  bottom: 0;
  background: var(--hg-primary-dark);
  z-index: 999;
  padding: 80px 24px 24px;
  flex-direction: column;
  gap: 24px;
}
.mobile-menu.active { display: flex; }
.mobile-menu a {
  font-size: 1.25rem;
  color: white;
  font-weight: 500;
  padding: 12px 0;
  border-bottom: 1px solid rgba(255,255,255,0.1);
}

/* ============================================
   HERO
   ============================================ */

.hero {
  background: var(--hg-gradient-hero);
  padding: 160px 0 100px;
  position: relative;
  overflow: hidden;
}

.hero::before {
  content: '';
  position: absolute;
  top: -50%;
  right: -20%;
  width: 600px;
  height: 600px;
  background: radial-gradient(circle, rgba(20,184,166,0.15) 0%, transparent 70%);
  border-radius: 50%;
}

.hero-content {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 64px;
  align-items: center;
}

.hero-text h1 { color: white; margin-bottom: 24px; }
.hero-text p {
  font-size: 1.125rem;
  color: rgba(255,255,255,0.7);
  margin-bottom: 40px;
  line-height: 1.7;
  max-width: 520px;
}

.hero-buttons { display: flex; gap: 16px; flex-wrap: wrap; }

.hero-image {
  position: relative;
}
.hero-image img {
  border-radius: var(--hg-radius-lg);
  box-shadow: var(--hg-shadow-xl);
  transform: perspective(1000px) rotateY(-5deg) rotateX(2deg);
  transition: transform 0.6s ease;
}
.hero-image img:hover {
  transform: perspective(1000px) rotateY(0deg) rotateX(0deg);
}

/* ============================================
   SECTIONS
   ============================================ */

.section {
  padding: 96px 0;
}

.section-dark {
  background: var(--hg-gradient-dark);
  color: white;
}
.section-dark h2, .section-dark h3 { color: white; }
.section-dark p { color: rgba(255,255,255,0.7); }
.section-dark .section-subtitle { color: rgba(255,255,255,0.6); }

.section-light {
  background: var(--hg-bg-light);
}

.section-header {
  text-align: center;
  margin-bottom: 64px;
}
.section-header .section-subtitle {
  margin: 0 auto;
}

/* ============================================
   SOCIAL PROOF / LOGOS
   ============================================ */

.logo-bar {
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 48px;
  flex-wrap: wrap;
  padding: 48px 0;
  opacity: 0.6;
}
.logo-bar img { height: 28px; filter: brightness(0) invert(1); }

/* ============================================
   METRICS
   ============================================ */

.metrics-grid {
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  gap: 32px;
}

.metric-card {
  text-align: center;
  padding: 32px 16px;
}

.metric-value {
  font-size: 2.5rem;
  font-weight: 800;
  background: var(--hg-gradient-text);
  -webkit-background-clip: text;
  -webkit-text-fill-color: transparent;
  background-clip: text;
  margin-bottom: 8px;
}

.metric-label {
  font-size: 0.9375rem;
  color: var(--hg-text-muted);
  font-weight: 500;
}

/* ============================================
   FEATURE CARDS
   ============================================ */

.features-grid {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 24px;
}

.feature-card {
  background: white;
  border: 1px solid var(--hg-border);
  border-radius: var(--hg-radius);
  padding: 32px;
  transition: all var(--hg-transition);
}
.feature-card:hover {
  transform: translateY(-4px);
  box-shadow: var(--hg-shadow-lg);
  border-color: transparent;
}

.feature-icon {
  width: 48px;
  height: 48px;
  border-radius: 12px;
  display: flex;
  align-items: center;
  justify-content: center;
  margin-bottom: 20px;
  font-size: 24px;
}
.feature-icon.blue { background: rgba(30,64,175,0.1); color: var(--hg-primary); }
.feature-icon.teal { background: rgba(20,184,166,0.1); color: var(--hg-accent); }
.feature-icon.green { background: rgba(34,197,94,0.1); color: #22c55e; }
.feature-icon.orange { background: rgba(249,115,22,0.1); color: #f97316; }
.feature-icon.red { background: rgba(239,68,68,0.1); color: #ef4444; }
.feature-icon.indigo { background: rgba(99,102,241,0.1); color: #6366f1; }

.feature-card h3 { margin-bottom: 12px; font-size: 1.125rem; }
.feature-card p { color: var(--hg-text-muted); font-size: 0.9375rem; line-height: 1.6; }

.feature-tag {
  display: inline-block;
  font-size: 0.6875rem;
  font-weight: 700;
  text-transform: uppercase;
  letter-spacing: 0.05em;
  padding: 3px 10px;
  border-radius: 100px;
  margin-top: 16px;
}
.feature-tag.new { background: rgba(20,184,166,0.1); color: var(--hg-accent-dark); }

/* Dark variant */
.section-dark .feature-card {
  background: rgba(255,255,255,0.05);
  border-color: rgba(255,255,255,0.1);
}
.section-dark .feature-card:hover {
  background: rgba(255,255,255,0.08);
  border-color: rgba(255,255,255,0.15);
}
.section-dark .feature-card h3 { color: white; }
.section-dark .feature-card p { color: rgba(255,255,255,0.6); }

/* ============================================
   PRICING CARDS
   ============================================ */

.pricing-grid {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 24px;
  align-items: start;
  padding-top: 20px; /* space for badge overflow */
}
.pricing-grid.pricing-grid-4 {
  grid-template-columns: repeat(4, 1fr);
  gap: 16px;
  max-width: 100%;
  margin: 0 auto;
}
.pricing-grid-4 .pricing-card {
  padding: 28px 20px;
}
.pricing-grid-4 .pricing-amount .value {
  font-size: 2rem;
}
.pricing-grid-4 .pricing-card h3 {
  font-size: 1.25rem;
}
.pricing-grid-4 .pricing-card .description {
  font-size: 0.8125rem;
  margin-bottom: 16px;
}
.pricing-grid-4 .pricing-features li {
  font-size: 0.8125rem;
  padding: 5px 0;
}

.pricing-card {
  background: white;
  border: 2px solid var(--hg-border);
  border-radius: var(--hg-radius-lg);
  padding: 40px 32px;
  position: relative;
  transition: all var(--hg-transition);
}
.pricing-card:hover {
  transform: translateY(-4px);
  box-shadow: var(--hg-shadow-lg);
}

.pricing-card.highlighted {
  border-color: var(--hg-accent);
  box-shadow: 0 0 0 1px var(--hg-accent), var(--hg-shadow);
}

.pricing-badge {
  position: absolute;
  top: -14px;
  left: 50%;
  transform: translateX(-50%);
  background: var(--hg-gradient-accent);
  color: white;
  font-size: 0.75rem;
  font-weight: 700;
  padding: 4px 16px;
  border-radius: 100px;
  white-space: nowrap;
}

.pricing-card h3 { font-size: 1.5rem; margin-bottom: 8px; }
.pricing-card .description { color: var(--hg-text-muted); font-size: 0.875rem; margin-bottom: 24px; }

.pricing-amount {
  display: flex;
  align-items: baseline;
  gap: 4px;
  margin-bottom: 4px;
}
.pricing-amount .currency { font-size: 1.25rem; font-weight: 600; color: var(--hg-text); }
.pricing-amount .value {
  font-size: 3rem;
  font-weight: 800;
  line-height: 1;
  color: var(--hg-text);
}
.pricing-amount .period { font-size: 0.875rem; color: var(--hg-text-muted); font-weight: 400; }

.pricing-original {
  font-size: 0.875rem;
  color: var(--hg-text-light);
  text-decoration: line-through;
  margin-bottom: 4px;
}

.pricing-savings {
  display: inline-block;
  font-size: 0.75rem;
  font-weight: 700;
  color: #16a34a;
  background: rgba(22,163,74,0.1);
  padding: 2px 10px;
  border-radius: 100px;
  margin-bottom: 24px;
}

.pricing-features {
  list-style: none;
  margin-bottom: 32px;
}
.pricing-features li {
  display: flex;
  align-items: center;
  gap: 10px;
  padding: 8px 0;
  font-size: 0.9375rem;
  color: var(--hg-text);
}
.pricing-features li::before {
  content: '✓';
  color: var(--hg-accent);
  font-weight: 700;
  font-size: 1rem;
}

.pricing-cta { width: 100%; }

/* Tier badge */
.tier-badge {
  display: inline-block;
  font-size: 0.75rem;
  font-weight: 700;
  padding: 3px 12px;
  border-radius: 100px;
  color: white;
  background: var(--hg-primary);
}
.tier-badge.tier-0 { background: #06b6d4; }
.tier-badge.tier-1 { background: #14b8a6; }
.tier-badge.tier-2 { background: #1e40af; }
.tier-badge.tier-3 { background: #7c3aed; }
.tier-badge.tier-4 { background: #0f172a; }

/* Channel tier highlighted */
.channel-tier-card.highlighted {
  border-color: var(--hg-accent);
  background: linear-gradient(135deg, rgba(20,184,166,.05), rgba(6,182,212,.05));
  box-shadow: 0 0 0 1px var(--hg-accent);
}

/* Module card disabled */
.module-card.disabled {
  opacity: 0.5;
  pointer-events: none;
}

/* ============================================
   COMPARISON TABLE
   ============================================ */

.comparison-table {
  width: 100%;
  border-collapse: collapse;
  margin: 48px 0;
}
.comparison-table th, .comparison-table td {
  padding: 14px 20px;
  text-align: center;
  font-size: 0.875rem;
  border-bottom: 1px solid var(--hg-border);
}
.comparison-table th {
  background: var(--hg-bg-light);
  font-weight: 700;
  color: var(--hg-text);
}
.comparison-table td:first-child {
  text-align: left;
  font-weight: 500;
  color: var(--hg-text);
}
.comparison-table .check { color: var(--hg-accent); font-weight: 700; font-size: 1.125rem; }
.comparison-table .no { color: var(--hg-text-light); }

/* ============================================
   CHANNEL CALCULATOR
   ============================================ */

.channel-calc {
  background: white;
  border: 1px solid var(--hg-border);
  border-radius: var(--hg-radius-lg);
  padding: 40px;
  max-width: 640px;
  margin: 0 auto;
}

.range-slider {
  width: 100%;
  -webkit-appearance: none;
  appearance: none;
  height: 8px;
  border-radius: 4px;
  background: linear-gradient(to right, var(--hg-accent) 0%, var(--hg-accent) var(--slider-pct, 15%), var(--hg-border) var(--slider-pct, 15%), var(--hg-border) 100%);
  outline: none;
  margin: 16px 0;
  transition: background 0.1s;
}
.range-slider::-webkit-slider-thumb {
  -webkit-appearance: none;
  appearance: none;
  width: 28px;
  height: 28px;
  border-radius: 50%;
  background: white;
  border: 3px solid var(--hg-accent);
  cursor: pointer;
  box-shadow: 0 2px 10px rgba(20,184,166,0.35);
  transition: transform 0.15s ease, box-shadow 0.15s ease;
}
.range-slider::-webkit-slider-thumb:hover {
  transform: scale(1.15);
  box-shadow: 0 3px 14px rgba(20,184,166,0.5);
}
.range-slider::-webkit-slider-thumb:active {
  transform: scale(1.05);
}
.range-slider::-moz-range-thumb {
  width: 28px;
  height: 28px;
  border-radius: 50%;
  background: white;
  border: 3px solid var(--hg-accent);
  cursor: pointer;
}
.range-slider::-moz-range-progress {
  background: var(--hg-accent);
  border-radius: 4px;
  height: 8px;
}

.range-labels {
  display: flex;
  justify-content: space-between;
  font-size: 0.75rem;
  color: var(--hg-text-muted);
}

.calc-result {
  text-align: center;
  padding: 24px;
  background: var(--hg-bg-light);
  border-radius: var(--hg-radius-sm);
  margin-top: 24px;
}
.calc-result .price {
  font-size: 2rem;
  font-weight: 800;
  color: var(--hg-text);
}
.calc-result .label {
  font-size: 0.875rem;
  color: var(--hg-text-muted);
}

/* ============================================
   ROOM SLIDER
   ============================================ */

.room-selector {
  background: white;
  border: 1px solid var(--hg-border);
  border-radius: var(--hg-radius-lg);
  padding: 32px 40px;
  text-align: center;
  max-width: 640px;
  margin: 0 auto 48px;
  box-shadow: var(--hg-shadow-sm);
}

.room-selector label {
  font-size: 1.125rem;
  font-weight: 600;
  display: block;
  margin-bottom: 16px;
}

.room-value {
  font-size: 2rem;
  font-weight: 800;
  color: var(--hg-primary);
  margin-bottom: 8px;
}

/* ============================================
   TOGGLE (mensile/annuale)
   ============================================ */

.pricing-toggle {
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 12px;
  margin-bottom: 48px;
}

.toggle-label {
  font-size: 0.9375rem;
  font-weight: 500;
  color: var(--hg-text-muted);
}
.toggle-label.active { color: var(--hg-text); font-weight: 700; }

.toggle-switch {
  position: relative;
  width: 48px;
  height: 26px;
  background: var(--hg-border);
  border-radius: 13px;
  cursor: pointer;
  transition: background var(--hg-transition);
}
.toggle-switch.active { background: var(--hg-accent); }
.toggle-switch::after {
  content: '';
  position: absolute;
  top: 3px;
  left: 3px;
  width: 20px;
  height: 20px;
  background: white;
  border-radius: 50%;
  transition: transform var(--hg-transition);
  box-shadow: 0 1px 3px rgba(0,0,0,.2);
}
.toggle-switch.active::after { transform: translateX(22px); }

/* ============================================
   QUOTE FORM
   ============================================ */

.quote-form {
  background: white;
  border: 1px solid var(--hg-border);
  border-radius: var(--hg-radius-lg);
  padding: 40px;
}

.form-grid {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 20px;
}

.form-group { margin-bottom: 0; }
.form-group.full { grid-column: 1 / -1; }

.form-group label {
  display: block;
  font-size: 0.8125rem;
  font-weight: 600;
  color: var(--hg-text);
  margin-bottom: 6px;
}
.form-group label .required { color: #ef4444; }

.form-group input, .form-group textarea, .form-group select {
  width: 100%;
  padding: 10px 14px;
  font-size: 0.9375rem;
  border: 1px solid var(--hg-border);
  border-radius: var(--hg-radius-sm);
  outline: none;
  transition: border-color var(--hg-transition), box-shadow var(--hg-transition);
  font-family: inherit;
}
.form-group input:focus, .form-group textarea:focus {
  border-color: var(--hg-accent);
  box-shadow: 0 0 0 3px rgba(20,184,166,0.1);
}
.form-group textarea { resize: vertical; min-height: 100px; }

.form-error {
  font-size: 0.75rem;
  color: #ef4444;
  margin-top: 4px;
  display: none;
}
.form-group.error .form-error { display: block; }
.form-group.error input, .form-group.error textarea {
  border-color: #ef4444;
}

.form-success {
  background: rgba(20,184,166,0.1);
  border: 1px solid var(--hg-accent);
  border-radius: var(--hg-radius-sm);
  padding: 16px 24px;
  color: var(--hg-accent-dark);
  font-weight: 500;
  display: none;
}

/* ============================================
   FAQ ACCORDION
   ============================================ */

.faq-list { max-width: 800px; margin: 0 auto; }

.faq-item {
  border-bottom: 1px solid var(--hg-border);
}

.faq-question {
  display: flex;
  align-items: center;
  justify-content: space-between;
  width: 100%;
  padding: 20px 0;
  background: none;
  border: none;
  cursor: pointer;
  font-size: 1rem;
  font-weight: 600;
  color: var(--hg-text);
  text-align: left;
  font-family: inherit;
}
.faq-question:hover { color: var(--hg-primary); }

.faq-icon {
  font-size: 1.25rem;
  transition: transform var(--hg-transition);
  color: var(--hg-text-muted);
}
.faq-item.active .faq-icon { transform: rotate(45deg); }

.faq-answer {
  max-height: 0;
  overflow: hidden;
  transition: max-height 0.4s ease, padding 0.4s ease;
}
.faq-item.active .faq-answer {
  max-height: 500px;
  padding-bottom: 20px;
}
.faq-answer p {
  color: var(--hg-text-muted);
  font-size: 0.9375rem;
  line-height: 1.7;
}

/* ============================================
   TESTIMONIALS
   ============================================ */

.testimonials-grid {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 24px;
}

.testimonial-card {
  background: white;
  border: 1px solid var(--hg-border);
  border-radius: var(--hg-radius);
  padding: 32px;
}

.testimonial-stars {
  color: #f59e0b;
  font-size: 1rem;
  margin-bottom: 16px;
}

.testimonial-text {
  font-size: 0.9375rem;
  color: var(--hg-text);
  line-height: 1.7;
  margin-bottom: 20px;
  font-style: italic;
}

.testimonial-author {
  display: flex;
  align-items: center;
  gap: 12px;
}

.testimonial-avatar {
  width: 40px;
  height: 40px;
  border-radius: 50%;
  background: var(--hg-gradient-text);
  display: flex;
  align-items: center;
  justify-content: center;
  color: white;
  font-weight: 700;
  font-size: 0.875rem;
}

.testimonial-info .name { font-weight: 600; font-size: 0.875rem; }
.testimonial-info .role { font-size: 0.75rem; color: var(--hg-text-muted); }

/* ============================================
   CTA SECTION
   ============================================ */

.cta-section {
  background: var(--hg-gradient-hero);
  text-align: center;
  padding: 96px 0;
}
.cta-section h2 { color: white; margin-bottom: 16px; }
.cta-section p { color: rgba(255,255,255,0.7); font-size: 1.125rem; margin-bottom: 40px; }
.cta-buttons { display: flex; gap: 16px; justify-content: center; flex-wrap: wrap; }

/* ============================================
   FOOTER
   ============================================ */

.footer {
  background: var(--hg-primary-dark);
  color: rgba(255,255,255,0.7);
  padding: 64px 0 32px;
}

.footer-grid {
  display: grid;
  grid-template-columns: 2fr 1fr 1fr 1fr;
  gap: 48px;
  margin-bottom: 48px;
}

.footer-brand p {
  font-size: 0.875rem;
  line-height: 1.7;
  margin-top: 16px;
  max-width: 320px;
}

.footer h4 {
  color: white;
  font-size: 0.875rem;
  font-weight: 700;
  text-transform: uppercase;
  letter-spacing: 0.05em;
  margin-bottom: 20px;
}

.footer-links {
  list-style: none;
}
.footer-links li { margin-bottom: 10px; }
.footer-links a {
  font-size: 0.875rem;
  color: rgba(255,255,255,0.6);
}
.footer-links a:hover { color: white; }

.footer-bottom {
  border-top: 1px solid rgba(255,255,255,0.1);
  padding-top: 24px;
  display: flex;
  align-items: center;
  justify-content: space-between;
  font-size: 0.8125rem;
}

.footer-social {
  display: flex;
  gap: 16px;
}
.footer-social a {
  color: rgba(255,255,255,0.5);
  font-size: 1.25rem;
}
.footer-social a:hover { color: white; }

/* ============================================
   MODULE SINGLES (add-ons)
   ============================================ */

.modules-grid {
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  gap: 20px;
}

.module-card {
  background: white;
  border: 1px solid var(--hg-border);
  border-radius: var(--hg-radius);
  padding: 24px;
  text-align: center;
  transition: all var(--hg-transition);
}
.module-card:hover {
  transform: translateY(-2px);
  box-shadow: var(--hg-shadow);
}
.module-card h4 { margin-bottom: 8px; }
.module-card .price {
  font-size: 1.5rem;
  font-weight: 800;
  color: var(--hg-primary);
  margin-bottom: 4px;
}
.module-card .period { font-size: 0.75rem; color: var(--hg-text-muted); }
.module-card .desc { font-size: 0.8125rem; color: var(--hg-text-muted); margin: 12px 0; }

/* ============================================
   INTEGRATIONS PAGE
   ============================================ */

.integrations-grid {
  display: grid;
  grid-template-columns: repeat(6, 1fr);
  gap: 20px;
}

.integration-card {
  background: white;
  border: 1px solid var(--hg-border);
  border-radius: var(--hg-radius);
  padding: 24px;
  text-align: center;
  transition: all var(--hg-transition);
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 12px;
}
.integration-card:hover {
  box-shadow: var(--hg-shadow);
  transform: translateY(-2px);
}
.integration-card img { height: 40px; width: auto; }
.integration-card span { font-size: 0.8125rem; font-weight: 600; color: var(--hg-text); }

/* ============================================
   CONTACT PAGE
   ============================================ */

.contact-grid {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 64px;
  align-items: start;
}

.contact-info h3 { margin-bottom: 24px; }

.contact-item {
  display: flex;
  gap: 16px;
  margin-bottom: 24px;
}
.contact-item-icon {
  width: 44px;
  height: 44px;
  background: rgba(20,184,166,0.1);
  border-radius: 10px;
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 1.25rem;
  color: var(--hg-accent);
  flex-shrink: 0;
}
.contact-item-text h4 { font-size: 0.9375rem; margin-bottom: 4px; }
.contact-item-text p { font-size: 0.875rem; color: var(--hg-text-muted); }

/* ============================================
   FEATURES PAGE — Feature sections
   ============================================ */

.feature-section {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 64px;
  align-items: center;
  padding: 48px 0;
}
.feature-section.reverse { direction: rtl; }
.feature-section.reverse > * { direction: ltr; }

.feature-section-text h3 { font-size: 1.5rem; margin-bottom: 16px; }
.feature-section-text p { color: var(--hg-text-muted); margin-bottom: 24px; line-height: 1.7; }

.feature-bullets {
  list-style: none;
}
.feature-bullets li {
  display: flex;
  align-items: flex-start;
  gap: 10px;
  padding: 6px 0;
  font-size: 0.9375rem;
}
.feature-bullets li::before {
  content: '✓';
  color: var(--hg-accent);
  font-weight: 700;
  margin-top: 2px;
}

.feature-section-image {
  border-radius: var(--hg-radius);
  overflow: hidden;
  background: var(--hg-bg-alt);
  aspect-ratio: 16/10;
  display: flex;
  align-items: center;
  justify-content: center;
  color: var(--hg-text-light);
  font-size: 0.875rem;
}

/* ============================================
   ANIMATIONS (AOS fallback)
   ============================================ */

[data-aos] {
  opacity: 0;
  transform: translateY(20px);
  transition: opacity 0.6s ease, transform 0.6s ease;
}
[data-aos].aos-animate {
  opacity: 1;
  transform: translateY(0);
}
[data-aos="fade-up"] { transform: translateY(30px); }
[data-aos="fade-up"].aos-animate { transform: translateY(0); }
[data-aos="fade-right"] { transform: translateX(-30px); }
[data-aos="fade-right"].aos-animate { transform: translateX(0); }
[data-aos="fade-left"] { transform: translateX(30px); }
[data-aos="fade-left"].aos-animate { transform: translateX(0); }
[data-aos="zoom-in"] { transform: scale(0.95); }
[data-aos="zoom-in"].aos-animate { transform: scale(1); }

/* ============================================
   RESPONSIVE
   ============================================ */

@media (max-width: 1024px) {
  .features-grid { grid-template-columns: repeat(2, 1fr); }
  .pricing-grid { grid-template-columns: 1fr; max-width: 480px; margin: 0 auto; }
  .pricing-grid.pricing-grid-4 { grid-template-columns: repeat(2, 1fr); max-width: 720px; margin: 0 auto; gap: 20px; }
  .pricing-grid-4 .pricing-amount .value { font-size: 2.25rem; }
  .pricing-grid-4 .pricing-card { padding: 32px 24px; }
  .pricing-grid-4 .pricing-card h3 { font-size: 1.5rem; }
  .pricing-grid-4 .pricing-card .description { font-size: 0.875rem; }
  .pricing-grid-4 .pricing-features li { font-size: 0.875rem; padding: 7px 0; }
  .features-grid[style*="repeat(4"] { grid-template-columns: repeat(2, 1fr) !important; }
  .testimonials-grid { grid-template-columns: 1fr; }
  .footer-grid { grid-template-columns: repeat(2, 1fr); }
  .metrics-grid { grid-template-columns: repeat(2, 1fr); }
  .modules-grid { grid-template-columns: repeat(2, 1fr); }
  .integrations-grid { grid-template-columns: repeat(3, 1fr); }
  .feature-section { grid-template-columns: 1fr; gap: 32px; }
  .feature-section.reverse { direction: ltr; }
  .contact-grid { grid-template-columns: 1fr; }
}

@media (max-width: 768px) {
  .hero-content { grid-template-columns: 1fr; text-align: center; }
  .hero-text p { margin: 0 auto 40px; }
  .hero-buttons { justify-content: center; }
  .hero-image { display: none; }

  .navbar-nav { display: none; }
  .mobile-toggle { display: block; }
  .navbar-actions .btn-login { display: none; }

  .section { padding: 64px 0; }
  .features-grid, .features-grid[style*="repeat(4"] { grid-template-columns: 1fr !important; }
  .pricing-grid.pricing-grid-4 { grid-template-columns: 1fr; max-width: 420px; gap: 24px; }
  .pricing-grid-4 .pricing-amount .value { font-size: 2.5rem; }
  .modules-grid { grid-template-columns: 1fr; }
  .integrations-grid { grid-template-columns: repeat(2, 1fr); }
  .form-grid { grid-template-columns: 1fr; }
  .footer-grid { grid-template-columns: 1fr; }
  .footer-bottom { flex-direction: column; gap: 16px; text-align: center; }
}

@media (max-width: 480px) {
  .container { padding: 0 16px; }
  .hero { padding: 120px 0 64px; }
  .hero-buttons { flex-direction: column; align-items: center; }
  .pricing-card { padding: 32px 24px; }
  .metrics-grid { grid-template-columns: repeat(2, 1fr); gap: 16px; }
}

/* ============================================
   ENHANCED — SVG Icon Boxes
   ============================================ */

.icon-box {
  width: 52px;
  height: 52px;
  border-radius: 14px;
  display: flex;
  align-items: center;
  justify-content: center;
  margin-bottom: 20px;
  flex-shrink: 0;
  transition: transform 0.3s ease, box-shadow 0.3s ease;
}
.icon-box svg { width: 26px; height: 26px; }
.feature-card:hover .icon-box { transform: scale(1.1) rotate(-3deg); }

.icon-box.blue { background: linear-gradient(135deg, rgba(30,64,175,0.12), rgba(59,130,246,0.08)); color: var(--hg-primary); }
.icon-box.teal { background: linear-gradient(135deg, rgba(20,184,166,0.12), rgba(6,182,212,0.08)); color: var(--hg-accent); }
.icon-box.green { background: linear-gradient(135deg, rgba(34,197,94,0.12), rgba(16,185,129,0.08)); color: #22c55e; }
.icon-box.orange { background: linear-gradient(135deg, rgba(249,115,22,0.12), rgba(245,158,11,0.08)); color: #f97316; }
.icon-box.red { background: linear-gradient(135deg, rgba(239,68,68,0.12), rgba(244,63,94,0.08)); color: #ef4444; }
.icon-box.indigo { background: linear-gradient(135deg, rgba(99,102,241,0.12), rgba(139,92,246,0.08)); color: #6366f1; }

/* ============================================
   ENHANCED — Hero Animated Background
   ============================================ */

.hero {
  background: var(--hg-gradient-hero);
  background-size: 200% 200%;
  animation: heroGradient 20s ease infinite;
}

@keyframes heroGradient {
  0%, 100% { background-position: 0% 50%; }
  50% { background-position: 100% 50%; }
}

.hero-float {
  position: absolute;
  border-radius: 50%;
  pointer-events: none;
  filter: blur(1px);
}
.hero-float-1 {
  width: 500px; height: 500px;
  background: radial-gradient(circle, rgba(20,184,166,0.12) 0%, transparent 70%);
  top: -120px; right: -80px;
  animation: floatPulse 8s ease infinite;
}
.hero-float-2 {
  width: 350px; height: 350px;
  background: radial-gradient(circle, rgba(59,130,246,0.1) 0%, transparent 70%);
  bottom: -80px; left: 5%;
  animation: floatPulse 12s ease infinite 3s;
}
.hero-float-3 {
  width: 200px; height: 200px;
  background: radial-gradient(circle, rgba(20,184,166,0.08) 0%, transparent 70%);
  top: 40%; left: 45%;
  animation: floatPulse 6s ease infinite 1s;
}

@keyframes floatPulse {
  0%, 100% { opacity: 0.5; transform: scale(1); }
  50% { opacity: 1; transform: scale(1.12); }
}

/* ============================================
   ENHANCED — Dashboard Mockup
   ============================================ */

.dashboard-mockup {
  position: relative;
  background: linear-gradient(145deg, #0c1222, #162033);
  border-radius: 16px;
  overflow: hidden;
  box-shadow:
    0 25px 80px rgba(0,0,0,0.5),
    0 0 0 1px rgba(255,255,255,0.06),
    inset 0 1px 0 rgba(255,255,255,0.05);
  aspect-ratio: 16/10;
  transform: perspective(1200px) rotateY(-4deg) rotateX(2deg);
  transition: transform 0.8s cubic-bezier(.4,0,.2,1);
}
.dashboard-mockup:hover {
  transform: perspective(1200px) rotateY(0deg) rotateX(0deg);
}

.dashboard-topbar {
  height: 28px;
  background: rgba(0,0,0,0.4);
  display: flex;
  align-items: center;
  padding: 0 10px;
  gap: 5px;
}
.dashboard-dot {
  width: 7px; height: 7px;
  border-radius: 50%;
}
.dashboard-dot.r { background: #ef4444; }
.dashboard-dot.y { background: #eab308; }
.dashboard-dot.g { background: #22c55e; }
.dashboard-topbar-title {
  font-size: 8px;
  color: rgba(255,255,255,0.3);
  margin-left: auto;
  font-weight: 500;
}

.dashboard-body {
  display: grid;
  grid-template-columns: 44px 1fr;
  height: calc(100% - 28px);
}

.dashboard-sidebar {
  background: rgba(0,0,0,0.25);
  padding: 10px 0;
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 8px;
}
.dash-nav-item {
  width: 26px; height: 26px;
  border-radius: 6px;
  background: rgba(255,255,255,0.04);
  transition: background 0.2s;
}
.dash-nav-item.active {
  background: rgba(20,184,166,0.25);
  box-shadow: 0 0 8px rgba(20,184,166,0.2);
}

.dashboard-main {
  padding: 10px;
  display: flex;
  flex-direction: column;
  gap: 8px;
  overflow: hidden;
}

.dash-metrics {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 6px;
}
.dash-metric {
  background: rgba(255,255,255,0.04);
  border: 1px solid rgba(255,255,255,0.06);
  border-radius: 6px;
  padding: 7px 9px;
}
.dash-metric-label {
  font-size: 6px;
  color: rgba(255,255,255,0.35);
  text-transform: uppercase;
  letter-spacing: 0.05em;
  margin-bottom: 3px;
}
.dash-metric-val {
  font-size: 13px;
  font-weight: 800;
  color: white;
  line-height: 1;
}
.dash-metric-change {
  font-size: 6px;
  margin-top: 2px;
}
.dash-metric-change.up { color: #4ade80; }

.dash-chart-area {
  flex: 1;
  background: rgba(255,255,255,0.03);
  border: 1px solid rgba(255,255,255,0.06);
  border-radius: 6px;
  padding: 8px;
  position: relative;
  overflow: hidden;
  display: flex;
  flex-direction: column;
}
.dash-chart-title {
  font-size: 7px;
  color: rgba(255,255,255,0.35);
  font-weight: 600;
  text-transform: uppercase;
  letter-spacing: 0.04em;
  margin-bottom: 6px;
}

.dash-bars {
  display: flex;
  align-items: flex-end;
  gap: 3px;
  flex: 1;
  padding-top: 6px;
}
.dash-bar {
  flex: 1;
  border-radius: 2px 2px 0 0;
  min-height: 4px;
  animation: dashBarGrow 1.8s ease forwards;
  opacity: 0;
}
.dash-bar.teal { background: linear-gradient(to top, rgba(20,184,166,0.4), rgba(20,184,166,0.8)); }
.dash-bar.blue { background: linear-gradient(to top, rgba(59,130,246,0.3), rgba(59,130,246,0.6)); }

@keyframes dashBarGrow {
  0% { max-height: 0; opacity: 0; }
  100% { opacity: 1; }
}

/* Floating notification cards on dashboard */
.dash-float {
  position: absolute;
  background: rgba(255,255,255,0.97);
  border-radius: 8px;
  padding: 6px 10px;
  box-shadow: 0 4px 20px rgba(0,0,0,0.25);
  z-index: 10;
  display: flex;
  align-items: center;
  gap: 6px;
  white-space: nowrap;
}
.dash-float-dot {
  width: 6px; height: 6px;
  border-radius: 50%;
  flex-shrink: 0;
}
.dash-float-text {
  font-size: 8px;
  font-weight: 600;
  color: #1e293b;
  line-height: 1.3;
}
.dash-float-sub {
  font-size: 6.5px;
  color: #64748b;
  font-weight: 400;
}

.dash-float-1 {
  top: 18%; right: -16px;
  animation: dashFloat 4s ease infinite;
}
.dash-float-2 {
  bottom: 25%; right: -24px;
  animation: dashFloat 4s ease infinite 2s;
}
.dash-float-3 {
  bottom: 12%; left: -18px;
  animation: dashFloat 4s ease infinite 1s;
}

@keyframes dashFloat {
  0%, 100% { transform: translateY(0); }
  50% { transform: translateY(-6px); }
}

/* ============================================
   ENHANCED — Social Proof Logos
   ============================================ */

.logo-carousel {
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 40px;
  flex-wrap: wrap;
  padding: 20px 0;
}

.logo-item {
  display: flex;
  align-items: center;
  gap: 8px;
  opacity: 0.45;
  transition: opacity 0.3s ease;
}
.logo-item:hover { opacity: 0.8; }

.logo-icon {
  width: 36px; height: 36px;
  border-radius: 8px;
  background: var(--hg-bg-alt);
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 16px;
}
.logo-text {
  font-size: 0.875rem;
  font-weight: 700;
  color: var(--hg-text);
}

/* ============================================
   ENHANCED — Video / Demo Section
   ============================================ */

.video-section {
  padding: 96px 0;
  background: var(--hg-gradient-dark);
  position: relative;
  overflow: hidden;
}

.video-container {
  max-width: 920px;
  margin: 0 auto;
  position: relative;
  border-radius: 16px;
  overflow: hidden;
  box-shadow: 0 24px 72px rgba(0,0,0,0.45), 0 0 0 1px rgba(255,255,255,0.05);
  aspect-ratio: 16/9;
  cursor: pointer;
  transition: transform 0.4s ease, box-shadow 0.4s ease;
}
.video-container:hover {
  transform: translateY(-4px);
  box-shadow: 0 32px 80px rgba(0,0,0,0.5), 0 0 0 1px rgba(255,255,255,0.08);
}

.video-thumbnail {
  position: absolute;
  inset: 0;
  background: linear-gradient(135deg, #0f172a 0%, #1e3a5f 40%, #1e40af 70%, #0d9488 100%);
  background-size: 300% 300%;
  animation: videoGradient 12s ease infinite;
}

@keyframes videoGradient {
  0%, 100% { background-position: 0% 50%; }
  50% { background-position: 100% 50%; }
}

.video-grid-overlay {
  position: absolute;
  inset: 0;
  display: grid;
  grid-template-columns: repeat(6, 1fr);
  grid-template-rows: repeat(4, 1fr);
  gap: 4px;
  padding: 40px;
  opacity: 0.06;
}
.video-grid-cell {
  border-radius: 4px;
  background: white;
}

.video-overlay {
  position: absolute;
  inset: 0;
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  gap: 16px;
  z-index: 2;
}

.play-btn {
  width: 80px; height: 80px;
  border-radius: 50%;
  background: rgba(255,255,255,0.95);
  display: flex;
  align-items: center;
  justify-content: center;
  box-shadow: 0 4px 30px rgba(0,0,0,0.3);
  transition: all 0.3s ease;
  border: none;
  cursor: pointer;
}
.play-btn:hover {
  transform: scale(1.12);
  box-shadow: 0 8px 40px rgba(0,0,0,0.4);
}
.play-btn svg {
  width: 30px; height: 30px;
  color: var(--hg-primary);
  margin-left: 4px;
}

.video-label {
  color: rgba(255,255,255,0.75);
  font-size: 0.9375rem;
  font-weight: 500;
}

/* ============================================
   ENHANCED — Channel Tier Cards
   ============================================ */

.channel-tiers-grid {
  display: grid;
  grid-template-columns: repeat(2, 1fr);
  gap: 24px;
  max-width: 640px;
  margin: 0 auto;
}

.channel-tier-card {
  background: white;
  border: 1px solid var(--hg-border);
  border-radius: var(--hg-radius);
  padding: 28px 20px;
  text-align: center;
  transition: all var(--hg-transition);
}
.channel-tier-card:hover {
  transform: translateY(-4px);
  box-shadow: var(--hg-shadow-lg);
  border-color: transparent;
}
.channel-tier-card .tier-channels {
  font-size: 1.75rem;
  font-weight: 800;
  background: var(--hg-gradient-text);
  -webkit-background-clip: text;
  -webkit-text-fill-color: transparent;
  background-clip: text;
  margin-bottom: 4px;
}
.channel-tier-card .tier-label {
  font-size: 0.8125rem;
  color: var(--hg-text-muted);
  margin-bottom: 16px;
}
.channel-tier-card .tier-price {
  font-size: 1.5rem;
  font-weight: 700;
  color: var(--hg-text);
}
.channel-tier-card .tier-per {
  font-size: 0.75rem;
  color: var(--hg-text-muted);
}

/* ============================================
   ENHANCED — Typewriter Effect
   ============================================ */

.typewriter-cursor {
  display: inline-block;
  width: 3px;
  height: 1em;
  background: var(--hg-accent);
  margin-left: 2px;
  vertical-align: text-bottom;
  animation: cursorBlink 1s step-end infinite;
}

@keyframes cursorBlink {
  0%, 100% { opacity: 1; }
  50% { opacity: 0; }
}

/* ============================================
   ENHANCED — Gradient Decorative Line
   ============================================ */

.gradient-line {
  height: 3px;
  background: var(--hg-gradient-accent);
  border-radius: 2px;
  width: 60px;
  margin: 20px auto 0;
}

/* ============================================
   ENHANCED — Feature cards glow on hover
   ============================================ */

.feature-card {
  position: relative;
  overflow: hidden;
}
.feature-card::before {
  content: '';
  position: absolute;
  top: 0; left: 0; right: 0;
  height: 3px;
  background: var(--hg-gradient-accent);
  transform: scaleX(0);
  transform-origin: left;
  transition: transform 0.4s ease;
}
.feature-card:hover::before {
  transform: scaleX(1);
}

/* ============================================
   ENHANCED — Pricing cards shine
   ============================================ */

.pricing-card {
  overflow: visible;
}
.pricing-card::after {
  content: '';
  position: absolute;
  top: 0; left: 0;
  width: 100%; height: 100%;
  border-radius: inherit;
  overflow: hidden;
  pointer-events: none;
  background: linear-gradient(
    to bottom right,
    transparent 40%,
    rgba(255,255,255,0.03) 50%,
    transparent 60%
  );
  transform: rotate(45deg) translate(-100%, -100%);
  transition: transform 0.8s ease;
  pointer-events: none;
}
.pricing-card:hover::after {
  transform: rotate(45deg) translate(10%, 10%);
}

/* Price update pulse */
.pricing-card.price-updated {
  animation: priceUpdatePulse 0.6s ease;
}
@keyframes priceUpdatePulse {
  0%   { box-shadow: 0 0 0 0 rgba(20,184,166,0.3); }
  50%  { box-shadow: 0 0 0 8px rgba(20,184,166,0.1); }
  100% { box-shadow: 0 0 0 0 rgba(20,184,166,0); }
}
.pricing-card.highlighted.price-updated {
  animation: priceUpdatePulseHL 0.6s ease;
}
@keyframes priceUpdatePulseHL {
  0%   { box-shadow: 0 0 0 1px var(--hg-accent), 0 0 0 1px rgba(20,184,166,0.3); }
  50%  { box-shadow: 0 0 0 1px var(--hg-accent), 0 0 0 10px rgba(20,184,166,0.15); }
  100% { box-shadow: 0 0 0 1px var(--hg-accent), var(--hg-shadow); }
}

/* ============================================
   ENHANCED — Responsive additions
   ============================================ */

@media (max-width: 1024px) {
  .channel-tiers-grid { grid-template-columns: repeat(2, 1fr); }
}
@media (max-width: 768px) {
  .dashboard-mockup { display: none; }
  .dash-float { display: none; }
  .hero-float { display: none; }
  .channel-tiers-grid { grid-template-columns: repeat(2, 1fr); }
  .video-container { border-radius: 12px; }
}
@media (max-width: 480px) {
  .channel-tiers-grid { grid-template-columns: 1fr; }
}

/* ============================================
   V2 — Mega Dropdown Navigation
   ============================================ */

.navbar-nav li { position: relative; }
.navbar-nav li.has-dropdown > a {
  display: flex;
  align-items: center;
  gap: 4px;
}
.navbar-nav li.has-dropdown > a .nav-chevron {
  width: 14px; height: 14px;
  transition: transform 0.25s ease;
}
.navbar-nav li.has-dropdown:hover > a .nav-chevron,
.navbar-nav li.has-dropdown.open > a .nav-chevron {
  transform: rotate(180deg);
}

.navbar-nav li.has-dropdown {
  padding-bottom: 16px;
  margin-bottom: -16px;
}

.mega-dropdown {
  position: absolute;
  top: calc(100% + 8px);
  left: 50%;
  transform: translateX(-50%) translateY(8px);
  background: white;
  border-radius: var(--hg-radius-lg);
  box-shadow: 0 20px 60px rgba(0,0,0,0.15), 0 0 0 1px rgba(0,0,0,0.04);
  padding: 24px;
  opacity: 0;
  visibility: hidden;
  pointer-events: none;
  transition: all 0.25s cubic-bezier(.4,0,.2,1);
  z-index: 100;
}

/* Invisible bridge to keep hover active between nav item and dropdown */
.mega-dropdown::before {
  content: '';
  position: absolute;
  top: -24px;
  left: 0;
  right: 0;
  height: 24px;
}

.navbar-nav li.has-dropdown:hover .mega-dropdown,
.navbar-nav li.has-dropdown.open .mega-dropdown {
  opacity: 1;
  visibility: visible;
  pointer-events: auto;
  transform: translateX(-50%) translateY(0);
}

/* Platform dropdown — 2x3 grid */
.mega-grid {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 4px;
  min-width: 520px;
}

.mega-item {
  display: flex;
  align-items: flex-start;
  gap: 14px;
  padding: 14px 16px;
  border-radius: var(--hg-radius-sm);
  transition: background 0.2s ease;
  text-decoration: none;
}
.mega-item:hover {
  background: var(--hg-bg-light);
  color: var(--hg-text);
}
.mega-item .icon-box {
  width: 40px; height: 40px;
  margin-bottom: 0;
  flex-shrink: 0;
  border-radius: 10px;
}
.mega-item .icon-box svg { width: 20px; height: 20px; }

.mega-title {
  font-size: 0.875rem;
  font-weight: 600;
  color: var(--hg-text);
  line-height: 1.3;
  margin-bottom: 2px;
}
.mega-desc {
  font-size: 0.75rem;
  color: var(--hg-text-muted);
  line-height: 1.4;
}

/* Solutions dropdown — 2 columns */
.mega-columns {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 32px;
  min-width: 440px;
}

.mega-column-title {
  font-size: 0.6875rem;
  font-weight: 700;
  text-transform: uppercase;
  letter-spacing: 0.08em;
  color: var(--hg-text-muted);
  margin-bottom: 12px;
  padding: 0 12px;
}

/* Override navbar-nav a white color inside dropdowns */
.mega-dropdown a.mega-item,
.mega-dropdown a.mega-item-sm {
  color: var(--hg-text);
}
.mega-dropdown a.mega-item:hover,
.mega-dropdown a.mega-item-sm:hover {
  color: var(--hg-primary);
}

.mega-item-sm {
  display: block;
  padding: 8px 12px;
  font-size: 0.875rem;
  font-weight: 500;
  color: var(--hg-text);
  border-radius: 6px;
  transition: all 0.2s ease;
  text-decoration: none;
}
.mega-item-sm:hover {
  background: var(--hg-bg-light);
  color: var(--hg-primary);
}

/* Scrolled navbar dropdown fix */
.navbar.scrolled .mega-dropdown {
  box-shadow: 0 20px 60px rgba(0,0,0,0.12), 0 0 0 1px rgba(0,0,0,0.06);
}

/* ============================================
   V2 — Sub-page Hero (smaller)
   ============================================ */

.hero-sub {
  background: var(--hg-gradient-hero);
  padding: 140px 0 80px;
  text-align: center;
  position: relative;
  overflow: hidden;
  background-size: 200% 200%;
  animation: heroGradient 20s ease infinite;
}
.hero-sub .hero-float { position: absolute; border-radius: 50%; pointer-events: none; }
.hero-sub .hero-float-1 {
  width: 400px; height: 400px;
  background: radial-gradient(circle, rgba(20,184,166,0.1) 0%, transparent 70%);
  top: -100px; right: -50px;
  animation: floatPulse 8s ease infinite;
}
.hero-sub .hero-float-2 {
  width: 250px; height: 250px;
  background: radial-gradient(circle, rgba(59,130,246,0.08) 0%, transparent 70%);
  bottom: -50px; left: 10%;
  animation: floatPulse 10s ease infinite 2s;
}

.hero-sub h1 { color: white; max-width: 700px; margin: 0 auto 16px; font-size: clamp(2rem, 4vw, 3rem); }
.hero-sub p { color: rgba(255,255,255,0.7); font-size: 1.125rem; max-width: 600px; margin: 0 auto; line-height: 1.7; }
.hero-sub .hero-icon {
  width: 64px; height: 64px;
  border-radius: 16px;
  display: flex;
  align-items: center;
  justify-content: center;
  margin: 0 auto 24px;
  background: rgba(255,255,255,0.1);
  backdrop-filter: blur(4px);
}
.hero-sub .hero-icon svg { width: 32px; height: 32px; color: var(--hg-accent-light); }

.hero-sub .breadcrumb {
  font-size: 0.8125rem;
  color: rgba(255,255,255,0.5);
  margin-bottom: 24px;
}
.hero-sub .breadcrumb a { color: rgba(255,255,255,0.6); }
.hero-sub .breadcrumb a:hover { color: white; }

/* ============================================
   V2 — Solution/Platform Page Body
   ============================================ */

.page-intro {
  max-width: 800px;
  margin: 0 auto;
  text-align: center;
  padding-bottom: 32px;
}
.page-intro p {
  font-size: 1.0625rem;
  color: var(--hg-text-muted);
  line-height: 1.8;
}

/* Feature alternating sections */
.feature-row {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 80px;
  align-items: center;
  padding: 64px 0;
  border-bottom: 1px solid var(--hg-border);
}
.feature-row:last-child { border-bottom: none; }
.feature-row.reverse { direction: rtl; }
.feature-row.reverse > * { direction: ltr; }

.feature-row-text h3 {
  font-size: 1.5rem;
  margin-bottom: 16px;
  display: flex;
  align-items: center;
  gap: 12px;
}
.feature-row-text h3 .icon-box { margin-bottom: 0; }
.feature-row-text p {
  color: var(--hg-text-muted);
  margin-bottom: 24px;
  line-height: 1.8;
  font-size: 1rem;
}

.feature-row-visual {
  border-radius: var(--hg-radius-lg);
  overflow: hidden;
  background: linear-gradient(135deg, var(--hg-bg-alt), var(--hg-bg-light));
  aspect-ratio: 4/3;
  display: flex;
  align-items: center;
  justify-content: center;
  position: relative;
  border: 1px solid var(--hg-border);
}

/* Mini feature list inside rows */
.feature-checklist {
  list-style: none;
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 8px 16px;
}
.feature-checklist li {
  display: flex;
  align-items: center;
  gap: 8px;
  font-size: 0.9375rem;
  color: var(--hg-text);
}
.feature-checklist li::before {
  content: '';
  width: 18px; height: 18px;
  border-radius: 50%;
  background: rgba(20,184,166,0.1);
  display: flex;
  align-items: center;
  justify-content: center;
  flex-shrink: 0;
  background-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' width='12' height='12' viewBox='0 0 24 24' fill='none' stroke='%2314b8a6' stroke-width='3' stroke-linecap='round' stroke-linejoin='round'%3E%3Cpolyline points='20 6 9 17 4 12'/%3E%3C/svg%3E");
  background-repeat: no-repeat;
  background-position: center;
}

/* Solution page highlights */
.solution-highlights {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 24px;
}

.highlight-card {
  background: white;
  border: 1px solid var(--hg-border);
  border-radius: var(--hg-radius);
  padding: 28px;
  text-align: center;
  transition: all var(--hg-transition);
}
.highlight-card:hover {
  transform: translateY(-4px);
  box-shadow: var(--hg-shadow-lg);
  border-color: transparent;
}
.highlight-card .highlight-metric {
  font-size: 2rem;
  font-weight: 800;
  background: var(--hg-gradient-text);
  -webkit-background-clip: text;
  -webkit-text-fill-color: transparent;
  background-clip: text;
  margin-bottom: 8px;
}
.highlight-card h4 { margin-bottom: 8px; }
.highlight-card p { font-size: 0.875rem; color: var(--hg-text-muted); }

/* Pain points section */
.pain-points {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 20px;
}
.pain-point {
  display: flex;
  gap: 14px;
  padding: 20px;
  background: rgba(239,68,68,0.03);
  border: 1px solid rgba(239,68,68,0.1);
  border-radius: var(--hg-radius-sm);
}
.pain-point-icon {
  width: 36px; height: 36px;
  border-radius: 8px;
  background: rgba(239,68,68,0.08);
  display: flex;
  align-items: center;
  justify-content: center;
  flex-shrink: 0;
  color: #ef4444;
  font-size: 18px;
}
.pain-point h4 { font-size: 0.9375rem; margin-bottom: 4px; }
.pain-point p { font-size: 0.8125rem; color: var(--hg-text-muted); }

/* Solution points (green variant) */
.solution-points {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 20px;
}
.solution-point {
  display: flex;
  gap: 14px;
  padding: 20px;
  background: rgba(20,184,166,0.03);
  border: 1px solid rgba(20,184,166,0.1);
  border-radius: var(--hg-radius-sm);
}
.solution-point-icon {
  width: 36px; height: 36px;
  border-radius: 8px;
  background: rgba(20,184,166,0.08);
  display: flex;
  align-items: center;
  justify-content: center;
  flex-shrink: 0;
  color: var(--hg-accent);
}
.solution-point-icon svg { width: 18px; height: 18px; }
.solution-point h4 { font-size: 0.9375rem; margin-bottom: 4px; }
.solution-point p { font-size: 0.8125rem; color: var(--hg-text-muted); }

/* Modules relevant section */
.relevant-modules {
  display: grid;
  grid-template-columns: repeat(auto-fill, minmax(180px, 1fr));
  gap: 16px;
}
.relevant-module {
  display: flex;
  align-items: center;
  gap: 12px;
  padding: 16px;
  background: white;
  border: 1px solid var(--hg-border);
  border-radius: var(--hg-radius-sm);
  transition: all var(--hg-transition);
}
.relevant-module:hover {
  box-shadow: var(--hg-shadow);
  transform: translateY(-2px);
}
.relevant-module .icon-box { width: 36px; height: 36px; margin-bottom: 0; border-radius: 8px; }
.relevant-module .icon-box svg { width: 18px; height: 18px; }
.relevant-module span { font-size: 0.875rem; font-weight: 600; }

/* ============================================
   MOCKUP ILLUSTRATIONS — CSS-only UI previews
   ============================================ */

/* Base window frame */
.mockup-window {
  width: 100%;
  border-radius: 12px;
  overflow: hidden;
  background: #1a1f2e;
  box-shadow: 0 8px 32px rgba(0,0,0,0.15);
  font-family: 'Inter', sans-serif;
}
.mockup-topbar {
  display: flex;
  align-items: center;
  gap: 6px;
  padding: 10px 14px;
  background: #151923;
}
.mockup-topbar .dot { width: 8px; height: 8px; border-radius: 50%; }
.mockup-topbar .dot.r { background: #ff5f57; }
.mockup-topbar .dot.y { background: #febc2e; }
.mockup-topbar .dot.g { background: #28c840; }
.mockup-topbar .title {
  margin-left: 12px;
  font-size: 0.6875rem;
  color: rgba(255,255,255,0.4);
  font-weight: 500;
}
.mockup-body {
  padding: 16px;
}

/* ---------- Type: Grid (Tableau, Inventory, Schedule) ---------- */
.mw-grid .mockup-body {
  display: flex;
  gap: 3px;
}
.mw-grid .mg-sidebar {
  display: flex;
  flex-direction: column;
  gap: 3px;
  width: 54px;
  flex-shrink: 0;
}
.mw-grid .mg-header {
  display: flex;
  gap: 3px;
  margin-bottom: 3px;
}
.mw-grid .mg-header-cell {
  flex: 1;
  height: 20px;
  background: rgba(255,255,255,0.08);
  border-radius: 3px;
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 0.5rem;
  color: rgba(255,255,255,0.4);
  font-weight: 600;
}
.mw-grid .mg-label {
  height: 26px;
  background: rgba(255,255,255,0.06);
  border-radius: 4px;
  display: flex;
  align-items: center;
  padding: 0 6px;
  font-size: 0.5rem;
  color: rgba(255,255,255,0.5);
}
.mw-grid .mg-rows {
  flex: 1;
  display: flex;
  flex-direction: column;
  gap: 3px;
}
.mw-grid .mg-row {
  display: flex;
  gap: 3px;
  height: 26px;
}
.mw-grid .mg-cell {
  flex: 1;
  border-radius: 4px;
  min-width: 0;
}
.mg-cell.blue { background: rgba(59,130,246,0.55); }
.mg-cell.teal { background: rgba(20,184,166,0.55); }
.mg-cell.orange { background: rgba(249,115,22,0.5); }
.mg-cell.indigo { background: rgba(99,102,241,0.5); }
.mg-cell.green { background: rgba(34,197,94,0.5); }
.mg-cell.empty { background: rgba(255,255,255,0.04); }
.mg-cell.yellow { background: rgba(234,179,8,0.45); }
.mg-cell.red { background: rgba(239,68,68,0.4); }
.mg-cell.span2 { flex: 2; }
.mg-cell.span3 { flex: 3; }
.mg-cell.span4 { flex: 4; }

/* ---------- Type: List (Bookings, Tasks, Rules, Folio) ---------- */
.mw-list .mockup-body {
  display: flex;
  flex-direction: column;
  gap: 6px;
}
.mw-list .ml-row {
  display: flex;
  align-items: center;
  gap: 10px;
  padding: 8px 12px;
  background: rgba(255,255,255,0.04);
  border-radius: 6px;
}
.mw-list .ml-dot {
  width: 8px; height: 8px;
  border-radius: 50%;
  flex-shrink: 0;
}
.mw-list .ml-text {
  flex: 1;
  display: flex;
  flex-direction: column;
  gap: 2px;
}
.mw-list .ml-title {
  font-size: 0.625rem;
  color: rgba(255,255,255,0.8);
  font-weight: 500;
}
.mw-list .ml-sub {
  font-size: 0.5rem;
  color: rgba(255,255,255,0.35);
}
.mw-list .ml-badge {
  font-size: 0.4375rem;
  padding: 2px 8px;
  border-radius: 10px;
  font-weight: 600;
  text-transform: uppercase;
  letter-spacing: 0.05em;
  flex-shrink: 0;
}
.ml-badge.confirmed { background: rgba(34,197,94,0.2); color: #4ade80; }
.ml-badge.pending { background: rgba(234,179,8,0.2); color: #fbbf24; }
.ml-badge.checkin { background: rgba(59,130,246,0.2); color: #60a5fa; }
.ml-badge.checkout { background: rgba(168,85,247,0.2); color: #c084fc; }
.ml-badge.active { background: rgba(20,184,166,0.2); color: #5eead4; }
.ml-badge.done { background: rgba(34,197,94,0.2); color: #4ade80; }
.ml-badge.warn { background: rgba(249,115,22,0.2); color: #fb923c; }
.mw-list .ml-amount {
  font-size: 0.625rem;
  font-weight: 600;
  color: rgba(255,255,255,0.7);
  flex-shrink: 0;
}

/* ---------- Type: Chart (Revenue, Budget, Analytics) ---------- */
.mw-chart .mockup-body {
  display: flex;
  flex-direction: column;
  gap: 12px;
}
.mw-chart .mc-metrics {
  display: flex;
  gap: 8px;
}
.mw-chart .mc-metric {
  flex: 1;
  padding: 10px;
  background: rgba(255,255,255,0.04);
  border-radius: 8px;
}
.mw-chart .mc-label {
  font-size: 0.4375rem;
  color: rgba(255,255,255,0.4);
  text-transform: uppercase;
  letter-spacing: 0.1em;
  margin-bottom: 4px;
}
.mw-chart .mc-value {
  font-size: 0.9375rem;
  font-weight: 700;
  color: white;
}
.mw-chart .mc-change {
  font-size: 0.4375rem;
  margin-top: 2px;
}
.mw-chart .mc-change.up { color: #4ade80; }
.mw-chart .mc-change.down { color: #f87171; }
.mw-chart .mc-bars {
  display: flex;
  align-items: flex-end;
  gap: 4px;
  height: 80px;
  padding-top: 8px;
}
.mw-chart .mc-bar {
  flex: 1;
  border-radius: 3px 3px 0 0;
  background: linear-gradient(to top, rgba(20,184,166,0.4), rgba(59,130,246,0.6));
  min-height: 8px;
  animation: mcBarGrow 1.2s ease-out both;
}
.mw-chart .mc-bar.accent { background: linear-gradient(to top, rgba(249,115,22,0.4), rgba(234,179,8,0.6)); }
@keyframes mcBarGrow {
  from { transform: scaleY(0); transform-origin: bottom; }
  to { transform: scaleY(1); transform-origin: bottom; }
}
.mw-chart .mc-line-area {
  position: relative;
  height: 80px;
  overflow: hidden;
}
.mw-chart .mc-line-area svg {
  width: 100%; height: 100%;
}

/* ---------- Type: Form (Booking Engine, Compliance) ---------- */
.mw-form .mockup-body {
  display: flex;
  flex-direction: column;
  gap: 10px;
}
.mw-form .mf-row {
  display: flex;
  gap: 8px;
}
.mw-form .mf-field {
  flex: 1;
  display: flex;
  flex-direction: column;
  gap: 4px;
}
.mw-form .mf-label {
  font-size: 0.4375rem;
  color: rgba(255,255,255,0.4);
  text-transform: uppercase;
  letter-spacing: 0.05em;
}
.mw-form .mf-input {
  height: 28px;
  background: rgba(255,255,255,0.06);
  border: 1px solid rgba(255,255,255,0.1);
  border-radius: 6px;
  padding: 0 10px;
  display: flex;
  align-items: center;
  font-size: 0.5625rem;
  color: rgba(255,255,255,0.5);
}
.mw-form .mf-btn {
  height: 32px;
  background: var(--hg-accent);
  border-radius: 6px;
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 0.5625rem;
  font-weight: 600;
  color: white;
  margin-top: 4px;
}
.mw-form .mf-checkbox {
  display: flex;
  align-items: center;
  gap: 8px;
  font-size: 0.5625rem;
  color: rgba(255,255,255,0.6);
}
.mw-form .mf-check {
  width: 14px; height: 14px;
  border-radius: 3px;
  background: rgba(20,184,166,0.3);
  border: 1px solid rgba(20,184,166,0.5);
  flex-shrink: 0;
}
.mw-form .mf-check.checked {
  background: var(--hg-accent);
  background-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' width='10' height='10' viewBox='0 0 24 24' fill='none' stroke='white' stroke-width='3'%3E%3Cpolyline points='20 6 9 17 4 12'/%3E%3C/svg%3E");
  background-repeat: no-repeat;
  background-position: center;
}

/* ---------- Type: Chat (Chatbot, Guest Portal) ---------- */
.mw-chat .mockup-body {
  display: flex;
  flex-direction: column;
  gap: 8px;
}
.mw-chat .mch-bubble {
  max-width: 78%;
  padding: 8px 12px;
  border-radius: 12px;
  font-size: 0.5625rem;
  line-height: 1.5;
}
.mw-chat .mch-bubble.bot {
  background: rgba(59,130,246,0.2);
  color: rgba(255,255,255,0.8);
  align-self: flex-start;
  border-bottom-left-radius: 4px;
}
.mw-chat .mch-bubble.user {
  background: rgba(20,184,166,0.3);
  color: rgba(255,255,255,0.85);
  align-self: flex-end;
  border-bottom-right-radius: 4px;
}
.mw-chat .mch-typing {
  display: flex;
  gap: 4px;
  padding: 8px 14px;
  background: rgba(59,130,246,0.15);
  border-radius: 12px;
  border-bottom-left-radius: 4px;
  align-self: flex-start;
  width: fit-content;
}
.mw-chat .mch-typing span {
  width: 5px; height: 5px;
  border-radius: 50%;
  background: rgba(255,255,255,0.4);
  animation: typingDot 1.4s infinite;
}
.mw-chat .mch-typing span:nth-child(2) { animation-delay: 0.2s; }
.mw-chat .mch-typing span:nth-child(3) { animation-delay: 0.4s; }
@keyframes typingDot {
  0%,60%,100% { opacity: 0.3; transform: translateY(0); }
  30% { opacity: 1; transform: translateY(-3px); }
}
.mw-chat .mch-input {
  display: flex;
  gap: 6px;
  margin-top: 4px;
}
.mw-chat .mch-input-field {
  flex: 1;
  height: 28px;
  background: rgba(255,255,255,0.06);
  border: 1px solid rgba(255,255,255,0.1);
  border-radius: 14px;
  padding: 0 12px;
  font-size: 0.5rem;
  color: rgba(255,255,255,0.3);
  display: flex;
  align-items: center;
}
.mw-chat .mch-send {
  width: 28px; height: 28px;
  background: var(--hg-accent);
  border-radius: 50%;
  display: flex;
  align-items: center;
  justify-content: center;
}
.mw-chat .mch-send svg { width: 14px; height: 14px; color: white; }

/* ---------- Type: Profile (Guest Intelligence, CRM) ---------- */
.mw-profile .mockup-body {
  display: flex;
  gap: 14px;
}
.mw-profile .mp-left {
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 6px;
  flex-shrink: 0;
}
.mw-profile .mp-avatar {
  width: 48px; height: 48px;
  border-radius: 50%;
  background: linear-gradient(135deg, #3b82f6, #14b8a6);
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 0.875rem;
  font-weight: 700;
  color: white;
}
.mw-profile .mp-segment {
  font-size: 0.4375rem;
  padding: 2px 8px;
  border-radius: 10px;
  font-weight: 600;
  text-transform: uppercase;
  letter-spacing: 0.03em;
}
.mp-segment.vip { background: rgba(234,179,8,0.2); color: #fbbf24; }
.mp-segment.loyal { background: rgba(59,130,246,0.2); color: #60a5fa; }
.mp-segment.atrisk { background: rgba(239,68,68,0.2); color: #f87171; }
.mw-profile .mp-info {
  flex: 1;
  display: flex;
  flex-direction: column;
  gap: 8px;
}
.mw-profile .mp-name {
  font-size: 0.75rem;
  font-weight: 600;
  color: white;
}
.mw-profile .mp-detail {
  font-size: 0.5rem;
  color: rgba(255,255,255,0.4);
}
.mw-profile .mp-stats {
  display: flex;
  gap: 12px;
}
.mw-profile .mp-stat-val {
  font-size: 0.8125rem;
  font-weight: 700;
  color: #5eead4;
}
.mw-profile .mp-stat-label {
  font-size: 0.4375rem;
  color: rgba(255,255,255,0.35);
}
.mw-profile .mp-rfm {
  display: flex;
  gap: 4px;
}
.mw-profile .mp-rfm-bar {
  height: 6px;
  border-radius: 3px;
  flex: 1;
}
.mp-rfm-bar.high { background: #4ade80; }
.mp-rfm-bar.mid { background: #fbbf24; }
.mp-rfm-bar.low { background: #f87171; }
.mw-profile .mp-tags {
  display: flex;
  gap: 4px;
  flex-wrap: wrap;
}
.mw-profile .mp-tag {
  font-size: 0.4375rem;
  padding: 2px 6px;
  border-radius: 4px;
  background: rgba(255,255,255,0.06);
  color: rgba(255,255,255,0.5);
}

/* ---------- Type: Document (Invoice, Report) ---------- */
.mw-doc .mockup-body {
  background: white;
  border-radius: 8px;
  padding: 16px;
}
.mw-doc .md-header {
  display: flex;
  justify-content: space-between;
  align-items: flex-start;
  margin-bottom: 12px;
  padding-bottom: 8px;
  border-bottom: 1px solid #e2e8f0;
}
.mw-doc .md-logo {
  font-size: 0.625rem;
  font-weight: 700;
  color: #1e40af;
}
.mw-doc .md-num {
  font-size: 0.5rem;
  color: #94a3b8;
}
.mw-doc .md-line {
  display: flex;
  justify-content: space-between;
  padding: 3px 0;
  font-size: 0.5rem;
  color: #475569;
}
.mw-doc .md-line.total {
  border-top: 2px solid #1e40af;
  margin-top: 6px;
  padding-top: 6px;
  font-weight: 700;
  color: #0f172a;
  font-size: 0.5625rem;
}
.mw-doc .md-stamp {
  display: inline-block;
  margin-top: 8px;
  padding: 3px 10px;
  border: 2px solid #22c55e;
  border-radius: 4px;
  font-size: 0.5rem;
  color: #22c55e;
  font-weight: 700;
  text-transform: uppercase;
  transform: rotate(-3deg);
}
.mw-doc .md-stamp.pending {
  border-color: #f59e0b;
  color: #f59e0b;
}

/* ---------- Type: Mobile frame (PWA, Guest Portal) ---------- */
.mw-mobile {
  max-width: 200px;
  margin: 0 auto;
}
.mw-mobile .mockup-topbar {
  border-radius: 20px 20px 0 0;
  justify-content: center;
}
.mw-mobile .mockup-topbar .dot { display: none; }
.mw-mobile .mockup-topbar .title {
  margin-left: 0;
  font-size: 0.5625rem;
  color: rgba(255,255,255,0.6);
  font-weight: 600;
}
.mw-mobile .mockup-body {
  border-radius: 0 0 20px 20px;
  padding: 12px;
  min-height: 180px;
}
.mw-mobile .mm-nav {
  display: flex;
  justify-content: space-around;
  padding: 8px 0;
  margin-top: auto;
  border-top: 1px solid rgba(255,255,255,0.08);
}
.mw-mobile .mm-nav-item {
  width: 20px; height: 20px;
  border-radius: 4px;
  background: rgba(255,255,255,0.08);
}
.mw-mobile .mm-nav-item.active { background: rgba(20,184,166,0.3); }

/* Update feature-row-visual for mockups */
.feature-row-visual .mockup-window {
  transform: perspective(800px) rotateY(-2deg);
  transition: transform 0.5s ease;
}
.feature-row.reverse .feature-row-visual .mockup-window {
  transform: perspective(800px) rotateY(2deg);
}
.feature-row:hover .feature-row-visual .mockup-window {
  transform: perspective(800px) rotateY(0deg);
}
.feature-row-visual {
  aspect-ratio: auto;
  padding: 20px;
  background: linear-gradient(135deg, #0f172a 0%, #1e3a5f 100%);
}

/* ============================================
   INTERACTIVE DEMO PLAYER
   ============================================ */

.demo-player {
  max-width: 900px;
  margin: 0 auto;
  position: relative;
}
.demo-stage {
  position: relative;
  border-radius: 16px;
  overflow: hidden;
  background: #0f172a;
  box-shadow: 0 25px 60px rgba(0,0,0,0.3);
}

/* Demo topbar (browser chrome) */
.demo-topbar {
  display: flex;
  align-items: center;
  gap: 6px;
  padding: 12px 18px;
  background: #0a0e1a;
}
.demo-topbar .dot { width: 10px; height: 10px; border-radius: 50%; }
.demo-topbar .dot.r { background: #ff5f57; }
.demo-topbar .dot.y { background: #febc2e; }
.demo-topbar .dot.g { background: #28c840; }
.demo-topbar .demo-url {
  margin-left: 14px;
  padding: 4px 16px;
  background: rgba(255,255,255,0.06);
  border-radius: 6px;
  font-size: 0.6875rem;
  color: rgba(255,255,255,0.4);
  flex: 1;
  max-width: 280px;
}

/* Slides container */
.demo-slides {
  position: relative;
  min-height: 420px;
}
.demo-slide {
  position: absolute;
  inset: 0;
  padding: 24px 28px;
  opacity: 0;
  transform: translateX(30px);
  transition: opacity 0.5s ease, transform 0.5s ease;
  pointer-events: none;
  display: flex;
  flex-direction: column;
  gap: 16px;
}
.demo-slide.active {
  opacity: 1;
  transform: translateX(0);
  pointer-events: auto;
  position: relative;
}
.demo-slide.exit {
  opacity: 0;
  transform: translateX(-30px);
}

/* Slide header */
.demo-slide-header {
  display: flex;
  align-items: center;
  gap: 12px;
}
.demo-slide-header .icon-box {
  width: 36px; height: 36px;
  margin-bottom: 0;
  border-radius: 8px;
}
.demo-slide-header .icon-box svg { width: 18px; height: 18px; }
.demo-slide-title {
  font-size: 1rem;
  font-weight: 700;
  color: white;
}
.demo-slide-desc {
  font-size: 0.75rem;
  color: rgba(255,255,255,0.45);
  max-width: 500px;
}

/* Slide body uses mockup components (mw-grid, mw-list, etc.) */
.demo-slide .demo-mockup {
  flex: 1;
  background: rgba(255,255,255,0.03);
  border-radius: 10px;
  padding: 16px;
  overflow: hidden;
}

/* Demo navigation & controls */
.demo-controls {
  display: flex;
  align-items: center;
  gap: 16px;
  margin-top: 20px;
}
.demo-nav-dots {
  display: flex;
  gap: 6px;
  flex: 1;
  justify-content: center;
}
.demo-dot {
  width: 10px; height: 10px;
  border-radius: 50%;
  background: rgba(255,255,255,0.15);
  cursor: pointer;
  transition: all 0.3s ease;
  border: none;
  padding: 0;
}
.demo-dot:hover { background: rgba(255,255,255,0.3); }
.demo-dot.active {
  background: var(--hg-accent);
  width: 28px;
  border-radius: 5px;
}

/* Play/pause button */
.demo-playpause {
  width: 36px; height: 36px;
  border-radius: 50%;
  background: rgba(255,255,255,0.08);
  border: 1px solid rgba(255,255,255,0.12);
  display: flex;
  align-items: center;
  justify-content: center;
  cursor: pointer;
  transition: all 0.3s ease;
  flex-shrink: 0;
  color: rgba(255,255,255,0.6);
}
.demo-playpause:hover {
  background: rgba(255,255,255,0.14);
  color: white;
}
.demo-playpause svg { width: 16px; height: 16px; }

/* Progress bar */
.demo-progress {
  height: 3px;
  background: rgba(255,255,255,0.08);
  border-radius: 2px;
  overflow: hidden;
  margin-top: 12px;
}
.demo-progress-bar {
  height: 100%;
  background: linear-gradient(to right, var(--hg-primary), var(--hg-accent));
  border-radius: 2px;
  width: 0%;
  transition: width 0.3s linear;
}
.demo-progress-bar.animating {
  transition: width 4s linear;
  width: 100%;
}

/* Slide labels */
.demo-slide-labels {
  display: flex;
  flex-wrap: wrap;
  gap: 6px;
  margin-top: 4px;
}
.demo-slide-label {
  font-size: 0.5625rem;
  padding: 3px 10px;
  border-radius: 12px;
  background: rgba(255,255,255,0.06);
  color: rgba(255,255,255,0.5);
  font-weight: 500;
}
.demo-slide-label.highlight {
  background: rgba(20,184,166,0.15);
  color: #5eead4;
}

/* ============================================
   V2 — Responsive additions
   ============================================ */

@media (max-width: 1024px) {
  .mega-dropdown { position: fixed; top: auto; bottom: 0; left: 0; right: 0; transform: none; border-radius: 16px 16px 0 0; max-height: 60vh; overflow-y: auto; }
  .navbar-nav li.has-dropdown:hover .mega-dropdown { transform: none; }
  .mega-grid { grid-template-columns: 1fr; min-width: auto; }
  .mega-columns { grid-template-columns: 1fr; min-width: auto; }
  .feature-row { grid-template-columns: 1fr; gap: 40px; }
  .feature-row.reverse { direction: ltr; }
  .solution-highlights { grid-template-columns: 1fr; }
  .pain-points { grid-template-columns: 1fr; }
  .solution-points { grid-template-columns: 1fr; }
  .demo-slides { min-height: 360px; }
  .demo-slide { padding: 16px; }
}

@media (max-width: 768px) {
  .mega-dropdown { display: none; }
  .feature-checklist { grid-template-columns: 1fr; }
  .hero-sub { padding: 120px 0 60px; }
  .demo-slides { min-height: 300px; }
  .demo-slide { padding: 12px; }
  .demo-slide-header { flex-wrap: wrap; }
  .demo-topbar .demo-url { display: none; }
  .mw-profile .mockup-body { flex-direction: column; }
  .mw-grid .mg-sidebar { width: 44px; }
  .mw-grid .mg-label { font-size: 0.4375rem; padding: 0 4px; }
}
