:root {
  --ink: #0b1f1c;
  --ink-2: #16332e;
  --teal: #0f766e;
  --teal-2: #0b5a54;
  --mint: #d9f3ec;
  --lime: #c8f27a;
  --sand: #f5f2ea;
  --paper: #fffdf8;
  --line: #e3ded2;
  --muted: #5e6b66;
  --white: #ffffff;
  --shadow: 0 24px 60px rgba(11, 31, 28, 0.14);
  --radius: 22px;
  --wrap: 1180px;
}

* { box-sizing: border-box; }
html { scroll-behavior: smooth; }
body {
  margin: 0;
  font-family: "Manrope", system-ui, -apple-system, "Segoe UI", sans-serif;
  color: var(--ink);
  background: var(--sand);
  line-height: 1.55;
  -webkit-font-smoothing: antialiased;
}
img { max-width: 100%; display: block; }
a { color: inherit; text-decoration: none; }
h1, h2, h3, p { margin: 0; }
ul, ol { margin: 0; padding: 0; list-style: none; }

.wrap { width: min(var(--wrap), calc(100% - 48px)); margin: 0 auto; }

/* ── Header ─────────────────────────────────────────────── */
.site-header {
  position: sticky;
  top: 0;
  z-index: 40;
  background: rgba(245, 242, 234, 0.82);
  backdrop-filter: blur(16px);
  border-bottom: 1px solid rgba(227, 222, 210, 0.7);
}
.site-header.is-scrolled { box-shadow: 0 10px 30px rgba(11,31,28,.06); }
.header-inner { display: flex; align-items: center; gap: 28px; height: 74px; }
.brand { display: inline-flex; align-items: center; gap: 10px; font-size: 19px; letter-spacing: -0.3px; }
.brand b { color: var(--teal); }
.brand img { width: 42px; height: 42px; object-fit: contain; }
.nav { display: flex; gap: 26px; margin-left: auto; font-size: 14px; font-weight: 600; color: var(--muted); }
.nav a { transition: color .2s ease; }
.nav a:hover { color: var(--ink); }

/* ── Buttons ────────────────────────────────────────────── */
.btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  min-height: 50px;
  padding: 0 26px;
  border-radius: 999px;
  border: 1px solid transparent;
  font-weight: 700;
  font-size: 15px;
  cursor: pointer;
  transition: transform .2s ease, box-shadow .2s ease, background .2s ease;
}
.btn:hover { transform: translateY(-1px); }
.btn--dark { background: var(--ink); color: var(--white); box-shadow: 0 12px 26px rgba(11, 31, 28, 0.18); }
.btn--dark:hover { background: var(--teal-2); }
.btn--ghost { background: transparent; border-color: rgba(11, 31, 28, 0.2); color: var(--ink); }
.btn--ghost:hover { background: rgba(255,255,255,.5); }
.btn--sm { min-height: 42px; padding: 0 18px; font-size: 13px; }
.btn--full { width: 100%; }

/* ── Hero ───────────────────────────────────────────────── */
.hero { position: relative; overflow: hidden; padding: 74px 0 56px; }
.hero-bg {
  position: absolute;
  inset: -20% -10% auto -10%;
  height: 720px;
  background:
    radial-gradient(circle at 18% 20%, rgba(15, 118, 110, 0.16), transparent 42%),
    radial-gradient(circle at 88% 12%, rgba(200, 242, 122, 0.35), transparent 36%);
  pointer-events: none;
}
.hero-grid { position: relative; display: grid; grid-template-columns: 1.08fr 0.92fr; gap: 56px; align-items: center; }
.eyebrow {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  font-size: 12px;
  font-weight: 800;
  letter-spacing: 0.11em;
  text-transform: uppercase;
  color: var(--teal);
}
.pulse { width: 8px; height: 8px; border-radius: 50%; background: var(--teal); box-shadow: 0 0 0 5px rgba(15,118,110,.13); }
.hero h1 { margin-top: 18px; font-size: clamp(42px, 5vw, 66px); line-height: 1.02; letter-spacing: -0.055em; font-weight: 800; }
.hero h1 em { font-style: normal; color: var(--teal); position: relative; }
.hero h1 em::after {
  content: "";
  position: absolute;
  left: 0; right: 0; bottom: 4px;
  height: 12px;
  background: var(--lime);
  opacity: .55;
  z-index: -1;
  border-radius: 6px;
}
.lead { margin-top: 22px; max-width: 540px; font-size: 18px; line-height: 1.6; color: var(--muted); }
.hero-actions { display: flex; gap: 12px; flex-wrap: wrap; margin-top: 30px; }
.hero-points { display: flex; flex-wrap: wrap; gap: 8px; margin-top: 30px; }
.hero-points li { font-size: 12px; font-weight: 700; color: var(--ink-2); background: rgba(255,255,255,.66); border: 1px solid var(--line); padding: 7px 12px; border-radius: 999px; }

/* ── Dashboard mockup ───────────────────────────────────── */
.hero-visual { position: relative; min-height: 480px; display: flex; align-items: center; }
.dashboard {
  position: relative;
  width: 100%;
  background: linear-gradient(155deg, #0c211e 0%, #123b35 100%);
  border-radius: 28px;
  padding: 14px;
  box-shadow: var(--shadow);
  border: 1px solid rgba(255,255,255,.08);
  transform: rotate(-1.2deg);
}
.dash-top { display: flex; align-items: center; gap: 12px; color: rgba(255,255,255,.62); font-size: 11px; font-weight: 600; padding: 4px 6px 12px; }
.dash-dots { display: flex; gap: 5px; }
.dash-dots i { width: 7px; height: 7px; border-radius: 50%; background: rgba(255,255,255,.22); }
.dash-live { margin-left: auto; display: inline-flex; align-items: center; gap: 5px; color: var(--lime); }
.dash-live i { width: 6px; height: 6px; border-radius: 50%; background: var(--lime); box-shadow: 0 0 0 4px rgba(200,242,122,.12); }
.dash-body { background: #f7f8f4; border-radius: 18px; padding: 20px; }
.dash-head { display: flex; align-items: flex-start; justify-content: space-between; }
.dash-label { font-size: 10px; text-transform: uppercase; letter-spacing: .1em; color: var(--muted); font-weight: 800; }
.dash-serial { font-size: 20px; font-weight: 800; letter-spacing: -.02em; margin-top: 3px; }
.chip { display: inline-flex; align-items: center; gap: 5px; font-size: 11px; font-weight: 800; border-radius: 999px; padding: 5px 9px; }
.chip--ok { color: #12643f; background: #dff5e7; }
.chip--ok::before { content: ""; width: 6px; height: 6px; border-radius: 50%; background: #1a8a57; }
.metric-grid { display: grid; grid-template-columns: 1fr 1fr; gap: 10px; margin-top: 18px; }
.metric { background: var(--white); border: 1px solid #e8e9e2; border-radius: 14px; padding: 12px; position: relative; overflow: hidden; }
.metric span { font-size: 10px; color: var(--muted); font-weight: 700; }
.metric b { display: block; font-size: 19px; letter-spacing: -.03em; margin-top: 3px; }
.metric small { font-size: 11px; color: var(--muted); font-weight: 600; }
.spark { display: block; height: 18px; margin-top: 7px; border-radius: 4px; background: linear-gradient(90deg, transparent 0 8%, var(--mint) 8% 18%, transparent 18% 26%, var(--mint) 26% 42%, transparent 42% 50%, var(--mint) 50% 68%, transparent 68% 76%, var(--mint) 76% 92%, transparent 92%); opacity: .9; }
.spark--b { background: linear-gradient(90deg, transparent 0 14%, #f3e3b8 14% 32%, transparent 32% 44%, #f3e3b8 44% 64%, transparent 64% 72%, #f3e3b8 72% 88%, transparent 88%); }
.spark--c { background: linear-gradient(90deg, transparent 0 10%, #d8e7f7 10% 30%, transparent 30% 38%, #d8e7f7 38% 60%, transparent 60% 70%, #d8e7f7 70% 90%, transparent 90%); }
.bar { display: block; height: 6px; background: #e7ede8; border-radius: 99px; margin-top: 10px; overflow: hidden; }
.bar u { display: block; height: 100%; background: var(--teal); border-radius: inherit; text-decoration: none; }
.dash-chart { margin-top: 14px; background: var(--white); border: 1px solid #e8e9e2; border-radius: 14px; padding: 12px; }
.chart-head { display: flex; justify-content: space-between; font-size: 10px; font-weight: 700; color: var(--muted); }
.bars { display: flex; align-items: flex-end; gap: 5px; height: 74px; margin-top: 10px; }
.bars u { flex: 1; height: var(--h); background: linear-gradient(180deg, var(--teal), #39a394); border-radius: 4px 4px 2px 2px; opacity: .85; text-decoration: none; }
.float-card { position: absolute; display: flex; align-items: center; gap: 9px; background: var(--paper); border: 1px solid var(--line); border-radius: 14px; padding: 10px 12px; box-shadow: 0 16px 34px rgba(11,31,28,.14); font-size: 10px; }
.float-card b { display: block; font-size: 12px; }
.float-card span { display: block; color: var(--muted); margin-top: 1px; }
.float-icon { width: 28px; height: 28px; display: grid; place-items: center; border-radius: 9px; background: var(--mint); color: var(--teal); font-weight: 800; }
.float-icon--alert { background: #fee2e2; color: #b91c1c; }
.float-card--ota { right: -10px; top: 46px; transform: rotate(2deg); }
.float-card--alert { left: -16px; bottom: 46px; transform: rotate(-2deg); }

/* ── Stats ──────────────────────────────────────────────── */
.stats { display: grid; grid-template-columns: repeat(4, 1fr); gap: 1px; background: var(--line); border: 1px solid var(--line); border-radius: 20px; overflow: hidden; margin-top: 10px; }
.stat { background: var(--paper); padding: 22px 24px; }
.stat b { display: block; font-size: 30px; letter-spacing: -.05em; color: var(--ink); }
.stat span { font-size: 12px; color: var(--muted); font-weight: 600; }

/* ── Sections ───────────────────────────────────────────── */
.section { padding: 96px 0; }
.section--tint { background: #ece9df; }
.section-head { max-width: 680px; margin-bottom: 42px; }
.section-head h2 { margin-top: 12px; font-size: clamp(30px, 3.6vw, 46px); line-height: 1.08; letter-spacing: -.04em; }
.section-head p { margin-top: 14px; font-size: 17px; color: var(--muted); }
.feature-grid { display: grid; grid-template-columns: repeat(3, 1fr); gap: 16px; }
.feature { background: var(--paper); border: 1px solid var(--line); border-radius: var(--radius); padding: 28px; transition: transform .25s ease, box-shadow .25s ease; }
.feature:hover { transform: translateY(-4px); box-shadow: 0 18px 38px rgba(11,31,28,.08); }
.feature-icon { width: 42px; height: 42px; display: grid; place-items: center; border-radius: 13px; background: var(--mint); color: var(--teal); font-size: 19px; font-weight: 800; margin-bottom: 18px; }
.feature h3 { font-size: 19px; letter-spacing: -.02em; }
.feature p { margin-top: 8px; font-size: 14px; color: var(--muted); line-height: 1.6; }

/* ── Steps ──────────────────────────────────────────────── */
.steps { display: grid; grid-template-columns: repeat(4, 1fr); gap: 16px; }
.step { background: var(--paper); border: 1px solid var(--line); border-radius: var(--radius); padding: 24px; }
.step > span { font-size: 12px; font-weight: 800; color: var(--teal); letter-spacing: .12em; }
.step h3 { margin-top: 22px; font-size: 18px; }
.step p { margin-top: 8px; font-size: 13px; color: var(--muted); }

/* ── Security ───────────────────────────────────────────── */
.security-grid { display: grid; grid-template-columns: 1.1fr .9fr; gap: 56px; align-items: center; }
.security-grid h2 { margin-top: 12px; font-size: clamp(30px, 3.4vw, 44px); letter-spacing: -.04em; line-height: 1.08; }
.check-list { margin-top: 24px; display: grid; gap: 10px; }
.check-list li { position: relative; padding-left: 28px; font-size: 14px; color: var(--ink-2); }
.check-list li::before { content: "✓"; position: absolute; left: 0; top: 0; color: var(--teal); font-weight: 800; }
.security-card { background: var(--ink); color: var(--white); border-radius: 26px; padding: 34px; box-shadow: var(--shadow); }
.security-badge { display: inline-block; background: var(--lime); color: var(--ink); font-size: 11px; font-weight: 800; padding: 6px 10px; border-radius: 999px; }
.security-card h3 { margin-top: 20px; font-size: 24px; line-height: 1.15; letter-spacing: -.03em; }
.security-card p { margin-top: 12px; font-size: 14px; color: rgba(255,255,255,.7); }
.security-tags { display: flex; flex-wrap: wrap; gap: 7px; margin-top: 24px; }
.security-tags span { font-size: 11px; font-weight: 700; color: rgba(255,255,255,.78); border: 1px solid rgba(255,255,255,.18); padding: 6px 9px; border-radius: 999px; }

/* ── Demo ───────────────────────────────────────────────── */
.demo { background: var(--ink); color: var(--white); }
.demo .eyebrow { color: var(--lime); }
.demo .lead { color: rgba(255,255,255,.66); }
.demo-grid { display: grid; grid-template-columns: .9fr 1.1fr; gap: 64px; align-items: start; }
.demo h2 { margin-top: 12px; font-size: clamp(30px, 3.4vw, 44px); line-height: 1.08; letter-spacing: -.04em; }
.demo-contacts { display: flex; flex-direction: column; gap: 8px; margin-top: 26px; font-size: 14px; color: var(--lime); }
.demo-form { background: var(--paper); color: var(--ink); border-radius: 24px; padding: 28px; }
.form-row { display: grid; grid-template-columns: 1fr 1fr; gap: 12px; }
.demo-form label { display: block; font-size: 11px; font-weight: 800; letter-spacing: .04em; text-transform: uppercase; color: var(--muted); margin-bottom: 12px; }
.demo-form input, .demo-form textarea {
  width: 100%; margin-top: 6px; padding: 12px 13px; border: 1px solid var(--line); border-radius: 12px;
  background: #fbfaf6; font: inherit; font-size: 14px; color: var(--ink); text-transform: none; letter-spacing: 0; font-weight: 500;
}
.demo-form textarea { resize: vertical; }
.demo-form input:focus, .demo-form textarea:focus { outline: 2px solid rgba(15,118,110,.26); border-color: var(--teal); }
.form-note { margin-top: 10px; font-size: 11px; color: var(--muted); }
.form-status { margin-top: 10px; font-size: 13px; font-weight: 700; min-height: 20px; }
.form-status.ok { color: var(--teal); }
.form-status.err { color: #b91c1c; }

/* ── Footer ─────────────────────────────────────────────── */
.footer { background: #071512; color: rgba(255,255,255,.66); padding: 38px 0 18px; }
.footer-inner { display: flex; align-items: center; gap: 24px; flex-wrap: wrap; }
.brand--footer { color: var(--white); }
.brand--footer b { color: var(--lime); }
.footer p { font-size: 12px; }
.footer-links { margin-left: auto; display: flex; gap: 18px; font-size: 12px; }
.footer-links a:hover { color: var(--lime); }
.footer-bottom { border-top: 1px solid rgba(255,255,255,.09); margin-top: 24px; padding-top: 16px; font-size: 11px; }

/* ── Reveal ─────────────────────────────────────────────── */
.reveal { opacity: 1; transform: none; }
html.js .reveal { opacity: 0; transform: translateY(18px); transition: opacity .7s ease, transform .7s ease; }
html.js .reveal.is-visible { opacity: 1; transform: none; }
@media (prefers-reduced-motion: reduce) {
  .reveal { opacity: 1; transform: none; transition: none; }
  html { scroll-behavior: auto; }
}

/* ── Responsive ─────────────────────────────────────────── */
@media (max-width: 980px) {
  .hero-grid, .security-grid, .demo-grid { grid-template-columns: 1fr; gap: 40px; }
  .hero-visual { max-width: 560px; }
  .feature-grid, .steps { grid-template-columns: 1fr 1fr; }
  .stats { grid-template-columns: 1fr 1fr; }
  .nav { display: none; }
  .hero { padding-top: 50px; }
}
@media (max-width: 620px) {
  .wrap { width: calc(100% - 32px); }
  .header-inner { height: 64px; }
  .brand img { width: 34px; height: 34px; }
  .hero h1 { font-size: 40px; }
  .lead { font-size: 16px; }
  .feature-grid, .steps { grid-template-columns: 1fr; }
  .form-row { grid-template-columns: 1fr; }
  .section { padding: 68px 0; }
  .stats { grid-template-columns: 1fr 1fr; }
  .stat { padding: 18px; }
  .stat b { font-size: 24px; }
  .float-card--ota { right: 0; top: -14px; }
  .float-card--alert { left: 0; bottom: -18px; }
  .dashboard { transform: none; }
  .footer-links { margin-left: 0; }
}
