/* ugipass.ugilabs.com: one stylesheet for the site and the admin panel.
   Motion runs on transforms/opacity where possible; site.js pauses anything
   that is off screen and scales the WebGL background to the machine. */

@property --a { syntax: '<angle>'; inherits: false; initial-value: 0deg; }

:root {
  --bg: #05070d;
  --bg-2: #0a0e18;
  --surface: rgba(16, 22, 36, 0.72);
  --surface-solid: #111827;
  --surface-2: rgba(26, 34, 52, 0.8);
  --line: rgba(148, 163, 184, 0.14);
  --line-strong: rgba(148, 163, 184, 0.26);
  --text: #eaf0f8;
  --dim: #a7b2c6;
  --faint: #7c88a0;
  --accent: #38bdf8;
  --accent-hi: #7dd3fc;
  --indigo: #818cf8;
  --violet: #c084fc;
  --ok: #34d399;
  --warn: #fbbf24;
  --danger: #f87171;
  --radius: 22px;
  --radius-sm: 14px;
  --ease: cubic-bezier(0.22, 1, 0.36, 1);
  --spring: cubic-bezier(0.34, 1.56, 0.64, 1);
  --font: 'Segoe UI Variable Display', 'Segoe UI', system-ui, -apple-system, 'Helvetica Neue', Arial, sans-serif;
  --mono: ui-monospace, 'Cascadia Code', 'Cascadia Mono', Consolas, 'SF Mono', Menlo, monospace;
  color-scheme: dark;
}

*, *::before, *::after { box-sizing: border-box; }
html { scroll-behavior: smooth; -webkit-text-size-adjust: 100%; }
body {
  margin: 0;
  min-height: 100vh;
  background: var(--bg);
  color: var(--text);
  font: 16px/1.6 var(--font);
  overflow-x: hidden;
  -webkit-font-smoothing: antialiased;
}
img { max-width: 100%; height: auto; display: block; }
a { color: inherit; text-decoration: none; }
code { font-family: var(--mono); font-size: 0.88em; background: rgba(148, 163, 184, 0.1); border: 1px solid var(--line); padding: 0.1em 0.4em; border-radius: 6px; word-break: break-all; }
::selection { background: rgba(56, 189, 248, 0.35); }
:focus-visible { outline: 2px solid var(--accent); outline-offset: 3px; border-radius: 6px; }
[hidden] { display: none !important; }

.wrap { width: 100%; max-width: 1200px; margin: 0 auto; padding: 0 24px; }
.wrap.narrow { max-width: 860px; }
.center { text-align: center; }
.muted { color: var(--faint); }
.small { font-size: 0.86rem; }
.right { text-align: right; }

/* ── background layers ─────────────────────────────────────────────────── */

.aurora { position: fixed; inset: 0; width: 100%; height: 100%; z-index: -3; display: block; }
.aurora-fallback { position: fixed; inset: -20%; z-index: -3; display: none; overflow: hidden; }
.no-webgl .aurora { display: none; }
.no-webgl .aurora-fallback { display: block; }
.aurora-fallback i { position: absolute; width: 70vmax; height: 70vmax; border-radius: 50%; opacity: 0.55; will-change: transform; }
.aurora-fallback i:nth-child(1) { background: radial-gradient(circle, rgba(37, 99, 235, 0.55), transparent 62%); left: -10%; top: -20%; animation: drift1 26s ease-in-out infinite alternate; }
.aurora-fallback i:nth-child(2) { background: radial-gradient(circle, rgba(56, 189, 248, 0.38), transparent 62%); right: -15%; top: 10%; animation: drift2 32s ease-in-out infinite alternate; }
.aurora-fallback i:nth-child(3) { background: radial-gradient(circle, rgba(129, 140, 248, 0.4), transparent 62%); left: 20%; bottom: -30%; animation: drift3 38s ease-in-out infinite alternate; }
@keyframes drift1 { to { transform: translate3d(18vw, 14vh, 0) scale(1.15); } }
@keyframes drift2 { to { transform: translate3d(-22vw, 18vh, 0) scale(0.9); } }
@keyframes drift3 { to { transform: translate3d(10vw, -20vh, 0) scale(1.2); } }

.grain {
  position: fixed; inset: 0; z-index: -2; pointer-events: none; opacity: 0.06; mix-blend-mode: overlay;
  background-image: url("data:image/svg+xml;utf8,<svg xmlns='http://www.w3.org/2000/svg' width='160' height='160'><filter id='n'><feTurbulence type='fractalNoise' baseFrequency='.85' numOctaves='3' stitchTiles='stitch'/></filter><rect width='100%' height='100%' filter='url(%23n)'/></svg>");
}
.cursor-glow {
  position: fixed; left: 0; top: 0; width: 560px; height: 560px; margin: -280px 0 0 -280px; z-index: -1; pointer-events: none;
  border-radius: 50%; background: radial-gradient(circle, rgba(56, 189, 248, 0.13), rgba(129, 140, 248, 0.06) 35%, transparent 65%);
  opacity: 0; transition: opacity 0.6s; will-change: transform;
}
.has-pointer .cursor-glow { opacity: 1; }
.progress { position: fixed; top: 0; left: 0; right: 0; height: 2px; z-index: 60; transform-origin: 0 50%; transform: scaleX(var(--sp, 0));
  background: linear-gradient(90deg, var(--accent), var(--indigo), var(--violet)); box-shadow: 0 0 12px rgba(56, 189, 248, 0.7); }

/* ── type ──────────────────────────────────────────────────────────────── */

h1, h2, h3 { line-height: 1.12; letter-spacing: -0.025em; margin: 0; font-weight: 750; }
h2 { font-size: clamp(2rem, 4.2vw, 3.1rem); }
h3 { font-size: 1.16rem; letter-spacing: -0.01em; }
p { margin: 0; }
.grad {
  background: linear-gradient(100deg, var(--accent-hi), var(--accent) 25%, var(--indigo) 55%, var(--violet) 80%, var(--accent-hi));
  background-size: 220% auto; -webkit-background-clip: text; background-clip: text; color: transparent;
  animation: gradmove 7s linear infinite;
}
@keyframes gradmove { to { background-position: 220% center; } }
.kicker { display: inline-flex; align-items: center; gap: 8px; font-size: 0.78rem; font-weight: 700; letter-spacing: 0.16em; text-transform: uppercase; color: var(--accent); }
.kicker::before { content: ''; width: 18px; height: 2px; border-radius: 2px; background: linear-gradient(90deg, transparent, var(--accent)); }

.ico { width: 20px; height: 20px; flex: none; }
.ico-sm { width: 16px; height: 16px; }
.flip { transform: scaleX(-1); }

/* ── buttons ───────────────────────────────────────────────────────────── */

.btn {
  --btn-bg: var(--surface-2);
  position: relative; display: inline-flex; align-items: center; justify-content: center; gap: 10px;
  padding: 12px 20px; border-radius: 14px; border: 1px solid var(--line-strong);
  background: var(--btn-bg); color: var(--text); font: 600 0.95rem/1.2 var(--font); cursor: pointer;
  transition: transform 0.35s var(--spring), box-shadow 0.35s var(--ease), background-color 0.25s, border-color 0.25s, color 0.25s;
  -webkit-tap-highlight-color: transparent; white-space: nowrap;
}
.btn:hover { transform: translateY(-2px); }
.btn:active { transform: translateY(0) scale(0.97); transition-duration: 0.1s; }
.btn-primary { --btn-bg: linear-gradient(135deg, #3cc4fa, #3b82f6 60%, #6366f1); border-color: transparent; color: #04101d; background: var(--btn-bg);
  box-shadow: 0 10px 30px -8px rgba(56, 189, 248, 0.6), inset 0 1px 0 rgba(255, 255, 255, 0.35); }
.btn-primary:hover { box-shadow: 0 16px 44px -10px rgba(56, 189, 248, 0.85), inset 0 1px 0 rgba(255, 255, 255, 0.4); }
.btn-ghost { background: rgba(255, 255, 255, 0.03); }
.btn-ghost:hover { background: rgba(255, 255, 255, 0.07); border-color: rgba(148, 163, 184, 0.4); }
.btn-danger { background: rgba(248, 113, 113, 0.12); border-color: rgba(248, 113, 113, 0.4); color: var(--danger); }
.btn-danger:hover { background: rgba(248, 113, 113, 0.2); }
.btn-sm { padding: 8px 14px; font-size: 0.86rem; border-radius: 11px; }
.btn-lg { padding: 16px 26px; font-size: 1.02rem; border-radius: 16px; }
.btn-block { width: 100%; }
.btn-beam {
  border: 2px solid transparent;
  background: var(--btn-bg) padding-box, conic-gradient(from var(--a), rgba(255, 255, 255, 0.0) 0deg, rgba(255, 255, 255, 0.95) 40deg, rgba(125, 211, 252, 0.6) 80deg, rgba(255, 255, 255, 0) 140deg, rgba(255, 255, 255, 0) 360deg) border-box;
  animation: beam 3.2s linear infinite;
}
@keyframes beam { to { --a: 360deg; } }
.btn .ico { transition: transform 0.35s var(--spring); }
.btn:hover .ico:last-child:not(:first-child) { transform: translateX(3px); }

/* ── nav ───────────────────────────────────────────────────────────────── */

.nav { position: fixed; top: 0; left: 0; right: 0; z-index: 50; padding: 14px 0; transition: background-color 0.35s, padding 0.35s, border-color 0.35s; border-bottom: 1px solid transparent; }
.nav.scrolled { background: rgba(5, 7, 13, 0.86); border-bottom-color: var(--line); padding: 10px 0; }
.nav-in { display: flex; align-items: center; justify-content: space-between; gap: 20px; }
.brand { display: inline-flex; align-items: center; gap: 10px; font-weight: 750; font-size: 1.18rem; letter-spacing: -0.02em; }
.brand-mark { position: relative; display: grid; place-items: center; }
.brand-mark::after { content: ''; position: absolute; inset: -6px; border-radius: 50%; background: radial-gradient(circle, rgba(56, 189, 248, 0.35), transparent 70%); animation: pulse 3s ease-in-out infinite; z-index: -1; }
.brand-name em { font-style: normal; font-weight: 500; color: var(--faint); margin-left: 4px; }
.nav-links { display: flex; align-items: center; gap: 6px; }
.nav-links > a:not(.btn) { display: inline-flex; align-items: center; gap: 6px; padding: 8px 14px; border-radius: 10px; color: var(--dim); font-weight: 550; font-size: 0.94rem; transition: color 0.2s, background-color 0.2s; position: relative; }
.nav-links > a:not(.btn)::after { content: ''; position: absolute; left: 14px; right: 14px; bottom: 4px; height: 2px; border-radius: 2px; background: linear-gradient(90deg, var(--accent), var(--indigo)); transform: scaleX(0); transition: transform 0.35s var(--ease); transform-origin: left; }
.nav-links > a:not(.btn):hover, .nav-links > a.on { color: var(--text); }
.nav-links > a:not(.btn):hover::after, .nav-links > a.on::after { transform: scaleX(1); }
.nav-cta { margin-left: 8px; }
.inline-form { display: inline; margin: 0 0 0 8px; }
.menu-btn { display: none; width: 44px; height: 44px; border: 1px solid var(--line-strong); border-radius: 12px; background: rgba(255, 255, 255, 0.04); cursor: pointer; position: relative; }
.menu-btn span { position: absolute; left: 12px; right: 12px; height: 2px; background: var(--text); border-radius: 2px; transition: transform 0.35s var(--spring), top 0.35s; }
.menu-btn span:first-child { top: 16px; }
.menu-btn span:last-child { top: 25px; }
.menu-btn[aria-expanded="true"] span:first-child { top: 20.5px; transform: rotate(45deg); }
.menu-btn[aria-expanded="true"] span:last-child { top: 20.5px; transform: rotate(-45deg); }

/* ── reveal + stagger (only when JS runs) ─────────────────────────────── */

.js .reveal { opacity: 0; transform: translate3d(0, 28px, 0) scale(0.985); filter: blur(8px); transition: opacity 0.9s var(--ease), transform 1s var(--ease), filter 0.9s var(--ease); transition-delay: var(--d, 0s); }
.js .reveal.in { opacity: 1; transform: none; filter: none; }
.js [data-stagger] .w { display: inline-block; opacity: 0; transform: translate3d(0, 0.55em, 0) rotateX(-55deg); transform-origin: 50% 100%; filter: blur(10px); transition: opacity 0.9s var(--ease), transform 1.1s var(--spring), filter 0.9s var(--ease); transition-delay: calc(var(--i, 0) * 85ms + 0.1s); }
.js [data-stagger].in .w { opacity: 1; transform: none; filter: none; }
[data-stagger] { perspective: 800px; }

.paused, .paused *, .paused *::before, .paused *::after { animation-play-state: paused !important; }

/* ── hero ──────────────────────────────────────────────────────────────── */

.hero { position: relative; padding: 150px 0 90px; }
.hero::before { content: ''; position: absolute; inset: 0; z-index: -1; pointer-events: none;
  background-image: linear-gradient(rgba(148, 163, 184, 0.07) 1px, transparent 1px), linear-gradient(90deg, rgba(148, 163, 184, 0.07) 1px, transparent 1px);
  background-size: 64px 64px; -webkit-mask-image: radial-gradient(ellipse 70% 60% at 50% 35%, #000 20%, transparent 75%); mask-image: radial-gradient(ellipse 70% 60% at 50% 35%, #000 20%, transparent 75%); }
.hero-in { display: grid; grid-template-columns: 1.08fr 0.92fr; gap: 56px; align-items: center; }
.eyebrow { display: inline-flex; align-items: center; gap: 10px; padding: 7px 14px 7px 10px; border-radius: 999px; border: 1px solid var(--line-strong); background: rgba(15, 23, 42, 0.6); color: var(--dim); font-size: 0.86rem; font-weight: 550; transition: border-color 0.25s, color 0.25s; }
.eyebrow:hover { border-color: rgba(56, 189, 248, 0.5); color: var(--text); }
.eyebrow-dot { width: 8px; height: 8px; border-radius: 50%; background: var(--ok); box-shadow: 0 0 0 0 rgba(52, 211, 153, 0.6); animation: ping 2s infinite; }
@keyframes ping { 0% { box-shadow: 0 0 0 0 rgba(52, 211, 153, 0.55); } 80%, 100% { box-shadow: 0 0 0 10px rgba(52, 211, 153, 0); } }
.hero-title { font-size: clamp(2.7rem, 6.4vw, 5rem); line-height: 1.02; letter-spacing: -0.045em; margin: 22px 0 22px; font-weight: 800; }
.hero-sub { font-size: clamp(1.02rem, 1.5vw, 1.18rem); color: var(--dim); max-width: 560px; }
.hero-cta { display: flex; flex-wrap: wrap; gap: 14px; margin-top: 34px; }
.hero-cta.center { justify-content: center; }
.hero-meta { display: flex; flex-wrap: wrap; align-items: center; gap: 10px; margin-top: 18px; color: var(--faint); font-size: 0.88rem; }
.hero-meta i { width: 4px; height: 4px; border-radius: 50%; background: var(--line-strong); }
.live { display: inline-flex; align-items: center; gap: 10px; margin-top: 20px; padding: 8px 14px; border-radius: 999px; background: rgba(52, 211, 153, 0.08); border: 1px solid rgba(52, 211, 153, 0.25); color: #a7f3d0; font-size: 0.9rem; }
.live b { color: #fff; font-variant-numeric: tabular-nums; }
.live-dot { width: 8px; height: 8px; border-radius: 50%; background: var(--ok); animation: ping 1.6s infinite; }

/* the app preview: a 3D scene the pointer tilts */
.hero-visual { perspective: 1300px; }
.scene { position: relative; transform-style: preserve-3d; transform: rotateX(var(--rx, 6deg)) rotateY(var(--ry, -12deg)); transition: transform 0.6s var(--ease); animation: float 7s ease-in-out infinite; margin: 0 auto; max-width: 400px; }
.scene.tilting { transition: transform 0.12s linear; }
@keyframes float { 50% { translate: 0 -14px; } }
.mock {
  position: relative; transform: translateZ(0); border-radius: 26px; padding: 0 0 12px; overflow: hidden;
  background: linear-gradient(160deg, rgba(20, 28, 46, 0.97), rgba(9, 13, 24, 0.98));
  border: 1px solid rgba(148, 163, 184, 0.22);
  box-shadow: 0 50px 100px -30px rgba(0, 0, 0, 0.85), 0 0 0 1px rgba(56, 189, 248, 0.06), 0 30px 80px -40px rgba(56, 189, 248, 0.55);
}
.mock::after { content: ''; position: absolute; inset: 0; pointer-events: none; border-radius: inherit;
  background: radial-gradient(500px circle at var(--gx, 30%) var(--gy, 0%), rgba(255, 255, 255, 0.1), transparent 45%); }
.mock-bar { display: flex; align-items: center; gap: 7px; padding: 12px 16px; border-bottom: 1px solid var(--line); font-size: 0.78rem; color: var(--faint); }
.mock-bar i { width: 10px; height: 10px; border-radius: 50%; background: #334155; }
.mock-bar i:nth-child(1) { background: #f87171; } .mock-bar i:nth-child(2) { background: #fbbf24; } .mock-bar i:nth-child(3) { background: #34d399; }
.mock-bar span { margin-left: 8px; }
.mock-head { display: flex; align-items: center; gap: 10px; padding: 14px 18px; }
.mock-head div { flex: 1; display: flex; flex-direction: column; line-height: 1.2; }
.mock-head b { font-size: 0.95rem; } .mock-head small { color: var(--faint); font-size: 0.74rem; }
.pill { display: grid; align-items: center; grid-template-columns: auto 1fr; gap: 6px; padding: 4px 10px; border-radius: 999px; font-size: 0.74rem; font-weight: 650; animation: pillBg 10s infinite; }
.pill i { width: 6px; height: 6px; border-radius: 50%; background: currentColor; }
.pill em { font-style: normal; grid-area: 1 / 2; }
@keyframes pillBg { 0%, 38% { background: rgba(248, 113, 113, 0.14); color: var(--danger); } 44%, 95% { background: rgba(52, 211, 153, 0.14); color: var(--ok); } 100% { background: rgba(248, 113, 113, 0.14); color: var(--danger); } }
.s-off { animation: sOff 10s infinite; }
.s-on { animation: sOn 10s infinite; }
@keyframes sOff { 0%, 38% { opacity: 1; } 44%, 95% { opacity: 0; } 100% { opacity: 1; } }
@keyframes sOn { 0%, 38% { opacity: 0; } 44%, 95% { opacity: 1; } 100% { opacity: 0; } }
.mock-shield { position: relative; width: 168px; height: 168px; margin: 18px auto 6px; display: grid; place-items: center; }
.halo { position: absolute; inset: -28px; border-radius: 50%; background: radial-gradient(circle, rgba(56, 189, 248, 0.32), transparent 65%); animation: haloOn 10s infinite; }
@keyframes haloOn { 0%, 38% { opacity: 0; transform: scale(0.6); } 46%, 95% { opacity: 1; transform: scale(1); } 100% { opacity: 0; transform: scale(0.6); } }
.ring { position: absolute; inset: 0; border-radius: 50%; border: 1.5px solid rgba(56, 189, 248, 0.5); opacity: 0; }
.mock .ring { animation: radar 3.3s cubic-bezier(0.2, 0.6, 0.3, 1) infinite, ringGate 10s infinite; }
.mock .ring.r2 { animation-delay: 1.1s, 0s; } .mock .ring.r3 { animation-delay: 2.2s, 0s; }
@keyframes radar { 0% { transform: scale(0.55); opacity: 0.9; } 100% { transform: scale(1.45); opacity: 0; } }
@keyframes ringGate { 0%, 40% { visibility: hidden; } 44%, 95% { visibility: visible; } 100% { visibility: hidden; } }
.orbit { position: absolute; inset: 6px; border-radius: 50%; border: 1px dashed rgba(148, 163, 184, 0.25); animation: spin 14s linear infinite; }
.orbit i { position: absolute; top: -4px; left: 50%; width: 8px; height: 8px; margin-left: -4px; border-radius: 50%; background: var(--accent); box-shadow: 0 0 12px var(--accent); }
@keyframes spin { to { transform: rotate(360deg); } }
.shield-core { position: relative; width: 112px; height: 112px; border-radius: 50%; display: grid; place-items: center; border: 1px solid var(--line-strong); background: radial-gradient(circle at 50% 30%, rgba(56, 189, 248, 0.18), rgba(15, 23, 42, 0.9) 70%); animation: coreOn 10s infinite; }
.shield-core .ico { grid-area: 1 / 1; width: 54px; height: 54px; stroke-width: 1.4; }
.shield-core .s-off { color: var(--faint); }
.shield-core .s-on { color: var(--accent); filter: drop-shadow(0 0 14px rgba(56, 189, 248, 0.8)); }
@keyframes coreOn { 0%, 38% { border-color: var(--line-strong); box-shadow: none; } 44%, 95% { border-color: rgba(56, 189, 248, 0.55); box-shadow: 0 0 40px -6px rgba(56, 189, 248, 0.6); } }
.mock-status { display: grid; text-align: center; padding: 8px 18px 4px; }
.mock-status > * { grid-area: 1 / 1; }
.mock-status small { grid-area: 2 / 1; color: var(--faint); font-size: 0.8rem; }
.mock-status b { font-size: 1.5rem; letter-spacing: -0.02em; }
.mock-status b.s-on { color: var(--accent); }
.mock-btn { position: relative; display: grid; margin: 14px 22px 0; padding: 12px; border-radius: 14px; text-align: center; font-weight: 650; font-size: 0.92rem; overflow: hidden; animation: btnBg 10s infinite; }
.mock-btn span { grid-area: 1 / 1; display: inline-flex; align-items: center; justify-content: center; gap: 8px; }
@keyframes btnBg { 0%, 38% { background: linear-gradient(135deg, #3cc4fa, #3b82f6); color: #04101d; } 44%, 95% { background: rgba(248, 113, 113, 0.12); color: var(--danger); box-shadow: inset 0 0 0 1px rgba(248, 113, 113, 0.4); } 100% { background: linear-gradient(135deg, #3cc4fa, #3b82f6); color: #04101d; } }
.tap { position: absolute; left: 50%; top: 50%; width: 40px; height: 40px; margin: -20px; border-radius: 50%; background: rgba(255, 255, 255, 0.7); opacity: 0; animation: tap 10s infinite; }
@keyframes tap { 0%, 36% { transform: scale(0); opacity: 0; } 38% { transform: scale(0.4); opacity: 0.7; } 46% { transform: scale(6); opacity: 0; } 100% { opacity: 0; } }
.mock-toast { display: flex; align-items: center; gap: 8px; margin: 12px 22px 0; padding: 10px 12px; border-radius: 12px; font-size: 0.85rem; font-weight: 600; color: var(--ok); background: rgba(52, 211, 153, 0.1); border: 1px solid rgba(52, 211, 153, 0.3); animation: toast 10s infinite; }
@keyframes toast { 0%, 56% { opacity: 0; transform: translateY(12px) scale(0.96); } 62%, 92% { opacity: 1; transform: none; } 97%, 100% { opacity: 0; transform: translateY(12px) scale(0.96); } }
.mock-nav { display: flex; justify-content: space-around; margin: 14px 12px 0; padding-top: 12px; border-top: 1px solid var(--line); }
.mock-nav i { width: 20px; height: 20px; border-radius: 6px; background: rgba(148, 163, 184, 0.16); }
.mock-nav i.on { background: var(--accent); box-shadow: 0 0 12px rgba(56, 189, 248, 0.6); }
.chip { position: absolute; display: inline-flex; align-items: center; gap: 7px; padding: 9px 14px; border-radius: 999px; font-size: 0.82rem; font-weight: 650; white-space: nowrap;
  background: rgba(13, 19, 33, 0.92); border: 1px solid var(--line-strong); box-shadow: 0 20px 40px -18px rgba(0, 0, 0, 0.8); color: var(--text); }
.chip .ico { color: var(--ok); }
.chip-1 { top: 12%; left: -22%; animation: chip 6s ease-in-out infinite; --z: 90px; }
.chip-2 { top: 40%; right: -24%; animation: chip 7s ease-in-out infinite -2s; --z: 120px; }
.chip-2 .ico { color: var(--accent); }
.chip-3 { bottom: 20%; left: -26%; animation: chip 8s ease-in-out infinite -4s; --z: 70px; }
.chip-3 .ico { color: var(--indigo); }
.chip-4 { bottom: 4%; right: -14%; animation: chip 6.5s ease-in-out infinite -1s; --z: 100px; }
@keyframes chip { 0%, 100% { transform: translate3d(0, 0, var(--z)); } 50% { transform: translate3d(0, -12px, var(--z)); } }

/* ── marquee ───────────────────────────────────────────────────────────── */

.marquee { position: relative; overflow: hidden; padding: 22px 0; border-block: 1px solid var(--line); background: rgba(10, 14, 24, 0.55);
  -webkit-mask-image: linear-gradient(90deg, transparent, #000 12%, #000 88%, transparent); mask-image: linear-gradient(90deg, transparent, #000 12%, #000 88%, transparent); }
.marquee-track { display: flex; width: max-content; animation: marquee 38s linear infinite; }
.marquee:hover .marquee-track { animation-play-state: paused; }
.marquee-row { display: flex; gap: 14px; padding-right: 14px; }
.marquee-row span { display: inline-flex; align-items: center; gap: 8px; padding: 10px 18px; border-radius: 999px; border: 1px solid var(--line); background: rgba(255, 255, 255, 0.03); color: var(--dim); font: 600 0.92rem var(--mono); }
.marquee-row .ico { color: var(--ok); }
@keyframes marquee { to { transform: translate3d(-50%, 0, 0); } }

/* ── stats ─────────────────────────────────────────────────────────────── */

.stats { padding: 70px 0 10px; }
.stats-in { display: grid; grid-template-columns: repeat(4, 1fr); gap: 18px; }
.stat { text-align: center; padding: 22px 12px; }
.stat b { display: block; font-size: clamp(2.4rem, 5vw, 3.6rem); font-weight: 800; letter-spacing: -0.04em; line-height: 1; font-variant-numeric: tabular-nums;
  background: linear-gradient(180deg, #fff, #9fb3d1); -webkit-background-clip: text; background-clip: text; color: transparent; }
.stat span { display: block; margin-top: 10px; color: var(--faint); font-size: 0.92rem; }

/* ── sections + cards ──────────────────────────────────────────────────── */

.section { padding: 110px 0; position: relative; }
.section.tight { padding: 40px 0; }
.section-head { text-align: center; max-width: 720px; margin: 0 auto 60px; }
.section-head h2 { margin: 16px 0 16px; }
.section-head p { color: var(--dim); font-size: 1.08rem; }

.card { position: relative; border-radius: var(--radius); padding: 28px; background: var(--surface); border: 1px solid var(--line);
  box-shadow: 0 1px 0 rgba(255, 255, 255, 0.04) inset, 0 30px 60px -40px rgba(0, 0, 0, 0.7); transition: border-color 0.35s, transform 0.5s var(--ease), box-shadow 0.5s var(--ease); }
.spot::before { content: ''; position: absolute; inset: 0; border-radius: inherit; pointer-events: none; opacity: 0; transition: opacity 0.4s;
  background: radial-gradient(420px circle at var(--mx, 50%) var(--my, 50%), rgba(56, 189, 248, 0.14), transparent 45%); }
.spot::after { content: ''; position: absolute; inset: -1px; border-radius: inherit; pointer-events: none; opacity: 0; transition: opacity 0.4s; padding: 1px;
  background: radial-gradient(260px circle at var(--mx, 50%) var(--my, 50%), rgba(125, 211, 252, 0.7), transparent 50%);
  -webkit-mask: linear-gradient(#000 0 0) content-box, linear-gradient(#000 0 0); -webkit-mask-composite: xor; mask: linear-gradient(#000 0 0) content-box exclude, linear-gradient(#000 0 0); }
.spot:hover::before, .spot:hover::after { opacity: 1; }
.card:hover { border-color: var(--line-strong); }

.bento { display: grid; grid-template-columns: repeat(4, 1fr); gap: 18px; }
.bento .card { grid-column: span 1; }
.bento .card.big { grid-column: span 2; }
.bento .card:hover { transform: translateY(-4px); box-shadow: 0 1px 0 rgba(255, 255, 255, 0.05) inset, 0 40px 80px -40px rgba(56, 189, 248, 0.35); }
.card h3 { margin: 18px 0 8px; }
.card p { color: var(--dim); font-size: 0.97rem; }
.card-ico { position: relative; width: 48px; height: 48px; border-radius: 14px; display: grid; place-items: center; color: var(--accent);
  background: linear-gradient(145deg, rgba(56, 189, 248, 0.18), rgba(129, 140, 248, 0.1)); border: 1px solid rgba(56, 189, 248, 0.28); transition: transform 0.5s var(--spring); }
.card-ico .ico { width: 24px; height: 24px; }
.card:hover .card-ico { transform: rotate(-8deg) scale(1.1); }

.route-demo { display: grid; gap: 10px; margin-top: 22px; }
.route { display: grid; grid-template-columns: 130px 1fr auto; align-items: center; gap: 12px; font-size: 0.86rem; }
.host { font-family: var(--mono); color: var(--text); overflow: hidden; text-overflow: ellipsis; white-space: nowrap; }
.path { position: relative; height: 2px; border-radius: 2px; background: var(--line-strong); overflow: hidden; }
.path i { position: absolute; top: -2px; left: -30%; width: 30%; height: 6px; border-radius: 6px; animation: flow 2.2s linear infinite; }
.path.via i { background: linear-gradient(90deg, transparent, var(--accent), transparent); }
.path.direct i { background: linear-gradient(90deg, transparent, var(--ok), transparent); animation-duration: 1.6s; }
.route:nth-child(2) .path i { animation-delay: -0.8s; } .route:nth-child(3) .path i { animation-delay: -0.4s; } .route:nth-child(4) .path i { animation-delay: -1.2s; }
@keyframes flow { to { left: 100%; } }
.tag { padding: 3px 10px; border-radius: 999px; font-size: 0.76rem; font-weight: 700; }
.tag-blue { color: var(--accent); background: rgba(56, 189, 248, 0.12); }
.tag-green { color: var(--ok); background: rgba(52, 211, 153, 0.12); }

.dns-demo { position: relative; display: grid; gap: 10px; margin-top: 22px; overflow: hidden; border-radius: 14px; padding: 14px; background: rgba(2, 6, 14, 0.6); border: 1px solid var(--line); }
.dns-line { display: grid; grid-template-columns: 74px 1fr auto; align-items: center; gap: 10px; font-size: 0.84rem; }
.dns-line span { color: var(--faint); font-size: 0.78rem; text-transform: uppercase; letter-spacing: 0.08em; }
.dns-line code { background: none; border: 0; padding: 0; }
.dns-line b { width: 24px; height: 24px; border-radius: 50%; display: grid; place-items: center; }
.dns-line.bad code { color: #fca5a5; text-decoration: line-through; text-decoration-color: rgba(248, 113, 113, 0.6); }
.dns-line.bad b { color: var(--danger); background: rgba(248, 113, 113, 0.14); animation: shake 3s infinite; }
.dns-line.good code { color: #a7f3d0; }
.dns-line.good b { color: var(--ok); background: rgba(52, 211, 153, 0.14); animation: pop 3s infinite; }
.dns-scan { position: absolute; left: 0; right: 0; top: 0; height: 40%; pointer-events: none; background: linear-gradient(180deg, transparent, rgba(56, 189, 248, 0.12), transparent); animation: scan 3s ease-in-out infinite; }
@keyframes scan { 0% { transform: translateY(-100%); } 100% { transform: translateY(260%); } }
@keyframes shake { 0%, 70%, 100% { transform: none; } 74% { transform: translateX(-3px) rotate(-8deg); } 78% { transform: translateX(3px) rotate(8deg); } 82% { transform: translateX(-2px); } 86% { transform: none; } }
@keyframes pop { 0%, 40%, 100% { transform: scale(1); } 50% { transform: scale(1.25); } 60% { transform: scale(1); } }
@keyframes pulse { 0%, 100% { opacity: 0.4; transform: scale(0.9); } 50% { opacity: 1; transform: scale(1.1); } }

/* ── diagram (SVG, SMIL packets paused off screen by site.js) ──────────── */

.diagram { border-radius: var(--radius); padding: 24px; background: linear-gradient(160deg, rgba(14, 20, 34, 0.85), rgba(7, 10, 18, 0.9)); border: 1px solid var(--line); overflow: hidden; }
.diagram svg { width: 100%; height: auto; display: block; overflow: visible; }
.lane-label { font: 700 13px var(--font); letter-spacing: 0.14em; text-transform: uppercase; text-anchor: middle; }
.lane-label.bad { fill: #fca5a5; } .lane-label.good { fill: var(--accent-hi); }
.wire { fill: none; stroke-width: 2.5; stroke-linecap: round; }
.wire-bad { stroke: rgba(248, 113, 113, 0.45); }
.wire-bad.dash { stroke-dasharray: 6 8; animation: dashmove 1.2s linear infinite; }
.wire-good { stroke: rgba(56, 189, 248, 0.35); }
.wire-flow { fill: none; stroke: url(#gBlue); stroke-width: 3.5; stroke-linecap: round; stroke-dasharray: 18 26; animation: dashmove 1.4s linear infinite; filter: drop-shadow(0 0 6px rgba(56, 189, 248, 0.8)); }
@keyframes dashmove { to { stroke-dashoffset: -44; } }
.node-ring { fill: none; stroke: rgba(56, 189, 248, 0.4); stroke-width: 1.5; transform-box: fill-box; transform-origin: center; animation: nodePulse 2.6s ease-in-out infinite; }
@keyframes nodePulse { 50% { transform: scale(1.12); opacity: 0.4; } }
.node-bg { fill: #0f172a; stroke: rgba(148, 163, 184, 0.35); stroke-width: 1.5; }
.node-t { fill: #eaf0f8; font: 700 16px var(--font); text-anchor: middle; }
.node-s { fill: #94a3b8; font: 500 12px var(--font); text-anchor: middle; }
.box-bg { fill: #0f172a; stroke: rgba(148, 163, 184, 0.35); stroke-width: 1.5; }
.box-bg.bad { stroke: rgba(248, 113, 113, 0.6); fill: rgba(60, 14, 20, 0.85); }
.box-bg.good { stroke: rgba(56, 189, 248, 0.6); fill: rgba(8, 34, 56, 0.9); }
.box-bg.ok { stroke: rgba(52, 211, 153, 0.6); fill: rgba(6, 44, 34, 0.9); }
.xmark circle { fill: #ef4444; } .xmark path { stroke: #fff; stroke-width: 2.5; stroke-linecap: round; fill: none; }
.blocked { animation: none; }
.blocked .xmark { transform-box: fill-box; transform-origin: center; animation: xshake 1.1s ease-in-out infinite; }
@keyframes xshake { 0%, 60%, 100% { transform: translate(70px, -30px) rotate(0); } 70% { transform: translate(70px, -30px) rotate(-18deg); } 80% { transform: translate(70px, -30px) rotate(18deg); } 90% { transform: translate(70px, -30px) rotate(-8deg); } }
.okmark circle { fill: #10b981; } .okmark path { stroke: #fff; stroke-width: 2.5; stroke-linecap: round; stroke-linejoin: round; fill: none; }
.reached .okmark { transform-box: fill-box; transform-origin: center; animation: okpop 1.1s ease-in-out infinite; }
@keyframes okpop { 0%, 100% { transform: translate(70px, -30px) scale(1); } 50% { transform: translate(70px, -30px) scale(1.18); } }
.lockmark circle { fill: #0284c7; } .lockmark path { stroke: #fff; stroke-width: 1.8; fill: none; stroke-linejoin: round; }
.pkt-bad { fill: #f87171; } .pkt-good { fill: #7dd3fc; }

/* ── steps ─────────────────────────────────────────────────────────────── */

.steps { position: relative; display: grid; grid-template-columns: repeat(3, 1fr); gap: 22px; margin-top: 70px; }
.steps-line { position: absolute; top: 44px; left: 16%; right: 16%; height: 2px; background: var(--line); border-radius: 2px; overflow: hidden; }
.steps-line i { position: absolute; inset: 0; transform-origin: 0 50%; transform: scaleX(var(--p, 0)); background: linear-gradient(90deg, var(--accent), var(--indigo), var(--violet)); box-shadow: 0 0 14px var(--accent); }
.step { position: relative; text-align: center; padding: 0 14px; }
.step-n { position: absolute; top: -10px; left: calc(50% + 22px); font: 800 0.76rem var(--font); color: #04101d; background: var(--accent); width: 22px; height: 22px; border-radius: 50%; display: grid; place-items: center; z-index: 2; }
.step-ico { position: relative; width: 88px; height: 88px; margin: 0 auto 20px; border-radius: 26px; display: grid; place-items: center; color: var(--accent);
  background: linear-gradient(145deg, #0f1b2e, #0a1120); border: 1px solid rgba(56, 189, 248, 0.3); box-shadow: 0 20px 40px -20px rgba(56, 189, 248, 0.5); transition: transform 0.5s var(--spring); }
.step-ico .ico { width: 34px; height: 34px; }
.step:hover .step-ico { transform: translateY(-6px) rotate(-4deg); }
.step p { color: var(--dim); margin-top: 6px; }

/* ── FAQ ───────────────────────────────────────────────────────────────── */

.faq { display: grid; gap: 12px; }
.faq-item { border-radius: var(--radius-sm); border: 1px solid var(--line); background: var(--surface); transition: border-color 0.3s, background-color 0.3s; }
.faq-item.open { border-color: rgba(56, 189, 248, 0.35); background: rgba(14, 24, 40, 0.85); }
.faq-q { width: 100%; display: flex; align-items: center; justify-content: space-between; gap: 16px; padding: 20px 22px; background: none; border: 0; color: var(--text); font: 650 1.02rem var(--font); text-align: left; cursor: pointer; }
.faq-q .ico { color: var(--faint); transition: transform 0.45s var(--spring), color 0.3s; }
.faq-item.open .faq-q .ico { transform: rotate(180deg); color: var(--accent); }
.faq-a { display: grid; grid-template-rows: 0fr; transition: grid-template-rows 0.5s var(--ease); }
.faq-a > div { overflow: hidden; }
.faq-a p { padding: 0 22px 20px; color: var(--dim); opacity: 0; transform: translateY(-6px); transition: opacity 0.4s, transform 0.5s var(--ease); }
.faq-item.open .faq-a { grid-template-rows: 1fr; }
.faq-item.open .faq-a p { opacity: 1; transform: none; transition-delay: 0.1s; }

/* ── CTA ───────────────────────────────────────────────────────────────── */

.cta-card { text-align: center; padding: 80px 28px; overflow: hidden; background: linear-gradient(160deg, rgba(14, 26, 48, 0.92), rgba(8, 11, 22, 0.95)); border-color: rgba(56, 189, 248, 0.25); }
.cta-card h2 { margin: 26px 0 14px; }
.cta-card p { color: var(--dim); font-size: 1.08rem; }
.cta-glow { position: absolute; left: 50%; top: -60%; width: 900px; height: 900px; margin-left: -450px; border-radius: 50%; pointer-events: none;
  background: conic-gradient(from 0deg, transparent, rgba(56, 189, 248, 0.22), transparent 30%, rgba(129, 140, 248, 0.2), transparent 60%, rgba(192, 132, 252, 0.16), transparent 85%); animation: spin 18s linear infinite; }
.cta-logo { position: relative; margin: 0 auto; filter: drop-shadow(0 0 30px rgba(56, 189, 248, 0.6)); animation: float 6s ease-in-out infinite; }
.cta-card > *:not(.cta-glow) { position: relative; }

/* ── page hero (download / releases / 404) ─────────────────────────────── */

.page-hero { padding: 160px 0 40px; }
.page-title { font-size: clamp(2.5rem, 6vw, 4.4rem); letter-spacing: -0.045em; margin: 18px 0 16px; font-weight: 800; }
.page-sub { color: var(--dim); font-size: 1.1rem; }

.dl-grid { display: grid; grid-template-columns: repeat(auto-fit, minmax(300px, 1fr)); gap: 20px; max-width: 900px; margin: 0 auto; }
.dl-card { padding: 32px; }
.dl-card.rec { border-color: rgba(56, 189, 248, 0.35); background: linear-gradient(160deg, rgba(14, 30, 52, 0.9), rgba(10, 14, 26, 0.92)); }
.dl-card:hover { transform: translateY(-4px); }
.badge { display: inline-flex; align-items: center; padding: 4px 11px; border-radius: 999px; font-size: 0.74rem; font-weight: 750; letter-spacing: 0.04em; color: #04101d; background: linear-gradient(135deg, var(--accent-hi), var(--accent)); }
.badge.sm { padding: 2px 8px; font-size: 0.7rem; }
.dl-card .badge { position: absolute; top: 22px; right: 22px; }
.dl-ico { width: 60px; height: 60px; border-radius: 18px; display: grid; place-items: center; color: var(--accent); background: rgba(56, 189, 248, 0.12); border: 1px solid rgba(56, 189, 248, 0.3); }
.dl-ico .ico { width: 30px; height: 30px; }
.dl-card h3 { margin: 20px 0 8px; font-size: 1.3rem; }
.dl-desc { color: var(--dim); min-height: 3.2em; margin-bottom: 24px; }
.hash { display: flex; flex-wrap: wrap; align-items: center; gap: 8px; margin-top: 18px; padding: 10px 12px; border-radius: 12px; background: rgba(2, 6, 14, 0.55); border: 1px solid var(--line); font-size: 0.8rem; }
.hash-label { color: var(--faint); font-weight: 700; letter-spacing: 0.06em; }
.hash code { background: none; border: 0; padding: 0; color: var(--dim); flex: 1; min-width: 0; }
.copy { display: inline-flex; align-items: center; gap: 6px; padding: 6px 10px; border-radius: 9px; border: 1px solid var(--line-strong); background: rgba(255, 255, 255, 0.04); color: var(--dim); font: 600 0.78rem var(--font); cursor: pointer; transition: color 0.2s, border-color 0.2s, background-color 0.2s, transform 0.3s var(--spring); }
.copy:hover { color: var(--text); border-color: rgba(56, 189, 248, 0.5); }
.copy.done { color: var(--ok); border-color: rgba(52, 211, 153, 0.5); background: rgba(52, 211, 153, 0.1); transform: scale(1.05); }
.copy.mini { padding: 4px 8px; }

.two-col { display: grid; grid-template-columns: 1fr 1fr; gap: 50px; align-items: center; }
.h2-sm { font-size: clamp(1.7rem, 3vw, 2.3rem); margin: 14px 0 22px; }
.install { list-style: none; counter-reset: s; padding: 0; margin: 0 0 22px; display: grid; gap: 16px; }
.install li { counter-increment: s; position: relative; padding-left: 52px; color: var(--dim); }
.install li::before { content: counter(s); position: absolute; left: 0; top: -2px; width: 34px; height: 34px; border-radius: 11px; display: grid; place-items: center; font-weight: 800; color: var(--accent); background: rgba(56, 189, 248, 0.12); border: 1px solid rgba(56, 189, 248, 0.3); }
.install b { color: var(--text); }
.install em { font-style: normal; color: var(--accent-hi); font-weight: 600; }

/* SmartScreen walkthrough */
.smartscreen { display: grid; place-items: center; }
.ss-window { position: relative; width: 100%; max-width: 420px; padding: 26px; border-radius: 6px; background: #1f3a68; color: #fff; box-shadow: 0 40px 80px -30px rgba(0, 0, 0, 0.8); font-family: 'Segoe UI', system-ui, sans-serif; overflow: hidden; }
.ss-title { font-size: 1.45rem; font-weight: 300; margin-bottom: 14px; }
.ss-text { font-size: 0.9rem; opacity: 0.9; }
.ss-more { margin-top: 10px; font-size: 0.9rem; }
.ss-link { text-decoration: underline; animation: ssLink 8s infinite; }
.ss-app { margin-top: 12px; font-size: 0.86rem; opacity: 0; animation: ssApp 8s infinite; }
.ss-buttons { display: flex; justify-content: flex-end; gap: 8px; margin-top: 22px; }
.ss-buttons span { padding: 7px 16px; border: 2px solid #fff; font-size: 0.86rem; }
.ss-run { opacity: 0; animation: ssRun 8s infinite; }
.ss-no { background: #fff; color: #1f3a68; }
.ss-cursor { position: absolute; width: 18px; height: 18px; border-radius: 50% 50% 50% 0; background: #fff; transform: rotate(-30deg); box-shadow: 0 2px 6px rgba(0, 0, 0, 0.5); left: 70%; top: 85%; animation: ssCursor 8s infinite; }
@keyframes ssLink { 0%, 22% { color: #fff; } 26%, 100% { color: #93c5fd; } }
@keyframes ssApp { 0%, 28% { opacity: 0; } 34%, 100% { opacity: 1; } }
@keyframes ssRun { 0%, 30% { opacity: 0; transform: scale(0.9); } 36%, 64% { opacity: 1; transform: none; } 66% { background: rgba(255, 255, 255, 0.35); } 72%, 100% { opacity: 1; background: none; } }
@keyframes ssCursor { 0% { left: 70%; top: 85%; } 18% { left: 12%; top: 49%; } 24% { left: 12%; top: 49%; transform: rotate(-30deg) scale(0.8); } 28% { transform: rotate(-30deg) scale(1); } 50% { left: 56%; top: 84%; } 62% { left: 56%; top: 84%; transform: rotate(-30deg) scale(1); } 66% { transform: rotate(-30deg) scale(0.8); } 70%, 100% { left: 56%; top: 84%; transform: rotate(-30deg) scale(1); } }

/* empty states */
.empty { max-width: 560px; margin: 0 auto; text-align: center; padding: 50px 28px; }
.empty h3 { margin: 22px 0 10px; }
.empty p { color: var(--dim); }
.loader { display: inline-flex; gap: 8px; }
.loader i { width: 12px; height: 12px; border-radius: 50%; background: var(--accent); animation: bounce 1.2s var(--ease) infinite; }
.loader i:nth-child(2) { animation-delay: 0.15s; background: var(--indigo); } .loader i:nth-child(3) { animation-delay: 0.3s; background: var(--violet); }
@keyframes bounce { 0%, 100% { transform: translateY(0); opacity: 0.5; } 40% { transform: translateY(-14px); opacity: 1; } }

/* ── releases timeline ─────────────────────────────────────────────────── */

.timeline { position: relative; list-style: none; padding: 0 0 0 46px; margin: 0; }
.timeline-line { position: absolute; left: 13px; top: 10px; bottom: 10px; width: 2px; background: var(--line); border-radius: 2px; overflow: hidden; }
.timeline-line i { position: absolute; inset: 0; transform-origin: 50% 0; transform: scaleY(var(--p, 0)); background: linear-gradient(180deg, var(--accent), var(--indigo), var(--violet)); box-shadow: 0 0 12px var(--accent); }
.tl-item { position: relative; margin-bottom: 26px; }
.tl-dot { position: absolute; left: -41px; top: 32px; width: 18px; height: 18px; border-radius: 50%; background: #0f172a; border: 2px solid var(--line-strong); }
.tl-item.latest .tl-dot { border-color: var(--accent); background: var(--accent); box-shadow: 0 0 0 0 rgba(56, 189, 248, 0.5); animation: pingBlue 2s infinite; }
@keyframes pingBlue { 0% { box-shadow: 0 0 0 0 rgba(56, 189, 248, 0.55); } 80%, 100% { box-shadow: 0 0 0 14px rgba(56, 189, 248, 0); } }
.tl-head { display: flex; flex-wrap: wrap; align-items: center; gap: 12px; margin-bottom: 14px; }
.tl-head h2 { font-size: 1.5rem; }
.tl-head time { margin-left: auto; color: var(--faint); font-size: 0.9rem; }
.notes { color: var(--dim); }
.notes p, .notes ul { margin: 0 0 10px; }
.notes ul { padding-left: 20px; }
.notes li { margin: 4px 0; }
.notes li::marker { color: var(--accent); }
.notes h4 { color: var(--text); margin: 14px 0 6px; font-size: 1rem; }
.notes strong { color: var(--text); }
.tl-files { list-style: none; padding: 16px 0 0; margin: 16px 0 0; border-top: 1px solid var(--line); display: grid; gap: 10px; }
.tl-files li { display: flex; flex-wrap: wrap; align-items: center; gap: 12px; font-size: 0.92rem; }
.tl-files a { display: inline-flex; align-items: center; gap: 8px; color: var(--accent-hi); font-weight: 600; }
.tl-files a:hover { text-decoration: underline; }

/* ── 404 ───────────────────────────────────────────────────────────────── */

.nf-code { display: flex; justify-content: center; align-items: center; gap: 10px; font-size: clamp(6rem, 18vw, 11rem); font-weight: 800; line-height: 1; letter-spacing: -0.06em; }
.nf-code > span:not(.nf-shield) { background: linear-gradient(180deg, #fff, #5b6b86); -webkit-background-clip: text; background-clip: text; color: transparent; animation: glitch 4s infinite; }
.nf-shield img { width: 0.9em; height: 0.9em; animation: float 5s ease-in-out infinite; filter: drop-shadow(0 0 30px rgba(56, 189, 248, 0.6)); }
@keyframes glitch { 0%, 92%, 100% { transform: none; } 93% { transform: translate(-4px, 2px) skewX(8deg); } 95% { transform: translate(4px, -2px) skewX(-8deg); } 97% { transform: translate(-2px, 0); } }

/* ── footer ────────────────────────────────────────────────────────────── */

.footer { margin-top: 60px; border-top: 1px solid var(--line); background: rgba(5, 7, 13, 0.7); }
.footer-in { display: flex; flex-wrap: wrap; justify-content: space-between; gap: 30px; padding-top: 44px; padding-bottom: 30px; }
.footer-brand p { color: var(--faint); margin-top: 10px; }
.footer-links { display: flex; flex-wrap: wrap; gap: 8px 26px; align-items: center; }
.footer-links a { color: var(--dim); font-weight: 550; transition: color 0.2s; }
.footer-links a:hover { color: var(--text); }
.footer-base { display: flex; flex-wrap: wrap; justify-content: space-between; gap: 10px; padding-top: 18px; padding-bottom: 30px; border-top: 1px solid var(--line); color: var(--faint); font-size: 0.86rem; }
.footer-base a { color: var(--dim); text-decoration: underline; text-decoration-color: var(--line-strong); }

/* ── admin ─────────────────────────────────────────────────────────────── */

.admin-main { padding: 110px 0 60px; }
.auth-main { min-height: 100vh; display: grid; place-items: center; padding: 40px 16px; }
.auth-main > .wrap { position: fixed; top: 20px; left: 0; right: 0; max-width: 460px; z-index: 5; }
.auth-card { width: 100%; max-width: 440px; padding: 40px 34px; text-align: center; background: linear-gradient(160deg, rgba(16, 24, 42, 0.92), rgba(8, 11, 22, 0.94)); }
.auth-card h1 { font-size: 1.7rem; margin: 22px 0 8px; }
.auth-card .muted { margin-bottom: 24px; }
.auth-logo { margin: 0 auto; filter: drop-shadow(0 0 24px rgba(56, 189, 248, 0.55)); animation: float 6s ease-in-out infinite; }
.auth-emblem { position: relative; width: 120px; height: 120px; margin: 0 auto; display: grid; place-items: center; }
.auth-emblem img { position: relative; filter: drop-shadow(0 0 24px rgba(56, 189, 248, 0.55)); }
.auth-emblem .ring { animation: radar 3s cubic-bezier(0.2, 0.6, 0.3, 1) infinite; }
.auth-emblem .ring.r2 { animation-delay: 1.5s; }
.back-link { display: inline-flex; align-items: center; gap: 6px; margin-top: 22px; color: var(--faint); font-size: 0.88rem; transition: color 0.2s, gap 0.3s var(--spring); }
.back-link:hover { color: var(--text); gap: 10px; }
.admin-head .back-link { margin: 0 0 10px; }

.form { display: grid; gap: 16px; text-align: left; }
.form h2 { font-size: 1.15rem; }
.field { display: grid; gap: 7px; }
.field > span { font-size: 0.84rem; font-weight: 650; color: var(--dim); }
.field em { font-style: normal; font-weight: 500; color: var(--faint); }
.field input, .field select, .field textarea {
  width: 100%; padding: 12px 14px; border-radius: 12px; border: 1px solid var(--line-strong); background: rgba(2, 6, 14, 0.6); color: var(--text);
  font: 500 0.95rem var(--font); transition: border-color 0.2s, box-shadow 0.25s, background-color 0.2s; }
.field textarea { font-family: var(--mono); font-size: 0.88rem; line-height: 1.6; resize: vertical; }
.field input:focus, .field select:focus, .field textarea:focus { outline: none; border-color: var(--accent); box-shadow: 0 0 0 4px rgba(56, 189, 248, 0.15); background: rgba(2, 6, 14, 0.85); }
.row2 { display: grid; grid-template-columns: 1fr 1fr; gap: 14px; }

.flash { display: flex; align-items: center; gap: 10px; padding: 12px 16px; border-radius: 12px; margin-bottom: 20px; font-weight: 550; font-size: 0.92rem; animation: flashIn 0.6s var(--spring); text-align: left; }
.flash-ok { color: #a7f3d0; background: rgba(52, 211, 153, 0.1); border: 1px solid rgba(52, 211, 153, 0.35); }
.flash-err { color: #fecaca; background: rgba(248, 113, 113, 0.1); border: 1px solid rgba(248, 113, 113, 0.4); }
.flash.gone { opacity: 0; transform: translateY(-8px); transition: opacity 0.5s, transform 0.5s; }
.shake { animation: flashIn 0.6s var(--spring), shakeX 0.5s 0.1s; }
@keyframes flashIn { from { opacity: 0; transform: translateY(-10px) scale(0.97); } }
@keyframes shakeX { 20% { transform: translateX(-8px); } 40% { transform: translateX(8px); } 60% { transform: translateX(-4px); } 80% { transform: translateX(4px); } }

.admin-head { display: flex; flex-wrap: wrap; align-items: flex-end; justify-content: space-between; gap: 20px; margin-bottom: 30px; }
.admin-head h1 { font-size: clamp(1.8rem, 4vw, 2.6rem); margin-top: 8px; }
.kpis { display: grid; grid-template-columns: repeat(4, 1fr); gap: 16px; margin-bottom: 22px; }
.kpi { display: grid; gap: 4px; padding: 22px; }
.kpi span { color: var(--faint); font-size: 0.86rem; font-weight: 600; }
.kpi b { font-size: 2.1rem; letter-spacing: -0.03em; font-variant-numeric: tabular-nums; }
.kpi-ico { width: 40px; height: 40px; border-radius: 12px; display: grid; place-items: center; color: var(--accent); background: rgba(56, 189, 248, 0.12); margin-bottom: 10px; }
.live-ico { color: var(--ok); background: rgba(52, 211, 153, 0.12); position: relative; }
.live-ico::after { content: ''; position: absolute; top: -3px; right: -3px; width: 10px; height: 10px; border-radius: 50%; background: var(--ok); animation: ping 1.6s infinite; }
.table-card { padding: 0; overflow: hidden; }
.table-head { display: flex; flex-wrap: wrap; align-items: baseline; justify-content: space-between; gap: 10px; padding: 22px 24px; border-bottom: 1px solid var(--line); }
.table-head h2 { font-size: 1.2rem; }
.table-wrap { overflow-x: auto; }
.table { width: 100%; border-collapse: collapse; font-size: 0.93rem; }
.table th { text-align: left; color: var(--faint); font-weight: 650; font-size: 0.78rem; letter-spacing: 0.08em; text-transform: uppercase; padding: 12px 24px; }
.table td { padding: 14px 24px; border-top: 1px solid var(--line); white-space: nowrap; }
.table tbody tr { transition: background-color 0.2s; }
.table tbody tr:hover { background: rgba(56, 189, 248, 0.05); }
.empty-inline { padding: 30px 24px; display: grid; gap: 16px; justify-items: start; color: var(--dim); }
.status { display: inline-flex; align-items: center; gap: 7px; font-size: 0.84rem; font-weight: 650; padding: 4px 11px; border-radius: 999px; }
.status i { width: 7px; height: 7px; border-radius: 50%; background: currentColor; }
.status.on { color: var(--ok); background: rgba(52, 211, 153, 0.12); }
.status.on i { animation: ping 1.8s infinite; }
.status.off { color: var(--warn); background: rgba(251, 191, 36, 0.12); }
.status.big { font-size: 0.95rem; padding: 7px 14px; }

.admin-grid { display: grid; grid-template-columns: 1fr 1fr; gap: 20px; align-items: start; }
.stack { display: grid; gap: 20px; }
.stack .card h2 { font-size: 1.15rem; margin-bottom: 14px; }
.switch-row { display: flex; align-items: center; gap: 14px; padding: 14px; border-radius: 14px; border: 1px solid var(--line); background: rgba(2, 6, 14, 0.4); cursor: pointer; }
.switch-row input { position: absolute; opacity: 0; pointer-events: none; }
.switch-row small { display: block; color: var(--faint); font-size: 0.82rem; }
.switch { position: relative; width: 48px; height: 28px; border-radius: 999px; background: rgba(148, 163, 184, 0.25); flex: none; transition: background-color 0.3s; }
.switch i { position: absolute; top: 3px; left: 3px; width: 22px; height: 22px; border-radius: 50%; background: #fff; transition: transform 0.4s var(--spring); box-shadow: 0 2px 6px rgba(0, 0, 0, 0.4); }
.switch-row input:checked + .switch { background: linear-gradient(135deg, var(--accent), #3b82f6); }
.switch-row input:checked + .switch i { transform: translateX(20px); }
.switch-row input:focus-visible + .switch { outline: 2px solid var(--accent); outline-offset: 3px; }
.assets { list-style: none; padding: 0; margin: 0; display: grid; gap: 10px; }
.assets li { display: flex; align-items: center; gap: 14px; padding: 14px; border-radius: 14px; border: 1px solid var(--line); background: rgba(2, 6, 14, 0.4); animation: flashIn 0.5s var(--ease); }
.asset-ico { width: 40px; height: 40px; border-radius: 11px; display: grid; place-items: center; color: var(--accent); background: rgba(56, 189, 248, 0.1); flex: none; }
.asset-info { flex: 1; min-width: 0; display: grid; gap: 2px; }
.asset-info small { color: var(--faint); overflow-wrap: anywhere; }
.asset-info .sha { font-size: 0.72rem; color: var(--faint); background: none; border: 0; padding: 0; }
.icon-btn { width: 38px; height: 38px; border-radius: 10px; display: grid; place-items: center; border: 1px solid var(--line-strong); background: rgba(255, 255, 255, 0.03); color: var(--dim); cursor: pointer; transition: color 0.2s, border-color 0.2s, background-color 0.2s, transform 0.3s var(--spring); }
.icon-btn:hover { transform: scale(1.08); }
.icon-btn.danger:hover { color: var(--danger); border-color: rgba(248, 113, 113, 0.5); background: rgba(248, 113, 113, 0.1); }
.tabs { display: flex; gap: 6px; padding: 5px; border-radius: 14px; background: rgba(2, 6, 14, 0.5); border: 1px solid var(--line); margin-bottom: 18px; }
.tab { flex: 1; display: inline-flex; align-items: center; justify-content: center; gap: 8px; padding: 10px; border-radius: 10px; border: 0; background: none; color: var(--faint); font: 650 0.9rem var(--font); cursor: pointer; transition: color 0.25s, background-color 0.25s; }
.tab.on { color: var(--text); background: rgba(56, 189, 248, 0.14); box-shadow: inset 0 0 0 1px rgba(56, 189, 248, 0.3); }
.tab-panel { display: none; }
.tab-panel.on { display: grid; animation: flashIn 0.45s var(--ease); }
.drop { position: relative; display: grid; justify-items: center; gap: 6px; padding: 30px 20px; border-radius: 16px; border: 2px dashed var(--line-strong); background: rgba(2, 6, 14, 0.35); text-align: center; cursor: pointer; transition: border-color 0.25s, background-color 0.25s, transform 0.35s var(--spring); }
.drop:hover, .drop.over { border-color: var(--accent); background: rgba(56, 189, 248, 0.07); }
.drop.over { transform: scale(1.02); }
.drop input { position: absolute; inset: 0; opacity: 0; cursor: pointer; }
.drop-ico { width: 34px; height: 34px; color: var(--accent); animation: float 3s ease-in-out infinite; }
.drop small { color: var(--faint); }
.drop.has b { color: var(--accent-hi); }
.danger-zone { display: flex; align-items: center; justify-content: space-between; gap: 16px; border-color: rgba(248, 113, 113, 0.25); }
.danger-zone small { display: block; color: var(--faint); font-size: 0.84rem; }

/* ── responsive ────────────────────────────────────────────────────────── */

@media (max-width: 1000px) {
  .hero-in { grid-template-columns: 1fr; gap: 70px; }
  .hero-text { text-align: center; }
  .hero-sub { margin: 0 auto; }
  .hero-cta, .hero-meta { justify-content: center; }
  .bento { grid-template-columns: repeat(2, 1fr); }
  .kpis { grid-template-columns: repeat(2, 1fr); }
  .admin-grid, .two-col { grid-template-columns: 1fr; }
}
@media (max-width: 860px) {
  .menu-btn { display: block; }
  .nav-links { position: absolute; top: calc(100% + 8px); left: 16px; right: 16px; flex-direction: column; align-items: stretch; gap: 4px; padding: 12px; border-radius: 18px;
    background: rgba(8, 12, 22, 0.97); border: 1px solid var(--line-strong); box-shadow: 0 30px 60px -20px rgba(0, 0, 0, 0.8);
    opacity: 0; transform: translateY(-10px) scale(0.98); pointer-events: none; transition: opacity 0.3s, transform 0.4s var(--spring); }
  .nav-links.open { opacity: 1; transform: none; pointer-events: auto; }
  .nav-links > a:not(.btn) { padding: 12px 14px; }
  .nav-cta, .inline-form { margin: 6px 0 0; }
  .inline-form .btn { width: 100%; }
  .stats-in { grid-template-columns: repeat(2, 1fr); }
  .steps { grid-template-columns: 1fr; gap: 40px; }
  .steps-line { display: none; }
  .section { padding: 80px 0; }
}
@media (max-width: 600px) {
  .wrap { padding: 0 16px; }
  .hero { padding: 120px 0 60px; }
  .bento { grid-template-columns: 1fr; }
  .bento .card.big { grid-column: span 1; }
  .route { grid-template-columns: 1fr auto; }
  .route .path { display: none; }
  .chip-1 { left: -6%; } .chip-2 { right: -6%; } .chip-3 { left: -8%; } .chip-4 { right: -4%; }
  .scene { max-width: 320px; }
  .card { padding: 22px; }
  .row2 { grid-template-columns: 1fr; }
  .kpis { grid-template-columns: 1fr 1fr; gap: 10px; }
  .kpi b { font-size: 1.6rem; }
  .tl-head time { margin-left: 0; width: 100%; }
  .diagram { padding: 10px; }
  .footer-in, .footer-base { flex-direction: column; }
}
@media (hover: none) { .cursor-glow { display: none; } }
