/* AgoraOS — Retail SaaS Flagship Showcase (ag.xael.fr) */
:root {
  --bg-dark: #060b14;
  --bg-dark-2: #0c1424;
  --bg-card-dark: rgba(17, 27, 46, 0.72);
  --line-dark: rgba(148, 179, 214, 0.16);
  --bg-light: #f6f8fb;
  --surface: #ffffff;
  --line: #e2e8f0;
  --text: #0f172a;
  --muted: #55657a;
  --text-light: #f1f5f9;
  --muted-light: #94a9c2;
  --cobalt: #2563eb;
  --cobalt-bright: #60a5fa;
  --emerald: #10b981;
  --emerald-bright: #34d399;
  --amber: #f59e0b;
  --radius: 18px;
  --font: 'Plus Jakarta Sans', 'Inter', system-ui, -apple-system, sans-serif;
  --mono: 'JetBrains Mono', ui-monospace, SFMono-Regular, monospace;
}

*, *::before, *::after { box-sizing: border-box; }
html { scroll-behavior: smooth; }
body {
  margin: 0;
  font-family: var(--font);
  color: var(--text);
  background: var(--bg-light);
  line-height: 1.55;
  -webkit-font-smoothing: antialiased;
  overflow-x: hidden;
}

img { max-width: 100%; display: block; }
a { color: inherit; text-decoration: none; }
button { font: inherit; cursor: pointer; }

.container {
  width: min(1180px, calc(100% - 40px));
  margin-inline: auto;
}

/* Navbar */
.nav-wrap {
  position: fixed;
  top: 0; left: 0; right: 0;
  z-index: 100;
  transition: background .25s ease, border-color .25s ease, backdrop-filter .25s ease;
  border-bottom: 1px solid transparent;
}
.nav-wrap.scrolled {
  background: rgba(6, 11, 20, 0.84);
  backdrop-filter: blur(14px);
  -webkit-backdrop-filter: blur(14px);
  border-bottom-color: var(--line-dark);
}
.navbar {
  height: 74px;
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 24px;
  color: var(--text-light);
}
.brand {
  display: inline-flex;
  align-items: center;
  gap: 10px;
  font-weight: 800;
  font-size: 1.15rem;
  letter-spacing: -.03em;
}
.brand-mark {
  width: 34px; height: 34px;
  border-radius: 10px;
  background: linear-gradient(135deg, var(--cobalt), var(--emerald));
  display: grid;
  place-items: center;
  color: #fff;
  font-weight: 800;
  font-size: .95rem;
  box-shadow: 0 6px 20px rgba(37, 99, 235, 0.4);
}
.brand span small {
  font-weight: 600;
  font-size: .72rem;
  color: var(--emerald-bright);
  margin-left: 4px;
  padding: 2px 6px;
  border-radius: 6px;
  background: rgba(16, 185, 129, 0.14);
}
.nav-links {
  display: flex;
  align-items: center;
  gap: 28px;
  font-size: .92rem;
  font-weight: 600;
  color: var(--muted-light);
}
.nav-links a:hover { color: #fff; }
.nav-cta { display: flex; align-items: center; gap: 10px; }
.menu-btn {
  display: none;
  background: rgba(255,255,255,.08);
  border: 1px solid var(--line-dark);
  color: #fff;
  width: 42px; height: 42px;
  border-radius: 10px;
  font-size: 1.2rem;
}

/* Buttons */
.btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 8px;
  padding: 11px 20px;
  border-radius: 12px;
  font-weight: 700;
  font-size: .92rem;
  border: 1px solid transparent;
  transition: transform .15s ease, box-shadow .2s ease, background .2s ease, border-color .2s ease;
  white-space: nowrap;
}
.btn:hover { transform: translateY(-1px); }
.btn-primary {
  background: linear-gradient(135deg, #2563eb, #1d4ed8);
  color: #fff;
  box-shadow: 0 8px 24px rgba(37, 99, 235, 0.35);
}
.btn-primary:hover { box-shadow: 0 12px 30px rgba(37, 99, 235, 0.5); }
.btn-emerald {
  background: linear-gradient(135deg, #10b981, #059669);
  color: #031912;
  box-shadow: 0 8px 24px rgba(16, 185, 129, 0.3);
}
.btn-ghost-dark {
  background: rgba(255, 255, 255, 0.06);
  border-color: rgba(148, 179, 214, 0.24);
  color: #e2e8f0;
}
.btn-ghost-dark:hover { background: rgba(255, 255, 255, 0.12); border-color: rgba(148, 179, 214, 0.45); }
.btn-outline {
  background: transparent;
  border-color: var(--line);
  color: var(--text);
}
.btn-outline:hover { border-color: var(--cobalt); color: var(--cobalt); }
.btn-lg { padding: 14px 26px; font-size: .98rem; border-radius: 14px; }

/* Hero */
.hero {
  position: relative;
  background: radial-gradient(900px 520px at 18% 10%, rgba(37, 99, 235, 0.22), transparent 65%),
              radial-gradient(760px 480px at 84% 18%, rgba(16, 185, 129, 0.16), transparent 65%),
              var(--bg-dark);
  color: var(--text-light);
  padding: 132px 0 96px;
  overflow: hidden;
}
.hero::before {
  content: "";
  position: absolute;
  inset: 0;
  background-image: linear-gradient(rgba(148, 179, 214, 0.05) 1px, transparent 1px),
                    linear-gradient(90deg, rgba(148, 179, 214, 0.05) 1px, transparent 1px);
  background-size: 56px 56px;
  mask-image: radial-gradient(ellipse at center top, #000 30%, transparent 78%);
  pointer-events: none;
}
.hero-inner {
  position: relative;
  text-align: center;
  max-width: 920px;
  margin-inline: auto;
}
.pill-badge {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  padding: 6px 14px;
  border-radius: 999px;
  background: rgba(37, 99, 235, 0.14);
  border: 1px solid rgba(96, 165, 250, 0.3);
  color: #bfdbfe;
  font-size: .82rem;
  font-weight: 600;
  margin-bottom: 22px;
}
.pill-dot {
  width: 8px; height: 8px;
  border-radius: 50%;
  background: var(--emerald-bright);
  box-shadow: 0 0 10px var(--emerald-bright);
}
.hero h1 {
  margin: 0;
  font-size: clamp(2.35rem, 5.2vw, 4.15rem);
  line-height: 1.07;
  letter-spacing: -.04em;
  font-weight: 800;
}
.gradient-text {
  background: linear-gradient(110deg, #93c5fd 0%, #34d399 55%, #60a5fa 100%);
  -webkit-background-clip: text;
  background-clip: text;
  color: transparent;
}
.hero-sub {
  margin: 22px auto 34px;
  max-width: 660px;
  font-size: clamp(1.02rem, 1.5vw, 1.2rem);
  color: var(--muted-light);
}
.hero-actions {
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 14px;
  flex-wrap: wrap;
}
.hero-kpis {
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  gap: 16px;
  max-width: 720px;
  margin: 44px auto 48px;
}
.hero-kpi {
  padding: 16px;
  border-radius: 14px;
  background: rgba(255, 255, 255, 0.04);
  border: 1px solid var(--line-dark);
}
.hero-kpi strong {
  display: block;
  font-size: 1.65rem;
  font-weight: 800;
  letter-spacing: -.03em;
  color: #fff;
  font-variant-numeric: tabular-nums;
}
.hero-kpi span { font-size: .82rem; color: var(--muted-light); }

/* Hero Frame */
.hero-stage {
  position: relative;
  margin-top: 12px;
  border-radius: 24px;
  padding: 10px;
  background: linear-gradient(145deg, rgba(96, 165, 250, 0.3), rgba(16, 185, 129, 0.2), rgba(255, 255, 255, 0.05));
  box-shadow: 0 36px 90px rgba(0, 0, 0, 0.55);
}
.hero-stage-inner {
  position: relative;
  border-radius: 16px;
  overflow: hidden;
  background: #08111f;
}
.hero-stage img {
  width: 100%;
  aspect-ratio: 16 / 9;
  object-fit: cover;
}
.float-chip {
  position: absolute;
  display: flex;
  align-items: center;
  gap: 10px;
  padding: 10px 14px;
  border-radius: 14px;
  background: rgba(8, 17, 31, 0.86);
  backdrop-filter: blur(12px);
  border: 1px solid rgba(148, 179, 214, 0.26);
  color: #fff;
  box-shadow: 0 14px 36px rgba(0, 0, 0, 0.4);
  font-size: .82rem;
  text-align: left;
}
.float-chip b { display: block; font-size: .95rem; font-variant-numeric: tabular-nums; }
.float-chip small { color: var(--muted-light); font-size: .74rem; }
.float-tl { top: 18px; left: 18px; }
.float-br { bottom: 18px; right: 18px; }
.chip-icon {
  width: 34px; height: 34px;
  border-radius: 10px;
  display: grid; place-items: center;
  font-weight: 800;
}
.chip-icon.green { background: rgba(16, 185, 129, 0.2); color: var(--emerald-bright); }
.chip-icon.blue { background: rgba(37, 99, 235, 0.24); color: var(--cobalt-bright); }

/* Logos strip */
.trust-strip {
  background: var(--surface);
  border-bottom: 1px solid var(--line);
  padding: 28px 0;
}
.trust-inner {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 24px;
  flex-wrap: wrap;
}
.trust-label {
  font-size: .78rem;
  font-weight: 700;
  text-transform: uppercase;
  letter-spacing: .1em;
  color: var(--muted);
}
.trust-logos {
  display: flex;
  align-items: center;
  gap: 32px;
  flex-wrap: wrap;
  font-weight: 800;
  font-size: 1.02rem;
  letter-spacing: -.02em;
  color: #64748b;
}

/* Sections */
.section { padding: 92px 0; }
.section-dark {
  background: linear-gradient(180deg, var(--bg-dark) 0%, var(--bg-dark-2) 100%);
  color: var(--text-light);
}
.section-head {
  max-width: 680px;
  margin-bottom: 48px;
}
.section-head.center { text-align: center; margin-inline: auto; }
.eyebrow {
  display: inline-block;
  font-size: .78rem;
  font-weight: 800;
  text-transform: uppercase;
  letter-spacing: .12em;
  color: var(--cobalt);
  margin-bottom: 10px;
}
.section-dark .eyebrow { color: var(--emerald-bright); }
.section-head h2 {
  margin: 0 0 14px;
  font-size: clamp(1.8rem, 3.3vw, 2.75rem);
  line-height: 1.12;
  letter-spacing: -.035em;
}
.section-head p {
  margin: 0;
  font-size: 1.05rem;
  color: var(--muted);
}
.section-dark .section-head p { color: var(--muted-light); }

/* Interactive SaaS Command Center Demo */
.demo-shell {
  background: var(--surface);
  border: 1px solid var(--line);
  border-radius: 22px;
  box-shadow: 0 24px 64px rgba(15, 23, 42, 0.08);
  overflow: hidden;
}
.demo-topbar {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 16px;
  flex-wrap: wrap;
  padding: 16px 22px;
  background: #0b1424;
  color: #fff;
  border-bottom: 1px solid var(--line-dark);
}
.demo-stores, .demo-tabs {
  display: flex;
  align-items: center;
  gap: 8px;
  flex-wrap: wrap;
}
.seg-btn {
  padding: 8px 14px;
  border-radius: 10px;
  border: 1px solid rgba(148, 179, 214, 0.2);
  background: rgba(255, 255, 255, 0.05);
  color: #cbd5e1;
  font-size: .84rem;
  font-weight: 700;
  transition: all .15s ease;
}
.seg-btn:hover { color: #fff; border-color: rgba(96, 165, 250, 0.5); }
.seg-btn.active {
  background: var(--cobalt);
  border-color: var(--cobalt);
  color: #fff;
  box-shadow: 0 4px 14px rgba(37, 99, 235, 0.4);
}
.demo-body { padding: 24px; }
.demo-kpis {
  display: grid;
  grid-template-columns: repeat(4, minmax(0, 1fr));
  gap: 14px;
  margin-bottom: 20px;
}
.demo-kpi {
  padding: 16px;
  border-radius: 14px;
  border: 1px solid var(--line);
  background: var(--bg-light);
}
.demo-kpi span { display: block; font-size: .76rem; font-weight: 700; text-transform: uppercase; letter-spacing: .06em; color: var(--muted); }
.demo-kpi strong { display: block; font-size: 1.55rem; font-weight: 800; margin-top: 6px; font-variant-numeric: tabular-nums; }
.demo-kpi small { font-size: .8rem; font-weight: 700; color: var(--emerald); }
.demo-grid {
  display: grid;
  grid-template-columns: minmax(0, 1.35fr) minmax(0, 1fr);
  gap: 18px;
}
.demo-panel {
  border: 1px solid var(--line);
  border-radius: 16px;
  padding: 18px;
  background: #fff;
}
.demo-panel h3 { margin: 0 0 14px; font-size: 1rem; display: flex; align-items: center; justify-content: space-between; }
.demo-chart svg { width: 100%; height: 195px; display: block; }
.ai-list { display: grid; gap: 10px; }
.ai-item {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 12px;
  padding: 12px 14px;
  border-radius: 12px;
  background: var(--bg-light);
  border: 1px solid var(--line);
}
.ai-item b { display: block; font-size: .9rem; }
.ai-item small { color: var(--muted); font-size: .8rem; }
.ai-btn {
  padding: 7px 12px;
  border-radius: 9px;
  border: 1px solid #bfdbfe;
  background: #eff6ff;
  color: #1d4ed8;
  font-size: .78rem;
  font-weight: 700;
  white-space: nowrap;
}
.ai-btn.done {
  border-color: #a7f3d0;
  background: #ecfdf5;
  color: #047857;
}

/* Feature Split Showcase */
.feature-row {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 48px;
  align-items: center;
  margin-bottom: 84px;
}
.feature-row:last-child { margin-bottom: 0; }
.feature-row.reverse .feature-media { order: -1; }
.feature-media {
  border-radius: 22px;
  overflow: hidden;
  border: 1px solid var(--line);
  box-shadow: 0 24px 54px rgba(15, 23, 42, 0.1);
  background: #0b1424;
}
.feature-media img { width: 100%; aspect-ratio: 16 / 10; object-fit: cover; }
.feature-copy h3 {
  margin: 0 0 14px;
  font-size: clamp(1.5rem, 2.5vw, 2.05rem);
  line-height: 1.15;
  letter-spacing: -.03em;
}
.feature-copy p { color: var(--muted); margin: 0 0 20px; font-size: 1.02rem; }
.check-list { list-style: none; padding: 0; margin: 0; display: grid; gap: 11px; }
.check-list li {
  display: flex;
  align-items: flex-start;
  gap: 10px;
  font-weight: 600;
  font-size: .95rem;
}
.check-list li::before {
  content: "✓";
  width: 22px; height: 22px;
  flex-shrink: 0;
  border-radius: 7px;
  display: grid; place-items: center;
  background: rgba(16, 185, 129, 0.14);
  color: #059669;
  font-size: .78rem;
  font-weight: 800;
}

/* ROI Calculator */
.roi-grid {
  display: grid;
  grid-template-columns: minmax(0, 1.05fr) minmax(0, .95fr);
  gap: 28px;
  align-items: stretch;
}
.roi-card {
  min-width: 0;
  max-width: 100%;
  padding: 28px;
  border-radius: 22px;
  background: var(--bg-card-dark);
  border: 1px solid var(--line-dark);
}
.slider-group { margin-bottom: 24px; min-width: 0; }
.slider-group:last-child { margin-bottom: 0; }
.slider-head {
  display: flex;
  flex-wrap: wrap;
  justify-content: space-between;
  align-items: baseline;
  gap: 4px 12px;
  margin-bottom: 10px;
}
.slider-head label { font-weight: 700; font-size: .94rem; color: #e2e8f0; }
.slider-head output { font-family: var(--mono); font-weight: 700; font-size: 1.05rem; color: var(--emerald-bright); }
input[type="range"] {
  width: 100%;
  accent-color: var(--emerald);
  height: 6px;
  cursor: pointer;
}
.roi-results {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 14px;
}
.roi-stat {
  padding: 18px;
  border-radius: 16px;
  background: rgba(255, 255, 255, 0.04);
  border: 1px solid var(--line-dark);
}
.roi-stat.highlight {
  grid-column: 1 / -1;
  background: linear-gradient(135deg, rgba(37, 99, 235, 0.22), rgba(16, 185, 129, 0.18));
  border-color: rgba(96, 165, 250, 0.35);
}
.roi-stat span { display: block; font-size: .78rem; text-transform: uppercase; letter-spacing: .07em; color: var(--muted-light); font-weight: 700; }
.roi-stat strong { display: block; font-size: 2rem; font-weight: 800; color: #fff; margin-top: 6px; font-variant-numeric: tabular-nums; }
.roi-stat.highlight strong { font-size: 2.55rem; color: var(--emerald-bright); }

/* Pricing */
.billing-switch {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  padding: 5px;
  border-radius: 14px;
  background: #e9eef5;
  margin-top: 18px;
}
.billing-switch button {
  padding: 9px 18px;
  border-radius: 10px;
  border: 0;
  background: transparent;
  font-weight: 700;
  font-size: .88rem;
  color: var(--muted);
}
.billing-switch button.active {
  background: #fff;
  color: var(--text);
  box-shadow: 0 3px 10px rgba(15, 23, 42, 0.08);
}
.pricing-grid {
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  gap: 20px;
}
.price-card {
  display: flex;
  flex-direction: column;
  padding: 28px;
  border-radius: 22px;
  background: var(--surface);
  border: 1px solid var(--line);
}
.price-card.featured {
  background: #0b1424;
  color: #fff;
  border-color: rgba(96, 165, 250, 0.45);
  box-shadow: 0 24px 60px rgba(15, 23, 42, 0.22);
}
.price-tag {
  display: inline-block;
  align-self: flex-start;
  padding: 4px 10px;
  border-radius: 999px;
  font-size: .74rem;
  font-weight: 800;
  text-transform: uppercase;
  letter-spacing: .06em;
  background: #eff6ff;
  color: var(--cobalt);
  margin-bottom: 14px;
}
.price-card.featured .price-tag { background: rgba(16, 185, 129, 0.2); color: var(--emerald-bright); }
.price-card h3 { margin: 0 0 8px; font-size: 1.35rem; }
.price-card .desc { margin: 0 0 20px; font-size: .92rem; color: var(--muted); }
.price-card.featured .desc { color: var(--muted-light); }
.price-amount {
  font-size: 2.4rem;
  font-weight: 800;
  letter-spacing: -.04em;
  margin-bottom: 20px;
  font-variant-numeric: tabular-nums;
}
.price-amount small { font-size: .9rem; font-weight: 600; color: var(--muted); }
.price-card.featured .price-amount small { color: var(--muted-light); }
.price-card .check-list { margin-bottom: 26px; }
.price-card .btn { margin-top: auto; width: 100%; }

/* FAQ */
.faq-list { max-width: 820px; margin-inline: auto; display: grid; gap: 12px; }
.faq-list details {
  background: var(--surface);
  border: 1px solid var(--line);
  border-radius: 16px;
  padding: 18px 22px;
}
.faq-list summary {
  font-weight: 700;
  font-size: 1.02rem;
  cursor: pointer;
  list-style: none;
  display: flex;
  justify-content: space-between;
  align-items: center;
  gap: 16px;
}
.faq-list summary::-webkit-details-marker { display: none; }
.faq-list summary::after { content: "+"; font-size: 1.35rem; color: var(--cobalt); font-weight: 700; }
.faq-list details[open] summary::after { content: "−"; }
.faq-list details p { margin: 12px 0 0; color: var(--muted); font-size: .95rem; }

/* CTA Banner & Footer */
.cta-box {
  padding: 56px 36px;
  border-radius: 26px;
  text-align: center;
  background: radial-gradient(600px 300px at 50% 0%, rgba(37, 99, 235, 0.35), transparent 70%), #091221;
  border: 1px solid rgba(96, 165, 250, 0.25);
  color: #fff;
}
.cta-box h2 { margin: 0 0 12px; font-size: clamp(1.7rem, 3vw, 2.45rem); letter-spacing: -.03em; }
.cta-box p { margin: 0 auto 28px; max-width: 560px; color: var(--muted-light); }

footer {
  background: var(--bg-dark);
  color: var(--muted-light);
  padding: 46px 0;
  border-top: 1px solid var(--line-dark);
  font-size: .88rem;
}
.footer-inner {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 20px;
  flex-wrap: wrap;
}
.footer-links { display: flex; gap: 22px; flex-wrap: wrap; }
.footer-links a:hover { color: #fff; }

/* Demo Modal */
dialog.demo-modal {
  border: 1px solid var(--line);
  border-radius: 22px;
  padding: 28px;
  width: min(500px, calc(100vw - 28px));
  box-shadow: 0 32px 80px rgba(0, 0, 0, 0.35);
}
dialog.demo-modal::backdrop { background: rgba(6, 11, 20, 0.72); backdrop-filter: blur(5px); }
.modal-head { display: flex; justify-content: space-between; align-items: center; margin-bottom: 16px; }
.modal-head h3 { margin: 0; font-size: 1.35rem; }
.modal-x {
  width: 36px; height: 36px;
  border-radius: 10px;
  border: 1px solid var(--line);
  background: var(--bg-light);
  font-size: 1.1rem;
  font-weight: 700;
}
.field { margin-bottom: 14px; }
.field label { display: block; font-size: .84rem; font-weight: 700; margin-bottom: 6px; }
.field input, .field select {
  width: 100%;
  padding: 11px 13px;
  border-radius: 11px;
  border: 1px solid #cbd5e1;
  font: inherit;
  font-size: .95rem;
}
.form-ok {
  padding: 14px;
  border-radius: 12px;
  background: #ecfdf5;
  border: 1px solid #a7f3d0;
  color: #065f46;
  font-weight: 600;
  font-size: .92rem;
}

/* Reveal animation */
.reveal { opacity: 0; transform: translateY(18px); transition: opacity .55s ease, transform .55s ease; }
.reveal.visible { opacity: 1; transform: none; }

/* Mobile menu panel */
.mobile-menu {
  display: flex;
  flex-direction: column;
  gap: 8px;
  padding: 16px 20px 22px;
  background: rgba(6, 11, 20, 0.96);
  backdrop-filter: blur(18px);
  border-bottom: 1px solid var(--line-dark);
}
.mobile-menu[hidden] { display: none; }
.mobile-menu a {
  padding: 10px 12px;
  border-radius: 10px;
  color: #e2e8f0;
  font-weight: 600;
  font-size: .96rem;
}
.mobile-menu a:hover { background: rgba(255, 255, 255, 0.06); color: #fff; }
.mobile-menu .btn { margin-top: 6px; width: 100%; }

@media (max-width: 960px) {
  .nav-links, .nav-cta .btn-ghost-dark { display: none; }
  .menu-btn { display: grid; place-items: center; }
  .demo-kpis { grid-template-columns: repeat(2, minmax(0, 1fr)); }
  .demo-grid, .feature-row, .roi-grid, .pricing-grid { grid-template-columns: minmax(0, 1fr); }
  .feature-row.reverse .feature-media { order: 0; }
}
@media (max-width: 640px) {
  html, body { overflow-x: clip; }
  .hero { padding: 108px 0 64px; }
  .hero-kpis { grid-template-columns: minmax(0, 1fr); }
  .float-chip { display: none; }
  .roi-card { padding: 20px 16px; }
  .roi-results { grid-template-columns: minmax(0, 1fr); }
  .roi-stat.highlight strong { font-size: 2rem; }
  .nav-cta .btn-primary { padding: 9px 12px; font-size: .82rem; }
  .section { padding: 64px 0; }
}
@media (prefers-reduced-motion: reduce) {
  *, *::before, *::after { transition: none !important; scroll-behavior: auto !important; }
  .reveal { opacity: 1; transform: none; }
}
