/* TrapMap — coming soon
   Palette extracted from Desktop/TrapMap brand assets:
   #0056F2 banner royal blue (primary) · #187EEC mark mid-blue (secondary)
   #50A1FA mark highlight (accent) · #0F408C mark shadow (deep) · #0C0C0D icon field */
:root {
  --bg: #060709;
  --bg-2: #0c0c0d;
  --brand: #0056f2;
  --brand-2: #187eec;
  --accent: #50a1fa;
  --deep: #0f408c;
  --fg: #eef1f6;
  --fg-2: #b3bbca;
  --muted: #8a93a6;
  --line: rgba(255, 255, 255, 0.08);
  --line-2: rgba(255, 255, 255, 0.14);
  --glass: rgba(14, 16, 22, 0.55);
  --sans: "Geist", ui-sans-serif, system-ui, -apple-system, "Segoe UI", sans-serif;
  --mono: "Geist Mono", ui-monospace, "SFMono-Regular", Menlo, Consolas, monospace;
  --pad: clamp(20px, 3.2vw, 44px);
  --ease: cubic-bezier(.2, .7, .2, 1);
}

*, *::before, *::after { box-sizing: border-box; }
html, body { margin: 0; height: 100%; }
body {
  background: var(--bg);
  color: var(--fg);
  font-family: var(--sans);
  -webkit-font-smoothing: antialiased;
  text-rendering: optimizeLegibility;
  overflow: hidden;
  min-height: 100svh;
  display: grid;
  grid-template-rows: auto 1fr auto;
}
a { color: inherit; text-decoration: none; }
::selection { background: rgba(80, 161, 250, .35); }

/* ---------- background layers ---------- */
#map {
  position: fixed; inset: 0;
  width: 100%; height: 100%;
  z-index: 0;
  display: block;
}
.ambient {
  position: fixed; inset: 0; z-index: 1; pointer-events: none;
  background:
    radial-gradient(60vw 50vh at 72% 46%, rgba(0, 86, 242, .16), transparent 70%),
    radial-gradient(40vw 40vh at 88% 8%, rgba(80, 161, 250, .07), transparent 70%),
    linear-gradient(90deg, rgba(6, 7, 9, .92) 0%, rgba(6, 7, 9, .6) 32%, rgba(6, 7, 9, 0) 50%),
    linear-gradient(180deg, rgba(6, 7, 9, .7) 0%, transparent 18%, transparent 82%, rgba(6, 7, 9, .85) 100%);
}
.grain {
  position: fixed; inset: 0; z-index: 1; pointer-events: none; opacity: .05;
  background-image: url("data:image/svg+xml;utf8,<svg xmlns='http://www.w3.org/2000/svg' width='140' height='140'><filter id='n'><feTurbulence type='fractalNoise' baseFrequency='.9' numOctaves='2' stitchTiles='stitch'/></filter><rect width='100%' height='100%' filter='url(%23n)'/></svg>");
}
/* faint engineering grid, masked toward the map */
body::before {
  content: ""; position: fixed; inset: 0; z-index: 0; pointer-events: none;
  background-image:
    linear-gradient(var(--line) 1px, transparent 1px),
    linear-gradient(90deg, var(--line) 1px, transparent 1px);
  background-size: 64px 64px;
  opacity: .35;
  mask-image: radial-gradient(55vw 55vh at 70% 50%, #000 0%, transparent 75%);
  -webkit-mask-image: radial-gradient(55vw 55vh at 70% 50%, #000 0%, transparent 75%);
}

/* ---------- nav ---------- */
.nav {
  position: relative; z-index: 3;
  display: flex; justify-content: space-between; align-items: center;
  padding: 18px var(--pad);
  border-bottom: 1px solid var(--line);
  background: linear-gradient(180deg, rgba(6,7,9,.75), rgba(6,7,9,.35));
  backdrop-filter: blur(14px) saturate(140%);
  -webkit-backdrop-filter: blur(14px) saturate(140%);
}
.brand { display: inline-flex; align-items: center; gap: 10px; justify-self: start; font-weight: 600; font-size: 16px; letter-spacing: -.01em; }
.brand img { width: 28px; height: 28px; display: block; }

.dot { position: relative; width: 6px; height: 6px; border-radius: 50%; background: #fff; box-shadow: 0 0 8px #cfe3ff; }
.dot::after {
  content: ""; position: absolute; inset: -4px; border-radius: 50%;
  border: 1px solid #fff; opacity: 0;
  animation: ping 2.2s var(--ease) infinite;
}
@keyframes ping { 0% { transform: scale(.4); opacity: .9; } 80%, 100% { transform: scale(1.8); opacity: 0; } }

.social { justify-self: end; display: flex; gap: 8px; }
.social a {
  width: 34px; height: 34px; display: grid; place-items: center;
  border: 1px solid var(--line); border-radius: 9px; color: var(--fg-2);
  background: rgba(255,255,255,.02);
  transition: color .2s, border-color .2s, background .2s, transform .2s var(--ease);
}
.social a:hover { color: var(--fg); border-color: rgba(80,161,250,.45); background: rgba(0,86,242,.12); transform: translateY(-1px); }

/* ---------- hero ---------- */
.hero {
  position: relative; z-index: 2;
  align-self: center;
  padding: 0 var(--pad);
  max-width: calc(640px + var(--pad) * 2);
  pointer-events: none;
}
.hero > * { pointer-events: auto; }
.eyebrow {
  display: inline-flex; align-items: center; gap: 10px; margin: 0 0 22px;
  font: 500 12px/1 var(--mono); letter-spacing: .1em; text-transform: uppercase; color: var(--fg-2);
}
.tag {
  display: inline-flex; align-items: center; gap: 7px; white-space: nowrap;
  padding: 5px 9px 5px 9px; border-radius: 5px;
  color: #fff; background: var(--brand);
  box-shadow: 0 0 0 1px rgba(80,161,250,.4) inset, 0 4px 18px rgba(0,86,242,.45);
  font-size: 10.5px; letter-spacing: .12em;
}
h1 {
  margin: 0;
  font-weight: 600;
  font-size: clamp(40px, 5.4vw, 80px);
  line-height: .98;
  letter-spacing: -.045em;
}
h1 .line { display: block; white-space: nowrap; }
h1 .line:last-child {
  background: linear-gradient(92deg, #fff 0%, #cfe3ff 30%, var(--accent) 70%, var(--brand-2) 100%);
  -webkit-background-clip: text; background-clip: text; color: transparent;
}
.sub {
  margin: 24px 0 0; max-width: 540px;
  font-size: clamp(15px, 1.15vw, 17px); line-height: 1.6; color: var(--fg-2);
  text-wrap: pretty;
}

.ctas { display: flex; flex-wrap: wrap; gap: 12px; margin-top: 34px; }
.btn {
  position: relative; display: inline-flex; align-items: center; gap: 10px;
  height: 46px; padding: 0 20px; border-radius: 11px;
  font: 500 14.5px/1 var(--sans); letter-spacing: -.005em;
  transition: transform .25s var(--ease), box-shadow .25s var(--ease), background .25s, border-color .25s, color .25s;
  isolation: isolate; overflow: hidden;
}
.btn-primary {
  color: #fff;
  background: linear-gradient(180deg, #1a6bff 0%, var(--brand) 100%);
  box-shadow: 0 0 0 1px rgba(80,161,250,.55) inset, 0 1px 0 rgba(255,255,255,.25) inset, 0 10px 30px -8px rgba(0,86,242,.75);
}
.btn-primary::before {
  content: ""; position: absolute; inset: 0; z-index: -1;
  background: linear-gradient(110deg, transparent 30%, rgba(255,255,255,.28) 50%, transparent 70%);
  transform: translateX(-120%);
  transition: transform .7s var(--ease);
}
.btn-primary:hover { transform: translateY(-2px); box-shadow: 0 0 0 1px rgba(120,180,255,.8) inset, 0 1px 0 rgba(255,255,255,.3) inset, 0 16px 40px -8px rgba(0,86,242,.9); }
.btn-primary:hover::before { transform: translateX(120%); }
.btn .arrow { transition: transform .25s var(--ease); }
.btn-primary:hover .arrow { transform: translateX(3px); }
.btn-ghost {
  color: var(--fg);
  border: 1px solid var(--line-2);
  background: rgba(255,255,255,.03);
  backdrop-filter: blur(10px); -webkit-backdrop-filter: blur(10px);
}
.btn-ghost:hover { transform: translateY(-2px); border-color: rgba(80,161,250,.5); background: rgba(0,86,242,.1); color: #fff; }
.btn:focus-visible, .social a:focus-visible, .brand:focus-visible { outline: 2px solid var(--accent); outline-offset: 3px; }
.btn:active { transform: translateY(0) scale(.985); }

.caps {
  list-style: none; margin: 34px 0 0; padding: 18px 0 0;
  display: flex; flex-wrap: nowrap; gap: 22px;
  border-top: 1px solid var(--line);
  max-width: 540px; white-space: nowrap;
  font: 400 11.5px/1 var(--mono); letter-spacing: .03em; color: var(--fg-2);
}
.caps span { color: var(--accent); margin-right: 8px; opacity: .8; }

/* proxima.tools detection callout */
.detect {
  display: inline-flex; align-items: center; gap: 9px;
  margin: 22px 0 0; padding: 8px 12px 8px 10px;
  border: 1px solid rgba(80,161,250,.28); border-radius: 9px;
  background: linear-gradient(90deg, rgba(0,86,242,.14), rgba(0,86,242,.03));
  font: 400 12.5px/1 var(--mono); letter-spacing: .02em; color: var(--fg-2);
}
.detect-k { color: var(--fg); font-weight: 500; }
.detect b { color: var(--accent); font-weight: 500; letter-spacing: .06em; text-transform: uppercase; }
.detect-ico { width: 7px; height: 7px; background: var(--accent); box-shadow: 0 0 10px var(--accent); transform: rotate(45deg); flex: none; }

/* ---------- HUD ---------- */
.hud {
  position: fixed; z-index: 3;
  right: var(--pad); bottom: 64px;
  width: 260px; padding: 14px 16px 12px;
  border: 1px solid var(--line); border-radius: 14px;
  background: var(--glass);
  backdrop-filter: blur(18px) saturate(150%); -webkit-backdrop-filter: blur(18px) saturate(150%);
  box-shadow: 0 1px 0 rgba(255,255,255,.04) inset, 0 24px 60px -20px rgba(0,0,0,.8);
  font-family: var(--mono);
}
.hud-head { display: flex; justify-content: space-between; align-items: center; margin-bottom: 10px; }
.hud-title { font-size: 10.5px; letter-spacing: .12em; color: var(--fg-2); }
.hud-badge { font-size: 9.5px; letter-spacing: .1em; color: var(--muted); padding: 3px 6px; border: 1px solid var(--line); border-radius: 4px; }
.hud dl { margin: 0; display: grid; gap: 7px; }
.hud dl > div { display: flex; justify-content: space-between; align-items: baseline; }
.hud dt { font-size: 11.5px; color: var(--muted); }
.hud dd { margin: 0; font-size: 13px; color: var(--fg); font-variant-numeric: tabular-nums; }
.hud dd.hot { color: var(--accent); }
.hud-hint {
  margin: 10px 0 0; padding-top: 9px; border-top: 1px solid var(--line);
  font-size: 10.5px; letter-spacing: .02em; color: var(--muted);
  min-height: 2.6em; line-height: 1.3;
}
.hud-hint.alert { color: #fff; }
.hud-hint.alert b { color: var(--accent); font-weight: 500; }

/* ---------- tooltip ---------- */
.tip {
  position: fixed; z-index: 4; left: 0; top: 0;
  min-width: 190px; padding: 11px 12px;
  border: 1px solid var(--line-2); border-radius: 10px;
  background: rgba(10, 12, 18, .78);
  backdrop-filter: blur(16px); -webkit-backdrop-filter: blur(16px);
  box-shadow: 0 18px 50px -12px rgba(0,0,0,.9), 0 0 0 1px rgba(0,86,242,.15);
  font: 400 11.5px/1.5 var(--mono); color: var(--fg-2);
  pointer-events: none; opacity: 0;
  transform: translate3d(-9999px, 0, 0);
  transition: opacity .15s;
  will-change: transform;
}
.tip.on { opacity: 1; }
.tip .t-addr { color: var(--fg); font-size: 12px; }
.tip .t-row { display: flex; justify-content: space-between; gap: 18px; }
.tip .t-row b { color: var(--fg); font-weight: 500; }
.tip .t-trap {
  display: flex; align-items: center; gap: 7px; margin-top: 8px; padding-top: 8px;
  border-top: 1px solid var(--line); color: var(--accent); letter-spacing: .08em; font-size: 10.5px;
}
.tip .t-trap::before { content: ""; width: 6px; height: 6px; background: var(--accent); box-shadow: 0 0 8px var(--accent); transform: rotate(45deg); }

/* ---------- footer ---------- */
.foot {
  position: relative; z-index: 3;
  display: flex; gap: 10px; align-items: center;
  padding: 18px var(--pad);
  font: 400 11px/1 var(--mono); letter-spacing: .04em; color: var(--muted);
}
.foot .sep { opacity: .4; }

/* ---------- entrance ---------- */
@media (prefers-reduced-motion: no-preference) {
  .hero > *, .hud, .nav { animation: rise .9s var(--ease) both; }
  .hero > :nth-child(2) { animation-delay: .06s; }
  .hero > :nth-child(3) { animation-delay: .12s; }
  .hero > :nth-child(4) { animation-delay: .18s; }
  .hero > :nth-child(5) { animation-delay: .24s; }
  .hero > :nth-child(6) { animation-delay: .3s; }
  .hud { animation-delay: .4s; }
  @keyframes rise { from { opacity: 0; transform: translateY(10px); } to { opacity: 1; transform: none; } }
}
@media (prefers-reduced-motion: reduce) {
  .dot::after { animation: none; }
}

/* ---------- responsive ---------- */
@media (max-width: 1100px) {
  .hud { display: none; }
}
@media (max-width: 860px) {
  body { overflow-x: hidden; overflow-y: auto; }
  .nav { padding-top: 14px; padding-bottom: 14px; }
  .detect { margin-top: 18px; }
  .eyebrow-t { display: none; }
  .ambient {
    background:
      radial-gradient(90vw 50vh at 60% 30%, rgba(0, 86, 242, .18), transparent 70%),
      linear-gradient(180deg, rgba(6,7,9,.2) 0%, rgba(6,7,9,.35) 30%, rgba(6,7,9,.88) 52%, rgba(6,7,9,.96) 100%);
  }
  body::before { mask-image: radial-gradient(90vw 50vh at 50% 30%, #000, transparent 75%); -webkit-mask-image: radial-gradient(90vw 50vh at 50% 30%, #000, transparent 75%); }
  .hero { align-self: end; padding-top: 21vh; padding-bottom: 4px; }
  h1 { font-size: clamp(38px, 11vw, 60px); }
  .eyebrow { margin-bottom: 16px; }
  .ctas { margin-top: 26px; }
  .btn { flex: 1 1 auto; justify-content: center; }
  .caps { margin-top: 22px; flex-direction: column; gap: 9px; font-size: 11.5px; }
}
@media (max-width: 370px) {
  .brand span { display: none; }
  h1 .line { white-space: normal; }
}
