/* ==========================================================================
   YLB Security — v2 design system (dark startup theme, 2026-08-23)
   Fonts: Space Grotesk (display) · Inter (body) · JetBrains Mono (code)
   ========================================================================== */

:root {
  --bg: #05070d;
  --bg-2: #070b14;
  --bg-3: #0a0f1c;
  --panel: rgba(255, 255, 255, 0.028);
  --panel-2: rgba(255, 255, 255, 0.05);
  --line: rgba(148, 163, 199, 0.14);
  --line-2: rgba(148, 163, 199, 0.26);
  --txt: #e9edf6;
  --txt-2: #aab5cc;
  --mut: #7381a0;

  --brand: #4f7dff;
  --brand-2: #8b5cf6;
  --brand-grad: linear-gradient(120deg, #4f7dff 0%, #8b5cf6 55%, #c65ef0 100%);

  --cyan: #22d3ee;    --cyan-d: #0e7490;
  --rose: #fb7185;    --rose-d: #be123c;
  --emerald: #34d399; --emerald-d: #047857;
  --violet: #a78bfa;  --violet-d: #6d28d9;
  --amber: #fbbf24;   --amber-d: #b45309;

  --grad-cyan: linear-gradient(135deg, #0891b2, #22d3ee);
  --grad-rose: linear-gradient(135deg, #e11d48, #fb7185);
  --grad-emerald: linear-gradient(135deg, #059669, #34d399);
  --grad-violet: linear-gradient(135deg, #6d28d9, #a78bfa);
  --grad-danger: linear-gradient(135deg, #dc2626, #f87171);

  --font-head: "Space Grotesk", "Inter", system-ui, sans-serif;
  --font-body: "Inter", system-ui, -apple-system, "Segoe UI", sans-serif;
  --font-mono: "JetBrains Mono", ui-monospace, "SF Mono", Menlo, monospace;
  --radius: 16px;
  --radius-sm: 10px;
  --shadow-lg: 0 24px 70px -18px rgba(0, 0, 0, 0.65);
  --ease-out: cubic-bezier(0.16, 1, 0.3, 1);
  --ease-spring: cubic-bezier(0.34, 1.56, 0.64, 1);
}

* { box-sizing: border-box; }

html { scroll-behavior: smooth; }

body {
  margin: 0;
  font-family: var(--font-body);
  background: var(--bg);
  color: var(--txt);
  font-size: 16px;
  line-height: 1.65;
  -webkit-font-smoothing: antialiased;
  overflow-x: hidden;
}

::selection { background: rgba(139, 92, 246, 0.4); color: #fff; }

img { max-width: 100%; }
a { color: inherit; text-decoration: none; }
code {
  font-family: var(--font-mono);
  font-size: 0.86em;
  background: rgba(139, 92, 246, 0.12);
  border: 1px solid rgba(139, 92, 246, 0.2);
  padding: 0.08em 0.4em;
  border-radius: 6px;
  color: #c4b5fd;
}

/* ---------- scrollbar ---------- */
::-webkit-scrollbar { width: 10px; height: 10px; }
::-webkit-scrollbar-track { background: var(--bg); }
::-webkit-scrollbar-thumb {
  background: linear-gradient(180deg, #232c44, #1a2136);
  border-radius: 8px;
  border: 2px solid var(--bg);
}
::-webkit-scrollbar-thumb:hover { background: #2e3a5c; }

:focus-visible {
  outline: 2px solid var(--brand);
  outline-offset: 3px;
  border-radius: 6px;
}

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

/* ==========================================================================
   Background FX — aurora, grid, noise (fixed, GPU-cheap)
   ========================================================================== */
.bg-fx { position: fixed; inset: 0; z-index: -2; overflow: hidden; pointer-events: none; }

.bg-fx .orb {
  position: absolute;
  border-radius: 50%;
  filter: blur(90px);
  opacity: 0.5;
  will-change: transform;
}
.orb.o1 { width: 560px; height: 560px; top: -180px; left: -120px;
  background: radial-gradient(circle, rgba(79, 125, 255, 0.32), transparent 65%);
  animation: orbDrift 26s ease-in-out infinite; }
.orb.o2 { width: 640px; height: 640px; top: 16%; right: -240px;
  background: radial-gradient(circle, rgba(139, 92, 246, 0.26), transparent 65%);
  animation: orbDrift 32s ease-in-out -8s infinite reverse; }
.orb.o3 { width: 520px; height: 520px; bottom: -200px; left: 28%;
  background: radial-gradient(circle, rgba(16, 185, 129, 0.14), transparent 65%);
  animation: orbDrift 38s ease-in-out -16s infinite; }

@keyframes orbDrift {
  0%, 100% { transform: translate3d(0, 0, 0) scale(1); }
  33% { transform: translate3d(60px, -40px, 0) scale(1.08); }
  66% { transform: translate3d(-40px, 50px, 0) scale(0.94); }
}

.bg-fx .grid {
  position: absolute; inset: 0;
  background-image:
    linear-gradient(rgba(148, 163, 199, 0.05) 1px, transparent 1px),
    linear-gradient(90deg, rgba(148, 163, 199, 0.05) 1px, transparent 1px);
  background-size: 56px 56px;
  mask-image: radial-gradient(ellipse 90% 60% at 50% 0%, black 30%, transparent 78%);
  -webkit-mask-image: radial-gradient(ellipse 90% 60% at 50% 0%, black 30%, transparent 78%);
  animation: gridPan 60s linear infinite;
}
@keyframes gridPan { to { background-position: 56px 56px, 56px 56px; } }

.bg-fx .noise {
  position: absolute; inset: 0; opacity: 0.5; mix-blend-mode: overlay;
  background-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' width='140' height='140'%3E%3Cfilter id='n'%3E%3CfeTurbulence type='fractalNoise' baseFrequency='0.9' numOctaves='2'/%3E%3C/filter%3E%3Crect width='140' height='140' filter='url(%23n)' opacity='0.05'/%3E%3C/svg%3E");
}

/* ==========================================================================
   Reveal-on-scroll (staggered via --d custom delay)
   ========================================================================== */
.reveal {
  opacity: 0;
  transform: translateY(26px) scale(0.985);
  filter: blur(6px);
  transition:
    opacity 0.9s var(--ease-out),
    transform 0.9s var(--ease-out),
    filter 0.9s var(--ease-out);
  transition-delay: var(--d, 0s);
}
.reveal.in { opacity: 1; transform: none; filter: none; }

@media (prefers-reduced-motion: reduce) {
  .reveal { opacity: 1; transform: none; filter: none; transition: none; }
  *, *::before, *::after {
    animation-duration: 0.01ms !important;
    animation-iteration-count: 1 !important;
    transition-duration: 0.01ms !important;
  }
}

/* ==========================================================================
   Navbar — glass, shrinks on scroll
   ========================================================================== */
.nav {
  position: fixed; top: 0; left: 0; right: 0; z-index: 60;
  padding: 18px 0;
  transition: padding 0.4s var(--ease-out), background 0.4s, border-color 0.4s;
  border-bottom: 1px solid transparent;
}
.nav.scrolled {
  padding: 10px 0;
  background: rgba(5, 7, 13, 0.72);
  backdrop-filter: blur(18px) saturate(1.4);
  -webkit-backdrop-filter: blur(18px) saturate(1.4);
  border-bottom-color: var(--line);
}
.nav-inner { display: flex; align-items: center; gap: 28px; }

.logo {
  display: inline-flex; align-items: center; gap: 10px;
  font-family: var(--font-head);
  font-weight: 700; font-size: 17px; letter-spacing: -0.01em;
}
.logo-mark {
  width: 34px; height: 34px; border-radius: 10px;
  display: grid; place-items: center; color: #fff;
  background: var(--brand-grad);
  box-shadow: 0 4px 18px -4px rgba(99, 102, 241, 0.55), inset 0 1px 0 rgba(255,255,255,0.25);
  transition: transform 0.5s var(--ease-spring);
}
.logo:hover .logo-mark { transform: rotate(-8deg) scale(1.06); }

.nav-links {
  display: flex; align-items: center; gap: 4px; list-style: none;
  margin: 0 0 0 auto; padding: 0;
}
.nav-links a {
  display: block; padding: 8px 13px; border-radius: 9px;
  font-size: 14.2px; font-weight: 500; color: var(--txt-2);
  transition: color 0.25s, background 0.25s;
  position: relative;
}
.nav-links a:hover { color: var(--txt); background: var(--panel-2); }
.nav-links a.active { color: #fff; }
.nav-links a.active::after {
  content: ""; position: absolute; left: 13px; right: 13px; bottom: 3px; height: 2px;
  border-radius: 2px; background: var(--brand-grad);
  animation: navUnderline 0.45s var(--ease-out) both;
}
@keyframes navUnderline { from { transform: scaleX(0); } to { transform: scaleX(1); } }

.nav-cta { display: flex; align-items: center; gap: 12px; }

.burger {
  display: none; width: 42px; height: 42px; border-radius: 10px;
  border: 1px solid var(--line); background: var(--panel);
  cursor: pointer; padding: 0;
  flex-direction: column; align-items: center; justify-content: center; gap: 5px;
}
.burger span {
  width: 18px; height: 2px; border-radius: 2px; background: var(--txt);
  transition: transform 0.35s var(--ease-out), opacity 0.2s;
}
.burger[aria-expanded="true"] span:nth-child(1) { transform: translateY(7px) rotate(45deg); }
.burger[aria-expanded="true"] span:nth-child(2) { opacity: 0; }
.burger[aria-expanded="true"] span:nth-child(3) { transform: translateY(-7px) rotate(-45deg); }

@media (max-width: 920px) {
  .burger { display: flex; }
  .btn-nav-desktop { display: none; }
  .nav-links {
    position: fixed; top: 68px; left: 16px; right: 16px;
    flex-direction: column; align-items: stretch; gap: 2px;
    background: rgba(7, 11, 20, 0.96);
    backdrop-filter: blur(20px);
    border: 1px solid var(--line); border-radius: 16px; padding: 10px;
    opacity: 0; transform: translateY(-10px) scale(0.98); pointer-events: none;
    transition: opacity 0.3s var(--ease-out), transform 0.3s var(--ease-out);
  }
  .nav-links.open { opacity: 1; transform: none; pointer-events: auto; }
  .nav-links a { padding: 12px 14px; font-size: 15px; }
}

/* auth slot (shared chip from auth-ui.js) */
.js-auth-slot { display: inline-flex; }

/* ==========================================================================
   Buttons
   ========================================================================== */
.btn {
  position: relative; display: inline-flex; align-items: center; gap: 9px;
  padding: 13px 22px; border-radius: 12px;
  font-family: var(--font-body); font-size: 14.5px; font-weight: 600;
  border: 1px solid transparent; cursor: pointer; white-space: nowrap;
  transition: transform 0.35s var(--ease-spring), box-shadow 0.35s, border-color 0.3s, background 0.3s, color 0.3s;
  overflow: hidden; text-decoration: none;
}
.btn svg { transition: transform 0.35s var(--ease-out); }
.btn:hover svg { transform: translateX(3px); }
.btn:active { transform: scale(0.97); }

.btn-primary {
  background: var(--brand-grad); color: #fff;
  box-shadow: 0 8px 28px -8px rgba(99, 102, 241, 0.6), inset 0 1px 0 rgba(255,255,255,0.22);
}
.btn-primary:hover {
  transform: translateY(-2px);
  box-shadow: 0 14px 44px -8px rgba(99, 102, 241, 0.75), inset 0 1px 0 rgba(255,255,255,0.22);
}
/* shine sweep */
.btn-primary::after {
  content: ""; position: absolute; top: 0; bottom: 0; left: -70%; width: 44%;
  background: linear-gradient(105deg, transparent, rgba(255, 255, 255, 0.34), transparent);
  transform: skewX(-18deg); transition: left 0.7s var(--ease-out);
}
.btn-primary:hover::after { left: 130%; }

.btn-ghost {
  background: var(--panel); color: var(--txt);
  border-color: var(--line-2);
}
.btn-ghost:hover { background: var(--panel-2); border-color: rgba(148, 163, 199, 0.45); transform: translateY(-2px); }

.btn-white { background: #fff; color: #0a0f1c; }
.btn-white:hover { transform: translateY(-2px); box-shadow: 0 14px 40px -10px rgba(255, 255, 255, 0.35); }
.btn-dark { background: rgba(255,255,255,0.08); color: #fff; border-color: rgba(255,255,255,0.16); backdrop-filter: blur(6px); }
.btn-dark:hover { background: rgba(255,255,255,0.14); transform: translateY(-2px); }

.btn-sm { padding: 9px 16px; font-size: 13.5px; border-radius: 10px; }

/* ==========================================================================
   Hero
   ========================================================================== */
.hero { position: relative; padding: 158px 0 96px; }
.hero-grid {
  display: grid; grid-template-columns: 1.05fr 0.95fr; gap: 56px; align-items: center;
}
@media (max-width: 1020px) { .hero-grid { grid-template-columns: 1fr; } .hero { padding-top: 130px; } }

.hero-badge {
  display: inline-flex; align-items: center; gap: 9px;
  font-family: var(--font-mono); font-size: 12px; letter-spacing: 0.06em;
  color: var(--txt-2); text-transform: uppercase;
  border: 1px solid var(--line); border-radius: 100px;
  padding: 7px 15px; background: var(--panel);
  animation: fadeUp 0.9s var(--ease-out) 0.05s both;
}
.hero-badge .dot {
  width: 7px; height: 7px; border-radius: 50%; background: var(--emerald);
  box-shadow: 0 0 0 0 rgba(52, 211, 153, 0.6);
  animation: pulseDot 2.2s ease-out infinite;
}
@keyframes pulseDot {
  0% { box-shadow: 0 0 0 0 rgba(52, 211, 153, 0.55); }
  70% { box-shadow: 0 0 0 9px rgba(52, 211, 153, 0); }
  100% { box-shadow: 0 0 0 0 rgba(52, 211, 153, 0); }
}

.hero h1 {
  font-family: var(--font-head);
  font-size: clamp(2.6rem, 5.4vw, 4.15rem);
  line-height: 1.06; letter-spacing: -0.03em; font-weight: 700;
  margin: 26px 0 20px;
  animation: fadeUp 0.9s var(--ease-out) 0.15s both;
}
.grad {
  background: linear-gradient(110deg, #7aa5ff, #a78bfa 45%, #67e8f9 90%);
  background-size: 220% 100%;
  -webkit-background-clip: text; background-clip: text; color: transparent;
  animation: gradShift 7s ease-in-out infinite alternate;
}
@keyframes gradShift { from { background-position: 0% 0; } to { background-position: 100% 0; } }

.lead {
  font-size: 1.16rem; color: var(--txt-2); max-width: 540px; margin: 0 0 32px;
  animation: fadeUp 0.9s var(--ease-out) 0.25s both;
}
.hero-cta { display: flex; gap: 14px; flex-wrap: wrap; animation: fadeUp 0.9s var(--ease-out) 0.35s both; }

.hero-trust {
  display: flex; align-items: center; gap: 14px; margin-top: 34px;
  color: var(--mut); font-size: 13.5px;
  animation: fadeUp 0.9s var(--ease-out) 0.45s both;
}
.avatars { display: flex; }
.avatars span {
  width: 34px; height: 34px; border-radius: 50%;
  display: grid; place-items: center; font-size: 12.5px; font-weight: 700;
  color: #fff; border: 2px solid var(--bg); margin-left: -8px;
  font-family: var(--font-head);
}
.avatars span:first-child { margin-left: 0; }
.avatars span:nth-child(1) { background: var(--grad-violet); }
.avatars span:nth-child(2) { background: var(--grad-cyan); }
.avatars span:nth-child(3) { background: var(--grad-rose); }
.avatars span:nth-child(4) { background: var(--grad-emerald); }

/* typing terminal under hero */
.hero-terminal {
  margin-top: 30px; max-width: 560px;
  border: 1px solid var(--line); border-radius: 12px;
  background: rgba(3, 5, 10, 0.72);
  font-family: var(--font-mono); font-size: 12.8px; color: var(--txt-2);
  padding: 13px 16px; line-height: 1.9;
  animation: fadeUp 0.9s var(--ease-out) 0.55s both;
}
.hero-terminal .ln::before { content: "$ "; color: var(--violet); }
.hero-terminal .cursor {
  display: inline-block; width: 8px; height: 15px; background: var(--emerald);
  vertical-align: -2px; margin-left: 2px;
  animation: blink 1s steps(1) infinite;
}
@keyframes blink { 50% { opacity: 0; } }

@keyframes fadeUp {
  from { opacity: 0; transform: translateY(24px); filter: blur(5px); }
  to { opacity: 1; transform: none; filter: none; }
}

/* ---------- hero visual: dashboard + floating cards ---------- */
.hero-visual { position: relative; animation: fadeUp 1.1s var(--ease-out) 0.3s both; }

.dash {
  position: relative;
  border: 1px solid var(--line); border-radius: 20px;
  background: linear-gradient(180deg, rgba(13, 18, 32, 0.9), rgba(7, 10, 18, 0.94));
  box-shadow: var(--shadow-lg), 0 0 90px -30px rgba(99, 102, 241, 0.35);
  overflow: hidden;
  animation: heroFloat 7s ease-in-out infinite;
}
@keyframes heroFloat {
  0%, 100% { transform: translateY(0); }
  50% { transform: translateY(-10px); }
}
.dash::before {
  content: ""; position: absolute; inset: 0; border-radius: 20px; padding: 1px;
  background: linear-gradient(140deg, rgba(122, 165, 255, 0.35), transparent 30%, transparent 70%, rgba(103, 232, 249, 0.25));
  -webkit-mask: linear-gradient(#000 0 0) content-box, linear-gradient(#000 0 0);
  -webkit-mask-composite: xor; mask-composite: exclude;
  pointer-events: none;
}

.dash-top {
  display: flex; justify-content: space-between; align-items: center;
  padding: 15px 20px; border-bottom: 1px solid var(--line);
  font-family: var(--font-mono); font-size: 12px; color: var(--mut);
}
.dash-live {
  display: inline-flex; align-items: center; gap: 6px;
  color: var(--emerald); font-weight: 600; letter-spacing: 0.1em;
}
.dash-live::before {
  content: ""; width: 7px; height: 7px; border-radius: 50%; background: var(--emerald);
  animation: pulseDot 2s infinite;
}
.dash-stats { display: grid; grid-template-columns: repeat(4, 1fr); gap: 12px; padding: 18px 20px 6px; }
.stat .num {
  font-family: var(--font-head); font-size: clamp(1.35rem, 2.4vw, 1.9rem); font-weight: 700; letter-spacing: -0.02em;
}
.stat .lbl { font-size: 10.8px; color: var(--mut); text-transform: uppercase; letter-spacing: 0.05em; margin-top: 2px; }
.num.cyan { color: var(--cyan); } .num.amber { color: var(--amber); }
.num.rose { color: var(--rose); } .num.violet { color: var(--violet); }

.dash-radar {
  position: relative; height: 230px; margin: 10px 20px 16px;
  border-radius: 14px; overflow: hidden;
  background:
    radial-gradient(circle at 50% 50%, rgba(34, 211, 238, 0.06), transparent 60%),
    repeating-radial-gradient(circle at 50% 50%, transparent 0 34px, rgba(148, 163, 199, 0.07) 34px 35px);
}
.radar-ring {
  position: absolute; inset: 0; margin: auto; border-radius: 50%;
  border: 1px solid rgba(148, 163, 199, 0.12);
}
.ring-1 { width: 70px; height: 70px; }
.ring-2 { width: 140px; height: 140px; }
.ring-3 { width: 210px; height: 210px; }
.radar-line {
  position: absolute; inset: 0;
  background: conic-gradient(from 0deg, rgba(34, 211, 238, 0.4), transparent 22%, transparent);
  border-radius: 50%;
  animation: radarSpin 4.5s linear infinite;
}
@keyframes radarSpin { to { transform: rotate(360deg); } }

.radar-blip {
  position: absolute; width: 9px; height: 9px; border-radius: 50%;
  animation: blipPing 3s ease-out infinite;
}
.radar-blip.cyan { background: var(--cyan); animation-delay: 0.4s; }
.radar-blip.amber { background: var(--amber); animation-delay: 1.3s; }
.radar-blip.rose { background: var(--rose); animation-delay: 2.1s; }
@keyframes blipPing {
  0% { box-shadow: 0 0 0 0 rgba(255, 255, 255, 0.5); opacity: 1; }
  75% { box-shadow: 0 0 0 12px rgba(255, 255, 255, 0); opacity: 0.85; }
  100% { opacity: 1; }
}

.dash-foot {
  display: flex; justify-content: space-between; gap: 10px; flex-wrap: wrap;
  padding: 12px 20px 16px; border-top: 1px solid var(--line);
  font-family: var(--font-mono); font-size: 11px; color: var(--mut);
}
.dash-foot strong { color: var(--txt-2); font-weight: 600; }

.float-card {
  position: absolute; display: flex; gap: 11px; align-items: center;
  padding: 12px 16px; border-radius: 14px;
  background: rgba(10, 15, 26, 0.88);
  border: 1px solid var(--line);
  backdrop-filter: blur(12px);
  box-shadow: var(--shadow-lg);
  font-size: 12.5px; color: var(--txt-2);
  animation: cardBob 6s ease-in-out infinite;
}
.float-card b { display: block; color: var(--txt); font-size: 12.5px; margin-bottom: 1px; }
.float-card .ic {
  width: 34px; height: 34px; border-radius: 10px; display: grid; place-items: center; color: #fff; flex: none;
}
.fc-1 { top: -22px; right: -14px; animation-delay: 0.6s; }
.fc-2 { bottom: 66px; left: -30px; animation-delay: 1.8s; }
.fc-3 { bottom: -20px; right: 12%; animation-delay: 3s; }
.fc-4 { top: 40%; left: -44px; animation-delay: 4.2s; }
@keyframes cardBob {
  0%, 100% { transform: translateY(0); }
  50% { transform: translateY(-9px); }
}
@media (max-width: 1020px) {
  .fc-2, .fc-4 { display: none; }
  .fc-1 { right: 0; } .fc-3 { right: 4%; }
}

/* ==========================================================================
   Marquee logo strip
   ========================================================================== */
.logo-strip {
  border-block: 1px solid var(--line);
  background: rgba(255, 255, 255, 0.014);
  padding: 26px 0; overflow: hidden; position: relative;
}
.logo-strip::before, .logo-strip::after {
  content: ""; position: absolute; top: 0; bottom: 0; width: 140px; z-index: 2; pointer-events: none;
}
.logo-strip::before { left: 0; background: linear-gradient(90deg, var(--bg), transparent); }
.logo-strip::after { right: 0; background: linear-gradient(-90deg, var(--bg), transparent); }
.strip-lbl {
  text-align: center; margin: 0 0 16px;
  font-family: var(--font-mono); font-size: 11px; letter-spacing: 0.14em;
  text-transform: uppercase; color: var(--mut);
}
.logos {
  display: flex; gap: 64px; width: max-content;
  animation: marquee 30s linear infinite;
}
.logos:hover { animation-play-state: paused; }
.logos span {
  display: inline-flex; align-items: center; gap: 9px;
  color: var(--mut); font-weight: 600; font-size: 14.5px;
  font-family: var(--font-head); white-space: nowrap;
  transition: color 0.3s;
}
.logos span:hover { color: var(--txt-2); }
.logos span svg { opacity: 0.65; }
@keyframes marquee { to { transform: translateX(-50%); } }

/* ==========================================================================
   Sections / cards
   ========================================================================== */
.block { padding: 96px 0; position: relative; }
@media (max-width: 720px) { .block { padding: 68px 0; } }

.section-head { max-width: 640px; margin-bottom: 52px; }
.section-head.center { text-align: center; margin-inline: auto; }
.eyebrow {
  display: inline-flex; align-items: center; gap: 8px;
  font-family: var(--font-mono); font-size: 11.5px; font-weight: 500;
  letter-spacing: 0.16em; text-transform: uppercase; color: #8fa3ff;
}
.eyebrow::before {
  content: ""; width: 8px; height: 8px; border-radius: 3px;
  background: var(--brand-grad);
  animation: pulseDot 2.6s infinite;
}
.section-head h2 {
  font-family: var(--font-head);
  font-size: clamp(1.9rem, 3.6vw, 2.7rem);
  line-height: 1.12; letter-spacing: -0.025em; margin: 16px 0 14px;
}
.section-head p { color: var(--txt-2); font-size: 1.06rem; margin: 0; }

.grid-3 {
  display: grid; grid-template-columns: repeat(3, 1fr); gap: 20px;
}
@media (max-width: 920px) { .grid-3 { grid-template-columns: 1fr; } }

/* spotlight card — radial highlight follows the cursor (JS sets --mx/--my) */
.card {
  position: relative; padding: 30px 28px;
  border-radius: var(--radius);
  background: linear-gradient(180deg, var(--panel-2), var(--panel));
  border: 1px solid var(--line);
  overflow: hidden;
  transition: transform 0.5s var(--ease-out), border-color 0.4s, box-shadow 0.5s;
}
.card::before {
  content: ""; position: absolute; inset: 0; opacity: 0;
  background: radial-gradient(420px circle at var(--mx, 50%) var(--my, 50%), rgba(122, 165, 255, 0.09), transparent 45%);
  transition: opacity 0.4s; pointer-events: none;
}
.card:hover { transform: translateY(-6px); border-color: var(--line-2); box-shadow: var(--shadow-lg); }
.card:hover::before { opacity: 1; }

.card .ic {
  width: 48px; height: 48px; border-radius: 13px;
  display: grid; place-items: center; color: #fff; margin-bottom: 20px;
  transition: transform 0.5s var(--ease-spring);
}
.card:hover .ic { transform: scale(1.1) rotate(-4deg); }
.card.cyan .ic { background: var(--grad-cyan); box-shadow: 0 8px 22px -8px rgba(8, 145, 178, 0.6); }
.card.violet .ic { background: var(--grad-violet); box-shadow: 0 8px 22px -8px rgba(109, 40, 217, 0.6); }
.card.emerald .ic { background: var(--grad-emerald); box-shadow: 0 8px 22px -8px rgba(4, 120, 87, 0.6); }
.card h3 { font-family: var(--font-head); font-size: 1.28rem; margin: 0 0 10px; letter-spacing: -0.015em; }
.card p { color: var(--txt-2); font-size: 0.97rem; margin: 0 0 20px; }

.card-link {
  display: inline-flex; align-items: center; gap: 7px;
  font-weight: 600; font-size: 14px; color: #9db4ff;
}
.card-link svg { transition: transform 0.3s var(--ease-out); }
.card-link:hover svg { transform: translateX(4px); }

/* ==========================================================================
   Tool rows (product showcase)
   ========================================================================== */
.tool-row {
  display: grid; grid-template-columns: 1fr 1fr; gap: 60px;
  align-items: center; padding: 60px 0;
}
.tool-row + .tool-row { border-top: 1px dashed var(--line); }
@media (max-width: 1020px) { .tool-row { grid-template-columns: 1fr; gap: 36px; } }

.tool-tag {
  display: inline-flex; padding: 6px 13px; border-radius: 100px;
  font-family: var(--font-mono); font-size: 11.5px; font-weight: 500;
  letter-spacing: 0.08em; text-transform: uppercase;
  margin-bottom: 18px;
}
.tool-tag.rose { color: #fda4af; background: rgba(225, 29, 72, 0.12); border: 1px solid rgba(251, 113, 133, 0.3); }
.tool-tag.cyan { color: #67e8f9; background: rgba(8, 145, 178, 0.12); border: 1px solid rgba(34, 211, 238, 0.3); }
.tool-tag.emerald { color: #6ee7b7; background: rgba(4, 120, 87, 0.12); border: 1px solid rgba(52, 211, 153, 0.3); }
.tool-tag.violet { color: #c4b5fd; background: rgba(109, 40, 217, 0.14); border: 1px solid rgba(167, 139, 250, 0.32); }

.tool-copy h2 {
  font-family: var(--font-head); font-size: clamp(1.8rem, 3vw, 2.4rem);
  letter-spacing: -0.02em; margin: 0 0 16px;
}
.tool-copy > p { color: var(--txt-2); font-size: 1.02rem; }
.tool-feats { list-style: none; padding: 0; margin: 22px 0 28px; display: grid; gap: 12px; }
.tool-feats li { display: flex; gap: 12px; align-items: flex-start; color: var(--txt-2); font-size: 0.96rem; }
.tool-feats svg { flex: none; margin-top: 2px; }

/* browser mock */
.mock {
  border: 1px solid var(--line); border-radius: 16px; overflow: hidden;
  background: linear-gradient(180deg, rgba(13, 18, 32, 0.85), rgba(6, 9, 16, 0.92));
  box-shadow: var(--shadow-lg);
  transition: transform 0.6s var(--ease-out), box-shadow 0.6s;
}
.tool-art:hover .mock { transform: translateY(-4px) scale(1.005); box-shadow: var(--shadow-lg), 0 0 60px -22px rgba(99, 102, 241, 0.4); }
.mock-bar {
  display: flex; align-items: center; gap: 7px;
  padding: 11px 14px; border-bottom: 1px solid var(--line);
  background: rgba(255, 255, 255, 0.025);
}
.mock-bar .dot { width: 10px; height: 10px; border-radius: 50%; }
.dot.r { background: #f87171; } .dot.y { background: #fbbf24; } .dot.g { background: #34d399; }
.mock-bar .addr {
  margin-left: 10px; flex: 1; padding: 5px 12px; border-radius: 7px;
  background: rgba(0, 0, 0, 0.35); border: 1px solid var(--line);
  font-family: var(--font-mono); font-size: 11px; color: var(--mut);
  white-space: nowrap; overflow: hidden; text-overflow: ellipsis;
}

/* branguard domain grid */
.domain-grid { display: grid; grid-template-columns: 1fr 1fr; gap: 12px; padding: 18px; }
.domain-card {
  border: 1px solid var(--line); border-radius: 12px; padding: 12px;
  background: rgba(255, 255, 255, 0.02);
  transition: transform 0.4s var(--ease-out), border-color 0.3s;
  animation: cardIn 0.7s var(--ease-out) both;
}
.domain-card:nth-child(2) { animation-delay: 0.12s; }
.domain-card:nth-child(3) { animation-delay: 0.24s; }
.domain-card:nth-child(4) { animation-delay: 0.36s; }
@keyframes cardIn { from { opacity: 0; transform: translateY(14px); } to { opacity: 1; transform: none; } }
.domain-card:hover { transform: translateY(-3px); border-color: var(--line-2); }
.domain-shot {
  height: 74px; border-radius: 8px; margin-bottom: 10px;
  background:
    linear-gradient(180deg, rgba(122, 165, 255, 0.16), rgba(122, 165, 255, 0.04)),
    repeating-linear-gradient(0deg, transparent 0 14px, rgba(255,255,255,0.045) 14px 15px),
    repeating-linear-gradient(90deg, transparent 0 26px, rgba(255,255,255,0.045) 26px 27px);
  position: relative; overflow: hidden;
}
.domain-shot.fake { border: 1px solid rgba(251, 113, 133, 0.4); }
.domain-shot.fake::after {
  content: "CLONE"; position: absolute; top: 6px; right: 6px;
  font-family: var(--font-mono); font-size: 8.5px; letter-spacing: 0.1em;
  color: #fecdd3; background: rgba(190, 18, 60, 0.75);
  padding: 2px 6px; border-radius: 5px;
}
.domain-shot .shot-brand {
  position: absolute; left: 10px; top: 10px; width: 46px; height: 12px; border-radius: 4px;
  background: linear-gradient(90deg, rgba(122, 165, 255, 0.85), rgba(167, 139, 250, 0.85));
}
.domain-card .name {
  font-family: var(--font-mono); font-size: 11.5px; color: var(--txt-2);
  display: flex; align-items: center; justify-content: space-between; gap: 6px;
}
.flag { font-size: 8.5px; font-weight: 700; letter-spacing: 0.1em; padding: 2.5px 7px; border-radius: 5px; }
.flag.ok { color: #6ee7b7; background: rgba(4, 120, 87, 0.2); }
.flag.risk { color: #fda4af; background: rgba(190, 18, 60, 0.25); animation: pulseDot 2.4s infinite; }

/* phishanna gauge mock */
.phish-layout { display: flex; gap: 18px; padding: 18px; align-items: center; }
.gauge-wrap { text-align: center; flex: none; }
.gauge { position: relative; width: 132px; height: 132px; }
.gauge svg circle:nth-child(2) {
  animation: gaugeFill 1.6s var(--ease-out) 0.3s both;
  transform: rotate(-90deg); transform-origin: 66px 66px;
}
@keyframes gaugeFill { from { stroke-dasharray: 0 352; } to { stroke-dasharray: 308 352; } }
.gauge .num {
  position: absolute; inset: 0; display: grid; place-items: center;
  font-family: var(--font-head); font-size: 1.7rem; font-weight: 700; color: var(--rose);
}
.gauge .num small { font-size: 0.85rem; color: var(--mut); }
.gauge-lbl {
  margin-top: 6px; font-family: var(--font-mono); font-size: 10px; letter-spacing: 0.14em;
  color: var(--rose); font-weight: 700;
}
.phish-checks { display: grid; gap: 9px; flex: 1; }
.phish-check {
  display: flex; align-items: center; gap: 9px; flex-wrap: wrap;
  padding: 9px 12px; border-radius: 10px; font-size: 12px; color: var(--txt-2);
  border: 1px solid var(--line); background: rgba(255, 255, 255, 0.02);
  animation: cardIn 0.6s var(--ease-out) both;
}
.phish-check:nth-child(1) { animation-delay: 0.15s; }
.phish-check:nth-child(2) { animation-delay: 0.3s; }
.phish-check:nth-child(3) { animation-delay: 0.45s; }
.phish-check:nth-child(4) { animation-delay: 0.6s; }
.phish-check b { color: var(--txt); }
.phish-check .tag {
  margin-left: auto; font-family: var(--font-mono); font-size: 9px; font-weight: 700;
  letter-spacing: 0.1em; padding: 2px 7px; border-radius: 5px;
}
.phish-check.danger .tag { color: #fda4af; background: rgba(190, 18, 60, 0.22); }
.phish-check.warn .tag { color: #fcd34d; background: rgba(180, 83, 9, 0.22); }
.phish-check.good .tag { color: #6ee7b7; background: rgba(4, 120, 87, 0.22); }

/* secpulse / sentrix feed mock */
.feed { display: grid; gap: 9px; padding: 16px; }
.feed-item {
  display: flex; align-items: center; gap: 10px;
  padding: 10px 13px; border-radius: 10px; font-size: 12px;
  border: 1px solid var(--line); background: rgba(255, 255, 255, 0.02);
  color: var(--txt-2);
  animation: feedIn 0.55s var(--ease-out) both;
  position: relative; overflow: hidden;
}
.feed-item:nth-child(1) { animation-delay: 0.2s; }
.feed-item:nth-child(2) { animation-delay: 0.5s; }
.feed-item:nth-child(3) { animation-delay: 0.8s; }
.feed-item:nth-child(4) { animation-delay: 1.1s; }
.feed-item:nth-child(5) { animation-delay: 1.4s; }
@keyframes feedIn { from { opacity: 0; transform: translateX(18px); } to { opacity: 1; transform: none; } }
.feed-item::after {
  content: ""; position: absolute; inset: 0;
  background: linear-gradient(90deg, transparent, rgba(122, 165, 255, 0.05), transparent);
  transform: translateX(-100%);
  animation: feedShimmer 4s ease-in-out infinite;
}
@keyframes feedShimmer { 40%, 100% { transform: translateX(100%); } }
.src {
  flex: none; font-family: var(--font-mono); font-size: 9.5px; font-weight: 700;
  letter-spacing: 0.08em; padding: 3px 8px; border-radius: 6px; color: #fff;
}
.src.nvd, .src.llm { background: var(--grad-cyan); }
.src.rh, .src.mcp { background: var(--grad-violet); }
.src.ub { background: var(--grad-emerald); }
.src.ms { background: var(--grad-rose); }
.cvss {
  flex: none; font-family: var(--font-mono); font-size: 11px; font-weight: 700;
  padding: 2px 7px; border-radius: 6px;
}
.cvss.crit { color: #fda4af; background: rgba(190, 18, 60, 0.2); }
.cvss.high { color: #fcd34d; background: rgba(180, 83, 9, 0.18); }
.cvss.med { color: #93c5fd; background: rgba(30, 64, 175, 0.22); }
.feed-item .desc { overflow: hidden; text-overflow: ellipsis; white-space: nowrap; }

/* ==========================================================================
   Stats band (count-up)
   ========================================================================== */
.stats-band {
  display: grid; grid-template-columns: repeat(4, 1fr); gap: 20px;
  padding: 44px 40px; border-radius: 22px;
  border: 1px solid var(--line);
  background:
    radial-gradient(600px circle at 15% 0%, rgba(79, 125, 255, 0.08), transparent 50%),
    radial-gradient(600px circle at 85% 100%, rgba(139, 92, 246, 0.07), transparent 50%),
    var(--panel);
}
@media (max-width: 920px) { .stats-band { grid-template-columns: repeat(2, 1fr); padding: 32px 26px; } }
.snum {
  font-family: var(--font-head); font-weight: 700;
  font-size: clamp(2rem, 3.6vw, 2.8rem); letter-spacing: -0.03em;
  background: linear-gradient(120deg, #e9edf6, #9db4ff);
  -webkit-background-clip: text; background-clip: text; color: transparent;
}
.slbl { color: var(--mut); font-size: 13px; margin-top: 4px; }

/* ==========================================================================
   Process steps
   ========================================================================== */
.steps { display: grid; grid-template-columns: repeat(4, 1fr); gap: 18px; counter-reset: step; }
@media (max-width: 920px) { .steps { grid-template-columns: repeat(2, 1fr); } }
@media (max-width: 560px) { .steps { grid-template-columns: 1fr; } }
.step {
  position: relative; padding: 26px 22px;
  border: 1px solid var(--line); border-radius: var(--radius);
  background: var(--panel);
  transition: transform 0.5s var(--ease-out), border-color 0.4s;
  counter-increment: step;
}
.step:hover { transform: translateY(-5px); border-color: var(--line-2); }
.step::before {
  content: "0" counter(step);
  font-family: var(--font-mono); font-size: 12px; font-weight: 700;
  color: #8fa3ff; letter-spacing: 0.1em;
  display: inline-block; margin-bottom: 14px;
  padding: 4px 10px; border-radius: 7px;
  background: rgba(79, 125, 255, 0.1); border: 1px solid rgba(79, 125, 255, 0.22);
}
.step h3 { font-family: var(--font-head); font-size: 1.1rem; margin: 0 0 8px; }
.step p { color: var(--txt-2); font-size: 0.92rem; margin: 0; }

/* ==========================================================================
   CTA band
   ========================================================================== */
.cta-band {
  position: relative; overflow: hidden; text-align: center;
  padding: 72px 40px; border-radius: 26px;
  border: 1px solid rgba(122, 165, 255, 0.25);
  background:
    radial-gradient(700px circle at 50% -20%, rgba(99, 102, 241, 0.22), transparent 55%),
    linear-gradient(180deg, rgba(13, 18, 32, 0.8), rgba(7, 10, 18, 0.9));
}
.cta-band::before {
  content: ""; position: absolute; inset: -1px; border-radius: 26px; padding: 1px;
  background: linear-gradient(120deg, rgba(122, 165, 255, 0.5), transparent 35%, transparent 65%, rgba(167, 139, 250, 0.45));
  -webkit-mask: linear-gradient(#000 0 0) content-box, linear-gradient(#000 0 0);
  -webkit-mask-composite: xor; mask-composite: exclude;
  pointer-events: none;
}
.cta-band h2 {
  font-family: var(--font-head); font-size: clamp(1.9rem, 3.8vw, 2.7rem);
  letter-spacing: -0.025em; margin: 0 0 14px;
}
.cta-band p { color: var(--txt-2); max-width: 520px; margin: 0 auto 32px; font-size: 1.05rem; }

/* ==========================================================================
   Footer
   ========================================================================== */
footer {
  border-top: 1px solid var(--line);
  padding: 64px 0 30px; margin-top: 40px;
  background: linear-gradient(180deg, transparent, rgba(3, 5, 10, 0.6));
}
.foot-grid { display: grid; grid-template-columns: 1.6fr 1fr 1fr 1fr; gap: 40px; }
@media (max-width: 920px) { .foot-grid { grid-template-columns: 1fr 1fr; } }
@media (max-width: 560px) { .foot-grid { grid-template-columns: 1fr; } }
.foot-brand p { color: var(--mut); font-size: 0.92rem; max-width: 300px; margin: 16px 0 0; }
.foot-grid h4 {
  font-family: var(--font-mono); font-size: 11px; letter-spacing: 0.14em;
  text-transform: uppercase; color: var(--txt-2); margin: 4px 0 16px;
}
.foot-grid ul { list-style: none; margin: 0; padding: 0; display: grid; gap: 10px; }
.foot-grid ul a { color: var(--mut); font-size: 0.93rem; transition: color 0.25s; }
.foot-grid ul a:hover { color: var(--txt); }
.socials { display: flex; gap: 10px; }
.socials a {
  width: 36px; height: 36px; border-radius: 10px;
  display: grid; place-items: center; color: var(--mut);
  border: 1px solid var(--line); background: var(--panel);
  transition: color 0.3s, border-color 0.3s, transform 0.4s var(--ease-spring);
}
.socials a:hover { color: var(--txt); border-color: var(--line-2); transform: translateY(-3px); }
.foot-bottom {
  display: flex; justify-content: space-between; gap: 14px; flex-wrap: wrap;
  margin-top: 52px; padding-top: 24px; border-top: 1px solid var(--line);
  color: var(--mut); font-size: 12.5px;
}
.foot-bottom a { color: var(--mut); }
.foot-bottom a:hover { color: var(--txt-2); }

/* ==========================================================================
   Toast (main.js)
   ========================================================================== */
.toast {
  position: fixed; left: 50%; bottom: 28px; z-index: 200;
  transform: translate(-50%, 80px); opacity: 0;
  display: flex; align-items: center; gap: 10px;
  background: rgba(10, 15, 26, 0.94); color: var(--txt);
  border: 1px solid var(--line-2); border-radius: 13px;
  padding: 13px 20px; font-size: 14px; font-weight: 500;
  box-shadow: var(--shadow-lg); backdrop-filter: blur(14px);
  transition: transform 0.5s var(--ease-spring), opacity 0.4s;
  max-width: min(92vw, 480px);
}
.toast.show { transform: translate(-50%, 0); opacity: 1; }
.t-ic { display: inline-flex; }

/* ==========================================================================
   Login page (v2)
   ========================================================================== */
.auth-wrap {
  min-height: 100vh; display: grid; grid-template-columns: 1.05fr 1fr;
}
@media (max-width: 940px) { .auth-wrap { grid-template-columns: 1fr; } .auth-side { display: none !important; } }

.auth-side {
  position: relative; overflow: hidden;
  padding: 56px 56px 40px;
  display: flex; flex-direction: column; justify-content: space-between;
  background:
    radial-gradient(900px circle at 20% 10%, rgba(79, 125, 255, 0.18), transparent 50%),
    radial-gradient(700px circle at 90% 90%, rgba(139, 92, 246, 0.16), transparent 50%),
    var(--bg-2);
  border-right: 1px solid var(--line);
}
.auth-side::before {
  content: ""; position: absolute; inset: 0;
  background-image:
    linear-gradient(rgba(148, 163, 199, 0.05) 1px, transparent 1px),
    linear-gradient(90deg, rgba(148, 163, 199, 0.05) 1px, transparent 1px);
  background-size: 46px 46px;
  mask-image: radial-gradient(ellipse at 30% 20%, black 20%, transparent 70%);
  -webkit-mask-image: radial-gradient(ellipse at 30% 20%, black 20%, transparent 70%);
}
.auth-side .logo { position: relative; }
.auth-side-copy { position: relative; }
.auth-side-copy h1 {
  font-family: var(--font-head); font-size: clamp(2rem, 3.2vw, 2.9rem);
  line-height: 1.1; letter-spacing: -0.03em; margin: 0 0 18px;
}
.auth-side-copy p { color: var(--txt-2); font-size: 1.05rem; max-width: 400px; }
.auth-products { display: grid; gap: 12px; margin-top: 36px; position: relative; }
.auth-product {
  display: flex; align-items: center; gap: 13px;
  padding: 14px 16px; border-radius: 13px;
  border: 1px solid var(--line); background: rgba(255, 255, 255, 0.025);
  transition: transform 0.45s var(--ease-out), border-color 0.3s;
  animation: fadeUp 0.8s var(--ease-out) both;
}
.auth-product:nth-child(2) { animation-delay: 0.1s; }
.auth-product:nth-child(3) { animation-delay: 0.2s; }
.auth-product:nth-child(4) { animation-delay: 0.3s; }
.auth-product:hover { transform: translateX(6px); border-color: var(--line-2); }
.auth-product .pd {
  width: 36px; height: 36px; border-radius: 10px; flex: none;
  display: grid; place-items: center; color: #fff; font-family: var(--font-mono);
  font-size: 13px; font-weight: 700;
}
.auth-product b { display: block; font-size: 14px; }
.auth-product span { color: var(--mut); font-size: 12.5px; }
.auth-foot { position: relative; color: var(--mut); font-size: 12.5px; font-family: var(--font-mono); }

.auth-main {
  display: grid; place-items: center; padding: 48px 24px;
  background: var(--bg);
}
.auth-card {
  width: min(440px, 100%);
  border: 1px solid var(--line); border-radius: 22px;
  background: linear-gradient(180deg, var(--panel-2), var(--panel));
  padding: 36px 34px;
  box-shadow: var(--shadow-lg);
  animation: fadeUp 0.8s var(--ease-out) 0.15s both;
  position: relative;
}
.auth-card::before {
  content: ""; position: absolute; inset: -1px; border-radius: 22px; padding: 1px;
  background: linear-gradient(140deg, rgba(122, 165, 255, 0.3), transparent 40%, transparent 70%, rgba(167, 139, 250, 0.22));
  -webkit-mask: linear-gradient(#000 0 0) content-box, linear-gradient(#000 0 0);
  -webkit-mask-composite: xor; mask-composite: exclude;
  pointer-events: none;
}
.auth-mob-logo { display: none; margin-bottom: 26px; justify-content: center; }
@media (max-width: 940px) { .auth-mob-logo { display: flex; } }

.auth-tabs {
  position: relative; display: grid; grid-template-columns: 1fr 1fr;
  border: 1px solid var(--line); border-radius: 12px; padding: 4px;
  background: rgba(0, 0, 0, 0.3); margin-bottom: 26px;
}
.auth-tabs button {
  position: relative; z-index: 1; border: 0; background: transparent; cursor: pointer;
  padding: 10px 0; border-radius: 9px; font-family: var(--font-body);
  font-size: 13.5px; font-weight: 600; color: var(--mut);
  transition: color 0.3s;
}
.auth-tabs button.active { color: #fff; }
.auth-tabs .pill {
  position: absolute; top: 4px; bottom: 4px; left: 4px; width: calc(50% - 4px);
  border-radius: 9px; background: var(--brand-grad);
  transition: transform 0.45s var(--ease-spring);
  box-shadow: 0 4px 16px -4px rgba(99, 102, 241, 0.5);
}
.auth-tabs[data-active="signup"] .pill { transform: translateX(100%); }

.auth-card h1 { font-family: var(--font-head); font-size: 1.6rem; letter-spacing: -0.02em; margin: 0 0 6px; }
.auth-card .sub { color: var(--mut); font-size: 0.92rem; margin: 0 0 26px; }

.field { margin-bottom: 16px; }
.field label {
  display: block; font-size: 12.5px; font-weight: 600; color: var(--txt-2);
  margin-bottom: 7px; letter-spacing: 0.01em;
}
.field input {
  width: 100%; padding: 12px 14px; border-radius: 11px;
  border: 1px solid var(--line-2); background: rgba(0, 0, 0, 0.32);
  color: var(--txt); font-family: var(--font-body); font-size: 14.5px;
  transition: border-color 0.3s, box-shadow 0.3s, background 0.3s;
}
.field input::placeholder { color: #556180; }
.field input:focus {
  outline: none; border-color: var(--brand);
  box-shadow: 0 0 0 3px rgba(79, 125, 255, 0.18);
  background: rgba(0, 0, 0, 0.42);
}
.pass-hint { font-size: 12px; color: var(--mut); margin: -6px 0 16px; }

.auth-msg {
  display: none; align-items: center; gap: 9px;
  border-radius: 11px; padding: 12px 14px; font-size: 13.5px; margin-bottom: 18px;
}
#authErr { background: rgba(190, 18, 60, 0.14); border: 1px solid rgba(251, 113, 133, 0.35); color: #fecdd3; }
#authOk { background: rgba(4, 120, 87, 0.14); border: 1px solid rgba(52, 211, 153, 0.35); color: #a7f3d0; }

.btn-auth { width: 100%; justify-content: center; padding: 14px; font-size: 15px; }

.offline-note {
  display: none; margin-top: 18px; text-align: center;
  font-size: 12.5px; color: var(--mut);
  border: 1px dashed var(--line-2); border-radius: 11px; padding: 12px;
}

.spin {
  width: 15px; height: 15px; border-radius: 50%; display: inline-block; vertical-align: -2px;
  border: 2px solid rgba(255, 255, 255, 0.35); border-top-color: #fff;
  animation: spin 0.8s linear infinite;
}
@keyframes spin { to { transform: rotate(360deg); } }

/* services page */
.svc-hero { padding: 158px 0 70px; }
.svc-hero h1 {
  font-family: var(--font-head); font-size: clamp(2.3rem, 4.6vw, 3.6rem);
  letter-spacing: -0.03em; line-height: 1.08; margin: 22px 0 18px; max-width: 760px;
}
.svc-hero .lead { margin-bottom: 0; }
.svc-grid { display: grid; grid-template-columns: 1fr 1fr; gap: 22px; }
@media (max-width: 920px) { .svc-grid { grid-template-columns: 1fr; } }
.svc-detail { padding: 36px 32px; }
.svc-detail h3 { display: flex; align-items: center; gap: 13px; font-family: var(--font-head); font-size: 1.35rem; margin: 0 0 8px; }
.svc-detail .ic { width: 44px; height: 44px; border-radius: 12px; display: grid; place-items: center; color: #fff; flex: none; }
.svc-list { list-style: none; padding: 0; margin: 18px 0 0; display: grid; gap: 11px; }
.svc-list li { display: flex; gap: 11px; color: var(--txt-2); font-size: 0.95rem; }
.svc-list svg { flex: none; margin-top: 3px; }

.contact-card { padding: 40px 36px; }
.contact-card h2 { font-family: var(--font-head); letter-spacing: -0.02em; margin: 0 0 10px; }
.contact-card p { color: var(--txt-2); margin: 0 0 24px; }
.contact-mail {
  display: inline-flex; align-items: center; gap: 10px;
  font-family: var(--font-mono); font-size: 15px; color: #9db4ff;
  padding: 13px 20px; border: 1px solid rgba(79, 125, 255, 0.3);
  border-radius: 12px; background: rgba(79, 125, 255, 0.08);
  transition: transform 0.4s var(--ease-spring), background 0.3s;
}
.contact-mail:hover { transform: translateY(-2px); background: rgba(79, 125, 255, 0.14); }

/* small screens */
@media (max-width: 720px) {
  .hero { padding-top: 118px; }
  .phish-layout { flex-direction: column; }
}

/* ==========================================================================
   Promo video player modal (opened by .js-promo buttons, built by main.js)
   ========================================================================== */
.btn-play-ic {
  width: 26px; height: 26px; border-radius: 50%; flex: none;
  display: inline-grid; place-items: center; color: #fff;
  background: var(--brand-grad);
  box-shadow: 0 3px 12px -3px rgba(99, 102, 241, 0.6);
  transition: transform 0.4s var(--ease-spring);
}
.js-promo:hover .btn-play-ic { transform: scale(1.12); }

.promo-overlay {
  position: fixed; inset: 0; z-index: 300;
  display: grid; place-items: center; padding: 22px;
  background: rgba(2, 4, 9, 0.84);
  backdrop-filter: blur(14px); -webkit-backdrop-filter: blur(14px);
  opacity: 0; pointer-events: none;
  transition: opacity 0.4s var(--ease-out);
}
.promo-overlay.open { opacity: 1; pointer-events: auto; }

.promo-box {
  position: relative; width: min(1080px, 94vw);
  border-radius: 18px; overflow: hidden;
  border: 1px solid rgba(148, 163, 199, 0.28);
  background: #000;
  box-shadow: 0 50px 140px -30px rgba(0, 0, 0, 0.9), 0 0 90px -30px rgba(99, 102, 241, 0.4);
  transform: translateY(26px) scale(0.95);
  transition: transform 0.5s var(--ease-spring);
}
.promo-overlay.open .promo-box { transform: none; }
.promo-box video { display: block; width: 100%; aspect-ratio: 16 / 9; background: #000; }

.promo-close {
  position: absolute; top: 14px; right: 14px; z-index: 2;
  width: 40px; height: 40px; border-radius: 50%; cursor: pointer;
  border: 1px solid rgba(255, 255, 255, 0.25);
  background: rgba(5, 7, 13, 0.72); color: #fff;
  display: grid; place-items: center;
  backdrop-filter: blur(8px);
  transition: transform 0.35s var(--ease-spring), background 0.3s, border-color 0.3s;
}
.promo-close:hover { transform: rotate(90deg); background: rgba(190, 18, 60, 0.55); border-color: rgba(251, 113, 133, 0.6); }

.promo-tag {
  position: absolute; left: 16px; bottom: 14px; z-index: 2;
  display: inline-flex; align-items: center; gap: 8px;
  font-family: var(--font-mono); font-size: 11.5px; letter-spacing: 0.06em;
  color: #cbd5e1; padding: 7px 13px; border-radius: 100px;
  border: 1px solid rgba(148, 163, 199, 0.25);
  background: rgba(5, 7, 13, 0.66); backdrop-filter: blur(8px);
  pointer-events: none;
}
.promo-tag .pd { width: 7px; height: 7px; border-radius: 50%; background: var(--emerald);
  animation: pulseDot 2.2s infinite; }

@media (prefers-reduced-motion: reduce) {
  .promo-box { transition: none; }
}

/* nav promo button: icon-only on small screens */
@media (max-width: 680px) {
  .nav .js-promo .btn-txt { display: none; }
  .nav .js-promo { padding: 9px 11px; }
}
