/* ─── Reset & Base ───────────────────────────────────────────────────────── */
*, *::before, *::after { box-sizing: border-box; margin: 0; padding: 0; }

:root {
  --ink:          #003366;
  --ink-soft:     #1a4a7a;
  --accent:       #1a5fbf;
  --accent-dark:  #003366;
  --accent-soft:  #eaf1ff;
  --accent-mid:   rgba(0,51,102,0.10);
  --success:      #0ea870;
  --warning:      #f59e0b;
  --danger:       #ef4444;
  --surface:      #ffffff;
  --soft:         #f5f9ff;
  --border:       rgba(0,51,102,0.13);
  --border-soft:  rgba(0,51,102,0.07);
  --shadow-sm:    0 2px 8px rgba(0,51,102,0.07);
  --shadow-md:    0 8px 28px rgba(0,51,102,0.10);
  --shadow-lg:    0 24px 64px rgba(0,51,102,0.14);
  --radius-sm:    8px;
  --radius-md:    14px;
  --radius-lg:    20px;
  --radius-xl:    28px;
  --radius-full:  999px;
  --font:         'Inter', system-ui, -apple-system, sans-serif;
  --ease:         cubic-bezier(0.22, 1, 0.36, 1);
}

html { scroll-behavior: smooth; -webkit-font-smoothing: antialiased; }

body {
  font-family: var(--font);
  color: var(--ink);
  background: var(--surface);
  line-height: 1.6;
  overflow-x: hidden;
}

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

/* ─── Typography ─────────────────────────────────────────────────────────── */
.display { font-size: clamp(2.6rem, 5vw, 4.4rem); font-weight: 900; line-height: 1.06; letter-spacing: -0.03em; }
.headline { font-size: clamp(1.8rem, 3vw, 2.8rem); font-weight: 800; line-height: 1.14; letter-spacing: -0.025em; }
.title    { font-size: clamp(1.3rem, 2vw, 1.6rem); font-weight: 700; line-height: 1.3; letter-spacing: -0.015em; }
.body-lg  { font-size: 1.1rem; line-height: 1.7; color: var(--ink-soft); }
.body     { font-size: 0.975rem; line-height: 1.65; color: var(--ink-soft); }
.label    { font-size: 0.75rem; font-weight: 700; letter-spacing: 0.08em; text-transform: uppercase; }

/* ─── Layout ─────────────────────────────────────────────────────────────── */
.container { width: min(1160px, 100%); margin-inline: auto; padding-inline: clamp(20px, 5vw, 64px); }
.section   { padding-block: clamp(80px, 10vw, 130px); }

/* ─── Utilities ──────────────────────────────────────────────────────────── */
.text-center { text-align: center; }
.text-accent { color: var(--accent); }
.text-gradient {
  background: linear-gradient(135deg, #003366 0%, #1a5fbf 50%, #3e8fef 100%);
  -webkit-background-clip: text; background-clip: text; color: transparent;
}
.badge {
  display: inline-flex; align-items: center; gap: 6px;
  padding: 5px 14px; border-radius: var(--radius-full);
  background: var(--accent-mid); border: 1px solid rgba(49,89,184,0.2);
  color: var(--accent); font-size: 0.78rem; font-weight: 700; letter-spacing: 0.04em;
}
.badge-dot { width: 6px; height: 6px; border-radius: 50%; background: var(--accent); animation: pulse 2s ease infinite; }

@keyframes pulse { 0%,100% { opacity:1; transform: scale(1); } 50% { opacity:0.5; transform: scale(0.85); } }

/* ─── Buttons ────────────────────────────────────────────────────────────── */
.btn {
  display: inline-flex; align-items: center; justify-content: center; gap: 8px;
  padding: 0 24px; height: 48px; border-radius: var(--radius-sm);
  font-family: var(--font); font-weight: 700; font-size: 0.95rem;
  cursor: pointer; border: none; transition: all 180ms var(--ease);
  white-space: nowrap;
}
.btn-primary {
  background: var(--accent); color: #fff;
  box-shadow: 0 1px 3px rgba(49,89,184,0.3), 0 6px 18px rgba(49,89,184,0.22);
}
.btn-primary:hover { background: var(--accent-dark); transform: translateY(-2px); box-shadow: 0 4px 18px rgba(49,89,184,0.38); }
.btn-outline {
  background: transparent; color: var(--accent);
  border: 1.5px solid var(--accent);
}
.btn-outline:hover { background: var(--accent-soft); transform: translateY(-1px); }
.btn-ghost { background: rgba(255,255,255,0.12); color: #fff; border: 1px solid rgba(255,255,255,0.25); backdrop-filter: blur(8px); }
.btn-ghost:hover { background: rgba(255,255,255,0.22); }
.btn-lg { height: 56px; padding: 0 32px; font-size: 1rem; border-radius: var(--radius-md); }
.btn-sm { height: 38px; padding: 0 16px; font-size: 0.88rem; }

/* ─── Nav ────────────────────────────────────────────────────────────────── */
.nav {
  position: fixed; inset-block-start: 0; inset-inline: 0; z-index: 900;
  padding: 16px 0;
  transition: background 220ms ease, box-shadow 220ms ease, padding 220ms ease;
}
.nav.scrolled {
  background: rgba(255,255,255,0.97); backdrop-filter: blur(20px) saturate(180%);
  padding: 12px 0;
  box-shadow: 0 2px 32px rgba(0,51,102,0.08);
}
.nav-inner {
  display: flex; align-items: center; justify-content: space-between; gap: 16px;
}
.nav-logo { display: flex; align-items: center; }
.nav-logo-svg { color: rgba(255,255,255,0.9); transition: color 220ms ease; height: 30px; width: auto; }
.nav.scrolled .nav-logo-svg { color: var(--ink); }

.nav-links { display: flex; align-items: center; gap: 2px; }
.nav-link {
  padding: 6px 14px; border-radius: var(--radius-sm);
  font-size: 0.875rem; font-weight: 500; color: rgba(255,255,255,0.55);
  transition: color 140ms ease, background 140ms ease;
}
.nav-link:hover { color: rgba(255,255,255,0.9); background: rgba(255,255,255,0.06); }
.nav-link.active { color: #fff; }

.nav.scrolled .nav-link { color: var(--ink-soft); }
.nav.scrolled .nav-link:hover, .nav.scrolled .nav-link.active {
  color: var(--accent); background: var(--accent-soft);
}

.nav-cta { display: flex; align-items: center; gap: 10px; }
.nav.scrolled .nav-cta .btn-outline { border-color: var(--accent); color: var(--accent); background: transparent; }
.nav.scrolled .nav-cta .btn-outline:hover { background: var(--accent-soft); }

.nav-menu-btn { display: none; background: none; border: none; cursor: pointer; color: rgba(255,255,255,0.6); }
.nav.scrolled .nav-menu-btn { color: var(--ink-soft); }

/* ─── Hero ───────────────────────────────────────────────────────────────── */
.hero {
  min-height: 100svh; display: flex; align-items: center;
  padding-top: 110px; padding-bottom: 90px;
  background: #0a0a0a;
  position: relative; overflow: hidden;
}
/* subtle ambient glow — one soft centered light, nothing aggressive */
.hero::before {
  content: ''; position: absolute;
  width: 900px; height: 600px;
  background: radial-gradient(ellipse at center, rgba(59,130,246,0.07) 0%, transparent 65%);
  top: 50%; left: 50%; transform: translate(-50%, -50%);
  pointer-events: none;
}
.hero-grid-bg, .hero-glow, .hero-inner, .hero-visual { display: none; }

/* ── Centered hero layout ─────────────────────────────────────────────── */
.hero-centered {
  position: relative; z-index: 1;
  display: flex; flex-direction: column; align-items: center;
  gap: 52px; text-align: center;
}

.hero-top { max-width: min(860px, 92vw); }
.hero-top .badge {
  display: inline-flex; margin-bottom: 28px;
  background: rgba(255,255,255,0.04);
  border: 1px solid rgba(255,255,255,0.08);
  color: #71717a; font-size: 0.75rem;
}
.hero-top .badge-dot { background: #3b82f6; box-shadow: 0 0 5px rgba(59,130,246,0.6); }

.hero-headline {
  color: #fafafa; margin-bottom: 20px;
  font-size: clamp(2.2rem, 3.8vw, 3.4rem);
  font-weight: 800; letter-spacing: -0.04em; line-height: 1.1;
}
.hero-sub {
  color: #a1a1aa; font-size: 1.05rem;
  line-height: 1.75; max-width: 560px; margin: 0 auto;
}

.hero-bottom-cta {
  display: flex; align-items: center; gap: 16px; flex-wrap: wrap; justify-content: center;
}
.hero-bottom-cta .btn-ghost {
  height: 38px; padding: 0 18px; font-size: 0.82rem;
  background: transparent; border: 1px solid #27272a;
  color: #52525b; border-radius: 8px;
}
.hero-bottom-cta .btn-ghost:hover { border-color: #3f3f46; color: #a1a1aa; background: transparent; transform: none; }
.hero-trust-inline { color: #3f3f46; font-size: 0.8rem; font-weight: 500; }
.hero-trust-stars { color: #854d0e; font-size: 0.75rem; margin-right: 5px; }
.hero-trust-inline strong { color: #52525b; font-weight: 600; }

/* ─── AI Chat Widget ─────────────────────────────────────────────────────── */
.ai-chat {
  width: min(580px, 100%);
  background: #111116;
  border: 1px solid rgba(255,255,255,0.07);
  border-radius: 14px;
  display: flex; flex-direction: column;
  height: 440px; overflow: hidden;
  box-shadow: 0 2px 0 rgba(255,255,255,0.04) inset, 0 24px 60px rgba(0,0,0,0.45);
}

/* ── Header ── */
.ai-chat-header {
  display: flex; align-items: center; gap: 10px;
  padding: 13px 16px;
  border-bottom: 1px solid rgba(255,255,255,0.05);
  flex-shrink: 0;
}
.ai-chat-title {
  display: flex; align-items: center; gap: 7px;
  color: rgba(255,255,255,0.3); font-size: 0.76rem; font-weight: 500;
  letter-spacing: 0.01em;
}
.ai-status-dot {
  width: 6px; height: 6px; border-radius: 50%;
  background: rgba(74,222,128,0.7); flex-shrink: 0;
}
.ai-badge { display: none; }

/* ── Messages ── */
.ai-chat-messages {
  flex: 1; overflow-y: auto; padding: 18px 16px 10px;
  display: flex; flex-direction: column; gap: 14px;
  scrollbar-width: thin; scrollbar-color: rgba(255,255,255,0.04) transparent;
}
.ai-chat-messages::-webkit-scrollbar { width: 3px; }
.ai-chat-messages::-webkit-scrollbar-thumb { background: rgba(255,255,255,0.06); border-radius: 99px; }

.ai-msg { display: flex; flex-direction: column; }
.ai-msg.user { align-items: flex-end; }
.ai-msg.assistant { align-items: flex-start; }
.ai-msg-sender { display: none; }

.ai-msg-bubble { font-size: 0.855rem; line-height: 1.68; }

.ai-msg.assistant .ai-msg-bubble {
  color: rgba(255,255,255,0.5); max-width: 92%;
}
.ai-msg.assistant .ai-msg-bubble p { margin: 0 0 5px; color: rgba(255,255,255,0.5); }
.ai-msg.assistant .ai-msg-bubble p:last-child { margin-bottom: 0; }
.ai-msg.assistant .ai-msg-bubble strong { color: rgba(255,255,255,0.8); font-weight: 600; }
.ai-msg.assistant .ai-msg-bubble ul { margin: 3px 0 5px; padding-left: 14px; }
.ai-msg.assistant .ai-msg-bubble li { color: rgba(255,255,255,0.5); line-height: 1.6; margin-bottom: 2px; }

.ai-msg.user .ai-msg-bubble {
  background: rgba(255,255,255,0.07);
  border: 1px solid rgba(255,255,255,0.08);
  color: rgba(255,255,255,0.8);
  padding: 8px 13px; max-width: 78%;
  border-radius: 10px 10px 2px 10px;
}

/* typing */
.ai-typing { display: flex; gap: 4px; align-items: center; padding: 4px 0; }
.ai-typing span {
  width: 5px; height: 5px; border-radius: 50%;
  background: rgba(255,255,255,0.18);
  animation: typing-dot 1.2s ease infinite;
}
.ai-typing span:nth-child(2) { animation-delay: 0.18s; }
.ai-typing span:nth-child(3) { animation-delay: 0.36s; }
@keyframes typing-dot { 0%,60%,100%{transform:translateY(0);opacity:0.35} 30%{transform:translateY(-4px);opacity:1} }

/* register CTA */
.ai-chat-register {
  margin: 0 12px 10px;
  background: rgba(255,255,255,0.04); border: 1px solid rgba(255,255,255,0.07);
  border-radius: 8px; padding: 10px 13px;
  display: flex; align-items: center; justify-content: space-between; gap: 12px;
}
.ai-chat-register-text { color: rgba(255,255,255,0.35); font-size: 0.78rem; font-weight: 500; }
.ai-chat-register .btn-primary {
  background: rgba(255,255,255,0.12); color: rgba(255,255,255,0.8);
  border: 1px solid rgba(255,255,255,0.1); font-size: 0.78rem;
  height: 30px; padding: 0 12px; border-radius: 6px;
  box-shadow: none;
}
.ai-chat-register .btn-primary:hover { background: rgba(255,255,255,0.18); transform: none; }

/* ── Input ── */
.ai-chat-input-row {
  display: flex; align-items: center; gap: 8px;
  padding: 10px 12px;
  border-top: 1px solid rgba(255,255,255,0.05);
  flex-shrink: 0;
}
.ai-chat-input {
  flex: 1; background: rgba(255,255,255,0.04);
  border: 1px solid rgba(255,255,255,0.07); border-radius: 8px;
  padding: 0 13px; height: 38px;
  color: rgba(255,255,255,0.8); font-family: var(--font); font-size: 0.855rem;
  transition: border-color 150ms ease;
}
.ai-chat-input::placeholder { color: rgba(255,255,255,0.18); }
.ai-chat-input:focus { outline: none; border-color: rgba(255,255,255,0.14); }
.ai-chat-input:disabled { opacity: 0.3; }
.ai-chat-send {
  width: 34px; height: 34px; border-radius: 8px; flex-shrink: 0;
  background: rgba(255,255,255,0.08); border: 1px solid rgba(255,255,255,0.08);
  color: rgba(255,255,255,0.5); cursor: pointer;
  display: grid; place-items: center;
  transition: background 130ms ease, color 130ms ease;
}
.ai-chat-send:hover:not(:disabled) { background: rgba(255,255,255,0.13); color: rgba(255,255,255,0.85); }
.ai-chat-send:disabled { opacity: 0.2; cursor: not-allowed; }

@keyframes float { 0%,100%{transform:translateY(0)} 50%{transform:translateY(-10px)} }

.dash-header {
  display: flex; align-items: center; justify-content: space-between;
  margin-bottom: 16px;
}
.dash-dots { display: flex; gap: 6px; }
.dash-dot { width: 10px; height: 10px; border-radius: 50%; }
.dash-dot-r { background: #ff5f57; }
.dash-dot-y { background: #febc2e; }
.dash-dot-g { background: #28c840; }
.dash-label { color: rgba(255,255,255,0.4); font-size: 0.75rem; font-weight: 600; }

.dash-kpis { display: grid; grid-template-columns: repeat(3,1fr); gap: 10px; margin-bottom: 14px; }
.dash-kpi {
  background: rgba(255,255,255,0.07); border: 1px solid rgba(255,255,255,0.1);
  border-radius: var(--radius-md); padding: 14px 12px;
}
.dash-kpi-label { color: rgba(255,255,255,0.5); font-size: 0.68rem; font-weight: 700; letter-spacing: 0.06em; text-transform: uppercase; margin-bottom: 6px; }
.dash-kpi-value { color: #fff; font-size: 1.5rem; font-weight: 900; letter-spacing: -0.03em; }
.dash-kpi-delta { font-size: 0.7rem; font-weight: 700; margin-top: 3px; }
.dash-kpi-delta.up { color: #34d399; }
.dash-kpi-delta.down { color: #f87171; }

.dash-chart { background: rgba(255,255,255,0.05); border: 1px solid rgba(255,255,255,0.08); border-radius: var(--radius-md); padding: 14px; margin-bottom: 14px; }
.dash-chart-title { color: rgba(255,255,255,0.6); font-size: 0.72rem; font-weight: 700; text-transform: uppercase; letter-spacing: 0.06em; margin-bottom: 12px; }
.dash-bars { display: flex; align-items: flex-end; gap: 6px; height: 56px; }
.dash-bar { flex: 1; border-radius: 4px 4px 0 0; background: rgba(91,141,238,0.4); transition: all 1s var(--ease); }
.dash-bar.accent { background: linear-gradient(180deg, #5b8dee 0%, var(--accent) 100%); }

.dash-products { display: flex; flex-direction: column; gap: 6px; }
.dash-product {
  display: flex; align-items: center; justify-content: space-between;
  background: rgba(255,255,255,0.06); border: 1px solid rgba(255,255,255,0.08);
  border-radius: var(--radius-sm); padding: 8px 12px;
}
.dash-product-info { display: flex; align-items: center; gap: 8px; }
.dash-product-dot { width: 8px; height: 8px; border-radius: 50%; }
.dash-product-name { color: rgba(255,255,255,0.85); font-size: 0.78rem; font-weight: 600; }
.dash-product-stock { color: rgba(255,255,255,0.45); font-size: 0.72rem; }
.dash-product-badge { padding: 2px 8px; border-radius: var(--radius-full); font-size: 0.68rem; font-weight: 700; }
.badge-ok { background: rgba(52,211,153,0.18); color: #34d399; }
.badge-low { background: rgba(251,191,36,0.18); color: #fbbf24; }
.badge-out { background: rgba(248,113,113,0.18); color: #f87171; }

/* ─── Logos / Trust bar ──────────────────────────────────────────────────── */
.logos-bar {
  background: var(--soft); border-block: 1px solid var(--border-soft);
  padding: 36px 0;
}
.logos-label { color: var(--ink-soft); font-size: 0.8rem; font-weight: 600; letter-spacing: 0.04em; text-align: center; margin-bottom: 24px; }
.logos-grid { display: flex; align-items: center; justify-content: center; gap: clamp(24px, 5vw, 64px); flex-wrap: wrap; }
.logos-item { opacity: 0.4; filter: grayscale(100%); font-weight: 800; font-size: 1.05rem; letter-spacing: -0.02em; color: var(--ink); transition: opacity 200ms ease; }
.logos-item:hover { opacity: 0.7; }

/* ─── Stats ──────────────────────────────────────────────────────────────── */
.stats { background: var(--accent); }
.stats-grid { display: grid; grid-template-columns: repeat(4,1fr); gap: 0; }
.stat-item {
  padding: 52px 32px; text-align: center;
  border-right: 1px solid rgba(255,255,255,0.15);
}
.stat-item:last-child { border-right: none; }
.stat-value { color: #fff; font-size: clamp(2rem, 4vw, 3rem); font-weight: 900; letter-spacing: -0.04em; }
.stat-label { color: rgba(255,255,255,0.72); font-size: 0.88rem; font-weight: 500; margin-top: 6px; }

/* ─── Problem section ────────────────────────────────────────────────────── */
.problem { background: var(--soft); }
.problem-grid { display: grid; grid-template-columns: 1fr 1fr; gap: 80px; align-items: center; }
.problem-pains { display: flex; flex-direction: column; gap: 20px; margin-top: 28px; }
.pain-item {
  display: flex; gap: 16px; align-items: flex-start;
  padding: 20px; border-radius: var(--radius-md);
  background: #fff; border: 1px solid #fde8e8;
  box-shadow: var(--shadow-sm);
}
.pain-icon { font-size: 1.4rem; flex-shrink: 0; margin-top: 2px; }
.pain-text h4 { font-size: 0.95rem; font-weight: 700; color: var(--ink); margin-bottom: 4px; }
.pain-text p { font-size: 0.88rem; color: var(--ink-soft); line-height: 1.55; }

.solution-card {
  background: linear-gradient(145deg, #0d1e3d 0%, #1a3568 100%);
  border-radius: var(--radius-xl); padding: 40px 36px;
  box-shadow: var(--shadow-lg); position: relative; overflow: hidden;
}
.solution-card::before {
  content: ''; position: absolute;
  width: 300px; height: 300px; border-radius: 50%;
  background: rgba(91,141,238,0.2); filter: blur(60px);
  top: -80px; right: -80px; pointer-events: none;
}
.solution-list { display: flex; flex-direction: column; gap: 16px; margin-top: 24px; }
.solution-item {
  display: flex; align-items: flex-start; gap: 14px;
  padding: 16px; border-radius: var(--radius-md);
  background: rgba(255,255,255,0.07); border: 1px solid rgba(255,255,255,0.1);
}
.solution-check {
  width: 24px; height: 24px; border-radius: 50%;
  background: rgba(52,211,153,0.2); border: 1px solid rgba(52,211,153,0.4);
  display: grid; place-items: center; flex-shrink: 0; color: #34d399; font-size: 0.8rem;
}
.solution-item p { color: rgba(255,255,255,0.8); font-size: 0.9rem; line-height: 1.5; }
.solution-item strong { color: #fff; }

/* ─── Features ───────────────────────────────────────────────────────────── */
.features-intro { max-width: 620px; margin-inline: auto; margin-bottom: 64px; }
.features-grid { display: grid; grid-template-columns: repeat(3,1fr); gap: 1px; background: var(--border-soft); border: 1px solid var(--border-soft); border-radius: var(--radius-lg); overflow: hidden; }
.feature-card {
  background: var(--surface);
  padding: 28px 24px;
  transition: background 180ms ease;
}
.feature-card:hover { background: var(--soft); }
.feature-card h3 { font-size: 0.95rem; font-weight: 600; color: var(--ink); margin-bottom: 8px; }
.feature-card p { font-size: 0.85rem; color: var(--ink-soft); line-height: 1.6; margin: 0; }
.feature-tag {
  display: inline-flex; margin-bottom: 12px; padding: 2px 8px;
  border-radius: var(--radius-full); font-size: 0.68rem; font-weight: 700; letter-spacing: 0.04em;
}
.feature-tag.starter { background: rgba(14,168,112,0.1); color: #0b9960; }
.feature-tag.essential { background: rgba(26,95,191,0.1); color: var(--accent); }
.feature-tag.professional { background: rgba(124,58,237,0.08); color: #7c3aed; }

/* ─── How it works ───────────────────────────────────────────────────────── */
.how { background: var(--soft); }
.how-steps { display: grid; grid-template-columns: repeat(3,1fr); gap: 0; margin-top: 64px; position: relative; }
.how-steps::before {
  content: ''; position: absolute;
  top: 36px; left: calc(16.66% + 24px); right: calc(16.66% + 24px);
  height: 2px; background: linear-gradient(90deg, var(--border) 0%, var(--accent) 50%, var(--border) 100%);
  z-index: 0;
}
.step {
  display: flex; flex-direction: column; align-items: center;
  text-align: center; padding: 0 24px; position: relative; z-index: 1;
}
.step-num {
  width: 72px; height: 72px; border-radius: 50%;
  background: var(--surface); border: 2px solid var(--border);
  display: grid; place-items: center;
  font-size: 1.4rem; font-weight: 900; color: var(--accent);
  box-shadow: var(--shadow-sm); margin-bottom: 24px;
  transition: all 240ms var(--ease);
}
.step:hover .step-num { background: var(--accent); color: #fff; border-color: var(--accent); box-shadow: 0 8px 24px rgba(49,89,184,0.35); transform: scale(1.06); }
.step h3 { font-size: 1rem; font-weight: 700; color: var(--ink); margin-bottom: 10px; }
.step p { font-size: 0.88rem; color: var(--ink-soft); line-height: 1.6; }

/* ─── Testimonials ───────────────────────────────────────────────────────── */
.testimonials-grid { display: grid; grid-template-columns: repeat(3,1fr); gap: 24px; margin-top: 64px; }
.testimonial-card {
  background: var(--surface); border: 1px solid var(--border);
  border-radius: var(--radius-lg); padding: 32px 28px;
  box-shadow: var(--shadow-sm); display: flex; flex-direction: column; gap: 20px;
  transition: all 240ms var(--ease);
}
.testimonial-card:hover { transform: translateY(-4px); box-shadow: var(--shadow-md); }
.testimonial-stars { color: #fbbf24; font-size: 1rem; letter-spacing: 2px; }
.testimonial-quote { font-size: 0.92rem; line-height: 1.7; color: var(--ink); font-style: italic; }
.testimonial-quote::before { content: '\201C'; font-size: 1.6rem; color: var(--accent); line-height: 0; vertical-align: -0.4em; margin-right: 4px; }
.testimonial-author { display: flex; align-items: center; gap: 12px; margin-top: auto; }
.testimonial-avatar {
  width: 44px; height: 44px; border-radius: 50%;
  background: linear-gradient(135deg, var(--accent) 0%, #5b8dee 100%);
  display: grid; place-items: center; font-weight: 800; font-size: 0.9rem; color: #fff;
  flex-shrink: 0;
}
.testimonial-name { font-size: 0.9rem; font-weight: 700; color: var(--ink); }
.testimonial-role { font-size: 0.78rem; color: var(--ink-soft); }

/* ─── Pricing ────────────────────────────────────────────────────────────── */
.pricing { background: var(--soft); }
.pricing-toggle {
  display: flex; align-items: center; justify-content: center;
  gap: 12px; margin: 32px auto 56px;
}
.toggle-label { font-size: 0.9rem; font-weight: 600; color: var(--ink-soft); }
.toggle-label.active { color: var(--accent); }
.toggle-switch {
  width: 48px; height: 26px; border-radius: var(--radius-full);
  background: var(--accent); cursor: pointer;
  display: flex; align-items: center; padding: 3px;
  transition: background 200ms ease;
}
.toggle-knob {
  width: 20px; height: 20px; border-radius: 50%; background: #fff;
  box-shadow: 0 1px 4px rgba(0,0,0,0.2); transition: transform 200ms var(--ease);
}
.toggle-switch.annual .toggle-knob { transform: translateX(22px); }
.annual-badge { background: #d1fae5; color: #065f46; font-size: 0.72rem; font-weight: 700; padding: 3px 8px; border-radius: var(--radius-full); }

.pricing-grid { display: grid; grid-template-columns: repeat(4,1fr); gap: 20px; align-items: start; }
.plan-card {
  background: var(--surface); border: 1px solid var(--border);
  border-radius: var(--radius-xl); padding: 36px 30px;
  box-shadow: var(--shadow-sm); transition: all 240ms var(--ease);
  position: relative;
}
.plan-card:hover { transform: translateY(-4px); box-shadow: var(--shadow-lg); }
.plan-card.popular {
  background: linear-gradient(160deg, #001f4d 0%, #003080 100%);
  border: none;
  box-shadow: 0 0 0 1px rgba(0,51,102,0.6), 0 24px 64px rgba(0,51,102,0.35);
  transform: scale(1.04);
}
.plan-card.popular:hover { transform: scale(1.04) translateY(-4px); }
.plan-card.popular .plan-name { color: rgba(255,255,255,0.55); }
.plan-card.popular .plan-currency,
.plan-card.popular .plan-amount { color: #fff; }
.plan-card.popular .plan-period { color: rgba(255,255,255,0.5); }
.plan-card.popular .plan-desc { color: rgba(255,255,255,0.6); }
.plan-card.popular .plan-divider { background: rgba(255,255,255,0.1); }
.plan-card.popular .plan-feature { color: rgba(255,255,255,0.75); }
.plan-card.popular .plan-feature-check { color: #34d399; }
.plan-card.popular .plan-feature-x { color: rgba(255,255,255,0.2); }
.plan-card.popular .plan-cta-primary {
  background: #fff; color: var(--ink);
  box-shadow: 0 2px 12px rgba(0,0,0,0.2);
}
.plan-card.popular .plan-cta-primary:hover { background: #f0f4ff; transform: translateY(-2px); }
.popular-badge {
  position: absolute; top: -13px; left: 50%; transform: translateX(-50%);
  background: linear-gradient(90deg, #3b82f6, #1a5fbf);
  color: #fff;
  font-size: 0.7rem; font-weight: 700; padding: 4px 14px; border-radius: var(--radius-full);
  letter-spacing: 0.07em; text-transform: uppercase; white-space: nowrap;
  box-shadow: 0 2px 10px rgba(59,130,246,0.45);
}
.plan-name { font-size: 0.85rem; font-weight: 700; text-transform: uppercase; letter-spacing: 0.08em; color: var(--ink-soft); margin-bottom: 8px; }
.plan-price { display: flex; align-items: baseline; gap: 4px; margin-bottom: 6px; }
.plan-currency { font-size: 1.4rem; font-weight: 700; color: var(--ink); }
.plan-amount { font-size: 3.2rem; font-weight: 900; color: var(--ink); letter-spacing: -0.04em; }
.plan-amount-custom { font-size: 2.4rem; font-weight: 900; color: var(--ink); letter-spacing: -0.03em; }
.plan-period { font-size: 0.88rem; color: var(--ink-soft); }

.plan-card.enterprise { border-style: dashed; border-color: var(--border); }
.plan-card.enterprise .plan-amount-custom { color: var(--ink); }
.plan-card.enterprise .plan-period { font-size: 0.85rem; align-self: center; }
.plan-desc { font-size: 0.85rem; color: var(--ink-soft); margin-bottom: 28px; line-height: 1.55; }
.plan-cta { width: 100%; margin-bottom: 28px; }
.plan-cta-primary { background: var(--accent); color: #fff; }
.plan-cta-outline { border: 1.5px solid var(--border); color: var(--ink); background: transparent; }
.plan-cta-outline:hover { border-color: var(--accent); color: var(--accent); background: var(--accent-soft); }
.plan-divider { height: 1px; background: var(--border-soft); margin-bottom: 24px; }
.plan-features { display: flex; flex-direction: column; gap: 12px; }
.plan-feature { display: flex; align-items: flex-start; gap: 10px; font-size: 0.88rem; color: var(--ink-soft); }
.plan-feature-check { color: var(--success); font-size: 0.9rem; flex-shrink: 0; margin-top: 2px; }
.plan-feature-x { color: #d1d5db; font-size: 0.9rem; flex-shrink: 0; margin-top: 2px; }
.plan-feature.muted { color: #d1d5db; }

/* ─── FAQ ────────────────────────────────────────────────────────────────── */
.faq-grid { max-width: 760px; margin: 56px auto 0; display: flex; flex-direction: column; gap: 12px; }
.faq-item {
  background: var(--surface); border: 1px solid var(--border);
  border-radius: var(--radius-md); overflow: hidden;
  transition: border-color 200ms ease;
}
.faq-item.open { border-color: rgba(49,89,184,0.3); }
.faq-q {
  display: flex; align-items: center; justify-content: space-between; gap: 16px;
  padding: 20px 24px; cursor: pointer; user-select: none;
  font-size: 0.95rem; font-weight: 700; color: var(--ink);
}
.faq-arrow { color: var(--ink-soft); font-size: 1.2rem; transition: transform 220ms var(--ease); flex-shrink: 0; }
.faq-item.open .faq-arrow { transform: rotate(45deg); color: var(--accent); }
.faq-a { max-height: 0; overflow: hidden; transition: max-height 280ms var(--ease); }
.faq-item.open .faq-a { max-height: 200px; }
.faq-a-inner { padding: 0 24px 20px; font-size: 0.9rem; color: var(--ink-soft); line-height: 1.65; }

/* ─── CTA Banner ─────────────────────────────────────────────────────────── */
.cta-banner {
  background: linear-gradient(135deg, #0d1e3d 0%, #1a3568 50%, #0e2657 100%);
  position: relative; overflow: hidden;
}
.cta-banner-glow-1 { position: absolute; width: 500px; height: 500px; border-radius: 50%; background: rgba(49,89,184,0.3); filter: blur(80px); top: -200px; left: -100px; }
.cta-banner-glow-2 { position: absolute; width: 400px; height: 400px; border-radius: 50%; background: rgba(91,141,238,0.2); filter: blur(70px); bottom: -150px; right: 0; }
.cta-banner-inner { position: relative; z-index: 1; text-align: center; }
.cta-banner h2 { color: #fff; margin-bottom: 18px; }
.cta-banner p { color: rgba(255,255,255,0.7); font-size: 1.05rem; max-width: 520px; margin: 0 auto 36px; }
.cta-banner-actions { display: flex; justify-content: center; gap: 14px; flex-wrap: wrap; }
.cta-micro { margin-top: 18px; font-size: 0.82rem; color: rgba(255,255,255,0.45); }

/* ─── Footer ─────────────────────────────────────────────────────────────── */
.footer {
  background: #070f1f; padding: 64px 0 36px;
  border-top: 1px solid rgba(255,255,255,0.06);
}
.footer-grid { display: grid; grid-template-columns: 2fr 1fr 1fr 1fr; gap: 48px; margin-bottom: 56px; }
.footer-brand { max-width: 300px; }
.footer-logo {
  display: flex; align-items: center; gap: 10px;
  font-size: 1.2rem; font-weight: 900; color: #fff; margin-bottom: 14px;
}
.footer-tagline { font-size: 0.88rem; color: rgba(255,255,255,0.45); line-height: 1.6; }
.footer-col-title { font-size: 0.78rem; font-weight: 700; text-transform: uppercase; letter-spacing: 0.08em; color: rgba(255,255,255,0.35); margin-bottom: 16px; }
.footer-links { display: flex; flex-direction: column; gap: 10px; }
.footer-link { font-size: 0.88rem; color: rgba(255,255,255,0.5); transition: color 160ms ease; }
.footer-link:hover { color: rgba(255,255,255,0.9); }
.footer-bottom {
  padding-top: 28px; border-top: 1px solid rgba(255,255,255,0.06);
  display: flex; align-items: center; justify-content: space-between; gap: 16px; flex-wrap: wrap;
}
.footer-copy { font-size: 0.82rem; color: rgba(255,255,255,0.3); }
.footer-legal { display: flex; gap: 20px; }
.footer-legal a { font-size: 0.82rem; color: rgba(255,255,255,0.3); transition: color 160ms ease; }
.footer-legal a:hover { color: rgba(255,255,255,0.65); }

/* ─── Scroll animations ──────────────────────────────────────────────────── */
.reveal { opacity: 0; transform: translateY(28px); transition: opacity 600ms var(--ease), transform 600ms var(--ease); }
.reveal.visible { opacity: 1; transform: none; }
.reveal-delay-1 { transition-delay: 80ms; }
.reveal-delay-2 { transition-delay: 160ms; }
.reveal-delay-3 { transition-delay: 240ms; }
.reveal-delay-4 { transition-delay: 320ms; }
.reveal-delay-5 { transition-delay: 400ms; }

/* ─── Responsive ─────────────────────────────────────────────────────────── */
@media (max-width: 1024px) {
  .pricing-grid { grid-template-columns: repeat(2,1fr); }
  .features-grid { grid-template-columns: repeat(2,1fr); }
  .stats-grid { grid-template-columns: repeat(2,1fr); }
  .stat-item { border-right: none; border-bottom: 1px solid rgba(255,255,255,0.15); }
  .stat-item:nth-child(odd) { border-right: 1px solid rgba(255,255,255,0.15); }
  .stat-item:last-child, .stat-item:nth-last-child(2):nth-child(odd) { border-bottom: none; }
  .footer-grid { grid-template-columns: 1fr 1fr; }
}

@media (max-width: 768px) {
  .nav-links { display: none; }
  .nav-cta .btn-outline { display: none; }
  .nav-menu-btn { display: block; }
  .hero-inner { display: none; }
  .ai-chat { height: 400px; }
  .problem-grid { grid-template-columns: 1fr; }
  .features-grid { grid-template-columns: 1fr 1fr; }
  .how-steps { grid-template-columns: 1fr; gap: 40px; }
  .how-steps::before { display: none; }
  .testimonials-grid { grid-template-columns: 1fr; }
  .pricing-grid { grid-template-columns: 1fr; }
  .plan-card.popular { transform: none; }
  .footer-grid { grid-template-columns: 1fr; gap: 32px; }
  .footer-bottom { flex-direction: column; text-align: center; }
}

@media (max-width: 480px) {
  .hero-actions { flex-direction: column; }
  .hero-actions .btn { width: 100%; justify-content: center; }
  .stats-grid { grid-template-columns: 1fr; }
  .stat-item { border-right: none; }
  .features-grid { grid-template-columns: 1fr; }
}

/* ─── Mobile menu ────────────────────────────────────────────────────────── */
.mobile-menu {
  max-height: 0; overflow: hidden;
  transition: max-height 320ms cubic-bezier(0.22, 1, 0.36, 1);
  background: rgba(9,9,11,0.97);
  backdrop-filter: blur(16px);
}
.mobile-menu.open { max-height: 500px; border-top: 1px solid #27272a; }
.mobile-links {
  display: flex; flex-direction: column; gap: 4px;
  padding: 12px 0 20px;
}
.mobile-link {
  padding: 10px 16px; font-size: 1rem; font-weight: 600;
  border-radius: var(--radius-sm); display: block;
}
.mobile-actions {
  display: flex; flex-direction: column; gap: 8px;
  margin-top: 12px; padding-top: 12px;
  border-top: 1px solid var(--border-soft);
}

/* ─── Language Selector ──────────────────────────────────────────────────── */
.lang-selector { position: relative; }

.lang-btn {
  display: flex; align-items: center; gap: 5px;
  padding: 5px 10px; border-radius: var(--radius-sm);
  background: rgba(255,255,255,0.07); border: 1px solid rgba(255,255,255,0.12);
  font-family: var(--font); font-size: 0.78rem; font-weight: 600;
  color: rgba(255,255,255,0.65); cursor: pointer;
  transition: background 150ms ease, border-color 150ms ease, color 150ms ease;
}
.lang-btn:hover { background: rgba(255,255,255,0.13); color: rgba(255,255,255,0.9); }
.nav.scrolled .lang-btn { background: transparent; border-color: var(--border); color: var(--ink-soft); }
.nav.scrolled .lang-btn:hover { background: var(--soft); border-color: var(--accent); color: var(--accent); }

.lang-chevron { transition: transform 200ms ease; flex-shrink: 0; }
.lang-selector.open .lang-chevron { transform: rotate(180deg); }

.lang-dropdown {
  position: absolute; top: calc(100% + 8px); right: 0;
  background: var(--surface); border: 1px solid var(--border);
  border-radius: var(--radius-sm); box-shadow: var(--shadow-md);
  padding: 4px; min-width: 130px; z-index: 200;
  opacity: 0; visibility: hidden; transform: translateY(-4px);
  transition: opacity 150ms ease, visibility 150ms ease, transform 150ms ease;
}
.lang-selector.open .lang-dropdown { opacity: 1; visibility: visible; transform: translateY(0); }

.lang-option {
  display: flex; align-items: center; gap: 8px;
  width: 100%; padding: 7px 10px; border-radius: 6px;
  font-family: var(--font); font-size: 0.84rem; font-weight: 500;
  color: var(--ink-soft); background: none; border: none;
  cursor: pointer; text-align: left;
  transition: background 120ms ease, color 120ms ease;
}
.lang-option:hover { background: var(--soft); color: var(--ink); }
.lang-option.active { font-weight: 700; color: var(--accent); }

/* White-background navbars always use the light-mode lang button */
.docs-nav .lang-btn,
.sales-nav .lang-btn {
  background: transparent; border-color: var(--border); color: var(--ink-soft);
}
.docs-nav .lang-btn:hover,
.sales-nav .lang-btn:hover {
  background: var(--soft); border-color: var(--accent); color: var(--accent);
}
.docs-nav .lang-dropdown,
.sales-nav .lang-dropdown { top: calc(100% + 8px); }

@media (max-width: 768px) { .lang-selector { display: none; } }

/* ─── Active nav link ────────────────────────────────────────────────────── */
.nav-link.active { color: var(--accent); background: var(--accent-soft); }

/* ─── Section intro block ────────────────────────────────────────────────── */
.section-intro {
  max-width: 700px;
  margin-inline: auto;
  margin-bottom: 56px;
}
.section-intro .label { display: block; margin-bottom: 10px; }
.section-intro .headline { margin-top: 0; }
.section-intro .body-lg { margin-top: 16px; }

/* ─── Section backgrounds ────────────────────────────────────────────────── */
#testimonials { background: #fff; }
.faq-section  { background: #fff; }

/* ─── Use Cases section ──────────────────────────────────────────────────── */
.use-cases { background: #fff; }

/* Tab bar */
.uc-tabs {
  display: flex; gap: 6px; flex-wrap: wrap;
  background: var(--soft); border: 1px solid var(--border);
  border-radius: var(--radius-lg); padding: 6px;
  width: fit-content; margin: 0 auto 48px;
}
.uc-tab {
  display: flex; align-items: center; gap: 8px;
  padding: 10px 22px; border-radius: calc(var(--radius-lg) - 4px);
  font-family: var(--font); font-size: 0.9rem; font-weight: 600;
  color: var(--ink-soft); background: transparent;
  border: none; cursor: pointer;
  transition: background 180ms ease, color 180ms ease, box-shadow 180ms ease;
}
.uc-tab:hover { color: var(--ink); background: rgba(49,89,184,0.06); }
.uc-tab.active {
  background: var(--surface); color: var(--ink);
  box-shadow: 0 1px 6px rgba(26,45,77,0.1), 0 0 0 1px var(--border);
}
.uc-tab-icon { font-size: 1.1rem; line-height: 1; }

/* Panels */
.uc-panel { display: none; }
.uc-panel.active { display: block; }

.uc-grid {
  display: grid; grid-template-columns: 1fr 1fr;
  gap: clamp(40px, 6vw, 80px); align-items: center;
}

/* Content side */
.uc-content { display: flex; flex-direction: column; gap: 0; }

.uc-eyebrow {
  font-size: 0.75rem; font-weight: 700; letter-spacing: 0.09em;
  text-transform: uppercase; color: var(--accent);
  margin-bottom: 14px;
}
.uc-headline {
  font-size: clamp(1.55rem, 2.4vw, 2rem); font-weight: 800;
  line-height: 1.2; letter-spacing: -0.02em;
  color: var(--ink); margin-bottom: 16px;
}
.uc-body {
  font-size: 0.95rem; line-height: 1.75;
  color: var(--ink-soft); margin-bottom: 28px;
}

.uc-checklist {
  list-style: none; display: flex; flex-direction: column; gap: 11px;
  margin-bottom: 32px;
}
.uc-checklist li {
  display: flex; align-items: flex-start; gap: 10px;
  font-size: 0.9rem; color: var(--ink);
}
.uc-check {
  display: inline-flex; align-items: center; justify-content: center;
  width: 20px; height: 20px; border-radius: 50%; flex-shrink: 0;
  background: rgba(14,168,112,0.12); color: var(--success);
  font-size: 0.7rem; font-weight: 800; margin-top: 1px;
}

.uc-actions {
  display: flex; align-items: center; gap: 16px; flex-wrap: wrap;
}
.uc-plan-hint {
  font-size: 0.78rem; color: var(--ink-soft);
}
.uc-plan-hint strong { color: var(--ink); font-weight: 700; }

/* Visual / Mock UI side */
.uc-visual { perspective: 1200px; }

.uc-mock {
  background: #0f1117;
  border: 1px solid rgba(255,255,255,0.08);
  border-radius: 14px;
  overflow: hidden;
  box-shadow: 0 24px 64px rgba(0,0,0,0.28), 0 4px 16px rgba(0,0,0,0.2);
  transform: rotateY(-4deg) rotateX(2deg);
  transition: transform 320ms ease;
}
.uc-mock:hover { transform: rotateY(0) rotateX(0); }

.uc-mock-header {
  display: flex; align-items: center; gap: 10px;
  padding: 10px 14px;
  background: #1a1d27;
  border-bottom: 1px solid rgba(255,255,255,0.07);
}
.uc-mock-dots { display: flex; gap: 5px; margin-right: 4px; }
.uc-mock-dots span {
  width: 9px; height: 9px; border-radius: 50%;
}
.uc-mock-dots span:nth-child(1) { background: #ff5f57; }
.uc-mock-dots span:nth-child(2) { background: #febc2e; }
.uc-mock-dots span:nth-child(3) { background: #28c840; }
.uc-mock-title {
  font-size: 0.72rem; font-weight: 600; color: rgba(255,255,255,0.4);
  letter-spacing: 0.03em;
}

.uc-mock-body { padding: 16px; display: flex; flex-direction: column; gap: 6px; }

.uc-mock-section-label {
  font-size: 0.62rem; font-weight: 700; letter-spacing: 0.1em;
  color: rgba(255,255,255,0.25); text-transform: uppercase;
  padding: 6px 0 4px;
}

.uc-mock-row {
  display: flex; align-items: center; gap: 8px;
  padding: 7px 10px; border-radius: 7px;
  background: rgba(255,255,255,0.04);
  border: 1px solid rgba(255,255,255,0.06);
}
.uc-mock-item-dot {
  width: 7px; height: 7px; border-radius: 50%; flex-shrink: 0;
}
.uc-mock-item-name {
  flex: 1; font-size: 0.78rem; color: rgba(255,255,255,0.8); font-weight: 500;
}
.uc-mock-item-stock {
  font-size: 0.72rem; color: rgba(255,255,255,0.38); font-weight: 500;
  margin-right: 6px;
}
.uc-mock-badge {
  padding: 2px 8px; border-radius: 999px;
  font-size: 0.62rem; font-weight: 700; white-space: nowrap;
}
.uc-mock-badge.ok  { background: rgba(52,211,153,0.18); color: #34d399; }
.uc-mock-badge.low { background: rgba(251,191,36,0.18);  color: #fbbf24; }
.uc-mock-badge.out { background: rgba(248,113,113,0.18); color: #f87171; }

.uc-mock-divider {
  height: 1px; background: rgba(255,255,255,0.06); margin: 4px 0;
}

.uc-mock-alert {
  display: flex; align-items: flex-start; gap: 8px;
  padding: 9px 12px; border-radius: 8px;
  background: rgba(59,130,246,0.1); border: 1px solid rgba(59,130,246,0.2);
  font-size: 0.75rem; color: #93c5fd; line-height: 1.5; margin-top: 6px;
}
.uc-mock-alert-icon { font-size: 0.9rem; flex-shrink: 0; }

/* POS elements */
.uc-mock-pos-cart { display: flex; flex-direction: column; gap: 5px; }
.uc-mock-pos-item {
  display: flex; align-items: center; gap: 6px;
  padding: 7px 10px; border-radius: 7px;
  background: rgba(255,255,255,0.04); border: 1px solid rgba(255,255,255,0.06);
}
.uc-mock-pos-qty {
  font-size: 0.7rem; font-weight: 700;
  color: rgba(255,255,255,0.4); margin-left: auto; margin-right: 4px;
}
.uc-mock-pos-price {
  font-size: 0.78rem; font-weight: 700;
  color: rgba(255,255,255,0.85); min-width: 52px; text-align: right;
}
.uc-mock-pos-total {
  display: flex; align-items: center; justify-content: space-between;
  padding: 8px 10px;
}
.uc-mock-pos-total span:first-child {
  font-size: 0.72rem; font-weight: 700; letter-spacing: 0.06em;
  text-transform: uppercase; color: rgba(255,255,255,0.3);
}
.uc-mock-pos-total-amount {
  font-size: 1.2rem; font-weight: 900; color: #fff; letter-spacing: -0.02em;
}
.uc-mock-pos-btns {
  display: flex; gap: 7px; padding: 0 2px;
}
.uc-mock-pos-btn-outline, .uc-mock-pos-btn-primary {
  flex: 1; text-align: center; border-radius: 8px;
  padding: 9px 0; font-size: 0.78rem; font-weight: 700; cursor: pointer;
}
.uc-mock-pos-btn-outline {
  background: transparent; border: 1px solid rgba(255,255,255,0.1);
  color: rgba(255,255,255,0.35);
}
.uc-mock-pos-btn-primary {
  background: #3b82f6; border: none; color: #fff;
}

/* B2B order rows */
.uc-mock-order {
  display: flex; align-items: center; justify-content: space-between; gap: 8px;
  padding: 9px 10px; border-radius: 7px;
  background: rgba(255,255,255,0.04); border: 1px solid rgba(255,255,255,0.06);
}
.uc-mock-order-info { display: flex; flex-direction: column; gap: 3px; }
.uc-mock-order-client {
  font-size: 0.78rem; font-weight: 700; color: rgba(255,255,255,0.85);
}
.uc-mock-order-items {
  font-size: 0.68rem; color: rgba(255,255,255,0.35);
}

/* Catalog rows */
.uc-mock-catalog-row {
  display: flex; align-items: center; justify-content: space-between; gap: 8px;
  padding: 7px 10px; border-radius: 7px;
  background: rgba(255,255,255,0.03); border: 1px solid rgba(255,255,255,0.05);
  font-size: 0.75rem;
}
.uc-mock-catalog-row .uc-mock-item-name { font-size: 0.75rem; }
.uc-mock-catalog-row .uc-mock-item-stock { font-size: 0.7rem; }

/* Responsive */
@media (max-width: 900px) {
  .uc-grid { grid-template-columns: 1fr; }
  .uc-visual { display: none; }
  .uc-mock { transform: none; }
}
@media (max-width: 600px) {
  .uc-tabs { width: 100%; justify-content: center; }
  .uc-tab { padding: 9px 14px; font-size: 0.82rem; }
}
