/* ═══════════════════════════════════════════════════════════════
   AIDARIUS — Shared Design System
   ═══════════════════════════════════════════════════════════════ */

/* ─── Tokens ─────────────────────────────────────────────────── */
:root {
  --purple-deep:   #2f1c6a;
  --purple-core:   #673de6;
  --purple-mid:    #7c52f0;
  --purple-light:  #ebe4ff;
  --purple-xlight: #f5f0ff;
  --ink:           #1a1230;
  --ink-muted:     #5a5270;
  --ink-soft:      #8e88a8;
  --white:         #ffffff;
  --surface:       #faf9ff;
  --border:        rgba(103,61,230,0.15);
  --radius-sm:     8px;
  --radius-md:     16px;
  --radius-lg:     24px;
  --radius-xl:     32px;
  --shadow-sm:     0 2px 8px rgba(47,28,106,0.08);
  --shadow-md:     0 8px 32px rgba(47,28,106,0.12);
  --shadow-lg:     0 20px 60px rgba(47,28,106,0.18);
  --transition:    0.25s cubic-bezier(0.4,0,0.2,1);
  --font:          'Inter', sans-serif;
}

/* ─── Reset ──────────────────────────────────────────────────── */
*, *::before, *::after { box-sizing: border-box; margin: 0; padding: 0; }
html { scroll-behavior: smooth; font-size: 16px; }
body { font-family: var(--font); background: var(--white); color: var(--ink); line-height: 1.6; -webkit-font-smoothing: antialiased; }
img { max-width: 100%; display: block; }
a { text-decoration: none; color: inherit; }
button { font-family: var(--font); cursor: pointer; border: none; }

/* ─── Layout ─────────────────────────────────────────────────── */
.container { max-width: 1160px; margin: 0 auto; padding: 0 24px; }

/* ─── Typography helpers ─────────────────────────────────────── */
.section-tag {
  display: inline-flex; align-items: center; gap: 8px;
  background: var(--purple-light); color: var(--purple-core);
  font-size: 12px; font-weight: 700; letter-spacing: 0.08em;
  text-transform: uppercase; padding: 6px 14px;
  border-radius: 100px; margin-bottom: 20px;
}
.section-title {
  font-size: clamp(28px, 4vw, 48px); font-weight: 900;
  letter-spacing: -0.035em; line-height: 1.1; color: var(--ink);
}
.section-title span { color: var(--purple-core); }
.section-body { font-size: 17px; color: var(--ink-muted); line-height: 1.75; max-width: 560px; }

/* ─── Buttons ────────────────────────────────────────────────── */
.btn {
  display: inline-flex; align-items: center; gap: 8px;
  padding: 14px 28px; border-radius: 100px; font-size: 15px;
  font-weight: 700; transition: var(--transition); cursor: pointer;
  border: none; white-space: nowrap; font-family: var(--font);
}
.btn-primary {
  background: var(--purple-core); color: var(--white);
  box-shadow: 0 4px 20px rgba(103,61,230,0.35);
}
.btn-primary:hover { background: var(--purple-deep); transform: translateY(-1px); box-shadow: 0 6px 28px rgba(103,61,230,0.45); }
.btn-outline { background: transparent; color: var(--purple-core); border: 2px solid var(--purple-core); }
.btn-outline:hover { background: var(--purple-light); transform: translateY(-1px); }
.btn-ghost { background: var(--purple-xlight); color: var(--purple-core); }
.btn-ghost:hover { background: var(--purple-light); transform: translateY(-1px); }
.btn-white { background: var(--white); color: var(--purple-core); }
.btn-white:hover { background: var(--purple-xlight); transform: translateY(-1px); }
.btn-white-outline { background: transparent; color: var(--white); border: 2px solid rgba(255,255,255,0.35); }
.btn-white-outline:hover { background: rgba(255,255,255,0.1); transform: translateY(-1px); }
.btn-sm { padding: 10px 20px; font-size: 13px; }
.btn-lg { padding: 18px 36px; font-size: 17px; }

/* ─── Nav ────────────────────────────────────────────────────── */
.nav {
  position: fixed; top: 0; left: 0; right: 0; z-index: 200;
  background: rgba(255,255,255,0.93); backdrop-filter: blur(24px);
  border-bottom: 1px solid var(--border);
}
.nav-inner {
  display: flex; align-items: center; gap: 8px;
  padding: 0 24px; height: 68px; max-width: 1160px; margin: 0 auto;
}
.nav-logo {
  font-size: 22px; font-weight: 900; letter-spacing: -0.04em;
  color: var(--purple-deep); flex-shrink: 0; margin-right: 8px;
}
.nav-logo span { color: var(--purple-core); }
.nav-links { display: flex; align-items: center; gap: 2px; flex: 1; }
.nav-link {
  display: flex; align-items: center; gap: 4px;
  padding: 8px 14px; border-radius: var(--radius-sm);
  font-size: 14px; font-weight: 500; color: var(--ink-muted);
  transition: var(--transition); cursor: pointer;
}
.nav-link:hover { background: var(--purple-xlight); color: var(--purple-core); }
.nav-link.active { color: var(--purple-core); background: var(--purple-xlight); }

/* Nav dropdown */
.nav-drop { position: relative; }
.nav-drop-menu {
  position: absolute; top: calc(100% + 8px); left: 0;
  background: var(--white); border: 1px solid var(--border);
  border-radius: var(--radius-lg); box-shadow: var(--shadow-lg);
  padding: 8px; min-width: 280px; z-index: 300;
  opacity: 0; pointer-events: none;
  transform: translateY(-8px); transition: var(--transition);
}
.nav-drop:hover .nav-drop-menu { opacity: 1; pointer-events: all; transform: translateY(0); }
.drop-item {
  display: flex; align-items: center; gap: 12px;
  padding: 12px 14px; border-radius: var(--radius-sm);
  transition: var(--transition); cursor: pointer;
}
.drop-item:hover { background: var(--purple-xlight); }
.drop-icon { font-size: 22px; flex-shrink: 0; }
.drop-item strong { display: block; font-size: 14px; font-weight: 700; color: var(--ink); margin-bottom: 2px; }
.drop-item small { font-size: 12px; color: var(--ink-soft); }
.nav-cta { margin-left: auto; flex-shrink: 0; }
.nav-cta .btn { padding: 10px 22px; font-size: 14px; }

/* Hamburger */
.hamburger {
  display: none; flex-direction: column; gap: 5px;
  background: none; border: none; padding: 8px; cursor: pointer; margin-left: auto;
}
.hamburger span { display: block; width: 22px; height: 2px; background: var(--ink); border-radius: 2px; transition: var(--transition); }

/* Mobile nav */
.nav-mobile {
  display: none; flex-direction: column;
  background: var(--white); border-top: 1px solid var(--border);
  padding: 16px 24px 24px;
}
.nav-mobile.open { display: flex; }
.nav-mobile a {
  padding: 12px 0; font-size: 16px; font-weight: 600;
  color: var(--ink); border-bottom: 1px solid var(--border);
}
.nav-mobile a:last-child { border-bottom: none; }
.mob-cta {
  margin-top: 12px; background: var(--purple-core) !important;
  color: var(--white) !important; text-align: center;
  padding: 14px !important; border-radius: 100px !important;
}

@media (max-width: 900px) {
  .nav-links, .nav-cta { display: none; }
  .hamburger { display: flex; }
}

/* ─── Footer ─────────────────────────────────────────────────── */
.footer { background: var(--ink); padding: 72px 0 32px; }
.footer-top {
  display: grid; grid-template-columns: 1.6fr 1fr 1fr 1fr; gap: 48px;
  padding-bottom: 56px; border-bottom: 1px solid rgba(255,255,255,0.08);
  margin-bottom: 32px;
}
.footer-logo { font-size: 24px; font-weight: 900; letter-spacing: -0.04em; color: var(--white); margin-bottom: 14px; }
.footer-logo span { color: var(--purple-mid); }
.footer-desc { font-size: 14px; color: rgba(255,255,255,0.45); line-height: 1.7; margin-bottom: 24px; max-width: 260px; }
.footer-socials { display: flex; gap: 8px; }
.social-btn {
  width: 36px; height: 36px; border-radius: var(--radius-sm);
  background: rgba(255,255,255,0.08); display: flex;
  align-items: center; justify-content: center;
  font-size: 13px; font-weight: 700; color: rgba(255,255,255,0.6);
  transition: var(--transition);
}
.social-btn:hover { background: var(--purple-core); color: var(--white); }
.footer-col { display: flex; flex-direction: column; gap: 12px; }
.footer-col-title { font-size: 12px; font-weight: 700; letter-spacing: 0.1em; text-transform: uppercase; color: rgba(255,255,255,0.3); margin-bottom: 4px; }
.footer-col a { font-size: 14px; color: rgba(255,255,255,0.55); transition: var(--transition); }
.footer-col a:hover { color: var(--white); }
.footer-bottom {
  display: flex; align-items: center; justify-content: space-between;
  font-size: 13px; color: rgba(255,255,255,0.25); flex-wrap: wrap; gap: 12px;
}
.footer-bottom a { color: rgba(255,255,255,0.25); transition: var(--transition); }
.footer-bottom a:hover { color: rgba(255,255,255,0.6); }

@media (max-width: 1024px) { .footer-top { grid-template-columns: 1fr 1fr; } }
@media (max-width: 600px) { .footer-top { grid-template-columns: 1fr; } .footer-bottom { flex-direction: column; text-align: center; } }

/* ─── Common section patterns ────────────────────────────────── */
.section-header-center { text-align: center; margin-bottom: 64px; }
.section-header-center .section-body { margin: 16px auto 0; }

.check-item { display: flex; align-items: flex-start; gap: 10px; font-size: 15px; color: var(--ink); line-height: 1.5; }
.check-dot {
  width: 22px; height: 22px; border-radius: 50%; flex-shrink: 0;
  background: var(--purple-light); color: var(--purple-core);
  display: flex; align-items: center; justify-content: center;
  font-size: 11px; font-weight: 800; margin-top: 1px;
}
.check-dot.dark { background: rgba(255,255,255,0.15); color: white; }

/* ─── Page hero (subpages) ───────────────────────────────────── */
.page-hero {
  padding: 130px 0 80px;
  background: linear-gradient(135deg, var(--purple-deep) 0%, #3d20b0 60%, var(--purple-core) 100%);
  position: relative; overflow: hidden;
}
.page-hero::after {
  content: ''; position: absolute; inset: 0;
  background: radial-gradient(ellipse at 80% 50%, rgba(255,255,255,0.04) 0%, transparent 60%);
  pointer-events: none;
}
.page-hero-inner { position: relative; z-index: 1; }
.page-breadcrumb {
  display: flex; align-items: center; gap: 8px;
  font-size: 13px; color: rgba(255,255,255,0.5); margin-bottom: 24px;
}
.page-breadcrumb a { color: rgba(255,255,255,0.5); transition: var(--transition); }
.page-breadcrumb a:hover { color: rgba(255,255,255,0.85); }
.page-breadcrumb span { color: rgba(255,255,255,0.25); }
.page-hero-tag {
  display: inline-flex; align-items: center; gap: 8px;
  background: rgba(255,255,255,0.12); color: rgba(255,255,255,0.9);
  font-size: 12px; font-weight: 700; letter-spacing: 0.08em;
  text-transform: uppercase; padding: 6px 14px; border-radius: 100px;
  margin-bottom: 24px; border: 1px solid rgba(255,255,255,0.15);
}
.page-hero-title {
  font-size: clamp(36px, 5.5vw, 64px); font-weight: 900;
  letter-spacing: -0.04em; line-height: 1.08; color: var(--white); margin-bottom: 20px;
}
.page-hero-title span { color: #c4b5fd; }
.page-hero-sub { font-size: 18px; color: rgba(255,255,255,0.7); line-height: 1.7; max-width: 560px; margin-bottom: 36px; }

/* ─── Proof/stats bar ────────────────────────────────────────── */
.stats-bar { background: var(--purple-deep); padding: 36px 0; }
.stats-inner { display: flex; align-items: center; justify-content: center; gap: 0; flex-wrap: wrap; }
.stat-item { text-align: center; padding: 0 40px; border-right: 1px solid rgba(255,255,255,0.1); }
.stat-item:last-child { border-right: none; }
.stat-num { font-size: 32px; font-weight: 900; color: var(--white); letter-spacing: -0.04em; line-height: 1; margin-bottom: 4px; }
.stat-num em { color: var(--purple-mid); font-style: normal; }
.stat-label { font-size: 13px; color: rgba(255,255,255,0.5); font-weight: 500; }
@media (max-width: 600px) { .stat-item { padding: 16px 20px; border-right: none; border-bottom: 1px solid rgba(255,255,255,0.08); width: 50%; } }

/* ─── Cards ──────────────────────────────────────────────────── */
.card {
  background: var(--white); border-radius: var(--radius-lg);
  border: 1px solid var(--border); transition: var(--transition);
}
.card:hover { box-shadow: var(--shadow-md); transform: translateY(-3px); border-color: var(--purple-core); }
.card-dark {
  background: linear-gradient(145deg, var(--purple-deep), #4525b0);
  border: none; border-radius: var(--radius-lg); transition: var(--transition);
}
.card-dark:hover { box-shadow: var(--shadow-lg); transform: translateY(-3px); }

/* ─── Scanner promo bar ──────────────────────────────────────── */
.scanner-bar {
  background: linear-gradient(90deg, var(--purple-deep) 0%, #3d1fa8 100%);
  padding: 16px 0;
}
.scanner-bar-inner {
  display: flex; align-items: center; justify-content: space-between;
  gap: 20px; flex-wrap: wrap;
}
.scanner-bar-left { display: flex; align-items: center; gap: 14px; }
.scanner-bar-icon { font-size: 20px; }
.scanner-bar-text { font-size: 15px; font-weight: 600; color: var(--white); }
.scanner-bar-text span { font-size: 12px; font-weight: 800; background: #22c55e; color: white; padding: 2px 8px; border-radius: 100px; margin-left: 8px; text-transform: uppercase; letter-spacing: 0.06em; }
.scanner-bar-sub { font-size: 13px; color: rgba(255,255,255,0.55); }
.scanner-bar-cta { background: var(--white); color: var(--purple-core); padding: 10px 20px; border-radius: 100px; font-size: 14px; font-weight: 700; transition: var(--transition); flex-shrink: 0; }
.scanner-bar-cta:hover { background: var(--purple-xlight); }

/* ─── WhatsApp / chat bubbles ────────────────────────────────── */
.wa-float {
  position: fixed; bottom: 96px; right: 28px; z-index: 99;
  width: 48px; height: 48px; border-radius: 50%;
  background: #25d366; display: flex; align-items: center;
  justify-content: center; box-shadow: 0 4px 20px rgba(37,211,102,0.4);
  transition: var(--transition);
}
.wa-float:hover { transform: scale(1.1); }
.wa-float svg { width: 24px; height: 24px; fill: white; }
.chat-float {
  position: fixed; bottom: 28px; right: 28px; z-index: 99;
  display: flex; align-items: center; gap: 10px;
  background: var(--purple-core); color: var(--white);
  padding: 14px 22px; border-radius: 100px;
  font-size: 14px; font-weight: 700;
  box-shadow: 0 4px 24px rgba(103,61,230,0.45);
  transition: var(--transition);
}
.chat-float:hover { background: var(--purple-deep); transform: translateY(-2px); }
.chat-float svg { width: 20px; height: 20px; fill: white; }
