/* =========================================================================
   Retail One — website design system (AIDLC unit U1)
   Mood: a command centre at night. Deep navy, logo blue, amber signals.
   ========================================================================= */

:root {
  --bg: #060a18;
  --bg-2: #0a1023;
  --bg-3: #0e1530;
  --surface: rgba(255, 255, 255, 0.045);
  --surface-2: rgba(255, 255, 255, 0.07);
  --border: rgba(255, 255, 255, 0.09);
  --border-2: rgba(255, 255, 255, 0.16);
  --blue: #3a70ea;
  --blue-hi: #6c9bff;
  --blue-deep: #1d3f9e;
  --amber: #fdb515;
  --amber-hi: #ffd166;
  --green: #2bd8a0;
  --red: #ff6b7a;
  --text: #eaf0ff;
  --muted: #9aa6c4;
  --faint: #66708f;
  --grad: linear-gradient(100deg, var(--blue-hi) 0%, #a98bff 45%, var(--amber) 100%);
  --grad-btn: linear-gradient(180deg, #ffc93d 0%, var(--amber) 100%);
  --shadow: 0 30px 80px -30px rgba(0, 0, 0, 0.8);
  --glow-blue: 0 0 0 1px rgba(108, 155, 255, 0.25), 0 20px 60px -20px rgba(58, 112, 234, 0.55);
  --r-sm: 10px;
  --r: 14px;
  --r-lg: 20px;
  --r-xl: 28px;
  --container: 1200px;
  --font-display: "Sora", "Segoe UI", system-ui, sans-serif;
  --font-body: "Inter", "Segoe UI", system-ui, -apple-system, sans-serif;
  --nav-h: 72px;
}

/* ---------- Reset ---------- */
*, *::before, *::after { box-sizing: border-box; }
html { scroll-behavior: smooth; scroll-padding-top: calc(var(--nav-h) + 12px); -webkit-text-size-adjust: 100%; }
body {
  margin: 0;
  background: var(--bg);
  color: var(--text);
  font-family: var(--font-body);
  font-size: 1rem;
  line-height: 1.6;
  -webkit-font-smoothing: antialiased;
  overflow-x: hidden;
}
img, svg, canvas { display: block; max-width: 100%; }
a { color: var(--blue-hi); text-decoration: none; }
a:hover { color: var(--amber-hi); }
button, input, select, textarea { font: inherit; color: inherit; }
button { cursor: pointer; }
:focus-visible { outline: 2px solid var(--amber); outline-offset: 3px; border-radius: 6px; }
::selection { background: rgba(253, 181, 21, 0.35); color: #fff; }
.sr-only { position: absolute !important; width: 1px; height: 1px; padding: 0; margin: -1px; overflow: hidden; clip: rect(0 0 0 0); white-space: nowrap; border: 0; }
.skip-link { position: absolute; left: 16px; top: -60px; z-index: 200; background: var(--amber); color: #111; padding: 10px 16px; border-radius: 10px; font-weight: 700; }
.skip-link:focus { top: 12px; color: #111; }

/* ---------- Typography ---------- */
h1, h2, h3, h4 { font-family: var(--font-display); line-height: 1.12; margin: 0 0 0.5em; letter-spacing: -0.02em; font-weight: 700; text-wrap: balance; }
h1 { font-size: clamp(2.3rem, 4.6vw, 3.85rem); font-weight: 800; letter-spacing: -0.035em; }
h2 { font-size: clamp(1.9rem, 3.6vw, 3rem); }
h3 { font-size: clamp(1.15rem, 1.6vw, 1.35rem); }
p { margin: 0 0 1em; }
.lead { font-size: clamp(1.05rem, 1.4vw, 1.25rem); color: var(--muted); max-width: 60ch; }
.grad-text { background: var(--grad); -webkit-background-clip: text; background-clip: text; color: transparent; }
.eyebrow {
  display: inline-flex; align-items: center; gap: 10px;
  font-size: 0.78rem; font-weight: 600; letter-spacing: 0.14em; text-transform: uppercase;
  color: var(--amber); margin-bottom: 18px;
}
.eyebrow::before { content: ""; width: 26px; height: 2px; border-radius: 2px; background: currentColor; }
.muted { color: var(--muted); }

/* ---------- Layout ---------- */
.container { width: min(100% - 32px, var(--container)); margin-inline: auto; }
.section { position: relative; padding: clamp(72px, 10vw, 128px) 0; }
.section--alt { background: var(--bg-2); }
.section--light { background: #f4f7ff; color: #0b1430; }
.section--light .lead, .section--light .muted { color: #4a5675; }
.section-head { max-width: 760px; margin-bottom: clamp(36px, 5vw, 60px); }
.section-head--center { margin-inline: auto; text-align: center; }
.section-head--center .lead { margin-inline: auto; }
.grid { display: grid; gap: 20px; }
/* Grid/flex children may shrink below their content width (prevents mobile overflow). */
.grid > *, .hero-grid > *, .ai-wrap > *, .ind-wrap > *, .roi > *, .demo > *, .shift > *, .dash-row > *, .form-grid > * { min-width: 0; }
.range-field label { gap: 12px; }
.range-field output { flex: none; }
.section::before { /* faint top hairline between sections */
  content: ""; position: absolute; inset: 0 0 auto 0; height: 1px;
  background: linear-gradient(90deg, transparent, rgba(108, 155, 255, 0.25), transparent);
}
.section--light::before { display: none; }

/* ---------- Buttons & chips ---------- */
.btn {
  --pad: 14px 22px;
  display: inline-flex; align-items: center; justify-content: center; gap: 10px;
  padding: var(--pad); border-radius: 999px; border: 1px solid transparent;
  font-weight: 650; font-size: 0.98rem; line-height: 1.1; white-space: nowrap;
  transition: transform 0.18s ease, box-shadow 0.25s ease, background 0.25s ease, border-color 0.25s;
}
.btn svg { width: 18px; height: 18px; flex: none; }
.btn:hover { transform: translateY(-2px); }
.btn--primary { background: var(--grad-btn); color: #1a1300; box-shadow: 0 10px 30px -10px rgba(253, 181, 21, 0.7); }
.btn--primary:hover { color: #1a1300; box-shadow: 0 16px 40px -12px rgba(253, 181, 21, 0.85); }
.btn--glass { background: var(--surface-2); color: var(--text); border-color: var(--border-2); backdrop-filter: blur(10px); }
.btn--glass:hover { color: #fff; border-color: rgba(255, 255, 255, 0.3); background: rgba(255, 255, 255, 0.1); }
.btn--wa { background: #1fbe5c; color: #04220f; }
.btn--wa:hover { color: #04220f; box-shadow: 0 14px 34px -12px rgba(31, 190, 92, 0.8); }
.btn--blue { background: var(--blue); color: #fff; box-shadow: var(--glow-blue); }
.btn--blue:hover { color: #fff; background: #4a7ff2; }
.btn--sm { --pad: 10px 16px; font-size: 0.9rem; }
.btn--block { width: 100%; }
.chip {
  display: inline-flex; align-items: center; gap: 8px; padding: 8px 14px; border-radius: 999px;
  background: var(--surface); border: 1px solid var(--border); color: var(--muted); font-size: 0.88rem; font-weight: 500;
  transition: all 0.2s ease;
}
button.chip:hover { color: var(--text); border-color: var(--border-2); }
.chip[aria-pressed="true"], .chip.is-active { background: rgba(58, 112, 234, 0.18); border-color: rgba(108, 155, 255, 0.55); color: #fff; }
.chip svg { width: 16px; height: 16px; }
.dot-live { width: 8px; height: 8px; border-radius: 50%; background: var(--green); box-shadow: 0 0 0 0 rgba(43, 216, 160, 0.7); animation: live 1.8s infinite; flex: none; }
@keyframes live { 0% { box-shadow: 0 0 0 0 rgba(43, 216, 160, 0.6); } 70% { box-shadow: 0 0 0 10px rgba(43, 216, 160, 0); } 100% { box-shadow: 0 0 0 0 rgba(43, 216, 160, 0); } }

/* ---------- Glass card ---------- */
.card {
  position: relative; background: var(--surface); border: 1px solid var(--border); border-radius: var(--r-lg);
  padding: 26px; transition: transform 0.3s ease, border-color 0.3s ease, background 0.3s ease;
}
.card:hover { border-color: var(--border-2); background: rgba(255, 255, 255, 0.06); }
.icon-tile {
  width: 46px; height: 46px; border-radius: 13px; display: grid; place-items: center; margin-bottom: 18px;
  background: linear-gradient(145deg, rgba(58, 112, 234, 0.35), rgba(58, 112, 234, 0.08));
  border: 1px solid rgba(108, 155, 255, 0.35); color: #cfe0ff;
}
.icon-tile svg { width: 22px; height: 22px; }
.icon-tile--amber { background: linear-gradient(145deg, rgba(253, 181, 21, 0.35), rgba(253, 181, 21, 0.06)); border-color: rgba(253, 181, 21, 0.45); color: #ffe3a1; }
.icon { width: 20px; height: 20px; stroke: currentColor; fill: none; stroke-width: 1.8; stroke-linecap: round; stroke-linejoin: round; }

/* ---------- Navigation ---------- */
.nav {
  position: fixed; inset: 0 0 auto 0; z-index: 100; height: var(--nav-h);
  display: flex; align-items: center;
  transition: background 0.3s ease, border-color 0.3s ease, backdrop-filter 0.3s;
  border-bottom: 1px solid transparent;
}
.nav.is-scrolled { background: rgba(6, 10, 24, 0.78); backdrop-filter: blur(16px) saturate(140%); border-bottom-color: var(--border); }
.nav .container { display: flex; align-items: center; gap: 20px; }
.brand { display: flex; align-items: center; flex: none; }
.brand img { height: 44px; width: auto; }
.nav-links { display: flex; gap: 4px; margin: 0 auto; padding: 0; list-style: none; }
.nav-links a { color: var(--muted); font-weight: 550; font-size: 0.94rem; padding: 8px 12px; border-radius: 10px; }
.nav-links a:hover { color: #fff; background: var(--surface); }
.nav-actions { display: flex; align-items: center; gap: 10px; }
.industry-pick { position: relative; display: flex; align-items: center; gap: 8px; font-size: 0.86rem; color: var(--muted); }
.industry-pick select {
  appearance: none; -webkit-appearance: none; background: var(--surface-2); border: 1px solid var(--border-2);
  color: #fff; padding: 9px 34px 9px 14px; border-radius: 999px; font-weight: 600; font-size: 0.88rem; cursor: pointer;
  background-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' width='12' height='12' viewBox='0 0 24 24' fill='none' stroke='%23FDB515' stroke-width='3' stroke-linecap='round'%3E%3Cpath d='m6 9 6 6 6-6'/%3E%3C/svg%3E");
  background-repeat: no-repeat; background-position: right 12px center;
}
.industry-pick select option { background: #0e1530; color: #fff; }
.nav-toggle { display: none; background: var(--surface-2); border: 1px solid var(--border-2); width: 44px; height: 44px; border-radius: 12px; place-items: center; }
.nav-toggle svg { width: 22px; height: 22px; }
.mobile-menu {
  position: fixed; inset: var(--nav-h) 0 0 0; z-index: 99; background: rgba(6, 10, 24, 0.97); backdrop-filter: blur(14px);
  padding: 24px 20px 40px; display: none; flex-direction: column; gap: 6px; overflow-y: auto;
}
.mobile-menu.is-open { display: flex; }
.mobile-menu a { color: var(--text); font-size: 1.2rem; font-weight: 600; padding: 14px 6px; border-bottom: 1px solid var(--border); }
.mobile-menu .btn { margin-top: 16px; }

/* ---------- Hero ---------- */
.hero { position: relative; padding: calc(var(--nav-h) + clamp(40px, 7vw, 90px)) 0 clamp(60px, 8vw, 110px); overflow: hidden; isolation: isolate; }
.hero::after { /* soft aurora */
  content: ""; position: absolute; z-index: -2; inset: -20% -10% auto -10%; height: 120%;
  background:
    radial-gradient(40% 50% at 20% 25%, rgba(58, 112, 234, 0.32), transparent 70%),
    radial-gradient(35% 40% at 85% 20%, rgba(253, 181, 21, 0.16), transparent 70%),
    radial-gradient(45% 45% at 70% 80%, rgba(120, 90, 255, 0.18), transparent 70%);
  filter: blur(10px);
  animation: aurora 18s ease-in-out infinite alternate;
}
@keyframes aurora { 0% { transform: translate3d(0, 0, 0) scale(1); } 100% { transform: translate3d(-3%, 4%, 0) scale(1.08); } }
#dotfield { position: absolute; inset: 0; z-index: -1; width: 100%; height: 100%; opacity: 0.55; }
.hero-grid { display: grid; grid-template-columns: 1.02fr 1fr; gap: clamp(32px, 5vw, 64px); align-items: center; }
.hero-kicker { display: inline-flex; align-items: center; gap: 10px; padding: 7px 14px 7px 10px; border-radius: 999px; background: var(--surface); border: 1px solid var(--border); font-size: 0.86rem; color: var(--muted); margin-bottom: 24px; }
.hero-kicker strong { color: #fff; font-weight: 600; }
.hero h1 { margin-bottom: 22px; }
.hero h1 .line { display: block; }
.hero-for { min-height: 3.4em; transition: opacity 0.35s ease; }
.hero-for.is-swapping { opacity: 0; }
.hero-ctas { display: flex; flex-wrap: wrap; gap: 12px; margin: 30px 0 34px; }
.hero-proof { display: flex; flex-wrap: wrap; gap: 10px 22px; padding: 0; margin: 0; list-style: none; color: var(--muted); font-size: 0.9rem; }
.hero-proof li { display: flex; align-items: center; gap: 8px; }
.hero-proof svg { width: 18px; height: 18px; color: var(--green); }

/* Device / live dashboard */
.device {
  position: relative; border-radius: var(--r-xl); padding: 14px;
  background: linear-gradient(160deg, rgba(255, 255, 255, 0.09), rgba(255, 255, 255, 0.02));
  border: 1px solid var(--border-2); box-shadow: var(--shadow), 0 0 120px -40px rgba(58, 112, 234, 0.6);
  transform: perspective(1400px) rotateY(-6deg) rotateX(3deg); transition: transform 0.6s ease;
}
.device:hover { transform: perspective(1400px) rotateY(-2deg) rotateX(1deg); }
.device-inner { background: #081025; border-radius: 18px; border: 1px solid var(--border); overflow: hidden; }
.device-bar { display: flex; align-items: center; gap: 10px; padding: 12px 16px; border-bottom: 1px solid var(--border); font-size: 0.8rem; color: var(--muted); }
.device-bar .lights { display: flex; gap: 6px; }
.device-bar .lights i { width: 10px; height: 10px; border-radius: 50%; background: #2a3352; }
.device-bar .lights i:nth-child(1) { background: #ff5f57; } .device-bar .lights i:nth-child(2) { background: #febc2e; } .device-bar .lights i:nth-child(3) { background: #28c840; }
.device-bar .url { flex: 1; text-align: center; background: rgba(255, 255, 255, 0.04); border-radius: 8px; padding: 4px 10px; font-size: 0.76rem; }
.device-bar .live { display: flex; align-items: center; gap: 7px; color: var(--green); font-weight: 600; }
.dash { padding: 16px; display: grid; gap: 12px; }
.kpis { display: grid; grid-template-columns: repeat(4, 1fr); gap: 10px; }
.kpi { background: rgba(255, 255, 255, 0.035); border: 1px solid var(--border); border-radius: 12px; padding: 11px 12px; min-width: 0; }
.kpi-label { font-size: 0.68rem; color: var(--faint); text-transform: uppercase; letter-spacing: 0.08em; white-space: nowrap; overflow: hidden; text-overflow: ellipsis; }
.kpi-value { font-family: var(--font-display); font-size: 1.12rem; font-weight: 700; font-variant-numeric: tabular-nums; white-space: nowrap; }
.kpi-delta { font-size: 0.7rem; color: var(--green); font-weight: 600; }
.kpi-delta.down { color: var(--red); }
.kpi.flash { animation: flash 0.9s ease; }
@keyframes flash { 0% { background: rgba(43, 216, 160, 0.25); } 100% { background: rgba(255, 255, 255, 0.035); } }
.dash-row { display: grid; grid-template-columns: 1.45fr 1fr; gap: 12px; }
.panel { background: rgba(255, 255, 255, 0.03); border: 1px solid var(--border); border-radius: 12px; padding: 12px; min-width: 0; }
.panel-title { display: flex; justify-content: space-between; align-items: center; font-size: 0.74rem; color: var(--muted); margin-bottom: 8px; font-weight: 600; }
.panel-title b { color: var(--text); font-weight: 600; }
.chart { width: 100%; height: 120px; }
.chart .area { fill: url(#gArea); }
.chart .line { fill: none; stroke: var(--blue-hi); stroke-width: 2; }
.chart .line2 { fill: none; stroke: var(--amber); stroke-width: 1.6; stroke-dasharray: 4 4; opacity: 0.8; }
.chart .gridline { stroke: rgba(255, 255, 255, 0.06); }
.chart .head { fill: var(--amber); }
.feed { list-style: none; margin: 0; padding: 0; display: grid; gap: 6px; height: 120px; overflow: hidden; }
.feed li { display: flex; align-items: center; gap: 8px; font-size: 0.74rem; padding: 6px 8px; border-radius: 8px; background: rgba(255, 255, 255, 0.03); animation: feedIn 0.5s ease; white-space: nowrap; }
.feed li .tag { font-size: 0.62rem; font-weight: 700; padding: 2px 6px; border-radius: 6px; flex: none; }
.feed li .tag.sale { background: rgba(43, 216, 160, 0.16); color: var(--green); }
.feed li .tag.stock { background: rgba(253, 181, 21, 0.16); color: var(--amber); }
.feed li .tag.ai { background: rgba(108, 155, 255, 0.18); color: var(--blue-hi); }
.feed li .txt { flex: 1 1 auto; min-width: 0; overflow: hidden; text-overflow: ellipsis; color: #cdd6f0; }
.feed li .amt { flex: none; margin-left: auto; font-variant-numeric: tabular-nums; color: #fff; font-weight: 600; }
@keyframes feedIn { from { opacity: 0; transform: translateY(-8px); } to { opacity: 1; transform: none; } }
.ai-insight { display: flex; gap: 12px; align-items: flex-start; background: linear-gradient(120deg, rgba(58, 112, 234, 0.2), rgba(253, 181, 21, 0.08)); border: 1px solid rgba(108, 155, 255, 0.35); border-radius: 12px; padding: 12px 14px; }
.ai-orb { width: 30px; height: 30px; flex: none; border-radius: 50%; background: conic-gradient(from 0deg, var(--blue-hi), #a98bff, var(--amber), var(--blue-hi)); animation: spin 6s linear infinite; position: relative; }
.ai-orb::after { content: ""; position: absolute; inset: 5px; border-radius: 50%; background: #0b1430; }
@keyframes spin { to { transform: rotate(360deg); } }
.ai-insight-text { font-size: 0.82rem; color: #dbe4ff; min-height: 2.6em; }
.ai-insight-text small { display: block; color: var(--blue-hi); font-weight: 700; font-size: 0.66rem; letter-spacing: 0.1em; text-transform: uppercase; margin-bottom: 2px; }
.caret { display: inline-block; width: 2px; height: 1em; background: var(--amber); vertical-align: -2px; margin-left: 2px; animation: blink 1s steps(1) infinite; }
@keyframes blink { 50% { opacity: 0; } }
.float-card {
  position: absolute; display: flex; align-items: center; gap: 10px; padding: 10px 14px; border-radius: 14px;
  background: rgba(14, 21, 48, 0.88); border: 1px solid var(--border-2); backdrop-filter: blur(10px); box-shadow: var(--shadow);
  font-size: 0.8rem; animation: bob 6s ease-in-out infinite;
}
.float-card b { display: block; font-size: 0.92rem; color: #fff; }
.float-card .icon-tile { width: 34px; height: 34px; margin: 0; border-radius: 10px; }
.float-card .icon-tile svg { width: 17px; height: 17px; }
.float-card--a { left: -44px; top: 47%; }
.float-card--b { right: -22px; top: -22px; animation-delay: -3s; }
@keyframes bob { 0%, 100% { transform: translateY(0); } 50% { transform: translateY(-10px); } }

/* ---------- Pulse ticker ---------- */
.pulse { border-block: 1px solid var(--border); background: rgba(10, 16, 35, 0.7); overflow: hidden; padding: 14px 0; position: relative; }
.pulse::before, .pulse::after { content: ""; position: absolute; top: 0; bottom: 0; width: 120px; z-index: 1; pointer-events: none; }
.pulse::before { left: 0; background: linear-gradient(90deg, var(--bg), transparent); }
.pulse::after { right: 0; background: linear-gradient(-90deg, var(--bg), transparent); }
.pulse-track { display: flex; gap: 40px; width: max-content; animation: marquee 48s linear infinite; }
.pulse:hover .pulse-track { animation-play-state: paused; }
.pulse-item { display: flex; align-items: center; gap: 10px; font-size: 0.9rem; color: var(--muted); white-space: nowrap; }
.pulse-item svg { width: 16px; height: 16px; color: var(--amber); }
.pulse-item b { color: var(--text); font-weight: 600; }
@keyframes marquee { to { transform: translateX(-50%); } }

/* ---------- The shift (before / after) ---------- */
.shift { display: grid; grid-template-columns: 1fr 1fr; gap: 20px; }
.shift-col { border-radius: var(--r-xl); padding: clamp(24px, 3vw, 36px); border: 1px solid var(--border); }
.shift-col--before { background: linear-gradient(180deg, rgba(255, 107, 122, 0.07), transparent 60%); }
.shift-col--after { background: linear-gradient(180deg, rgba(43, 216, 160, 0.09), rgba(58, 112, 234, 0.05) 60%); border-color: rgba(43, 216, 160, 0.3); }
.shift-col h3 { display: flex; align-items: center; gap: 10px; }
.shift-list { list-style: none; margin: 18px 0 0; padding: 0; display: grid; gap: 12px; }
.shift-list li { display: flex; gap: 12px; align-items: flex-start; color: #cdd6f0; }
.shift-list svg { width: 20px; height: 20px; flex: none; margin-top: 2px; }
.shift-col--before svg { color: var(--red); }
.shift-col--after svg { color: var(--green); }

/* ---------- Roles ---------- */
.roles { grid-template-columns: repeat(3, 1fr); }
.role { overflow: hidden; }
.role::after { content: ""; position: absolute; inset: auto -40% -60% auto; width: 220px; height: 220px; border-radius: 50%; background: radial-gradient(circle, rgba(58, 112, 234, 0.18), transparent 70%); transition: transform 0.5s ease; }
.role:hover::after { transform: scale(1.3); }
.role:hover { transform: translateY(-4px); }
.role p { color: var(--muted); margin: 0; font-size: 0.96rem; }
.role .role-tag { position: absolute; top: 22px; right: 22px; font-size: 0.7rem; font-weight: 700; color: var(--faint); letter-spacing: 0.1em; }

/* ---------- AI section ---------- */
.ai-wrap { display: grid; grid-template-columns: 1.05fr 1fr; gap: clamp(28px, 4vw, 56px); align-items: start; }
.chat { border-radius: var(--r-xl); background: linear-gradient(170deg, rgba(58, 112, 234, 0.14), rgba(255, 255, 255, 0.02)); border: 1px solid rgba(108, 155, 255, 0.3); box-shadow: var(--glow-blue); overflow: hidden; }
.chat-head { display: flex; align-items: center; gap: 12px; padding: 16px 20px; border-bottom: 1px solid var(--border); }
.chat-head .ai-orb { width: 34px; height: 34px; }
.chat-head b { display: block; font-family: var(--font-display); }
.chat-head span { font-size: 0.8rem; color: var(--green); display: flex; align-items: center; gap: 6px; }
.chat-body { padding: 20px; min-height: 330px; display: flex; flex-direction: column; gap: 14px; }
.bubble { max-width: 88%; padding: 12px 16px; border-radius: 18px; font-size: 0.95rem; line-height: 1.5; animation: feedIn 0.4s ease; }
.bubble--user { align-self: flex-end; background: var(--blue); color: #fff; border-bottom-right-radius: 6px; }
.bubble--ai { align-self: flex-start; background: rgba(255, 255, 255, 0.06); border: 1px solid var(--border); border-bottom-left-radius: 6px; color: #e3eaff; }
.bubble--ai strong { color: var(--amber-hi); }
.bubble .bars { display: grid; gap: 7px; margin-top: 12px; }
.bubble .bar { display: grid; grid-template-columns: 96px 1fr 58px; gap: 10px; align-items: center; font-size: 0.78rem; color: var(--muted); }
.bubble .bar i { display: block; height: 8px; border-radius: 6px; background: linear-gradient(90deg, var(--blue), var(--blue-hi)); width: 0; transition: width 1s cubic-bezier(.2, .8, .2, 1); }
.bubble .bar i.warn { background: linear-gradient(90deg, #d9534f, var(--red)); }
.bubble .bar i.good { background: linear-gradient(90deg, #1ba57a, var(--green)); }
.bubble .bar span:last-child { text-align: right; color: #fff; font-variant-numeric: tabular-nums; }
.typing { display: inline-flex; gap: 4px; padding: 14px 16px; }
.typing i { width: 7px; height: 7px; border-radius: 50%; background: var(--blue-hi); animation: typing 1.2s infinite; }
.typing i:nth-child(2) { animation-delay: 0.15s; } .typing i:nth-child(3) { animation-delay: 0.3s; }
@keyframes typing { 0%, 60%, 100% { opacity: 0.25; transform: translateY(0); } 30% { opacity: 1; transform: translateY(-4px); } }
.chat-suggest { display: flex; flex-wrap: wrap; gap: 8px; padding: 0 20px 20px; }
.chat-suggest .chip { font-size: 0.84rem; }
.ai-points { display: grid; gap: 14px; margin: 28px 0; }
.ai-point { display: flex; gap: 16px; align-items: flex-start; padding: 18px; border-radius: var(--r); background: var(--surface); border: 1px solid var(--border); }
.ai-point .icon-tile { margin: 0; flex: none; }
.ai-point h3 { font-size: 1.05rem; margin-bottom: 4px; }
.ai-point p { margin: 0; color: var(--muted); font-size: 0.94rem; }
.privacy-note { display: flex; gap: 12px; align-items: center; padding: 14px 18px; border-radius: var(--r); border: 1px dashed rgba(43, 216, 160, 0.45); color: #c8f5e5; font-size: 0.92rem; background: rgba(43, 216, 160, 0.06); }
.privacy-note svg { width: 22px; height: 22px; color: var(--green); flex: none; }

/* ---------- Industries ---------- */
.ind-wrap { display: grid; grid-template-columns: 300px 1fr; gap: 24px; align-items: start; }
.ind-tabs { display: grid; gap: 6px; position: sticky; top: calc(var(--nav-h) + 20px); }
.ind-tab {
  display: flex; align-items: center; gap: 12px; text-align: left; width: 100%; padding: 13px 16px; border-radius: 14px;
  background: transparent; border: 1px solid transparent; color: var(--muted); font-weight: 600; font-size: 0.97rem; transition: all 0.2s ease;
}
.ind-tab svg { width: 20px; height: 20px; flex: none; }
.ind-tab:hover { color: #fff; background: var(--surface); }
.ind-tab[aria-selected="true"] { color: #fff; background: linear-gradient(100deg, rgba(58, 112, 234, 0.28), rgba(58, 112, 234, 0.06)); border-color: rgba(108, 155, 255, 0.45); }
.ind-tab[aria-selected="true"] svg { color: var(--amber); }
.ind-panel { border-radius: var(--r-xl); padding: clamp(24px, 3.4vw, 44px); background: linear-gradient(160deg, rgba(255, 255, 255, 0.06), rgba(255, 255, 255, 0.015)); border: 1px solid var(--border-2); min-height: 100%; }
.ind-panel[hidden] { display: none; }
.ind-panel h3 { font-size: clamp(1.5rem, 2.4vw, 2.1rem); }
.ind-panel .lead { margin-bottom: 26px; }
.ind-cols { display: grid; grid-template-columns: 1fr 1fr; gap: 26px; }
.ind-cols h4 { font-size: 0.8rem; text-transform: uppercase; letter-spacing: 0.12em; color: var(--faint); margin-bottom: 12px; font-family: var(--font-body); }
.ticks { list-style: none; padding: 0; margin: 0; display: grid; gap: 10px; }
.ticks li { display: flex; gap: 10px; align-items: flex-start; color: #d5ddf5; font-size: 0.97rem; }
.ticks svg { width: 18px; height: 18px; flex: none; margin-top: 3px; color: var(--green); }
.ticks.pain svg { color: var(--red); }
.ind-foot { display: flex; flex-wrap: wrap; align-items: center; gap: 14px; margin-top: 30px; padding-top: 24px; border-top: 1px solid var(--border); }
.ind-foot .muted { font-size: 0.92rem; margin-right: auto; }

/* ---------- Modules ---------- */
.mod-filter { display: flex; flex-wrap: wrap; gap: 8px; margin-bottom: 28px; }
.section--light .chip { background: #fff; border-color: #d9e1f5; color: #3c4867; }
.section--light .chip[aria-pressed="true"] { background: var(--blue); border-color: var(--blue); color: #fff; }
.mods { grid-template-columns: repeat(4, 1fr); gap: 14px; }
.mod { background: #fff; border: 1px solid #e1e8f8; border-radius: var(--r); padding: 18px; transition: transform 0.25s ease, box-shadow 0.25s ease, opacity 0.3s; }
.mod:hover { transform: translateY(-3px); box-shadow: 0 18px 40px -22px rgba(29, 63, 158, 0.45); }
.mod.is-hidden { display: none; }
.mod-top { display: flex; align-items: center; justify-content: space-between; margin-bottom: 10px; }
.mod .icon-tile { width: 38px; height: 38px; margin: 0; border-radius: 11px; background: #eef3ff; border-color: #d6e2ff; color: var(--blue); }
.mod .icon-tile svg { width: 19px; height: 19px; }
.mod-cat { font-size: 0.68rem; font-weight: 700; letter-spacing: 0.1em; text-transform: uppercase; color: #8a96b5; }
.mod h3 { font-size: 1.02rem; color: #0b1430; margin-bottom: 4px; }
.mod p { font-size: 0.88rem; color: #55627f; margin: 0; }
.mod--ai { background: linear-gradient(150deg, #0e1a44, #1d3f9e); border-color: #2a4fb8; }
.mod--ai h3 { color: #fff; } .mod--ai p { color: #c4d3ff; } .mod--ai .mod-cat { color: var(--amber); }
.mod--ai .icon-tile { background: rgba(253, 181, 21, 0.15); border-color: rgba(253, 181, 21, 0.5); color: var(--amber); }

/* ---------- Trust band ---------- */
.trust { display: grid; grid-template-columns: repeat(4, 1fr); gap: 16px; }
.trust-item { display: flex; gap: 14px; align-items: flex-start; padding: 22px; border-radius: var(--r-lg); background: var(--surface); border: 1px solid var(--border); }
.trust-item .icon-tile { margin: 0; flex: none; }
.trust-item b { display: block; font-family: var(--font-display); margin-bottom: 4px; }
.trust-item span { color: var(--muted); font-size: 0.9rem; }

/* ---------- ROI ---------- */
.roi { display: grid; grid-template-columns: 1fr 1fr; gap: 24px; align-items: stretch; }
.roi-inputs { display: grid; gap: 22px; }
.range-field label { display: flex; justify-content: space-between; font-weight: 600; font-size: 0.95rem; margin-bottom: 10px; }
.range-field output { color: var(--amber); font-variant-numeric: tabular-nums; font-family: var(--font-display); }
input[type="range"] { -webkit-appearance: none; appearance: none; width: 100%; height: 6px; border-radius: 6px; background: linear-gradient(90deg, var(--blue) var(--fill, 50%), rgba(255, 255, 255, 0.12) var(--fill, 50%)); outline: none; }
input[type="range"]::-webkit-slider-thumb { -webkit-appearance: none; width: 22px; height: 22px; border-radius: 50%; background: #fff; border: 4px solid var(--amber); box-shadow: 0 4px 14px rgba(0, 0, 0, 0.4); cursor: pointer; }
input[type="range"]::-moz-range-thumb { width: 16px; height: 16px; border-radius: 50%; background: #fff; border: 4px solid var(--amber); cursor: pointer; }
.range-hint { font-size: 0.8rem; color: var(--faint); margin-top: 6px; }
.roi-result { border-radius: var(--r-xl); padding: clamp(24px, 3vw, 38px); background: radial-gradient(120% 90% at 100% 0%, rgba(253, 181, 21, 0.2), transparent 55%), linear-gradient(160deg, #10204f, #0a1330); border: 1px solid rgba(253, 181, 21, 0.35); display: flex; flex-direction: column; }
.roi-big { font-family: var(--font-display); font-size: clamp(2.6rem, 6vw, 4rem); font-weight: 800; line-height: 1; margin: 6px 0 4px; font-variant-numeric: tabular-nums; }
.roi-break { list-style: none; padding: 0; margin: 22px 0; display: grid; gap: 10px; }
.roi-break li { display: flex; justify-content: space-between; gap: 12px; padding-bottom: 10px; border-bottom: 1px solid var(--border); color: #cdd6f0; font-size: 0.94rem; }
.roi-break li b { color: #fff; font-variant-numeric: tabular-nums; }
.roi-note { font-size: 0.78rem; color: var(--faint); margin-top: auto; padding-top: 14px; }

/* ---------- Compare ---------- */
.compare-wrap { overflow-x: auto; border-radius: var(--r-xl); border: 1px solid var(--border); }
.compare { width: 100%; border-collapse: collapse; min-width: 640px; }
.compare th, .compare td { padding: 16px 20px; text-align: left; border-bottom: 1px solid var(--border); font-size: 0.96rem; }
.compare thead th { font-family: var(--font-display); font-size: 1rem; background: rgba(255, 255, 255, 0.03); }
.compare thead th.hl { color: var(--amber); background: rgba(58, 112, 234, 0.16); }
.compare td.hl { background: rgba(58, 112, 234, 0.08); color: #fff; font-weight: 600; }
.compare td { color: var(--muted); }
.compare tr:last-child td { border-bottom: 0; }
.yes { color: var(--green); font-weight: 700; } .no { color: var(--red); }

/* ---------- Steps ---------- */
.steps { grid-template-columns: repeat(4, 1fr); counter-reset: step; }
.step { position: relative; padding: 26px; border-radius: var(--r-lg); background: var(--surface); border: 1px solid var(--border); }
.step::before { counter-increment: step; content: "0" counter(step); font-family: var(--font-display); font-size: 2.6rem; font-weight: 800; line-height: 1; display: block; margin-bottom: 16px; background: var(--grad); -webkit-background-clip: text; background-clip: text; color: transparent; }
.step p { margin: 0; color: var(--muted); font-size: 0.95rem; }
.step:not(:last-child)::after { content: ""; position: absolute; top: 46px; right: -14px; width: 28px; height: 2px; background: linear-gradient(90deg, var(--blue-hi), transparent); }

/* ---------- Plans ---------- */
.plans { grid-template-columns: repeat(3, 1fr); align-items: stretch; }
.plan { display: flex; flex-direction: column; padding: 30px; border-radius: var(--r-xl); background: var(--surface); border: 1px solid var(--border); }
.plan--featured { background: linear-gradient(170deg, rgba(58, 112, 234, 0.3), rgba(58, 112, 234, 0.05)); border-color: rgba(108, 155, 255, 0.55); box-shadow: var(--glow-blue); position: relative; }
.plan-badge { position: absolute; top: -13px; left: 30px; background: var(--grad-btn); color: #1a1300; font-size: 0.74rem; font-weight: 800; letter-spacing: 0.06em; padding: 5px 12px; border-radius: 999px; text-transform: uppercase; }
.plan h3 { font-size: 1.4rem; margin-bottom: 4px; }
.plan .for { color: var(--muted); font-size: 0.94rem; margin-bottom: 20px; min-height: 3em; }
.plan .price { font-family: var(--font-display); font-size: 1.5rem; font-weight: 700; margin-bottom: 20px; }
.plan .price small { display: block; font-size: 0.82rem; font-weight: 500; color: var(--muted); font-family: var(--font-body); }
.plan .ticks { margin-bottom: 26px; }
.plan .btn { margin-top: auto; }

/* ---------- FAQ ---------- */
.faq { max-width: 860px; margin: 0 auto; display: grid; gap: 12px; }
.faq details { border-radius: var(--r); background: var(--surface); border: 1px solid var(--border); transition: border-color 0.2s; }
.faq details[open] { border-color: rgba(108, 155, 255, 0.45); background: rgba(58, 112, 234, 0.07); }
.faq summary { list-style: none; cursor: pointer; padding: 20px 56px 20px 22px; font-weight: 600; font-size: 1.04rem; position: relative; }
.faq summary::-webkit-details-marker { display: none; }
.faq summary::after { content: "+"; position: absolute; right: 22px; top: 50%; transform: translateY(-50%); font-size: 1.5rem; color: var(--amber); transition: transform 0.25s; font-weight: 400; }
.faq details[open] summary::after { transform: translateY(-50%) rotate(45deg); }
.faq .answer { padding: 0 22px 20px; color: var(--muted); }
.faq .answer p:last-child { margin: 0; }

/* ---------- Demo / lead form ---------- */
.demo { display: grid; grid-template-columns: 0.9fr 1.1fr; gap: clamp(28px, 4vw, 60px); align-items: start; }
.demo-promise { list-style: none; padding: 0; margin: 26px 0; display: grid; gap: 14px; }
.demo-promise li { display: flex; gap: 14px; align-items: flex-start; }
.demo-promise .icon-tile { margin: 0; width: 40px; height: 40px; flex: none; }
.demo-promise b { display: block; }
.demo-promise span { color: var(--muted); font-size: 0.94rem; }
.contact-lines { display: grid; gap: 10px; margin-top: 10px; }
.contact-lines a { display: inline-flex; align-items: center; gap: 10px; color: var(--text); font-weight: 600; }
.contact-lines svg { width: 18px; height: 18px; color: var(--amber); }
.form-card { border-radius: var(--r-xl); padding: clamp(22px, 3vw, 36px); background: linear-gradient(170deg, rgba(255, 255, 255, 0.07), rgba(255, 255, 255, 0.02)); border: 1px solid var(--border-2); box-shadow: var(--shadow); }
.form-grid { display: grid; grid-template-columns: 1fr 1fr; gap: 16px; }
.field { display: grid; gap: 7px; }
.field--full { grid-column: 1 / -1; }
.field label { font-size: 0.88rem; font-weight: 600; color: #d5ddf5; }
.field label .req { color: var(--amber); }
.field input, .field select, .field textarea {
  width: 100%; padding: 13px 14px; border-radius: 12px; background: rgba(4, 8, 20, 0.6); border: 1px solid var(--border-2);
  color: #fff; transition: border-color 0.2s, box-shadow 0.2s;
}
.field textarea { min-height: 96px; resize: vertical; }
.field select option { background: #0e1530; }
.field input::placeholder, .field textarea::placeholder { color: #5f6a89; }
.field input:focus, .field select:focus, .field textarea:focus { outline: none; border-color: var(--blue-hi); box-shadow: 0 0 0 4px rgba(108, 155, 255, 0.18); }
.field.has-error input, .field.has-error select { border-color: var(--red); }
.field .err { font-size: 0.8rem; color: var(--red); min-height: 1em; }
.consent { display: flex; gap: 10px; align-items: flex-start; font-size: 0.84rem; color: var(--muted); }
.consent input { width: 18px; height: 18px; flex: none; margin-top: 2px; accent-color: var(--amber); }
.hp { position: absolute; left: -9999px; width: 1px; height: 1px; overflow: hidden; }
.form-actions { display: flex; flex-wrap: wrap; gap: 12px; align-items: center; margin-top: 6px; }
.form-status { font-size: 0.92rem; margin-top: 12px; min-height: 1.3em; }
.form-status.ok { color: var(--green); } .form-status.bad { color: var(--red); }
.roi-carry { display: none; font-size: 0.86rem; padding: 10px 14px; border-radius: 12px; background: rgba(253, 181, 21, 0.1); border: 1px solid rgba(253, 181, 21, 0.35); color: #ffe3a1; }
.roi-carry.is-on { display: block; }

/* ---------- Final band & footer ---------- */
.cta-band { position: relative; overflow: hidden; border-radius: var(--r-xl); padding: clamp(36px, 6vw, 72px); text-align: center; background: radial-gradient(80% 120% at 50% 0%, rgba(58, 112, 234, 0.45), transparent 70%), linear-gradient(160deg, #0f1f52, #0a1230); border: 1px solid rgba(108, 155, 255, 0.4); }
.cta-band h2 { max-width: 18ch; margin-inline: auto; }
.cta-band .lead { margin: 0 auto 30px; }
.cta-band .hero-ctas { justify-content: center; margin: 0; }
.footer { background: #040713; border-top: 1px solid var(--border); padding: 64px 0 28px; color: var(--muted); font-size: 0.94rem; }
.footer-grid { display: grid; grid-template-columns: 1.4fr 1fr 1fr 1fr; gap: 32px; margin-bottom: 44px; }
.footer h4 { color: #fff; font-size: 0.95rem; font-family: var(--font-body); font-weight: 700; margin-bottom: 14px; }
.footer ul { list-style: none; padding: 0; margin: 0; display: grid; gap: 9px; }
.footer a { color: var(--muted); }
.footer a:hover { color: #fff; }
.footer .brand img { height: 42px; margin-bottom: 16px; }
.footer-bottom { display: flex; flex-wrap: wrap; justify-content: space-between; gap: 12px; padding-top: 24px; border-top: 1px solid var(--border); font-size: 0.85rem; }

/* ---------- Floating actions, modal, toast ---------- */
.wa-float {
  position: fixed; right: 20px; bottom: 22px; z-index: 90; width: 58px; height: 58px; border-radius: 50%;
  background: #1fbe5c; color: #fff; display: grid; place-items: center; box-shadow: 0 14px 34px -10px rgba(31, 190, 92, 0.75);
  transition: transform 0.2s ease;
}
.wa-float:hover { transform: scale(1.08); color: #fff; }
.wa-float svg { width: 30px; height: 30px; }
.wa-float::after { content: ""; position: absolute; inset: -6px; border-radius: 50%; border: 2px solid rgba(31, 190, 92, 0.5); animation: ring 2.4s infinite; }
@keyframes ring { 0% { transform: scale(0.9); opacity: 1; } 100% { transform: scale(1.35); opacity: 0; } }
.mobile-cta { display: none; }
.modal { position: fixed; inset: 0; z-index: 150; display: grid; place-items: center; padding: 20px; background: rgba(2, 4, 12, 0.72); backdrop-filter: blur(6px); opacity: 0; pointer-events: none; transition: opacity 0.25s ease; }
.modal.is-open { opacity: 1; pointer-events: auto; }
.modal-box { position: relative; width: min(100%, 520px); border-radius: var(--r-xl); padding: 34px; background: radial-gradient(100% 80% at 100% 0%, rgba(253, 181, 21, 0.18), transparent 60%), linear-gradient(170deg, #12245c, #0a1330); border: 1px solid rgba(253, 181, 21, 0.4); box-shadow: var(--shadow); transform: translateY(14px) scale(0.98); transition: transform 0.3s ease; }
.modal.is-open .modal-box { transform: none; }
.modal-close { position: absolute; top: 14px; right: 14px; width: 38px; height: 38px; border-radius: 50%; border: 1px solid var(--border-2); background: var(--surface-2); display: grid; place-items: center; }
.modal-close svg { width: 18px; height: 18px; }
.modal h2 { font-size: clamp(1.5rem, 3vw, 2rem); }
.modal .ticks { margin: 18px 0 24px; }
.toast { position: fixed; left: 50%; bottom: 26px; z-index: 160; transform: translate(-50%, 30px); opacity: 0; padding: 12px 18px; border-radius: 12px; background: #13204a; border: 1px solid var(--border-2); box-shadow: var(--shadow); font-size: 0.92rem; transition: all 0.3s ease; pointer-events: none; }
.toast.is-on { opacity: 1; transform: translate(-50%, 0); }

/* ---------- Reveal on scroll ---------- */
.js [data-reveal] { opacity: 0; transform: translateY(26px); transition: opacity 0.8s cubic-bezier(.2, .7, .2, 1), transform 0.8s cubic-bezier(.2, .7, .2, 1); }
.js [data-reveal].is-in { opacity: 1; transform: none; }
.js [data-reveal="2"] { transition-delay: 0.08s; } .js [data-reveal="3"] { transition-delay: 0.16s; } .js [data-reveal="4"] { transition-delay: 0.24s; }

/* ---------- Simple pages ---------- */
.page { padding: calc(var(--nav-h) + 70px) 0 90px; min-height: 70vh; }
.page .prose { max-width: 780px; }
.prose h2 { font-size: 1.5rem; margin-top: 2em; }
.prose p, .prose li { color: #cdd6f0; }
.big-404 { font-family: var(--font-display); font-size: clamp(5rem, 18vw, 11rem); font-weight: 800; line-height: 1; background: var(--grad); -webkit-background-clip: text; background-clip: text; color: transparent; }

/* ---------- Responsive ---------- */
@media (max-width: 1140px) {
  .nav-links { display: none; }
  .nav-toggle { display: grid; }
  .nav-actions .industry-pick { display: none; }
  .nav .container { justify-content: space-between; }
  .mods { grid-template-columns: repeat(3, 1fr); }
  .float-card--a { left: -10px; }
  .float-card--b { right: -8px; }
}
@media (max-width: 980px) {
  .hero-grid, .ai-wrap, .demo, .roi { grid-template-columns: 1fr; }
  .device { transform: none; max-width: 640px; margin-inline: auto; }
  .device:hover { transform: none; }
  .roles, .plans { grid-template-columns: 1fr 1fr; }
  .trust, .steps { grid-template-columns: 1fr 1fr; }
  .step::after { display: none; }
  .ind-wrap { grid-template-columns: 1fr; }
  .ind-tabs { position: static; display: flex; overflow-x: auto; gap: 8px; padding-bottom: 6px; scrollbar-width: thin; }
  .ind-tab { width: auto; white-space: nowrap; flex: none; border-color: var(--border); }
  .footer-grid { grid-template-columns: 1fr 1fr; }
}
@media (max-width: 720px) {
  :root { --nav-h: 64px; }
  .brand img { height: 32px; }
  .nav-actions .btn--primary { display: none; }
  .shift, .roles, .plans, .trust, .steps, .ind-cols, .form-grid { grid-template-columns: 1fr; }
  .mods { grid-template-columns: 1fr 1fr; }
  .kpis { grid-template-columns: 1fr 1fr; }
  .dash-row { grid-template-columns: 1fr; }
  .float-card { display: none; }
  .hero-ctas .btn { flex: 1 1 100%; }
  .footer-grid { grid-template-columns: 1fr; }
  .wa-float { bottom: 84px; right: 14px; width: 52px; height: 52px; }
  .mobile-cta {
    display: flex; gap: 10px; position: fixed; inset: auto 0 0 0; z-index: 95; padding: 10px 14px calc(10px + env(safe-area-inset-bottom));
    background: rgba(6, 10, 24, 0.92); backdrop-filter: blur(12px); border-top: 1px solid var(--border);
    transform: translateY(110%); transition: transform 0.3s ease;
  }
  .mobile-cta.is-on { transform: none; }
  .mobile-cta .btn { flex: 1; --pad: 13px 12px; }
  body { padding-bottom: 0; }
  .bubble .bar { grid-template-columns: 78px 1fr 52px; }
}
@media (max-width: 420px) {
  .mods { grid-template-columns: 1fr; }
}

/* ---------- Reduced motion ---------- */
@media (prefers-reduced-motion: reduce) {
  *, *::before, *::after { animation-duration: 0.001ms !important; animation-iteration-count: 1 !important; transition-duration: 0.001ms !important; scroll-behavior: auto !important; }
  .pulse-track { animation: none; flex-wrap: wrap; width: auto; justify-content: center; gap: 12px 32px; padding: 0 16px; }
  .pulse-item[aria-hidden="true"] { display: none; }
  .js [data-reveal] { opacity: 1; transform: none; }
  #dotfield { display: none; }
}
