/* ==========================================================================
   KlareTech — site styles
   Identity taken from the klareGroup CRM: slate-900 shell, indigo #4f46e5 brand,
   cyan #06b6d4 accent, Inter UI, white 8px cards on #f5f7fb, dark theme #0b1220.
   Display face: Bricolage Grotesque. Data/tags: IBM Plex Mono.
   ========================================================================== */

:root {
  --ink: #0b1220;            /* CRM dark page */
  --ink-2: #1e293b;          /* CRM dark card */
  --ink-3: #334155;
  --sidebar: #0f172a;
  --sidebar-2: #111c34;
  --line-dark: rgba(255,255,255,.08);
  --text-dark: #f1f5f9;
  --muted-dark: #94a3b8;
  --link-dark: #93c5fd;

  --chalk: #f5f7fb;          /* CRM content bg */
  --chalk-2: #ffffff;
  --chalk-3: #f3f4f6;
  --line-light: #e5e7eb;
  --line-light-2: #d1d5db;
  --text-light: #111827;
  --muted-light: #6b7280;

  --brand: #4f46e5;
  --brand-2: #4338ca;
  --brand-soft: #eef2ff;
  --brand-light: #818cf8;
  --accent: #06b6d4;
  --accent-light: #22d3ee;
  --grad: linear-gradient(135deg, var(--brand), var(--accent));
  --green: #22c55e; --green-deep: #047857; --green-soft: #d1fae5;
  --red: #ef4444;   --red-deep: #b91c1c;   --red-soft: #fee2e2;
  --amber: #f59e0b; --amber-deep: #b45309; --amber-soft: #fef3c7;

  --display: "Bricolage Grotesque", "Inter", "Helvetica Neue", Arial, sans-serif;
  --body: "Inter", -apple-system, BlinkMacSystemFont, "Segoe UI", Roboto, sans-serif;
  --mono: "IBM Plex Mono", "SF Mono", Menlo, Consolas, monospace;

  --gutter: clamp(16px, 5vw, 72px);
  --max: 1240px;
  --radius: 12px;
  --radius-sm: 8px;
  --ease: cubic-bezier(.2,.7,.2,1);
}

* { box-sizing: border-box; }
html { scroll-behavior: smooth; -webkit-text-size-adjust: 100%; }
body {
  margin: 0; background: var(--ink); color: var(--text-dark);
  font-family: var(--body); font-size: 16px; line-height: 1.55;
  -webkit-font-smoothing: antialiased; overflow-x: hidden;
}
img, svg, canvas { max-width: 100%; display: block; }
svg.ic { display: inline-block; }
a { color: inherit; text-decoration: none; }
button { font: inherit; }
h1, h2, h3, h4 { font-family: var(--display); font-weight: 600; letter-spacing: -.025em; line-height: 1.05; margin: 0; text-wrap: balance; }
p { margin: 0; }
:focus-visible { outline: 2px solid var(--accent); outline-offset: 3px; }

.wrap { width: min(var(--max), 100% - 2 * var(--gutter)); margin-inline: auto; }
.eyebrow { display: inline-flex; align-items: center; gap: 12px; font-size: clamp(14px, 1.2vw, 16px); font-weight: 700; letter-spacing: .14em; text-transform: uppercase; color: var(--accent-light); }
.eyebrow::before { content: ""; width: 34px; height: 3px; border-radius: 2px; background: var(--grad); flex: 0 0 auto; }
.light .eyebrow { color: var(--brand); }
.cta-box .eyebrow::before { background: #fff; }
.lede { font-size: clamp(17px, 1.5vw, 20px); color: var(--muted-dark); max-width: 60ch; }
.light .lede { color: var(--muted-light); }
.grad-text { background: var(--grad); -webkit-background-clip: text; background-clip: text; color: transparent; }

section { position: relative; }
.dark { background: var(--ink); color: var(--text-dark); }
.light { background: var(--chalk); color: var(--text-light); }
.section { padding-block: clamp(80px, 12vw, 150px); position: relative; border-top: 1px solid var(--line-dark); }
.section.light { border-top-color: var(--line-light); }
/* short gradient accent on the top rule, aligned with the content column — makes each section start visibly */
.section::before { content: ""; position: absolute; top: -2px; height: 4px; width: 120px; border-radius: 0 0 3px 3px; background: var(--grad);
  left: max(var(--gutter), calc((100% - var(--max)) / 2)); }
.section[style*="padding-top:0"] { border-top: 0; }
.section[style*="padding-top:0"]::before { display: none; }
.section-head { display: grid; gap: 18px; max-width: 780px; margin-bottom: clamp(40px, 6vw, 72px); }
.section-head h2 { font-size: clamp(34px, 4.8vw, 62px); }

/* ---------- buttons ---------- */
.btn {
  display: inline-flex; align-items: center; gap: 10px; padding: 11px 20px; border-radius: var(--radius-sm);
  border: 1px solid transparent; font-weight: 600; font-size: 15px; cursor: pointer; white-space: nowrap;
  transition: transform .2s var(--ease), background .2s, border-color .2s, box-shadow .2s;
}
.btn:hover { transform: translateY(-1px); }
.btn:active { transform: translateY(1px); }
.btn-brand { background: var(--brand); color: #fff; box-shadow: 0 1px 2px rgba(79,70,229,.25), 0 8px 24px -8px rgba(79,70,229,.6); }
.btn-brand:hover { background: var(--brand-2); }
.btn-ghost { border-color: rgba(255,255,255,.2); color: var(--text-dark); }
.btn-ghost:hover { border-color: rgba(255,255,255,.5); background: rgba(255,255,255,.04); }
.light .btn-ghost { border-color: var(--line-light-2); color: var(--text-light); background: var(--chalk-2); }
.light .btn-ghost:hover { background: var(--chalk-3); }
.btn .arrow { transition: transform .2s var(--ease); }
.btn:hover .arrow { transform: translateX(3px); }

/* ---------- nav ---------- */
.nav {
  position: fixed; inset: 0 0 auto 0; z-index: 50; height: 68px; display: flex; align-items: center;
  background: rgba(11,18,32,.6); backdrop-filter: blur(18px) saturate(1.4); -webkit-backdrop-filter: blur(18px) saturate(1.4);
  border-bottom: 1px solid transparent; transition: border-color .3s, background .3s;
}
.nav.scrolled { border-bottom-color: var(--line-dark); background: rgba(11,18,32,.82); }
.nav .wrap { display: flex; align-items: center; gap: 28px; }
.brand { display: flex; align-items: center; gap: 8px; font-weight: 700; font-size: 17px; letter-spacing: -.01em; color: #fff; }
.brand-mark { width: 44px; height: 44px; flex-shrink: 0; display: block; }
.brand-word { height: 30px; width: auto; display: block; margin-left: -6px; }
.hero-logo { width: min(340px, 80%); height: auto; display: block; margin: 0 0 6px -26px; }
@media (max-width: 700px) { .hero-logo { margin-left: -6.5%; } }
.nav-links { display: flex; gap: 18px; margin-left: auto; font-size: 14px; font-weight: 500; color: var(--muted-dark); }
.nav-links a { transition: color .2s; }
.nav-links a:hover { color: #fff; }
.nav .btn { padding: 8px 14px; font-size: 14px; }
.nav-toggle { display: none; margin-left: auto; background: none; border: 0; color: #fff; width: 40px; height: 40px; cursor: pointer; }
@media (max-width: 1180px) {
  .nav-links, .nav .btn-brand { display: none; }
  .nav-toggle { display: grid; place-items: center; }
  .nav.open .nav-links { display: flex; position: absolute; top: 68px; left: 0; right: 0; flex-direction: column; gap: 0; background: rgba(11,18,32,.97); border-bottom: 1px solid var(--line-dark); padding: 8px var(--gutter) 16px; }
  .nav.open .nav-links a { padding: 12px 0; border-bottom: 1px solid var(--line-dark); font-size: 16px; color: var(--text-dark); }
}

/* ---------- hero ---------- */
.hero {
  padding-top: 140px; padding-bottom: clamp(60px, 8vw, 120px); overflow: hidden;
  background:
    radial-gradient(900px 500px at -10% 110%, rgba(99,102,241,.35) 0%, transparent 60%),
    radial-gradient(800px 500px at 110% -10%, rgba(6,182,212,.28) 0%, transparent 55%),
    linear-gradient(135deg, #0f172a 0%, #0b1220 60%);
}
.hero-grid { display: grid; grid-template-columns: 1fr 1.05fr; gap: clamp(32px, 5vw, 72px); align-items: center; }
.hero h1 { font-size: clamp(40px, 5.8vw, 82px); font-weight: 700; letter-spacing: -.035em; }
.hero-copy { display: grid; gap: 26px; }
.hero-ctas { display: flex; flex-wrap: wrap; gap: 12px; }
.hero-proof { display: flex; flex-wrap: wrap; gap: 14px 28px; padding-top: 6px; color: var(--muted-dark); font-size: 14px; }
.hero-proof span { display: flex; align-items: center; gap: 8px; }
.hero-proof i { width: 6px; height: 6px; border-radius: 50%; background: var(--accent-light); }

.hero-stage { perspective: 1600px; height: clamp(380px, 46vw, 600px); position: relative; }
.stack { position: absolute; inset: 0; transform-style: preserve-3d; transition: transform .6s var(--ease); }
.stack .shot {
  position: absolute; left: 50%; top: 50%; width: min(600px, 96%); aspect-ratio: 16 / 10;
  transform: translate(-50%, -50%) translateZ(var(--z)) translateX(var(--x)) translateY(var(--y)) rotate(var(--r));
  border-radius: 12px; overflow: hidden; background: var(--chalk);
  border: 1px solid rgba(255,255,255,.14);
  box-shadow: 0 40px 80px -30px rgba(0,0,0,.85), 0 0 0 1px rgba(0,0,0,.5);
  animation: float 7s ease-in-out infinite; animation-delay: var(--d, 0s);
}
@keyframes float { 0%,100% { margin-top: 0 } 50% { margin-top: -10px } }
.shot-1 { --z: 0px;    --x: -50px; --y: 50px;  --r: -3deg; --d: 0s; }
.shot-2 { --z: 120px;  --x: 20px;  --y: -10px; --r: 2deg;  --d: 1.2s; }
.stack .shot-3 { --z: 240px;  --x: 200px; --y: 20px;  --r: 5deg;  --d: 2.4s; width: 168px; aspect-ratio: 9 / 18.5; border-radius: 24px; border: 6px solid #1e293b; background: var(--chalk); }
@media (max-width: 900px) {
  .hero-grid { grid-template-columns: 1fr; }
  .hero-stage { height: clamp(300px, 72vw, 440px); }
  .stack .shot-3 { --x: 120px; width: 120px; border-width: 4px; }
}

/* ==========================================================================
   Mock CRM UI — mirrors app/Views/layouts/main.php + assets/css/style.css
   ========================================================================== */
.ui {
  --u-bg: #f5f7fb; --u-surface: #fff; --u-soft: #f3f4f6; --u-border: #e5e7eb; --u-border-2: #d1d5db;
  --u-text: #111827; --u-text-2: #4b5563; --u-text-3: #6b7280; --u-link: #4f46e5; --u-thead: #fafbfc;
  font-family: var(--body); font-size: 10px; color: var(--u-text); background: var(--u-bg);
  display: grid; grid-template-columns: 104px 1fr; height: 100%; min-height: 0; line-height: 1.4; text-align: left;
}
.ui.dark { --u-bg: #0b1220; --u-surface: #1e293b; --u-soft: #334155; --u-border: #334155; --u-border-2: #475569; --u-text: #f1f5f9; --u-text-2: #cbd5e1; --u-text-3: #94a3b8; --u-link: #93c5fd; --u-thead: #334155; }
.ui.nosb { grid-template-columns: 1fr; }
.u-side { background: linear-gradient(180deg, var(--sidebar) 0%, var(--sidebar-2) 100%); color: #cbd5e1; display: grid; grid-template-rows: auto auto 1fr auto; min-height: 0; overflow: hidden; border-right: 1px solid rgba(255,255,255,.04); }
.u-brand { padding: 9px 10px 8px; border-bottom: 1px solid rgba(255,255,255,.06); }
.u-brand b { display: flex; align-items: center; gap: 5px; color: #fff; font-size: 10px; font-weight: 600; }
.u-brand b::before { content: ""; width: 11px; height: 11px; border-radius: 3px; background: var(--grad); box-shadow: 0 2px 4px rgba(79,70,229,.35); }
.u-brand small { display: block; color: #94a3b8; font-size: 7px; margin-top: 2px; letter-spacing: .02em; }
.u-search { margin: 4px 8px 6px; height: 14px; border-radius: 3px; background: rgba(255,255,255,.06); border: 1px solid rgba(255,255,255,.14); color: #7b8694; font-size: 7px; display: flex; align-items: center; gap: 4px; padding: 0 5px; }
.u-nav { padding: 2px 4px; display: grid; align-content: start; gap: 1px; overflow: hidden; }
.u-sec { padding: 6px 6px 2px; color: #64748b; text-transform: uppercase; font-size: 6.5px; font-weight: 600; letter-spacing: .08em; display: flex; justify-content: space-between; }
.u-sec::after { content: "⌄"; opacity: .55; font-size: 7px; }
.u-link { display: flex; align-items: center; gap: 5px; padding: 3px 6px; border-radius: 3px; font-size: 8px; font-weight: 500; color: #cbd5e1; position: relative; }
.u-link .ic { width: 8px; height: 8px; opacity: .85; flex-shrink: 0; }
.u-link.on { background: rgba(99,102,241,.14); color: #fff; }
.u-link.on .ic { color: #a5b4fc; opacity: 1; }
.u-link.on::before { content: ""; position: absolute; left: -4px; top: 3px; bottom: 3px; width: 2px; background: #6366f1; border-radius: 0 2px 2px 0; }
.u-user { padding: 7px 10px; border-top: 1px solid rgba(255,255,255,.06); background: rgba(0,0,0,.18); display: flex; align-items: center; gap: 5px; font-size: 7px; color: #94a3b8; }
.u-user i { width: 14px; height: 14px; border-radius: 50%; background: var(--grad); color: #fff; font-style: normal; font-weight: 600; font-size: 6px; display: grid; place-items: center; }
.u-user b { color: #fff; display: block; font-size: 7.5px; }
.u-main { display: grid; grid-template-rows: auto 1fr; min-height: 0; min-width: 0; }
.u-top { background: var(--u-surface); border-bottom: 1px solid var(--u-border); padding: 5px 10px; display: flex; align-items: center; gap: 6px; }
.u-top .back { width: 14px; height: 12px; border: 1px solid var(--u-border-2); border-radius: 3px; display: grid; place-items: center; color: var(--u-text-2); font-size: 8px; }
.u-top .crumb { font-weight: 600; font-size: 9px; }
.u-top .acts { margin-left: auto; display: flex; gap: 4px; }
.u-btn { display: inline-flex; align-items: center; gap: 3px; padding: 2px 6px; border-radius: 3px; font-size: 7.5px; font-weight: 500; border: 1px solid var(--u-border); color: var(--u-text-2); background: var(--u-surface); }
.u-btn.p { background: var(--brand); border-color: var(--brand); color: #fff; }
.u-btn.o { color: var(--u-link); border-color: #c7d2fe; }
.ui.dark .u-btn.o { border-color: #93c5fd; }
.u-btn.d { color: #dc2626; border-color: #fecaca; }
.u-body { padding: 8px 10px; display: grid; gap: 7px; align-content: start; min-width: 0; overflow: hidden; }
.u-card { background: var(--u-surface); border: 1px solid var(--u-border); border-radius: 5px; box-shadow: 0 1px 2px rgba(15,23,42,.04); }
.u-card .cb { padding: 7px 9px; }
.u-card h6 { margin: 0 0 5px; font-size: 8px; font-weight: 600; color: var(--u-text-2); display: flex; align-items: center; gap: 4px; }
.u-card h6 .ic { width: 8px; height: 8px; }
.u-gs { display: flex; align-items: center; gap: 6px; padding: 6px 9px; color: var(--u-text-3); font-size: 8.5px; }
.u-gs .ic { width: 9px; height: 9px; }
.tiles { display: grid; grid-template-columns: repeat(6, 1fr); gap: 5px; }
.tile { background: var(--u-surface); border: 1px solid var(--u-border); border-radius: 5px; padding: 5px 7px; }
.tile small { display: flex; align-items: center; gap: 3px; color: var(--u-text-3); font-size: 6.5px; }
.tile small .ic { width: 7px; height: 7px; }
.tile b { display: block; font-size: 13px; font-weight: 600; margin-top: 1px; font-variant-numeric: tabular-nums; }
.tile b.warn { color: #dc2626; }
.u-row { display: grid; grid-template-columns: 1fr 1fr; gap: 7px; min-width: 0; }
.u-row.r3 { grid-template-columns: 1fr 1fr 1fr; }
.u-tbl { width: 100%; border-collapse: collapse; font-size: 7.5px; }
.u-tbl th { text-align: left; background: var(--u-thead); color: var(--u-text-3); font-weight: 600; text-transform: uppercase; font-size: 6px; letter-spacing: .06em; padding: 4px 5px; border-bottom: 1px solid var(--u-border); white-space: nowrap; }
.u-tbl td { padding: 4px 5px; border-bottom: 1px solid var(--u-border-2); white-space: nowrap; overflow: hidden; text-overflow: ellipsis; max-width: 120px; }
.ui.dark .u-tbl td { border-color: var(--u-border); }
.u-tbl td.r, .u-tbl th.r { text-align: right; font-variant-numeric: tabular-nums; }
.u-tbl a { color: var(--u-link); font-weight: 500; }
.stage { display: inline-block; background: #f1f5f9; color: #475569; padding: 1px 6px; border-radius: 999px; font-size: 6.5px; font-weight: 500; }
.stage.won { background: #d1fae5; color: #047857; }
.stage.lost { background: #fee2e2; color: #b91c1c; }
.stage.warn { background: #fef3c7; color: #b45309; }
.stage.info { background: #e0f2fe; color: #0369a1; }
.ui.dark .stage { background: #334155; color: #cbd5e1; }
.ui.dark .stage.won { background: rgba(34,197,94,.2); color: #86efac; }
.ui.dark .stage.lost { background: rgba(239,68,68,.2); color: #fca5a5; }
.ui.dark .stage.warn { background: rgba(245,158,11,.2); color: #fcd34d; }
.prog { height: 6px; border-radius: 3px; background: var(--u-soft); overflow: hidden; position: relative; }
.prog i { display: block; height: 100%; background: var(--brand); }
.prog i.g { background: var(--green); } .prog i.r { background: var(--red); } .prog i.a { background: var(--amber); } .prog i.c { background: var(--accent); }
.prog .mark { position: absolute; top: 0; bottom: 0; width: 1.5px; background: #212529; }
.filters { display: grid; grid-template-columns: 2fr 1fr 1fr 1fr; gap: 5px; align-items: end; }
.filters label { display: grid; gap: 2px; font-size: 6.5px; color: var(--u-text-2); font-weight: 500; }
.filters span { height: 14px; border: 1px solid var(--u-border-2); border-radius: 3px; background: #eef1f6; font-size: 7px; padding: 0 5px; display: flex; align-items: center; color: var(--u-text-3); font-weight: 400; }
.ui.dark .filters span { background: #0f172a; border-color: #475569; }
.chips { display: flex; gap: 4px; flex-wrap: wrap; }
.chip { font-size: 6.5px; padding: 1px 6px; border-radius: 999px; background: var(--brand-soft); color: var(--brand-2); font-weight: 500; }
.ui.dark .chip { background: #312e81; color: #c7d2fe; }
.kb { display: grid; grid-template-columns: repeat(4, 1fr); gap: 5px; }
.kb-col { background: var(--u-soft); border: 1px solid var(--u-border); border-radius: 4px; padding: 5px; min-height: 90px; display: grid; gap: 4px; align-content: start; }
.kb-col h6 { font-size: 6.5px; text-transform: uppercase; color: var(--u-text-3); margin: 0 0 1px; display: flex; justify-content: space-between; align-items: center; font-weight: 600; }
.kb-col h6 em { font-style: normal; background: #6b7280; color: #fff; border-radius: 999px; padding: 0 4px; font-size: 6px; }
.kb-card { background: var(--u-surface); border: 1px solid var(--u-border-2); border-radius: 3px; padding: 4px 5px; font-size: 7px; box-shadow: 0 1px 2px rgba(15,23,42,.04); }
.kb-card b { display: block; color: var(--u-link); font-weight: 600; }
.kb-card small { color: var(--u-text-3); display: block; font-size: 6.5px; }
.kb-card span { display: block; text-align: right; font-variant-numeric: tabular-nums; }
.det { display: grid; grid-template-columns: 1fr 88px; gap: 7px; min-width: 0; }
.det-head { display: flex; justify-content: space-between; align-items: flex-start; gap: 6px; padding: 7px 9px; background: var(--u-bg); border-bottom: 1px solid var(--u-border); }
.det-head h4 { font-family: var(--body); font-size: 10px; font-weight: 600; margin: 0; letter-spacing: 0; }
.det-head small { color: var(--u-text-3); font-size: 6.5px; display: block; }
.kv { display: grid; grid-template-columns: 52px 1fr; font-size: 7px; }
.kv dt { color: var(--u-text-3); font-weight: 500; padding: 3px 5px; background: var(--u-soft); border-bottom: 1px solid var(--u-border); margin: 0; }
.kv dd { margin: 0; padding: 3px 5px; border-bottom: 1px solid var(--u-border); }
.vt { background: var(--u-surface); border: 1px solid var(--u-border); border-radius: 5px; overflow: hidden; font-size: 7px; }
.vt h6 { background: var(--u-soft); padding: 4px 7px; margin: 0; font-size: 6px; font-weight: 600; color: var(--u-text-2); text-transform: uppercase; letter-spacing: .06em; border-bottom: 1px solid var(--u-border-2); }
.vt a { display: flex; align-items: center; gap: 4px; padding: 4px 7px; border-bottom: 1px solid var(--u-border-2); color: var(--brand-2); font-weight: 500; }
.ui.dark .vt a { color: #93c5fd; border-color: var(--u-border); }
.vt a:last-child { border-bottom: 0; }
.vt a .ic { width: 7px; height: 7px; }
.totals { display: grid; grid-template-columns: 1fr auto; gap: 2px 10px; font-size: 7.5px; padding: 5px 9px; justify-content: end; margin-left: auto; width: max-content; font-variant-numeric: tabular-nums; }
.totals .grand { font-weight: 600; border-top: 2px solid var(--u-border-2); padding-top: 3px; }
.alert-x { display: flex; gap: 5px; align-items: center; padding: 5px 8px; border-radius: 4px; font-size: 7px; border: 1px solid; }
.alert-x.danger { background: #fef2f2; color: #b91c1c; border-color: #fecaca; }
.alert-x.warn { background: #fffbeb; color: #b45309; border-color: #fde68a; }
.ui.dark .alert-x.danger { background: rgba(239,68,68,.12); color: #fca5a5; border-color: rgba(239,68,68,.4); }
/* phone task board */
.phone { display: grid; grid-template-rows: auto auto 1fr auto; height: 100%; background: var(--chalk); font-family: var(--body); font-size: 8px; color: var(--text-light); }
.ph-top { background: linear-gradient(180deg, var(--sidebar), var(--sidebar-2)); color: #fff; padding: 14px 10px 8px; font-weight: 600; font-size: 9px; display: flex; align-items: center; gap: 5px; }
.ph-top::before { content: ""; width: 10px; height: 10px; border-radius: 3px; background: var(--grad); }
.ph-tabs { display: flex; background: #fff; border-bottom: 1px solid var(--line-light); }
.ph-tabs span { flex: 1; text-align: center; padding: 6px 0; font-size: 7.5px; font-weight: 500; color: var(--muted-light); }
.ph-tabs span.on { color: var(--brand); border-bottom: 2px solid var(--brand); }
.ph-list { padding: 7px; display: grid; gap: 5px; align-content: start; }
.ph-task { background: #fff; border: 1px solid var(--line-light); border-radius: 6px; padding: 6px 7px; display: grid; gap: 2px; }
.ph-task b { font-size: 7.5px; font-weight: 600; }
.ph-task small { color: var(--muted-light); font-size: 6.5px; }
.ph-task .row { display: flex; justify-content: space-between; align-items: center; margin-top: 2px; }
.ph-bot { display: flex; justify-content: space-around; padding: 6px; background: #fff; border-top: 1px solid var(--line-light); font-size: 6.5px; color: var(--muted-light); }
.ph-bot span.on { color: var(--brand); font-weight: 600; }

/* ---------- proof strip ---------- */
.proof { padding-block: clamp(56px, 8vw, 110px); border-top: 1px solid var(--line-dark); border-bottom: 1px solid var(--line-dark); background: linear-gradient(180deg, #0f172a 0%, var(--ink) 100%); }
.proof-grid { display: grid; grid-template-columns: 1.1fr 1fr; gap: clamp(32px, 5vw, 80px); align-items: center; }
.proof-copy { display: grid; gap: 16px; }
.proof-copy h2 { font-size: clamp(28px, 3.6vw, 46px); }
.proof-logos { display: flex; flex-wrap: wrap; gap: 10px; margin-top: 8px; }
.proof-logos span { font-family: var(--display); font-weight: 600; font-size: 15px; letter-spacing: -.01em; color: var(--text-dark); padding: 9px 14px; border: 1px solid var(--line-dark); border-radius: var(--radius-sm); background: rgba(255,255,255,.03); display: inline-flex; align-items: center; gap: 8px; }
.proof-logos span::before { content: ""; width: 8px; height: 8px; border-radius: 2px; background: var(--grad); }
.stats { display: grid; grid-template-columns: 1fr 1fr; gap: 12px; }
.stat { background: var(--ink-2); border: 1px solid var(--line-dark); border-radius: var(--radius-sm); padding: 20px; display: grid; gap: 6px; align-content: start; }
.stat b { font-family: var(--display); font-size: clamp(30px, 3.4vw, 44px); font-weight: 600; letter-spacing: -.03em; line-height: 1; font-variant-numeric: tabular-nums; background: var(--grad); -webkit-background-clip: text; background-clip: text; color: transparent; }
.stat span { font-size: 13.5px; color: var(--muted-dark); line-height: 1.45; }
@media (max-width: 900px) { .proof-grid { grid-template-columns: 1fr; } }
@media (max-width: 480px) { .stats { grid-template-columns: 1fr; } }

/* ---------- heritage ---------- */
.principles { list-style: none; margin: 0; padding: 0; display: grid; gap: 0; border: 1px solid var(--line-light); border-radius: var(--radius); background: var(--chalk-2); overflow: hidden; box-shadow: 0 1px 2px rgba(15,23,42,.04); }
.principles li { display: grid; gap: 4px; padding: 20px 22px; border-bottom: 1px solid var(--line-light); position: relative; }
.principles li:last-child { border-bottom: 0; }
.principles li::before { content: ""; position: absolute; left: 0; top: 18px; bottom: 18px; width: 3px; border-radius: 0 3px 3px 0; background: var(--grad); }
.principles b { font-size: 16px; font-weight: 600; letter-spacing: -.01em; }
.principles span { font-size: 14.5px; color: var(--muted-light); line-height: 1.5; }

/* ---------- charts inside the mock (draw with --cp, set by the exploded-view scroll) ---------- */
.explode-rig { --cp: 1; }
.layer.fill .u-body { grid-auto-rows: 1fr; height: 100%; }
.layer.fill .u-card { display: grid; }
.layer.fill .u-card .cb { display: grid; grid-template-rows: auto 1fr; }
.layer.fill .chart-bars { height: 100%; min-height: 54px; }
.layer.fill .chart-line { height: 100%; min-height: 56px; }
.layer.fill .kb { height: 100%; }
.layer.fill .kb-col { min-height: 0; }
.layer.pipe .kb-col { align-content: end; }            /* cards sit in the band that shows below the layer above */
.layer.docs .u-body { grid-auto-rows: auto; align-content: end; }
.layer.docs .det > div:last-child { align-content: end; }
.chart-donut { display: grid; grid-template-columns: 46px 1fr; gap: 6px; align-items: center; }
.chart-donut svg { width: 46px; height: 46px; transform: rotate(-90deg); }
.dn-bg { fill: none; stroke: var(--u-soft); stroke-width: 6; }
.dn { fill: none; stroke-width: 6; stroke-dasharray: calc(var(--seg) * var(--cp)) 100; stroke-dashoffset: calc(-1 * var(--off) * var(--cp)); }
.chart-donut ul { list-style: none; margin: 0; padding: 0; display: grid; gap: 2px; font-size: 6.5px; color: var(--u-text-2); }
.chart-donut li { display: flex; align-items: center; gap: 4px; }
.chart-donut li i { width: 6px; height: 6px; border-radius: 2px; flex-shrink: 0; }
.chart-donut li b { margin-left: auto; font-variant-numeric: tabular-nums; }
.gauge { display: grid; justify-items: center; gap: 0; }
.gauge svg { width: 70px; height: 40px; }
.g-bg { fill: none; stroke: var(--u-soft); stroke-width: 5; stroke-linecap: round; }
.g-fg { fill: none; stroke: var(--accent); stroke-width: 5; stroke-linecap: round; stroke-dasharray: calc(var(--val) * var(--cp)) 100; }
.gauge b { font-size: 12px; margin-top: -8px; }
.gauge small { font-size: 6.5px; color: var(--u-text-3); }
.chart-bars { display: grid; grid-template-columns: repeat(6, 1fr); gap: 5px; align-items: end; height: 54px; padding-top: 4px; }
.chart-bars i { position: relative; display: block; height: var(--h); background: var(--brand-light); border-radius: 2px 2px 0 0; transform: scaleY(var(--cp)); transform-origin: bottom; opacity: .75; }
.chart-bars i.cur { background: var(--brand); opacity: 1; }
.chart-bars i span { position: absolute; top: 100%; left: 0; right: 0; text-align: center; font-size: 6px; color: var(--u-text-3); margin-top: 2px; font-style: normal; }
.chart-line { width: 100%; height: 56px; display: block; }
.chart-line line { stroke: var(--u-border); stroke-width: .6; }
.ln { fill: none; stroke: var(--accent); stroke-width: 1.6; stroke-linejoin: round; stroke-dasharray: 100; stroke-dashoffset: calc(100 - 100 * var(--cp)); }
.ln-area { fill: var(--accent); opacity: calc(.14 * var(--cp)); }
.ln-dot { fill: var(--accent); opacity: var(--cp); }

/* ---------- inventory app mock (top-navbar shell, mirrors the stock app) ---------- */
.inv { --u-bg: #f5f7fb; --u-surface: #fff; --u-soft: #f3f4f6; --u-border: #e5e7eb; --u-border-2: #d1d5db; --u-text: #111827; --u-text-2: #4b5563; --u-text-3: #6b7280; --u-link: #4f46e5; --u-thead: #fafbfc;
  background: var(--u-bg); color: var(--u-text); font-family: var(--body); font-size: 10px; display: grid; grid-template-rows: auto 1fr; aspect-ratio: 16 / 11; line-height: 1.4; }
.inv-nav { background: #1f2937; color: #cbd5e1; display: flex; align-items: center; gap: 10px; padding: 6px 10px; font-size: 7.5px; font-weight: 500; overflow: hidden; white-space: nowrap; }
.inv-nav b { display: flex; align-items: center; gap: 5px; color: #fff; font-size: 8.5px; margin-right: 6px; }
.inv-nav b i { width: 11px; height: 11px; border-radius: 3px; background: var(--grad); }
.inv-nav span.on { color: #fff; }
.inv-nav em { font-style: normal; background: #4b5563; color: #fff; border-radius: 999px; padding: 0 4px; font-size: 6px; margin-left: 2px; }
.inv-nav .low em { background: #dc2626; }
.inv-body { padding: 8px 10px; display: grid; gap: 7px; align-content: start; min-width: 0; overflow: hidden; }
.inv-stats { display: grid; grid-template-columns: repeat(4, 1fr); gap: 6px; }
.ist { background: var(--u-surface); border-radius: 5px; padding: 6px 8px; display: grid; gap: 1px; box-shadow: 0 1px 2px rgba(15,23,42,.05); }
.ist small { font-size: 6px; text-transform: uppercase; letter-spacing: .05em; color: var(--u-text-3); font-weight: 600; }
.ist b { font-size: 13px; font-weight: 700; line-height: 1.1; font-variant-numeric: tabular-nums; }
.ist b.low { color: #b53d2a; }
.ist a { font-size: 6.5px; color: var(--u-link); }
.u-tbl td.pos { color: #2e7d32; font-weight: 600; }
.u-tbl td.neg { color: #b53d2a; font-weight: 600; }
.lowlist { display: grid; gap: 4px; }
.lowlist > div { display: grid; grid-template-columns: 1fr auto; gap: 0 6px; align-items: center; font-size: 7px; padding: 3px 0; border-bottom: 1px solid var(--u-border); }
.lowlist > div:last-child { border-bottom: 0; }
.lowlist b { font-weight: 600; white-space: nowrap; overflow: hidden; text-overflow: ellipsis; }
.lowlist small { grid-column: 1; color: var(--u-text-3); font-size: 6.5px; }
.lowlist span { grid-row: 1 / span 2; }
.cats { display: grid; gap: 3px; font-size: 7px; }
.cats > div { display: flex; justify-content: space-between; gap: 6px; }
.cats span { color: var(--u-text-2); white-space: nowrap; overflow: hidden; text-overflow: ellipsis; }
.cats i { font-style: normal; color: var(--u-text-3); margin: 0 2px; font-size: 6px; }
.cats b { color: var(--u-link); font-variant-numeric: tabular-nums; }

/* ---------- product grid ---------- */
.products { display: grid; grid-template-columns: repeat(3, 1fr); gap: 14px; }
.product {
  position: relative; display: grid; gap: 14px; padding: 26px; border-radius: var(--radius);
  background: var(--ink-2); border: 1px solid var(--line-dark); overflow: hidden; align-content: start;
  transition: transform .4s var(--ease), border-color .3s, box-shadow .3s;
}
.product:hover { transform: translateY(-4px); border-color: rgba(129,140,248,.55); box-shadow: 0 20px 40px -20px rgba(79,70,229,.5); }
.product .icon { width: 44px; height: 44px; border-radius: 11px; display: grid; place-items: center; background: var(--grad); color: #fff; box-shadow: 0 6px 16px rgba(79,70,229,.35); }
.product h3 { font-size: 22px; }
.product p { color: var(--muted-dark); font-size: 15px; }
.product .soon { position: absolute; top: 18px; right: 18px; font-size: 10px; font-weight: 600; letter-spacing: .08em; text-transform: uppercase; color: var(--accent-light); border: 1px solid rgba(34,211,238,.4); border-radius: 999px; padding: 3px 8px; }
/* featured full-width tile with a preview image */
.product.wide { grid-column: 1 / -1; grid-template-columns: 1fr 1.25fr; align-items: center; gap: 28px; }
.product.wide > div { display: grid; gap: 14px; align-content: start; }
.product.wide img { width: 100%; height: auto; display: block; border-radius: 8px; border: 1px solid var(--line-dark); box-shadow: 0 20px 40px -24px rgba(0,0,0,.8); }
@media (max-width: 960px) { .products { grid-template-columns: 1fr 1fr; } .product.wide { grid-template-columns: 1fr; } }
@media (max-width: 600px) { .products { grid-template-columns: 1fr; } }

/* ---------- exploded view ---------- */
.explode { height: 220vh; }
.explode-sticky { position: sticky; top: 0; height: 100vh; overflow: hidden; display: grid; align-items: center; padding-top: 68px; box-sizing: border-box; }
.explode-inner { display: grid; grid-template-columns: 1.3fr .8fr; gap: 40px; align-items: center; width: min(var(--max), 100% - 2 * var(--gutter)); margin-inline: auto; }
.explode-stage { perspective: 1800px; height: min(78vh, 700px); position: relative; }
.explode-rig { position: absolute; inset: 0; transform-style: preserve-3d; }
.layer {
  position: absolute; left: 50%; top: 50%; width: min(600px, 100%); aspect-ratio: 16 / 10;
  transform: translate(-50%, -50%) rotateX(var(--rx, 0deg)) rotateZ(var(--rz, 0deg)) translateZ(var(--tz, 0px));
  border-radius: 12px; overflow: hidden; background: var(--chalk);
  border: 1px solid rgba(255,255,255,.16); box-shadow: 0 30px 60px -20px rgba(0,0,0,.85);
  transform-style: preserve-3d; backface-visibility: hidden; will-change: transform;
}
.layer-label {
  position: absolute; left: 8px; bottom: 100%; margin-bottom: 10px; font-size: 11px; font-weight: 600; letter-spacing: .1em; text-transform: uppercase; color: var(--accent-light);
  opacity: var(--lo, 0); transition: opacity .3s; display: flex; align-items: center; gap: 8px;
}
.layer-label::before { content: ""; width: 26px; height: 1px; background: var(--accent-light); }
.explode-copy { display: grid; gap: 10px; }
.explode-copy .lede { font-size: 15px; }
.explode-copy h2 { font-size: clamp(26px, 3vw, 40px); }
.explode-steps { display: grid; gap: 2px; margin-top: 8px; }
.step { padding: 9px 14px; border-radius: 10px; border: 1px solid transparent; transition: background .3s, border-color .3s; color: var(--muted-dark); font-size: 13.5px; line-height: 1.4; }
.step b { display: block; color: var(--text-dark); font-weight: 600; margin-bottom: 2px; }
.step.on { background: var(--ink-2); border-color: var(--line-dark); }
.step.on b { color: var(--accent-light); }
.explode-progress { height: 3px; background: var(--line-dark); border-radius: 3px; overflow: hidden; margin-top: 8px; }
.explode-progress i { display: block; height: 100%; width: 0; background: var(--grad); }
@media (max-width: 900px) {
  .explode { height: 190vh; }
  .explode-inner { grid-template-columns: 1fr; gap: 16px; }
  .explode-stage { height: 44vh; }
  .layer { width: min(92vw, 520px); }
  .explode-copy h2 { font-size: 28px; }
  .explode-copy .lede { display: none; }
  .step { padding: 10px 12px; font-size: 14px; }
}

/* ---------- inside-the-CRM feature grid ---------- */
.feats { display: grid; grid-template-columns: repeat(4, 1fr); gap: 12px; }
.feat { background: var(--chalk-2); border: 1px solid var(--line-light); border-radius: var(--radius-sm); padding: 20px; display: grid; gap: 8px; align-content: start; box-shadow: 0 1px 2px rgba(15,23,42,.04); }
.feat .ic { width: 22px; height: 22px; color: var(--brand); }
.feat b { font-size: 15px; font-weight: 600; letter-spacing: -.01em; }
.feat span { font-size: 13.5px; color: var(--muted-light); line-height: 1.5; }
@media (max-width: 1000px) { .feats { grid-template-columns: repeat(2, 1fr); } }
@media (max-width: 520px) { .feats { grid-template-columns: 1fr; } }

/* ---------- split sections ---------- */
.split { display: grid; grid-template-columns: 1fr 1fr; gap: clamp(32px, 5vw, 80px); align-items: center; }
.split.rev > :first-child { order: 2; }
.split h2 { font-size: clamp(32px, 4.4vw, 56px); }
.split .copy { display: grid; gap: 18px; }
.feat-list { list-style: none; margin: 8px 0 0; padding: 0; display: grid; gap: 14px; }
.feat-list li { display: grid; grid-template-columns: 24px 1fr; gap: 12px; align-items: start; }
.feat-list li .ic { width: 20px; height: 20px; margin-top: 2px; color: var(--accent); }
.light .feat-list li .ic { color: var(--brand); }
.feat-list b { display: block; font-weight: 600; }
.feat-list span { font-size: 15px; }
.dark .feat-list span { color: var(--muted-dark); }
.light .feat-list span { color: var(--muted-light); }
.frame { border-radius: var(--radius); overflow: hidden; background: var(--chalk); border: 1px solid var(--line-light-2); box-shadow: 0 30px 60px -30px rgba(15,23,42,.35); }
.dark .frame { border-color: rgba(255,255,255,.14); box-shadow: 0 40px 80px -40px rgba(0,0,0,.8); }
.frame .ui { aspect-ratio: 16 / 11; }
.frame-tools { display: flex; justify-content: flex-end; gap: 6px; margin-bottom: 10px; }
.seg { display: inline-flex; border: 1px solid var(--line-light-2); border-radius: var(--radius-sm); overflow: hidden; background: var(--chalk-2); }
.seg button { border: 0; background: transparent; padding: 6px 12px; font-size: 13px; font-weight: 500; color: var(--muted-light); cursor: pointer; }
.seg button + button { border-left: 1px solid var(--line-light-2); }
.seg button.on { background: var(--brand-soft); color: var(--brand-2); }
/* auto round-robin: a progress line fills along the bottom of the active tab over one dwell */
.seg button { position: relative; }
.seg button::after { content: ""; position: absolute; left: 0; bottom: 0; height: 2px; width: 0; background: var(--grad); }
.seg button.on.run::after { animation: seg-dwell var(--stock-dwell, 6s) linear forwards; }
@keyframes seg-dwell { from { width: 0; } to { width: 100%; } }
@media (max-width: 900px) { .split { grid-template-columns: 1fr; } .split.rev > :first-child { order: 0; } }

/* ---------- finance ---------- */
.fin-grid { display: grid; grid-template-columns: repeat(3, 1fr); gap: 14px; margin-bottom: clamp(32px, 4vw, 56px); }
.fin { background: var(--chalk-2); border: 1px solid var(--line-light); border-radius: var(--radius-sm); padding: 22px; display: grid; gap: 6px; box-shadow: 0 1px 2px rgba(15,23,42,.04); }
.fin small { text-transform: uppercase; letter-spacing: .06em; font-size: 11px; color: var(--muted-light); font-weight: 600; }
.fin b { font-family: var(--display); font-size: clamp(28px, 3vw, 40px); font-weight: 600; letter-spacing: -.02em; font-variant-numeric: tabular-nums; }
.fin span { font-size: 14px; color: var(--muted-light); }
.fin svg { width: 100%; height: 44px; margin-top: 8px; }
.fin .delta { color: var(--green-deep); font-weight: 600; }
.fin .delta.neg { color: var(--red-deep); }
.fin-note { font-size: 12px; color: var(--muted-light); margin-top: 12px; }
@media (max-width: 900px) { .fin-grid { grid-template-columns: 1fr; } }

/* ---------- web design mock ---------- */
.browser { background: var(--chalk-2); }
.browser-bar { display: flex; align-items: center; gap: 6px; padding: 8px 12px; background: #e8ebf0; border-bottom: 1px solid var(--line-light-2); }
.browser-bar span { width: 9px; height: 9px; border-radius: 50%; background: #c5cad3; }
.browser-bar .url { margin-left: 10px; flex: 1; background: #fff; border-radius: 6px; font-size: 10px; color: var(--muted-light); padding: 3px 10px; font-family: var(--body); }
.site-mock { padding: 12px 14px 14px; display: grid; gap: 10px; font-family: var(--body); color: var(--text-light); }
.sm-nav { display: flex; align-items: center; gap: 12px; font-size: 8px; color: var(--muted-light); }
.sm-nav b { display: flex; align-items: center; gap: 5px; color: var(--text-light); font-size: 9px; margin-right: auto; }
.sm-nav b i { width: 10px; height: 10px; border-radius: 3px; background: var(--grad); }
.sm-nav em, .sm-hero em { font-style: normal; background: var(--brand); color: #fff; padding: 3px 8px; border-radius: 4px; font-size: 7.5px; font-weight: 600; }
.sm-hero { display: grid; grid-template-columns: 1.2fr 1fr; gap: 12px; align-items: center; padding: 8px 0 4px; }
.sm-hero small { font-size: 7px; text-transform: uppercase; letter-spacing: .08em; color: var(--brand); font-weight: 600; }
.sm-hero h5 { font-family: var(--display); font-size: 16px; font-weight: 700; letter-spacing: -.02em; line-height: 1.05; margin: 3px 0 4px; }
.sm-hero p { font-size: 7.5px; color: var(--muted-light); margin-bottom: 6px; max-width: 30ch; }
.sm-hero em { display: inline-block; }
.sm-art { position: relative; height: 70px; }
.sm-art span { position: absolute; border-radius: 6px; background: var(--grad); opacity: .9; }
.sm-art span:nth-child(1) { left: 10%; top: 10%; width: 45%; height: 60%; transform: rotate(-6deg); }
.sm-art span:nth-child(2) { left: 45%; top: 25%; width: 40%; height: 55%; transform: rotate(5deg); opacity: .6; }
.sm-art span:nth-child(3) { left: 30%; top: 55%; width: 30%; height: 40%; opacity: .35; }
.sm-cards { display: grid; grid-template-columns: repeat(3, 1fr); gap: 6px; }
.sm-cards div { height: 28px; border-radius: 5px; background: var(--chalk); border: 1px solid var(--line-light); }
.sm-form { border: 1px solid var(--line-light); border-radius: 6px; padding: 8px 10px; display: grid; gap: 5px; font-size: 8px; }
.sm-form b { font-size: 8.5px; }
.sm-form .f { display: grid; grid-template-columns: repeat(3, 1fr); gap: 5px; }
.sm-form .f span { height: 14px; border-radius: 3px; border: 1px solid var(--line-light-2); background: #eef1f6; font-size: 6.5px; color: var(--muted-light); padding: 0 5px; display: flex; align-items: center; }
.sm-form em { font-style: normal; font-size: 7px; color: var(--brand); font-weight: 600; }

/* ---------- SCADA window: the full page rendered at desktop size and scaled to fit ---------- */
.scada-stage { background: #0b1220; }
.scada-view { position: relative; aspect-ratio: 16 / 9; overflow: hidden; background: #0b1220; }
.scada-view iframe { position: absolute; top: 0; left: 0; border: 0; transform-origin: 0 0; transform: scale(var(--k, 1)); background: #0b1220; }

/* ---------- 3D simulation ---------- */
.sim-stage { background: #0d1117; }
.sim-view { position: relative; aspect-ratio: 16 / 9; background: #0d1117; }
.sim-view iframe { position: absolute; inset: 0; width: 100%; height: 100%; border: 0; display: block; background: #0d1117; }
.sim-full { font-size: 14px; font-weight: 600; color: var(--link-dark); text-decoration: none; white-space: nowrap; }
.sim-full:hover { text-decoration: underline; }
.sim-meta { display: flex; gap: 20px 32px; align-items: center; justify-content: space-between; flex-wrap: wrap; max-width: 1040px; margin: 18px auto 0; }
.sim-case { display: grid; gap: 5px; max-width: 76ch; }
.sim-case b { font-family: var(--display); font-size: 20px; font-weight: 600; letter-spacing: -.01em; }
.sim-case > span:last-child { font-size: 14.5px; color: var(--muted-dark); line-height: 1.5; }
.sim-feats { display: grid; grid-template-columns: repeat(4, 1fr); gap: 14px; margin-top: clamp(40px, 6vw, 64px); }
.sim-feats > div { padding: 24px; border-radius: var(--radius-sm); background: var(--ink-2); border: 1px solid var(--line-dark); display: grid; gap: 10px; align-content: start; }
.sim-feats b { font-family: var(--display); font-size: 20px; font-weight: 600; }
.sim-feats span { color: var(--muted-dark); font-size: 15px; }
.sim-feats .ic { width: 28px; height: 28px; color: var(--accent-light); }
@media (max-width: 960px) { .sim-feats { grid-template-columns: 1fr 1fr; } }
@media (max-width: 600px) { .sim-feats { grid-template-columns: 1fr; } }

/* ---------- why ---------- */
.why { display: grid; grid-template-columns: repeat(4, 1fr); gap: 14px; }
.why div { padding: 24px; border-radius: var(--radius-sm); background: var(--chalk-2); border: 1px solid var(--line-light); display: grid; gap: 10px; align-content: start; box-shadow: 0 1px 2px rgba(15,23,42,.04); }
.why b { font-family: var(--display); font-size: 20px; font-weight: 600; }
.why span { color: var(--muted-light); font-size: 15px; }
.why .ic { width: 28px; height: 28px; color: var(--brand); }
@media (max-width: 960px) { .why { grid-template-columns: 1fr 1fr; } }
@media (max-width: 560px) { .why { grid-template-columns: 1fr; } }

/* ---------- CTA ---------- */
.cta-box {
  border-radius: 24px; padding: clamp(32px, 5vw, 64px); display: grid; grid-template-columns: 1.1fr .9fr; gap: 40px; align-items: center;
  background:
    radial-gradient(900px 500px at 0% 100%, rgba(99,102,241,.5) 0%, transparent 60%),
    radial-gradient(700px 500px at 100% 0%, rgba(6,182,212,.4) 0%, transparent 55%),
    linear-gradient(135deg, #0f172a 0%, #1e1b4b 100%);
  border: 1px solid rgba(255,255,255,.1); position: relative; overflow: hidden;
}
.cta-box h2 { font-size: clamp(32px, 4.4vw, 56px); }
.cta-box .lede { color: #c7d2fe; }
.form { display: grid; gap: 10px; position: relative; z-index: 1; }
.form label { display: grid; gap: 6px; font-size: 13px; font-weight: 500; color: #c7d2fe; }
.form input, .form select, .form textarea {
  font: inherit; font-size: 15px; color: var(--text-dark); background: rgba(255,255,255,.06); border: 1px solid rgba(255,255,255,.16);
  border-radius: var(--radius-sm); padding: 11px 13px; width: 100%;
}
.form input:focus, .form select:focus, .form textarea:focus { outline: 0; border-color: var(--brand-light); box-shadow: 0 0 0 3px rgba(129,140,248,.3); background: rgba(255,255,255,.1); }
.form .row { display: grid; grid-template-columns: 1fr 1fr; gap: 10px; }
.form .btn { justify-content: center; margin-top: 6px; }
.form .note { font-size: 12px; color: #94a3b8; }
@media (max-width: 900px) { .cta-box { grid-template-columns: 1fr; } .form .row { grid-template-columns: 1fr; } }

/* ---------- footer ---------- */
footer { border-top: 1px solid var(--line-dark); padding-block: 56px 28px; color: var(--muted-dark); font-size: 14px; background: var(--sidebar); }
.foot-cols { display: grid; grid-template-columns: 1.4fr 1fr 1fr 1fr; gap: 40px; align-items: start; }
.foot-col h4 { margin: 0 0 14px; font-size: 15px; font-weight: 600; color: #fff; letter-spacing: -.01em; }
.foot-col p { margin: 0; line-height: 1.6; max-width: 36ch; }
.foot-col ul { list-style: none; margin: 0; padding: 0; display: grid; gap: 8px; line-height: 1.5; }
.foot-col ul.links a { color: var(--muted-dark); transition: color .2s; }
.foot-col ul.links a:hover { color: #fff; }
.foot-col ul.links small { font-size: 11px; color: var(--accent-light); margin-left: 6px; text-transform: uppercase; letter-spacing: .06em; }
.foot-col address { font-style: normal; display: grid; gap: 8px; line-height: 1.5; }
.foot-col address a { color: #fff; }
.foot-col address a:hover { color: var(--accent-light); }
.foot-col address .hours { font-size: 12.5px; color: var(--muted-dark); }
.foot-logo { width: 220px; height: auto; display: block; margin: -20px 0 -6px -18px; }
.foot-bottom { margin-top: 44px; padding-top: 20px; border-top: 1px solid var(--line-dark); display: flex; flex-wrap: wrap; gap: 14px 24px; align-items: center; justify-content: space-between; font-size: 12.5px; }
.foot-bottom .legal { display: flex; flex-wrap: wrap; gap: 6px 0; align-items: center; }
.foot-bottom .legal > * + *::before { content: "|"; margin: 0 10px; color: var(--ink-3); }
.foot-bottom .legal a:hover { color: #fff; }
.foot-bottom .social { display: flex; gap: 10px; }
.foot-bottom .social a { width: 34px; height: 34px; border-radius: 8px; display: grid; place-items: center; border: 1px solid var(--line-dark); color: var(--muted-dark); transition: color .2s, border-color .2s, background .2s; }
.foot-bottom .social a:hover { color: #fff; border-color: var(--brand-light); background: rgba(79,70,229,.25); }
.foot-bottom .social svg { width: 18px; height: 18px; }
@media (max-width: 960px) { .foot-cols { grid-template-columns: 1fr 1fr; } }
@media (max-width: 560px) { .foot-cols { grid-template-columns: 1fr; gap: 28px; } .foot-bottom .legal { flex-direction: column; align-items: flex-start; gap: 6px; } .foot-bottom .legal > * + *::before { content: none; } }

/* ---------- reveal ---------- */
.reveal { opacity: 1; transform: translateY(18px); transition: transform .5s var(--ease); }
.reveal.in { opacity: 1; transform: none; }
.reveal[data-delay="1"] { transition-delay: .1s; }
.reveal[data-delay="2"] { transition-delay: .2s; }
.reveal[data-delay="3"] { transition-delay: .3s; }

@media (prefers-reduced-motion: reduce) {
  html { scroll-behavior: auto; }
  .reveal { opacity: 1; transform: none; transition: none; }
  .stack .shot { animation: none; }
  .product:hover { transform: none; }
}

/* ---------- stock control tour ---------- */
.stock-tour { margin-top: clamp(56px, 7vw, 96px); }
.stock-tour .frame-tools { justify-content: flex-start; margin-bottom: 14px; }
.dark .seg { background: rgba(255,255,255,.04); border-color: var(--line-dark); }
.dark .seg button { color: var(--muted-dark); }
.dark .seg button + button { border-left-color: var(--line-dark); }
.dark .seg button.on { background: rgba(79,70,229,.25); color: #fff; }
.frame.wide { max-width: 1040px; margin: 0 auto; }
/* page fold: the four screens sit in one grid cell; the next screen is already underneath and the
   outgoing one hinges on its left edge and folds away in 3D (from the right edge when stepping back),
   a shadow deepening across it as it turns */
.frame.wide { display: grid; perspective: 2400px; }
.frame.wide .inv { grid-area: 1 / 1; zoom: 1.45; aspect-ratio: 16 / 10; position: relative; opacity: 0; visibility: hidden; pointer-events: none;
  transform-origin: left center; backface-visibility: hidden; -webkit-backface-visibility: hidden; }
.frame.wide .inv.on { opacity: 1; visibility: visible; pointer-events: auto; }
.frame.wide .inv.out { opacity: 1; visibility: visible; z-index: 2; animation: page-fold .85s cubic-bezier(.55,.05,.45,.95) forwards; }
.frame.wide .inv.out::after { content: ""; position: absolute; inset: 0; pointer-events: none;
  background: linear-gradient(90deg, rgba(11,18,32,.08), rgba(11,18,32,.55)); opacity: 0; animation: page-shade .85s linear forwards; }
.frame.wide.back .inv { transform-origin: right center; }
.frame.wide.back .inv.out { animation-name: page-fold-back; }
.frame.wide.back .inv.out::after { background: linear-gradient(270deg, rgba(11,18,32,.08), rgba(11,18,32,.55)); }
@keyframes page-fold { from { transform: rotateY(0deg); } to { transform: rotateY(-112deg); } }
@keyframes page-fold-back { from { transform: rotateY(0deg); } to { transform: rotateY(112deg); } }
@keyframes page-shade { from { opacity: 0; } 60% { opacity: 1; } to { opacity: 1; } }
@media (prefers-reduced-motion: reduce) { .frame.wide .inv.out { animation: none; visibility: hidden; opacity: 0; } .frame.wide .inv.out::after { animation: none; } }
.inv-head { display: flex; align-items: center; justify-content: space-between; gap: 8px; }
.inv-head h5 { margin: 0; font-size: 10px; font-weight: 700; color: var(--u-text); }
.inv-head small { font-size: 6.5px; color: var(--u-text-3); display: block; }
.inv-head .acts { display: flex; gap: 4px; }
.inv-tool { display: flex; gap: 5px; align-items: center; }
.inv-tool .fld { display: inline-flex; align-items: center; gap: 4px; background: var(--u-surface); border: 1px solid var(--u-border-2); border-radius: 4px; padding: 3px 6px; font-size: 6.5px; color: var(--u-text-3); white-space: nowrap; }
.inv-tool .fld.grow { flex: 1; }
.inv-tool .fld i { font-style: normal; font-size: 5px; }
.inv-tool .chk { display: inline-flex; align-items: center; gap: 3px; font-size: 6.5px; color: var(--u-text-2); }
.inv-tool .chk i { width: 7px; height: 7px; border: 1px solid var(--u-border-2); border-radius: 2px; background: var(--u-surface); }
.inv-tbl td small { display: block; color: var(--u-text-3); font-size: 5.8px; font-weight: 400; }
.inv-tbl td i { font-style: normal; color: var(--u-text-3); margin: 0 1px; font-size: 5.5px; }
.inv-tbl .mono { font-family: var(--mono); font-size: 6.2px; }
.inv-tbl .muted { color: var(--u-text-3); }
.inv-tbl tr.lowrow td { background: #fff7f5; }
.inv-tbl .cur { font-size: 5px; color: var(--u-text-3); margin-left: 1px; }
.qb { display: inline-grid; place-items: center; width: 11px; height: 11px; border: 1px solid var(--u-border-2); border-radius: 3px; font-size: 7px; color: var(--u-text-2); background: var(--u-surface); margin-left: 2px; }
.qb.p { border-color: var(--u-link); color: var(--u-link); }
.inv-foot { font-size: 6.5px; color: var(--u-text-3); }
.ist b .min { font-size: 6.5px; font-weight: 500; color: var(--u-text-3); margin-left: 3px; }
.ist b.sm { font-size: 7.5px; font-weight: 600; line-height: 1.3; }
.ist b.sm i { font-style: normal; color: var(--u-text-3); margin: 0 1px; font-size: 6px; }
.desc { margin: 0; font-size: 7px; color: var(--u-text-2); line-height: 1.5; }
.adj { display: grid; grid-template-columns: 50px 70px 1fr auto; gap: 5px; align-items: end; }
.adj label { display: grid; gap: 2px; font-size: 6px; color: var(--u-text-3); }
.adj .in { display: flex; justify-content: space-between; background: var(--u-surface); border: 1px solid var(--u-border-2); border-radius: 4px; padding: 3px 5px; font-size: 7px; color: var(--u-text); font-family: var(--mono); }
.adj .in.muted { color: var(--u-text-3); font-family: var(--body); }
.adj .in i { font-style: normal; font-size: 5px; color: var(--u-text-3); }
.reasons { margin-top: 5px; font-size: 6px; color: var(--u-text-3); }
.reasons b { font-weight: 600; color: var(--u-text-2); }
.label { width: 120px; aspect-ratio: 4 / 3; background: #fff; border: 1px solid #94a3b8; border-radius: 2px; padding: 5px 6px; display: grid; align-content: start; gap: 2px; font-family: var(--mono); color: #0f172a; box-shadow: 0 1px 3px rgba(15,23,42,.15); margin: 4px 0; }
.lb-top { display: flex; justify-content: space-between; font-size: 4.5px; letter-spacing: .06em; }
.lb-top b { font-weight: 700; }
.lb-pn { font-size: 8px; font-weight: 700; letter-spacing: .02em; }
.lb-name { font-size: 5.2px; line-height: 1.25; font-family: var(--body); }
.lb-row { display: flex; gap: 4px; font-size: 4.8px; }
.lb-row span { color: #64748b; width: 12px; }
.lb-row b { font-weight: 600; font-family: var(--body); }
.lb-qty { display: flex; align-items: center; gap: 3px; font-size: 4.8px; margin-top: 2px; }
.lb-qty i { width: 18px; height: 8px; border: 1px solid #0f172a; }
.lb-acts { display: flex; align-items: center; gap: 6px; font-size: 6px; }
.cb .muted, .inv-body .muted { color: var(--u-text-3); font-weight: 400; }
.stock-feats { margin-top: 28px; }
.dark .feat { background: var(--ink-2); border-color: var(--line-dark); box-shadow: none; }
.dark .feat b { color: var(--text-dark); }
.dark .feat span { color: var(--muted-dark); }
.dark .feat .ic { color: var(--accent-light); }
.dark .fin-note { color: var(--muted-dark); }
@media (max-width: 960px) { .stock-feats { grid-template-columns: 1fr 1fr; } .frame.wide .inv { zoom: 1.1; } }
@media (max-width: 600px) { .stock-feats { grid-template-columns: 1fr; } .frame.wide { overflow-x: auto; } .frame.wide .inv { zoom: 1; min-width: 560px; } }
