/**
 * Quick & Go V2 - Custom UI (NEW)
 * Goal: a clean, modern distributor look (B2B/B2C) with a modular component system.
 * This file intentionally does NOT reuse the freelan_web design.
 */

/* ------------------------------
   Design Tokens (from website-evaluation)
   Custom theme for Quick & Go - professional delivery service
------------------------------ */
:root {
  /* Fonts */
  --qg-font: "Inter", system-ui, -apple-system, Segoe UI, Roboto, Helvetica, Arial, "Apple Color Emoji", "Segoe UI Emoji";
  --qg-mono: ui-monospace, SFMono-Regular, Menlo, Monaco, Consolas, "Liberation Mono", "Courier New", monospace;
  --qg-heading-font: "Montserrat", var(--qg-font);

  /* Premium design system with refined colors and spacing */
  --background: oklch(0.99 0 0);
  --foreground: oklch(0.12 0.01 250);
  --card: oklch(1 0 0);
  --card-foreground: oklch(0.12 0.01 250);
  --popover: oklch(1 0 0);
  --popover-foreground: oklch(0.12 0.01 250);

  /* Primary: Rich gold for premium feel */
  --primary: oklch(0.58 0.14 75);
  --primary-foreground: oklch(0.99 0 0);

  /* Secondary: Deep navy for professionalism */
  --secondary: oklch(0.25 0.08 250);
  --secondary-foreground: oklch(0.99 0 0);

  /* Accent: Vibrant blue for CTAs */
  --accent: oklch(0.55 0.18 235);
  --accent-foreground: oklch(0.99 0 0);

  --muted: oklch(0.97 0.003 250);
  --muted-foreground: oklch(0.48 0.015 250);

  --destructive: oklch(0.55 0.22 25);
  --destructive-foreground: oklch(0.99 0 0);

  --success: oklch(0.65 0.15 145);
  --success-foreground: oklch(0.99 0 0);

  --warning: oklch(0.75 0.15 65);
  --warning-foreground: oklch(0.12 0.01 250);

  --info: oklch(0.65 0.18 235);
  --info-foreground: oklch(0.99 0 0);

  --border: oklch(0.92 0.003 250);
  --input: oklch(0.94 0.003 250);
  --ring: oklch(0.58 0.14 75);

  /* Border radius */
  --radius: 0.875rem;
  --radius-sm: calc(var(--radius) - 4px);
  --radius-md: calc(var(--radius) - 2px);
  --radius-lg: var(--radius);
  --radius-xl: calc(var(--radius) + 4px);
  --radius-pill: 999px;

  /* Legacy compatibility variables (mapped to new system) */
  --qg-bg: var(--background);
  --qg-bg-2: var(--muted);
  --qg-surface: var(--card);
  --qg-surface-solid: var(--card);
  --qg-surface-2: var(--muted);
  --qg-text: var(--foreground);
  --qg-text-inverse: var(--primary-foreground);
  --qg-muted: var(--muted-foreground);
  --qg-border: var(--border);
  --qg-border-strong: var(--border);
  --qg-primary: var(--primary);
  --qg-primary-2: var(--secondary);
  --qg-primary-3: var(--accent);
  --qg-success: var(--success);
  --qg-warning: var(--warning);
  --qg-danger: var(--destructive);
  --qg-info: var(--info);
  --qg-gold: var(--primary);
  --qg-gold-2: oklch(0.5 0.14 75);
  --qg-black: var(--foreground);
  --qg-light: var(--muted);

  /* Shadows */
  --qg-shadow-sm: 0 2px 8px oklch(0.15 0 0 / 0.1);
  --qg-shadow-md: 0 4px 16px oklch(0.15 0 0 / 0.1);
  --qg-shadow-lg: 0 8px 32px oklch(0.15 0 0 / 0.12);
  --qg-ring: 0 0 0 4px oklch(0.35 0.12 250 / 0.2);

  /* Spacing */
  --qg-space-1: 4px;
  --qg-space-2: 8px;
  --qg-space-3: 12px;
  --qg-space-4: 16px;
  --qg-space-5: 20px;
  --qg-space-6: 24px;
  --qg-space-8: 32px;
  --qg-space-10: 40px;
  --qg-space-12: 48px;

  /* Radius compatibility */
  --qg-radius-lg: var(--radius-lg);
  --qg-radius-xl: var(--radius-xl);
}

.dark {
  /* Dark mode with sophisticated contrast */
  --background: oklch(0.12 0.015 250);
  --foreground: oklch(0.96 0 0);
  --card: oklch(0.16 0.015 250);
  --card-foreground: oklch(0.96 0 0);
  --popover: oklch(0.16 0.015 250);
  --popover-foreground: oklch(0.96 0 0);

  --primary: oklch(0.68 0.16 75);
  --primary-foreground: oklch(0.12 0.015 250);

  --secondary: oklch(0.22 0.025 250);
  --secondary-foreground: oklch(0.96 0 0);

  --accent: oklch(0.65 0.2 235);
  --accent-foreground: oklch(0.12 0.015 250);

  --muted: oklch(0.2 0.02 250);
  --muted-foreground: oklch(0.62 0.02 250);

  --destructive: oklch(0.6 0.24 25);
  --destructive-foreground: oklch(0.96 0 0);

  --success: oklch(0.7 0.17 145);
  --success-foreground: oklch(0.12 0.015 250);

  --warning: oklch(0.8 0.17 65);
  --warning-foreground: oklch(0.12 0.015 250);

  --info: oklch(0.7 0.2 235);
  --info-foreground: oklch(0.12 0.015 250);

  --border: oklch(0.26 0.025 250);
  --input: oklch(0.24 0.025 250);
  --ring: oklch(0.68 0.16 75);
}

/* ------------------------------
   Base / Reset
------------------------------ */
*,
*::before,
*::after { box-sizing: border-box; }

html, body { height: 100%; }

body {
  margin: 0;
  font-family: var(--qg-font);
  color: var(--foreground);
  background-color: var(--background);
  min-height: 100vh;
  line-height: 1.65;
  -webkit-font-smoothing: antialiased;
  -moz-osx-font-smoothing: grayscale;
}

/* Premium typography */
h1, h2, h3, h4, h5, h6 {
  font-weight: 700;
  letter-spacing: -0.02em;
}

p {
  text-wrap: pretty;
}

a { color: inherit; text-decoration: none; }
img { max-width: 100%; height: auto; display: block; }

.page { min-height: 100vh; display: flex; flex-direction: column; }
.main { flex: 1; }

.container {
  max-width: 1200px;
  margin: 0 auto;
  padding: 0 20px;
}

.container-fluid {
  width: 100%;
  max-width: none;
  margin: 0;
  padding: 0 20px;
}

.section { padding: 80px 0; }
.section-alt {
  background-color: var(--muted);
  border-top: 1px solid var(--border);
  border-bottom: 1px solid var(--border);
  position: relative;
}

@media (max-width: 980px) {
  .section { padding: 60px 0; }
}

@media (max-width: 620px) {
  .section { padding: 50px 0; }
}

/* Full-width workflow band (uses platform-bg.svg alone, no side-by-side content) */
.workflow-band { padding: 34px 0; }
.workflow-band-media {
  padding: 0;
  margin-top: 12px;
}
.workflow-band-img {
  width: 100%;
  height: 340px;
  display: block;
  max-height: none;
  object-fit: cover;
  object-position: center 44%;
  border-radius: 0;
  box-shadow: none;
}
@media (max-width: 980px) {
  .workflow-band-img { height: 300px; }
}
@media (max-width: 620px) {
  .workflow-band { padding: 26px 0; }
  .workflow-band-img { height: 240px; }
}

/* Split sections: reserve a real empty side for illustration (aljadid-style) */
.section-split .split-grid {
  display: grid;
  gap: 34px;
  align-items: center;
}
.section-split.split-right .split-grid {
  grid-template-columns: minmax(0, 760px) minmax(0, 1fr);
  grid-template-areas: "copy art";
}
.section-split.split-left .split-grid {
  grid-template-columns: minmax(0, 1fr) minmax(0, 760px);
  grid-template-areas: "art copy";
}
.split-copy { grid-area: copy; min-width: 0; }
.split-art { grid-area: art; min-width: 0; display: flex; justify-content: center; }
.split-art-img {
  width: min(820px, 100%);
  max-width: 820px;
  height: auto;
  border-radius: 28px;
  border: 1px solid var(--qg-border);
  background: rgba(2, 6, 23, 0.04);
  pointer-events: none;
  user-select: none;
  filter: drop-shadow(0 26px 44px rgba(2, 6, 23, 0.16));
}
.split-art-img--client {
  max-width: 460px;
  width: min(460px, 100%);
  border: none;
  background: transparent;
  border-radius: 22px;
  object-fit: contain;
  filter: drop-shadow(0 22px 40px rgba(2, 6, 23, 0.22));
}

/* Split photo variant (portrait-friendly): keeps tall photos readable without making the section huge */
.split-art-img--cover {
  height: 520px;
  object-fit: cover;
  /* Focus on the bag / logo area (lower part of the photo) */
  object-position: center 72%;
}
@media (max-width: 980px) {
  .split-art-img--cover { height: 420px; object-position: center 75%; }
}
@media (max-width: 620px) {
  /* Home + split sections: tighter, more modular layout on phones */
  .section { padding: 26px 0; }
  .section-split .split-grid { gap: 18px; }

  .split-art { display: block; }
  .split-art-img {
    width: 100%;
    max-width: 100%;
    border-radius: 20px;
  }

  /* Bag photo (mobile): fill the rounded frame like desktop, keep logo/bag in view */
  .split-art-img--cover {
    height: 420px;
    object-fit: cover;
    /* Bias toward the lower part of the photo (bag/logo) */
    object-position: center 82%;
    background: rgba(2, 6, 23, 0.04);
  }

  /* Illustration variant (SVG): don't add a heavy frame on mobile */
  .split-art-img--illustration {
    background: transparent;
    border: none;
    filter: drop-shadow(0 22px 40px rgba(2, 6, 23, 0.22));
  }

  /* Workflow band: look like a premium card on mobile (not edge-to-edge) */
  .workflow-band-media { padding: 0 20px; }
  .workflow-band-img {
    height: 240px;
    border-radius: 20px;
    border: 1px solid var(--qg-border);
    background: rgba(2, 6, 23, 0.04);
  }
}

/* Workflow infographic: keep SVG on desktop/tablet, use readable HTML steps on mobile */
.workflow-steps { display: none; }
.workflow-steps-grid { display: grid; gap: 12px; }
.workflow-step { padding: 14px; }
.workflow-step-top { display: flex; align-items: center; gap: 10px; }
.workflow-step-badge {
  width: 28px;
  height: 28px;
  border-radius: 999px;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  font-weight: 900;
  font-size: 12px;
  letter-spacing: 0.02em;
  background: linear-gradient(135deg, var(--qg-gold), var(--qg-gold-2));
  color: rgba(28, 28, 28, 0.96);
  box-shadow: 0 10px 24px rgba(212, 175, 55, 0.18);
  flex: 0 0 auto;
}
.workflow-step-title { font-weight: 950; letter-spacing: -0.01em; }
.workflow-step-desc { margin-top: 8px; color: var(--qg-muted); font-size: 14px; line-height: 1.6; }
.workflow-steps-actions { margin-top: 12px; display: flex; justify-content: center; }

@media (max-width: 620px) {
  .workflow-diagram { display: none; }
  .workflow-steps { display: block; margin-top: 14px; }
}
@media (max-width: 980px) {
  .section-split .split-grid {
    /* Mobile reliability: avoid CSS Grid quirks on some phones */
    display: flex;
    flex-direction: column;
    gap: 22px;
    align-items: stretch;
  }
  /* Always show the image first on mobile, regardless of split-left/right DOM order */
  .section-split .split-art { order: -1; }
  .section-split .split-copy { order: 0; }
  .split-art-img { width: 100%; max-width: 100%; }
  .split-art-img--client { width: min(460px, 100%); }
}

/* ------------------------------
   Footer
------------------------------ */
.footer {
  margin-top: 40px;
  border-top: 1px solid var(--border);
  background-color: var(--muted);
}

.footer-main {
  display: grid;
  grid-template-columns: 1.2fr 1fr 1fr;
  gap: 22px;
  padding: 28px 0;
}

@media (max-width: 900px) {
  .footer-main { grid-template-columns: 1fr; }
}

.footer-col { min-width: 0; }
.footer-brand { margin: 0; font-weight: 950; letter-spacing: 0.08em; }
.footer-tagline { margin: 10px 0 0 0; color: var(--muted-foreground); line-height: 1.6; }
.footer-heading { margin: 0 0 10px 0; font-weight: 900; letter-spacing: -0.01em; }

.footer-nav { display: flex; flex-direction: column; gap: 10px; }
.footer-nav a {
  color: var(--muted-foreground);
  padding: 6px 0;
  font-weight: 500;
  transition: color 0.15s ease;
}
.footer-nav a:hover { 
  color: var(--foreground); 
  text-decoration: underline; 
}
.footer-link-muted { 
  color: var(--muted-foreground) !important; 
}

.footer-bottom {
  padding: 16px 0 22px;
  border-top: 1px solid rgba(2, 6, 23, 0.08);
}
.footer-copy { margin: 0; color: var(--muted-foreground); }

/* ------------------------------
   Typography helpers
------------------------------ */
.content-header { 
  margin-bottom: 64px; 
  text-align: center;
  position: relative;
}

@media (max-width: 980px) {
  .content-header { margin-bottom: 48px; }
}

@media (max-width: 620px) {
  .content-header { margin-bottom: 40px; }
}

.content-title { 
  margin: 0; 
  font-size: clamp(28px, 3.5vw, 36px); 
  letter-spacing: -0.03em; 
  font-family: var(--qg-heading-font);
  font-weight: 800;
  line-height: 1.2;
}

.content-subtitle { 
  margin: 16px 0 0 0; 
  color: var(--qg-muted); 
  line-height: 1.7; 
  font-size: 16px;
  max-width: 700px;
  margin-left: auto;
  margin-right: auto;
}

.heading-4 { font-size: 28px; font-weight: 800; letter-spacing: -0.02em; font-family: var(--qg-heading-font); }
.heading-5 { font-size: 18px; font-weight: 800; letter-spacing: -0.01em; font-family: var(--qg-heading-font); }

.text-body { color: rgba(2, 6, 23, 0.86); line-height: 1.65; }
.text-sm { font-size: 14px; }
.text-xs { font-size: 12px; color: var(--qg-muted); }

.text-muted { color: var(--qg-muted); }
.text-primary { color: var(--qg-primary); }

.font-semibold { font-weight: 700; }
.font-bold { font-weight: 800; }

/* ------------------------------
   Header / Navbar
------------------------------ */
.header {
  position: fixed;
  top: 0;
  left: 0;
  right: 0;
  z-index: 50;
  transition: all 0.3s ease;
  background-color: transparent;
}

.header.scrolled {
  background-color: rgba(255, 255, 255, 0.8);
  backdrop-filter: blur(16px);
  -webkit-backdrop-filter: blur(16px);
  border-bottom: 1px solid var(--border);
  box-shadow: 0 8px 30px rgba(0, 0, 0, 0.12), 0 2px 8px rgba(0, 0, 0, 0.08);
}

.dark .header.scrolled {
  background-color: rgba(18, 18, 18, 0.8);
  border-bottom-color: rgba(255, 255, 255, 0.1);
}

.header-inner {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 16px;
  padding: 10px 0;
}

.header-actions {
  display: inline-flex;
  align-items: center;
  gap: 12px;
  flex-shrink: 0;
}

.logo { display: inline-flex; align-items: center; gap: 10px; }
.logo-img {
  height: 80px;
  width: auto;
  filter:
    drop-shadow(0 18px 28px rgba(229, 231, 240, 0.55))
    drop-shadow(0 12px 22px rgba(212, 175, 55, 0.10));
}

@media (max-width: 860px) {
  .logo-img { height: 62px; }
}

.nav-actions {
  display: inline-flex;
  align-items: center;
  gap: 10px;
}

.icon-btn {
  width: 40px;
  height: 40px;
  border: 1px solid var(--border);
  border-radius: var(--radius-sm);
  background-color: var(--background);
  cursor: pointer;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  position: relative;
  transition: all 0.15s ease;
}
.icon-btn:hover {
  transform: translateY(-1px);
  border-color: var(--primary);
  background-color: var(--muted);
  box-shadow: var(--qg-shadow-sm);
}
.icon-btn:active {
  transform: translateY(0) scale(0.97);
}
.icon-btn svg { 
  width: 18px; 
  height: 18px; 
  color: var(--muted-foreground); 
}

.icon-btn .notification-badge {
  position: absolute;
  top: -8px;
  right: -8px;
}

.dropdown { position: relative; }
.dropdown-menu {
  position: absolute;
  top: calc(100% + 10px);
  right: 0;
  width: 360px;
  max-width: calc(100vw - 32px);
  z-index: 80;
  background-color: var(--popover);
  border: 1px solid var(--border);
  border-radius: var(--radius-lg);
  box-shadow: var(--qg-shadow-lg);
  padding: 8px;
  opacity: 0;
  transform: translateY(-6px) scale(0.98);
  pointer-events: none;
  transition: opacity 0.15s ease, transform 0.15s ease;
}
.dropdown.is-open .dropdown-menu {
  opacity: 1;
  transform: translateY(0) scale(1);
  pointer-events: auto;
}
.dropdown-header {
  padding: 10px 10px 8px;
  border-bottom: 1px solid var(--border);
  margin-bottom: 8px;
}
.dropdown-title { 
  margin: 0; 
  font-weight: 600; 
  letter-spacing: -0.01em; 
  color: var(--popover-foreground);
}
.dropdown-subtitle { 
  margin-top: 4px; 
  color: var(--muted-foreground); 
  font-size: 12px; 
}
.dropdown-list { max-height: 320px; overflow: auto; padding: 2px; }
.dropdown-item {
  display: flex;
  gap: 10px;
  padding: 10px;
  border-radius: var(--radius-sm);
  border: 1px solid transparent;
  transition: all 0.15s ease;
}
.dropdown-item:hover {
  background-color: var(--muted);
  border-color: var(--border);
}
.dropdown-item.unread { 
  background-color: var(--muted); 
  border-color: var(--primary); 
}
.dropdown-item-title { 
  font-weight: 500; 
  font-size: 13px; 
  line-height: 1.25; 
  color: var(--popover-foreground);
}
.dropdown-item-msg { 
  margin-top: 4px; 
  color: var(--muted-foreground); 
  font-size: 12px; 
  line-height: 1.35; 
}
.dropdown-item-meta { 
  margin-top: 6px; 
  color: var(--muted-foreground); 
  font-size: 11px; 
}

.dropdown-item-title,
.dropdown-item-msg {
  display: -webkit-box;
  -webkit-box-orient: vertical;
  overflow: hidden;
}
.dropdown-item-title { -webkit-line-clamp: 1; line-clamp: 1; }
.dropdown-item-msg { -webkit-line-clamp: 2; line-clamp: 2; }
.dropdown-footer {
  margin-top: 8px;
  padding: 10px;
  border-top: 1px solid rgba(2, 6, 23, 0.08);
  display: flex;
  gap: 10px;
  align-items: center;
  justify-content: space-between;
  flex-wrap: wrap;
}

.account-btn {
  display: inline-flex;
  align-items: center;
  gap: 10px;
  padding: 6px 10px;
  border-radius: var(--radius);
  border: 1px solid var(--border);
  background-color: var(--background);
  color: var(--foreground);
  cursor: pointer;
  font-weight: 500;
  font-size: 14px;
  transition: all 0.15s ease;
}
.account-btn:hover {
  transform: translateY(-1px);
  border-color: var(--primary);
  background-color: var(--muted);
  box-shadow: var(--qg-shadow-sm);
}
.account-btn:active {
  transform: translateY(0) scale(0.98);
}
.avatar {
  width: 32px;
  height: 32px;
  border-radius: 999px;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  color: var(--primary-foreground);
  font-weight: 600;
  letter-spacing: 0.06em;
  background-color: var(--primary);
  box-shadow: var(--qg-shadow-sm);
}
.account-label { 
  display: inline-block; 
  color: var(--foreground);
}
.caret { 
  width: 14px; 
  height: 14px; 
  color: var(--muted-foreground);
}

@media (max-width: 860px) {
  .account-label { display: none; }
  .dropdown-menu { right: 0; left: auto; width: min(360px, calc(100vw - 24px)); }
}
@media (max-width: 620px) {
  .dropdown { position: static; }
  .dropdown-menu {
    position: fixed;
    top: 92px;
    left: 12px;
    right: 12px;
    width: auto;
    max-width: none;
  }
  .dropdown-list { max-height: 50vh; }
  .icon-btn { width: 42px; height: 42px; border-radius: 14px; }
  .account-btn { padding: 8px 8px; }
  .caret { display: none; }
  .nav-toggle { width: 42px; height: 42px; }
}


.nav-toggle {
  display: none;
  width: 44px;
  height: 44px;
  border: 1px solid rgba(2, 6, 23, 0.12);
  border-radius: 12px;
  background: rgba(255, 255, 255, 0.78);
  cursor: pointer;
  transition: transform .15s ease, background .15s ease, border-color .15s ease, box-shadow .15s ease;
}
.nav-toggle:hover {
  transform: translateY(-1px);
  border-color: rgba(212,175,55,0.32);
  background: rgba(212,175,55,0.10);
  box-shadow: 0 14px 28px rgba(2, 6, 23, 0.10);
}
.nav-toggle:active {
  transform: translateY(0) scale(0.97);
}
.nav-toggle-line {
  display: block;
  height: 2px;
  width: 18px;
  margin: 6px auto;
  background: rgba(2, 6, 23, 0.70);
  border-radius: 999px;
  transform-origin: center;
  transition: transform .18s ease, opacity .18s ease;
}
.nav-toggle[aria-expanded="true"] .nav-toggle-line:nth-child(1) {
  transform: translateY(7px) rotate(45deg);
}
.nav-toggle[aria-expanded="true"] .nav-toggle-line:nth-child(2) {
  transform: translateY(-7px) rotate(-45deg);
}

.nav {
  display: flex;
  align-items: center;
  gap: 10px;
  flex-wrap: wrap;
  flex: 1;
  justify-content: center;
}

.nav a:not(.btn) {
  padding: 8px 12px;
  border-radius: var(--radius-sm);
  color: var(--muted-foreground);
  font-weight: 500;
  font-size: 14px;
  transition: background 0.15s ease, color 0.15s ease;
}

.nav a:not(.btn):hover {
  background-color: var(--muted);
  color: var(--foreground);
}

.nav a:not(.btn).active {
  background-color: var(--primary);
  color: var(--primary-foreground);
}

.nav-backdrop {
  display: none;
}

/* Mobile nav */
@media (max-width: 860px) {
  .nav-toggle { display: inline-block; }
  .nav {
    position: fixed;
    top: 104px;
    right: 16px;
    left: 16px;
    z-index: 70;
    padding: 14px;
    border-radius: 16px;
    border: 1px solid rgba(2, 6, 23, 0.10);
    background: rgba(255, 255, 255, 0.94);
    box-shadow: var(--qg-shadow-md);
    display: flex;
    flex-direction: column;
    align-items: stretch;
    opacity: 0;
    transform: translateY(-10px) scale(0.985);
    transform-origin: top center;
    pointer-events: none;
    visibility: hidden;
    transition:
      opacity .18s ease,
      transform .18s ease,
      visibility 0s linear .18s;
  }
  .nav.is-open {
    opacity: 1;
    transform: translateY(0) scale(1);
    pointer-events: auto;
    visibility: visible;
    transition:
      opacity .22s ease,
      transform .22s ease,
      visibility 0s;
  }
  .nav a { width: 100%; }
  .nav-backdrop {
    position: fixed;
    inset: 0;
    z-index: 60;
    background: rgba(2, 6, 23, 0.60);
    display: block;
    opacity: 0;
    pointer-events: none;
    visibility: hidden;
    transition:
      opacity .18s ease,
      visibility 0s linear .18s;
  }
  .nav-backdrop.is-visible {
    opacity: 1;
    pointer-events: auto;
    visibility: visible;
    transition:
      opacity .22s ease,
      visibility 0s;
  }
}

/* Floating WhatsApp button */
.whatsapp-float {
  position: fixed;
  right: 18px;
  bottom: 18px;
  top:90px;
  /* Keep it above page content, but below the sticky header so it never covers the logo */
  z-index: 45;
  width: 56px;
  height: 56px;
  border-radius: 18px;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  background: #25d366;
  color: #0b1220;
  border: 1px solid rgba(2, 6, 23, 0.10);
  box-shadow: 0 18px 44px rgba(2, 6, 23, 0.18);
  transition: transform .15s ease, box-shadow .15s ease, filter .15s ease;
}
.whatsapp-float:hover {
  transform: translateY(-2px);
  box-shadow: 0 22px 54px rgba(2, 6, 23, 0.22);
  filter: saturate(1.05);
}
.whatsapp-float svg { width: 30px; height: 30px; }
@media (max-width: 860px) {
  /* On mobile, position WhatsApp button 30px below header to avoid overlapping */
  .whatsapp-float { 
    right: 14px; 
    left: auto; 
    bottom: auto; 
    top: 130px; /* Header (~100px) + 30px gap */
    z-index: 30; /* Much lower than header (50) and menu (70) to ensure it's behind */
  }
  /* When the mobile menu is open, JavaScript will position it dynamically */
  .whatsapp-float.menu-open {
    z-index: 25; /* Even lower when menu is open */
  }
}
@media (max-width: 620px) {
  .whatsapp-float { 
    right: 14px; 
    left: auto; 
    bottom: auto; 
    top: 130px; /* Header (~100px) + 30px gap */
    width: 52px; 
    height: 52px; 
    border-radius: 16px; 
    z-index: 30; /* Consistent with mobile z-index */
  }
  .whatsapp-float svg { width: 28px; height: 28px; }
}

/* ------------------------------
   Buttons
------------------------------ */
.btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 8px;
  padding: 10px 20px;
  border-radius: var(--radius);
  border: 1px solid var(--border);
  cursor: pointer;
  font-weight: 500;
  font-size: 14px;
  text-transform: none;
  transition: all 0.2s ease;
  background-color: var(--background);
  color: var(--foreground);
}

.btn:hover { 
  transform: translateY(-1px);
  box-shadow: var(--qg-shadow-sm);
}
.btn:active { 
  transform: translateY(0) scale(0.98); 
}

.btn-primary {
  background-color: var(--primary);
  color: var(--primary-foreground);
  border-color: var(--primary);
  box-shadow: var(--qg-shadow-sm);
}
.btn-primary:hover { 
  opacity: 0.9;
  box-shadow: var(--qg-shadow-md);
}

.btn-gold {
  background-color: var(--qg-gold);
  color: var(--foreground);
  border-color: var(--qg-gold);
  font-weight: 600;
  box-shadow: var(--qg-shadow-sm);
}
.btn-gold:hover { 
  opacity: 0.9;
  box-shadow: var(--qg-shadow-md);
  transform: translateY(-2px);
}

.btn-outline,
.btn-secondary {
  background-color: transparent;
  border: 1px solid var(--border);
  color: var(--foreground);
  font-weight: 500;
}

.btn-outline:hover,
.btn-secondary:hover {
  background-color: var(--muted);
  border-color: var(--border);
  color: var(--foreground);
  box-shadow: var(--qg-shadow-sm);
  transform: translateY(-1px);
}

.btn-danger {
  background-color: var(--destructive);
  color: var(--destructive-foreground);
  border-color: var(--destructive);
}
.btn-danger:hover { 
  opacity: 0.9;
  box-shadow: var(--qg-shadow-sm);
}

.btn-sm { 
  padding: 8px 16px; 
  border-radius: var(--radius-sm); 
  font-size: 13px; 
}

/* ------------------------------
   Cards
------------------------------ */
.card {
  background-color: var(--card);
  border: 1px solid var(--border);
  border-radius: var(--radius-lg);
  padding: 24px;
  box-shadow: var(--qg-shadow-sm);
  transition: all 0.2s ease;
  position: relative;
}

.card-interactive { 
  cursor: pointer;
  background: linear-gradient(to bottom right, oklch(0.55 0.18 235 / 0.03), oklch(0.58 0.14 75 / 0.03), oklch(0.52 0.14 75 / 0.02));
  border: 1px solid rgba(0, 0, 0, 0.08);
  position: relative;
  overflow: hidden;
}

.card-interactive::before {
  content: '';
  position: absolute;
  top: 0;
  left: 0;
  right: 0;
  height: 2px;
  background: linear-gradient(to right, var(--primary), oklch(0.58 0.14 75), oklch(0.52 0.14 75), var(--accent));
  opacity: 0;
  transition: opacity 0.3s ease;
}

.card-interactive:hover {
  transform: translateY(-6px);
  box-shadow: 0 12px 32px rgba(0, 0, 0, 0.12), 0 4px 16px rgba(0, 0, 0, 0.08);
  border-color: oklch(0.58 0.14 75 / 0.3);
  background: linear-gradient(to bottom right, oklch(0.55 0.18 235 / 0.06), oklch(0.58 0.14 75 / 0.06), oklch(0.52 0.14 75 / 0.04));
}

.card-interactive:hover::before {
  opacity: 1;
}

.card-interactive:active {
  transform: translateY(-2px) scale(0.998);
  box-shadow: var(--qg-shadow-sm);
}

/* Enhanced icon containers in cards - applied via JavaScript */
.card-icon-container {
  border-radius: 50% !important;
  background: linear-gradient(135deg, oklch(0.55 0.18 235 / 0.15), oklch(0.58 0.14 75 / 0.15)) !important;
  transition: all 0.3s ease !important;
}

.card-interactive:hover .card-icon-container {
  transform: scale(1.1) !important;
  background: linear-gradient(135deg, oklch(0.55 0.18 235 / 0.25), oklch(0.58 0.14 75 / 0.25)) !important;
}

/* Enhanced SVG icons in cards */
.card-interactive .card-icon-container svg {
  stroke: oklch(0.58 0.14 75) !important;
  transition: stroke 0.3s ease !important;
}

.card-header {
  padding-bottom: 14px;
  margin-bottom: 14px;
  border-bottom: 1px solid var(--border);
}
.card-title { 
  margin: 0; 
  font-weight: 600; 
  letter-spacing: -0.01em; 
  font-family: var(--qg-heading-font);
  color: var(--card-foreground);
}
.card-body { 
  color: var(--muted-foreground); 
}

/* Partner cards */
.partner-header {
  display: flex;
  align-items: center;
  gap: 12px;
}
.partner-logo-wrap {
  flex-shrink: 0;
  width: 148px;
  height: 86px;
  border-radius: 14px;
  background: rgba(255, 255, 255, 0.92);
  display: flex;
  align-items: center;
  justify-content: center;
  overflow: hidden;
  border: 1px solid rgba(2, 6, 23, 0.12);
  box-shadow: 0 18px 34px rgba(2, 6, 23, 0.18);
  transition: transform .22s ease, border-color .22s ease, box-shadow .22s ease;
}
.partner-logo {
  width: 100%;
  height: 100%;
  object-fit: contain;
  transition: transform .22s ease;
}
.card-interactive:hover .partner-logo-wrap {
  transform: translateY(-1px) scale(1.02);
  border-color: rgba(212, 175, 55, 0.26);
  box-shadow: 0 22px 42px rgba(2, 6, 23, 0.24), 0 0 0 1px rgba(212, 175, 55, 0.10);
}
.card-interactive:hover .partner-logo {
  transform: scale(1.02);
}
.partner-header .card-title { font-size: 18px; }
.partner-heading .text-xs { word-break: break-word; }
.partner-logo-wrap img { image-rendering: auto; }
.partner-logo-wrap { -webkit-mask-image: -webkit-radial-gradient(white, black); mask-image: radial-gradient(white, black); }
.partner-logo-wrap { background: linear-gradient(180deg, rgba(255, 255, 255, 0.92), rgba(241, 245, 249, 0.92)); }
@media (max-width: 620px) {
  .partner-logo-wrap { width: 128px; height: 76px; }
}
.partner-heading {
  min-width: 0;
}

/* ------------------------------
   Badges
------------------------------ */
.badge {
  display: inline-flex;
  align-items: center;
  gap: 6px;
  padding: 7px 10px;
  border-radius: var(--qg-radius-pill);
  font-size: 12px;
  font-weight: 900;
  letter-spacing: 0.08em;
  text-transform: uppercase;
  border: 1px solid transparent;
}

.badge-lg {
  padding: 9px 12px;
  font-size: 12px;
}

.notification-badge {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  min-width: 18px;
  height: 18px;
  padding: 0 6px;
  border-radius: 999px;
  background: linear-gradient(135deg, var(--qg-gold), var(--qg-gold-2));
  color: rgba(11, 18, 32, 0.96);
  font-size: 12px;
  font-weight: 900;
  box-shadow: 0 10px 24px rgba(212, 175, 55, 0.22);
}

.badge-primary {
  background: rgba(37, 99, 235, 0.14);
  border-color: rgba(37, 99, 235, 0.22);
  color: rgba(30, 64, 175, 0.92);
}
.badge-success {
  background: rgba(34, 197, 94, 0.14);
  border-color: rgba(34, 197, 94, 0.22);
  color: rgba(20, 83, 45, 0.92);
}
.badge-warning {
  background: rgba(245, 158, 11, 0.16);
  border-color: rgba(245, 158, 11, 0.26);
  color: rgba(120, 53, 15, 0.92);
}
.badge-error {
  background: rgba(239, 68, 68, 0.14);
  border-color: rgba(239, 68, 68, 0.22);
  color: rgba(127, 29, 29, 0.92);
}
.badge-info {
  background: rgba(14, 165, 233, 0.14);
  border-color: rgba(14, 165, 233, 0.22);
  color: rgba(12, 74, 110, 0.92);
}
.badge-neutral {
  background: rgba(2, 6, 23, 0.04);
  border-color: rgba(2, 6, 23, 0.10);
  color: rgba(2, 6, 23, 0.74);
}

/* ------------------------------
   Alerts
------------------------------ */
.alert {
  display: flex;
  gap: 10px;
  align-items: flex-start;
  padding: 12px 14px;
  border-radius: 14px;
  border: 1px solid var(--qg-border);
  background: rgba(255, 255, 255, 0.86);
  box-shadow: var(--qg-shadow-sm);
  margin-bottom: 14px;
}
.alert-icon { font-size: 18px; line-height: 1.2; }
.alert-content { flex: 1; }
.alert-message { font-weight: 650; color: rgba(2, 6, 23, 0.90); }

.alert-success { border-color: rgba(34, 197, 94, 0.26); background: rgba(34, 197, 94, 0.08); }
.alert-error { border-color: rgba(239, 68, 68, 0.26); background: rgba(239, 68, 68, 0.08); }
.alert-warning { border-color: rgba(245, 158, 11, 0.28); background: rgba(245, 158, 11, 0.10); }
.alert-info { border-color: rgba(14, 165, 233, 0.28); background: rgba(14, 165, 233, 0.10); }

/* ------------------------------
   Forms
------------------------------ */
.form-label {
  display: block;
  font-size: 14px;
  font-weight: 750;
  margin-bottom: 8px;
}

.form-input {
  width: 100%;
  padding: 10px 14px;
  border: 1px solid var(--border);
  border-radius: var(--radius);
  font-family: var(--qg-font);
  font-size: 14px;
  background-color: var(--background);
  color: var(--foreground);
  transition: all 0.2s ease;
}
.form-input::placeholder { 
  color: var(--muted-foreground); 
}
.form-input:focus {
  outline: none;
  border-color: var(--primary);
  box-shadow: 0 0 0 3px rgba(37, 99, 235, 0.1);
  background-color: var(--background);
}

.form-error { display: block; margin-top: 6px; color: rgba(254, 202, 202, 0.95); font-size: 13px; font-weight: 650; }
.form-help { display: block; margin-top: 6px; color: var(--qg-muted); font-size: 12px; }

/* ------------------------------
   Dashboard layout
------------------------------ */
.dashboard-layout {
  display: grid;
  grid-template-columns: 340px 1fr;
  gap: 24px;
  align-items: start;
}

.dashboard-sidebar {
  position: sticky;
  top: 88px;
  align-self: start;
  border-radius: var(--qg-radius-xl);
  background: linear-gradient(180deg, rgba(255, 255, 255, 0.94), rgba(255, 255, 255, 0.88));
  border: 1px solid rgba(2, 6, 23, 0.10);
  box-shadow: var(--qg-shadow-sm);
  overflow: hidden;
  backdrop-filter: blur(14px);
}

.sidebar-header {
  padding: 22px 20px;
  background: radial-gradient(600px 200px at 20% 0%, rgba(37,99,235,0.16), transparent 65%),
              radial-gradient(500px 200px at 90% 10%, rgba(14,165,233,0.14), transparent 65%);
  border-bottom: 1px solid rgba(2, 6, 23, 0.08);
}
.sidebar-title { margin: 0; font-size: 18px; font-weight: 950; letter-spacing: -0.01em; }
.sidebar-subtitle { margin: 6px 0 0 0; color: var(--qg-muted); font-size: 13px; }

.sidebar-nav { padding: 12px; }
.sidebar-section { margin-bottom: 14px; }
.sidebar-section-title {
  margin: 10px 8px 10px;
  font-size: 11px;
  letter-spacing: 0.12em;
  color: rgba(71, 85, 105, 0.72);
  text-transform: uppercase;
  font-weight: 900;
}

.sidebar-menu { list-style: none; padding: 0; margin: 0; }
.sidebar-menu-item { margin-bottom: 6px; }
.sidebar-menu-link {
  display: flex;
  align-items: center;
  gap: 10px;
  padding: 10px 12px;
  border-radius: 12px;
  border: 1px solid transparent;
  color: rgba(2, 6, 23, 0.80);
  font-weight: 750;
  transition: background .15s ease, border-color .15s ease, transform .15s ease;
}
.sidebar-menu-link:hover {
  background: rgba(212, 175, 55, 0.10);
  border-color: rgba(212, 175, 55, 0.22);
  transform: translateX(2px);
}
.sidebar-menu-link.active {
  background: rgba(212, 175, 55, 0.12);
  border-color: rgba(212, 175, 55, 0.26);
  color: rgba(2, 6, 23, 0.92);
}
.sidebar-menu-icon { width: 22px; text-align: center; }

.dashboard-content { min-width: 0; }

.dash-hero {
  display: grid;
  grid-template-columns: 1.2fr 0.8fr;
  gap: 24px;
  align-items: stretch;
}
@media (max-width: 980px) { .dash-hero { grid-template-columns: 1fr; } }
.dash-hero .hero-slider { min-height: 320px; }

@media (max-width: 980px) {
  .dashboard-layout { grid-template-columns: 1fr; }
  .dashboard-sidebar { position: relative; top: 0; }
}

/* ------------------------------
   Tables (used across admin/user)
------------------------------ */
.v2-table {
  width: 100%;
  border-collapse: collapse;
  border-radius: var(--qg-radius-xl);
  overflow: hidden;
  border: 1px solid rgba(2, 6, 23, 0.10);
  background: rgba(255, 255, 255, 0.86);
  backdrop-filter: blur(12px);
}

/* Make data tables usable on small screens */
.table-responsive {
  width: 100%;
  overflow-x: auto;
  -webkit-overflow-scrolling: touch;
}
.table-responsive .v2-table {
  min-width: 640px;
}

@media (max-width: 620px) {
  .v2-table th,
  .v2-table td {
    padding: 10px 10px;
    font-size: 13px;
  }
}

.v2-table th,
.v2-table td {
  padding: 14px 14px;
  border-bottom: 1px solid rgba(2, 6, 23, 0.08);
  text-align: left;
  vertical-align: middle;
}
.v2-table th {
  background: rgba(2, 6, 23, 0.03);
  color: rgba(71, 85, 105, 0.88);
  font-size: 11px;
  letter-spacing: 0.10em;
  text-transform: uppercase;
  font-weight: 900;
}
.v2-table tr:hover td { background: rgba(212, 175, 55, 0.06); }
.v2-table td:last-child, .v2-table th:last-child { text-align: right; }

/* ------------------------------
   Grids and small helpers
------------------------------ */
.v2-grid-2 { display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 24px; }
.v2-grid-3 { display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); gap: 24px; }
.v2-grid-4 { display: grid; grid-template-columns: repeat(4, minmax(0, 1fr)); gap: 24px; }
.v2-grid-5 { display: grid; grid-template-columns: repeat(5, minmax(0, 1fr)); gap: 24px; }

@media (max-width: 980px) { .v2-grid-3 { grid-template-columns: repeat(2, minmax(0, 1fr)); } }
@media (max-width: 980px) { .v2-grid-4 { grid-template-columns: repeat(2, minmax(0, 1fr)); } }
@media (max-width: 1200px) { .v2-grid-5 { grid-template-columns: repeat(3, minmax(0, 1fr)); } }
@media (max-width: 768px) { .v2-grid-5 { grid-template-columns: repeat(2, minmax(0, 1fr)); } }
@media (max-width: 480px) { .v2-grid-5 { grid-template-columns: 1fr; } }
@media (max-width: 900px) { .v2-grid-2 { grid-template-columns: 1fr; } }
@media (max-width: 620px) { .v2-grid-3 { grid-template-columns: 1fr; } }
@media (max-width: 620px) { .v2-grid-4 { grid-template-columns: 1fr; } }

.v2-page-actions { display: flex; justify-content: space-between; align-items: center; gap: 16px; flex-wrap: wrap; }
.v2-muted-box {
  background: rgba(255, 255, 255, 0.86);
  border: 1px solid rgba(2, 6, 23, 0.10);
  border-radius: var(--qg-radius-xl);
  padding: 16px;
}

.content-section {
  background: linear-gradient(180deg, rgba(255, 255, 255, 0.92), rgba(255, 255, 255, 0.86));
  border: 1px solid rgba(2, 6, 23, 0.10);
  border-radius: var(--qg-radius-xl);
  padding: 18px;
  box-shadow: var(--qg-shadow-sm);
  backdrop-filter: blur(14px);
}

/* ------------------------------
   New Hero Section (website-evaluation structure)
------------------------------ */
.hero-new {
  position: relative;
  padding: 100px 0 60px;
  overflow: hidden;
  min-height: 450px;
  display: flex;
  align-items: center;
}

@media (min-width: 768px) {
  .hero-new {
    padding: 120px 0 80px;
    min-height: 500px;
  }
}

.hero-background {
  position: absolute;
  inset: 0;
  z-index: 0;
}

.hero-bg-image {
  width: 100%;
  height: 100%;
  object-fit: cover;
  object-position: center;
  image-rendering: -webkit-optimize-contrast;
  image-rendering: crisp-edges;
  image-rendering: auto;
  -webkit-backface-visibility: hidden;
  backface-visibility: hidden;
  transform: translateZ(0);
  will-change: transform;
}

.hero-overlay {
  position: absolute;
  inset: 0;
  background: linear-gradient(
    to bottom right,
    oklch(0.98 0 0 / 0.7),
    oklch(0.98 0 0 / 0.6),
    oklch(0.98 0 0 / 0.5)
  );
}

.hero-accent-overlay {
  position: absolute;
  inset: 0;
  background: linear-gradient(
    to bottom right,
    oklch(0.58 0.14 75 / 0.1),
    transparent,
    oklch(0.55 0.18 235 / 0.1)
  );
}

.hero-content {
  position: relative;
  z-index: 1;
  width: 100%;
  max-width: 1200px;
  margin: 0 auto;
  padding: 0 20px;
}

.hero-inner {
  max-width: 800px;
  margin: 0 auto;
  text-align: center;
}

.hero-badge {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  padding: 8px 16px;
  border-radius: 999px;
  font-size: 14px;
  font-weight: 500;
  margin-bottom: 24px;
  color: var(--foreground);
}

.hero-badge-dot {
  width: 8px;
  height: 8px;
  border-radius: 50%;
  background-color: var(--accent);
  animation: pulse 2s ease-in-out infinite;
}

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

.hero-title {
  font-size: clamp(36px, 6vw, 112px);
  font-weight: 700;
  line-height: 1.1;
  margin: 0 0 24px;
  color: var(--foreground);
  font-family: var(--qg-heading-font);
  letter-spacing: -0.02em;
}

@media (min-width: 768px) {
  .hero-title {
    font-size: clamp(48px, 8vw, 112px);
  }
}

@media (min-width: 1024px) {
  .hero-title {
    font-size: clamp(60px, 10vw, 112px);
  }
}

.hero-title-highlight {
  background: linear-gradient(to right, var(--primary), oklch(0.52 0.14 75), var(--accent));
  -webkit-background-clip: text;
  background-clip: text;
  -webkit-text-fill-color: transparent;
  color: transparent;
}

.hero-description {
  font-size: clamp(18px, 2.5vw, 20px);
  color: oklch(0.12 0.01 250 / 0.8);
  margin: 0 0 40px;
  max-width: 672px;
  margin-left: auto;
  margin-right: auto;
  line-height: 1.7;
}

.hero-actions {
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 16px;
  margin-bottom: 64px;
}

@media (min-width: 640px) {
  .hero-actions {
    flex-direction: row;
    justify-content: center;
  }
}

.btn-icon {
  width: 16px;
  height: 16px;
  margin-left: 8px;
  transition: transform 0.2s ease;
}

.btn-primary:hover .btn-icon {
  transform: translateX(4px);
}

.hero-features {
  display: grid;
  grid-template-columns: 1fr;
  gap: 16px;
  max-width: 512px;
  margin: 0 auto;
}

@media (min-width: 768px) {
  .hero-features {
    grid-template-columns: repeat(2, 1fr);
  }
}

.hero-feature-card {
  display: flex;
  align-items: center;
  gap: 12px;
  padding: 16px;
  border-radius: var(--radius-lg);
  text-align: left;
  transition: all 0.3s ease;
}

.hero-feature-icon {
  width: 40px;
  height: 40px;
  border-radius: var(--radius);
  display: flex;
  align-items: center;
  justify-content: center;
  flex-shrink: 0;
  color: var(--primary);
  background-color: oklch(0.58 0.14 75 / 0.1);
}

.hero-feature-icon svg {
  width: 20px;
  height: 20px;
}

.hero-feature-icon-accent {
  color: var(--accent);
  background-color: oklch(0.55 0.18 235 / 0.1);
}

.hero-feature-content {
  flex: 1;
  min-width: 0;
}

.hero-feature-title {
  font-weight: 600;
  font-size: 14px;
  color: var(--foreground);
  margin-bottom: 4px;
}

.hero-feature-subtitle {
  font-size: 12px;
  color: var(--muted-foreground);
}

@media (max-width: 768px) {
  .hero-new {
    padding: 90px 0 50px;
    min-height: 400px;
  }
  
  .hero-title {
    font-size: clamp(32px, 8vw, 48px);
  }
  
  .hero-description {
    font-size: 16px;
  }
}

/* ------------------------------
   Hero + Slider (home) - Legacy
------------------------------ */
.hero {
  padding: 56px 0 26px;
}
.hero-full {
  position: relative;
  padding: 100px 0 80px;
  background-image: 
    radial-gradient(ellipse 800px 500px at 15% 30%, rgba(212, 175, 55, 0.10), transparent 55%),
    radial-gradient(ellipse 800px 500px at 85% 70%, rgba(37, 99, 235, 0.08), transparent 55%),
    linear-gradient(135deg, rgba(212, 175, 55, 0.06) 0%, rgba(37, 99, 235, 0.04) 50%, rgba(255, 255, 255, 0.95) 100%),
    linear-gradient(120deg, rgba(255, 255, 255, 0.96), rgba(241, 245, 249, 0.85));
  background-size: auto, auto, auto, auto;
  background-position: center, center, center, center;
  border-bottom: 1px solid rgba(2, 6, 23, 0.06);
  overflow: hidden;
}


.hero-full > * {
  position: relative;
  z-index: 1;
}
.hero-full .hero-grid {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 34px;
}
.hero-full .hero-art {
  display: flex;
}
.hero-full .hero-copy {
  flex: 0 1 640px;
}
.hero-full .hero-art {
  flex: 1 1 auto;
  justify-content: flex-end;
}
@media (max-width: 980px) {
  .hero-full .hero-grid {
    flex-direction: column;
    align-items: stretch;
  }
  .hero-full .hero-art {
    order: -1;
    justify-content: center;
  }
  .hero-full .hero-copy {
    flex-basis: auto;
  }
}
.hero-container {
  max-width: 1440px;
  margin: 0 auto;
}
.hero-grid {
  display: grid;
  grid-template-columns: minmax(0, 640px) minmax(0, 1fr);
  gap: 34px;
  align-items: center;
  grid-template-areas: "copy art";
}
@media (max-width: 980px) {
  .hero-grid {
    grid-template-columns: 1fr;
    grid-template-areas: "art" "copy";
  }
}

.hero-copy { grid-area: copy; min-width: 0; }
.hero-art { grid-area: art; min-width: 0; display: flex; justify-content: flex-end; }
.hero-art-img {
  width: min(900px, 100%);
  max-width: 900px;
  height: auto;
  opacity: 1;
  border-radius: 32px;
  border: 1px solid var(--qg-border);
  background: rgba(2, 6, 23, 0.04);
  pointer-events: none;
  user-select: none;
  filter: drop-shadow(0 32px 60px rgba(2, 6, 23, 0.20));
  transition: transform .3s ease, filter .3s ease;
}

.hero-art:hover .hero-art-img {
  transform: scale(1.02);
  filter: drop-shadow(0 36px 70px rgba(2, 6, 23, 0.24));
}
@media (max-width: 980px) {
  .hero-art { justify-content: center; }
  .hero-art-img { width: min(720px, 100%); }
}

.hero-kicker {
  display: inline-flex;
  align-items: center;
  gap: 10px;
  padding: 8px 12px;
  border-radius: var(--qg-radius-pill);
  background: rgba(212, 175, 55, 0.12);
  border: 1px solid rgba(212, 175, 55, 0.28);
  font-weight: 850;
  color: rgba(88, 64, 0, 0.92);
}
.hero-kicker-lg {
  padding: 10px 14px;
  letter-spacing: 0.14em;
  text-transform: uppercase;
  font-size: 13px;
}

.hero h1 {
  margin: 20px 0 20px;
  font-size: clamp(38px, 5vw, 56px);
  letter-spacing: -0.04em;
  line-height: 1.1;
  font-family: var(--qg-heading-font);
  font-weight: 800;
  background: linear-gradient(135deg, var(--qg-text) 0%, rgba(2, 6, 23, 0.85) 100%);
  -webkit-background-clip: text;
  -webkit-text-fill-color: transparent;
  background-clip: text;
}
.hero p { margin: 0; }
.hero-actions { 
  display: flex; 
  gap: 16px; 
  flex-wrap: wrap; 
  margin-top: 32px; 
}

@media (max-width: 620px) {
  .hero-actions { 
    margin-top: 24px; 
    gap: 12px; 
  }
  .hero-actions .btn {
    flex: 1;
    min-width: 140px;
  }
}
.hero-copy .hero-slider { margin-top: 22px; }

/* About page headings */
.about-section-title {
  font-size: clamp(20px, 2.2vw, 24px);
  letter-spacing: -0.02em;
  position: relative;
  display: inline-block;
  margin-bottom: 10px;
}
.about-section-title::after {
  content: "";
  position: absolute;
  left: 0;
  bottom: -8px;
  width: 56px;
  height: 3px;
  border-radius: 999px;
  background: linear-gradient(90deg, var(--qg-gold), rgba(212,175,55,0));
  opacity: 0.95;
}

.hero-slider {
  position: relative;
  border-radius: 22px;
  overflow: hidden;
  border: 1px solid rgba(2, 6, 23, 0.10);
  box-shadow: var(--qg-shadow-md);
  background: linear-gradient(135deg, rgba(212,175,55,0.16), rgba(37,99,235,0.10), rgba(255,255,255,0.92));
  min-height: 260px;
}

.hero-slide {
  position: absolute;
  inset: 0;
  padding: 22px 22px 64px 22px;
  opacity: 0;
  transform: translateY(8px);
  pointer-events: none;
  transition: opacity .28s ease, transform .28s ease;
}
.hero-slide.is-active { opacity: 1; transform: translateY(0); pointer-events: auto; }

.hero-slide-title { margin: 0; font-size: 16px; font-weight: 900; }
.hero-slide-desc { margin-top: 10px; color: rgba(71, 85, 105, 0.84); line-height: 1.6; }

.hero-slide-badges {
  display: flex;
  flex-wrap: wrap;
  gap: 8px;
}

@media (max-width: 620px) {
  /* Home hero slider: single slide without dots — avoid extra empty space on mobile */
  .hero-slider--no-dots { min-height: 0; }
  .hero-slider--no-dots .hero-slide.is-active {
    position: relative;
    inset: auto;
    padding: 18px;
  }

  /* About hero: hide decorative SVG on phones and keep a premium top band */
  .hero-about {
    background-image:
      radial-gradient(760px 360px at 14% 8%, rgba(212,175,55,0.16), transparent 62%),
      radial-gradient(820px 400px at 88% 14%, rgba(37,99,235,0.12), transparent 64%),
      linear-gradient(180deg, rgba(255, 255, 255, 0.76) 0%, rgba(241, 245, 249, 0.0) 100%);
    border-bottom: 1px solid rgba(2, 6, 23, 0.06);
  }
  .hero-about .hero-art { display: none; }
  .hero-about .hero-grid { grid-template-areas: "copy"; }
}

.hero-dots {
  position: absolute;
  left: 0;
  right: 0;
  bottom: 0;
  display: flex;
  gap: 8px;
  padding: 14px 18px;
  border-top: 1px solid rgba(2, 6, 23, 0.10);
  background: rgba(255, 255, 255, 0.78);
}
.hero-dot {
  width: 10px;
  height: 10px;
  border-radius: 999px;
  border: 1px solid rgba(2, 6, 23, 0.18);
  background: rgba(2, 6, 23, 0.06);
  cursor: pointer;
}
.hero-dot.is-active {
  background: linear-gradient(135deg, var(--qg-gold), var(--qg-gold-2));
  border-color: rgba(212,175,55,0.42);
}

/* ------------------------------
   Utilities (limited set used by templates)
------------------------------ */
.d-flex { display: flex; }
.flex-col { flex-direction: column; }
.flex-wrap { flex-wrap: wrap; }
.items-center { align-items: center; }
.items-start { align-items: flex-start; }
.justify-between { justify-content: space-between; }
.justify-end { justify-content: flex-end; }
.gap-2 { gap: 8px; }
.gap-3 { gap: 12px; }
.gap-4 { gap: 16px; }

.mt-2 { margin-top: 8px; }
.mt-3 { margin-top: 12px; }
.mt-4 { margin-top: 16px; }
.mt-6 { margin-top: 24px; }
.mb-2 { margin-bottom: 8px; }
.mb-4 { margin-bottom: 16px; }
.mb-0 { margin-bottom: 0; }
.mb-1 { margin-bottom: 4px; }
.pt-4 { padding-top: 16px; }

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

.fade-in {
  animation: qgFadeIn 0.35s ease-out both;
}

@keyframes qgFadeIn {
  from { opacity: 0; transform: translateY(6px); }
  to { opacity: 1; transform: translateY(0); }
}

/* ------------------------------
   Scroll reveal (IntersectionObserver)
------------------------------ */
.qg-animate {
  opacity: 1;
  transform: none;
}
.qg-js .qg-animate {
  opacity: 0;
  transform: translateY(14px);
  will-change: opacity, transform;
}
.qg-animate.is-visible {
  opacity: 1;
  transform: translateY(0);
  animation-name: qgEnterUp;
  animation-duration: 0.75s;
  animation-timing-function: cubic-bezier(.2, .9, .2, 1);
  animation-fill-mode: backwards;
  animation-delay: var(--delay, 0ms);
}
.qg-js .qg-animate.qg-zoom { transform: translateY(12px) scale(0.985); }
.qg-animate.qg-zoom.is-visible {
  transform: translateY(0) scale(1);
  animation-name: qgEnterUpZoom;
}

@keyframes qgEnterUp {
  from { opacity: 0; transform: translateY(14px); }
  to { opacity: 1; transform: translateY(0); }
}
@keyframes qgEnterUpZoom {
  from { opacity: 0; transform: translateY(12px) scale(0.985); }
  to { opacity: 1; transform: translateY(0) scale(1); }
}

/* Stagger helper for grids/lists (use with direct children that have .qg-animate) */
.qg-stagger > .qg-animate { --delay: 0ms; }
.qg-stagger > .qg-animate:nth-child(2) { --delay: 80ms; }
.qg-stagger > .qg-animate:nth-child(3) { --delay: 160ms; }
.qg-stagger > .qg-animate:nth-child(4) { --delay: 240ms; }
.qg-stagger > .qg-animate:nth-child(5) { --delay: 320ms; }
.qg-stagger > .qg-animate:nth-child(6) { --delay: 400ms; }
.qg-stagger > .qg-animate:nth-child(7) { --delay: 480ms; }
.qg-stagger > .qg-animate:nth-child(8) { --delay: 560ms; }

@media (prefers-reduced-motion: reduce) {
  .qg-js .qg-animate { opacity: 1; transform: none; animation: none !important; transition: none !important; }
  .qg-js .qg-fade-img { opacity: 1; transform: none; transition: none !important; }
  .nav,
  .nav-backdrop,
  .nav-toggle-line { transition: none !important; }
}

/* Images: fade-in once loaded (JS adds .is-loaded) */
.qg-fade-img {
  opacity: 1;
  transform: none;
}
.qg-js .qg-fade-img {
  /* Keep a visible placeholder while the browser is still downloading the image */
  opacity: 0.25;
  transform: translateY(6px) scale(1.01);
  transition: opacity .35s ease, transform .35s ease;
  will-change: opacity, transform;
}
.qg-js .qg-fade-img.is-loaded {
  opacity: 1;
  transform: translateY(0) scale(1);
}

/* Home hero: line-by-line reveal */
.reveal {
  opacity: 0;
  transform: translateY(10px);
  animation: qgReveal 0.75s cubic-bezier(.2, .9, .2, 1) both;
}
.reveal-line { display: block; }
.reveal.d1 { animation-delay: 0.06s; }
.reveal.d2 { animation-delay: 0.14s; }
.reveal.d3 { animation-delay: 0.22s; }
.reveal.d4 { animation-delay: 0.30s; }
.reveal.d5 { animation-delay: 0.38s; }

@keyframes qgReveal {
  to { opacity: 1; transform: translateY(0); }
}

@media (prefers-reduced-motion: reduce) {
  .reveal { opacity: 1; transform: none; animation: none !important; }
}

/* Subtle premium motion for hero art */
@keyframes qgFloat {
  0%, 100% { transform: translateY(0); }
  50% { transform: translateY(-8px); }
}
@media (prefers-reduced-motion: no-preference) {
  .hero .hero-art-img { animation: qgFloat 7.5s ease-in-out infinite; }
}

/* ------------------------------
   Statistics Section (TracknGo style)
------------------------------ */
.stats-section {
  background: linear-gradient(135deg, rgba(212, 175, 55, 0.10) 0%, rgba(37, 99, 235, 0.08) 50%, rgba(212, 175, 55, 0.06) 100%);
  border-top: 1px solid rgba(2, 6, 23, 0.08);
  border-bottom: 1px solid rgba(2, 6, 23, 0.08);
  padding: 80px 0;
  position: relative;
  overflow: hidden;
}

.stats-section::before {
  content: "";
  position: absolute;
  top: 0;
  left: 0;
  right: 0;
  bottom: 0;
  background: 
    /* Premium styled decorative pattern - compass/network design */
    url("data:image/svg+xml,%3Csvg width='150' height='150' xmlns='http://www.w3.org/2000/svg'%3E%3Cdefs%3E%3ClinearGradient id='statGrad1' x1='0%25' y1='0%25' x2='100%25' y2='100%25'%3E%3Cstop offset='0%25' style='stop-color:%23d4af37;stop-opacity:0.14'/%3E%3Cstop offset='100%25' style='stop-color:%232563eb;stop-opacity:0.12'/%3E%3C/linearGradient%3E%3ClinearGradient id='statGrad2' x1='100%25' y1='0%25' x2='0%25' y2='100%25'%3E%3Cstop offset='0%25' style='stop-color:%232563eb;stop-opacity:0.12'/%3E%3Cstop offset='100%25' style='stop-color:%23d4af37;stop-opacity:0.10'/%3E%3C/linearGradient%3E%3C/defs%3E%3C%21-- Outer circle --%3E%3Ccircle cx='75' cy='75' r='50' fill='none' stroke='url(%23statGrad1)' stroke-width='2.5'/%3E%3C%21-- Inner circle --%3E%3Ccircle cx='75' cy='75' r='35' fill='none' stroke='url(%23statGrad2)' stroke-width='2' opacity='0.9'/%3E%3C%21-- Cross lines --%3E%3Cpath d='M25 75 L125 75 M75 25 L75 125' stroke='url(%23statGrad1)' stroke-width='2'/%3E%3C%21-- Diagonal lines --%3E%3Cpath d='M45 45 L105 105 M105 45 L45 105' stroke='url(%23statGrad2)' stroke-width='1.5' opacity='0.8'/%3E%3C%21-- Center circle --%3E%3Ccircle cx='75' cy='75' r='12' fill='url(%23statGrad1)'/%3E%3Ccircle cx='75' cy='75' r='8' fill='none' stroke='%23ffffff' stroke-width='1.5' opacity='0.8'/%3E%3C%21-- Corner accents --%3E%3Ccircle cx='25' cy='25' r='4' fill='url(%23statGrad1)'/%3E%3Ccircle cx='125' cy='125' r='4' fill='url(%23statGrad2)'/%3E%3Ccircle cx='25' cy='125' r='4' fill='url(%23statGrad1)'/%3E%3Ccircle cx='125' cy='25' r='4' fill='url(%23statGrad2)'/%3E%3C/svg%3E"),
    radial-gradient(ellipse 900px 450px at 20% 50%, rgba(212, 175, 55, 0.14), transparent 60%),
    radial-gradient(ellipse 900px 450px at 80% 50%, rgba(37, 99, 235, 0.12), transparent 60%);
  background-size: 150px 150px, auto, auto;
  pointer-events: none;
}

.stats-grid {
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  gap: 32px;
  position: relative;
  z-index: 1;
}

@media (max-width: 980px) {
  .stats-grid { grid-template-columns: repeat(2, 1fr); gap: 24px; }
  .stats-section { padding: 60px 0; }
}

@media (max-width: 620px) {
  .stats-grid { grid-template-columns: 1fr; gap: 20px; }
  .stats-section { padding: 50px 0; }
  .stat-card { padding: 32px 20px; }
  .stat-number { font-size: 40px; }
}

.stat-card {
  text-align: center;
  padding: 40px 24px;
  background: linear-gradient(180deg, rgba(255, 255, 255, 0.95), rgba(255, 255, 255, 0.88));
  border-radius: 20px;
  border: 1px solid rgba(2, 6, 23, 0.10);
  backdrop-filter: blur(20px);
  transition: transform .25s cubic-bezier(.2, .9, .2, 1), box-shadow .25s ease, border-color .25s ease, background .25s ease;
  position: relative;
  overflow: hidden;
}

.stat-card::before {
  content: "";
  position: absolute;
  top: 0;
  left: 0;
  right: 0;
  height: 4px;
  background: linear-gradient(90deg, var(--qg-gold), var(--qg-primary));
  opacity: 0;
  transition: opacity .25s ease;
}

.stat-card:hover::before {
  opacity: 1;
}

.stat-card:hover {
  transform: translateY(-4px);
  box-shadow: var(--qg-shadow-md);
  border-color: var(--primary);
}

.stat-icon {
  width: 56px;
  height: 56px;
  margin: 0 auto 16px;
  display: flex;
  align-items: center;
  justify-content: center;
  border-radius: 50%;
  background-color: oklch(0.58 0.14 75 / 0.1);
  color: var(--primary);
  transition: all 0.2s ease;
}

.stat-card:hover .stat-icon {
  transform: scale(1.05);
}

.stat-icon svg {
  width: 28px;
  height: 28px;
  stroke-width: 2;
}

.stat-number {
  font-size: 36px;
  font-weight: 700;
  font-family: var(--qg-heading-font);
  color: var(--foreground);
  margin: 0 0 8px;
  line-height: 1;
  transition: transform 0.2s ease;
}

.stat-card:hover .stat-number {
  transform: scale(1.05);
}

.stat-label {
  font-size: 14px;
  color: var(--muted-foreground);
  font-weight: 500;
}

/* ------------------------------
   Service Cards with Icons
------------------------------ */
.card-service {
  position: relative;
  padding-top: 20px;
}

.card-icon {
  width: 64px;
  height: 64px;
  margin-bottom: 20px;
  display: flex;
  align-items: center;
  justify-content: center;
  background: linear-gradient(135deg, rgba(212, 175, 55, 0.14), rgba(212, 175, 55, 0.10));
  border-radius: 16px;
  color: var(--qg-gold);
  transition: transform .25s cubic-bezier(.2, .9, .2, 1), background .25s ease, box-shadow .25s ease;
  position: relative;
}

.card-icon::before {
  content: "";
  position: absolute;
  inset: -2px;
  background: linear-gradient(135deg, var(--qg-gold), var(--qg-primary));
  border-radius: 18px;
  opacity: 0;
  z-index: -1;
  transition: opacity .25s ease;
  filter: blur(8px);
}

.card-service:hover .card-icon {
  transform: scale(1.12) rotate(5deg);
  background: linear-gradient(135deg, rgba(212, 175, 55, 0.22), rgba(212, 175, 55, 0.16));
}

.card-service:hover .card-icon::before {
  opacity: 0.3;
}

/* ------------------------------
   Premium Utility Classes
------------------------------ */
.glass-effect {
  background-color: rgba(255, 255, 255, 0.8);
  backdrop-filter: blur(16px);
  -webkit-backdrop-filter: blur(16px);
  border: 1px solid rgba(255, 255, 255, 0.5);
}

.dark .glass-effect {
  background-color: rgba(18, 18, 18, 0.8);
  border-color: rgba(255, 255, 255, 0.1);
}

.gradient-gold {
  background: linear-gradient(to bottom right, var(--primary), oklch(0.52 0.14 75), oklch(0.46 0.14 75));
}

.gradient-blue {
  background: linear-gradient(to bottom right, var(--accent), oklch(0.495 0.18 235), oklch(0.44 0.18 235));
}

.shadow-premium {
  box-shadow: 0 8px 30px rgba(0, 0, 0, 0.12), 0 2px 8px rgba(0, 0, 0, 0.08);
}

.shadow-premium-lg {
  box-shadow: 0 20px 50px rgba(0, 0, 0, 0.15), 0 4px 12px rgba(0, 0, 0, 0.1);
}

/* Enhanced animations */
.animate-fade-in {
  animation: fadeIn 0.3s ease-out forwards;
}

.animate-fade-in-up {
  animation: fadeInUp 0.8s ease-out forwards;
}

.animate-slide-in-right {
  animation: slideInRight 0.3s ease-out forwards;
}

@keyframes fadeIn {
  from {
    opacity: 0;
  }
  to {
    opacity: 1;
  }
}

@keyframes fadeInUp {
  from {
    opacity: 0;
    transform: translateY(20px);
  }
  to {
    opacity: 1;
    transform: translateY(0);
  }
}

@keyframes slideInRight {
  from {
    opacity: 0;
    transform: translateX(100%);
  }
  to {
    opacity: 1;
    transform: translateX(0);
  }
}

/* Staggered animation delays */
.animate-fade-in-up:nth-child(1) {
  animation-delay: 0.1s;
  opacity: 0;
}

.animate-fade-in-up:nth-child(2) {
  animation-delay: 0.2s;
  opacity: 0;
}

.animate-fade-in-up:nth-child(3) {
  animation-delay: 0.3s;
  opacity: 0;
}

.animate-fade-in-up:nth-child(4) {
  animation-delay: 0.4s;
  opacity: 0;
}

/* Hover lift effect */
.hover-lift {
  transition: transform 0.3s ease, box-shadow 0.3s ease;
}

.hover-lift:hover {
  transform: translateY(-4px);
}

/* Smooth scroll */
html {
  scroll-behavior: smooth;
}

/* Required form labels */
.required::after {
  content: " *";
  color: var(--destructive);
}

.card-icon svg {
  width: 28px;
  height: 28px;
  stroke-width: 2;
}


