/* ReviewQR SaaS Landing Page - High-Contrast Premium Color Palette System */
@import url('https://fonts.googleapis.com/css2?family=Archivo+Black&family=IBM+Plex+Mono:wght@500;600;700&family=Inter:wght@400;500;600;700;800&display=swap');

:root {
  /* Default Theme 1: Electric Royal Blue & Cyan (High Contrast, Crisp & Professional) */
  --bg: #F8FAFC;
  --bg-alt: #F1F5F9;
  --card-bg: #FFFFFF;
  --ink: #0F172A;
  --ink-muted: #334155;
  --ink-sub: #64748B;
  --border: #E2E8F0;
  --border-dark: #CBD5E1;

  --accent-primary: #2563EB;
  --accent-primary-hover: #1D4ED8;
  --accent-secondary: #06B6D4;
  --emerald: #10B981;
  --amber: #F59E0B;
  --purple: #7C3AED;
  --rose: #E11D48;

  --gradient-btn: linear-gradient(135deg, #2563EB 0%, #06B6D4 100%);
  --gradient-btn-hover: linear-gradient(135deg, #1D4ED8 0%, #0891B2 100%);
  --gradient-text: linear-gradient(135deg, #2563EB 0%, #0D9488 50%, #7C3AED 100%);
  
  --font-display: 'Archivo Black', sans-serif;
  --font-body: 'Inter', sans-serif;
  --font-mono: 'IBM Plex Mono', monospace;

  --shadow-sm: 0 2px 4px rgba(15, 23, 42, 0.04);
  --shadow-md: 0 10px 30px rgba(15, 23, 42, 0.08);
  --shadow-lg: 0 20px 50px rgba(15, 23, 42, 0.12);
  --shadow-accent: 0 10px 25px -5px rgba(37, 99, 235, 0.35);
  
  --radius-sm: 8px;
  --radius-md: 16px;
  --radius-lg: 24px;
}

/* Palette 2: Emerald Mint Lux */
[data-color-theme="emerald"] {
  --bg: #F0FDF4;
  --bg-alt: #DCFCE7;
  --card-bg: #FFFFFF;
  --ink: #064E3B;
  --ink-muted: #166534;
  --ink-sub: #374151;
  --border: #BBF7D0;
  --border-dark: #86EFAC;

  --accent-primary: #059669;
  --accent-primary-hover: #047857;
  --accent-secondary: #10B981;
  
  --gradient-btn: linear-gradient(135deg, #059669 0%, #10B981 100%);
  --gradient-btn-hover: linear-gradient(135deg, #047857 0%, #059669 100%);
  --gradient-text: linear-gradient(135deg, #059669 0%, #0D9488 50%, #0284C7 100%);
  --shadow-accent: 0 10px 25px -5px rgba(16, 185, 129, 0.35);
}

/* Palette 3: Violet Purple Lux */
[data-color-theme="violet"] {
  --bg: #FAF5FF;
  --bg-alt: #F3E8FF;
  --card-bg: #FFFFFF;
  --ink: #3B0764;
  --ink-muted: #6B21A8;
  --ink-sub: #581C87;
  --border: #E9D5FF;
  --border-dark: #D8B4FE;

  --accent-primary: #7C3AED;
  --accent-primary-hover: #6D28D9;
  --accent-secondary: #A855F7;
  
  --gradient-btn: linear-gradient(135deg, #7C3AED 0%, #A855F7 100%);
  --gradient-btn-hover: linear-gradient(135deg, #6D28D9 0%, #9333EA 100%);
  --gradient-text: linear-gradient(135deg, #7C3AED 0%, #EC4899 50%, #2563EB 100%);
  --shadow-accent: 0 10px 25px -5px rgba(124, 58, 237, 0.35);
}

/* Palette 4: Obsidian Dark Mode */
[data-theme="dark"] {
  --bg: #0B0F19;
  --bg-alt: #1E293B;
  --card-bg: #1E293B;
  --ink: #F8FAFC;
  --ink-muted: #CBD5E1;
  --ink-sub: #94A3B8;
  --border: rgba(255, 255, 255, 0.12);
  --border-dark: rgba(255, 255, 255, 0.25);

  --accent-primary: #3B82F6;
  --accent-primary-hover: #2563EB;
  --gradient-btn: linear-gradient(135deg, #3B82F6 0%, #06B6D4 100%);
  --shadow-md: 0 10px 30px rgba(0, 0, 0, 0.4);
  --shadow-lg: 0 20px 50px rgba(0, 0, 0, 0.6);
}

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

/* PREVENT AUTO-ZOOM ON MOBILE INPUT FOCUS */
input[type="text"],
input[type="email"],
input[type="password"],
input[type="tel"],
input[type="url"],
input[type="number"],
select,
textarea {
  font-size: 16px !important;
  touch-action: manipulation;
}

html {
  scroll-behavior: smooth;
  font-family: var(--font-body);
  background-color: var(--bg);
  color: var(--ink);
  overflow-x: hidden;
  transition: background-color 0.25s ease, color 0.25s ease;
  -webkit-text-size-adjust: 100%;
}

body {
  background: var(--bg);
  line-height: 1.6;
}

h1, h2, h3, .heading-display {
  font-family: var(--font-display);
  line-height: 1.15;
  letter-spacing: -0.02em;
  color: var(--ink);
}

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

.mono-tag {
  font-family: var(--font-mono);
  text-transform: uppercase;
  letter-spacing: 0.08em;
  font-weight: 600;
}

.wrap {
  max-width: 1240px;
  margin: 0 auto;
  padding: 0 24px;
}

.text-center { text-align: center; }

.eyebrow {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  font-family: var(--font-mono);
  font-size: 0.85rem;
  font-weight: 700;
  text-transform: uppercase;
  color: var(--accent-primary);
  background: rgba(37, 99, 235, 0.1);
  border: 1px solid rgba(37, 99, 235, 0.25);
  padding: 6px 18px;
  border-radius: 99px;
  margin-bottom: 16px;
}

/* NAVIGATION HEADER */
header {
  position: fixed;
  top: 0; left: 0; width: 100%;
  z-index: 100;
  background: rgba(248, 250, 252, 0.92);
  backdrop-filter: blur(12px);
  border-bottom: 1px solid var(--border);
  transition: all 0.2s ease;
}

[data-theme="dark"] header {
  background: rgba(11, 15, 25, 0.92);
}

.nav {
  display: flex;
  align-items: center;
  justify-content: space-between;
  height: 76px;
  max-width: 1240px;
  margin: 0 auto;
  padding: 0 24px;
}

.logo {
  display: flex;
  align-items: center;
  gap: 10px;
  font-family: var(--font-display);
  font-size: 1.45rem;
  color: var(--ink);
  text-decoration: none;
}

.logo .dot {
  width: 13px;
  height: 13px;
  background: var(--accent-primary);
  border-radius: 50%;
  display: inline-block;
  box-shadow: 0 0 12px var(--accent-primary);
}

.navlinks {
  display: flex;
  align-items: center;
  gap: 28px;
  list-style: none;
}

.nav-item {
  position: relative;
}

.nav-item > a {
  color: var(--ink-muted);
  text-decoration: none;
  font-weight: 600;
  font-size: 0.95rem;
  display: flex;
  align-items: center;
  gap: 4px;
  padding: 8px 0;
  transition: color 0.2s;
}

.nav-item > a:hover {
  color: var(--accent-primary);
}

.chev {
  width: 14px;
  height: 14px;
  transition: transform 0.2s;
}

.nav-item:hover .chev {
  transform: rotate(180deg);
}

.dropdown {
  position: absolute;
  top: 100%;
  left: -12px;
  background: var(--card-bg);
  border: 1px solid var(--border);
  border-radius: var(--radius-sm);
  padding: 12px;
  width: 220px;
  box-shadow: var(--shadow-md);
  opacity: 0;
  visibility: hidden;
  transform: translateY(10px);
  transition: all 0.2s ease;
  z-index: 200;
}

.nav-item:hover .dropdown {
  opacity: 1;
  visibility: visible;
  transform: translateY(0);
}

.dropdown a {
  display: block;
  padding: 8px 12px;
  color: var(--ink-muted);
  text-decoration: none;
  font-weight: 600;
  font-size: 0.88rem;
  border-radius: 6px;
  transition: all 0.15s;
}

.dropdown a:hover {
  background: var(--bg-alt);
  color: var(--accent-primary);
}

.dropdown .all-link {
  color: var(--accent-primary);
  font-weight: 700;
  border-top: 1px solid var(--border);
  margin-top: 6px;
  padding-top: 10px;
}

/* PALETTE SWITCHER DOTS IN NAV */
.palette-picker {
  display: flex;
  align-items: center;
  gap: 6px;
  background: var(--bg-alt);
  padding: 4px 8px;
  border-radius: 99px;
  border: 1px solid var(--border);
}

.color-dot {
  width: 16px;
  height: 16px;
  border-radius: 50%;
  cursor: pointer;
  border: 2px solid transparent;
  transition: transform 0.2s;
}

.color-dot:hover { transform: scale(1.2); }
.color-dot.active { border-color: var(--ink); }

/* MOBILE HAMBURGER TOGGLE BUTTON */
.mobile-menu-btn {
  display: none;
  background: var(--bg-alt);
  border: 1px solid var(--border);
  width: 42px;
  height: 42px;
  border-radius: 8px;
  font-size: 1.3rem;
  color: var(--ink);
  cursor: pointer;
  align-items: center;
  justify-content: center;
}

/* BUTTONS */
.btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 8px;
  padding: 12px 26px;
  border-radius: 99px;
  font-weight: 700;
  font-size: 0.95rem;
  text-decoration: none;
  cursor: pointer;
  border: none;
  transition: all 0.25s cubic-bezier(0.4, 0, 0.2, 1);
}

.btn-brand {
  background: var(--gradient-btn);
  color: #FFFFFF;
  box-shadow: var(--shadow-accent);
}

.btn-brand:hover {
  background: var(--gradient-btn-hover);
  transform: translateY(-2px);
  box-shadow: 0 14px 30px -5px rgba(37, 99, 235, 0.45);
}

.btn-outline {
  background: transparent;
  color: var(--ink);
  border: 2px solid var(--border-dark);
}

.btn-outline:hover {
  border-color: var(--accent-primary);
  color: var(--accent-primary);
  background: var(--bg-alt);
}

.nav-icon-btn {
  background: var(--bg-alt);
  border: 1px solid var(--border);
  width: 40px;
  height: 40px;
  border-radius: 50%;
  cursor: pointer;
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 1.1rem;
}

/* HERO SECTION WITH IMAGE BACKGROUND */
.hero {
  position: relative;
  padding-top: 140px;
  padding-bottom: 80px;
  background: linear-gradient(180deg, rgba(248, 250, 252, 0.82) 0%, rgba(248, 250, 252, 0.95) 100%), url('../images/hero_bg.jpg') center/cover no-repeat;
  overflow: hidden;
}

[data-theme="dark"] .hero {
  background: linear-gradient(180deg, rgba(11, 15, 25, 0.85) 0%, rgba(11, 15, 25, 0.96) 100%), url('../images/hero_bg.jpg') center/cover no-repeat;
}

.hero-grid {
  display: grid;
  grid-template-columns: 1.1fr 0.9fr;
  gap: 48px;
  align-items: center;
  position: relative;
  z-index: 2;
}

.hero h1 {
  font-size: clamp(2.2rem, 5vw, 4rem);
  margin-top: 16px;
  margin-bottom: 20px;
}

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

.lead {
  font-size: 1.1rem;
  color: var(--ink-muted);
  margin-bottom: 32px;
  line-height: 1.65;
}

.hero-ctas {
  display: flex;
  align-items: center;
  gap: 16px;
  margin-bottom: 40px;
  flex-wrap: wrap;
}

.badges {
  display: flex;
  align-items: center;
  gap: 24px;
  flex-wrap: wrap;
}

.badge {
  display: flex;
  align-items: center;
  gap: 8px;
  font-size: 0.88rem;
  font-weight: 700;
  color: var(--ink-muted);
}

.badge svg {
  width: 18px;
  height: 18px;
  color: var(--emerald);
}

/* HERO ART / STUDIO CONTAINER */
.hero-art-box {
  background: var(--card-bg);
  border: 2px solid var(--border);
  border-radius: var(--radius-lg);
  padding: 28px;
  box-shadow: var(--shadow-lg);
  position: relative;
}

/* FLOATING STATS OVERLAY CARD */
.floating-stats-card {
  background: rgba(15, 23, 42, 0.92);
  backdrop-filter: blur(12px);
  border: 1px solid rgba(255, 255, 255, 0.15);
  border-radius: 16px;
  padding: 18px 24px;
  margin-top: 20px;
}

.stats-grid-3col {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 12px;
  text-align: center;
}

.stat-num {
  font-family: var(--font-display);
  font-size: 1.6rem;
  color: #38BDF8;
}

.stat-lbl {
  font-size: 0.75rem;
  color: rgba(255, 255, 255, 0.75);
  font-weight: 700;
  margin-top: 2px;
}

/* TRUST TICKER BAR */
.trust {
  background: var(--card-bg);
  border-top: 1px solid var(--border);
  border-bottom: 1px solid var(--border);
  padding: 20px 0;
}

.trust .wrap {
  display: flex;
  align-items: center;
  justify-content: space-around;
  flex-wrap: wrap;
  gap: 20px;
}

.trust span {
  display: flex;
  align-items: center;
  gap: 8px;
  font-weight: 700;
  font-size: 0.92rem;
  color: var(--ink-muted);
}

.trust svg {
  width: 18px;
  height: 18px;
  color: var(--emerald);
}

/* SERVICES & FEATURES SECTION */
.section-padding {
  padding: 80px 0;
}

.section-head {
  text-align: center;
  max-width: 720px;
  margin: 0 auto 48px auto;
}

.section-head h2 {
  font-size: clamp(1.8rem, 4vw, 2.8rem);
  margin-top: 12px;
  margin-bottom: 16px;
}

.section-head p {
  color: var(--ink-muted);
  font-size: 1.05rem;
}

/* SERVICE / FEATURE CARD GRID WITH REAL IMAGES */
.srv-img-grid {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 28px;
}

.srv-img-card {
  background: var(--card-bg);
  border: 2px solid var(--border);
  border-radius: var(--radius-md);
  overflow: hidden;
  transition: transform 0.25s, box-shadow 0.25s, border-color 0.25s;
  display: flex;
  flex-direction: column;
}

.srv-img-card:hover {
  transform: translateY(-6px);
  box-shadow: var(--shadow-md);
  border-color: var(--accent-primary);
}

.srv-img-card-thumb {
  position: relative;
  width: 100%;
  height: 220px;
  overflow: hidden;
  background: var(--bg-alt);
}

.srv-img-card-thumb img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  display: block;
  transition: transform 0.3s ease;
}

.srv-img-card:hover .srv-img-card-thumb img {
  transform: scale(1.05);
}

.srv-img-card-popular {
  position: absolute;
  top: 12px;
  right: 12px;
  background: var(--accent-primary);
  color: #FFFFFF;
  font-family: var(--font-mono);
  font-size: 0.75rem;
  font-weight: 700;
  padding: 4px 12px;
  border-radius: 99px;
  box-shadow: 0 4px 10px rgba(0,0,0,0.25);
  z-index: 2;
}

.srv-img-card-body {
  padding: 24px;
  display: flex;
  flex-direction: column;
  flex-grow: 1;
}

.srv-img-card-body h3 {
  font-size: 1.25rem;
  margin-bottom: 10px;
}

.srv-img-card-body p {
  color: var(--ink-muted);
  font-size: 0.92rem;
  line-height: 1.55;
  margin-bottom: 20px;
  flex-grow: 1;
}

.srv-img-card-link {
  color: var(--accent-primary);
  font-weight: 700;
  text-decoration: none;
  display: inline-flex;
  align-items: center;
  gap: 6px;
  font-size: 0.92rem;
}

.srv-img-card-link:hover {
  color: var(--accent-primary-hover);
}

/* SMART ROUTING SIMULATOR */
.sim-card {
  background: var(--card-bg);
  border: 2px solid var(--border);
  border-radius: var(--radius-md);
  padding: 32px;
  box-shadow: var(--shadow-md);
}

.star-selector {
  display: flex;
  justify-content: center;
  gap: 12px;
  margin: 24px 0;
}

.star-btn {
  background: var(--bg-alt);
  border: 1px solid var(--border);
  width: 48px;
  height: 48px;
  border-radius: 12px;
  font-size: 1.3rem;
  color: var(--ink-sub);
  cursor: pointer;
  transition: all 0.2s;
}

.star-btn:hover, .star-btn.active {
  background: rgba(245, 158, 11, 0.18);
  border-color: var(--amber);
  color: var(--amber);
  transform: scale(1.1);
}

.result-card-box {
  padding: 20px;
  border-radius: var(--radius-sm);
  margin-top: 16px;
}

.result-card-box.positive {
  background: #ECFDF5;
  border: 1px solid #A7F3D0;
  color: #065F46;
}

.result-card-box.private {
  background: #FFF1F2;
  border: 1px solid #FECDD3;
  color: #9F1239;
}

/* ANALYTICS BOARD */
.analytics-box {
  background: var(--card-bg);
  border: 2px solid var(--border);
  border-radius: var(--radius-md);
  padding: 28px;
}

.chart-sim-bars {
  display: flex;
  align-items: flex-end;
  justify-content: space-between;
  height: 150px;
  padding-top: 24px;
  border-bottom: 1px solid var(--border);
  gap: 12px;
}

.chart-bar-group {
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 8px;
  flex: 1;
}

.chart-bar {
  width: 100%;
  max-width: 32px;
  background: var(--gradient-btn);
  border-radius: 6px 6px 0 0;
  transition: height 0.5s ease;
}

/* CALCULATOR */
.calc-card {
  background: var(--card-bg);
  border: 2px solid var(--accent-primary);
  border-radius: var(--radius-lg);
  padding: 40px;
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 40px;
  align-items: center;
  box-shadow: var(--shadow-md);
}

/* PRICING GRID */
.pricing-grid {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 28px;
}

.price-card {
  background: var(--card-bg);
  border: 2px solid var(--border);
  border-radius: var(--radius-md);
  padding: 36px 28px;
  display: flex;
  flex-direction: column;
  position: relative;
}

.price-card.popular {
  border-color: var(--accent-primary);
  box-shadow: var(--shadow-accent);
}

.price-badge {
  position: absolute;
  top: -12px;
  left: 50%;
  transform: translateX(-50%);
  background: var(--gradient-btn);
  color: #FFFFFF;
  font-family: var(--font-mono);
  font-size: 0.75rem;
  font-weight: 700;
  padding: 4px 14px;
  border-radius: 99px;
}

/* FAQ ACCORDION */
.faq-box {
  max-width: 800px;
  margin: 0 auto;
  display: flex;
  flex-direction: column;
  gap: 16px;
}

.faq-item {
  background: var(--card-bg);
  border: 2px solid var(--border);
  border-radius: var(--radius-sm);
  overflow: hidden;
}

.faq-q {
  padding: 22px;
  font-weight: 700;
  font-size: 1.05rem;
  cursor: pointer;
  display: flex;
  justify-content: space-between;
  align-items: center;
}

.faq-a {
  padding: 0 22px 22px 22px;
  color: var(--ink-muted);
  display: none;
}

.faq-item.active .faq-a { display: block; }

/* FOOTER */
footer {
  background: #0B0F19;
  color: #94A3B8;
  padding: 60px 0 30px 0;
  border-top: 1px solid rgba(255,255,255,0.1);
}

footer a { color: #CBD5E1; text-decoration: none; }
footer a:hover { color: var(--accent-primary); }

/* MODAL */
.modal-overlay {
  position: fixed;
  top:0; left:0; right:0; bottom:0;
  background: rgba(15, 23, 42, 0.7);
  backdrop-filter: blur(6px);
  z-index: 999;
  display: flex;
  align-items: center;
  justify-content: center;
  opacity: 0;
  pointer-events: none;
  transition: opacity 0.25s;
}

.modal-overlay.active { opacity: 1; pointer-events: auto; }

.modal-content {
  background: var(--card-bg);
  border: 2px solid var(--border);
  border-radius: var(--radius-md);
  padding: 36px;
  width: 100%;
  max-width: 480px;
  position: relative;
}

/* TABLE RESPONSIVE SCROLL CONTAINER */
.table-responsive {
  width: 100%;
  overflow-x: auto;
  -webkit-overflow-scrolling: touch;
}

/* ==========================================================================
   COMPREHENSIVE RESPONSIVE MEDIA QUERIES (TABLETS & MOBILE)
   ========================================================================== */

@media (max-width: 1024px) {
  .wrap { padding: 0 20px; }
  .srv-img-grid { grid-template-columns: repeat(2, 1fr); }
  .pricing-grid { grid-template-columns: repeat(2, 1fr); }
}

@media (max-width: 900px) {
  .mobile-menu-btn { display: flex; }

  /* OFF-CANVAS MOBILE DRAWER NAVIGATION */
  .navlinks {
    position: fixed;
    top: 76px; left: 0; width: 100%;
    background: var(--card-bg);
    border-bottom: 2px solid var(--border);
    flex-direction: column;
    align-items: stretch;
    padding: 24px;
    gap: 16px;
    box-shadow: var(--shadow-lg);
    display: none;
    z-index: 150;
  }

  .navlinks.active {
    display: flex;
  }

  .nav-item > a {
    font-size: 1.1rem;
    padding: 10px 0;
  }

  .dropdown {
    position: static;
    opacity: 1;
    visibility: visible;
    transform: none;
    box-shadow: none;
    border: none;
    width: 100%;
    padding: 0 0 0 16px;
    margin-top: 4px;
    background: transparent;
  }

  .hero-grid { grid-template-columns: 1fr; gap: 36px; }
  .hero { padding-top: 110px; padding-bottom: 60px; text-align: center; }
  .hero-ctas { justify-content: center; }
  .badges { justify-content: center; }

  .calc-card { grid-template-columns: 1fr; padding: 24px; }
  .srv-img-grid { grid-template-columns: 1fr; }
  .pricing-grid { grid-template-columns: 1fr; }

  .stats-grid-3col { grid-template-columns: 1fr; gap: 16px; }
  .stats-grid-3col > div { border: none !important; }
}

@media (max-width: 600px) {
  .hero h1 { font-size: 2.2rem; }
  .lead { font-size: 1rem; }
  .btn { width: 100%; }
  .hero-ctas { flex-direction: column; width: 100%; }
  .hero-art-box { padding: 18px; }
  .sim-card { padding: 20px 16px; }
  .star-box { gap: 4px; }
  .star-btn { width: 40px; height: 40px; font-size: 1.1rem; }
}
