/* ==========================================================================
   Solutions Lanka — main stylesheet
   ========================================================================== */

:root {
  --ink: #0A0D12;
  --ink-2: #0F141B;
  --ink-3: #161D26;
  --ink-4: #212A35;
  --paper: #F4F2EC;
  --paper-2: #EBE8DF;
  --white: #FFFFFF;

  --text: #0E1217;
  --muted: #59616D;
  --line: rgba(14, 18, 23, .11);
  --line-strong: rgba(14, 18, 23, .22);

  --text-d: #E9EDF2;
  --muted-d: #8E98A6;
  --line-d: rgba(255, 255, 255, .085);
  --line-d-strong: rgba(255, 255, 255, .16);

  --accent: #C8F031;
  --accent-hi: #D8FF4F;
  --accent-ink: #0A0D12;
  --rec: #FF5A4E;
  --ok: #5BE08A;
  --wa: #25D366;

  --r-sm: 10px;
  --r: 16px;
  --r-lg: 24px;

  --f-display: "Bricolage Grotesque", ui-sans-serif, system-ui, sans-serif;
  --f-body: "Geist", ui-sans-serif, system-ui, -apple-system, "Segoe UI", Roboto, sans-serif;
  --f-mono: "Geist Mono", ui-monospace, SFMono-Regular, Menlo, Consolas, monospace;

  --container: 1240px;
  --gutter: clamp(20px, 4vw, 40px);
  --header-h: 72px;
  --ease: cubic-bezier(.2, .7, .2, 1);
}

/* ---------- Reset ---------- */
*, *::before, *::after { box-sizing: border-box; }
html { -webkit-text-size-adjust: 100%; scroll-behavior: smooth; scroll-padding-top: calc(var(--header-h) + 16px); }
body {
  margin: 0;
  font-family: var(--f-body);
  font-size: 16px;
  line-height: 1.6;
  color: var(--text);
  background: var(--ink);
  -webkit-font-smoothing: antialiased;
  -moz-osx-font-smoothing: grayscale;
  text-rendering: optimizeLegibility;
}
img, svg { display: block; max-width: 100%; }
a { color: inherit; text-decoration: none; }
button, input, textarea, select { font: inherit; color: inherit; }
button { cursor: pointer; background: none; border: 0; padding: 0; }
h1, h2, h3, h4, p, ul, ol, dl, dd, figure, fieldset { margin: 0; }
ul, ol { padding: 0; list-style: none; }
fieldset { border: 0; padding: 0; min-width: 0; }
::selection { background: var(--accent); color: var(--accent-ink); }
:focus-visible { outline: 2px solid var(--accent); outline-offset: 3px; border-radius: 6px; }

.container { width: 100%; max-width: calc(var(--container) + var(--gutter) * 2); margin: 0 auto; padding: 0 var(--gutter); }
.mono { font-family: var(--f-mono); }
.skip-link { position: absolute; left: 12px; top: -60px; z-index: 100; padding: 10px 16px; background: var(--accent); color: var(--accent-ink); border-radius: 999px; font-weight: 600; transition: top .2s; }
.skip-link:focus { top: 12px; }

/* ---------- Icons ---------- */
.icon { width: 20px; height: 20px; flex: none; }
.icon-sm { width: 16px; height: 16px; }
.icon-xs { width: 13px; height: 13px; }

/* ---------- Surfaces ---------- */
.dark { background: var(--ink); color: var(--text-d); }
.light { background: var(--paper); color: var(--text); }
.light-alt { background: var(--paper-2); }
.section { padding: clamp(80px, 10vw, 136px) 0; position: relative; }
.section-tight { padding: clamp(56px, 7vw, 96px) 0; }
.section-tight .section-head { margin-bottom: 32px; }

/* ---------- Type ---------- */
.display {
  font-family: var(--f-display);
  font-weight: 700;
  font-size: clamp(2.7rem, 6.4vw, 5.6rem);
  line-height: .96;
  letter-spacing: -.035em;
  font-variation-settings: "opsz" 96;
}
.display em { font-style: normal; color: var(--accent); }
.display-md { font-size: clamp(2.4rem, 5vw, 4.4rem); line-height: 1; }
.display-hero { font-size: clamp(2.7rem, 5.1vw, 4.6rem); line-height: .98; }
.display-hero .hero-line > * { white-space: nowrap; }
.h2 {
  font-family: var(--f-display);
  font-weight: 700;
  font-size: clamp(2rem, 4.2vw, 3.5rem);
  line-height: 1.02;
  letter-spacing: -.03em;
  font-variation-settings: "opsz" 72;
  text-wrap: balance;
}
.h2-sm { font-size: clamp(1.6rem, 3vw, 2.4rem); }
.lead { font-size: clamp(1.05rem, 1.4vw, 1.22rem); line-height: 1.6; color: var(--muted-d); max-width: 60ch; }
.light .lead { color: var(--muted); }

.eyebrow {
  display: inline-flex; align-items: center; gap: 10px;
  font-family: var(--f-mono); font-size: 12px; font-weight: 500;
  letter-spacing: .14em; text-transform: uppercase; color: var(--muted);
  margin-bottom: 20px;
}
.eyebrow::before { content: ""; width: 8px; height: 8px; border-radius: 2px; background: var(--accent); box-shadow: 0 0 0 3px rgba(200, 240, 49, .18); }
.light .eyebrow::before { background: var(--ink); box-shadow: 0 0 0 3px rgba(14, 18, 23, .08); }
.eyebrow-dark { color: var(--muted-d); }
.hero-eyebrow::before, .eyebrow:has(.live-dot)::before, .eyebrow:has(.rec-dot)::before, .eyebrow:has(.svc-hero-icon)::before { display: none; }

.live-dot, .rec-dot { width: 8px; height: 8px; border-radius: 50%; background: var(--ok); position: relative; }
.live-dot::after, .rec-dot::after { content: ""; position: absolute; inset: -4px; border-radius: 50%; border: 1px solid currentColor; color: var(--ok); animation: ping 2s var(--ease) infinite; }
.rec-dot { background: var(--rec); }
.rec-dot::after { color: var(--rec); }

.section-head { max-width: 760px; margin-bottom: clamp(40px, 5vw, 64px); }
.section-head .h2 + .section-sub { margin-top: 20px; }
.section-sub { font-size: 1.08rem; color: var(--muted); max-width: 58ch; }
.dark .section-sub { color: var(--muted-d); }
.section-head-split { max-width: none; display: grid; grid-template-columns: 1.1fr 1fr; gap: 32px 64px; align-items: end; }
.section-head-split .section-sub { margin: 0; }

/* ---------- Buttons ---------- */
.btn {
  display: inline-flex; align-items: center; justify-content: center; gap: 10px;
  padding: 12px 20px; border-radius: 999px; border: 1px solid transparent;
  font-weight: 600; font-size: 15px; line-height: 1.2; white-space: nowrap;
  transition: background .2s, color .2s, border-color .2s, transform .2s var(--ease), box-shadow .2s;
}
.btn .icon { transition: transform .25s var(--ease); }
.btn:hover .icon:last-child { transform: translateX(3px); }
.btn-lg { padding: 16px 26px; font-size: 16px; }
.btn-sm { padding: 9px 16px; font-size: 14px; }
.btn-accent { background: var(--accent); color: var(--accent-ink); box-shadow: 0 0 0 0 rgba(200, 240, 49, .0); }
.btn-accent:hover { background: var(--accent-hi); transform: translateY(-1px); box-shadow: 0 10px 30px -10px rgba(200, 240, 49, .55); }
.btn-ghost { border-color: var(--line-d-strong); color: var(--text-d); }
.btn-ghost:hover { border-color: var(--text-d); background: rgba(255, 255, 255, .04); }
.light .btn-ghost { border-color: var(--line-strong); color: var(--text); }
.btn-dark { background: var(--ink); color: var(--white); }
.btn-dark:hover { background: var(--ink-4); transform: translateY(-1px); }
.btn:disabled { opacity: .6; pointer-events: none; }

/* ==========================================================================
   Header
   ========================================================================== */
.site-header { position: sticky; top: 0; z-index: 50; color: var(--text-d); }
/* The blur lives on a pseudo-element: backdrop-filter on the header itself would
   trap the fixed-position mobile menu inside the header box. */
.site-header::before {
  content: ""; position: absolute; inset: 0; z-index: -1;
  background: rgba(10, 13, 18, .72);
  backdrop-filter: saturate(160%) blur(14px);
  -webkit-backdrop-filter: saturate(160%) blur(14px);
  border-bottom: 1px solid transparent;
  transition: border-color .25s, background .25s;
}
.site-header.is-scrolled::before { border-bottom-color: var(--line-d); background: rgba(10, 13, 18, .88); }
.nav-open .site-header::before { background: var(--ink); }
.nav { height: var(--header-h); display: flex; align-items: center; gap: 28px; }

.brand { display: inline-flex; align-items: center; gap: 10px; color: var(--text-d); }
.logo-mark { width: 30px; height: 30px; color: var(--text-d); }
.logo-mark-xs { width: 14px; height: 14px; display: inline-block; vertical-align: -2px; }
.brand-word { font-family: var(--f-display); font-weight: 700; font-size: 20px; letter-spacing: -.02em; }
.brand-word span { color: var(--muted-d); font-weight: 600; margin-left: 4px; }

.nav-links { display: flex; align-items: center; gap: 4px; margin-left: auto; }
.nav-link {
  display: inline-flex; align-items: center; gap: 6px;
  padding: 8px 14px; border-radius: 999px;
  font-size: 15px; font-weight: 500; color: var(--muted-d);
  transition: color .2s, background .2s;
}
.nav-link:hover, .nav-link.is-active, .is-active > .nav-link, .has-menu.is-open > .nav-link { color: var(--text-d); background: rgba(255, 255, 255, .05); }
.nav-link .icon { transition: transform .25s var(--ease); }
.has-menu.is-open > .nav-link .icon { transform: rotate(180deg); }

.nav-actions { display: flex; align-items: center; gap: 14px; }
.nav-phone { display: inline-flex; align-items: center; gap: 8px; font-family: var(--f-mono); font-size: 13.5px; color: var(--muted-d); transition: color .2s; }
.nav-phone:hover { color: var(--accent); }
.nav-toggle { display: none; width: 44px; height: 44px; border-radius: 12px; border: 1px solid var(--line-d-strong); align-items: center; justify-content: center; color: var(--text-d); }
.nav-toggle-close { display: none; }
.nav-mobile-cta { display: none; }

/* Mega menu */
.has-menu { position: relative; }
.mega {
  position: absolute; top: calc(100% + 14px); left: 50%;
  width: min(680px, 92vw);
  translate: -50% 0;
  padding: 10px;
  background: var(--ink-2);
  border: 1px solid var(--line-d);
  border-radius: 20px;
  box-shadow: 0 30px 80px -20px rgba(0, 0, 0, .7);
  opacity: 0; visibility: hidden; transform: translateY(-6px);
  transition: opacity .2s, transform .25s var(--ease), visibility .2s;
}
.mega::before { content: ""; position: absolute; inset: -16px 0 auto; height: 16px; }
.has-menu.is-open .mega { opacity: 1; visibility: visible; transform: none; }
@media (hover: hover) and (min-width: 1025px) {
  .has-menu:hover .mega, .has-menu:focus-within .mega { opacity: 1; visibility: visible; transform: none; }
}
.mega-grid { display: grid; grid-template-columns: 1fr 1fr; gap: 4px; }
.mega-link { display: flex; gap: 14px; align-items: flex-start; padding: 14px; border-radius: 14px; transition: background .2s; }
.mega-link:hover { background: var(--ink-3); }
.mega-link strong { display: block; font-size: 15px; font-weight: 600; color: var(--text-d); }
.mega-link small { display: block; font-size: 13px; color: var(--muted-d); line-height: 1.45; margin-top: 2px; }
.mega-icon { width: 38px; height: 38px; border-radius: 11px; background: var(--ink-3); border: 1px solid var(--line-d); display: grid; place-items: center; color: var(--accent); flex: none; transition: background .2s, color .2s; }
.mega-link:hover .mega-icon { background: var(--accent); color: var(--accent-ink); }
.mega-cta { background: rgba(200, 240, 49, .06); }

/* ==========================================================================
   Hero
   ========================================================================== */
.hero { position: relative; overflow: hidden; padding: clamp(56px, 8vw, 104px) 0 0; isolation: isolate; }
.hero-bg { position: absolute; inset: 0; z-index: -1; pointer-events: none; }
.hero-bg::before {
  content: ""; position: absolute; inset: 0;
  background-image:
    linear-gradient(to right, rgba(255, 255, 255, .045) 1px, transparent 1px),
    linear-gradient(to bottom, rgba(255, 255, 255, .045) 1px, transparent 1px);
  background-size: 64px 64px;
  -webkit-mask-image: radial-gradient(ellipse 80% 70% at 60% 30%, #000 30%, transparent 75%);
          mask-image: radial-gradient(ellipse 80% 70% at 60% 30%, #000 30%, transparent 75%);
}
.hero-bg::after {
  content: ""; position: absolute; width: 900px; height: 900px; right: -200px; top: -380px;
  background: radial-gradient(circle, rgba(200, 240, 49, .16), transparent 62%);
  filter: blur(10px);
}

.hero-grid { display: grid; grid-template-columns: minmax(0, 1.18fr) minmax(0, 1fr); gap: clamp(32px, 4vw, 56px); align-items: center; }
.hero-line { display: block; }
.hero-lead { margin-top: 28px; }
.hero-actions { display: flex; flex-wrap: wrap; gap: 12px; margin-top: 36px; }
.hero-services { display: flex; flex-wrap: wrap; gap: 8px; margin-top: 40px; }
.hero-services a {
  display: inline-flex; align-items: center; gap: 8px;
  padding: 7px 14px 7px 8px; border-radius: 999px;
  border: 1px solid var(--line-d); background: rgba(255, 255, 255, .02);
  font-size: 13.5px; color: var(--text-d); transition: border-color .2s, background .2s;
}
.hero-services a span { font-family: var(--f-mono); font-size: 11px; color: var(--accent); background: rgba(200, 240, 49, .1); padding: 2px 6px; border-radius: 999px; }
.hero-services a:hover { border-color: var(--accent); background: rgba(200, 240, 49, .06); }

/* Ops board */
.ops {
  position: relative;
  background: linear-gradient(180deg, var(--ink-2), #0C1016);
  border: 1px solid var(--line-d);
  border-radius: 22px;
  padding: 12px;
  box-shadow: 0 50px 120px -40px rgba(0, 0, 0, .9), 0 0 0 1px rgba(255, 255, 255, .02) inset;
  transform: perspective(1600px) rotateY(-7deg) rotateX(3deg);
  transform-origin: left center;
  transition: transform .8s var(--ease);
  font-family: var(--f-mono);
}
.ops:hover { transform: perspective(1600px) rotateY(-2deg) rotateX(1deg); }
.ops::after { content: ""; position: absolute; inset: -1px; border-radius: inherit; pointer-events: none; background: linear-gradient(135deg, rgba(200, 240, 49, .25), transparent 30%, transparent 70%, rgba(200, 240, 49, .08)); -webkit-mask: linear-gradient(#000 0 0) content-box, linear-gradient(#000 0 0); -webkit-mask-composite: xor; mask-composite: exclude; padding: 1px; }
.ops-top { display: flex; align-items: center; justify-content: space-between; gap: 12px; padding: 4px 6px 12px; font-size: 11px; color: var(--muted-d); letter-spacing: .06em; }
.ops-id { color: var(--text-d); display: inline-flex; gap: 8px; align-items: center; }
.ops-status { display: inline-flex; align-items: center; gap: 8px; }
.ops-status i { width: 7px; height: 7px; border-radius: 50%; background: var(--ok); box-shadow: 0 0 10px var(--ok); animation: blink 2.4s infinite; }
.ops-clock { font-variant-numeric: tabular-nums; }

.ops-grid { display: grid; grid-template-columns: 1.25fr 1fr; grid-template-areas: "cctv ads" "cctv net" "srv term"; gap: 10px; }
.panel { background: var(--ink-3); border: 1px solid var(--line-d); border-radius: 14px; padding: 12px; min-width: 0; position: relative; overflow: hidden; }
.panel-h { display: flex; justify-content: space-between; align-items: center; gap: 8px; font-size: 10.5px; letter-spacing: .06em; text-transform: uppercase; color: var(--muted-d); margin-bottom: 10px; white-space: nowrap; }
.panel-h > span:first-child { display: inline-flex; align-items: center; gap: 6px; overflow: hidden; text-overflow: ellipsis; }
.p-cctv { grid-area: cctv; }
.p-ads { grid-area: ads; }
.p-net { grid-area: net; }
.p-srv { grid-area: srv; }
.p-term { grid-area: term; }

.rec { display: inline-flex; align-items: center; gap: 6px; color: var(--rec); }
.rec i { width: 7px; height: 7px; border-radius: 50%; background: var(--rec); animation: blink 1.2s steps(2, start) infinite; }
.up { color: var(--accent); }
.ok { color: var(--ok); display: inline-flex; align-items: center; gap: 6px; }
.ok i { width: 6px; height: 6px; border-radius: 50%; background: var(--ok); }

.cams { display: grid; grid-template-columns: 1fr 1fr; gap: 6px; }
.cam {
  position: relative; aspect-ratio: 16 / 11; border-radius: 8px; overflow: hidden;
  background:
    repeating-linear-gradient(0deg, rgba(255, 255, 255, .025) 0 1px, transparent 1px 3px),
    radial-gradient(120% 90% at 50% 60%, #1A2810, #0A1006 80%);
}
.cam svg { position: absolute; inset: 0; width: 100%; height: 100%; fill: none; stroke: rgba(200, 240, 49, .42); stroke-width: 1.3; stroke-linecap: round; stroke-linejoin: round; }
.cam::after { content: ""; position: absolute; left: 0; right: 0; height: 30%; top: -30%; background: linear-gradient(180deg, transparent, rgba(200, 240, 49, .07), transparent); animation: scan 4.5s linear infinite; }
.cam:nth-child(2)::after { animation-delay: -1.2s; }
.cam:nth-child(3)::after { animation-delay: -2.6s; }
.cam:nth-child(4)::after { animation-delay: -3.4s; }
.cam-l, .cam-t, .cam-tag { position: absolute; font-size: 8.5px; letter-spacing: .06em; color: rgba(233, 237, 242, .8); text-shadow: 0 1px 2px #000; }
.cam-l { top: 6px; left: 7px; }
.cam-t { bottom: 6px; right: 7px; font-variant-numeric: tabular-nums; }
.cam-tag { bottom: 6px; right: 7px; color: var(--ink); background: var(--accent); padding: 1px 5px; border-radius: 3px; text-shadow: none; font-weight: 600; animation: blink 1.6s infinite; }
.car { animation: car 9s var(--ease) infinite; }
.walker { animation: walk 7s linear infinite; }
.walker .detect { stroke: var(--accent); stroke-width: 1.2; stroke-dasharray: 4 3; }

.kpi { display: flex; align-items: baseline; gap: 8px; flex-wrap: wrap; }
.kpi span { font-family: var(--f-display); font-weight: 700; font-size: 30px; letter-spacing: -.03em; color: var(--text-d); font-variant-numeric: tabular-nums; line-height: 1; }
.kpi small { font-size: 10px; color: var(--muted-d); letter-spacing: .04em; }
.bars { display: flex; align-items: flex-end; gap: 4px; height: 52px; margin-top: 12px; }
.bars i { flex: 1; height: var(--h); border-radius: 3px 3px 1px 1px; background: linear-gradient(180deg, var(--accent), rgba(200, 240, 49, .18)); transform-origin: bottom; animation: grow 1.1s var(--ease) both; animation-delay: calc(var(--i) * 60ms + 300ms); }
.bars i:last-child { box-shadow: 0 0 16px rgba(200, 240, 49, .5); }

.net { width: 100%; height: auto; }
.net-links path { stroke: rgba(255, 255, 255, .12); stroke-width: 1.2; fill: none; }
.net-pulse path { stroke: var(--accent); stroke-width: 1.6; fill: none; stroke-dasharray: 3 14; animation: flow 1.6s linear infinite; }
.net-pulse path:nth-child(2n) { animation-duration: 2.2s; animation-direction: reverse; }
.net-nodes circle { fill: var(--ink-4); stroke: rgba(255, 255, 255, .3); stroke-width: 1.2; }
.net-core { fill: var(--accent); filter: drop-shadow(0 0 8px rgba(200, 240, 49, .7)); }
.net-labels text { font-family: var(--f-mono); font-size: 8px; fill: var(--muted-d); letter-spacing: .05em; }

.spark { width: 100%; height: 44px; margin-top: 10px; }
.spark-line { fill: none; stroke: var(--accent); stroke-width: 1.6; vector-effect: non-scaling-stroke; stroke-dasharray: 400; stroke-dashoffset: 400; animation: draw 2s var(--ease) .4s forwards; }
.spark-area { fill: url(#sparkFill); opacity: 0; animation: fade 1s ease 1.2s forwards; }

.term { font-size: 11px; line-height: 1.75; color: var(--muted-d); min-height: 98px; }
.term div { white-space: nowrap; overflow: hidden; text-overflow: ellipsis; }
.term .t-cmd { color: var(--text-d); }
.term .t-ok { color: var(--ok); }
.term .t-live { color: var(--accent); }
.term .cursor { display: inline-block; width: 6px; height: 12px; background: var(--accent); vertical-align: -2px; animation: blink 1s steps(2, start) infinite; }

/* Stats */
.stats { display: grid; grid-template-columns: repeat(4, 1fr); margin-top: clamp(56px, 7vw, 96px); border-top: 1px solid var(--line-d); }
.stat { display: flex; flex-direction: column-reverse; gap: 6px; padding: 28px 24px 40px 0; }
.stat + .stat { padding-left: 24px; border-left: 1px solid var(--line-d); }
.stat dd { font-family: var(--f-display); font-weight: 700; font-size: clamp(1.8rem, 3vw, 2.6rem); letter-spacing: -.03em; line-height: 1; color: var(--text-d); }
.stat dt { font-size: 14px; color: var(--muted-d); }

/* ==========================================================================
   Services bento
   ========================================================================== */
.svc-grid { display: grid; grid-template-columns: repeat(3, 1fr); gap: 16px; }
.svc-card {
  position: relative; display: flex; gap: 28px;
  padding: 28px; border-radius: var(--r-lg);
  background: var(--white); border: 1px solid var(--line);
  transition: transform .35s var(--ease), box-shadow .35s var(--ease), border-color .35s;
  min-height: 360px;
}
.svc-card:hover { transform: translateY(-4px); border-color: var(--line-strong); box-shadow: 0 24px 60px -28px rgba(14, 18, 23, .35); }
.svc-body { display: flex; flex-direction: column; flex: 1; min-width: 0; }
.svc-top { display: flex; justify-content: space-between; align-items: flex-start; margin-bottom: 32px; }
.svc-icon { width: 52px; height: 52px; border-radius: 15px; background: var(--ink); color: var(--accent); display: grid; place-items: center; flex: none; transition: transform .35s var(--ease); }
.svc-icon .icon { width: 24px; height: 24px; }
.svc-card:hover .svc-icon { transform: rotate(-6deg) scale(1.05); }
.svc-meta { display: flex; gap: 6px; align-items: center; font-family: var(--f-mono); font-size: 11px; letter-spacing: .1em; text-transform: uppercase; }
.svc-no { color: var(--muted); }
.svc-tag { padding: 3px 8px; border-radius: 999px; border: 1px solid var(--line-strong); color: var(--text); }
.svc-card h3 { font-family: var(--f-display); font-size: 1.65rem; font-weight: 700; letter-spacing: -.025em; line-height: 1.08; }
.svc-card p { margin-top: 12px; color: var(--muted); font-size: 15.5px; }
.svc-points { margin: 20px 0 28px; display: grid; gap: 8px; }
.svc-points li { display: flex; align-items: center; gap: 10px; font-size: 14.5px; font-weight: 500; }
.svc-points .icon { color: var(--text); background: var(--accent); border-radius: 50%; padding: 3px; width: 18px; height: 18px; }
.svc-link { margin-top: auto; display: inline-flex; align-items: center; gap: 8px; font-weight: 600; font-size: 14.5px; }
.svc-link .icon { transition: transform .3s var(--ease); }
.svc-card:hover .svc-link .icon { transform: translateX(4px); }

.svc-card.is-feature { grid-column: span 2; background: var(--ink); color: var(--text-d); border-color: var(--ink); }
.svc-card.is-feature .svc-icon { background: var(--accent); color: var(--accent-ink); }
.svc-card.is-feature p, .svc-card.is-feature .svc-no { color: var(--muted-d); }
.svc-card.is-feature .svc-tag { color: var(--accent); border-color: rgba(200, 240, 49, .35); }
.svc-card.is-feature .svc-points .icon { color: var(--accent-ink); }

/* Mini app mock (feature card) */
.mini-app { flex: 1.05; min-width: 0; align-self: stretch; border-radius: 16px; background: var(--ink-3); border: 1px solid var(--line-d); overflow: hidden; display: flex; flex-direction: column; font-family: var(--f-mono); transform: translateY(8px) rotate(1deg); transition: transform .5s var(--ease); }
.svc-card:hover .mini-app { transform: none; }
.mini-bar { display: flex; align-items: center; gap: 6px; padding: 10px 12px; border-bottom: 1px solid var(--line-d); font-size: 10.5px; color: var(--muted-d); }
.mini-bar i { width: 8px; height: 8px; border-radius: 50%; background: var(--ink-4); }
.mini-bar i:first-child { background: var(--rec); opacity: .8; }
.mini-bar span { margin-left: 8px; }
.mini-body { padding: 14px; display: flex; flex-direction: column; gap: 14px; flex: 1; }
.mini-kpis { display: grid; grid-template-columns: repeat(3, 1fr); gap: 8px; }
.mini-kpis div { background: var(--ink-2); border: 1px solid var(--line-d); border-radius: 10px; padding: 9px 10px; min-width: 0; }
.mini-kpis small { display: block; font-size: 9.5px; color: var(--muted-d); letter-spacing: .04em; white-space: nowrap; }
.mini-kpis b { display: block; font-size: 13px; color: var(--text-d); margin-top: 3px; white-space: nowrap; }
.mini-kpis b.warn { color: #FFB547; }
.mini-chart { display: flex; align-items: flex-end; gap: 5px; height: 64px; padding: 0 2px; }
.mini-chart i { flex: 1; height: var(--h); border-radius: 3px; background: rgba(255, 255, 255, .1); }
.mini-chart i:nth-last-child(-n+3) { background: var(--accent); }
.mini-rows { display: grid; gap: 6px; margin-top: auto; }
.mini-rows li { display: grid; grid-template-columns: 1fr 1fr auto; gap: 8px; align-items: center; font-size: 10.5px; padding: 7px 10px; border-radius: 8px; background: var(--ink-2); color: var(--muted-d); }
.mini-rows span:nth-child(2) { color: var(--text-d); }
.mini-rows em { font-style: normal; font-size: 9.5px; padding: 2px 7px; border-radius: 999px; background: rgba(91, 224, 138, .14); color: var(--ok); }
.mini-rows em.is-credit { background: rgba(255, 181, 71, .14); color: #FFB547; }

.cta-band {
  margin-top: 16px; display: flex; align-items: center; justify-content: space-between; gap: 24px 40px; flex-wrap: wrap;
  padding: 32px clamp(24px, 4vw, 44px); border-radius: var(--r-lg);
  background: var(--accent); color: var(--accent-ink);
  position: relative; overflow: hidden;
}
.cta-band::before { content: ""; position: absolute; inset: 0; background-image: radial-gradient(rgba(10, 13, 18, .14) 1px, transparent 1px); background-size: 14px 14px; -webkit-mask-image: linear-gradient(90deg, transparent 30%, #000); mask-image: linear-gradient(90deg, transparent 30%, #000); }
.cta-band > * { position: relative; }
.cta-band h3 { font-family: var(--f-display); font-size: clamp(1.4rem, 2.4vw, 1.9rem); letter-spacing: -.025em; line-height: 1.1; }
.cta-band p { margin-top: 6px; max-width: 62ch; color: rgba(10, 13, 18, .72); }
.cta-band .btn-accent { background: var(--ink); color: var(--white); }
.cta-band .btn-accent:hover { background: var(--ink-4); box-shadow: none; }

/* ==========================================================================
   Packages
   ========================================================================== */
.pkg-grid { display: grid; grid-template-columns: repeat(3, 1fr); gap: 16px; }
.pkg {
  display: flex; flex-direction: column;
  padding: 30px; border-radius: var(--r-lg);
  background: linear-gradient(180deg, var(--ink-2), var(--ink));
  border: 1px solid var(--line-d);
  transition: border-color .3s, transform .35s var(--ease);
}
.pkg:hover { border-color: rgba(200, 240, 49, .4); transform: translateY(-4px); }
.pkg-no { font-family: var(--f-mono); font-size: 11.5px; letter-spacing: .14em; text-transform: uppercase; color: var(--accent); }
.pkg h3 { margin-top: 18px; font-family: var(--f-display); font-size: 1.7rem; letter-spacing: -.025em; line-height: 1.08; color: var(--text-d); }
.pkg > p { margin-top: 12px; color: var(--muted-d); font-size: 15px; }
.pkg-items { margin: 28px 0 32px; display: grid; gap: 2px; position: relative; }
.pkg-items::before { content: ""; position: absolute; left: 17px; top: 18px; bottom: 18px; width: 1px; background: linear-gradient(var(--line-d-strong), var(--line-d)); }
.pkg-items li { position: relative; display: flex; align-items: center; gap: 14px; padding: 8px 0; font-size: 15px; font-weight: 500; color: var(--text-d); }
.pkg-items small { display: block; font-family: var(--f-mono); font-size: 10.5px; letter-spacing: .08em; text-transform: uppercase; color: var(--muted-d); font-weight: 400; margin-top: 1px; }
.pkg-ic { width: 35px; height: 35px; border-radius: 10px; display: grid; place-items: center; background: var(--ink-3); border: 1px solid var(--line-d-strong); color: var(--accent); flex: none; position: relative; }
.pkg-btn { margin-top: auto; align-self: flex-start; }
.pkg:hover .pkg-btn { border-color: var(--accent); color: var(--accent); }

/* ==========================================================================
   Marquee
   ========================================================================== */
.marquee { background: var(--accent); color: var(--accent-ink); overflow: hidden; padding: 22px 0; border-block: 1px solid rgba(10, 13, 18, .2); }
.marquee-track { display: flex; width: max-content; animation: marquee 38s linear infinite; }
.marquee:hover .marquee-track { animation-play-state: paused; }
.marquee ul { display: flex; flex: none; }
.marquee li { display: flex; align-items: center; font-family: var(--f-display); font-weight: 700; font-size: clamp(1.3rem, 2.4vw, 1.9rem); letter-spacing: -.02em; white-space: nowrap; }
.marquee li::after { content: ""; width: 12px; height: 12px; margin: 0 clamp(20px, 3vw, 36px); background: var(--accent-ink); border-radius: 3px; transform: rotate(45deg); }

/* ==========================================================================
   Process
   ========================================================================== */
.process { display: grid; grid-template-columns: repeat(4, 1fr); gap: 16px; counter-reset: step; position: relative; }
.process-step { position: relative; padding: 28px 24px 30px; border-radius: var(--r-lg); background: var(--white); border: 1px solid var(--line); }
.process-no { display: inline-grid; place-items: center; width: 46px; height: 46px; border-radius: 50%; font-family: var(--f-mono); font-size: 14px; font-weight: 500; background: var(--paper); border: 1px solid var(--line-strong); margin-bottom: 40px; position: relative; z-index: 1; }
.process-step:first-child .process-no { background: var(--accent); border-color: var(--accent); }
.process-step::before { content: ""; position: absolute; top: 51px; left: 70px; right: -16px; height: 1px; background: repeating-linear-gradient(90deg, var(--line-strong) 0 6px, transparent 6px 12px); }
.process-step:last-child::before { display: none; }
.process-step h3 { font-family: var(--f-display); font-size: 1.35rem; letter-spacing: -.02em; line-height: 1.15; }
.process-step p { margin-top: 10px; color: var(--muted); font-size: 15px; }

/* ==========================================================================
   Why
   ========================================================================== */
.why-grid { display: grid; grid-template-columns: .9fr 1.1fr; gap: clamp(40px, 6vw, 88px); align-items: start; }
.why-grid .section-head { position: sticky; top: calc(var(--header-h) + 40px); margin-bottom: 0; }
.why-grid .section-head .btn { margin-top: 32px; }
.why-cards { display: grid; grid-template-columns: 1fr 1fr; gap: 16px; padding-bottom: 40px; }
.why-card { padding: 28px; border-radius: var(--r-lg); background: var(--white); border: 1px solid var(--line); }
.why-card:nth-child(even) { transform: translateY(40px); }
.why-icon { width: 48px; height: 48px; border-radius: 14px; background: var(--paper); border: 1px solid var(--line); display: grid; place-items: center; margin-bottom: 48px; }
.why-icon .icon { width: 22px; height: 22px; }
.why-card h3 { font-family: var(--f-display); font-size: 1.3rem; letter-spacing: -.02em; line-height: 1.15; }
.why-card p { margin-top: 10px; color: var(--muted); font-size: 15px; }

/* ==========================================================================
   FAQ
   ========================================================================== */
.faq-grid { display: grid; grid-template-columns: .85fr 1.15fr; gap: clamp(40px, 6vw, 88px); align-items: start; }
.faq-grid .section-head { margin-bottom: 0; }
.ask-card { margin-top: 32px; padding: 22px; border-radius: var(--r); background: var(--white); border: 1px solid var(--line); max-width: 420px; }
.light-alt .ask-card { background: var(--paper); }
.ask-card p { color: var(--muted); font-size: 15px; margin-bottom: 16px; }
.ask-card strong { color: var(--text); }
.faq { border-top: 1px solid var(--line-strong); }
.faq-item { border-bottom: 1px solid var(--line-strong); }
.faq-item summary { list-style: none; cursor: pointer; display: flex; justify-content: space-between; align-items: center; gap: 24px; padding: 24px 0; font-family: var(--f-display); font-size: clamp(1.08rem, 1.6vw, 1.3rem); font-weight: 600; letter-spacing: -.015em; line-height: 1.25; }
.faq-item summary::-webkit-details-marker { display: none; }
.faq-toggle { width: 36px; height: 36px; border-radius: 50%; border: 1px solid var(--line-strong); display: grid; place-items: center; flex: none; transition: transform .3s var(--ease), background .2s, border-color .2s; }
.faq-item[open] .faq-toggle { transform: rotate(45deg); background: var(--accent); border-color: var(--accent); }
.faq-item summary:hover .faq-toggle { border-color: var(--text); }
.faq-a { padding: 0 60px 26px 0; color: var(--muted); font-size: 16px; max-width: 64ch; }

/* ==========================================================================
   Quote section & form
   ========================================================================== */
.quote-section { border-top: 1px solid var(--line-d); }
.quote-section .hero-bg { opacity: .6; }
.quote-grid { display: grid; grid-template-columns: .85fr 1.15fr; gap: clamp(40px, 6vw, 80px); align-items: start; }
.quote-intro { position: sticky; top: calc(var(--header-h) + 40px); }
.quote-intro .lead { margin-top: 20px; font-size: 1.08rem; }
.contact-list { margin-top: 36px; display: grid; gap: 10px; }
.contact-list a { display: flex; align-items: center; gap: 16px; padding: 14px 16px; border-radius: var(--r); border: 1px solid var(--line-d); background: rgba(255, 255, 255, .02); transition: border-color .2s, background .2s; }
.contact-list a:hover { border-color: var(--line-d-strong); background: rgba(255, 255, 255, .04); }
.contact-list small { display: block; font-family: var(--f-mono); font-size: 11px; letter-spacing: .1em; text-transform: uppercase; color: var(--muted-d); }
.contact-list strong { display: block; font-weight: 600; color: var(--text-d); word-break: break-word; }
.contact-icon { width: 44px; height: 44px; border-radius: 12px; display: grid; place-items: center; background: var(--ink-3); border: 1px solid var(--line-d); color: var(--accent); flex: none; }
.contact-icon.is-wa { color: var(--wa); }
.quote-hours { margin-top: 20px; display: flex; align-items: center; gap: 8px; color: var(--muted-d); font-size: 14px; }

.quote-card { position: relative; background: var(--ink-2); border: 1px solid var(--line-d); border-radius: var(--r-lg); padding: clamp(22px, 3.5vw, 36px); box-shadow: 0 40px 100px -50px rgba(0, 0, 0, .9); }
.quote-form { display: grid; gap: 20px; }
.hp { position: absolute !important; left: -9999px; width: 1px; height: 1px; overflow: hidden; }
.field { display: grid; gap: 8px; min-width: 0; }
.field-row { display: grid; grid-template-columns: 1fr 1fr; gap: 16px; }
.field-label { font-family: var(--f-mono); font-size: 11.5px; letter-spacing: .1em; text-transform: uppercase; color: var(--muted-d); }
.field-label span { text-transform: none; letter-spacing: 0; opacity: .7; margin-left: 6px; }
.field input, .field textarea {
  width: 100%; padding: 14px 16px; border-radius: 12px;
  background: var(--ink-3); border: 1px solid var(--line-d-strong);
  color: var(--text-d); font-size: 16px; line-height: 1.4;
  transition: border-color .2s, box-shadow .2s, background .2s;
}
.field textarea { resize: vertical; min-height: 120px; }
.field input::placeholder, .field textarea::placeholder { color: #5E6876; }
.field input:hover, .field textarea:hover { border-color: rgba(255, 255, 255, .26); }
.field input:focus, .field textarea:focus { outline: none; border-color: var(--accent); box-shadow: 0 0 0 4px rgba(200, 240, 49, .14); background: #19212B; }
.field.is-invalid input, .field.is-invalid textarea { border-color: var(--rec); box-shadow: 0 0 0 4px rgba(255, 90, 78, .12); }
.field-error { font-size: 13px; color: #FF8A80; min-height: 0; }
.field-error:empty { display: none; }

.field-chips legend { margin-bottom: 12px; padding: 0; }
.chips { display: flex; flex-wrap: wrap; gap: 8px; }
.chip { position: relative; cursor: pointer; }
.chip input { position: absolute; opacity: 0; inset: 0; margin: 0; cursor: pointer; }
.chip span { display: inline-flex; align-items: center; gap: 8px; padding: 10px 14px; border-radius: 999px; border: 1px solid var(--line-d-strong); font-size: 14px; font-weight: 500; color: var(--text-d); transition: background .2s, border-color .2s, color .2s; user-select: none; }
.chip span .icon { color: var(--accent); transition: color .2s; }
.chip:hover span { border-color: rgba(255, 255, 255, .3); }
.chip input:checked + span { background: var(--accent); border-color: var(--accent); color: var(--accent-ink); }
.chip input:checked + span .icon { color: var(--accent-ink); }
.chip input:focus-visible + span { outline: 2px solid var(--accent); outline-offset: 3px; }

.form-foot { display: flex; align-items: center; gap: 16px 24px; flex-wrap: wrap; margin-top: 4px; }
.form-note { display: flex; align-items: center; gap: 8px; font-size: 13.5px; color: var(--muted-d); }
.form-status { font-size: 14.5px; color: var(--muted-d); }
.form-status:empty { display: none; }
.form-status.is-error { color: #FF8A80; }
.btn .spinner { width: 16px; height: 16px; border-radius: 50%; border: 2px solid rgba(10, 13, 18, .25); border-top-color: var(--accent-ink); animation: spin .7s linear infinite; }

.quote-success { display: none; text-align: left; padding: 12px 4px; }
.quote-card.is-sent .quote-form { display: none; }
.quote-card.is-sent .quote-success { display: block; animation: rise .6s var(--ease) both; }
.success-icon { width: 64px; height: 64px; border-radius: 20px; display: grid; place-items: center; background: var(--accent); color: var(--accent-ink); margin-bottom: 28px; }
.success-icon .icon { width: 30px; height: 30px; stroke-width: 2.4; }
.quote-success h3 { font-family: var(--f-display); font-size: clamp(1.6rem, 3vw, 2.2rem); letter-spacing: -.025em; line-height: 1.08; color: var(--text-d); }
.quote-success p { margin-top: 12px; color: var(--muted-d); max-width: 46ch; }
.success-actions { display: flex; flex-wrap: wrap; gap: 10px; margin-top: 28px; }

/* ==========================================================================
   Service page
   ========================================================================== */
.hero-service { padding-bottom: clamp(64px, 8vw, 104px); }
.svc-hero-no { position: absolute; right: -2vw; bottom: -6vw; z-index: -1; font-family: var(--f-display); font-weight: 800; font-size: clamp(14rem, 34vw, 30rem); line-height: .8; letter-spacing: -.06em; color: transparent; -webkit-text-stroke: 1.5px rgba(255, 255, 255, .1); pointer-events: none; user-select: none; }
.svc-hero-grid { display: grid; grid-template-columns: minmax(0, 1.3fr) minmax(0, .9fr); gap: clamp(40px, 6vw, 80px); align-items: center; }
.svc-hero-grid .lead { margin-top: 24px; }
.svc-hero-icon { width: 28px; height: 28px; border-radius: 8px; display: inline-grid; place-items: center; background: var(--accent); color: var(--accent-ink); }
.crumbs { display: flex; flex-wrap: wrap; gap: 8px; font-size: 13.5px; color: var(--muted-d); margin-bottom: 28px; }
.crumbs a:hover { color: var(--accent); }
.crumbs span[aria-current] { color: var(--text-d); }

.includes-card { background: rgba(15, 20, 27, .8); backdrop-filter: blur(6px); border: 1px solid var(--line-d); border-radius: var(--r-lg); padding: 26px; box-shadow: 0 40px 100px -50px rgba(0, 0, 0, .9); }
.includes-h { display: flex; justify-content: space-between; font-family: var(--f-mono); font-size: 11.5px; letter-spacing: .12em; text-transform: uppercase; color: var(--muted-d); padding-bottom: 16px; border-bottom: 1px solid var(--line-d); }
.includes-h span:first-child { color: var(--accent); }
.includes-card ul { display: grid; gap: 2px; padding: 12px 0; }
.includes-card li { display: flex; align-items: center; gap: 14px; padding: 9px 0; font-size: 15.5px; color: var(--text-d); }
.tick { width: 22px; height: 22px; border-radius: 50%; display: grid; place-items: center; background: rgba(200, 240, 49, .12); color: var(--accent); flex: none; }
.tick .icon { stroke-width: 2.4; }
.includes-foot { display: flex; gap: 8px; align-items: center; padding-top: 16px; border-top: 1px solid var(--line-d); font-size: 13px; color: var(--muted-d); }

.feat-grid { display: grid; grid-template-columns: repeat(3, 1fr); gap: 16px; }
.feat { padding: 28px; border-radius: var(--r-lg); background: var(--white); border: 1px solid var(--line); transition: border-color .3s, transform .35s var(--ease); }
.feat:hover { border-color: var(--line-strong); transform: translateY(-3px); }
.feat-no { display: inline-block; font-family: var(--f-mono); font-size: 12px; padding: 4px 9px; border-radius: 999px; background: var(--paper); border: 1px solid var(--line); margin-bottom: 40px; }
.feat:hover .feat-no { background: var(--accent); border-color: var(--accent); }
.feat h3 { font-family: var(--f-display); font-size: 1.35rem; letter-spacing: -.02em; line-height: 1.15; }
.feat p { margin-top: 10px; color: var(--muted); font-size: 15px; }

.tags-panel { margin-top: 16px; display: grid; grid-template-columns: 1fr 1fr; gap: 1px; background: var(--line); border: 1px solid var(--line); border-radius: var(--r-lg); overflow: hidden; }
.tags-panel > div { background: var(--white); padding: 28px; }
.tags-h { font-family: var(--f-mono); font-size: 11.5px; letter-spacing: .12em; text-transform: uppercase; color: var(--muted); margin-bottom: 16px; }
.tags { display: flex; flex-wrap: wrap; gap: 8px; }
.tags li { padding: 8px 14px; border-radius: 999px; background: var(--paper); border: 1px solid var(--line); font-size: 14px; font-weight: 500; }
.tags-mono li { font-family: var(--f-mono); font-size: 13px; background: var(--ink); color: var(--text-d); border-color: var(--ink); }

.other-grid { display: grid; grid-template-columns: repeat(4, 1fr); gap: 12px; }
.other { display: flex; align-items: center; gap: 14px; padding: 16px; border-radius: var(--r); background: var(--white); border: 1px solid var(--line); transition: border-color .2s, transform .3s var(--ease); }
.other:hover { border-color: var(--text); transform: translateY(-2px); }
.other .svc-icon { width: 44px; height: 44px; border-radius: 12px; }
.other .svc-icon .icon { width: 20px; height: 20px; }
.other-text { flex: 1; min-width: 0; }
.other-text small { display: block; font-family: var(--f-mono); font-size: 10.5px; letter-spacing: .1em; text-transform: uppercase; color: var(--muted); }
.other-text strong { display: block; font-weight: 600; font-size: 15px; line-height: 1.25; }
.other-arrow { color: var(--muted); transition: transform .3s var(--ease), color .2s; }
.other:hover .other-arrow { transform: translate(2px, -2px); color: var(--text); }

/* ==========================================================================
   Contact page
   ========================================================================== */
.hero-contact { padding-bottom: clamp(64px, 8vw, 96px); }
.hero-contact .lead { margin-top: 24px; }
.contact-cards { display: grid; grid-template-columns: repeat(4, 1fr); gap: 12px; margin-top: 48px; }
.contact-card { display: flex; flex-direction: column; gap: 4px; padding: 22px; border-radius: var(--r-lg); border: 1px solid var(--line-d); background: rgba(15, 20, 27, .7); transition: border-color .2s, transform .3s var(--ease); }
a.contact-card:hover { border-color: rgba(200, 240, 49, .45); transform: translateY(-3px); }
.contact-card .contact-icon { margin-bottom: 24px; }
.contact-card small { font-family: var(--f-mono); font-size: 11px; letter-spacing: .1em; text-transform: uppercase; color: var(--muted-d); }
.contact-card strong { font-weight: 600; color: var(--text-d); word-break: break-word; }
.page-contact .quote-section { border-top: 0; padding-top: 0; }
.map-wrap { background: var(--ink); line-height: 0; }
.map-wrap iframe { width: 100%; height: 420px; border: 0; filter: grayscale(1) invert(.92) contrast(.9); }

.hero-404 { padding-bottom: clamp(80px, 10vw, 140px); }
.hero-404 .lead { margin-top: 24px; }

/* ==========================================================================
   Footer
   ========================================================================== */
.site-footer { border-top: 1px solid var(--line-d); padding: clamp(64px, 8vw, 104px) 0 32px; }
.footer-top { display: flex; justify-content: space-between; align-items: flex-end; gap: 32px; flex-wrap: wrap; padding-bottom: clamp(48px, 6vw, 80px); border-bottom: 1px solid var(--line-d); }
.footer-big { font-family: var(--f-display); font-weight: 700; font-size: clamp(2.2rem, 5vw, 4.2rem); line-height: 1; letter-spacing: -.035em; color: var(--text-d); }
.footer-big em { font-style: normal; color: var(--accent); }
.footer-top-actions { display: flex; flex-wrap: wrap; gap: 12px; }
.footer-grid { display: grid; grid-template-columns: 1.4fr 1fr 1fr 1.3fr; gap: 40px; padding: 56px 0; }
.footer-brand p { margin-top: 18px; color: var(--muted-d); font-size: 15px; max-width: 36ch; }
.socials { display: flex; gap: 8px; margin-top: 24px; }
.socials a { width: 40px; height: 40px; border-radius: 12px; border: 1px solid var(--line-d-strong); display: grid; place-items: center; color: var(--muted-d); transition: color .2s, border-color .2s; }
.socials a:hover { color: var(--accent); border-color: var(--accent); }
.footer-h { font-family: var(--f-mono); font-size: 11.5px; letter-spacing: .12em; text-transform: uppercase; color: var(--muted-d); margin-bottom: 18px; }
.footer-links { display: grid; gap: 10px; }
.footer-links a { color: var(--text-d); font-size: 15px; transition: color .2s; }
.footer-links a:hover { color: var(--accent); }
.footer-contact { display: grid; gap: 12px; }
.footer-contact li { display: flex; gap: 12px; align-items: flex-start; font-size: 15px; color: var(--text-d); }
.footer-contact .icon { margin-top: 4px; color: var(--accent); }
.footer-contact a:hover { color: var(--accent); }
.footer-bottom { display: flex; justify-content: space-between; gap: 16px; flex-wrap: wrap; padding-top: 28px; border-top: 1px solid var(--line-d); font-size: 13.5px; color: var(--muted-d); }
.footer-bottom .mono { font-size: 12px; letter-spacing: .04em; }
@media (min-width: 721px) { .footer-bottom { padding-right: 76px; } }

/* Floating WhatsApp + mobile bar */
.wa-float {
  position: fixed; right: 22px; bottom: 22px; z-index: 40;
  display: inline-flex; align-items: center; gap: 0;
  height: 56px; padding: 0 16px; border-radius: 999px;
  background: var(--wa); color: #fff; font-weight: 600; font-size: 15px;
  box-shadow: 0 16px 40px -12px rgba(37, 211, 102, .6);
  transition: gap .3s var(--ease), padding .3s var(--ease), transform .3s var(--ease);
}
.wa-float .icon { width: 24px; height: 24px; }
.wa-float span { max-width: 0; overflow: hidden; white-space: nowrap; transition: max-width .35s var(--ease); }
.wa-float:hover { gap: 10px; padding: 0 22px 0 18px; transform: translateY(-2px); }
.wa-float:hover span { max-width: 140px; }
.mobile-bar { display: none; }

/* ==========================================================================
   Reveal animation
   ========================================================================== */
.js [data-reveal] { opacity: 0; transform: translateY(22px); transition: opacity .8s var(--ease), transform .8s var(--ease); transition-delay: var(--d, 0ms); }
.js [data-reveal].is-in { opacity: 1; transform: none; }
.js .why-card[data-reveal]:nth-child(even).is-in { transform: translateY(40px); }

.js .hero-copy > * { animation: rise .9s var(--ease) both; }
.js .hero-copy > *:nth-child(2) { animation-delay: .08s; }
.js .hero-copy > *:nth-child(3) { animation-delay: .16s; }
.js .hero-copy > *:nth-child(4) { animation-delay: .24s; }
.js .hero-copy > *:nth-child(5) { animation-delay: .32s; }
.js .hero .ops, .js .includes-card { animation: board-in 1.1s var(--ease) .2s both; }

@keyframes rise { from { opacity: 0; transform: translateY(22px); } to { opacity: 1; transform: none; } }
@keyframes board-in { from { opacity: 0; translate: 0 40px; } to { opacity: 1; translate: 0 0; } }
@keyframes ping { 0% { transform: scale(.6); opacity: 1; } 100% { transform: scale(1.8); opacity: 0; } }
@keyframes blink { 50% { opacity: .25; } }
@keyframes scan { to { top: 100%; } }
@keyframes grow { from { transform: scaleY(0); } }
@keyframes flow { to { stroke-dashoffset: -34; } }
@keyframes draw { to { stroke-dashoffset: 0; } }
@keyframes fade { to { opacity: 1; } }
@keyframes spin { to { transform: rotate(360deg); } }
@keyframes marquee { to { transform: translateX(-50%); } }
@keyframes car { 0%, 12% { transform: translateX(-70px); } 45%, 70% { transform: translateX(0); } 100% { transform: translateX(120px); } }
@keyframes walk { 0% { transform: translateX(-30px); } 100% { transform: translateX(170px); } }

/* ==========================================================================
   Responsive
   ========================================================================== */
@media (max-width: 1180px) {
  .hero-grid { grid-template-columns: 1fr; }
  .ops { transform: none; max-width: 760px; }
  .ops:hover { transform: none; }
  .svc-grid { grid-template-columns: 1fr 1fr; }
  .svc-card.is-feature { grid-column: 1 / -1; }
  .other-grid { grid-template-columns: repeat(2, 1fr); }
  .footer-grid { grid-template-columns: 1fr 1fr; }
}

@media (max-width: 1024px) {
  .nav-phone { display: none; }
  .nav-actions { margin-left: auto; }
  .nav-toggle { display: inline-flex; }
  .nav-links {
    position: fixed; inset: var(--header-h) 0 0 0; z-index: 49;
    flex-direction: column; align-items: stretch; gap: 0;
    padding: 16px var(--gutter) 32px; margin: 0;
    background: var(--ink); overflow-y: auto;
    opacity: 0; visibility: hidden; transform: translateY(-8px);
    transition: opacity .25s, transform .3s var(--ease), visibility .25s;
  }
  .nav-open .nav-links { opacity: 1; visibility: visible; transform: none; }
  .nav-open { overflow: hidden; }
  .nav-open .nav-toggle-open { display: none; }
  .nav-open .nav-toggle-close { display: inline; }
  .nav-link { width: 100%; justify-content: space-between; padding: 16px 4px; border-radius: 0; font-size: 20px; font-family: var(--f-display); font-weight: 600; color: var(--text-d); border-bottom: 1px solid var(--line-d); }
  .nav-link:hover, .nav-link.is-active, .is-active > .nav-link, .has-menu.is-open > .nav-link { background: none; }
  .mega { position: static; translate: none; width: 100%; padding: 0; background: none; border: 0; box-shadow: none; transform: none; display: none; opacity: 1; visibility: visible; }
  .mega::before { display: none; }
  .has-menu.is-open .mega { display: block; }
  .mega-grid { grid-template-columns: 1fr; padding: 8px 0; }
  .mega-link { padding: 12px 4px; }
  .nav-mobile-cta { display: grid; gap: 10px; margin-top: 28px; }
  .nav-quote { display: none; }

  .section-head-split { grid-template-columns: 1fr; }
  .pkg-grid { grid-template-columns: 1fr; max-width: 640px; }
  .process { grid-template-columns: 1fr 1fr; }
  .process-step:nth-child(2)::before { display: none; }
  .why-grid, .faq-grid, .quote-grid, .svc-hero-grid { grid-template-columns: 1fr; }
  .why-grid .section-head, .quote-intro { position: static; }
  .feat-grid { grid-template-columns: 1fr 1fr; }
  .contact-cards { grid-template-columns: 1fr 1fr; }
  .stats { grid-template-columns: 1fr 1fr; }
  .stat:nth-child(3) { border-left: 0; padding-left: 0; }
  .stat:nth-child(n+3) { border-top: 1px solid var(--line-d); }
}

@media (max-width: 720px) {
  :root { --header-h: 64px; }
  body { padding-bottom: 68px; }
  .brand-word { font-size: 18px; }
  .hero-actions .btn { flex: 1 1 auto; }
  .ops { padding: 8px; border-radius: 18px; }
  .ops-grid { grid-template-columns: 1fr 1fr; grid-template-areas: "cctv cctv" "ads net" "srv term"; gap: 8px; }
  .ops-top .ops-status { display: none; }
  .panel { padding: 10px; }
  .kpi span { font-size: 24px; }
  .term { font-size: 9.5px; min-height: 84px; }
  .svc-grid, .feat-grid, .why-cards, .process, .tags-panel, .other-grid, .contact-cards { grid-template-columns: 1fr; }
  .svc-card { min-height: 0; padding: 24px; }
  .svc-card.is-feature { flex-direction: column; }
  .mini-app { transform: none; }
  .why-card:nth-child(even), .js .why-card[data-reveal]:nth-child(even).is-in { transform: none; }
  .why-cards { padding-bottom: 0; }
  .process-step::before { display: none; }
  .process-no { margin-bottom: 24px; }
  .why-icon { margin-bottom: 28px; }
  .field-row { grid-template-columns: 1fr; }
  .faq-a { padding-right: 0; }
  .footer-grid { grid-template-columns: 1fr; gap: 32px; }
  .footer-top-actions .btn { flex: 1 1 auto; }
  .wa-float { display: none; }
  .mobile-bar {
    display: grid; grid-template-columns: 1fr 1.25fr 1.3fr; gap: 6px;
    position: fixed; left: 0; right: 0; bottom: 0; z-index: 45;
    padding: 8px 10px calc(8px + env(safe-area-inset-bottom));
    background: rgba(10, 13, 18, .92); backdrop-filter: blur(12px); -webkit-backdrop-filter: blur(12px);
    border-top: 1px solid var(--line-d);
  }
  .mobile-bar a { display: flex; align-items: center; justify-content: center; gap: 8px; height: 48px; border-radius: 12px; border: 1px solid var(--line-d-strong); color: var(--text-d); font-weight: 600; font-size: 14px; white-space: nowrap; }
  .mobile-bar .icon { width: 18px; height: 18px; }
  .mobile-bar a:nth-child(2) .icon { color: var(--wa); }
  .mobile-bar a.is-accent { background: var(--accent); color: var(--accent-ink); border-color: var(--accent); }
}

@media (max-width: 420px) {
  .cams { gap: 4px; }
  .cam-l, .cam-t, .cam-tag { font-size: 7px; }
  .stats { grid-template-columns: 1fr; }
  .stat, .stat + .stat { border-left: 0; padding-left: 0; border-top: 1px solid var(--line-d); padding-bottom: 24px; }
  .stat:first-child { border-top: 0; }
}

@media (prefers-reduced-motion: reduce) {
  *, *::before, *::after { animation-duration: .01ms !important; animation-iteration-count: 1 !important; transition-duration: .01ms !important; scroll-behavior: auto !important; }
  .js [data-reveal] { opacity: 1; transform: none; }
  .marquee-track { animation: none; }
  .ops { transform: none; }
}
