/* ============================================================
   PixelHoard — Design System  ·  by SOTER SYSTEMS
   Cinematic dark hero → bright scannable body.
   Plus Jakarta Sans (display) + Inter (body).
   ============================================================ */

@import url("https://fonts.googleapis.com/css2?family=Plus+Jakarta+Sans:wght@400;500;600;700;800&family=Inter:wght@400;450;500;600;700&display=swap");

/* ---------- Tokens ---------- */
:root {
  /* surfaces (light body) */
  --bg: #f7f9fc;
  --surface: #ffffff;
  --surface-2: #f1f5fb;
  --ink: #0b1220;
  --ink-soft: #334155;
  --muted: #5b6b86;
  --line: #e6ecf5;

  /* brand */
  --blue: #2f6bff;
  --blue-2: #5b8cff;
  --blue-deep: #1d4ed8;
  --accent: #ff4d4d;       /* action red — CTAs / live status */
  --accent-deep: #e02e2e;
  --violet: #7c5cff;
  --cyan: #38d6f5;
  --emerald: #16c79a;

  /* dark hero canvas */
  --night: #070b18;
  --night-2: #0c1326;
  --night-3: #111c38;
  --night-line: rgba(120, 160, 255, 0.14);
  --on-night: #eaf0ff;
  --on-night-soft: #a9b8d6;

  /* gradients */
  --grad-blue: linear-gradient(120deg, #2f6bff 0%, #5b8cff 100%);
  --grad-cta: linear-gradient(120deg, #ff5d5d 0%, #ff7a3d 100%);
  --grad-hero-text: linear-gradient(180deg, #ffffff 0%, #b9ccff 130%);
  --grad-aurora: radial-gradient(60% 60% at 30% 20%, rgba(91,140,255,.55), transparent 60%),
                 radial-gradient(50% 50% at 80% 10%, rgba(124,92,255,.45), transparent 60%),
                 radial-gradient(45% 60% at 65% 80%, rgba(56,214,245,.30), transparent 60%);

  /* shape + depth */
  --r-sm: 12px;
  --r: 18px;
  --r-lg: 26px;
  --r-xl: 34px;
  --shadow-sm: 0 4px 14px rgba(17, 38, 80, 0.06);
  --shadow: 0 18px 48px rgba(23, 51, 110, 0.12);
  --shadow-lg: 0 34px 80px rgba(18, 41, 95, 0.18);
  --shadow-blue: 0 18px 40px rgba(47, 107, 255, 0.32);
  --shadow-cta: 0 16px 34px rgba(255, 77, 77, 0.34);

  --container: 1200px;
  --nav-h: 74px;
  --ease: cubic-bezier(.22, .68, 0, 1);
  --spring: cubic-bezier(.2, .9, .25, 1.2);
}

/* ---------- Reset ---------- */
* { box-sizing: border-box; }
html { scroll-behavior: smooth; -webkit-text-size-adjust: 100%; }
body {
  margin: 0;
  font-family: "Inter", system-ui, sans-serif;
  font-size: 17px;
  line-height: 1.65;
  color: var(--ink);
  background: var(--bg);
  overflow-x: hidden;
  -webkit-font-smoothing: antialiased;
  text-rendering: optimizeLegibility;
}
a { color: inherit; text-decoration: none; }
img, svg { max-width: 100%; display: block; }
h1, h2, h3, h4 {
  font-family: "Plus Jakarta Sans", sans-serif;
  font-weight: 800;
  letter-spacing: -0.025em;
  line-height: 1.08;
  margin: 0;
}
p { margin: 0; }
::selection { background: rgba(47,107,255,.22); }

.container { width: min(var(--container), 92%); margin-inline: auto; }
.eyebrow {
  display: inline-flex; align-items: center; gap: 8px;
  font-family: "Plus Jakarta Sans", sans-serif;
  font-size: .8rem; font-weight: 700; letter-spacing: .14em;
  text-transform: uppercase; color: var(--blue);
}
.eyebrow::before {
  content: ""; width: 22px; height: 2px; border-radius: 2px;
  background: var(--grad-blue);
}
.eyebrow--light { color: var(--blue-2); }
.eyebrow--light::before { background: linear-gradient(90deg, var(--cyan), var(--blue-2)); }

/* ============================================================
   Buttons
   ============================================================ */
.btn {
  --b: 0;
  display: inline-flex; align-items: center; justify-content: center; gap: 9px;
  font-family: "Plus Jakarta Sans", sans-serif;
  font-weight: 700; font-size: .98rem;
  padding: 14px 26px; border-radius: 999px; border: 0;
  cursor: pointer; position: relative; isolation: isolate;
  transition: transform .25s var(--spring), box-shadow .3s var(--ease), background .3s var(--ease);
  will-change: transform;
}
.btn svg { width: 18px; height: 18px; }
.btn-primary { background: var(--grad-cta); color: #fff; box-shadow: var(--shadow-cta); }
.btn-primary:hover { transform: translateY(-3px) scale(1.015); box-shadow: 0 22px 44px rgba(255,77,77,.42); }
.btn-blue { background: var(--grad-blue); color: #fff; box-shadow: var(--shadow-blue); }
.btn-blue:hover { transform: translateY(-3px) scale(1.015); box-shadow: 0 24px 48px rgba(47,107,255,.42); }
.btn-ghost {
  background: rgba(255,255,255,.06); color: var(--on-night);
  border: 1px solid rgba(170,190,255,.28); backdrop-filter: blur(6px);
}
.btn-ghost:hover { background: rgba(255,255,255,.13); transform: translateY(-3px); border-color: rgba(170,190,255,.5); }
.btn-outline {
  background: var(--surface); color: var(--blue-deep);
  border: 1px solid var(--line); box-shadow: var(--shadow-sm);
}
.btn-outline:hover { transform: translateY(-3px); border-color: var(--blue-2); box-shadow: var(--shadow); }
.btn-lg { padding: 17px 34px; font-size: 1.06rem; }
.btn .arr { transition: transform .3s var(--spring); }
.btn:hover .arr { transform: translateX(4px); }

/* ============================================================
   Navigation
   ============================================================ */
.nav {
  position: sticky; top: 0; z-index: 100;
  transition: background .35s var(--ease), box-shadow .35s var(--ease), border-color .35s;
  border-bottom: 1px solid transparent;
}
.nav.scrolled {
  background: rgba(255,255,255,.82);
  backdrop-filter: blur(18px) saturate(160%);
  border-bottom-color: var(--line);
  box-shadow: 0 6px 24px rgba(15,30,70,.06);
}
/* nav sitting on the dark hero before scroll */
.nav.on-dark:not(.scrolled) .nav-links a:not(.btn),
.nav.on-dark:not(.scrolled) .brand { color: var(--on-night); }
.nav.on-dark:not(.scrolled) .nav-links a:not(.btn):hover,
.nav.on-dark:not(.scrolled) .nav-links a.active:not(.btn) { color: #fff; }
.nav.on-dark:not(.scrolled) .nav-toggle span { background: var(--on-night); }

.nav-inner { display: flex; align-items: center; justify-content: space-between; padding: 16px 0; }
.brand { display: flex; align-items: center; gap: 12px; font-family: "Plus Jakarta Sans", sans-serif; font-weight: 800; font-size: 1.18rem; letter-spacing: -.02em; }
.brand-badge {
  width: 42px; height: 42px; border-radius: 13px; display: grid; place-items: center;
  background: var(--grad-blue); color: #fff; font-weight: 800; font-size: .95rem;
  box-shadow: var(--shadow-blue); position: relative; overflow: hidden;
}
.brand-badge::after {
  content: ""; position: absolute; inset: 0;
  background: linear-gradient(120deg, transparent 30%, rgba(255,255,255,.55) 50%, transparent 70%);
  transform: translateX(-120%); animation: sheen 4.5s ease-in-out infinite;
}
.brand small { display: block; font-family: "Inter"; font-size: .62rem; font-weight: 600; letter-spacing: .18em; text-transform: uppercase; color: var(--muted); margin-top: -2px; }
.nav.on-dark:not(.scrolled) .brand small { color: var(--on-night-soft); }

.nav-links { display: flex; align-items: center; gap: 30px; }
.nav-links a:not(.btn) { font-weight: 600; font-size: .96rem; color: var(--ink-soft); position: relative; transition: color .2s; }
.nav-links a:not(.btn)::after {
  content: ""; position: absolute; left: 0; bottom: -6px; height: 2px; width: 0;
  background: var(--grad-blue); border-radius: 2px; transition: width .3s var(--ease);
}
.nav-links a:not(.btn):hover::after, .nav-links a.active:not(.btn)::after { width: 100%; }
.nav-links a.active { color: var(--blue); }
.nav-cta { margin-left: 6px; padding: 11px 22px; }

.nav-toggle { display: none; flex-direction: column; gap: 5px; background: none; border: 0; cursor: pointer; padding: 8px; }
.nav-toggle span { width: 24px; height: 2px; border-radius: 2px; background: var(--ink); transition: .3s var(--ease); }
.nav-toggle.open span:nth-child(1) { transform: translateY(7px) rotate(45deg); }
.nav-toggle.open span:nth-child(2) { opacity: 0; }
.nav-toggle.open span:nth-child(3) { transform: translateY(-7px) rotate(-45deg); }

@media (max-width: 880px) {
  .nav-toggle { display: flex; }
  .nav-links {
    position: absolute; top: 100%; left: 0; right: 0;
    flex-direction: column; align-items: stretch; gap: 4px;
    background: rgba(255,255,255,.97); backdrop-filter: blur(18px);
    padding: 14px 5%; border-bottom: 1px solid var(--line);
    box-shadow: var(--shadow);
    transform: translateY(-12px); opacity: 0; pointer-events: none;
    transition: .3s var(--ease);
  }
  .nav-links.open { transform: translateY(0); opacity: 1; pointer-events: auto; }
  .nav-links a:not(.btn) { padding: 12px 6px; color: var(--ink-soft) !important; }
  .nav-cta { margin: 8px 0 0; }
  .nav.on-dark:not(.scrolled) .nav-links a { color: var(--ink-soft); }
}

/* ============================================================
   HERO — cinematic dark
   ============================================================ */
.hero {
  position: relative; isolation: isolate; overflow: hidden;
  background: radial-gradient(120% 90% at 50% -10%, #0f1b3d 0%, var(--night-2) 45%, var(--night) 100%);
  color: var(--on-night);
  margin-top: calc(-1 * var(--nav-h));                       /* slide up under the transparent nav */
  padding: calc(var(--nav-h) + clamp(24px, 5vh, 60px)) 0 clamp(70px, 12vh, 130px);
}
.hero::before { /* aurora glow */
  content: ""; position: absolute; inset: -10% -10% 30%; z-index: -2;
  background: var(--grad-aurora); filter: blur(20px); opacity: .9;
  animation: auroraDrift 18s ease-in-out infinite alternate;
}
.hero-floor { /* perspective grid */
  position: absolute; left: 50%; bottom: -8%; width: 200%; height: 70%;
  transform: translateX(-50%) perspective(620px) rotateX(68deg);
  background-image:
    linear-gradient(var(--night-line) 1px, transparent 1px),
    linear-gradient(90deg, var(--night-line) 1px, transparent 1px);
  background-size: 58px 58px; z-index: -2;
  mask-image: radial-gradient(60% 80% at 50% 100%, #000 10%, transparent 75%);
  animation: floorScroll 9s linear infinite;
}
.hero::after { /* fade into light body */
  content: ""; position: absolute; left: 0; right: 0; bottom: -1px; height: 130px; z-index: -1;
  background: linear-gradient(180deg, transparent, var(--bg));
}
.hero-noise { position: absolute; inset: 0; z-index: -1; opacity: .04; pointer-events: none;
  background-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' width='120' height='120'%3E%3Cfilter id='n'%3E%3CfeTurbulence type='fractalNoise' baseFrequency='.85' numOctaves='2'/%3E%3C/filter%3E%3Crect width='100%25' height='100%25' filter='url(%23n)'/%3E%3C/svg%3E"); }

.hero-grid {
  display: grid; grid-template-columns: 1.05fr .95fr; gap: 56px; align-items: center;
}
.hero-copy, .hero-stage { min-width: 0; }
.hero h1, .hero-lead { max-width: 100%; }
@media (max-width: 980px) { .hero-grid { grid-template-columns: 1fr; gap: 44px; text-align: center; } }

.hero-badge {
  display: inline-flex; align-items: center; gap: 9px; margin-bottom: 24px;
  padding: 8px 16px 8px 10px; border-radius: 999px;
  background: rgba(120,160,255,.1); border: 1px solid rgba(140,170,255,.24);
  font-size: .82rem; font-weight: 600; color: var(--on-night-soft);
  backdrop-filter: blur(8px);
}
.hero-badge .dot { width: 8px; height: 8px; border-radius: 50%; background: var(--emerald); box-shadow: 0 0 0 0 rgba(22,199,154,.6); animation: livePulse 2s infinite; }
.hero-badge b { color: #fff; font-weight: 700; }

.hero h1 {
  font-size: clamp(1.75rem, 5.9vw, 4.6rem);
  overflow-wrap: break-word;
  background: var(--grad-hero-text); -webkit-background-clip: text; background-clip: text; color: transparent;
  margin-bottom: 22px;
}
.hero h1 .hl { position: relative; background: linear-gradient(120deg, #6f9bff, #38d6f5); -webkit-background-clip: text; background-clip: text; color: transparent; }
@media (min-width: 641px) { .hero h1 .hl { white-space: nowrap; } }
.hero-lead { font-size: clamp(1.05rem, 1.6vw, 1.24rem); color: var(--on-night-soft); max-width: 38ch; margin-bottom: 34px; }
@media (max-width: 980px) { .hero-lead { margin-inline: auto; } }
.hero-actions { display: flex; flex-wrap: wrap; gap: 14px; }
@media (max-width: 980px) { .hero-actions { justify-content: center; } }

.hero-trust { margin-top: 36px; display: flex; gap: 30px; flex-wrap: wrap; }
@media (max-width: 980px) { .hero-trust { justify-content: center; } }
.hero-trust .stat .n { font-family: "Plus Jakarta Sans"; font-size: 1.7rem; font-weight: 800; color: #fff; line-height: 1; }
.hero-trust .stat .l { font-size: .82rem; color: var(--on-night-soft); margin-top: 5px; }
.hero-trust .sep { width: 1px; background: rgba(150,175,255,.18); }

/* ---- Hero visual: live billboard network ---- */
.hero-stage { position: relative; min-height: 540px; }
.screen-card {
  position: absolute; border-radius: 20px; overflow: hidden;
  background: linear-gradient(160deg, #15234a, #0e1830);
  border: 1px solid rgba(140,170,255,.22);
  box-shadow: 0 30px 70px rgba(4,10,30,.6), inset 0 1px 0 rgba(255,255,255,.06);
  backdrop-filter: blur(4px);
}
/* main 16:9 billboard — height is driven by the 16:9 stage, so the card grows naturally */
.screen-main { top: 4%; left: 0; right: 4%; animation: floatA 7s ease-in-out infinite; }
.screen-2 { width: 216px; right: -5%; top: -2%; animation: floatB 8s ease-in-out infinite; z-index: 3; }
.screen-3 { width: 182px; left: -7%; bottom: 2%; animation: floatA 9s ease-in-out infinite .5s; z-index: 3; }
@media (max-width: 980px) {
  .hero-stage { min-height: 470px; max-width: 540px; margin-inline: auto; }
  .screen-2 { width: 172px; right: -3%; }
  .screen-3 { width: 152px; left: -4%; }
}
@media (max-width: 480px) { .screen-2 { width: 150px; } .screen-3 { width: 130px; } }

/* mobile hero typography — prevent clipped headline / overflow */
@media (max-width: 640px) {
  .hero { padding-top: 26px; }
  .hero-grid { text-align: center; }
  .hero h1 { font-size: clamp(1.7rem, 7.4vw, 3rem); text-align: center; overflow-wrap: break-word; }
  .hero h1 .hl { white-space: normal; }
  .hero-copy { max-width: 100%; }
  .hero-lead { font-size: 1.04rem; margin-inline: auto; }
  .hero-trust { gap: 20px; }
  .hero-trust .stat .n { font-size: 1.4rem; }
}

.scr-top { display: flex; align-items: center; gap: 7px; padding: 11px 14px; background: rgba(8,14,32,.6); border-bottom: 1px solid rgba(140,170,255,.12); }
.scr-top .live { margin-left: auto; display: inline-flex; align-items: center; gap: 6px; font-size: .68rem; font-weight: 700; color: #7ef0c8; letter-spacing: .04em; }
.scr-top .live .dot { width: 7px; height: 7px; border-radius: 50%; background: var(--emerald); animation: livePulse 1.6s infinite; }
.scr-dot { width: 9px; height: 9px; border-radius: 50%; }
.scr-dot.r { background: #ff5f57; } .scr-dot.y { background: #febc2e; } .scr-dot.g { background: #28c840; }
.scr-name { font-size: .72rem; color: var(--on-night-soft); margin-left: 4px; }

.scr-stage { position: relative; aspect-ratio: 16/9; overflow: hidden; background: #0a1326; }
/* live billboard playback: real video / image creatives crossfading */
.bb-media {
  position: absolute; inset: 0; opacity: 1;
  transition: opacity .42s var(--ease);
  background: linear-gradient(135deg, #15234a, #0e1830);
}
.bb-media.fade { opacity: 0; }
.bb-media img, .bb-media video {
  width: 100%; height: 100%; object-fit: cover; display: block;
  animation: bbKenBurns 8s ease-out both;
}
.bb-media video { animation: none; }
.bb-overlay {
  position: absolute; left: 0; right: 0; bottom: 0; z-index: 2;
  display: flex; flex-direction: column; gap: 1px; padding: 22px 14px 11px;
  background: linear-gradient(transparent, rgba(5,10,25,.82));
  pointer-events: none;
}
.bb-kind { font-size: .6rem; font-weight: 800; letter-spacing: .1em; text-transform: uppercase; color: #b9ccff; }
.bb-brand { font-family: "Plus Jakarta Sans"; font-size: .98rem; font-weight: 800; color: #fff; line-height: 1.1; }
.scr-stage .live-corner { position: absolute; top: 10px; right: 10px; z-index: 3; }
.scr-meta { display: flex; align-items: center; gap: 10px; padding: 10px 14px; background: rgba(8,14,32,.55); }
.scr-meta .bar { flex: 1; height: 5px; border-radius: 4px; background: rgba(140,170,255,.16); overflow: hidden; }
.scr-meta .bar i { display: block; height: 100%; width: 0; background: var(--grad-blue); border-radius: 4px; transition: width .12s linear; }
.scr-meta .plays { font-size: .7rem; color: var(--on-night-soft); white-space: nowrap; }
.scr-meta .plays b { color: #fff; }

.mini { padding: 14px; }
.mini .row { display: flex; align-items: center; gap: 8px; margin-top: 9px; }
.mini .row:first-child { margin-top: 0; }
.mini .tag { font-size: .64rem; font-weight: 700; padding: 3px 8px; border-radius: 6px; }
.tag-live { background: rgba(22,199,154,.16); color: #6ff0c4; }
.tag-rev { background: rgba(255,189,46,.16); color: #ffd27a; }
.tag-pause { background: rgba(149,170,210,.16); color: #b8c6e6; }
.mini .label { font-size: .74rem; color: var(--on-night-soft); }
.mini .label b { color: #fff; font-weight: 600; }

.float-chip {
  position: absolute; display: inline-flex; align-items: center; gap: 9px;
  padding: 10px 14px; border-radius: 14px; font-size: .8rem; font-weight: 600;
  background: rgba(255,255,255,.95); color: var(--ink); box-shadow: var(--shadow-lg);
  z-index: 5;
}
.float-chip svg { width: 18px; height: 18px; }
.float-chip.fc-1 { top: 8%; left: -8%; animation: floatB 6s ease-in-out infinite; }
.float-chip.fc-2 { bottom: 6%; right: 2%; animation: floatA 7s ease-in-out infinite .8s; }
.float-chip .ic { width: 26px; height: 26px; border-radius: 8px; display: grid; place-items: center; color: #fff; }
@media (max-width: 480px) { .float-chip { display: none; } }

/* ============================================================
   Section scaffolding (light body)
   ============================================================ */
.section { padding: clamp(64px, 9vw, 120px) 0; position: relative; }
.section--tight { padding-top: clamp(36px, 5vw, 60px); }
.section-head { max-width: 720px; margin-bottom: 54px; }
.section-head.center { margin-inline: auto; text-align: center; }
.section-head h2 { font-size: clamp(2rem, 3.6vw, 3.1rem); margin: 16px 0 14px; }
.section-head p { font-size: 1.12rem; color: var(--muted); }
.section-head .grad { background: var(--grad-blue); -webkit-background-clip: text; background-clip: text; color: transparent; }

/* trust marquee */
.trust-band { padding: 30px 0; border-block: 1px solid var(--line); background: var(--surface); }
.trust-band .row { display: flex; align-items: center; justify-content: space-between; gap: 28px; flex-wrap: wrap; }
.trust-band .lbl { font-size: .82rem; font-weight: 700; letter-spacing: .12em; text-transform: uppercase; color: var(--muted); }
.trust-band .items { display: flex; gap: 38px; flex-wrap: wrap; color: var(--ink-soft); font-weight: 600; }
.trust-band .items span { display: inline-flex; align-items: center; gap: 9px; }
.trust-band .items svg { width: 20px; height: 20px; color: var(--blue); }

/* ============================================================
   Problem → Solution
   ============================================================ */
.split { display: grid; grid-template-columns: 1fr 1fr; gap: 30px; align-items: stretch; }
@media (max-width: 900px) { .split { grid-template-columns: 1fr; } }
.panel { border-radius: var(--r-lg); padding: 34px; border: 1px solid var(--line); }
.panel-problem { background: linear-gradient(180deg, #fff, #fdf5f5); border-color: #f6dede; }
.panel-solution { background: linear-gradient(180deg, #0f1b3d, #0b1530); color: var(--on-night); border-color: transparent; box-shadow: var(--shadow-lg); }
.panel h3 { font-size: 1.4rem; margin-bottom: 18px; }
.panel-solution h3 { color: #fff; }
.panel ul { list-style: none; margin: 0; padding: 0; display: grid; gap: 14px; }
.panel li { display: flex; gap: 13px; align-items: flex-start; font-size: 1rem; }
.panel li .ic { flex: none; width: 26px; height: 26px; border-radius: 8px; display: grid; place-items: center; margin-top: 1px; }
.panel-problem li { color: var(--ink-soft); }
.panel-problem .ic { background: #fdecec; color: var(--accent-deep); }
.panel-solution li { color: var(--on-night-soft); }
.panel-solution li b { color: #fff; }
.panel-solution .ic { background: rgba(22,199,154,.2); color: #6ff0c4; }
.panel-tag { display: inline-block; font-size: .76rem; font-weight: 700; letter-spacing: .1em; text-transform: uppercase; margin-bottom: 14px; }
.panel-problem .panel-tag { color: var(--accent-deep); }
.panel-solution .panel-tag { color: var(--cyan); }

/* ============================================================
   Bento feature grid
   ============================================================ */
.bento { display: grid; grid-template-columns: repeat(6, 1fr); gap: 22px; }
.bento .cell {
  position: relative; overflow: hidden;
  background: var(--surface); border: 1px solid var(--line); border-radius: var(--r-lg);
  padding: 30px; box-shadow: var(--shadow-sm);
  transition: transform .4s var(--ease), box-shadow .4s var(--ease), border-color .4s;
}
.bento .cell:hover { transform: translateY(-6px); box-shadow: var(--shadow-lg); border-color: #c9d8f5; }
.bento .cell::before { /* hover glow */
  content: ""; position: absolute; width: 280px; height: 280px; border-radius: 50%;
  background: radial-gradient(circle, rgba(47,107,255,.12), transparent 70%);
  top: -120px; right: -80px; opacity: 0; transition: opacity .45s var(--ease);
}
.bento .cell:hover::before { opacity: 1; }
.cell-wide { grid-column: span 4; }
.cell-half { grid-column: span 2; }
.cell-third { grid-column: span 2; }
@media (max-width: 980px) { .bento { grid-template-columns: repeat(2, 1fr); } .cell-wide, .cell-half, .cell-third { grid-column: span 1; } .cell-wide { grid-column: span 2; } }
@media (max-width: 600px) { .bento { grid-template-columns: 1fr; } .cell-wide { grid-column: span 1; } }

.cell .ficon {
  width: 52px; height: 52px; border-radius: 15px; display: grid; place-items: center;
  margin-bottom: 18px; color: #fff; box-shadow: 0 10px 22px rgba(47,107,255,.28);
  position: relative; z-index: 1;
}
.cell .ficon svg { width: 26px; height: 26px; }
.ic-blue { background: var(--grad-blue); }
.ic-red { background: var(--grad-cta); box-shadow: 0 10px 22px rgba(255,77,77,.3); }
.ic-violet { background: linear-gradient(120deg, #7c5cff, #b18bff); box-shadow: 0 10px 22px rgba(124,92,255,.3); }
.ic-emerald { background: linear-gradient(120deg, #16c79a, #36e0c0); box-shadow: 0 10px 22px rgba(22,199,154,.3); }
.ic-cyan { background: linear-gradient(120deg, #2f9bff, #38d6f5); box-shadow: 0 10px 22px rgba(56,214,245,.3); }
.ic-amber { background: linear-gradient(120deg, #ff9a3d, #ffc24d); box-shadow: 0 10px 22px rgba(255,154,61,.3); }
.cell h3 { font-size: 1.3rem; margin-bottom: 10px; position: relative; z-index: 1; }
.cell p { color: var(--muted); font-size: .98rem; position: relative; z-index: 1; }
.cell .chips { display: flex; flex-wrap: wrap; gap: 8px; margin-top: 16px; position: relative; z-index: 1; }
.cell .chips span { font-size: .76rem; font-weight: 600; color: var(--blue-deep); background: var(--surface-2); border: 1px solid var(--line); padding: 5px 11px; border-radius: 999px; }

/* wide cell: status dashboard preview */
.statuses { display: flex; flex-wrap: wrap; gap: 10px; margin-top: 18px; position: relative; z-index: 1; }
.status-pill { display: inline-flex; align-items: center; gap: 8px; padding: 8px 14px; border-radius: 999px; font-size: .85rem; font-weight: 600; border: 1px solid var(--line); background: var(--surface-2); }
.status-pill .d { width: 9px; height: 9px; border-radius: 50%; }
.d-live { background: var(--emerald); box-shadow: 0 0 0 0 rgba(22,199,154,.5); animation: livePulse 2s infinite; }
.d-rev { background: #f5a623; } .d-pause { background: #94a3b8; } .d-rej { background: var(--accent); } .d-exp { background: #c084fc; }

/* ============================================================
   How it works — animated journey
   ============================================================ */
.journey { position: relative; }
.journey-track { display: grid; grid-template-columns: repeat(5, 1fr); gap: 18px; position: relative; }
.journey-track::before { /* base line */
  content: ""; position: absolute; top: 33px; left: 8%; right: 8%; height: 3px; border-radius: 3px;
  background: var(--line); z-index: 0;
}
.journey-track::after { /* progress fill */
  content: ""; position: absolute; top: 33px; left: 8%; height: 3px; border-radius: 3px;
  width: var(--progress, 0%); max-width: 84%;
  background: var(--grad-blue); z-index: 1; transition: width 1.2s var(--ease);
  box-shadow: 0 0 16px rgba(47,107,255,.6);
}
@media (max-width: 820px) {
  .journey-track { grid-template-columns: 1fr; gap: 0; }
  .journey-track::before { left: 33px; top: 8%; bottom: 8%; right: auto; width: 3px; height: auto; }
  .journey-track::after { left: 33px; top: 8%; width: 3px; height: var(--progress, 0%); max-height: 84%; }
}
.step { position: relative; z-index: 2; text-align: center; }
@media (max-width: 820px) { .step { display: grid; grid-template-columns: 68px 1fr; text-align: left; gap: 16px; align-items: start; padding: 14px 0; } }
.step .num {
  width: 68px; height: 68px; border-radius: 20px; margin: 0 auto 18px; display: grid; place-items: center;
  background: var(--surface); border: 2px solid var(--line); color: var(--blue-deep);
  font-family: "Plus Jakarta Sans"; font-weight: 800; font-size: 1.5rem;
  box-shadow: var(--shadow-sm); transition: .5s var(--spring);
}
@media (max-width: 820px) { .step .num { margin: 0; } }
.step.is-on .num { background: var(--grad-blue); color: #fff; border-color: transparent; box-shadow: var(--shadow-blue); transform: scale(1.06); }
.step h4 { font-size: 1.12rem; margin-bottom: 7px; }
.step p { color: var(--muted); font-size: .92rem; }

/* ============================================================
   Two experiences (app vs admin)
   ============================================================ */
.exp { display: grid; grid-template-columns: 1fr 1fr; gap: 26px; }
@media (max-width: 900px) { .exp { grid-template-columns: 1fr; } }
.exp-card { border-radius: var(--r-xl); padding: 38px; position: relative; overflow: hidden; border: 1px solid var(--line); background: var(--surface); box-shadow: var(--shadow); }
.exp-card .kicker { font-size: .8rem; font-weight: 700; letter-spacing: .1em; text-transform: uppercase; color: var(--blue); }
.exp-card h3 { font-size: 1.7rem; margin: 12px 0 12px; }
.exp-card > p { color: var(--muted); margin-bottom: 24px; }
.exp-list { list-style: none; padding: 0; margin: 0; display: grid; gap: 12px; }
.exp-list li { display: flex; gap: 11px; align-items: flex-start; color: var(--ink-soft); font-size: .98rem; }
.exp-list svg { flex: none; width: 20px; height: 20px; color: var(--emerald); margin-top: 2px; }

/* phone mock */
.phone {
  width: 220px; margin: 26px auto 0; border-radius: 32px; padding: 12px;
  background: linear-gradient(160deg, #1a2540, #0e1830); box-shadow: var(--shadow-lg);
  border: 1px solid rgba(140,170,255,.2);
}
.phone-screen { border-radius: 22px; overflow: hidden; background: #0b1326; aspect-ratio: 9/17; padding: 16px; color: var(--on-night); }
.phone-screen .ph-h { font-size: .7rem; color: var(--on-night-soft); }
.phone-screen .ph-card { background: rgba(120,160,255,.1); border: 1px solid rgba(140,170,255,.18); border-radius: 12px; padding: 11px; margin-top: 10px; }
.phone-screen .ph-card .t { font-size: .78rem; font-weight: 700; color: #fff; }
.phone-screen .ph-card .b { display: flex; align-items: center; gap: 6px; margin-top: 6px; font-size: .64rem; color: var(--on-night-soft); }
.phone-screen .mini-chart { display: flex; align-items: flex-end; gap: 4px; height: 46px; margin-top: 8px; }
.phone-screen .mini-chart i { flex: 1; background: var(--grad-blue); border-radius: 3px 3px 0 0; animation: barGrow 1.2s var(--ease) both; }

/* dashboard mock */
.dash { background: #0b1326; border-radius: 18px; padding: 16px; margin-top: 26px; color: var(--on-night); box-shadow: var(--shadow-lg); border: 1px solid rgba(140,170,255,.2); }
.dash .d-top { display: flex; align-items: center; gap: 7px; padding-bottom: 12px; border-bottom: 1px solid rgba(140,170,255,.14); }
.dash .d-grid { display: grid; grid-template-columns: repeat(3, 1fr); gap: 10px; margin-top: 14px; }
.dash .d-kpi { background: rgba(120,160,255,.09); border: 1px solid rgba(140,170,255,.16); border-radius: 12px; padding: 12px; }
.dash .d-kpi .n { font-family: "Plus Jakarta Sans"; font-size: 1.3rem; font-weight: 800; color: #fff; }
.dash .d-kpi .l { font-size: .64rem; color: var(--on-night-soft); margin-top: 3px; }
.dash .d-rows { margin-top: 12px; display: grid; gap: 8px; }
.dash .d-row { display: flex; align-items: center; gap: 10px; background: rgba(120,160,255,.07); border-radius: 10px; padding: 9px 12px; font-size: .72rem; }
.dash .d-row .nm { color: #fff; font-weight: 600; }
.dash .d-row .st { margin-left: auto; font-size: .62rem; font-weight: 700; padding: 3px 8px; border-radius: 6px; }

/* ============================================================
   Stats band
   ============================================================ */
.stats-band {
  position: relative; overflow: hidden; border-radius: var(--r-xl);
  background: radial-gradient(120% 120% at 0% 0%, #14224a, #0a1228);
  color: var(--on-night); padding: clamp(40px, 6vw, 64px); box-shadow: var(--shadow-lg);
}
.stats-band::before { content: ""; position: absolute; inset: 0; background: var(--grad-aurora); opacity: .35; filter: blur(10px); z-index: 0; }
.stats-grid { position: relative; z-index: 1; display: grid; grid-template-columns: repeat(4, 1fr); gap: 30px; text-align: center; }
@media (max-width: 760px) { .stats-grid { grid-template-columns: repeat(2, 1fr); gap: 28px; } }
.stat-big .n { font-family: "Plus Jakarta Sans"; font-size: clamp(2.2rem, 4vw, 3.4rem); font-weight: 800; background: linear-gradient(180deg,#fff,#9fb8ff); -webkit-background-clip: text; background-clip: text; color: transparent; line-height: 1; }
.stat-big .l { color: var(--on-night-soft); margin-top: 10px; font-size: .95rem; }

/* ============================================================
   Product family / about strip
   ============================================================ */
.family { display: grid; grid-template-columns: repeat(3, 1fr); gap: 22px; }
@media (max-width: 820px) { .family { grid-template-columns: 1fr; } }
.fam-card { border: 1px solid var(--line); border-radius: var(--r-lg); padding: 28px; background: var(--surface); box-shadow: var(--shadow-sm); transition: transform .4s var(--ease), box-shadow .4s; }
.fam-card:hover { transform: translateY(-5px); box-shadow: var(--shadow); }
.fam-card .ic { width: 46px; height: 46px; border-radius: 13px; display: grid; place-items: center; color: #fff; margin-bottom: 16px; }
.fam-card h3 { font-size: 1.2rem; margin-bottom: 8px; }
.fam-card p { color: var(--muted); font-size: .96rem; }

/* ============================================================
   Final CTA
   ============================================================ */
.cta {
  position: relative; overflow: hidden; text-align: center; color: var(--on-night);
  border-radius: var(--r-xl);
  background: radial-gradient(120% 120% at 50% -20%, #18295a, #0a1228 70%);
  padding: clamp(54px, 8vw, 96px) 8%; box-shadow: var(--shadow-lg);
}
.cta::before { content: ""; position: absolute; inset: -20%; background: var(--grad-aurora); opacity: .5; filter: blur(16px); animation: auroraDrift 16s ease-in-out infinite alternate; z-index: 0; }
.cta > * { position: relative; z-index: 1; }
.cta h2 { font-size: clamp(2.1rem, 4.4vw, 3.4rem); margin-bottom: 18px; }
.cta h2 .grad { background: linear-gradient(120deg, #6f9bff, #38d6f5); -webkit-background-clip: text; background-clip: text; color: transparent; }
.cta p { color: var(--on-night-soft); font-size: 1.15rem; max-width: 56ch; margin: 0 auto 32px; }
.cta-actions { display: flex; gap: 14px; justify-content: center; flex-wrap: wrap; }

/* ============================================================
   Footer
   ============================================================ */
.footer { background: #070b18; color: #9fb0d0; padding: 64px 0 30px; }
.footer-top { display: grid; grid-template-columns: 1.4fr 1fr 1fr 1fr; gap: 40px; padding-bottom: 40px; border-bottom: 1px solid rgba(150,175,255,.12); }
@media (max-width: 820px) { .footer-top { grid-template-columns: 1fr 1fr; gap: 30px; } }
@media (max-width: 520px) { .footer-top { grid-template-columns: 1fr; } }
.footer .brand { color: #fff; margin-bottom: 14px; }
.footer-about { font-size: .94rem; max-width: 34ch; }
.footer h5 { color: #fff; font-family: "Plus Jakarta Sans"; font-size: .82rem; letter-spacing: .12em; text-transform: uppercase; margin: 0 0 16px; }
.footer-col a { display: block; padding: 6px 0; font-size: .94rem; transition: color .2s, transform .2s; }
.footer-col a:hover { color: #fff; transform: translateX(3px); }
.footer-bottom { display: flex; justify-content: space-between; align-items: center; gap: 16px; flex-wrap: wrap; padding-top: 26px; font-size: .88rem; }
.footer-legal { display: flex; gap: 18px; flex-wrap: wrap; }
.footer-legal a:hover { color: #fff; }

/* ============================================================
   Detail / legal pages (about, features, legal)
   ============================================================ */
.page-hero { position: relative; overflow: hidden; background: radial-gradient(120% 90% at 50% -30%, #0f1b3d, var(--night-2) 60%, var(--night)); color: var(--on-night); margin-top: calc(-1 * var(--nav-h)); padding: calc(var(--nav-h) + clamp(40px, 7vh, 90px)) 0 clamp(60px, 9vh, 110px); }
.page-hero::after { content: ""; position: absolute; inset: 0; z-index: 0; background: var(--grad-aurora); opacity: .55; filter: blur(14px); }
.page-hero > .container { position: relative; z-index: 1; }
.page-hero h1 { font-size: clamp(2.3rem, 5vw, 3.8rem); margin-bottom: 18px; background: var(--grad-hero-text); -webkit-background-clip: text; background-clip: text; color: transparent; }
.page-hero .lead { font-size: 1.18rem; color: var(--on-night-soft); max-width: 70ch; }

.detail-section { margin-bottom: 64px; }
.detail-section > .eyebrow { margin-bottom: 12px; }
.detail-section > h2 { font-size: clamp(1.7rem, 3vw, 2.4rem); margin-bottom: 24px; }
.detail-block {
  background: var(--surface); border: 1px solid var(--line); border-radius: var(--r-lg);
  padding: 28px 30px; margin-bottom: 18px; box-shadow: var(--shadow-sm);
  transition: transform .35s var(--ease), box-shadow .35s, border-color .35s;
}
.detail-block.has-num { display: flex; gap: 20px; align-items: flex-start; }
.detail-block:hover { transform: translateY(-4px); box-shadow: var(--shadow); border-color: #c9d8f5; }
.detail-block .bnum { flex: none; width: 44px; height: 44px; border-radius: 13px; display: grid; place-items: center; background: var(--grad-blue); color: #fff; font-family: "Plus Jakarta Sans"; font-weight: 800; box-shadow: var(--shadow-blue); }
.detail-block h3, .detail-block .bbody h3 { font-size: 1.2rem; margin-bottom: 8px; }
.detail-block p, .detail-block .bbody p { color: var(--muted); line-height: 1.7; }
.detail-block p strong { color: var(--ink); }

/* legal page title (kept-markup pages) */
.detail-page .page-title, .legal-page .page-title { font-size: clamp(2rem, 4vw, 3rem); margin-bottom: 8px; }

.detail-list { list-style: none; padding: 0; margin: 0; display: grid; gap: 14px; }
.detail-list li { display: flex; gap: 12px; align-items: flex-start; color: var(--ink-soft); }
.detail-list svg { flex: none; width: 22px; height: 22px; color: var(--blue); margin-top: 2px; }

.legal-page { max-width: 860px; }
.legal-page p, .legal-page li { color: var(--ink-soft); line-height: 1.8; }
.legal-page h2 { font-size: 1.5rem; margin: 34px 0 12px; }
.legal-page h3 { font-size: 1.15rem; margin: 24px 0 8px; }
.legal-updated { display: inline-block; margin: 6px 0 30px; color: var(--muted); font-weight: 600; font-size: .92rem; background: var(--surface-2); padding: 6px 14px; border-radius: 999px; border: 1px solid var(--line); }

/* contact form */
.form-card { max-width: 720px; background: var(--surface); border: 1px solid var(--line); border-radius: var(--r-xl); padding: clamp(26px, 4vw, 44px); box-shadow: var(--shadow); }
.form-grid { display: grid; grid-template-columns: 1fr 1fr; gap: 18px; }
@media (max-width: 600px) { .form-grid { grid-template-columns: 1fr; } }
.field { display: flex; flex-direction: column; gap: 8px; }
.field.full { grid-column: 1 / -1; }
.field label { font-weight: 600; font-size: .9rem; color: var(--ink-soft); }
.field input, .field textarea {
  width: 100%; font: inherit; font-size: .98rem; color: var(--ink);
  padding: 13px 15px; border: 1px solid var(--line); border-radius: var(--r-sm); background: var(--surface-2);
  transition: border-color .2s, box-shadow .2s, background .2s;
}
.field input:focus, .field textarea:focus { outline: none; border-color: var(--blue); background: #fff; box-shadow: 0 0 0 4px rgba(47,107,255,.13); }
.field textarea { min-height: 130px; resize: vertical; }
.status { margin-top: 14px; font-size: .95rem; font-weight: 600; }
.contact-aside { display: grid; gap: 16px; align-content: start; }
.contact-aside .info { display: flex; gap: 14px; align-items: flex-start; background: var(--surface); border: 1px solid var(--line); border-radius: var(--r); padding: 20px; box-shadow: var(--shadow-sm); }
.contact-aside .info .ic { flex: none; width: 42px; height: 42px; border-radius: 12px; display: grid; place-items: center; background: var(--grad-blue); color: #fff; }
.contact-aside .info h4 { font-size: 1rem; margin-bottom: 3px; }
.contact-aside .info p { color: var(--muted); font-size: .92rem; }
.contact-wrap { display: grid; grid-template-columns: 1.6fr 1fr; gap: 26px; align-items: start; }
@media (max-width: 880px) { .contact-wrap { grid-template-columns: 1fr; } }

/* ============================================================
   Scroll reveal
   ============================================================ */
[data-reveal] {
  opacity: 0; transform: translateY(34px);
  transition: opacity .8s var(--ease), transform .9s var(--ease);
  transition-delay: var(--d, 0ms); will-change: opacity, transform;
}
[data-reveal="left"] { transform: translateX(-46px); }
[data-reveal="right"] { transform: translateX(46px); }
[data-reveal="scale"] { transform: scale(.92); }
[data-reveal].in { opacity: 1; transform: none; }

/* ============================================================
   Keyframes
   ============================================================ */
@keyframes sheen { 0%, 60% { transform: translateX(-120%); } 100% { transform: translateX(120%); } }
@keyframes livePulse { 0% { box-shadow: 0 0 0 0 rgba(22,199,154,.55); } 70% { box-shadow: 0 0 0 9px rgba(22,199,154,0); } 100% { box-shadow: 0 0 0 0 rgba(22,199,154,0); } }
@keyframes auroraDrift { 0% { transform: translate3d(0,0,0) scale(1); } 100% { transform: translate3d(-3%,2%,0) scale(1.08); } }
@keyframes floorScroll { from { background-position: 0 0; } to { background-position: 0 58px; } }
@keyframes floatA { 0%,100% { transform: translateY(0); } 50% { transform: translateY(-16px); } }
@keyframes floatB { 0%,100% { transform: translateY(0); } 50% { transform: translateY(14px); } }
@keyframes bbKenBurns { from { transform: scale(1.12); } to { transform: scale(1); } }
@keyframes barGrow { from { height: 0; } }

/* ============================================================
   Reduced motion
   ============================================================ */
@media (prefers-reduced-motion: reduce) {
  *, *::before, *::after {
    animation-duration: .001ms !important; animation-iteration-count: 1 !important;
    transition-duration: .001ms !important; scroll-behavior: auto !important;
  }
  [data-reveal] { opacity: 1 !important; transform: none !important; }
  .hero-floor, .hero::before, .cta::before, .stats-band::before { animation: none !important; }
}
