/* ==========================================================
   BRIIVO Technology Solutions — brivo.tech
   Shared styles: tokens, themes, layout, components
   ========================================================== */

/* ---------- Theme tokens ---------- */
/* Light theme is the base. Dark theme is applied by
   [data-theme="dark"] (set by the head script) or, when JS is off,
   by the device preference. */
:root {
  --bg: #faf6ee;
  --bg-alt: #f3ecdf;
  --bg-deep: #efe6d4;
  --surface: #ffffff;
  --surface-2: #fbf8f2;
  --surface-3: #f4eee2;
  --text: #1a1712;
  --text-2: #4a4439;
  --muted: #6b6356;
  --line: rgba(60, 44, 14, 0.12);
  --line-strong: rgba(60, 44, 14, 0.2);
  --line-gold: rgba(168, 123, 47, 0.38);

  --gold: #c9a14a;
  --gold-light: #ecd08a;
  --gold-deep: #9b7128;
  --gold-ink: #85601c;          /* gold used as text on light backgrounds */
  --gold-grad: linear-gradient(135deg, #f3dc98 0%, #d4aa55 45%, #a87b2f 100%);
  --gold-soft: rgba(201, 161, 74, 0.12);
  --on-gold: #17130a;

  --ok: #1f7a4d;
  --ok-bg: rgba(31, 122, 77, 0.1);
  --warn: #9a5b00;
  --warn-bg: rgba(214, 140, 20, 0.14);
  --bad: #b3261e;
  --bad-bg: rgba(179, 38, 30, 0.09);

  --shadow-sm: 0 1px 2px rgba(40, 30, 10, 0.06), 0 2px 8px rgba(40, 30, 10, 0.05);
  --shadow: 0 2px 6px rgba(40, 30, 10, 0.05), 0 18px 40px -18px rgba(60, 40, 10, 0.22);
  --shadow-lg: 0 30px 80px -30px rgba(60, 40, 10, 0.35);
  --glow: rgba(212, 170, 85, 0.28);
  --header-bg: rgba(250, 246, 238, 0.82);

  --radius: 18px;
  --radius-sm: 12px;
  --header-h: 72px;
  --head: "Manrope", system-ui, -apple-system, "Segoe UI", Roboto, sans-serif;
  --body: "Inter", system-ui, -apple-system, "Segoe UI", Roboto, sans-serif;
  --ease: cubic-bezier(0.22, 1, 0.36, 1);
  color-scheme: light;
}

:root[data-theme="dark"] {
  --bg: #0a0a0b;
  --bg-alt: #101012;
  --bg-deep: #070708;
  --surface: #151517;
  --surface-2: #1b1b1e;
  --surface-3: #222226;
  --text: #f5f1e8;
  --text-2: #cfc9bd;
  --muted: #a39d91;
  --line: rgba(255, 255, 255, 0.08);
  --line-strong: rgba(255, 255, 255, 0.14);
  --line-gold: rgba(212, 170, 85, 0.32);
  --gold-ink: #e2bd6a;
  --gold-soft: rgba(212, 170, 85, 0.1);
  --ok: #5fd39a;
  --ok-bg: rgba(95, 211, 154, 0.12);
  --warn: #f2b84b;
  --warn-bg: rgba(242, 184, 75, 0.13);
  --bad: #ff8a80;
  --bad-bg: rgba(255, 138, 128, 0.12);
  --shadow-sm: 0 1px 2px rgba(0, 0, 0, 0.4);
  --shadow: 0 1px 0 rgba(255, 255, 255, 0.03) inset, 0 20px 40px -20px rgba(0, 0, 0, 0.8);
  --shadow-lg: 0 40px 90px -30px rgba(0, 0, 0, 0.9);
  --glow: rgba(212, 170, 85, 0.22);
  --header-bg: rgba(10, 10, 11, 0.78);
  color-scheme: dark;
}

/* Light mode is always the default; dark only when the visitor chooses it. */

/* ---------- Base ---------- */
*, *::before, *::after { box-sizing: border-box; }
html {
  scroll-behavior: smooth;
  scroll-padding-top: calc(var(--header-h) + 12px);
  -webkit-text-size-adjust: 100%;
  background: var(--bg);
}
body {
  margin: 0;
  background: var(--bg);
  color: var(--text);
  font: 16px/1.65 var(--body);
  -webkit-font-smoothing: antialiased;
  overflow-x: hidden;
  overflow-x: clip;
  transition: background-color 0.35s ease, color 0.35s ease;
}
html.menu-open, html.menu-open body { overflow: hidden; }
h1, h2, h3, h4, p, figure, blockquote { margin: 0; }
ul, ol { margin: 0; padding: 0; list-style: none; }
a { color: inherit; text-decoration: none; }
img, svg { display: block; max-width: 100%; }
img { height: auto; }
button, input, select, textarea { font: inherit; color: inherit; }
button { cursor: pointer; }
:focus-visible { outline: 2px solid var(--gold); outline-offset: 3px; border-radius: 6px; }
::selection { background: var(--gold); color: var(--on-gold); }

[hidden] { display: none !important; }
.sprite { position: absolute; width: 0; height: 0; overflow: hidden; }
.ico { width: 1.15em; height: 1.15em; flex-shrink: 0; }
.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: 12px; top: -60px; z-index: 200;
  padding: 10px 16px; border-radius: 10px;
  background: var(--gold-grad); color: var(--on-gold); font-weight: 700;
}
.skip-link:focus { top: 12px; }

.container { width: 100%; max-width: 1200px; margin: 0 auto; padding: 0 20px; }
@media (min-width: 768px) { .container { padding: 0 32px; } }

h1, h2, h3, h4 { font-family: var(--head); color: var(--text); }
h2 { font-size: clamp(28px, 4.2vw, 44px); line-height: 1.12; font-weight: 800; letter-spacing: -0.02em; }
h3 { font-size: 19px; line-height: 1.3; font-weight: 700; letter-spacing: -0.01em; }
.kicker {
  display: inline-flex; align-items: center; gap: 10px;
  margin-bottom: 14px;
  color: var(--gold-ink);
  font: 700 12.5px/1 var(--head);
  letter-spacing: 0.18em;
  text-transform: uppercase;
}
.kicker::before { content: ""; width: 22px; height: 1px; background: var(--gold-grad); }
.lead { margin-top: 18px; color: var(--text-2); font-size: clamp(16px, 1.6vw, 18.5px); line-height: 1.7; }
.muted { color: var(--muted); }
.small { font-size: 14px; }
.gold-text {
  background: var(--gold-grad);
  -webkit-background-clip: text; background-clip: text;
  color: transparent;
}
:root:not([data-theme="dark"]) .gold-text { background: linear-gradient(135deg, #b58835 0%, #8a6420 60%, #6f4f15 100%); -webkit-background-clip: text; background-clip: text; }

/* ---------- Buttons ---------- */
.btn {
  position: relative;
  display: inline-flex; align-items: center; justify-content: center; gap: 9px;
  min-height: 44px;
  padding: 11px 20px;
  border: 1px solid transparent;
  border-radius: 999px;
  font: 700 15px/1.2 var(--head);
  white-space: nowrap;
  cursor: pointer;
  transition: transform 0.25s var(--ease), box-shadow 0.25s, border-color 0.25s, color 0.25s, background-color 0.25s;
}
.btn:hover { transform: translateY(-2px); }
.btn:active { transform: translateY(0); }
.btn-gold {
  background: var(--gold-grad);
  color: var(--on-gold);
  box-shadow: 0 10px 26px -12px rgba(201, 161, 74, 0.75), inset 0 1px 0 rgba(255, 255, 255, 0.35);
}
.btn-gold:hover { box-shadow: 0 16px 34px -12px rgba(201, 161, 74, 0.9), inset 0 1px 0 rgba(255, 255, 255, 0.35); }
.btn-line { border-color: var(--line-gold); color: var(--text); background: var(--surface); }
.btn-line:hover { border-color: var(--gold); color: var(--gold-ink); }
.btn-ghost { color: var(--text); background: transparent; border-color: var(--line-strong); }
.btn-ghost:hover { border-color: var(--gold); color: var(--gold-ink); }
.btn-wa { background: #1f9d55; color: #fff; box-shadow: 0 10px 24px -12px rgba(31, 157, 85, 0.8); }
.btn-wa:hover { background: #1a8a4a; }
.btn-sm { min-height: 38px; padding: 8px 15px; font-size: 14px; }
.btn-lg { min-height: 52px; padding: 14px 26px; font-size: 16px; }
.btn-block { width: 100%; white-space: normal; text-align: center; }
.form-actions > * { min-width: 0; }
.btn-row { display: flex; flex-wrap: wrap; gap: 12px; }
.text-link {
  display: inline-flex; align-items: center; gap: 6px;
  color: var(--gold-ink); font: 700 14.5px/1.3 var(--head);
  min-height: 32px;
}
.text-link .ico { transition: transform 0.25s var(--ease); }
.text-link:hover .ico { transform: translateX(3px); }

/* ---------- Header ---------- */
.header {
  position: fixed; inset: 0 0 auto 0; z-index: 100;
  height: var(--header-h);
  background: transparent;
  border-bottom: 1px solid transparent;
  transition: background-color 0.3s, border-color 0.3s, backdrop-filter 0.3s;
}
.header.scrolled, html.menu-open .header {
  background: var(--header-bg);
  border-bottom-color: var(--line);
  -webkit-backdrop-filter: saturate(160%) blur(14px);
  backdrop-filter: saturate(160%) blur(14px);
}
/* no backdrop-filter while the menu is open: it would trap the fixed menu panel inside the header */
html.menu-open .header { background: var(--bg); -webkit-backdrop-filter: none; backdrop-filter: none; }
.header-inner { height: 100%; display: flex; align-items: center; gap: 18px; }
.brand { display: inline-flex; align-items: center; gap: 10px; flex-shrink: 0; min-height: 44px; }
.brand-mark { width: auto; height: 38px; }
.brand-word { width: auto; height: 17px; }
.brand-word-text { font: 800 20px/1 var(--head); letter-spacing: 0.08em; }

.nav { display: flex; align-items: center; gap: 4px; margin-left: auto; }
.nav > a {
  position: relative;
  padding: 8px 12px;
  color: var(--text-2);
  font: 600 14.5px/1 var(--head);
  border-radius: 999px;
  transition: color 0.2s, background-color 0.2s;
}
.nav > a:hover, .nav > a.active { color: var(--text); background: var(--gold-soft); }
.nav-cta { display: none; }
.header-actions { display: flex; align-items: center; gap: 8px; }

.theme-toggle {
  display: none;
  width: 42px; height: 42px;
  align-items: center; justify-content: center;
  border: 1px solid var(--line-strong);
  border-radius: 50%;
  background: var(--surface);
  color: var(--gold-ink);
  transition: border-color 0.2s, transform 0.3s var(--ease);
}
.js .theme-toggle { display: inline-flex; }
.theme-toggle:hover { border-color: var(--gold); transform: rotate(-12deg); }
.theme-toggle .ico { width: 20px; height: 20px; }
.theme-toggle .i-sun { display: none; }
:root[data-theme="dark"] .theme-toggle .i-sun { display: block; }
:root[data-theme="dark"] .theme-toggle .i-moon { display: none; }

.burger {
  display: none;
  width: 44px; height: 44px;
  border: 1px solid var(--line-strong);
  border-radius: 50%;
  background: var(--surface);
  position: relative;
}
.burger span {
  position: absolute; left: 13px; right: 13px; height: 2px; border-radius: 2px;
  background: var(--text);
  transition: transform 0.3s var(--ease), opacity 0.2s;
}
.burger span:nth-child(1) { top: 15px; }
.burger span:nth-child(2) { top: 21px; }
.burger span:nth-child(3) { top: 27px; }
.burger[aria-expanded="true"] span:nth-child(1) { transform: translateY(6px) rotate(45deg); }
.burger[aria-expanded="true"] span:nth-child(2) { opacity: 0; }
.burger[aria-expanded="true"] span:nth-child(3) { transform: translateY(-6px) rotate(-45deg); }

@media (max-width: 1180px) {
  .header-actions .btn-meet { display: none; }
}
@media (max-width: 1020px) {
  .burger { display: inline-block; }
  .nav {
    position: fixed; left: 0; right: 0; top: var(--header-h); bottom: 0;
    flex-direction: column; align-items: stretch; gap: 2px;
    margin: 0; padding: 18px 20px calc(28px + env(safe-area-inset-bottom));
    background: var(--bg);
    overflow-y: auto; -webkit-overflow-scrolling: touch;
    opacity: 0; visibility: hidden; transform: translateY(-8px);
    transition: opacity 0.25s, transform 0.3s var(--ease), visibility 0s linear 0.3s;
  }
  .nav.open { opacity: 1; visibility: visible; transform: none; transition: opacity 0.25s, transform 0.3s var(--ease); }
  .nav > a { padding: 16px 14px; font-size: 18px; border-radius: 12px; border-bottom: 1px solid var(--line); }
  .nav-cta { display: grid; gap: 10px; margin-top: 18px; }
  .nav-cta .btn { padding: 14px; font-size: 16px; border-bottom: 0; }
  .header-actions { margin-left: auto; }
  /* without JS the nav is simply hidden; footer links remain */
}
@media (max-width: 560px) {
  .header-actions .btn-demo { display: none; }
  .brand-word { height: 15px; }
  .brand-mark { height: 34px; }
}

/* ---------- Sections ---------- */
.section { position: relative; padding: clamp(72px, 10vw, 120px) 0; }
.section-alt { background: var(--bg-alt); }
.section-head { max-width: 720px; margin-bottom: clamp(36px, 5vw, 56px); }
.section-head.center { margin-left: auto; margin-right: auto; text-align: center; }
.section-head.center .kicker::after { content: ""; width: 22px; height: 1px; background: var(--gold-grad); }
.section-head .lead { margin-top: 14px; }

/* ---------- Hero ---------- */
.hero {
  position: relative;
  padding: calc(var(--header-h) + clamp(40px, 7vw, 84px)) 0 clamp(64px, 9vw, 110px);
  overflow: hidden;
  isolation: isolate;
}
.hero-bg { position: absolute; inset: 0; z-index: -1; pointer-events: none; }
.hero-bg .glow {
  position: absolute; border-radius: 50%; filter: blur(60px);
  background: radial-gradient(circle, var(--glow), transparent 70%);
}
.hero-bg .g1 { width: 640px; height: 640px; right: -120px; top: -80px; }
.hero-bg .g2 { width: 520px; height: 520px; left: -220px; bottom: -200px; opacity: 0.7; }
.hero-bg .grid-lines {
  position: absolute; inset: 0;
  background-image:
    linear-gradient(var(--line) 1px, transparent 1px),
    linear-gradient(90deg, var(--line) 1px, transparent 1px);
  background-size: 64px 64px;
  -webkit-mask-image: radial-gradient(ellipse 70% 60% at 60% 30%, #000 20%, transparent 75%);
  mask-image: radial-gradient(ellipse 70% 60% at 60% 30%, #000 20%, transparent 75%);
  opacity: 0.7;
}
.hero-grid { display: grid; gap: clamp(44px, 6vw, 64px); align-items: center; }
@media (min-width: 1000px) { .hero-grid { grid-template-columns: 1fr 1.08fr; } }
.hero-badge {
  display: inline-flex; align-items: center; gap: 10px;
  padding: 7px 14px 7px 8px;
  border: 1px solid var(--line-gold);
  border-radius: 999px;
  background: var(--surface);
  color: var(--text-2);
  font: 600 13px/1.2 var(--head);
  box-shadow: var(--shadow-sm);
}
.hero-badge .dot {
  display: inline-grid; place-items: center;
  width: 22px; height: 22px; border-radius: 50%;
  background: var(--gold-grad);
}
.hero-badge .dot img { height: 14px; width: auto; filter: brightness(0.25); }
.hero h1 {
  margin-top: 22px;
  font-size: clamp(40px, 6.6vw, 74px);
  line-height: 1.02;
  font-weight: 800;
  letter-spacing: -0.035em;
}
.hero h1 .gold-text { display: inline-block; padding-bottom: 0.06em; }
.hero .lead { max-width: 540px; margin-top: 22px; }
.hero .btn-row { margin-top: 32px; }
.hero-points { display: flex; flex-wrap: wrap; gap: 10px 22px; margin-top: 28px; color: var(--muted); font-size: 14px; }
.hero-points li { display: inline-flex; align-items: center; gap: 8px; }
.hero-points .ico { color: var(--gold-ink); width: 18px; height: 18px; }

/* Dashboard mockup */
.mock-stage { position: relative; perspective: 1400px; padding: 20px 0 30px; }
.mock {
  position: relative;
  border: 1px solid var(--line-strong);
  border-radius: 20px;
  background: var(--surface);
  box-shadow: var(--shadow-lg);
  overflow: hidden;
  transform: rotateY(-8deg) rotateX(5deg);
  transform-style: preserve-3d;
  transition: transform 0.6s var(--ease);
  font-size: 12px;
}
.mock-top {
  display: flex; align-items: center; gap: 8px;
  padding: 10px 14px;
  border-bottom: 1px solid var(--line);
  background: var(--surface-2);
}
.mock-top i { width: 9px; height: 9px; border-radius: 50%; background: var(--line-strong); }
.mock-top .url {
  flex: 1; margin-left: 10px; padding: 4px 10px; border-radius: 8px;
  background: var(--surface-3); color: var(--muted); font-size: 11px;
  white-space: nowrap; overflow: hidden; text-overflow: ellipsis;
}
.mock-tag {
  padding: 3px 8px; border-radius: 999px;
  background: var(--gold-soft); color: var(--gold-ink);
  font: 700 10px/1.2 var(--head); letter-spacing: 0.06em; text-transform: uppercase;
}
.mock-body { display: grid; grid-template-columns: 132px 1fr; min-height: 340px; }
.mock-side { padding: 14px 10px; border-right: 1px solid var(--line); background: var(--surface-2); }
.mock-side .ms-brand { display: flex; align-items: center; gap: 7px; padding: 2px 6px 14px; font: 800 12px/1 var(--head); letter-spacing: 0.06em; }
.mock-side .ms-brand img { height: 20px; width: auto; }
.mock-side li {
  display: flex; align-items: center; gap: 8px;
  padding: 7px 8px; border-radius: 8px;
  color: var(--muted); font-weight: 500;
}
.mock-side li .ico { width: 14px; height: 14px; }
.mock-side li.on { background: var(--gold-soft); color: var(--text); font-weight: 600; }
.mock-side li.on .ico { color: var(--gold-ink); }
.mock-main { padding: 16px; display: grid; gap: 12px; align-content: start; }
.mock-head { display: flex; align-items: center; justify-content: space-between; }
.mock-head b { font: 700 14px/1.2 var(--head); }
.mock-head span { color: var(--muted); font-size: 11px; }
.kpis { display: grid; grid-template-columns: repeat(3, 1fr); gap: 10px; }
.kpi { padding: 10px 12px; border: 1px solid var(--line); border-radius: 12px; background: var(--surface-2); }
.kpi small { display: block; color: var(--muted); font-size: 10.5px; }
.kpi b { display: block; margin-top: 3px; font: 800 15px/1.2 var(--head); }
.kpi em { font-style: normal; font-size: 10.5px; color: var(--ok); font-weight: 600; }
.mock-chart { padding: 12px; border: 1px solid var(--line); border-radius: 12px; background: var(--surface-2); }
.mock-chart .bars { display: flex; align-items: flex-end; gap: 8px; height: 92px; margin-top: 10px; }
.mock-chart .bars span {
  flex: 1; border-radius: 6px 6px 3px 3px;
  background: linear-gradient(180deg, var(--gold-light), var(--gold-deep));
  opacity: 0.9;
  transform-origin: bottom;
  animation: grow 1.2s var(--ease) both;
}
.mock-chart .bars span:nth-child(odd) { opacity: 0.55; }
.mock-chart .days { display: flex; gap: 8px; margin-top: 6px; color: var(--muted); font-size: 10px; }
.mock-chart .days span { flex: 1; text-align: center; }
@keyframes grow { from { transform: scaleY(0.1); } }
.mock-rows { border: 1px solid var(--line); border-radius: 12px; overflow: hidden; }
.mock-rows div { display: grid; grid-template-columns: 1fr auto auto; gap: 12px; padding: 8px 12px; align-items: center; }
.mock-rows div + div { border-top: 1px solid var(--line); }
.mock-rows span { color: var(--muted); }
.pill {
  display: inline-flex; align-items: center; gap: 5px;
  padding: 3px 9px; border-radius: 999px;
  font: 700 10.5px/1.3 var(--head);
  white-space: nowrap;
}
.pill.ok { background: var(--ok-bg); color: var(--ok); }
.pill.warn { background: var(--warn-bg); color: var(--warn); }
.pill.bad { background: var(--bad-bg); color: var(--bad); }
.pill.gold { background: var(--gold-soft); color: var(--gold-ink); }

.float-card {
  position: absolute; z-index: 2;
  display: flex; align-items: center; gap: 10px;
  padding: 11px 14px;
  border: 1px solid var(--line-gold);
  border-radius: 14px;
  background: var(--surface);
  box-shadow: var(--shadow);
  font-size: 12.5px;
  animation: floaty 7s ease-in-out infinite;
}
.float-card b { display: block; font: 700 13px/1.25 var(--head); }
.float-card small { color: var(--muted); font-size: 11.5px; }
.float-card .fc-ico {
  display: grid; place-items: center; width: 34px; height: 34px; border-radius: 10px;
  background: var(--gold-grad); color: var(--on-gold);
}
.float-card .fc-ico .ico { width: 18px; height: 18px; }
.fc-1 { left: -18px; bottom: 6px; }
.fc-2 { right: -10px; top: -4px; animation-delay: -3.5s; }
@keyframes floaty { 0%, 100% { transform: translateY(0); } 50% { transform: translateY(-10px); } }
.mock-note { margin-top: 10px; text-align: center; color: var(--muted); font-size: 12.5px; }
@media (max-width: 640px) {
  .mock { transform: none; }
  .mock-body { grid-template-columns: 1fr; }
  .mock-side { display: none; }
  .kpis { grid-template-columns: repeat(3, 1fr); gap: 6px; }
  .kpi { padding: 8px; }
  .kpi b { font-size: 13px; }
  .fc-1 { left: 6px; bottom: -6px; }
  .fc-2 { display: none; }
}

/* ---------- Capability strip ---------- */
.strip { border-top: 1px solid var(--line); border-bottom: 1px solid var(--line); background: var(--surface-2); }
.strip ul {
  display: flex; flex-wrap: wrap; justify-content: center; gap: 12px 34px;
  padding: 22px 0;
  color: var(--text-2); font: 600 14.5px/1.2 var(--head);
}
.strip li { display: inline-flex; align-items: center; gap: 9px; }
.strip .ico { color: var(--gold-ink); }

/* ---------- Cards ---------- */
.grid { display: grid; gap: 18px; }
@media (min-width: 640px) { .grid-2, .grid-3, .grid-4 { grid-template-columns: repeat(2, 1fr); } }
@media (min-width: 980px) { .grid-3 { grid-template-columns: repeat(3, 1fr); } .grid-4 { grid-template-columns: repeat(4, 1fr); } }
.card {
  position: relative;
  display: flex; flex-direction: column;
  padding: 26px;
  border: 1px solid var(--line);
  border-radius: var(--radius);
  background: var(--surface);
  box-shadow: var(--shadow-sm);
  transition: transform 0.35s var(--ease), border-color 0.3s, box-shadow 0.35s;
}
.card::before {
  content: ""; position: absolute; inset: 0; border-radius: inherit; pointer-events: none;
  background: radial-gradient(400px circle at var(--mx, 50%) var(--my, 0%), var(--gold-soft), transparent 45%);
  opacity: 0; transition: opacity 0.3s;
}
.card:hover { transform: translateY(-4px); border-color: var(--line-gold); box-shadow: var(--shadow); }
.card:hover::before { opacity: 1; }
.card > * { position: relative; }
.card-ico {
  display: grid; place-items: center;
  width: 50px; height: 50px; margin-bottom: 18px;
  border-radius: 14px;
  background: var(--gold-soft);
  border: 1px solid var(--line-gold);
  color: var(--gold-ink);
}
.card-ico .ico { width: 24px; height: 24px; }
.card h3 { margin-bottom: 8px; }
.card p { color: var(--text-2); font-size: 15px; }
.card .ticks { display: grid; gap: 7px; margin: 16px 0 4px; font-size: 14px; color: var(--text-2); }
.card .ticks li { display: flex; gap: 9px; align-items: flex-start; }
.card .ticks .ico { margin-top: 3px; width: 15px; height: 15px; color: var(--gold-ink); }
.card-actions { display: flex; flex-wrap: wrap; align-items: center; gap: 6px 18px; margin-top: auto; padding-top: 18px; }
.note {
  display: flex; gap: 10px; align-items: flex-start;
  margin-top: 26px; padding: 14px 16px;
  border: 1px dashed var(--line-gold);
  border-radius: var(--radius-sm);
  color: var(--text-2); font-size: 14px;
  background: var(--gold-soft);
}
.note .ico { color: var(--gold-ink); margin-top: 2px; }

/* ---------- Solutions ---------- */
.solution {
  display: grid; gap: 14px; align-content: start;
}
.solution .tags { display: flex; flex-wrap: wrap; gap: 6px; }
.tag {
  padding: 4px 10px; border-radius: 999px;
  border: 1px solid var(--line);
  background: var(--surface-2);
  color: var(--text-2); font-size: 12.5px; font-weight: 600;
}

/* ---------- Hardware ---------- */
.hw-card { padding: 0; overflow: hidden; }
.hw-visual {
  position: relative;
  display: grid; place-items: center;
  height: 168px;
  background:
    radial-gradient(120% 90% at 50% 0%, var(--gold-soft), transparent 60%),
    var(--surface-2);
  border-bottom: 1px solid var(--line);
  color: var(--text-2);
}
.hw-visual svg { width: 150px; height: 120px; transition: transform 0.5s var(--ease); }
.hw-card:hover .hw-visual svg { transform: translateY(-4px) scale(1.04); }
.hw-visual .hw-g { fill: var(--gold); }
.hw-visual .hw-s { fill: var(--surface); stroke: currentColor; }
.hw-visual .hw-d { fill: var(--surface-3); stroke: currentColor; }
.hw-body { display: flex; flex-direction: column; flex: 1; padding: 22px; }
.hw-body h3 { font-size: 17.5px; }
.hw-body p { font-size: 14.5px; }
.hw-select {
  display: flex; align-items: center; gap: 10px;
  margin-top: 16px; padding: 10px 12px;
  border: 1px solid var(--line-strong);
  border-radius: 12px;
  font: 600 14px/1.2 var(--head);
  cursor: pointer;
  transition: border-color 0.2s, background-color 0.2s;
}
.hw-select input { width: 18px; height: 18px; accent-color: var(--gold-deep); }
.hw-select:has(input:checked) { border-color: var(--gold); background: var(--gold-soft); }
.hw-card.selected { border-color: var(--gold); }
.quote-bar {
  position: fixed; left: 50%; bottom: 18px; z-index: 90;
  display: flex; align-items: center; gap: 14px;
  width: min(640px, calc(100% - 24px));
  padding: 10px 10px 10px 18px;
  border: 1px solid var(--line-gold);
  border-radius: 999px;
  background: var(--surface);
  box-shadow: var(--shadow-lg);
  transform: translate(-50%, 140%);
  transition: transform 0.4s var(--ease);
}
.quote-bar:not(.show) { visibility: hidden; transition: transform 0.4s var(--ease), visibility 0s linear 0.4s; }
.quote-bar.show { transform: translate(-50%, 0); visibility: visible; }
.quote-bar p { flex: 1; font: 600 14px/1.3 var(--head); min-width: 0; }
.quote-bar p span { color: var(--muted); font-weight: 500; display: block; font-size: 12.5px; white-space: nowrap; overflow: hidden; text-overflow: ellipsis; }
.quote-bar .clear { border: 0; background: none; color: var(--muted); font-size: 13px; text-decoration: underline; padding: 8px; }
@media (max-width: 520px) { .quote-bar { border-radius: 18px; } .quote-bar .clear { display: none; } }

/* ---------- Product finder ---------- */
.finder {
  display: grid; gap: 0;
  border: 1px solid var(--line-gold);
  border-radius: 24px;
  background: var(--surface);
  box-shadow: var(--shadow);
  overflow: hidden;
}
@media (min-width: 900px) { .finder { grid-template-columns: 0.8fr 1.2fr; } }
.finder-intro {
  padding: clamp(26px, 4vw, 44px);
  background: linear-gradient(160deg, var(--gold-soft), transparent 70%), var(--surface-2);
  border-bottom: 1px solid var(--line);
}
@media (min-width: 900px) { .finder-intro { border-bottom: 0; border-right: 1px solid var(--line); } }
.finder-intro h2 { font-size: clamp(26px, 3.4vw, 36px); }
.finder-progress { display: flex; gap: 6px; margin-top: 26px; }
.finder-progress span { flex: 1; height: 4px; border-radius: 4px; background: var(--line-strong); transition: background 0.3s; }
.finder-progress span.on { background: var(--gold); }
.finder-main { padding: clamp(24px, 4vw, 44px); min-height: 360px; }
.finder-step { border: 0; margin: 0; padding: 0; }
.finder-step[hidden] { display: none; }
.finder-step legend { font: 700 20px/1.3 var(--head); margin-bottom: 6px; padding: 0; }
.finder-step .hint { color: var(--muted); font-size: 14px; margin-bottom: 18px; }
.choices { display: grid; grid-template-columns: repeat(auto-fill, minmax(150px, 1fr)); gap: 10px; }
.choice { position: relative; }
.choice input { position: absolute; opacity: 0; inset: 0; width: 100%; height: 100%; margin: 0; cursor: pointer; }
.choice span {
  display: flex; align-items: center; gap: 10px;
  min-height: 54px; padding: 12px 14px;
  border: 1px solid var(--line-strong);
  border-radius: 14px;
  background: var(--surface-2);
  font: 600 14.5px/1.25 var(--head);
  transition: border-color 0.2s, background-color 0.2s, transform 0.2s;
}
.choice span .ico { color: var(--gold-ink); }
.choice input:hover + span { border-color: var(--line-gold); }
.choice input:checked + span { border-color: var(--gold); background: var(--gold-soft); box-shadow: inset 0 0 0 1px var(--gold); }
.choice input:focus-visible + span { outline: 2px solid var(--gold); outline-offset: 2px; }
.finder-nav { display: flex; justify-content: space-between; gap: 12px; margin-top: 26px; }
.finder-error { margin-top: 12px; color: var(--bad); font-size: 14px; font-weight: 600; }
.finder-result h3 { font-size: 22px; }
.finder-result .rec-group { margin-top: 18px; }
.finder-result .rec-group h4 { font-size: 13px; letter-spacing: 0.12em; text-transform: uppercase; color: var(--muted); margin-bottom: 10px; }
.rec-list { display: grid; gap: 8px; }
.rec-list li {
  display: flex; gap: 10px; align-items: flex-start;
  padding: 10px 12px; border-radius: 12px;
  background: var(--surface-2); border: 1px solid var(--line);
  font-size: 14.5px;
}
.rec-list li .ico { color: var(--gold-ink); margin-top: 3px; }
.rec-list li b { font-family: var(--head); }

/* ---------- Demo teaser ---------- */
.demo-teaser { display: grid; gap: clamp(36px, 5vw, 64px); align-items: center; }
@media (min-width: 980px) { .demo-teaser { grid-template-columns: 1fr 1.1fr; } }
.safe-list { display: grid; gap: 14px; margin-top: 26px; }
.safe-list li { display: flex; gap: 14px; align-items: flex-start; }
.safe-list .si {
  display: grid; place-items: center; flex-shrink: 0;
  width: 38px; height: 38px; border-radius: 11px;
  background: var(--gold-soft); color: var(--gold-ink); border: 1px solid var(--line-gold);
}
.safe-list b { display: block; font-family: var(--head); }
.safe-list span { color: var(--text-2); font-size: 14.5px; }
.pos-mock {
  border: 1px solid var(--line-strong);
  border-radius: 20px;
  background: var(--surface);
  box-shadow: var(--shadow-lg);
  overflow: hidden;
  font-size: 13px;
}
.pos-mock .pm-tabs { display: flex; gap: 4px; padding: 10px; border-bottom: 1px solid var(--line); background: var(--surface-2); overflow: hidden; }
.pos-mock .pm-tabs span { padding: 6px 11px; border-radius: 8px; color: var(--muted); font-weight: 600; white-space: nowrap; }
.pos-mock .pm-tabs span.on { background: var(--gold-soft); color: var(--text); }
.pm-grid { display: grid; grid-template-columns: 1.3fr 1fr; }
.pm-items { display: grid; grid-template-columns: repeat(2, 1fr); gap: 8px; padding: 12px; align-content: start; }
.pm-items div { padding: 10px; border: 1px solid var(--line); border-radius: 12px; background: var(--surface-2); }
.pm-items b { display: block; font-size: 12.5px; }
.pm-items span { color: var(--muted); font-size: 11.5px; }
.pm-cart { padding: 12px; border-left: 1px solid var(--line); display: grid; gap: 8px; align-content: start; }
.pm-cart .row { display: flex; justify-content: space-between; gap: 8px; font-size: 12.5px; }
.pm-cart .row span { color: var(--muted); }
.pm-cart .total { padding-top: 8px; border-top: 1px dashed var(--line-strong); font: 800 15px/1.2 var(--head); }
.pm-cart .pay { margin-top: 6px; padding: 10px; border-radius: 10px; background: var(--gold-grad); color: var(--on-gold); text-align: center; font: 700 13px/1 var(--head); }
@media (max-width: 520px) { .pm-grid { grid-template-columns: 1fr; } .pm-cart { border-left: 0; border-top: 1px solid var(--line); } }

/* ---------- Steps ---------- */
.steps { display: grid; gap: 16px; counter-reset: s; }
@media (min-width: 760px) { .steps { grid-template-columns: repeat(5, 1fr); } }
.steps li {
  position: relative;
  padding: 24px 20px;
  border: 1px solid var(--line);
  border-radius: var(--radius);
  background: var(--surface);
}
.steps li .num {
  display: inline-grid; place-items: center;
  width: 40px; height: 40px; margin-bottom: 16px;
  border-radius: 50%;
  background: var(--gold-grad); color: var(--on-gold);
  font: 800 15px/1 var(--head);
}
.steps li h3 { font-size: 16.5px; margin-bottom: 6px; }
.steps li p { color: var(--text-2); font-size: 14px; }
@media (min-width: 760px) {
  .steps li:not(:last-child)::after {
    content: ""; position: absolute; top: 44px; right: -17px; width: 18px; height: 1px;
    background: var(--gold-grad);
  }
}

/* ---------- Pricing placeholder ---------- */
.pricing-box {
  display: grid; gap: 28px; align-items: center;
  padding: clamp(28px, 5vw, 52px);
  border: 1px solid var(--line-gold);
  border-radius: 24px;
  background:
    radial-gradient(80% 120% at 100% 0%, var(--gold-soft), transparent 60%),
    var(--surface);
  box-shadow: var(--shadow);
}
@media (min-width: 900px) { .pricing-box { grid-template-columns: 1.3fr 1fr; } }
.pricing-box .btn-row { justify-content: flex-start; }
.pricing-list { display: grid; gap: 10px; }
.pricing-list li { display: flex; gap: 10px; color: var(--text-2); font-size: 15px; }
.pricing-list .ico { color: var(--gold-ink); margin-top: 4px; }

/* ---------- Forms ---------- */
.form-card {
  padding: clamp(22px, 4vw, 36px);
  border: 1px solid var(--line);
  border-radius: 22px;
  background: var(--surface);
  box-shadow: var(--shadow);
}
.form-card h3 { font-size: 21px; }
.form-card .form-sub { margin-top: 6px; color: var(--muted); font-size: 14px; }
.fields { display: grid; gap: 16px; margin-top: 22px; }
@media (min-width: 620px) { .fields-2 { grid-template-columns: 1fr 1fr; } }
.field { display: grid; gap: 7px; min-width: 0; }
.field > label, .field > .label { font: 600 14px/1.3 var(--head); color: var(--text); }
.field .req { color: var(--gold-ink); }
.field input, .field select, .field textarea {
  width: 100%;
  min-width: 0;
  max-width: 100%;
  min-height: 48px;
  padding: 12px 14px;
  border: 1px solid var(--line-strong);
  border-radius: 12px;
  background: var(--surface-2);
  color: var(--text);
  font-size: 16px; /* prevents iOS zoom */
  transition: border-color 0.2s, box-shadow 0.2s, background-color 0.2s;
  -webkit-appearance: none; appearance: none;
}
.field select {
  padding-right: 40px;
  background-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 24 24' fill='none' stroke='%23a87b2f' stroke-width='2' stroke-linecap='round'%3E%3Cpath d='m6 9 6 6 6-6'/%3E%3C/svg%3E");
  background-repeat: no-repeat; background-position: right 14px center; background-size: 16px;
}
.field textarea { min-height: 110px; resize: vertical; }
.field input:focus, .field select:focus, .field textarea:focus {
  outline: none; border-color: var(--gold); box-shadow: 0 0 0 4px var(--gold-soft); background: var(--surface);
}
.field input[aria-invalid="true"], .field select[aria-invalid="true"], .field textarea[aria-invalid="true"] { border-color: var(--bad); }
.field .err { color: var(--bad); font-size: 13px; font-weight: 600; }
.field .err:empty { display: none; }
.field .help { color: var(--muted); font-size: 13px; }
.seg { display: flex; gap: 8px; flex-wrap: wrap; }
.seg label { position: relative; flex: 1; min-width: 120px; }
.seg input { position: absolute; opacity: 0; inset: 0; margin: 0; width: 100%; height: 100%; cursor: pointer; }
.seg span {
  display: flex; align-items: center; justify-content: center; gap: 8px;
  min-height: 48px; padding: 10px 14px;
  border: 1px solid var(--line-strong); border-radius: 12px;
  background: var(--surface-2);
  font: 600 14.5px/1.2 var(--head);
  transition: border-color 0.2s, background-color 0.2s;
}
.seg input:checked + span { border-color: var(--gold); background: var(--gold-soft); box-shadow: inset 0 0 0 1px var(--gold); }
.seg input:focus-visible + span { outline: 2px solid var(--gold); outline-offset: 2px; }
.seg.invalid span { border-color: var(--bad); }
.form-summary {
  margin-top: 18px; padding: 12px 14px; border-radius: 12px;
  background: var(--bad-bg); color: var(--bad); font-size: 14px; font-weight: 600;
}
.form-status {
  margin-top: 18px; padding: 14px 16px; border-radius: 14px;
  border: 1px solid var(--line-gold); background: var(--gold-soft);
  color: var(--text); font-size: 14.5px;
}
.form-status b { font-family: var(--head); display: block; margin-bottom: 4px; }
.form-status a { color: var(--gold-ink); font-weight: 700; text-decoration: underline; }
.form-actions { margin-top: 22px; display: grid; gap: 10px; }
.form-privacy { color: var(--muted); font-size: 12.5px; text-align: center; }
.form-privacy a { text-decoration: underline; }

/* ---------- Meeting & contact ---------- */
.meeting-grid, .contact-grid { display: grid; gap: clamp(30px, 5vw, 56px); align-items: start; }
.meeting-grid > *, .contact-grid > *, .hero-grid > *, .demo-teaser > *, .finder > *, .grid > * { min-width: 0; }
@media (min-width: 980px) { .meeting-grid { grid-template-columns: 0.85fr 1.15fr; } .contact-grid { grid-template-columns: 0.9fr 1.1fr; } }
.info-list { display: grid; gap: 12px; margin-top: 26px; }
.info-list li { display: flex; gap: 14px; align-items: flex-start; }
.info-list .si {
  display: grid; place-items: center; flex-shrink: 0;
  width: 42px; height: 42px; border-radius: 12px;
  background: var(--surface); border: 1px solid var(--line-gold); color: var(--gold-ink);
}
.info-list small { display: block; color: var(--muted); font-size: 12.5px; text-transform: uppercase; letter-spacing: 0.1em; font-weight: 600; }
.info-list a, .info-list span { font: 700 16px/1.4 var(--head); }
.info-list a:hover { color: var(--gold-ink); }
.wa-topics { display: flex; flex-wrap: wrap; gap: 8px; margin-top: 22px; }
.wa-topics a {
  display: inline-flex; align-items: center; gap: 7px;
  min-height: 40px; padding: 8px 14px;
  border: 1px solid var(--line-strong); border-radius: 999px;
  background: var(--surface);
  font: 600 13.5px/1.2 var(--head);
  transition: border-color 0.2s, color 0.2s;
}
.wa-topics a:hover { border-color: #1f9d55; color: #1f9d55; }
.wa-topics .ico { color: #1f9d55; }
.pending-box {
  margin-top: 24px; padding: 16px 18px;
  border-left: 3px solid var(--gold);
  border-radius: 0 12px 12px 0;
  background: var(--surface);
  color: var(--text-2); font-size: 14.5px;
}
.pending-box b { color: var(--text); font-family: var(--head); }

/* ---------- Footer ---------- */
.footer { padding: 64px 0 28px; background: var(--bg-deep); border-top: 1px solid var(--line); }
.footer-grid { display: grid; gap: 36px; }
@media (min-width: 760px) { .footer-grid { grid-template-columns: 1.4fr 1fr 1fr 1.2fr; } }
.footer-brand img { width: 120px; height: auto; }
.footer-brand p { margin-top: 16px; color: var(--muted); font-size: 14.5px; max-width: 320px; }
.footer h4 { font-size: 13px; letter-spacing: 0.14em; text-transform: uppercase; color: var(--gold-ink); margin-bottom: 14px; }
.footer ul { display: grid; gap: 4px; }
.footer ul a, .footer ul span { display: inline-block; padding: 4px 0; color: var(--text-2); font-size: 14.5px; }
.footer ul a:hover { color: var(--gold-ink); }
.footer-bottom {
  display: flex; flex-wrap: wrap; justify-content: space-between; gap: 10px;
  margin-top: 48px; padding-top: 22px; border-top: 1px solid var(--line);
  color: var(--muted); font-size: 13.5px;
}
.footer-bottom a { text-decoration: underline; }

/* ---------- Floating WhatsApp ---------- */
.wa-float {
  position: fixed; right: 18px; bottom: calc(18px + env(safe-area-inset-bottom)); z-index: 80;
  display: grid; place-items: center;
  width: 56px; height: 56px; border-radius: 50%;
  background: #1f9d55; color: #fff;
  box-shadow: 0 14px 30px -10px rgba(31, 157, 85, 0.7);
  transition: transform 0.25s var(--ease), bottom 0.4s var(--ease);
}
.wa-float:hover { transform: scale(1.06); }
.wa-float .ico { width: 28px; height: 28px; }
body.quote-open .wa-float { bottom: calc(92px + env(safe-area-inset-bottom)); }

/* ---------- Legal pages ---------- */
.legal { padding: calc(var(--header-h) + 48px) 0 80px; }
.legal .container { max-width: 820px; }
.legal h1 { font-size: clamp(32px, 5vw, 46px); letter-spacing: -0.02em; }
.legal h2 { font-size: 22px; margin: 36px 0 10px; letter-spacing: -0.01em; }
.legal p, .legal li { color: var(--text-2); }
.legal p + p { margin-top: 12px; }
.legal ul { list-style: disc; padding-left: 22px; display: grid; gap: 6px; margin-top: 8px; }
.legal a { color: var(--gold-ink); text-decoration: underline; }
.draft-banner {
  margin: 20px 0 8px; padding: 14px 16px;
  border: 1px solid var(--line-gold); border-radius: 12px;
  background: var(--warn-bg); color: var(--text); font-size: 14.5px;
}

/* ---------- Reveal animations ---------- */
.js .reveal { opacity: 0; transform: translateY(22px); transition: opacity 0.8s var(--ease), transform 0.8s var(--ease); }
.js .reveal.visible { opacity: 1; transform: none; }
.js .reveal.d1 { transition-delay: 0.08s; }
.js .reveal.d2 { transition-delay: 0.16s; }
.js .reveal.d3 { transition-delay: 0.24s; }

@media (prefers-reduced-motion: reduce) {
  html { scroll-behavior: auto; }
  *, *::before, *::after { animation-duration: 0.01ms !important; animation-iteration-count: 1 !important; transition-duration: 0.01ms !important; }
  .js .reveal { opacity: 1; transform: none; }
  .mock { transform: none !important; }
}

noscript .noscript-note {
  display: block; padding: 12px 20px; text-align: center;
  background: var(--warn-bg); color: var(--text); font-size: 14px;
}

@media print {
  .header, .wa-float, .quote-bar, .hero-bg { display: none !important; }
}

/* ==========================================================
   v5 additions: multi-page layout, light-first premium look,
   3D tech graphics, page heroes, explore tiles, CTA band.
   ========================================================== */

/* Light mode gets a warmer, deeper premium feel */
:root { --bg-glow: rgba(236, 208, 138, 0.38); }
:root[data-theme="dark"] { --bg-glow: rgba(212, 170, 85, 0.08); }

/* Active page in the menu */
.nav > a[aria-current="page"] { color: var(--text); background: var(--gold-soft); box-shadow: inset 0 -2px 0 var(--gold); }
@media (max-width: 1020px) { .nav > a[aria-current="page"] { box-shadow: inset 3px 0 0 var(--gold); } }
.btn-wa-soft { background: var(--surface); border-color: var(--line-strong); color: var(--text); }
.btn-wa-soft .ico { color: var(--wa, #1f9d55); }
.btn-wa-soft:hover { border-color: #1f9d55; color: #1f9d55; }

/* ---------- Hero (home) ---------- */
.hero-bg { background: radial-gradient(110% 70% at 70% -10%, var(--bg-glow), transparent 60%); }
.hero-bg .glow.g1 { animation: drift 18s ease-in-out infinite alternate; }
@keyframes drift { to { transform: translate3d(-40px, 30px, 0) scale(1.06); } }
.globe {
  position: absolute; pointer-events: none;
  width: 700px; height: auto; aspect-ratio: 1;
  right: -110px; top: 40px;
  opacity: 0.6;
  -webkit-mask-image: radial-gradient(circle at 50% 50%, #000 45%, transparent 70%);
  mask-image: radial-gradient(circle at 50% 50%, #000 45%, transparent 70%);
}
:root[data-theme="dark"] .globe { opacity: 0.7; }
@media (max-width: 999px) { .hero .globe { right: 50%; transform: translateX(50%); top: auto; bottom: -120px; width: 620px; opacity: 0.45; } }
.hero h1, .hero .lead { text-shadow: 0 0 22px var(--bg), 0 0 40px var(--bg); }
.hero h1 .gold-text { text-shadow: none; }

/* ---------- 3D objects (CSS 3D, no library) ---------- */
.obj { position: absolute; perspective: 900px; pointer-events: none; z-index: 1; }
.hero .obj-chip { right: max(16px, calc(50% - 680px)); bottom: 26px; display: none; }
@media (min-width: 1200px) { .hero .obj-chip { display: block; } }

.chip3d { position: relative; width: 104px; height: 104px; transform-style: preserve-3d; transform: rotateX(58deg) rotateZ(-36deg); animation: chip-float 9s ease-in-out infinite; }
.chip3d > span { position: absolute; inset: 0; border-radius: 12px; }
.chip3d .l { background: #8a6420; transform: translateZ(var(--z)); }
.chip3d .pins { inset: -13px; border-radius: 6px; border: 9px dashed rgba(201, 161, 74, 0.85); transform: translateZ(5px); }
.chip-top { transform: translateZ(14px); background: var(--gold-grad); box-shadow: inset 0 1px 0 rgba(255, 255, 255, 0.6), inset 0 0 0 1px rgba(255, 255, 255, 0.25), 0 30px 40px -18px rgba(120, 85, 20, 0.6); }
.chip-top .die { position: absolute; inset: 24px; border-radius: 8px; background: linear-gradient(135deg, #1d1a14, #0d0c0a); box-shadow: inset 0 0 0 1px rgba(236, 208, 138, 0.5), 0 0 18px rgba(236, 208, 138, 0.35); }
.chip-top .die::before { content: ""; position: absolute; inset: 12px; border-radius: 4px; background: repeating-linear-gradient(90deg, rgba(236, 208, 138, 0.55) 0 2px, transparent 2px 8px), repeating-linear-gradient(0deg, rgba(236, 208, 138, 0.25) 0 1px, transparent 1px 8px); }
@keyframes chip-float { 50% { transform: rotateX(58deg) rotateZ(-30deg) translateZ(14px); } }

.stack3d { position: relative; width: 112px; height: 82px; transform-style: preserve-3d; transform: rotateX(60deg) rotateZ(38deg); animation: stack-float 10s ease-in-out infinite; }
.slab { position: absolute; inset: 0; transform-style: preserve-3d; transform: translateZ(var(--z)); }
.slab .l, .slab .s-top { position: absolute; inset: 0; border-radius: 10px; }
.slab .l { background: var(--gold-deep); opacity: 0.9; transform: translateZ(var(--d)); }
.slab .s-top {
  transform: translateZ(12px);
  background:
    radial-gradient(circle, #46d38a 0 2.5px, transparent 3px) 14px 14px / 12px 12px no-repeat,
    radial-gradient(circle, var(--gold-light) 0 2.5px, transparent 3px) 26px 14px / 12px 12px no-repeat,
    repeating-linear-gradient(90deg, rgba(23, 19, 10, 0.28) 0 2px, transparent 2px 7px) 50px 12px / 48px 16px no-repeat,
    var(--gold-grad);
  box-shadow: inset 0 1px 0 rgba(255, 255, 255, 0.55), 0 26px 30px -20px rgba(120, 85, 20, 0.55);
}
.slab:nth-child(2) { animation: slab-bob 6s ease-in-out infinite; }
.slab:nth-child(3) { animation: slab-bob 6s ease-in-out -2s infinite; }
@keyframes slab-bob { 50% { transform: translateZ(calc(var(--z) + 8px)); } }
@keyframes stack-float { 50% { transform: rotateX(60deg) rotateZ(44deg) translateZ(10px); } }

/* 3D hardware card (pos-hardware hero) */
.hw3d { width: 260px; height: 190px; transform-style: preserve-3d; transform: rotateX(18deg) rotateY(-24deg); animation: hw-float 8s ease-in-out infinite; }
.hw3d .face { position: absolute; inset: 0; display: grid; place-items: center; border-radius: 22px; border: 1px solid var(--line-gold); background: radial-gradient(120% 100% at 50% 0%, var(--gold-soft), transparent 70%), var(--surface); box-shadow: var(--shadow-lg); color: var(--text-2); }
.hw3d .face svg { width: 210px; height: 150px; }
.hw3d .back { transform: translateZ(-26px) translate(22px, 18px); opacity: 0.6; filter: blur(0.5px); }
.hw3d .front { transform: translateZ(10px); }
@keyframes hw-float { 50% { transform: rotateX(12deg) rotateY(-16deg) translateY(-8px); } }
.hw-g { fill: var(--gold); }
.hw-s { fill: var(--surface); stroke: currentColor; }
.hw-d { fill: var(--surface-3); stroke: currentColor; }

/* 3D dashboard window (products hero) */
.dash3d { width: 340px; transform-style: preserve-3d; transform: rotateX(14deg) rotateY(-22deg) rotateZ(2deg); animation: hw-float 9s ease-in-out infinite; }
.dash3d .win { position: relative; padding: 14px; border-radius: 18px; border: 1px solid var(--line-strong); background: var(--surface); box-shadow: var(--shadow-lg); }
.dash3d .win + .win { position: absolute; width: 150px; right: -40px; bottom: -36px; transform: translateZ(60px); padding: 12px; }
.dash3d .row { display: flex; gap: 8px; }
.dash3d .k { flex: 1; padding: 8px 10px; border-radius: 10px; border: 1px solid var(--line); background: var(--surface-2); font-size: 11px; color: var(--muted); }
.dash3d .k b { display: block; color: var(--text); font: 800 13px/1.2 var(--head); }
.dash3d .bars { display: flex; align-items: flex-end; gap: 7px; height: 96px; margin-top: 12px; }
.dash3d .bars i { flex: 1; height: var(--h); border-radius: 6px 6px 3px 3px; background: linear-gradient(180deg, var(--gold-light), var(--gold-deep)); animation: grow 1.2s var(--ease) both; }
.dash3d .bars i:nth-child(odd) { opacity: 0.55; }
.dash3d .line { height: 6px; border-radius: 3px; background: var(--line-strong); margin-top: 8px; }
.dash3d .pay { margin-top: 10px; height: 22px; border-radius: 8px; background: var(--gold-grad); }

/* Isometric steps (how-it-works hero) */
.steps3d { position: relative; width: 300px; height: 220px; transform-style: preserve-3d; transform: rotateX(58deg) rotateZ(-38deg); animation: stack-float-b 10s ease-in-out infinite; }
.steps3d .st { position: absolute; width: 74px; height: 74px; border-radius: 14px; transform-style: preserve-3d; }
.steps3d .st .l { position: absolute; inset: 0; border-radius: inherit; background: var(--gold-deep); opacity: 0.85; transform: translateZ(var(--d)); }
.steps3d .st .t { position: absolute; inset: 0; border-radius: inherit; display: grid; place-items: center; background: var(--gold-grad); color: var(--on-gold); font: 800 26px/1 var(--head); transform: translateZ(var(--h)); box-shadow: inset 0 1px 0 rgba(255, 255, 255, 0.6); }
.steps3d .st .t span { transform: rotateZ(38deg); }
@keyframes stack-float-b { 50% { transform: rotateX(58deg) rotateZ(-32deg) translateZ(10px); } }

/* ---------- Page hero (inner pages) ---------- */
.page-hero {
  position: relative; overflow: hidden; isolation: isolate;
  padding: calc(var(--header-h) + clamp(36px, 6vw, 72px)) 0 clamp(40px, 6vw, 72px);
  border-bottom: 1px solid var(--line);
  background: radial-gradient(90% 80% at 85% 0%, var(--bg-glow), transparent 60%), var(--bg);
}
.page-hero .grid-lines {
  position: absolute; inset: 0; z-index: -1;
  background-image: linear-gradient(var(--line) 1px, transparent 1px), linear-gradient(90deg, var(--line) 1px, transparent 1px);
  background-size: 56px 56px;
  -webkit-mask-image: radial-gradient(ellipse 60% 70% at 75% 40%, #000 15%, transparent 75%);
  mask-image: radial-gradient(ellipse 60% 70% at 75% 40%, #000 15%, transparent 75%);
  opacity: 0.6;
}
.page-hero-grid { display: grid; gap: 36px; align-items: center; }
@media (min-width: 960px) { .page-hero-grid { grid-template-columns: 1.15fr 0.85fr; } }
.crumbs { display: flex; flex-wrap: wrap; gap: 8px; margin-bottom: 18px; color: var(--muted); font-size: 13.5px; }
.crumbs a:hover { color: var(--gold-ink); }
.crumbs span[aria-current] { color: var(--text-2); font-weight: 600; }
.page-hero h1 { font-size: clamp(34px, 5vw, 58px); line-height: 1.06; font-weight: 800; letter-spacing: -0.035em; }
.page-hero .lead { max-width: 560px; margin-top: 16px; }
.page-hero .btn-row { margin-top: 26px; }
.hero-3d { position: relative; display: grid; place-items: center; min-height: 280px; perspective: 1000px; }
.hero-3d .globe { position: absolute; inset: auto; width: 440px; right: auto; top: 50%; left: 50%; transform: translate(-50%, -50%); opacity: 0.75; }
.hero-3d .ring { position: absolute; width: 300px; height: 300px; border-radius: 50%; border: 1px dashed var(--line-gold); transform: rotateX(70deg); animation: spin 30s linear infinite; }
.hero-3d .ring.r2 { width: 220px; height: 220px; animation-duration: 22s; animation-direction: reverse; border-style: solid; border-color: var(--gold-soft); }
@keyframes spin { to { transform: rotateX(70deg) rotateZ(360deg); } }
.hero-3d .chip3d, .hero-3d .stack3d { transform-origin: center; }
.hero-3d .big { transform: scale(1.45); }
@media (max-width: 959px) { .hero-3d { min-height: 220px; } .hero-3d .big { transform: scale(1.15); } .dash3d { width: 280px; } }

/* ---------- Explore tiles (home) ---------- */
.explore { display: grid; gap: 18px; grid-template-columns: repeat(3, minmax(0, 1fr)); }
.explore > li { display: flex; min-width: 0; perspective: 1100px; }
.explore > li.wide { grid-column: span 2; }
@media (max-width: 980px) { .explore { grid-template-columns: repeat(2, minmax(0, 1fr)); } .explore > li.wide { grid-column: span 2; } }
@media (max-width: 600px) { .explore { grid-template-columns: 1fr; } .explore > li.wide { grid-column: auto; } }
.xcard {
  position: relative; flex: 1; min-width: 0;
  display: flex; flex-direction: column; gap: 8px;
  padding: 14px 14px 22px;
  border: 1px solid var(--line); border-radius: 24px;
  background: linear-gradient(180deg, var(--surface), var(--surface-2));
  box-shadow: var(--shadow-sm), inset 0 1px 0 rgba(255, 255, 255, 0.6);
  transform-style: preserve-3d;
  transition: transform 0.5s var(--ease), border-color 0.3s, box-shadow 0.45s;
}
:root[data-theme="dark"] .xcard { box-shadow: var(--shadow-sm), inset 0 1px 0 rgba(255, 255, 255, 0.04); }
.xcard:hover, .xcard:focus-visible { border-color: var(--line-gold); box-shadow: var(--shadow), 0 0 0 1px var(--line-gold); transform: translateY(-5px); }
.xcard.featured { border: 1px solid transparent; background: linear-gradient(180deg, var(--surface), var(--surface-2)) padding-box, var(--gold-grad) border-box; }
.xcard .x-title { display: flex; align-items: center; gap: 9px; padding: 4px 10px 0; font: 800 20px/1.25 var(--head); letter-spacing: -0.015em; }
.xcard .x-title .ico { width: 20px; height: 20px; color: var(--gold-ink); }
.xcard .x-desc { padding: 0 10px; color: var(--text-2); font-size: 14.5px; }
.xcard .x-cta { margin-top: auto; padding: 8px 10px 0; display: inline-flex; align-items: center; gap: 6px; color: var(--gold-ink); font: 700 14.5px/1.2 var(--head); }
.xcard .x-cta .ico { transition: transform 0.25s var(--ease); }
.xcard:hover .x-cta .ico { transform: translateX(4px); }

.cc-visual {
  position: relative; display: block; overflow: hidden;
  width: 100%; height: 150px; margin-bottom: 6px;
  border: 1px solid var(--line); border-radius: 16px;
  background: radial-gradient(120% 100% at 50% 0%, var(--gold-soft), transparent 70%), var(--surface-3);
  color: var(--text-2);
  transform: translateZ(18px);
  transition: transform 0.5s var(--ease);
}
.wide .cc-visual { height: 190px; }
.xcard:hover .cc-visual { transform: translateZ(30px); }
.cc-visual i, .cc-visual b { font-style: normal; display: block; }
.cv-win { position: absolute; left: 18px; right: 18px; top: 18px; bottom: -12px; display: flex; flex-direction: column; gap: 10px; padding: 12px; border-radius: 12px; background: var(--surface); border: 1px solid var(--line); box-shadow: var(--shadow-sm); transition: transform 0.5s var(--ease); }
.xcard:hover .cv-win { transform: translateY(-5px); }
.cv-row { display: flex; gap: 8px; }
.cv-kpi { flex: 1; min-width: 0; padding: 6px 9px; border-radius: 8px; background: var(--surface-2); border: 1px solid var(--line); }
.cv-kpi b { font: 800 12px/1.2 var(--head); color: var(--text); }
.cv-kpi small { display: block; font-size: 10px; color: var(--muted); }
.cv-bars { display: flex; align-items: flex-end; gap: 6px; flex: 1; min-height: 40px; }
.cv-bars i { flex: 1; height: var(--h); border-radius: 4px 4px 2px 2px; background: linear-gradient(180deg, var(--gold-light), var(--gold-deep)); transform-origin: bottom; transition: transform 0.6s var(--ease); }
.cv-bars i:nth-child(odd) { opacity: 0.55; }
.xcard:hover .cv-bars i { transform: scaleY(1.1); }
.xcard:hover .cv-bars i:nth-child(2n) { transform: scaleY(0.9); }
.cv-hw svg { position: absolute; inset: 10px 12px; width: calc(100% - 24px); height: calc(100% - 20px); }
.cv-paper { transition: transform 0.6s var(--ease); }
.xcard:hover .cv-paper { transform: translateY(-6px); }
.cv-sol { display: grid; grid-template-columns: repeat(3, 1fr); gap: 8px; position: absolute; inset: 16px; }
.cv-sol i { display: grid !important; place-items: center; border-radius: 12px; background: var(--surface); border: 1px solid var(--line); color: var(--gold-ink); transition: transform 0.5s var(--ease); }
.cv-sol i .ico { width: 24px; height: 24px; }
.xcard:hover .cv-sol i:nth-child(odd) { transform: translateY(-4px); }
.cv-steps { position: absolute; inset: 20px 18px; display: flex; align-items: center; justify-content: space-between; }
.cv-steps::before { content: ""; position: absolute; left: 20px; right: 20px; top: 50%; height: 2px; background: var(--gold-grad); opacity: 0.6; }
.cv-steps i { position: relative; display: grid !important; place-items: center; width: 38px; height: 38px; border-radius: 50%; background: var(--surface); border: 1px solid var(--line-gold); color: var(--gold-ink); font: 800 14px/1 var(--head); box-shadow: var(--shadow-sm); transition: transform 0.5s var(--ease); }
.cv-steps i.on { background: var(--gold-grad); color: var(--on-gold); border-color: transparent; }
.xcard:hover .cv-steps i { transform: translateY(-4px); }
.xcard:hover .cv-steps i:nth-child(even) { transform: translateY(4px); }
.cv-contact { position: absolute; inset: 18px; display: flex; flex-direction: column; gap: 8px; justify-content: center; }
.cv-contact i { align-self: flex-start; max-width: 80%; padding: 8px 12px; border-radius: 14px 14px 14px 4px; background: var(--surface); border: 1px solid var(--line); font: 600 12px/1.3 var(--head); color: var(--text-2); }
.cv-contact i.me { align-self: flex-end; border-radius: 14px 14px 4px 14px; background: var(--gold-grad); color: var(--on-gold); border-color: transparent; }
.cv-contact i:nth-child(2) { animation: floaty 6s ease-in-out infinite; }
@keyframes floaty { 50% { transform: translateY(-5px); } }

/* ---------- CTA band (charcoal + gold, both themes) ---------- */
.cta-band { padding: clamp(56px, 8vw, 96px) 0; }
.cta-box {
  position: relative; overflow: hidden; isolation: isolate;
  display: grid; gap: 26px; align-items: center;
  padding: clamp(30px, 5vw, 56px);
  border-radius: 28px;
  background: radial-gradient(90% 140% at 100% 0%, rgba(212, 170, 85, 0.28), transparent 55%), linear-gradient(135deg, #17150f, #0b0b0c);
  color: #f5f1e8;
  box-shadow: var(--shadow-lg);
}
@media (min-width: 900px) { .cta-box { grid-template-columns: 1.4fr 1fr; } }
.cta-box h2 { color: #f5f1e8; }
.cta-box p { color: #cfc9bd; margin-top: 12px; max-width: 560px; }
.cta-box .kicker { color: #e2bd6a; }
.cta-box .btn-line { background: rgba(255, 255, 255, 0.04); color: #f5f1e8; border-color: rgba(212, 170, 85, 0.45); }
.cta-box .btn-row { justify-content: flex-start; }
.cta-box canvas { position: absolute; right: -120px; top: -120px; width: 460px; height: 460px; z-index: -1; opacity: 0.55; pointer-events: none; }
.cta-box .cta-3d { display: none; justify-self: center; }
@media (min-width: 900px) { .cta-box .cta-3d { display: block; } }

/* Tilt helper (JS adds transform on desktop) */
.tilt { will-change: transform; }

@media (prefers-reduced-motion: reduce) {
  .chip3d, .stack3d, .slab, .hw3d, .dash3d, .steps3d, .hero-3d .ring, .hero-bg .glow.g1, .cv-contact i { animation: none !important; }
  .xcard, .cc-visual { transform: none !important; }
}

/* ---------- Restaurant SaaS (products page) ---------- */
.restaurant-grid { display: grid; gap: clamp(32px, 5vw, 64px); align-items: center; }
@media (min-width: 960px) { .restaurant-grid { grid-template-columns: 1.1fr 0.9fr; } }
.restaurant-grid > * { min-width: 0; }
.restaurant-grid .lead { margin-top: 14px; }
.ticks.big { display: grid; gap: 10px; margin-top: 22px; font-size: 15.5px; color: var(--text-2); }
.ticks.big li { display: flex; gap: 10px; align-items: flex-start; }
.ticks.big .ico { margin-top: 3px; color: var(--gold-ink); }
.ticket3d { position: relative; width: 280px; height: 280px; transform-style: preserve-3d; transform: rotateX(16deg) rotateY(-22deg); animation: hw-float 8s ease-in-out infinite; }
.ticket3d .tk { position: absolute; width: 230px; padding: 16px; border-radius: 18px; border: 1px solid var(--line-strong); background: var(--surface); box-shadow: var(--shadow-lg); }
.ticket3d .tk.back { left: 46px; top: 6px; transform: translateZ(-40px); opacity: 0.75; }
.ticket3d .tk.back b { display: block; font: 800 13px/1.2 var(--head); margin-bottom: 10px; }
.ticket3d .tk.back i { display: block; height: 6px; border-radius: 3px; background: var(--line-strong); margin-top: 8px; }
.ticket3d .tk.front { left: 0; top: 52px; transform: translateZ(30px); }
.tk-head { display: flex; align-items: center; justify-content: space-between; padding-bottom: 10px; margin-bottom: 6px; border-bottom: 1px dashed var(--line-strong); }
.tk-head b { font: 800 16px/1.2 var(--head); }
.tk-head span { padding: 3px 9px; border-radius: 999px; background: var(--gold-soft); color: var(--gold-ink); font: 700 11px/1.3 var(--head); }
.tk-row { display: flex; align-items: center; justify-content: space-between; gap: 10px; padding: 6px 0; font-size: 13px; color: var(--text-2); }
.tk-row i { width: 34px; height: 6px; border-radius: 3px; background: var(--line-strong); }
.tk-btn { margin-top: 10px; padding: 9px; border-radius: 10px; background: var(--gold-grad); color: var(--on-gold); text-align: center; font: 700 13px/1 var(--head); }
.solution.span-all { grid-column: 1 / -1; }
@media (min-width: 980px) {
  .solution.span-all { grid-template-columns: auto 1fr auto; align-items: center; column-gap: 22px; }
  .solution.span-all .card-ico { margin-bottom: 0; grid-row: span 3; }
}
@media (prefers-reduced-motion: reduce) { .ticket3d { animation: none !important; } }
