/* =========================================================
   Firelytics Vision — marketing site
   ========================================================= */
:root {
  --bg: #0b0b0d;
  --bg-2: #111114;
  --surface: #16161a;
  --surface-2: #1c1c21;
  --line: rgba(255, 255, 255, .08);
  --line-2: rgba(255, 255, 255, .14);
  --text: #f3efe6;
  --text-2: #b9b4ab;
  --muted: #7e7a73;
  --amber: #f2a93b;
  --amber-2: #ffc46b;
  --orange: #ff7a2f;
  --red: #ff4b3a;
  --green: #2fd67b;
  --blue: #3d8bff;
  --fire: linear-gradient(100deg, #ffc46b 0%, #ff7a2f 55%, #ff4b3a 100%);
  --radius: 18px;
  --radius-sm: 10px;
  --shadow: 0 30px 80px -20px rgba(0, 0, 0, .7);
  --font: "Inter", system-ui, -apple-system, "Segoe UI", sans-serif;
  --display: "Space Grotesk", var(--font);
  --mono: "JetBrains Mono", ui-monospace, Consolas, monospace;
  --ease: cubic-bezier(.2, .7, .2, 1);
  color-scheme: dark;
}

*, *::before, *::after { box-sizing: border-box; }
html { scroll-behavior: smooth; scroll-padding-top: 80px; }
body {
  margin: 0;
  background: var(--bg);
  color: var(--text);
  font: 400 16px/1.6 var(--font);
  -webkit-font-smoothing: antialiased;
  overflow-x: hidden;
}
img { max-width: 100%; height: auto; display: block; }
a { color: inherit; text-decoration: none; }
code {
  font-family: var(--mono);
  font-size: .86em;
  background: rgba(255, 255, 255, .06);
  border: 1px solid var(--line);
  padding: .08em .4em;
  border-radius: 6px;
  color: var(--amber-2);
}
svg { stroke: currentColor; fill: none; stroke-width: 1.8; stroke-linecap: round; stroke-linejoin: round; }
::selection { background: var(--amber); color: #111; }

.container { width: min(1200px, 100% - 40px); margin-inline: auto; }
.text-fire {
  background: var(--fire);
  -webkit-background-clip: text; background-clip: text;
  color: transparent;
}
.text-muted { color: var(--muted); }

#embers {
  position: fixed; inset: 0;
  width: 100%; height: 100%;
  pointer-events: none;
  z-index: 0;
  opacity: .7;
}
main, .footer, .nav { position: relative; z-index: 1; }

/* ---------- eyebrow / type ---------- */
.eyebrow {
  display: inline-flex; align-items: center; gap: 10px;
  font: 600 12px/1 var(--mono);
  letter-spacing: .22em;
  text-transform: uppercase;
  color: var(--amber);
  margin: 0 0 18px;
}
.eyebrow--line::before {
  content: ""; width: 34px; height: 2px; background: var(--orange); border-radius: 2px;
}
.live-dot {
  width: 8px; height: 8px; border-radius: 50%;
  background: var(--red);
  box-shadow: 0 0 0 0 rgba(255, 75, 58, .7);
  animation: pulse 1.6s infinite;
}
@keyframes pulse {
  0% { box-shadow: 0 0 0 0 rgba(255, 75, 58, .6); }
  70% { box-shadow: 0 0 0 10px rgba(255, 75, 58, 0); }
  100% { box-shadow: 0 0 0 0 rgba(255, 75, 58, 0); }
}

/* ---------- buttons ---------- */
.btn {
  display: inline-flex; align-items: center; justify-content: center; gap: 10px;
  padding: 14px 24px;
  border-radius: 999px;
  font: 600 15px/1 var(--display);
  border: 1px solid transparent;
  cursor: pointer;
  transition: transform .25s var(--ease), box-shadow .25s var(--ease), background .25s, border-color .25s;
  white-space: nowrap;
}
.btn svg { width: 18px; height: 18px; transition: transform .25s var(--ease); }
.btn:hover svg { transform: translateX(3px); }
.btn--primary {
  background: var(--fire);
  color: #1a0d05;
  box-shadow: 0 10px 30px -8px rgba(255, 122, 47, .6), inset 0 1px 0 rgba(255, 255, 255, .35);
}
.btn--primary:hover { transform: translateY(-2px); box-shadow: 0 16px 40px -8px rgba(255, 122, 47, .75), inset 0 1px 0 rgba(255, 255, 255, .35); }
.btn--ghost { border-color: var(--line-2); color: var(--text); background: rgba(255, 255, 255, .03); }
.btn--ghost:hover { border-color: var(--amber); background: rgba(242, 169, 59, .08); }
.btn--sm { padding: 10px 18px; font-size: 14px; }
.btn--lg { padding: 18px 34px; font-size: 17px; }
.btn:focus-visible, a:focus-visible, button:focus-visible, input:focus-visible {
  outline: 2px solid var(--amber); outline-offset: 3px;
}

/* ---------- nav ---------- */
.nav {
  position: fixed; top: 0; left: 0; right: 0;
  z-index: 50;
  transition: background .3s, border-color .3s, backdrop-filter .3s;
  border-bottom: 1px solid transparent;
}
.nav.is-scrolled {
  background: rgba(11, 11, 13, .72);
  backdrop-filter: blur(16px) saturate(140%);
  -webkit-backdrop-filter: blur(16px) saturate(140%);
  border-bottom-color: var(--line);
}
.nav__inner { display: flex; align-items: center; justify-content: space-between; height: 72px; gap: 24px; }
.brand { display: flex; align-items: center; gap: 10px; }
.brand__mark { width: 34px; height: 34px; color: var(--amber); stroke: none; }
.brand__mark path:first-child { stroke: none; }
.brand__name { font: 700 20px/1 var(--display); letter-spacing: -.01em; }
.brand__name em { font-style: normal; color: var(--amber); }
.nav__links { display: flex; gap: 30px; }
.nav__links a { font-size: 14.5px; color: var(--text-2); position: relative; transition: color .2s; }
.nav__links a::after {
  content: ""; position: absolute; left: 0; bottom: -6px; height: 2px; width: 100%;
  background: var(--fire); transform: scaleX(0); transform-origin: left; transition: transform .3s var(--ease);
}
.nav__links a:hover, .nav__links a.is-active { color: var(--text); }
.nav__links a:hover::after, .nav__links a.is-active::after { transform: scaleX(1); }
.nav__cta { display: flex; align-items: center; gap: 12px; }
.nav__toggle {
  display: none; width: 42px; height: 42px; border-radius: 12px;
  background: rgba(255, 255, 255, .05); border: 1px solid var(--line-2);
  cursor: pointer; position: relative;
}
.nav__toggle span {
  position: absolute; left: 11px; right: 11px; height: 2px; background: var(--text);
  border-radius: 2px; transition: transform .3s var(--ease), top .3s var(--ease);
}
.nav__toggle span:first-child { top: 15px; }
.nav__toggle span:last-child { top: 25px; }
.nav.is-open .nav__toggle span:first-child { top: 20px; transform: rotate(45deg); }
.nav.is-open .nav__toggle span:last-child { top: 20px; transform: rotate(-45deg); }

/* ---------- hero ---------- */
.hero {
  position: relative;
  padding: 150px 0 110px;
  min-height: min(100svh, 980px);
  display: flex; align-items: center;
  overflow: hidden;
}
.hero::before {
  content: ""; 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;
  mask-image: radial-gradient(ellipse 70% 60% at 50% 40%, #000 30%, transparent 75%);
  -webkit-mask-image: radial-gradient(ellipse 70% 60% at 50% 40%, #000 30%, transparent 75%);
  opacity: .5;
}
.hero__glow {
  position: absolute; width: 900px; height: 900px; right: -200px; bottom: -420px;
  background: radial-gradient(circle, rgba(255, 106, 40, .35), rgba(255, 75, 58, .08) 45%, transparent 70%);
  filter: blur(30px);
  animation: breathe 7s ease-in-out infinite;
}
@keyframes breathe { 50% { transform: scale(1.12); opacity: .8; } }
.hero__grid {
  position: relative;
  display: grid; grid-template-columns: 1fr 1.1fr; gap: 56px; align-items: center;
}
.hero__title {
  font: 700 clamp(42px, 5.2vw, 74px)/1 var(--display);
  letter-spacing: -.035em;
  margin: 0 0 26px;
}
.hero__lead { font-size: 18px; color: var(--text-2); max-width: 540px; margin: 0 0 34px; }
.hero__lead strong { color: var(--text); font-weight: 600; }
.hero__actions { display: flex; flex-wrap: wrap; gap: 14px; margin-bottom: 36px; }
.hero__chips { list-style: none; padding: 0; margin: 0; display: flex; flex-wrap: wrap; gap: 10px; }
.hero__chips li {
  font: 500 13px/1 var(--mono); color: var(--text-2);
  padding: 10px 14px; border: 1px solid var(--line); border-radius: 999px; background: rgba(255, 255, 255, .02);
}
.hero__chips b { color: var(--amber-2); font-weight: 600; }

.hero__visual { position: relative; perspective: 1600px; }
.monitor {
  border-radius: 16px;
  background: #0e0e11;
  border: 1px solid var(--line-2);
  box-shadow: var(--shadow), 0 0 0 1px rgba(0, 0, 0, .5), 0 0 120px -30px rgba(255, 106, 40, .45);
  overflow: hidden;
  transform: rotateY(-9deg) rotateX(4deg);
  transform-style: preserve-3d;
  transition: transform .6s var(--ease);
}
.monitor__bar {
  display: flex; align-items: center; gap: 7px; padding: 11px 14px;
  border-bottom: 1px solid var(--line); background: #131317;
}
.monitor__bar span { width: 10px; height: 10px; border-radius: 50%; background: #2a2a30; }
.monitor__bar span:first-child { background: #ff5f57; }
.monitor__bar span:nth-child(2) { background: #febc2e; }
.monitor__bar span:nth-child(3) { background: #28c840; }
.monitor__bar p { margin: 0 0 0 10px; font: 500 12px/1 var(--mono); color: var(--muted); }
.monitor__screen { position: relative; }
.scanline {
  position: absolute; left: 0; right: 0; height: 30%;
  background: linear-gradient(180deg, transparent, rgba(242, 169, 59, .08) 70%, rgba(242, 169, 59, .35) 99%, transparent);
  animation: scan 4.5s linear infinite;
  mix-blend-mode: screen;
}
@keyframes scan { from { top: -30%; } to { top: 100%; } }

.float-card {
  position: absolute; display: flex; align-items: center; gap: 12px;
  padding: 12px 16px 12px 12px; border-radius: 14px;
  background: rgba(20, 20, 24, .82);
  border: 1px solid var(--line-2);
  backdrop-filter: blur(14px); -webkit-backdrop-filter: blur(14px);
  box-shadow: 0 20px 50px -15px rgba(0, 0, 0, .8);
}
.float-card__icon {
  width: 40px; height: 40px; border-radius: 10px; display: grid; place-items: center;
  background: rgba(255, 75, 58, .16); color: var(--red);
}
.float-card__icon svg { width: 22px; height: 22px; }
.float-card__icon--ok { background: rgba(47, 214, 123, .14); color: var(--green); }
.float-card__title { margin: 0; font: 600 14px/1.2 var(--display); }
.float-card__meta { margin: 3px 0 0; font: 400 12px/1.2 var(--mono); color: var(--text-2); }
.float-card--alarm { left: -34px; bottom: 22%; animation: float 6s ease-in-out infinite, alarmGlow 1.6s ease-in-out infinite; border-color: rgba(255, 75, 58, .45); }
.float-card--sent { right: -18px; bottom: -28px; animation: float 6s ease-in-out -3s infinite; }
@keyframes float { 50% { transform: translateY(-10px); } }
@keyframes alarmGlow { 50% { box-shadow: 0 20px 50px -15px rgba(0, 0, 0, .8), 0 0 34px -4px rgba(255, 75, 58, .55); } }

/* ---------- stats ---------- */
.stats {
  padding: 110px 0;
  border-top: 1px solid var(--line);
  border-bottom: 1px solid var(--line);
  background: radial-gradient(ellipse 60% 80% at 20% 100%, rgba(255, 90, 40, .12), transparent 60%), var(--bg-2);
}
.stats__grid { display: grid; grid-template-columns: 1.4fr 1fr 1fr; gap: 48px; margin-top: 20px; }
.stat { border-left: 1px solid var(--line-2); padding-left: 28px; }
.stat:first-child { border-left: 0; padding-left: 0; }
.stat__kicker { margin: 0; font: 700 13px/1 var(--display); color: var(--orange); text-transform: uppercase; letter-spacing: .08em; }
.stat__num {
  margin: 6px 0 12px;
  font: 700 clamp(56px, 8vw, 120px)/.9 var(--display);
  letter-spacing: -.04em;
  background: linear-gradient(180deg, #fff 20%, #ffc49a);
  -webkit-background-clip: text; background-clip: text; color: transparent;
  display: flex; align-items: baseline; gap: 12px;
  font-variant-numeric: tabular-nums;
}
.stat__num small { font-size: .32em; letter-spacing: 0; text-transform: uppercase; }
.stat__num--amber { background: linear-gradient(180deg, #ffb070, var(--orange)); -webkit-background-clip: text; background-clip: text; }
.stat__num--red { background: linear-gradient(180deg, #ff7d6b, var(--red)); -webkit-background-clip: text; background-clip: text; }
.stat__label { margin: 0; font-size: 18px; color: var(--text); max-width: 300px; }
.stat__src { margin: 10px 0 0; font-size: 13px; color: var(--muted); }
.stats__punch {
  margin: 80px 0 0; text-align: center;
  font: 500 clamp(24px, 3.4vw, 40px)/1.2 var(--display); letter-spacing: -.02em;
}

/* ---------- sections ---------- */
.section { padding: 130px 0; position: relative; }
.section--alt { background: var(--bg-2); border-top: 1px solid var(--line); border-bottom: 1px solid var(--line); }
.section__head { max-width: 760px; margin-bottom: 64px; }
.section__title {
  font: 700 clamp(34px, 4.6vw, 56px)/1.04 var(--display);
  letter-spacing: -.03em; margin: 0 0 20px;
}
.section__lead { font-size: 18px; color: var(--text-2); margin: 0; max-width: 640px; }

/* ---------- pipeline ---------- */
.pipeline {
  list-style: none; padding: 0; margin: 0 0 56px;
  display: grid; grid-template-columns: repeat(5, 1fr); gap: 16px;
  counter-reset: s;
  position: relative;
}
.pipeline::before {
  content: ""; position: absolute; top: 67px; left: 8%; right: 8%; height: 2px;
  background: linear-gradient(90deg, transparent, var(--amber), var(--red), transparent);
  opacity: .35;
}
.step {
  position: relative;
  padding: 26px 22px 24px;
  background: var(--surface);
  border: 1px solid var(--line);
  border-radius: var(--radius);
  transition: transform .35s var(--ease), border-color .35s, background .35s;
}
.step:hover { transform: translateY(-6px); border-color: rgba(242, 169, 59, .4); background: var(--surface-2); }
.step__n { font: 600 12px/1 var(--mono); color: var(--muted); }
.step__icon {
  width: 48px; height: 48px; margin: 14px 0 18px;
  border-radius: 14px; display: grid; place-items: center;
  background: rgba(242, 169, 59, .1); color: var(--amber);
  border: 1px solid rgba(242, 169, 59, .25);
  position: relative; z-index: 1;
}
.step__icon svg { width: 24px; height: 24px; }
.step__icon--hot { background: rgba(255, 75, 58, .14); color: var(--red); border-color: rgba(255, 75, 58, .35); }
.step h3 { margin: 0 0 8px; font: 600 20px/1.2 var(--display); }
.step p { margin: 0; font-size: 14.5px; color: var(--text-2); }
.step code { font-size: .78em; }

/* ---------- simulator ---------- */
.sim {
  padding: 36px;
  border-radius: 24px;
  background:
    radial-gradient(ellipse 50% 90% at 100% 0%, rgba(255, 90, 40, .12), transparent 60%),
    var(--surface);
  border: 1px solid var(--line-2);
}
.sim__title { font: 600 26px/1.2 var(--display); margin: 0 0 10px; letter-spacing: -.01em; }
.sim__lead { color: var(--text-2); margin: 0 0 28px; max-width: 720px; }
.sim__controls { display: flex; flex-wrap: wrap; gap: 28px; align-items: flex-end; margin-bottom: 28px; }
.range { display: flex; flex-direction: column; gap: 10px; min-width: 220px; flex: 1; max-width: 320px; }
.range span { display: flex; justify-content: space-between; font: 500 13px/1 var(--mono); color: var(--text-2); }
.range output { color: var(--amber-2); font-weight: 600; }
input[type=range] {
  -webkit-appearance: none; appearance: none; width: 100%; height: 6px; border-radius: 6px;
  background: linear-gradient(90deg, var(--amber) var(--p, 30%), rgba(255, 255, 255, .1) var(--p, 30%));
  cursor: pointer;
}
input[type=range]::-webkit-slider-thumb {
  -webkit-appearance: none; width: 20px; height: 20px; border-radius: 50%;
  background: #fff; border: 4px solid var(--orange); box-shadow: 0 2px 10px rgba(0, 0, 0, .5);
}
input[type=range]::-moz-range-thumb {
  width: 14px; height: 14px; border-radius: 50%; background: #fff; border: 4px solid var(--orange);
}
.sim__track {
  position: relative; height: 92px; border-radius: 14px;
  background: #0d0d10; border: 1px solid var(--line);
  overflow: hidden;
}
.sim__track .tick {
  position: absolute; bottom: 12px; width: 1.1%; margin-left: -.55%;
  border-radius: 3px 3px 1px 1px; background: rgba(255, 255, 255, .08);
  transition: background .2s, box-shadow .2s;
}
.sim__track .tick.hit { background: rgba(255, 122, 47, .45); }
.sim__track .tick.hit.is-past { background: var(--orange); box-shadow: 0 0 10px rgba(255, 122, 47, .6); }
.sim__track .tick.is-alarm { background: var(--red) !important; box-shadow: 0 0 16px rgba(255, 75, 58, .9) !important; }
.sim__window {
  position: absolute; top: 0; bottom: 0; left: 0;
  background: rgba(242, 169, 59, .08);
  border-right: 1px dashed rgba(242, 169, 59, .6);
  border-left: 1px dashed rgba(242, 169, 59, .25);
  opacity: 0; transition: opacity .3s;
}
.sim__cursor {
  position: absolute; top: 0; bottom: 0; left: 0; width: 2px; background: var(--text);
  box-shadow: 0 0 12px rgba(255, 255, 255, .6); opacity: 0;
}
.sim__track .flag {
  position: absolute; top: 10px; transform: translateX(-50%);
  font: 700 11px/1 var(--mono); letter-spacing: .08em;
  padding: 6px 8px; border-radius: 6px; white-space: nowrap;
  animation: pop .35s var(--ease);
}
.flag--false { background: rgba(255, 255, 255, .1); color: var(--text-2); }
.flag--alarm { background: var(--red); color: #fff; box-shadow: 0 0 20px rgba(255, 75, 58, .6); }
@keyframes pop { from { transform: translate(-50%, 6px) scale(.8); opacity: 0; } }
.sim__axis { display: flex; justify-content: space-between; margin: 10px 2px 0; font: 500 11px/1 var(--mono); color: var(--muted); }
.sim__result {
  margin-top: 22px; padding: 16px 18px; border-radius: 12px;
  background: rgba(255, 255, 255, .03); border: 1px solid var(--line);
  color: var(--text-2); font-size: 15px;
}
.sim__result.is-good { border-color: rgba(47, 214, 123, .4); background: rgba(47, 214, 123, .06); }
.sim__result.is-bad { border-color: rgba(255, 75, 58, .45); background: rgba(255, 75, 58, .07); }
.sim__result b { color: var(--text); }

/* ---------- zones ---------- */
.zones { display: grid; grid-template-columns: .85fr 1.15fr; gap: 64px; align-items: center; }
.checks { list-style: none; padding: 0; margin: 30px 0; display: grid; gap: 12px; }
.checks li { position: relative; padding-left: 32px; color: var(--text-2); }
.checks li::before {
  content: ""; position: absolute; left: 0; top: 3px; width: 20px; height: 20px; border-radius: 50%;
  background: rgba(242, 169, 59, .14) url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 24 24' fill='none' stroke='%23f2a93b' stroke-width='3' stroke-linecap='round' stroke-linejoin='round'%3E%3Cpath d='m5 12 5 5L20 7'/%3E%3C/svg%3E") center/12px no-repeat;
}
.hint { display: flex; align-items: center; gap: 10px; font: 500 13px/1.4 var(--mono); color: var(--amber-2); margin: 0; }
.hint svg { width: 20px; height: 20px; flex: none; }
.roi__frame {
  position: relative; border-radius: 18px; overflow: hidden;
  border: 1px solid var(--line-2); box-shadow: var(--shadow);
  user-select: none; touch-action: none;
}
.roi__frame img { width: 100%; height: auto; }
.roi__svg { position: absolute; inset: 0; width: 100%; height: 100%; }
.roi__svg .mask { fill: rgba(5, 5, 8, .58); fill-rule: evenodd; }
.roi__svg .zone { fill: rgba(61, 139, 255, .06); stroke: var(--blue); stroke-width: 2.5; stroke-dasharray: 10 6; vector-effect: non-scaling-stroke; animation: dash 20s linear infinite; }
@keyframes dash { to { stroke-dashoffset: -400; } }
.roi__svg .handle { fill: #fff; stroke: var(--blue); stroke-width: 3; cursor: grab; vector-effect: non-scaling-stroke; transition: r .15s; }
.roi__svg .handle:hover, .roi__svg .handle.is-drag { r: 13; cursor: grabbing; }
.roi__svg .box { fill: none; stroke-width: 3; vector-effect: non-scaling-stroke; transition: stroke .25s; }
.roi__svg .box.in { stroke: var(--orange); }
.roi__svg .box.out { stroke: rgba(255, 255, 255, .45); stroke-dasharray: 5 5; }
.roi__svg .lbl rect { transition: fill .25s; }
.roi__svg .lbl.in rect { fill: var(--orange); }
.roi__svg .lbl.out rect { fill: rgba(60, 60, 66, .9); }
.roi__svg .lbl text { font: 700 17px var(--mono); fill: #fff; }
.roi__svg .center { fill: #fff; }
.roi__tag {
  position: absolute; left: 14px; top: 14px; display: flex; align-items: center; gap: 8px;
  font: 600 12px/1 var(--mono); padding: 8px 12px; border-radius: 999px;
  background: rgba(0, 0, 0, .6); backdrop-filter: blur(6px);
}
.roi__legend { display: flex; flex-wrap: wrap; gap: 10px; margin-top: 16px; }
.pill {
  display: inline-flex; align-items: center; gap: 8px; padding: 8px 12px; border-radius: 999px;
  font: 500 12.5px/1 var(--mono); border: 1px solid var(--line-2); color: var(--text-2);
}
.pill i { width: 8px; height: 8px; border-radius: 50%; }
.pill--in { border-color: rgba(255, 122, 47, .5); color: var(--text); }
.pill--in i { background: var(--orange); box-shadow: 0 0 8px var(--orange); }
.pill--out i { background: var(--muted); }

/* ---------- bento ---------- */
.bento { display: grid; grid-template-columns: repeat(3, 1fr); gap: 18px; }
.card {
  position: relative; padding: 30px; border-radius: 22px;
  background: var(--surface); border: 1px solid var(--line);
  overflow: hidden;
  transition: border-color .35s, transform .35s var(--ease);
}
.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%), rgba(255, 122, 47, .13), transparent 45%);
  opacity: 0; transition: opacity .35s;
}
.card:hover { border-color: rgba(242, 169, 59, .3); }
.card:hover::before { opacity: 1; }
.card--wide { grid-column: span 2; display: grid; grid-template-columns: 1.1fr 1fr; gap: 30px; align-items: center; }
.card h3 { font: 600 21px/1.2 var(--display); margin: 0 0 10px; }
.card p { margin: 0; color: var(--text-2); font-size: 15px; }
.card__icon {
  width: 46px; height: 46px; border-radius: 13px; display: grid; place-items: center; margin-bottom: 22px;
  background: rgba(242, 169, 59, .1); color: var(--amber); border: 1px solid rgba(242, 169, 59, .22);
}
.card__icon svg { width: 23px; height: 23px; }
.card__icon--hot { background: rgba(255, 75, 58, .12); color: var(--red); border-color: rgba(255, 75, 58, .3); }
.keys { display: flex; flex-wrap: wrap; gap: 8px; margin-top: 18px; }
.keys span { font: 500 12px/1 var(--mono); color: var(--text-2); display: inline-flex; align-items: center; gap: 6px; }
kbd {
  font: 600 11.5px/1 var(--mono); color: var(--text); padding: 5px 7px; border-radius: 6px;
  background: #0d0d10; border: 1px solid var(--line-2); border-bottom-width: 2px;
}
.card__icon--ok { background: rgba(47, 214, 123, .1); color: var(--green); border-color: rgba(47, 214, 123, .28); }

.layouts { display: grid; grid-template-columns: repeat(5, 1fr); gap: 10px; }
.layout {
  aspect-ratio: 16/10; display: grid; gap: 3px; padding: 4px;
  border-radius: 8px; background: #0d0d10; border: 1px solid var(--line-2);
  transition: border-color .3s, transform .3s var(--ease);
}
.layout i { background: rgba(61, 139, 255, .22); border-radius: 2px; }
.layout.is-on { border-color: var(--blue); transform: translateY(-4px); box-shadow: 0 10px 20px -8px rgba(61, 139, 255, .5); }
.layout.is-on i { background: rgba(61, 139, 255, .55); }
.l1 { grid-template-columns: 1fr; }
.l4 { grid-template-columns: repeat(2, 1fr); }
.l9 { grid-template-columns: repeat(3, 1fr); }
.l16 { grid-template-columns: repeat(4, 1fr); }
.l15 { grid-template-columns: repeat(3, 1fr); grid-template-rows: repeat(3, 1fr); }
.l15 i:first-child { grid-column: span 2; grid-row: span 2; }

.brandswap {
  border-radius: 14px; background: #0d0d10; border: 1px solid var(--line-2); padding: 22px;
}
.brandswap__row { display: flex; align-items: center; gap: 12px; }
.brandswap__logo { font-size: 26px; }
.brandswap__name { font: 700 22px/1.1 var(--display); transition: opacity .3s, transform .3s var(--ease); }
.brandswap__name.is-out { opacity: 0; transform: translateY(8px); }
.brandswap__meta { margin-top: 12px; font: 500 12px/1 var(--mono); color: var(--muted); }

/* ---------- gallery ---------- */
.gallery {
  display: grid; grid-template-columns: repeat(3, 1fr); grid-auto-rows: 230px; gap: 16px;
}
.shot {
  position: relative; padding: 0; border: 1px solid var(--line-2); border-radius: 18px; overflow: hidden;
  background: #000; cursor: zoom-in; font: inherit; color: inherit;
}
.shot--tall { grid-column: span 2; grid-row: span 2; }
.shot img { width: 100%; height: 100% !important; object-fit: cover; transition: transform .7s var(--ease), filter .5s; filter: saturate(.9); }
.shot:hover img { transform: scale(1.05); filter: saturate(1.15); }
.shot::after {
  content: ""; position: absolute; inset: 0;
  background: linear-gradient(180deg, transparent 50%, rgba(0, 0, 0, .85));
}
.shot__cap {
  position: absolute; left: 16px; bottom: 14px; z-index: 1;
  display: flex; align-items: center; gap: 10px; font: 500 13px/1 var(--mono); color: var(--text-2);
}
.shot__cap b { background: var(--red); color: #fff; padding: 5px 8px; border-radius: 6px; font-weight: 700; }

.lightbox {
  position: fixed; inset: 0; z-index: 100; display: grid; place-items: center;
  background: rgba(0, 0, 0, .88); backdrop-filter: blur(10px); padding: 24px;
  animation: fade .25s;
}
.lightbox[hidden] { display: none; }
@keyframes fade { from { opacity: 0; } }
.lightbox figure { margin: 0; max-width: 1200px; width: 100%; }
.lightbox img { width: 100%; border-radius: 14px; border: 1px solid var(--line-2); }
.lightbox figcaption { margin-top: 14px; font: 500 14px/1.4 var(--mono); color: var(--text-2); text-align: center; }
.lightbox__close {
  position: absolute; top: 18px; right: 22px; width: 46px; height: 46px; border-radius: 50%;
  background: rgba(255, 255, 255, .08); border: 1px solid var(--line-2); color: #fff; font-size: 28px; line-height: 1; cursor: pointer;
}

/* ---------- alerts ---------- */
.alerts { display: grid; grid-template-columns: 1fr 380px; gap: 80px; align-items: center; }
.channels { display: grid; gap: 10px; margin-top: 34px; }
.channel {
  display: flex; align-items: center; gap: 14px; padding: 14px 18px; border-radius: 14px;
  background: var(--surface); border: 1px solid var(--line); color: var(--text-2); font-size: 15px;
  transition: border-color .3s, color .3s, transform .3s var(--ease);
}
.channel__dot { width: 10px; height: 10px; border-radius: 50%; background: var(--muted); transition: background .3s, box-shadow .3s; flex: none; }
.channel.is-lit { color: var(--text); border-color: rgba(255, 122, 47, .45); transform: translateX(6px); }
.channel.is-lit .channel__dot { background: var(--orange); box-shadow: 0 0 12px var(--orange); }

.phone {
  width: 100%; max-width: 360px; margin-inline: auto;
  aspect-ratio: 9/18; border-radius: 44px; padding: 14px;
  background: linear-gradient(160deg, #26262c, #111114);
  border: 1px solid var(--line-2);
  box-shadow: var(--shadow), 0 0 100px -30px rgba(255, 106, 40, .4);
  position: relative; display: flex; flex-direction: column;
}
.phone__notch { position: absolute; top: 22px; left: 50%; transform: translateX(-50%); width: 90px; height: 24px; border-radius: 14px; background: #000; z-index: 2; }
.phone__head {
  display: flex; align-items: center; gap: 10px; padding: 52px 16px 14px;
  background: #17212b; border-radius: 32px 32px 0 0;
}
.phone__head img { width: 36px; height: 36px; border-radius: 50%; }
.phone__head b { display: block; font: 600 14px/1.2 var(--display); }
.phone__head small { color: #7d8b99; font-size: 12px; }
.phone__chat {
  flex: 1; background: #0e1621; border-radius: 0 0 32px 32px; padding: 14px 12px;
  display: flex; flex-direction: column; justify-content: flex-end; gap: 10px; overflow: hidden;
}
.msg {
  background: #182533; border-radius: 14px 14px 14px 4px; padding: 10px 12px 8px; max-width: 92%;
  font-size: 13px; line-height: 1.45; position: relative;
  opacity: 0; transform: translateY(14px) scale(.97);
  transition: opacity .5s var(--ease), transform .5s var(--ease);
}
.msg.is-in { opacity: 1; transform: none; }
.msg p { margin: 0; }
.msg time { display: block; text-align: right; font-size: 10.5px; color: #6c7883; margin-top: 2px; }
.msg--img { padding: 4px 4px 8px; }
.msg--img img { border-radius: 11px 11px 4px 4px; margin-bottom: 8px; }
.msg--img p, .msg--img time { padding: 0 8px; }
.msg--ok { background: #1c3326; }

/* ---------- uses ---------- */
.uses { display: grid; grid-template-columns: repeat(6, 1fr); gap: 14px; }
.use {
  padding: 24px 20px; border-radius: 18px; background: var(--surface); border: 1px solid var(--line);
  transition: transform .35s var(--ease), border-color .35s;
}
.use:hover { transform: translateY(-6px); border-color: rgba(242, 169, 59, .35); }
.use span { font-size: 30px; display: block; margin-bottom: 14px; }
.use h3 { margin: 0 0 6px; font: 600 17px/1.2 var(--display); }
.use p { margin: 0; font-size: 13.5px; color: var(--text-2); }

/* ---------- specs ---------- */
.specs { display: grid; grid-template-columns: 1fr 1fr; gap: 64px; align-items: start; }
.spec-table { margin: 0; border: 1px solid var(--line); border-radius: 18px; overflow: hidden; background: var(--surface); }
.spec-table div { display: grid; grid-template-columns: 150px 1fr; gap: 16px; padding: 16px 22px; border-bottom: 1px solid var(--line); }
.spec-table div:last-child { border-bottom: 0; }
.spec-table dt { font: 500 12.5px/1.5 var(--mono); color: var(--muted); text-transform: uppercase; letter-spacing: .06em; }
.spec-table dd { margin: 0; font-weight: 500; }

/* ---------- CTA ---------- */
.cta { position: relative; padding: 150px 0; overflow: hidden; text-align: center; border-top: 1px solid var(--line); }
.cta__glow {
  position: absolute; left: 50%; bottom: -380px; width: 1100px; height: 700px; transform: translateX(-50%);
  background: radial-gradient(ellipse, rgba(255, 106, 40, .32), transparent 65%); filter: blur(20px);
}
.cta__inner { position: relative; display: flex; flex-direction: column; align-items: center; padding: 70px 20px; }
.corners i { position: absolute; width: 44px; height: 44px; border: 2px solid rgba(255, 255, 255, .7); }
.corners i:nth-child(1) { top: 0; left: 0; border-right: 0; border-bottom: 0; }
.corners i:nth-child(2) { top: 0; right: 0; border-left: 0; border-bottom: 0; }
.corners i:nth-child(3) { bottom: 0; left: 0; border-right: 0; border-top: 0; }
.corners i:nth-child(4) { bottom: 0; right: 0; border-left: 0; border-top: 0; }
.cta__logo { width: 88px; height: 88px; border-radius: 22px; margin-bottom: 28px; box-shadow: 0 0 60px -10px rgba(255, 140, 50, .6); }
.cta__title { font: 700 clamp(38px, 5.6vw, 72px)/1.02 var(--display); letter-spacing: -.035em; margin: 0 0 20px; }
.cta .section__lead { margin: 0 auto 44px; }
.contact { display: flex; flex-wrap: wrap; justify-content: center; gap: 18px; margin-bottom: 44px; }
.contact__item {
  display: flex; align-items: center; gap: 16px; text-align: left;
  padding: 16px 26px 16px 16px; border-radius: 18px; background: rgba(255, 255, 255, .03); border: 1px solid var(--line-2);
  transition: border-color .3s, transform .3s var(--ease);
}
.contact__item:hover { border-color: var(--amber); transform: translateY(-3px); }
.contact__icon { width: 52px; height: 52px; border-radius: 50%; border: 2px solid var(--amber); color: var(--amber); display: grid; place-items: center; }
.contact__icon svg { width: 22px; height: 22px; }
.contact__item small { display: block; font: 600 11px/1 var(--mono); letter-spacing: .2em; text-transform: uppercase; color: var(--muted); margin-bottom: 6px; }
.contact__item > span:last-child { font: 600 22px/1.1 var(--display); }

/* ---------- footer ---------- */
.footer { border-top: 1px solid var(--line); padding: 30px 0; background: var(--bg); }
.footer__inner { display: flex; flex-wrap: wrap; align-items: center; justify-content: space-between; gap: 16px; }
.footer__by { display: flex; align-items: center; gap: 10px; margin: 0; color: var(--text-2); }
.footer__by img { border-radius: 7px; }
.footer__copy { margin: 0; font-size: 13px; color: var(--muted); }

/* ---------- reveal ---------- */
.reveal { opacity: 0; transform: translateY(28px); transition: opacity .9s var(--ease), transform .9s var(--ease); transition-delay: var(--d, 0s); }
.reveal.is-in { opacity: 1; transform: none; }

/* ---------- responsive ---------- */
@media (max-width: 1080px) {
  .hero__grid, .zones, .alerts, .specs { grid-template-columns: 1fr; gap: 56px; }
  .hero { padding-top: 130px; }
  .monitor { transform: none; }
  .pipeline { grid-template-columns: repeat(2, 1fr); }
  .pipeline::before { display: none; }
  .pipeline .step:last-child { grid-column: span 2; }
  .bento { grid-template-columns: 1fr 1fr; }
  .card--wide { grid-column: span 2; }
  .uses { grid-template-columns: repeat(3, 1fr); }
  .alerts .phone { max-width: 340px; }
}
@media (max-width: 860px) {
  .nav__links {
    position: fixed; top: 72px; left: 0; right: 0;
    flex-direction: column; gap: 0; padding: 8px 20px 20px;
    background: rgba(11, 11, 13, .96); backdrop-filter: blur(16px);
    border-bottom: 1px solid var(--line);
    transform: translateY(-12px); opacity: 0; pointer-events: none;
    transition: opacity .25s, transform .25s var(--ease);
  }
  .nav__links a { padding: 14px 0; border-bottom: 1px solid var(--line); font-size: 16px; }
  .nav__links a::after { display: none; }
  .nav.is-open .nav__links { opacity: 1; transform: none; pointer-events: auto; }
  .nav.is-open { background: rgba(11, 11, 13, .96); }
  .nav__toggle { display: block; }
  .nav__cta .btn { display: none; }
  .stats__grid { grid-template-columns: 1fr; gap: 40px; }
  .stat { border-left: 0; padding-left: 0; border-top: 1px solid var(--line-2); padding-top: 32px; }
  .stat:first-child { border-top: 0; padding-top: 0; }
  .gallery { grid-template-columns: 1fr 1fr; grid-auto-rows: 180px; }
  .shot--tall { grid-column: span 2; }
}
@media (max-width: 640px) {
  .container { width: calc(100% - 32px); }
  .section { padding: 90px 0; }
  .hero { min-height: 0; padding-bottom: 90px; }
  .hero__lead, .section__lead { font-size: 16.5px; }
  .float-card--alarm { left: 8px; bottom: auto; top: -26px; }
  .float-card--sent { right: 8px; bottom: -30px; }
  .float-card { padding: 9px 12px 9px 9px; }
  .float-card__icon { width: 32px; height: 32px; }
  .pipeline { grid-template-columns: 1fr; }
  .pipeline .step:last-child { grid-column: auto; }
  .bento { grid-template-columns: 1fr; }
  .card--wide { grid-column: auto; grid-template-columns: 1fr; }
  .sim { padding: 24px 18px; }
  .range { max-width: none; min-width: 0; flex-basis: 100%; }
  .uses { grid-template-columns: 1fr 1fr; }
  .gallery { grid-template-columns: 1fr; grid-auto-rows: 210px; }
  .shot--tall { grid-column: auto; grid-row: auto; }
  .spec-table div { grid-template-columns: 1fr; gap: 4px; }
  .contact__item > span:last-child { font-size: 18px; }
  .corners { display: none; }
}

@media (prefers-reduced-motion: reduce) {
  *, *::before, *::after { animation: none !important; transition: none !important; }
  .reveal { opacity: 1; transform: none; }
  .msg { opacity: 1; transform: none; }
  html { scroll-behavior: auto; }
}
