/* ═══════════════════════════════════════════
   MODERN BLUE THEME — Complete CSS
═══════════════════════════════════════════ */

/* ── CSS Variables ── */
:root {
  /* Primary Colors */
  --primary: #2563EB;
  --primary-hover: #1D4ED8;
  --primary-light: #DBEAFE;
  --primary-dark: #1E3A8A;
  
  /* Theme Colors */
  --secondary: #0F172A;
  --accent: #06B6D4;
  --success: #22C55E;
  --warning: #F59E0B;
  --error: #EF4444;
  
  /* Light Theme */
  --bg: #F8FAFC;
  --bg-card: #FFFFFF;
  --bg-card-hover: #F1F5F9;
  --border: #E2E8F0;
  --text: #0F172A;
  --text-light: #64748B;
  --text-muted: #94A3B8;
  
  /* Dark Elements */
  --bg-dark: #0F172A;
  --bg-dark-2: #1E293B;
  --bg-dark-3: #334155;
  --border-dark: #334155;
  --text-dark: #F1F5F9;
  --text-muted-dark: #94A3B8;
  
  /* Shadows */
  --shadow-sm: 0 1px 3px rgba(0,0,0,0.06);
  --shadow-md: 0 4px 14px rgba(0,0,0,0.08);
  --shadow-lg: 0 8px 30px rgba(0,0,0,0.12);
  --shadow-xl: 0 20px 60px rgba(37,99,235,0.15);
  
  /* Fonts */
  --fd: 'Manrope', sans-serif;
  --fb: 'Inter', sans-serif;
  --tr: .2s cubic-bezier(.4,0,.2,1);
}

/* ── Reset ── */
* { box-sizing: border-box; margin: 0; padding: 0; }
html { scroll-behavior: smooth; }
body {
  background: var(--bg);
  color: var(--text);
  font-family: var(--fb);
  font-size: 14px;
  line-height: 1.6;
  -webkit-font-smoothing: antialiased;
  overflow-x: hidden;
}
::selection { background: var(--primary); color: #fff; }
::-webkit-scrollbar { width: 6px; }
::-webkit-scrollbar-track { background: var(--bg); }
::-webkit-scrollbar-thumb { background: var(--primary); border-radius: 3px; }

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

/* ── Utilities ── */
.hidden { display: none !important; }
.text-center { text-align: center; }
.text-primary { color: var(--primary); }
.text-muted { color: var(--text-muted); }
.flex { display: flex; }
.flex-center { display: flex; align-items: center; justify-content: center; }
.gap-2 { gap: 8px; }
.gap-4 { gap: 16px; }
.gap-6 { gap: 24px; }

/* ── Clip Paths ── */
.clip { clip-path: polygon(0 0, calc(100% - 12px) 0, 100% 12px, 100% 100%, 12px 100%, 0 calc(100% - 12px)); }
.clip-s { clip-path: polygon(0 0, calc(100% - 8px) 0, 100% 8px, 100% 100%, 8px 100%, 0 calc(100% - 8px)); }
.clip-xs { clip-path: polygon(0 0, calc(100% - 5px) 0, 100% 5px, 100% 100%, 5px 100%, 0 calc(100% - 5px)); }

/* ── Buttons ── */
.btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 6px;
  font-family: var(--fd);
  font-weight: 700;
  font-size: 12px;
  letter-spacing: .04em;
  cursor: pointer;
  border: none;
  text-decoration: none;
  transition: all var(--tr);
  white-space: nowrap;
  padding: 10px 22px;
  border-radius: 8px;
}
.btn-primary {
  background: var(--primary);
  color: #fff;
  box-shadow: 0 2px 8px rgba(37,99,235,0.25);
}
.btn-primary:hover {
  background: var(--primary-hover);
  transform: translateY(-2px);
  box-shadow: 0 6px 20px rgba(37,99,235,0.35);
}
.btn-secondary {
  background: var(--bg-dark);
  color: var(--text-dark);
}
.btn-secondary:hover {
  background: var(--bg-dark-2);
  transform: translateY(-2px);
}
.btn-outline {
  background: transparent;
  color: var(--text);
  border: 1.5px solid var(--border);
}
.btn-outline:hover {
  border-color: var(--primary);
  color: var(--primary);
  background: var(--primary-light);
}
.btn-success {
  background: var(--success);
  color: #fff;
}
.btn-success:hover {
  background: #16a34a;
  transform: translateY(-2px);
}
.btn-sm { padding: 6px 14px; font-size: 11px; }
.btn-xs { padding: 4px 10px; font-size: 10px; }

/* ── Cards ── */
.card {
  background: var(--bg-card);
  border: 1px solid var(--border);
  border-radius: 12px;
  padding: 20px;
  transition: all var(--tr);
}
.card:hover {
  box-shadow: var(--shadow-md);
  border-color: var(--primary-light);
}
.card-dark {
  background: var(--bg-dark);
  border-color: var(--border-dark);
  color: var(--text-dark);
}

/* ── Inputs ── */
input[type="text"], input[type="password"], input[type="email"],
input[type="tel"], input[type="number"], input[type="url"],
select, textarea {
  background: var(--bg);
  border: 1.5px solid var(--border);
  color: var(--text);
  padding: 9px 12px;
  font-size: 13px;
  outline: none;
  width: 100%;
  font-family: var(--fb);
  transition: all .2s;
  border-radius: 8px;
}
input:focus, select:focus, textarea:focus {
  border-color: var(--primary);
  box-shadow: 0 0 0 3px rgba(37,99,235,0.12);
}
select option { background: var(--bg-card); }
textarea { min-height: 68px; resize: vertical; }

input[type="range"] {
  width: 100%;
  appearance: none;
  height: 4px;
  background: var(--border);
  border-radius: 4px;
  outline: none;
  cursor: pointer;
}
input[type="range"]::-webkit-slider-thumb {
  appearance: none;
  width: 16px;
  height: 16px;
  border-radius: 50%;
  background: var(--primary);
  cursor: pointer;
  box-shadow: 0 0 0 4px rgba(37,99,235,0.15);
}
input[type="color"] {
  width: 34px;
  height: 34px;
  border: 2px solid var(--border);
  border-radius: 8px;
  background: none;
  cursor: pointer;
  padding: 2px;
}
input[type="checkbox"] {
  accent-color: var(--primary);
  width: 16px;
  height: 16px;
  cursor: pointer;
}

.flbl {
  font-size: 10px;
  font-weight: 700;
  color: var(--text-light);
  text-transform: uppercase;
  letter-spacing: .6px;
  margin-bottom: 4px;
}

/* ── Header ── */
.header {
  position: sticky;
  top: 0;
  z-index: 1000;
  background: rgba(255,255,255,0.92);
  backdrop-filter: blur(24px);
  border-bottom: 1px solid var(--border);
  padding: 0 20px;
  height: 64px;
  display: flex;
  align-items: center;
  justify-content: space-between;
}
.header-dark {
  background: rgba(15,23,42,0.95);
  border-color: var(--border-dark);
}
.logo {
  display: flex;
  align-items: center;
  gap: 10px;
  text-decoration: none;
  color: var(--text);
  font-family: var(--fd);
  font-weight: 800;
  font-size: 20px;
  letter-spacing: -.3px;
}
.logo-box {
  width: 36px;
  height: 36px;
  background: var(--primary);
  display: flex;
  align-items: center;
  justify-content: center;
  border-radius: 8px;
  color: #fff;
  font-size: 16px;
  flex-shrink: 0;
}
.logo em { font-style: normal; color: var(--primary); }

.hdr-r { display: flex; align-items: center; gap: 10px; }
.hbadge {
  background: var(--primary-light);
  border: 1px solid var(--primary);
  color: var(--primary);
  font-size: 9px;
  font-weight: 800;
  padding: 3px 12px;
  border-radius: 20px;
  letter-spacing: .06em;
}
.credit {
  font-size: 10px;
  color: var(--text-muted);
  text-decoration: none;
  transition: all .2s;
}
.credit:hover { color: var(--primary); }

/* ── Hero ── */
.hero {
  text-align: center;
  padding: 60px 20px 40px;
  position: relative;
  overflow: hidden;
}
.hero-glow {
  position: absolute;
  top: -100px;
  left: 50%;
  transform: translateX(-50%);
  width: 700px;
  height: 400px;
  background: radial-gradient(ellipse, rgba(37,99,235,0.08) 0%, transparent 70%);
  pointer-events: none;
}
.hero h1 {
  font-family: var(--fd);
  font-size: clamp(32px, 5vw, 56px);
  font-weight: 800;
  line-height: 1.08;
  margin-bottom: 12px;
  letter-spacing: -1.5px;
  color: var(--text);
}
.hero h1 em { font-style: normal; color: var(--primary); }
.hero-sub {
  color: var(--text-light);
  font-size: clamp(14px, 1.6vw, 18px);
  max-width: 560px;
  margin: 0 auto 20px;
}
.hero-pills {
  display: flex;
  justify-content: center;
  gap: 8px;
  flex-wrap: wrap;
  margin-bottom: 28px;
}
.pill {
  background: var(--bg-card);
  border: 1px solid var(--border);
  font-size: 11px;
  font-weight: 600;
  padding: 5px 14px;
  color: var(--text-light);
  border-radius: 20px;
  letter-spacing: .03em;
}
.pill em { font-style: normal; color: var(--primary); }
.hero-cta {
  display: flex;
  gap: 12px;
  justify-content: center;
  flex-wrap: wrap;
}

/* ── Features Grid ── */
.section-title {
  font-family: var(--fd);
  font-size: 24px;
  font-weight: 800;
  color: var(--text);
  margin-bottom: 8px;
}
.section-sub {
  color: var(--text-light);
  font-size: 15px;
  margin-bottom: 28px;
}

.feat-grid {
  display: grid;
  grid-template-columns: repeat(auto-fill, minmax(200px, 1fr));
  gap: 16px;
  margin-bottom: 40px;
}
.feat-card {
  background: var(--bg-card);
  border: 1px solid var(--border);
  border-radius: 12px;
  padding: 20px;
  transition: all var(--tr);
}
.feat-card:hover {
  transform: translateY(-4px);
  box-shadow: var(--shadow-lg);
  border-color: var(--primary-light);
}
.feat-icon {
  font-size: 24px;
  color: var(--primary);
  margin-bottom: 10px;
}
.feat-title {
  font-weight: 700;
  font-size: 14px;
  color: var(--text);
  margin-bottom: 4px;
}
.feat-desc {
  font-size: 12px;
  color: var(--text-light);
  line-height: 1.5;
}

/* ── Testimonials ── */
.testi-grid {
  display: grid;
  grid-template-columns: repeat(auto-fill, minmax(260px, 1fr));
  gap: 16px;
  margin-bottom: 40px;
}
.testi-card {
  background: var(--bg-card);
  border: 1px solid var(--border);
  border-radius: 12px;
  padding: 20px;
}
.testi-stars { color: var(--warning); font-size: 13px; margin-bottom: 8px; }
.testi-text {
  font-size: 13px;
  color: var(--text-light);
  line-height: 1.6;
  margin-bottom: 12px;
  font-style: italic;
}
.testi-auth {
  display: flex;
  align-items: center;
  gap: 10px;
}
.testi-avi {
  width: 36px;
  height: 36px;
  border-radius: 50%;
  display: flex;
  align-items: center;
  justify-content: center;
  font-weight: 800;
  font-size: 14px;
  color: #fff;
  flex-shrink: 0;
}
.testi-name { font-weight: 700; font-size: 13px; color: var(--text); }
.testi-role { font-size: 11px; color: var(--text-muted); }

/* ── FAQ ── */
.faq-list {
  display: flex;
  flex-direction: column;
  gap: 8px;
  margin-bottom: 40px;
}
.faq-item {
  background: var(--bg-card);
  border: 1px solid var(--border);
  border-radius: 12px;
  overflow: hidden;
  transition: all var(--tr);
}
.faq-item.open { border-color: var(--primary); }
.faq-q {
  padding: 14px 18px;
  font-weight: 600;
  font-size: 14px;
  cursor: pointer;
  display: flex;
  justify-content: space-between;
  align-items: center;
  gap: 12px;
  color: var(--text);
  user-select: none;
}
.faq-q:hover { color: var(--primary); }
.faq-icon {
  font-size: 12px;
  color: var(--text-muted);
  transition: transform .22s;
  flex-shrink: 0;
}
.faq-item.open .faq-icon { transform: rotate(45deg); color: var(--primary); }
.faq-a {
  max-height: 0;
  overflow: hidden;
  transition: max-height .32s cubic-bezier(.4,0,.2,1), padding .22s;
}
.faq-item.open .faq-a {
  max-height: 300px;
  padding: 0 18px 16px;
}
.faq-a p { font-size: 13px; color: var(--text-light); line-height: 1.65; }

/* ── Footer ── */
.footer {
  background: var(--bg-dark);
  border-top: 1px solid var(--border-dark);
  padding: 40px 20px 24px;
  text-align: center;
  color: var(--text-muted-dark);
}
.footer-brand {
  font-family: var(--fd);
  font-weight: 800;
  font-size: 22px;
  color: #fff;
  margin-bottom: 6px;
}
.footer-brand em { font-style: normal; color: var(--primary); }
.footer-desc {
  font-size: 13px;
  color: var(--text-muted-dark);
  max-width: 480px;
  margin: 0 auto 18px;
}
.footer-links {
  display: flex;
  justify-content: center;
  gap: 24px;
  flex-wrap: wrap;
  margin-bottom: 18px;
}
.footer-links a {
  color: var(--text-muted-dark);
  text-decoration: none;
  font-size: 13px;
  transition: color .2s;
}
.footer-links a:hover { color: var(--primary); }
.footer-copy {
  font-size: 12px;
  color: rgba(255,255,255,0.15);
}
.footer-copy a { color: var(--primary); text-decoration: none; }

/* ── Toast ── */
.toast-c {
  position: fixed;
  bottom: 24px;
  right: 24px;
  z-index: 9999;
  display: flex;
  flex-direction: column;
  gap: 8px;
  max-width: 360px;
  pointer-events: none;
}
.toast {
  background: var(--bg-card);
  border: 1px solid var(--border);
  padding: 12px 16px;
  font-size: 13px;
  font-weight: 500;
  display: flex;
  align-items: center;
  gap: 10px;
  box-shadow: var(--shadow-lg);
  border-radius: 10px;
  border-left: 4px solid var(--primary);
  color: var(--text);
  pointer-events: auto;
  animation: tIn .26s cubic-bezier(.4,0,.2,1);
}
.toast.ok { border-left-color: var(--success); }
.toast.err { border-left-color: var(--error); }
.toast.warn { border-left-color: var(--warning); }
.toast-close {
  background: none;
  border: none;
  color: var(--text-muted);
  cursor: pointer;
  font-size: 14px;
  padding: 2px;
}
.toast-close:hover { color: var(--text); }
.toast.out { animation: tOut .22s cubic-bezier(.4,0,.2,1) forwards; }

@keyframes tIn {
  from { transform: translateX(110%) scale(.9); opacity: 0; }
  to { transform: none; opacity: 1; }
}
@keyframes tOut {
  to { transform: translateX(110%) scale(.9); opacity: 0; }
}

/* ── Responsive ── */
@media (max-width: 768px) {
  .hero { padding: 40px 16px 28px; }
  .hero h1 { font-size: 28px; }
  .feat-grid { grid-template-columns: 1fr 1fr; }
  .testi-grid { grid-template-columns: 1fr; }
  .header { height: 56px; padding: 0 14px; }
  .logo { font-size: 17px; }
  .logo-box { width: 30px; height: 30px; font-size: 13px; }
  .hbadge { font-size: 8px; padding: 2px 10px; }
  .footer-links { gap: 14px; }
}
@media (max-width: 480px) {
  .feat-grid { grid-template-columns: 1fr; }
  .hero-pills .pill { font-size: 10px; padding: 4px 10px; }
  .hero-cta .btn { font-size: 11px; padding: 8px 16px; }
}

/* ═══════════════════════════════════════════
   NAV, DARK MODE, MOBILE MENU — Additions
═══════════════════════════════════════════ */

/* ── Dark theme override ── */
:root[data-theme="dark"] {
  --bg: #0B1220;
  --bg-card: #111B2E;
  --bg-card-hover: #17233A;
  --border: #1E2A3F;
  --text: #F1F5F9;
  --text-light: #94A3B8;
  --text-muted: #64748B;
  --primary-light: rgba(37,99,235,0.16);
}
:root[data-theme="dark"] .header { background: rgba(11,18,32,0.9); }
:root[data-theme="dark"] .hero-glow { opacity: .7; }
:root[data-theme="dark"] .qr-mock-card { background: #111B2E; box-shadow: 0 30px 70px rgba(0,0,0,0.5); }
:root[data-theme="dark"] .footer-copy { color: rgba(255,255,255,0.12); }

/* ── Header layout ── */
.header { gap: 12px; }

/* ── Nav ── */
.nav { display: flex; align-items: center; gap: 2px; }
.nav-item { position: relative; }
.nav-link {
  display: flex; align-items: center; gap: 6px;
  padding: 9px 12px; font-size: 13px; font-weight: 600;
  color: var(--text); text-decoration: none; border-radius: 8px;
  transition: all .2s; cursor: pointer; white-space: nowrap;
}
.nav-link:hover { color: var(--primary); background: var(--primary-light); }
.nav-link .chev { font-size: 9px; transition: transform .2s; color: var(--text-muted); }
.nav-item:hover .nav-link .chev { transform: rotate(180deg); }

.nav-dropdown {
  position: absolute; top: calc(100% + 10px); left: 0; min-width: 220px;
  background: var(--bg-card); border: 1px solid var(--border); border-radius: 12px;
  box-shadow: var(--shadow-lg); padding: 8px;
  opacity: 0; visibility: hidden; transform: translateY(6px);
  transition: all .18s cubic-bezier(.4,0,.2,1); z-index: 1100;
}
.nav-item:hover .nav-dropdown { opacity: 1; visibility: visible; transform: translateY(0); }
.nav-dropdown a {
  display: flex; align-items: center; gap: 10px; padding: 9px 10px;
  font-size: 13px; font-weight: 500; color: var(--text-light);
  text-decoration: none; border-radius: 8px; transition: all .15s;
}
.nav-dropdown a:hover { background: var(--primary-light); color: var(--primary); }
.nav-dropdown a i { width: 14px; color: var(--primary); font-size: 12px; }
.nav-dropdown .dd-all { border-top: 1px solid var(--border); margin-top: 4px; padding-top: 10px; font-weight: 700; color: var(--primary); }

/* ── Theme + Mobile toggle buttons ── */
.theme-toggle, .nav-toggle {
  width: 36px; height: 36px; border-radius: 8px;
  border: 1px solid var(--border); background: var(--bg-card); color: var(--text-light);
  display: flex; align-items: center; justify-content: center;
  cursor: pointer; transition: all .2s; flex-shrink: 0;
}
.theme-toggle:hover, .nav-toggle:hover { color: var(--primary); border-color: var(--primary); }
.nav-toggle { display: none; }

/* ── Mobile nav ── */
@media (max-width: 980px) {
  .nav {
    display: none; position: fixed; top: 64px; left: 0; right: 0; bottom: 0;
    background: var(--bg); flex-direction: column; align-items: stretch;
    padding: 14px; overflow-y: auto; gap: 2px; border-top: 1px solid var(--border); z-index: 999;
  }
  .nav.open { display: flex; }
  .nav-item { width: 100%; }
  .nav-link { width: 100%; justify-content: space-between; padding: 12px; }
  .nav-dropdown {
    position: static; opacity: 1; visibility: visible; transform: none;
    box-shadow: none; border: none; padding-left: 14px; display: none;
  }
  .nav-item.open .nav-dropdown { display: block; }
  .nav-toggle { display: flex; }
}