/* ============================================================
   RetailPool AI — Modern Light Design System 2025
   ============================================================ */
@import url('https://fonts.googleapis.com/css2?family=Inter:wght@400;500;600;700&family=Space+Grotesk:wght@500;600;700&display=swap');

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

:root {
  --brand:       #2563EB;
  --brand-dark:  #1D4ED8;
  --brand-light: #EFF6FF;
  --brand-mid:   #DBEAFE;
  --text:        #0F172A;
  --text-2:      #475569;
  --text-3:      #94A3B8;
  --bg:          #FFFFFF;
  --bg-2:        #F8FAFC;
  --bg-3:        #F1F5F9;
  --border:      #E2E8F0;
  --border-2:    #CBD5E1;
  --green:       #10B981;
  --green-bg:    #ECFDF5;
  --green-text:  #065F46;
  --amber:       #F59E0B;
  --amber-bg:    #FFFBEB;
  --red:         #EF4444;
  --red-bg:      #FEF2F2;
  --purple:      #7C3AED;
  --purple-light:#EDE9FE;
  --radius-sm:   8px;
  --radius:      12px;
  --radius-lg:   20px;
  --radius-xl:   28px;
  --shadow-sm:   0 1px 2px rgba(0,0,0,0.05);
  --shadow:      0 1px 3px rgba(0,0,0,0.06), 0 4px 16px rgba(0,0,0,0.06);
  --shadow-lg:   0 4px 24px rgba(0,0,0,0.10), 0 1px 4px rgba(0,0,0,0.06);
  --font-body:   'Inter', -apple-system, sans-serif;
  --font-display:'Space Grotesk', sans-serif;
}

html { scroll-behavior: smooth; }

/* ── Page fade-in transition ──────────────────────────────────── */
body {
  font-family: var(--font-body);
  font-size: 16px;
  color: var(--text);
  background: var(--bg);
  -webkit-font-smoothing: antialiased;
  line-height: 1.6;
  overflow-x: hidden;
  animation: pageFadeIn 0.5s ease-out;
}
@keyframes pageFadeIn {
  from { opacity: 0; transform: translateY(6px); }
  to   { opacity: 1; transform: translateY(0); }
}

h1,h2,h3,h4 {
  font-family: var(--font-display);
  line-height: 1.15;
  letter-spacing: -0.02em;
}
a { text-decoration: none; color: inherit; }
img { display: block; max-width: 100%; }
button { font-family: var(--font-body); }
.mono { font-family: 'JetBrains Mono', 'SF Mono', monospace; }

/* ── NAV — Glassmorphism ─────────────────────────────────────── */
nav {
  position: fixed; top: 0; left: 0; right: 0; z-index: 100;
  height: 64px;
  background: rgba(255,255,255,0.72);
  backdrop-filter: blur(20px) saturate(200%);
  -webkit-backdrop-filter: blur(20px) saturate(200%);
  border-bottom: 1px solid var(--border);
  transition: background 0.3s, box-shadow 0.3s;
}
nav.scrolled {
  background: rgba(255,255,255,0.92);
  box-shadow: 0 1px 12px rgba(0,0,0,0.06);
}
.nav-inner {
  max-width: 1180px; margin: 0 auto; padding: 0 1.5rem;
  height: 100%; display: flex; align-items: center; gap: 1.5rem;
}
.nav-logo {
  display: flex; align-items: center;
  font-weight: 800; font-size: 17px;
  font-family: var(--font-display); flex-shrink: 0;
  background: linear-gradient(135deg, var(--brand) 0%, var(--purple) 100%);
  -webkit-background-clip: text; -webkit-text-fill-color: transparent; background-clip: text;
  letter-spacing: -0.02em;
  text-decoration: none;
}
.nav-links { display: flex; align-items: center; gap: 2px; flex: 1; }
.nav-links a {
  padding: 6px 13px; border-radius: var(--radius-sm);
  font-size: 14px; font-weight: 500; color: var(--text-2);
  transition: background 0.15s, color 0.15s;
  white-space: nowrap;
}
.nav-links a:hover { background: var(--bg-3); color: var(--text); }
.nav-links a.active { background: var(--brand-light); color: var(--brand); font-weight: 600; }
.nav-right { display: flex; align-items: center; gap: 10px; flex-shrink: 0; }
.lang-switch {
  display: flex; border: 1px solid var(--border);
  border-radius: var(--radius-sm); overflow: hidden;
}
.lang-btn {
  background: none; border: none; cursor: pointer;
  font-size: 12px; font-weight: 600; color: var(--text-3);
  padding: 5px 10px; transition: all 0.15s;
}
.lang-btn.active { background: var(--bg-3); color: var(--text); }
.nav-burger {
  display: none; background: none; border: none;
  cursor: pointer; padding: 8px; color: var(--text); font-size: 20px;
  line-height: 1;
}
@media (max-width: 760px) {
  .nav-links {
    display: none;
    position: absolute; top: 64px; left: 0; right: 0;
    background: rgba(255,255,255,0.98);
    backdrop-filter: blur(16px);
    flex-direction: column; align-items: flex-start;
    border-bottom: 1px solid var(--border);
    padding: 0.5rem 1.25rem 1rem; gap: 0;
  }
  .nav-links.mobile-open { display: flex; }
  .nav-links a { padding: 0.75rem 0; width: 100%; border-bottom: 1px solid var(--border); border-radius: 0; }
  .nav-links a:last-child { border-bottom: none; }
  .nav-burger { display: block; }
}

/* ── BUTTONS ─────────────────────────────────────────────────── */
.btn-primary {
  display: inline-flex; align-items: center; gap: 6px;
  background: var(--brand); color: #fff;
  padding: 11px 22px; border-radius: 10px;
  font-size: 14px; font-weight: 600; border: none; cursor: pointer;
  transition: background 0.15s, transform 0.1s, box-shadow 0.15s;
  white-space: nowrap;
  font-family: var(--font-display);
}
.btn-primary:hover { background: var(--brand-dark); box-shadow: 0 4px 14px rgba(37,99,235,0.3); transform: translateY(-1px); }
.btn-primary:active { transform: translateY(0); }
.btn-primary:disabled { opacity: 0.5; cursor: not-allowed; transform: none !important; box-shadow: none !important; }

.btn-secondary {
  display: inline-flex; align-items: center; gap: 6px;
  background: var(--bg); color: var(--text);
  padding: 11px 22px; border-radius: 10px;
  font-size: 14px; font-weight: 600;
  border: 1px solid var(--border); cursor: pointer;
  transition: all 0.15s; white-space: nowrap;
  font-family: var(--font-display);
}
.btn-secondary:hover { background: var(--bg-3); border-color: var(--border-2); }

/* Compat with old .btn class */
.btn { font-family: var(--font-display); }

.btn-block { display: flex; width: 100%; justify-content: center; }
.btn-nav-cta {
  background: var(--brand); color: #fff; border: none;
  border-radius: var(--radius-sm); padding: 9px 20px;
  font-size: 14px; font-weight: 600; cursor: pointer;
  transition: all 0.15s;
  text-decoration: none; display: inline-block;
  font-family: var(--font-display);
}
.btn-nav-cta:hover { background: var(--brand-dark); box-shadow: 0 4px 14px rgba(37,99,235,0.25); transform: translateY(-1px); }

/* ── LAYOUT ──────────────────────────────────────────────────── */
section { padding: 5rem 2rem; }
.container { max-width: 1180px; margin: 0 auto; padding: 0 1.5rem; }
.container-narrow { max-width: 720px; margin: 0 auto; padding: 0 1.5rem; }

/* ── SECTION LABELS ──────────────────────────────────────────── */
.section-tag {
  display: inline-flex; align-items: center; gap: 8px;
  font-size: 12px; font-weight: 700; color: var(--brand);
  text-transform: uppercase; letter-spacing: 0.1em;
  margin-bottom: 1rem;
}
.section-tag::before {
  content: ''; width: 18px; height: 2px;
  background: var(--brand); border-radius: 1px; flex-shrink: 0;
}
/* Alias for old eyebrow class */
.section-eyebrow {
  display: inline-flex; align-items: center; gap: 8px;
  font-size: 12px; font-weight: 700; color: var(--brand);
  text-transform: uppercase; letter-spacing: 0.1em;
  margin-bottom: 1rem;
}
.section-eyebrow::before {
  content: ''; width: 18px; height: 2px;
  background: var(--brand); border-radius: 1px; flex-shrink: 0;
}
.section-title {
  font-size: clamp(1.75rem, 3.2vw, 2.6rem);
  font-weight: 700; margin-bottom: 0.9rem;
  max-width: 640px;
}
.section-sub {
  font-size: 1.05rem; color: var(--text-2);
  max-width: 560px; line-height: 1.7;
}

/* ── PAGE HERO ───────────────────────────────────────────────── */
.page-hero {
  padding-top: 108px; padding-bottom: 4rem;
}
.page-hero-center { text-align: center; }
.page-hero-center .section-tag { justify-content: center; }
.page-hero-center .section-title { margin-left: auto; margin-right: auto; }
.page-hero h1 {
  font-size: clamp(2rem, 4.4vw, 3.2rem);
  margin-bottom: 1rem;
}
.page-hero p {
  color: var(--text-2); font-size: 1.1rem; line-height: 1.7;
  max-width: 560px;
}

/* ── CARDS with glow-hover ───────────────────────────────────── */
.card {
  background: var(--bg); border: 1px solid var(--border);
  border-radius: var(--radius-lg); padding: 1.75rem;
  transition: box-shadow 0.3s ease, transform 0.2s ease, border-color 0.3s ease;
  position: relative;
}
.card:hover {
  box-shadow: 0 8px 30px rgba(37,99,235,0.08), 0 2px 8px rgba(0,0,0,0.04);
  transform: translateY(-3px);
  border-color: var(--brand-mid);
}

/* ── PILLS / BADGES ──────────────────────────────────────────── */
.pill {
  display: inline-flex; align-items: center; gap: 6px;
  font-size: 12px; font-weight: 600; padding: 4px 11px;
  border-radius: 100px;
}
.pill-green { background: var(--green-bg); color: var(--green-text); }
.pill-amber { background: var(--amber-bg); color: #92400E; }
.pill-blue  { background: var(--brand-light); color: var(--brand); }
.pill-red   { background: var(--red-bg); color: #991B1B; }
.pill-dot { width: 6px; height: 6px; border-radius: 50%; background: currentColor; }

.badge-new {
  font-size: 10px; font-weight: 700; text-transform: uppercase;
  background: var(--brand-light); color: var(--brand);
  border: 1px solid var(--brand-mid);
  border-radius: 4px; padding: 2px 7px; margin-left: 8px; vertical-align: middle;
}

/* ── INPUTS ──────────────────────────────────────────────────── */
.form-group { margin-bottom: 1.1rem; }
.form-label {
  font-size: 13px; font-weight: 500; color: var(--text);
  margin-bottom: 6px; display: block;
}
.form-input {
  width: 100%;
  background: var(--bg); border: 1px solid var(--border-2);
  border-radius: var(--radius-sm); padding: 11px 15px;
  color: var(--text); font-size: 14px; outline: none;
  font-family: var(--font-body);
  transition: border-color 0.15s, box-shadow 0.15s;
}
.form-input:focus {
  border-color: var(--brand);
  box-shadow: 0 0 0 3px rgba(37,99,235,0.12);
}
.form-input::placeholder { color: var(--text-3); }

/* ── RANGE SLIDER ────────────────────────────────────────────── */
input[type="range"] {
  width: 100%; -webkit-appearance: none; appearance: none;
  height: 4px; background: var(--bg-3); border-radius: 100px;
  outline: none; border: 1px solid var(--border);
}
input[type="range"]::-webkit-slider-thumb {
  -webkit-appearance: none; width: 18px; height: 18px;
  border-radius: 50%; background: var(--brand); cursor: pointer;
  border: 2px solid #fff; box-shadow: 0 0 0 3px rgba(37,99,235,0.2), var(--shadow-sm);
}
input[type="range"]::-moz-range-thumb {
  width: 18px; height: 18px; border-radius: 50%;
  background: var(--brand); cursor: pointer;
  border: 2px solid #fff; box-shadow: 0 0 0 3px rgba(37,99,235,0.2);
}

/* ── PROGRESS BAR ────────────────────────────────────────────── */
.progress-track {
  height: 7px; background: var(--bg-3); border-radius: 100px;
  overflow: hidden; border: 1px solid var(--border);
}
.progress-fill {
  height: 100%; border-radius: 100px;
  background: linear-gradient(90deg, var(--brand) 0%, var(--purple) 100%);
  transition: width 0.6s cubic-bezier(.2,.8,.2,1);
}

/* ── DIVIDER ─────────────────────────────────────────────────── */
.divider { height: 1px; background: var(--border); }

/* ── Utility colors ──────────────────────────────────────────── */
.text-signal { color: var(--green); }
.text-alert  { color: var(--red); }
.text-amber  { color: var(--amber); }
.text-violet { color: var(--purple); }
.text-dim    { color: var(--text-2); }
.text-faint  { color: var(--text-3); }

/* ── ANIMATED COUNTER ────────────────────────────────────────── */
.counter-value {
  display: inline-block;
  transition: transform 0.3s ease;
}
.counter-value.counting {
  animation: counterPulse 0.4s ease;
}
@keyframes counterPulse {
  0%   { transform: scale(1); }
  50%  { transform: scale(1.08); }
  100% { transform: scale(1); }
}

/* ── PARTICLE CANVAS ─────────────────────────────────────────── */
.hero-particles {
  position: absolute;
  top: 0; left: 0; width: 100%; height: 100%;
  pointer-events: none;
  z-index: 0;
  opacity: 0.6;
}

/* ── FOOTER ──────────────────────────────────────────────────── */
footer {
  background: var(--bg-2); border-top: 1px solid var(--border);
  padding: 4rem 0 2rem;
}
.footer-grid {
  max-width: 1180px; margin: 0 auto; padding: 0 1.5rem;
  display: grid; grid-template-columns: 2fr 1fr 1fr 1fr;
  gap: 3rem; margin-bottom: 3rem;
}
.footer-brand {
  font-family: var(--font-display); font-size: 17px; font-weight: 700;
  margin-bottom: 0.75rem; display: flex; align-items: center; gap: 10px;
}
.footer-desc {
  font-size: 14px; color: var(--text-2); line-height: 1.7; max-width: 280px;
}
.footer-col h4, .footer-col-title {
  font-size: 11px; font-weight: 700; text-transform: uppercase;
  letter-spacing: 0.1em; color: var(--text-3); margin-bottom: 1rem;
  font-family: var(--font-body);
}
.footer-col a {
  display: block; font-size: 14px; color: var(--text-2);
  margin-bottom: 0.6rem; transition: color 0.15s;
}
.footer-col a:hover { color: var(--brand); }
.footer-bottom {
  max-width: 1180px; margin: 0 auto; padding: 1.75rem 1.5rem 0;
  border-top: 1px solid var(--border);
  display: flex; justify-content: space-between;
  font-size: 13px; color: var(--text-3); flex-wrap: wrap; gap: 0.5rem;
}

/* ── REVEAL ANIMATION ────────────────────────────────────────── */
[data-reveal] {
  opacity: 0; transform: translateY(20px);
  transition: opacity 0.6s cubic-bezier(.2,.8,.2,1), transform 0.6s cubic-bezier(.2,.8,.2,1);
}
[data-reveal].in-view { opacity: 1; transform: translateY(0); }
@media (prefers-reduced-motion: reduce) {
  [data-reveal] { opacity: 1 !important; transform: none !important; transition: none !important; }
  *, *::before, *::after { animation-duration: 0.01ms !important; }
}

/* ── AUTH PAGES ───────────────────────────────────────────────── */
.form-error {
  display: none;
  margin-top: 0.75rem;
  padding: 10px 14px;
  background: var(--red-bg);
  border: 1px solid rgba(239,68,68,0.3);
  border-radius: var(--radius-sm);
  font-size: 13px; color: var(--red);
}
.form-error.visible { display: block; }
.form-success {
  display: none;
  margin-top: 0.75rem;
  padding: 10px 14px;
  background: var(--green-bg);
  border: 1px solid rgba(16,185,129,0.3);
  border-radius: var(--radius-sm);
  font-size: 13px; color: var(--green);
}
.form-success.visible { display: block; }
.btn-loading {
  position: relative; pointer-events: none; opacity: 0.7;
}
.btn-loading::after {
  content: '';
  position: absolute; right: 14px; top: 50%;
  width: 16px; height: 16px; margin-top: -8px;
  border: 2px solid rgba(255,255,255,0.3);
  border-top-color: #fff;
  border-radius: 50%;
  animation: spin 0.6s linear infinite;
}
@keyframes spin { to { transform: rotate(360deg); } }

/* ── RESPONSIVE ──────────────────────────────────────────────── */
@media (max-width: 900px) {
  .footer-grid { grid-template-columns: 1fr 1fr; gap: 2rem; }
}
@media (max-width: 600px) {
  .footer-grid { grid-template-columns: 1fr; }
  .footer-bottom { flex-direction: column; }
  section { padding: 3.5rem 1.25rem; }
  nav { padding: 0 1.25rem; }
}
.nav-dropdown { position: relative; display: inline-block; }
.nav-dropdown-content {
    display: none;
    position: absolute;
    background-color: var(--bg);
    min-width: 160px;
    box-shadow: var(--shadow-lg);
    border: 1px solid var(--border);
    border-radius: var(--radius-sm);
    z-index: 100;
    top: 100%;
    left: 0;
    padding: 0.5rem 0;
}
.nav-dropdown:hover .nav-dropdown-content { display: block; }
.nav-dropdown-content a {
    color: var(--text-2);
    padding: 10px 16px;
    text-decoration: none;
    display: block;
    font-size: 14px;
    font-weight: 500;
    transition: background-color 0.2s, color 0.2s;
}
.nav-dropdown-content a:hover {
    background-color: var(--bg-2);
    color: var(--brand);
}

/* ── Form feedback ─────────────────────────────────────────── */
.form-error {
  display: none; padding: 10px 14px; margin-top: 12px;
  background: var(--red-bg); border: 1px solid #FCA5A5; border-radius: var(--radius-sm);
  color: #991B1B; font-size: 13px; font-weight: 500;
}
.form-success {
  display: none; padding: 10px 14px; margin-top: 12px;
  background: var(--green-bg); border: 1px solid #6EE7B7; border-radius: var(--radius-sm);
  color: var(--green-text); font-size: 13px; font-weight: 500;
}
.form-error.visible, .form-success.visible { display: block; animation: result-fade .3s ease; }

/* ── Button variants ───────────────────────────────────────── */
.btn-secondary {
  display: inline-flex; align-items: center; justify-content: center; gap: 8px;
  padding: 10px 20px; background: var(--bg); color: var(--text);
  border: 1px solid var(--border); border-radius: var(--radius-sm);
  font-size: 14px; font-weight: 600; cursor: pointer; font-family: var(--font-body);
  transition: all .15s;
}
.btn-secondary:hover { background: var(--bg-2); border-color: var(--border-2); }
.btn-block { width: 100%; justify-content: center; }
.btn-loading { opacity: .6; pointer-events: none; position: relative; }
.btn-loading::after {
  content: ''; position: absolute; width: 16px; height: 16px;
  border: 2px solid transparent; border-top-color: currentColor;
  border-radius: 50%; animation: spin .6s linear infinite;
  right: 14px; top: 50%; margin-top: -8px;
}
@keyframes spin { to { transform: rotate(360deg); } }

/* ── Text utility colors ───────────────────────────────────── */
.text-violet { color: var(--purple) !important; }
.text-amber { color: var(--amber) !important; }
.text-signal { color: var(--green) !important; }
.text-alert { color: var(--red) !important; }

