/*
 * QRBoomi Brand Design System
 * Single source of truth for tokens, typography, nav, and buttons.
 * All pages must link to this file.
 */

/* ── TOKENS ─────────────────────────────────────────────────────────────── */
:root {
  /* Brand palette */
  --accent:        #FFE95C;
  --accent-hover:  #F2D83B;
  --accent-ink:    #0a1a3a;
  --ink:           #0a1a3a;
  --ink-soft:      #4a4e6b;
  --ink-muted:     #8a8fa8;
  --bg:            #f6f1e6;
  --bg-alt:        #f0f4f9;
  --white:         #ffffff;
  --white-70:      rgba(255,255,255,.78);
  --white-50:      rgba(255,255,255,.55);

  /* Hero gradient */
  --grad-hero: linear-gradient(135deg, #002b6b 0%, #0050b8 50%, #00a0d8 100%);

  /* Hero heading accent gradient (on dark bg) */
  --grad-accent-dark: linear-gradient(180deg, #FFE95C 0%, #c9a800 100%);

  /* Section heading accent gradient (on light bg) */
  --grad-accent-light: linear-gradient(135deg, #0050b8 0%, #00a0d8 100%);

  /* Layout */
  --container:     72rem;   /* 1152px — single canonical max-width */
  --pad-x:         3.5rem;  /* 56px side padding at desktop */
  --pad-x-md:      1.5rem;  /* 24px at mobile */
  --section-py:    6rem;    /* 96px vertical section padding */

  /* Typography — HERO */
  --hero-size:     clamp(34px, 4.8vw, 64px);
  --hero-lh:       1.10;
  --hero-ls:       -.024em;
  --hero-weight:   700;
  --hero-font:     "IBM Plex Sans", sans-serif;

  /* Typography — SECTION HEADINGS */
  --title-size:    clamp(30px, 3.8vw, 52px);
  --title-lh:      1.08;
  --title-ls:      -.022em;
  --title-weight:  700;
  --title-font:    "IBM Plex Sans", sans-serif;

  /* Typography — BODY */
  --body-font:     "Lato", system-ui, sans-serif;
}

/* ── BASE ────────────────────────────────────────────────────────────────── */
*, *::before, *::after { box-sizing: border-box; }
html, body { margin: 0; padding: 0; }
body {
  font-family: var(--body-font);
  background: var(--bg);
  color: var(--ink);
  overflow-x: hidden;
}

/* ── CONTAINER ───────────────────────────────────────────────────────────── */
.container {
  max-width: var(--container);
  margin-inline: auto;
  padding-inline: var(--pad-x);
}
@media (max-width: 720px) {
  .container { padding-inline: var(--pad-x-md); }
}

/* ── TYPOGRAPHY UTILITIES ────────────────────────────────────────────────── */

/* Hero heading — used on every hero / above-fold section */
.hero-heading {
  font-family: var(--hero-font);
  font-weight: var(--hero-weight);
  font-size: var(--hero-size);
  line-height: var(--hero-lh);
  letter-spacing: var(--hero-ls);
  text-wrap: balance;
  margin: 0;
}
/* Accent on dark background (hero gradient) */
.hero-heading .accent,
.hero-heading .accent-dark {
  background: var(--grad-accent-dark);
  -webkit-background-clip: text;
  background-clip: text;
  color: transparent;
  padding-bottom: 0.06em;
}
/* Accent on light background */
.hero-heading .accent-light {
  background: var(--grad-accent-light);
  -webkit-background-clip: text;
  background-clip: text;
  color: transparent;
}

/* Section heading — used in all content sections */
.section-heading {
  font-family: var(--title-font);
  font-weight: var(--title-weight);
  font-size: var(--title-size);
  line-height: var(--title-lh);
  letter-spacing: var(--title-ls);
  text-wrap: balance;
  margin: 0 0 16px;
}

/* Section eyebrow */
.eyebrow {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  font: 600 11px/1 var(--body-font);
  letter-spacing: .16em;
  text-transform: uppercase;
  color: var(--ink-soft);
  margin-bottom: 16px;
}
.eyebrow::before {
  content: "";
  display: block;
  width: 20px; height: 2px;
  background: var(--accent);
  border-radius: 2px;
}
/* Eyebrow pill variant — for dark/hero backgrounds */
.eyebrow-pill {
  display: inline-flex;
  align-items: center;
  gap: 9px;
  padding: 7px 16px 7px 13px;
  border-radius: 999px;
  background: rgba(255,255,255,.10);
  border: 1px solid rgba(255,255,255,.18);
  backdrop-filter: blur(8px);
  -webkit-backdrop-filter: blur(8px);
  color: #fff;
  font: 600 11px/1 var(--body-font);
  letter-spacing: .16em;
  text-transform: uppercase;
  margin-bottom: 24px;
}
.eyebrow-pill .dot {
  width: 7px; height: 7px; border-radius: 50%;
  background: var(--accent);
  box-shadow: 0 0 0 3px rgba(255,233,92,.22);
  flex: 0 0 7px;
}

/* ── BUTTONS ─────────────────────────────────────────────────────────────── */
.btn {
  font-family: var(--body-font);
  font-weight: 700;
  font-size: 15.5px;
  padding: 13px 26px;
  border-radius: 0.5rem;
  border: 0;
  cursor: pointer;
  transition: transform .12s ease, background .15s ease, border-color .15s ease, color .15s ease;
  display: inline-flex;
  align-items: center;
  gap: 8px;
  white-space: nowrap;
  text-decoration: none;
  line-height: 1;
}
.btn:active { transform: translateY(1px); }

@keyframes btn-heartbeat {
  0%   { box-shadow: 0 0 0 0   rgba(255, 233, 92, 0.7); }
  70%  { box-shadow: 0 0 0 12px rgba(255, 233, 92, 0);   }
  100% { box-shadow: 0 0 0 0   rgba(255, 233, 92, 0);   }
}

.btn-primary {
  background: var(--accent);
  color: var(--accent-ink);
  animation: btn-heartbeat 1.8s ease-out infinite;
}
@media (prefers-reduced-motion: reduce) {
  .btn-primary { animation: none; }
}
.btn-primary:hover { background: var(--accent-hover); }

.btn-secondary {
  background: #000;
  color: #fff;
}
.btn-secondary:hover { background: #1a1a1a; }

/* Ghost on dark backgrounds */
.btn-ghost-dark {
  background: transparent;
  color: #fff;
  border: 1.5px solid rgba(255,255,255,.32);
}
.btn-ghost-dark:hover {
  background: rgba(255,255,255,.08);
  border-color: rgba(255,255,255,.55);
}

/* Ghost on light backgrounds */
.btn-ghost-light {
  background: transparent;
  color: var(--ink);
  border: 1.5px solid rgba(10,26,58,.22);
}
.btn-ghost-light:hover {
  background: rgba(10,26,58,.04);
  border-color: rgba(10,26,58,.40);
}

.btn-lg { padding: 15px 32px; font-size: 16px; }

/* ── Flow Button (animated secondary CTA) ────────────────────────────────── */
.btn-flow,
.btn-flow-dark {
  position: relative;
  overflow: hidden;
  border-radius: 12px;
  background: transparent;
  transition:
    border-color 600ms cubic-bezier(0.23,1,0.32,1),
    color        600ms cubic-bezier(0.23,1,0.32,1),
    transform    120ms ease;
}
.btn-flow:active,
.btn-flow-dark:active { transform: scale(0.95); }

/* Light-background variant */
.btn-flow {
  color: #111111;
}
.btn.btn-flow {
  border: 1.5px solid rgba(51,51,51,0.4);
}
.btn-flow:hover { border-color: transparent; color: #fff; }
.btn-flow .btn-flow-circle { background: #111111; }
.btn-flow .btn-flow-arr-l,
.btn-flow .btn-flow-arr-r { stroke: #111111; }
.btn-flow:hover .btn-flow-arr-l,
.btn-flow:hover .btn-flow-arr-r { stroke: #fff; }

/* Dark-background variant */
.btn-flow-dark {
  color: #fff;
}
.btn.btn-flow-dark {
  border: 1.5px solid rgba(255,255,255,0.4);
}
.btn-flow-dark:hover { border-color: transparent; color: #0a1a3a; }
.btn-flow-dark .btn-flow-circle { background: #fff; }
.btn-flow-dark .btn-flow-arr-l,
.btn-flow-dark .btn-flow-arr-r { stroke: #fff; }
.btn-flow-dark:hover .btn-flow-arr-l,
.btn-flow-dark:hover .btn-flow-arr-r { stroke: #0a1a3a; }

/* Shared inner elements */
.btn-flow-arr-l,
.btn-flow-arr-r {
  position: absolute;
  width: 16px;
  height: 16px;
  fill: none;
  z-index: 9;
  flex-shrink: 0;
  transition: all 800ms cubic-bezier(0.34,1.56,0.64,1);
}
.btn-flow-arr-l { left: -25%; }
.btn-flow:hover .btn-flow-arr-l,
.btn-flow-dark:hover .btn-flow-arr-l { left: 16px; }
.btn-flow-arr-r { right: 16px; }
.btn-flow:hover .btn-flow-arr-r,
.btn-flow-dark:hover .btn-flow-arr-r { right: -25%; }

.btn-flow-text {
  position: relative;
  z-index: 1;
  transform: translateX(-12px);
  transition: transform 800ms ease-out;
}
.btn-flow:hover .btn-flow-text,
.btn-flow-dark:hover .btn-flow-text { transform: translateX(12px); }

.btn-flow-circle {
  position: absolute;
  top: 50%; left: 50%;
  transform: translate(-50%,-50%);
  width: 16px; height: 16px;
  border-radius: 50%;
  opacity: 0;
  transition: all 800ms cubic-bezier(0.19,1,0.22,1);
}
.btn-flow:hover .btn-flow-circle,
.btn-flow-dark:hover .btn-flow-circle {
  width: 500px; height: 500px;
  opacity: 1;
}

/* ── NAV ─────────────────────────────────────────────────────────────────── */
.site-nav {
  display: grid;
  grid-template-columns: 1fr auto 1fr;
  align-items: center;
  padding: 20px var(--pad-x);
  color: #fff;
  position: relative;
  z-index: 10;
}
.site-nav .nav-left  { grid-column: 1; justify-self: start; }
.site-nav .nav-center { grid-column: 2; justify-self: center; }
.site-nav .nav-right  { grid-column: 3; justify-self: end; }

.site-nav .nav-logo {
  display: inline-flex;
  align-items: center;
  height: 56px;
  text-decoration: none;
}
.site-nav .nav-logo img {
  display: block;
  height: 100%;
  width: auto;
}

.site-nav .nav-links {
  display: inline-flex;
  align-items: center;
  gap: 32px;
  list-style: none;
  margin: 0; padding: 0;
}
.site-nav .nav-links a {
  font: 500 15px var(--body-font);
  color: rgba(255,255,255,.85);
  text-decoration: none;
  transition: color .15s;
}
.site-nav .nav-links a:hover { color: #fff; }

.site-nav .nav-actions {
  display: inline-flex;
  align-items: center;
  gap: 16px;
}
.site-nav .nav-login {
  font: 500 15px var(--body-font);
  color: rgba(255,255,255,.85);
  text-decoration: none;
  transition: color .15s;
}
.site-nav .nav-login:hover { color: #fff; }
.site-nav .nav-cta {
  font: 700 15px var(--body-font);
  background: var(--accent);
  color: var(--accent-ink);
  border: 0;
  border-radius: 0.5rem;
  padding: 11px 20px;
  cursor: pointer;
  transition: background .15s, transform .12s;
  white-space: nowrap;
  text-decoration: none;
  display: inline-flex; align-items: center;
}
.site-nav .nav-cta:hover  { background: var(--accent-hover); }
.site-nav .nav-cta:active { transform: translateY(1px); }

@media (max-width: 900px) {
  .site-nav .nav-center { display: none; }
  .site-nav { padding: 16px 16px; }
}

/* ── Hamburger button ── */
.nav-hamburger {
  display: none;
  flex-direction: column;
  justify-content: center;
  gap: 5px;
  width: 40px; height: 40px;
  background: none; border: none;
  cursor: pointer; padding: 8px;
  z-index: 1100;
}
.nav-hamburger span {
  display: block;
  width: 22px; height: 2px;
  background: #fff;
  border-radius: 2px;
  transition: transform .25s ease, opacity .2s ease;
  transform-origin: center;
}
.nav-hamburger.is-open span:nth-child(1) { transform: translateY(7px) rotate(45deg); }
.nav-hamburger.is-open span:nth-child(2) { opacity: 0; transform: scaleX(0); }
.nav-hamburger.is-open span:nth-child(3) { transform: translateY(-7px) rotate(-45deg); }

/* ── Mobile menu panel ── */
.nav-mobile-menu {
  display: none;
  position: fixed;
  inset: 0; top: 72px;
  background: rgba(2, 12, 36, 0.98);
  backdrop-filter: blur(16px);
  z-index: 1050;
  flex-direction: column;
  padding: 32px var(--pad-x-md) 40px;
  overflow-y: auto;
  opacity: 0;
  pointer-events: none;
  transition: opacity .22s ease;
}
.nav-mobile-menu.is-open {
  opacity: 1;
  pointer-events: auto;
}
.nav-mobile-links {
  list-style: none; margin: 0; padding: 0;
  display: flex; flex-direction: column;
  border-bottom: 1px solid rgba(255,255,255,.1);
  padding-bottom: 24px; margin-bottom: 24px;
}
.nav-mobile-links--secondary { border-bottom: none; padding-bottom: 0; margin-bottom: 32px; }
.nav-mobile-links a {
  display: block;
  font: 500 17px/1 var(--body-font);
  color: rgba(255,255,255,.85);
  text-decoration: none;
  padding: 14px 0;
  transition: color .15s;
}
.nav-mobile-links--secondary a { font-size: 15px; color: rgba(255,255,255,.6); }
.nav-mobile-links a:hover { color: #fff; }
.nav-mobile-actions { display: flex; flex-direction: column; gap: 12px; }
.nav-mobile-login {
  font: 500 15px var(--body-font);
  color: rgba(255,255,255,.75);
  text-decoration: none;
  text-align: center;
  padding: 12px;
  transition: color .15s;
}
.nav-mobile-login:hover { color: #fff; }

@media (max-width: 900px) {
  .nav-hamburger { display: flex; }
  .nav-mobile-menu { display: flex; }
  .site-nav .nav-actions .nav-login,
  .site-nav .nav-actions .nav-cta { display: none; }
}

/* ── Features dropdown ── */
.site-nav .nav-dropdown { position: relative; }

.site-nav .nav-drop-btn {
  display: inline-flex; align-items: center; gap: 5px;
  font: 500 15px var(--body-font);
  color: rgba(255,255,255,.85);
  background: none; border: 0; padding: 0; cursor: pointer;
  transition: color .15s;
}
.site-nav .nav-drop-btn:hover { color: #fff; }

.site-nav .nav-drop-icon {
  display: block; transition: transform .2s;
  position: relative; top: 2px;
}
.site-nav .nav-dropdown.open .nav-drop-icon,
.site-nav .nav-dropdown:hover .nav-drop-icon { transform: rotate(180deg); }

.site-nav .nav-drop-menu {
  position: absolute; top: 100%; left: 50%;
  transform: translateX(-50%) translateY(-6px);
  min-width: 260px;
  background: rgba(10, 18, 40, 0.96);
  backdrop-filter: blur(16px);
  border: 1px solid rgba(255,255,255,.10);
  border-radius: 14px;
  padding: 14px 8px 8px;
  list-style: none; margin: 0;
  box-shadow: 0 12px 40px rgba(0,0,0,.45);
  opacity: 0; pointer-events: none;
  transition: opacity .18s, transform .18s;
  z-index: 1001;
}
.site-nav .nav-dropdown.open .nav-drop-menu,
.site-nav .nav-dropdown:hover .nav-drop-menu {
  opacity: 1; pointer-events: auto;
  transform: translateX(-50%) translateY(0);
}

.site-nav .nav-drop-menu li { list-style: none; }

.site-nav .nav-drop-menu a {
  display: flex; flex-direction: column; gap: 2px;
  padding: 10px 14px; border-radius: 8px;
  text-decoration: none;
  transition: background .15s;
}
.site-nav .nav-drop-menu a:hover { background: rgba(255,255,255,.07); }

.site-nav .nav-drop-title {
  font: 600 14px var(--body-font); color: #fff;
}
.site-nav .nav-drop-desc {
  font: 400 12.5px var(--body-font); color: rgba(255,255,255,.50);
}

/* Section eyebrow — matches homepage section tags */
.section-eyebrow {
  display: inline-block;
  padding: 8px 20px;
  border-radius: 999px;
  border: 1px solid #e2e8f0;
  background: #fff;
  color: #64748b;
  font-family: var(--body-font);
  font-size: 12px;
  font-weight: 700;
  letter-spacing: .12em;
  text-transform: uppercase;
  margin-bottom: 24px;
}

/* ─────────────────────────────────────────────────────────────────────────────
   AI CAPABILITIES WIDGET  (shared across feature pages)
   ───────────────────────────────────────────────────────────────────────── */
.ai-widget {
  display: grid;
  grid-template-columns: 280px 1fr 280px;
  border: 1.5px solid #e2e8f0;
  border-radius: 16px;
  background: #fff;
  overflow: hidden;
  box-shadow: 0 2px 12px rgba(0,0,0,.06);
}
.ai-widget-col { padding: 28px 24px; }
.ai-widget-col + .ai-widget-col { border-left: 1.5px solid #e2e8f0; }

/* Column labels */
.ai-widget-label {
  display: flex; align-items: center; gap: 8px;
  font: 700 10px/1 var(--body-font);
  letter-spacing: .12em; text-transform: uppercase;
  margin-bottom: 18px;
}
.ai-widget-label-icon {
  width: 24px; height: 24px; border-radius: 6px;
  display: flex; align-items: center; justify-content: center; flex: 0 0 24px;
}
.ai-widget-label-icon.blue   { background: rgba(0,80,184,.1);  color: #0050b8; }
.ai-widget-label-icon.green  { background: rgba(22,163,74,.1); color: #16a34a; }
.ai-widget-label-icon.purple { background: rgba(124,58,237,.1);color: #7c3aed; }
.ai-widget-label.prompt { color: #0050b8; }
.ai-widget-label.output { color: #16a34a; }
.ai-widget-label.lift   { color: #7c3aed; }

/* PROMPT column */
.ai-widget-prompt { display: flex; flex-direction: column; }
.ai-widget-quote {
  font: italic 500 16px/1.55 var(--body-font);
  color: #0f172a; margin: 0 0 18px; border: 0; padding: 0;
}
.ai-widget-chips { display: flex; flex-direction: column; gap: 8px; margin-bottom: 28px; flex: 1; }
.ai-widget-chip {
  display: inline-flex; align-items: center; gap: 8px;
  padding: 7px 13px; border: 1.5px solid #e2e8f0;
  border-radius: 100px; font: 500 13px var(--body-font);
  color: #0050b8; width: fit-content; background: #fff;
}
.ai-widget-chip svg { flex: 0 0 13px; }
.ai-widget-actions { display: flex; align-items: center; gap: 14px; }
.ai-widget-generate {
  display: inline-flex; align-items: center; gap: 8px;
  padding: 11px 18px; background: #111; color: #fff;
  border: 0; border-radius: 8px; font: 700 13px var(--body-font); cursor: pointer;
}
.ai-widget-ready {
  display: inline-flex; align-items: center; gap: 5px;
  font: 500 13px var(--body-font); color: #64748b;
}

/* OUTPUT column */
.ai-widget-output { display: flex; flex-direction: column; }
.ai-widget-card { border-radius: 12px; overflow: hidden; margin-bottom: 14px; flex-shrink: 0; }
.ai-widget-features {
  display: grid; grid-template-columns: repeat(3,1fr);
  border: 1px solid #e2e8f0; border-radius: 10px; overflow: hidden;
  margin-bottom: 14px; flex-shrink: 0;
}
.ai-widget-feature {
  padding: 12px 14px; border-right: 1px solid #e2e8f0;
}
.ai-widget-feature:last-child { border-right: 0; }
.ai-widget-feature-title {
  display: flex; align-items: center; gap: 6px;
  font: 600 12px/1.3 var(--body-font); color: #0f172a; margin-bottom: 4px;
}
.ai-widget-feature-title svg { flex: 0 0 13px; }
.ai-widget-feature p { font: 400 12px/1.4 var(--body-font); color: #64748b; margin: 0; }
.ai-widget-cta {
  display: flex; align-items: center; justify-content: center; gap: 8px;
  padding: 15px; background: #1d4ed8; color: #fff; border-radius: 10px;
  font: 700 14px var(--body-font); text-decoration: none; margin-top: auto;
}
.ai-widget-cta:hover { background: #1e40af; color: #fff; }
.ai-widget-cta svg { flex: 0 0 15px; }

/* PREDICTED LIFT column */
.ai-widget-lift { display: flex; flex-direction: column; }
.ai-widget-pct {
  font: 800 52px/1 var(--body-font); color: #0050b8;
  letter-spacing: -.02em; margin-bottom: 4px;
}
.ai-widget-pct-desc { font: 400 13px var(--body-font); color: #64748b; margin-bottom: 12px; }
.ai-widget-badge {
  display: inline-flex; align-items: center; gap: 6px;
  padding: 6px 14px; border: 1.5px solid #e2e8f0;
  border-radius: 100px; font: 600 12px var(--body-font); color: #16a34a; margin-bottom: 20px; width: fit-content;
}
.ai-widget-badge svg { flex: 0 0 12px; }
.ai-widget-chart-title { font: 600 12px var(--body-font); color: #0f172a; margin-bottom: 10px; }
.ai-widget-chart { flex: 1; }
.ai-widget-chart svg { width: 100%; height: auto; display: block; }

@media (max-width: 1024px) {
  .ai-widget { grid-template-columns: 1fr; }
  .ai-widget-col + .ai-widget-col { border-left: 0; border-top: 1.5px solid #e2e8f0; }
  .ai-widget-pct { font-size: 40px; }
}

/* ── FIXED NAV (scroll-triggered, GSAP-controlled) ──────────────────────── */
#fixed-nav {
  position: fixed;
  top: 0;
  left: 0;
  right: 0;
  background: #fff;
  box-shadow: 0 1px 0 rgba(0,0,0,.06), 0 4px 20px rgba(0,0,0,.10);
  z-index: 1000;
  color: #374151;
  padding-block: 0;
  transform: translateY(-100%);
  overflow: visible;
}
#fixed-nav.site-nav {
  padding: 10px var(--pad-x);
}
@media (max-width: 900px) {
  #fixed-nav.site-nav { padding: 10px 16px; }
}
#fixed-nav .nav-links a,
#fixed-nav .nav-drop-btn { color: #374151; }
#fixed-nav .nav-links a:hover,
#fixed-nav .nav-drop-btn:hover { color: #111; }
#fixed-nav .nav-login { color: #374151; }
#fixed-nav .nav-login:hover { color: #111; }
#fixed-nav .nav-hamburger span { background: #374151; }
#fixed-nav .nav-hamburger.is-open span { background: #111; }
#fixed-nav .nav-mobile-menu {
  position: absolute;
  top: 100%;
  left: 0;
  right: 0;
  height: 100dvh;
}
