:root {
  --navy: #0A1F44;
  --navy-700: #0E2B5C;
  --blue: #2F6BFF;
  --blue-600: #1E54E6;
  --sky: #38BDF8;
  --ink: #0F172A;
  --muted: #5B6B82;
  --line: #E6ECF5;
  --bg: #FFFFFF;
  --bg-soft: #F4F7FB;
  --ok: #16A34A;
  --warn: #F59E0B;
  --off: #94A3B8;
  --radius: 16px;
  --radius-sm: 10px;
  --shadow: 0 10px 40px rgba(10, 31, 68, 0.08);
  --shadow-lg: 0 24px 70px rgba(10, 31, 68, 0.16);
  --maxw: 1160px;
  --ease: cubic-bezier(0.22, 1, 0.36, 1);
}

* { margin: 0; padding: 0; box-sizing: border-box; }
html { scroll-behavior: smooth; -webkit-text-size-adjust: 100%; }
body {
  font-family: "Inter", -apple-system, BlinkMacSystemFont, "Segoe UI", Roboto, system-ui, sans-serif;
  color: var(--ink);
  background: var(--bg);
  line-height: 1.6;
  -webkit-font-smoothing: antialiased;
  text-rendering: optimizeLegibility;
  overflow-x: hidden;
}
a { color: inherit; text-decoration: none; }
img { max-width: 100%; display: block; }
svg { display: block; }

.container { width: 100%; max-width: var(--maxw); margin: 0 auto; padding: 0 24px; }

/* ---------- Buttons ---------- */
.btn {
  display: inline-flex; align-items: center; justify-content: center; gap: 8px;
  font-weight: 600; font-size: 15px; letter-spacing: .01em;
  padding: 12px 22px; border-radius: 999px; border: 1px solid transparent;
  cursor: pointer; transition: transform .25s var(--ease), box-shadow .25s var(--ease), background .2s, color .2s;
  white-space: nowrap;
}
.btn-sm { padding: 9px 18px; font-size: 14px; }
.btn-lg { padding: 15px 30px; font-size: 16px; }
.btn-block { width: 100%; }
.btn-primary { background: var(--blue); color: #fff; box-shadow: 0 8px 24px rgba(47,107,255,.35); }
.btn-primary:hover { background: var(--blue-600); transform: translateY(-2px); box-shadow: 0 12px 30px rgba(47,107,255,.45); }
.btn-ghost { background: rgba(255,255,255,.08); color: #fff; border-color: rgba(255,255,255,.35); }
.btn-ghost:hover { background: rgba(255,255,255,.16); transform: translateY(-2px); }

/* ---------- Header ---------- */
.site-header {
  position: sticky; top: 0; z-index: 50;
  background: rgba(255,255,255,.72); backdrop-filter: saturate(160%) blur(14px);
  border-bottom: 1px solid transparent; transition: border-color .3s, box-shadow .3s;
}
.site-header.scrolled { border-color: var(--line); box-shadow: 0 6px 24px rgba(10,31,68,.06); }
.header-inner { display: flex; align-items: center; gap: 24px; height: 68px; }
.brand { display: flex; align-items: center; margin-right: auto; }
.brand-logo { width: 165px; height: auto; display: block; }
@media (max-width: 560px) { .brand-logo { width: 132px; } }
.nav { display: flex; gap: 28px; }
.nav a { font-size: 15px; font-weight: 500; color: #334155; transition: color .2s; }
.nav a:hover { color: var(--blue); }
.nav-cta { margin-left: 8px; }
.nav-toggle { display: none; flex-direction: column; gap: 5px; background: none; border: 0; cursor: pointer; padding: 6px; }
.nav-toggle span { width: 24px; height: 2px; background: var(--navy); border-radius: 2px; transition: .3s; }
.mobile-menu { display: none; }

/* ---------- Hero ---------- */
.hero {
  position: relative; overflow: hidden;
  background: radial-gradient(120% 120% at 80% 0%, #10306b 0%, var(--navy) 55%, #081735 100%);
  color: #fff; padding: 84px 0 96px;
}
.hero-glow {
  position: absolute; top: -20%; right: -10%; width: 680px; height: 680px;
  background: radial-gradient(circle, rgba(56,189,248,.28), transparent 60%);
  filter: blur(10px); pointer-events: none;
}
.hero-grid { position: relative; display: grid; grid-template-columns: 1.05fr .95fr; gap: 56px; align-items: center; }
.eyebrow {
  display: inline-block; font-size: 13px; font-weight: 600; letter-spacing: .08em; text-transform: uppercase;
  color: var(--sky); background: rgba(56,189,248,.12); border: 1px solid rgba(56,189,248,.25);
  padding: 6px 14px; border-radius: 999px; margin-bottom: 22px;
}
.eyebrow.light { color: var(--sky); }
.hero h1 { font-size: clamp(2.4rem, 5.2vw, 4rem); line-height: 1.05; font-weight: 800; letter-spacing: -.02em; }
.hero h1 .grad { background: linear-gradient(90deg, #58C4FF, #2F6BFF); -webkit-background-clip: text; background-clip: text; color: transparent; }
.lede { font-size: clamp(1.05rem, 1.6vw, 1.22rem); color: #C7D4EC; margin: 22px 0 32px; max-width: 540px; }
.hero-actions { display: flex; gap: 14px; flex-wrap: wrap; }
.hero-badges { list-style: none; display: flex; gap: 22px; flex-wrap: wrap; margin-top: 30px; }
.hero-badges li { display: flex; align-items: center; gap: 8px; font-size: 14px; color: #AFC0DE; }
.hero-badges svg { width: 18px; height: 18px; fill: none; stroke: var(--sky); stroke-width: 2.4; stroke-linecap: round; stroke-linejoin: round; }

/* Dashboard mockup */
.hero-visual { perspective: 1400px; }
.dash {
  position: relative; background: #fff; color: var(--ink); border-radius: 18px;
  box-shadow: var(--shadow-lg); overflow: hidden; transform: rotateY(-6deg) rotateX(3deg);
  transition: transform .6s var(--ease); border: 1px solid rgba(255,255,255,.4);
}
.hero-visual:hover .dash { transform: rotateY(0) rotateX(0); }
.dash-top { display: flex; align-items: center; gap: 12px; padding: 12px 16px; background: var(--bg-soft); border-bottom: 1px solid var(--line); }
.dash-dots { display: flex; gap: 6px; }
.dash-dots span { width: 10px; height: 10px; border-radius: 50%; background: #CBD5E1; }
.dash-dots span:first-child { background: #FF5F57; }
.dash-dots span:nth-child(2){ background: #FEBC2E; }
.dash-dots span:nth-child(3){ background: #28C840; }
.dash-title { font-size: 13px; font-weight: 600; color: var(--muted); }
.dash-body { padding: 18px; display: grid; gap: 16px; }
.dash-kpis { display: grid; grid-template-columns: repeat(3,1fr); gap: 12px; }
.kpi { background: var(--bg-soft); border: 1px solid var(--line); border-radius: 12px; padding: 12px; display: flex; flex-direction: column; gap: 4px; }
.kpi-label { font-size: 12px; color: var(--muted); }
.kpi-val { font-size: 24px; font-weight: 800; letter-spacing: -.02em; }
.kpi.ok .kpi-val { color: var(--ok); }
.kpi.warn .kpi-val { color: var(--warn); }
.dash-chart { background: var(--bg-soft); border: 1px solid var(--line); border-radius: 12px; padding: 14px; }
.chart-head { display: flex; justify-content: space-between; align-items: center; font-size: 13px; font-weight: 600; margin-bottom: 8px; }
.chart-tag { font-size: 11px; font-weight: 500; color: var(--muted); background: #fff; border: 1px solid var(--line); padding: 2px 8px; border-radius: 999px; }
.spark { width: 100%; height: 72px; }
.dash-rows { display: grid; gap: 8px; }
.d-row { display: flex; align-items: center; gap: 10px; font-size: 14px; font-weight: 500; padding: 8px 12px; background: var(--bg-soft); border: 1px solid var(--line); border-radius: 10px; }
.d-val { margin-left: auto; font-variant-numeric: tabular-nums; font-weight: 700; color: var(--muted); }
.dot { width: 9px; height: 9px; border-radius: 50%; flex: none; }
.dot.ok { background: var(--ok); } .dot.warn { background: var(--warn); } .dot.off { background: var(--off); }
.dash-stamp { position: absolute; bottom: 10px; right: 14px; font-size: 10px; color: var(--off); letter-spacing: .04em; }

/* ---------- Sections ---------- */
.section { padding: 92px 0; }
.section-alt { background: var(--bg-soft); }
.section-head { text-align: center; max-width: 640px; margin: 0 auto 54px; }
.section-head .eyebrow { color: var(--blue); background: rgba(47,107,255,.08); border-color: rgba(47,107,255,.2); }
.section h2 { font-size: clamp(1.8rem, 3.4vw, 2.6rem); font-weight: 800; letter-spacing: -.02em; line-height: 1.12; }
.section-head p { color: var(--muted); font-size: 1.08rem; margin-top: 14px; }

.grid { display: grid; gap: 22px; }
.cards-5 { grid-template-columns: repeat(5, 1fr); }
.cards-4 { grid-template-columns: repeat(4, 1fr); }
.cards-3 { grid-template-columns: repeat(3, 1fr); }

.card {
  background: #fff; border: 1px solid var(--line); border-radius: var(--radius); padding: 26px 22px;
  transition: transform .3s var(--ease), box-shadow .3s var(--ease), border-color .3s;
}
.section-alt .card { background: #fff; }
.card:hover { transform: translateY(-5px); box-shadow: var(--shadow); border-color: rgba(47,107,255,.3); }
.ic { width: 48px; height: 48px; border-radius: 12px; display: grid; place-items: center; margin-bottom: 16px;
  background: linear-gradient(135deg, rgba(47,107,255,.14), rgba(56,189,248,.14)); }
.ic svg { width: 24px; height: 24px; fill: none; stroke: var(--blue); stroke-width: 2; stroke-linecap: round; stroke-linejoin: round; }
.card h3 { font-size: 1.08rem; font-weight: 700; margin-bottom: 7px; }
.card p { color: var(--muted); font-size: .95rem; }

/* Dashboard split */
.dash-split { display: grid; grid-template-columns: 1fr 1fr; gap: 56px; align-items: center; }
.dash-split .eyebrow { color: var(--blue); background: rgba(47,107,255,.08); border-color: rgba(47,107,255,.2); }
.lede-sm { color: var(--muted); font-size: 1.1rem; margin: 16px 0 22px; }
.check-list { list-style: none; display: grid; gap: 12px; }
.check-list li { position: relative; padding-left: 32px; font-weight: 500; }
.check-list li::before {
  content: ""; position: absolute; left: 0; top: 2px; width: 20px; height: 20px; border-radius: 50%;
  background: rgba(22,163,74,.12) url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 24 24' fill='none' stroke='%2316A34A' stroke-width='3' stroke-linecap='round' stroke-linejoin='round'%3E%3Cpath d='M20 6 9 17l-5-5'/%3E%3C/svg%3E") center/13px no-repeat;
}
.map-card { position: relative; background: #fff; border: 1px solid var(--line); border-radius: var(--radius); padding: 20px; box-shadow: var(--shadow); }
.map-head { display: flex; justify-content: space-between; align-items: center; font-weight: 700; font-size: 14px; margin-bottom: 14px; }
.map-wrap { background: linear-gradient(180deg, #F8FBFF, #EEF4FF); border: 1px solid var(--line); border-radius: 12px; padding: 10px; }
.map-grid { width: 100%; height: auto; }
.map-lines path { stroke: #D4E0F2; stroke-width: 1; fill: none; }
.pin { stroke: #fff; stroke-width: 2.5; }
.pin.ok { fill: var(--ok); } .pin.warn { fill: var(--warn); }
.pin.warn { animation: pulse 1.8s var(--ease) infinite; }
@keyframes pulse { 0%,100%{ opacity:1 } 50%{ opacity:.45 } }
.map-legend { display: flex; gap: 20px; margin-top: 14px; font-size: 13px; color: var(--muted); }
.map-legend i { display: inline-block; vertical-align: middle; margin-right: 5px; }

/* Devices */
.device-card { background: #fff; border: 1px solid var(--line); border-radius: var(--radius); overflow: hidden; transition: transform .3s var(--ease), box-shadow .3s var(--ease); }
.device-card:hover { transform: translateY(-6px); box-shadow: var(--shadow-lg); }
.device-img { background: linear-gradient(180deg, #F3F7FF, #E7EFFB); padding: 24px; aspect-ratio: 3/2; display: grid; place-items: center; }
.device-img img { width: 100%; height: 100%; object-fit: contain; filter: drop-shadow(0 16px 24px rgba(10,31,68,.14)); }
.device-card h3 { font-size: 1.15rem; font-weight: 700; margin: 20px 22px 6px; }
.device-card p { color: var(--muted); font-size: .95rem; margin: 0 22px 24px; }

/* Audience */
.audience-grid { grid-template-columns: repeat(5, 1fr); }
.aud { background: #fff; border: 1px solid var(--line); border-radius: var(--radius); padding: 30px 18px; text-align: center; font-weight: 600; font-size: 1rem;
  display: flex; flex-direction: column; gap: 14px; align-items: center; transition: transform .3s var(--ease), box-shadow .3s var(--ease); }
.aud:hover { transform: translateY(-5px); box-shadow: var(--shadow); }
.aud-ic { font-size: 34px; }

/* Demo / CTA */
.section-cta { background: radial-gradient(120% 120% at 20% 0%, #10306b 0%, var(--navy) 60%, #081735 100%); color: #fff; }
.demo-grid { display: grid; grid-template-columns: 1fr 1.05fr; gap: 56px; align-items: start; }
.demo-copy h2 { color: #fff; }
.demo-copy p { color: #C7D4EC; margin-top: 14px; font-size: 1.08rem; }
.demo-contact { list-style: none; margin-top: 26px; display: grid; gap: 12px; }
.demo-contact li { color: #AFC0DE; font-weight: 500; }
.demo-contact a { color: #fff; border-bottom: 1px solid rgba(255,255,255,.3); }
.demo-contact a:hover { border-color: var(--sky); color: var(--sky); }
.demo-form { background: #fff; color: var(--ink); border-radius: 20px; padding: 30px; box-shadow: var(--shadow-lg); display: grid; gap: 16px; }
.row2 { display: grid; grid-template-columns: 1fr 1fr; gap: 16px; }
.field { display: grid; gap: 6px; }
.field label { font-size: 13px; font-weight: 600; color: #334155; }
.field input, .field textarea {
  width: 100%; font: inherit; font-size: 15px; color: var(--ink);
  padding: 12px 14px; border: 1px solid var(--line); border-radius: var(--radius-sm); background: #fff;
  transition: border-color .2s, box-shadow .2s;
}
.field input:focus, .field textarea:focus { outline: none; border-color: var(--blue); box-shadow: 0 0 0 4px rgba(47,107,255,.12); }
.field textarea { resize: vertical; }
.consent { display: flex; gap: 10px; align-items: flex-start; font-size: 13px; color: var(--muted); line-height: 1.5; }
.consent input { margin-top: 3px; width: 18px; height: 18px; flex: none; accent-color: var(--blue); }
.consent a { color: var(--blue); text-decoration: underline; }
.form-note { font-size: 13px; text-align: center; min-height: 18px; }
.form-note.err { color: #DC2626; }
.form-note.ok { color: var(--ok); }

/* Footer */
.site-footer { background: #081735; color: #AFC0DE; padding: 56px 0 26px; }
.footer-inner { display: grid; grid-template-columns: 1.6fr 1fr 1fr 1fr; gap: 32px; }
.footer-brand img { margin-bottom: 14px; }
.footer-brand p { max-width: 280px; font-size: .95rem; }
.footer-col h4 { color: #fff; font-size: .95rem; margin-bottom: 14px; letter-spacing: .02em; }
.footer-col p { font-size: .92rem; margin-bottom: 8px; }
.footer-col a:hover { color: var(--sky); }
.footer-bottom { margin-top: 40px; padding-top: 20px; border-top: 1px solid rgba(255,255,255,.08); font-size: .85rem; color: #70809E; }

/* Floating / mobile CTA */
.wa-float {
  position: fixed; right: 20px; bottom: 20px; z-index: 60; width: 56px; height: 56px; border-radius: 50%;
  background: #25D366; display: grid; place-items: center; box-shadow: 0 10px 30px rgba(37,211,102,.5);
  transition: transform .25s var(--ease);
}
.wa-float:hover { transform: scale(1.08); }
.wa-float svg { width: 30px; height: 30px; fill: #fff; }
.mobile-cta { display: none; }

/* Reveal animation — only when JS is active, so no-JS users always see content */
.js .reveal { opacity: 0; transform: translateY(28px); transition: opacity .7s var(--ease), transform .7s var(--ease); }
.js .reveal.in { opacity: 1; transform: none; }
@media (prefers-reduced-motion: reduce) {
  .reveal { opacity: 1; transform: none; transition: none; }
  html { scroll-behavior: auto; }
  .pin.warn { animation: none; }
}

/* ---------- Responsive ---------- */
@media (max-width: 1000px) {
  .cards-5 { grid-template-columns: repeat(3, 1fr); }
  .cards-4 { grid-template-columns: repeat(2, 1fr); }
  .audience-grid { grid-template-columns: repeat(3, 1fr); }
}
@media (max-width: 860px) {
  .nav, .nav-cta { display: none; }
  .nav-toggle { display: flex; }
  .hero-grid { grid-template-columns: 1fr; gap: 40px; }
  .hero-visual { order: 2; max-width: 460px; }
  .dash { transform: none; }
  .dash-split, .demo-grid { grid-template-columns: 1fr; gap: 36px; }
  .footer-inner { grid-template-columns: 1fr 1fr; }
  .mobile-menu.open { display: flex; flex-direction: column; gap: 4px; padding: 10px 24px 20px; background: #fff; border-bottom: 1px solid var(--line); }
  .mobile-menu a { padding: 12px 0; font-weight: 500; border-bottom: 1px solid var(--line); }
  .mobile-menu .btn { margin-top: 10px; }
  .nav-toggle[aria-expanded="true"] span:nth-child(1){ transform: translateY(7px) rotate(45deg); }
  .nav-toggle[aria-expanded="true"] span:nth-child(2){ opacity: 0; }
  .nav-toggle[aria-expanded="true"] span:nth-child(3){ transform: translateY(-7px) rotate(-45deg); }
  .mobile-cta {
    display: block; position: fixed; left: 16px; right: 86px; bottom: 20px; z-index: 55; text-align: center;
    background: var(--blue); color: #fff; font-weight: 700; padding: 15px; border-radius: 999px;
    box-shadow: 0 10px 30px rgba(47,107,255,.45);
  }
  .section { padding: 64px 0; }
  .hero { padding: 56px 0 72px; }
}
@media (max-width: 560px) {
  .container { padding: 0 18px; }
  .cards-5, .cards-4, .cards-3, .audience-grid { grid-template-columns: 1fr; }
  .row2 { grid-template-columns: 1fr; }
  .footer-inner { grid-template-columns: 1fr; }
  .hero-badges { gap: 14px; }
  .demo-form { padding: 22px; }
}
