/* IVV Tools landing — same backdrop as the tools' login screens
   (#0a0e1a, 32px cyan grid, scan beam). No JS, CSP-friendly (no inline). */
:root {
  --bg: #0a0e1a;
  --surface: #1c2333;
  --border: #2d3748;
  --text: #f3f4f6;
  --muted: #9ca3af;
  color-scheme: dark;
}
* { box-sizing: border-box; }
html, body { margin: 0; min-height: 100%; }
body {
  min-height: 100vh;
  background: var(--bg);
  color: var(--text);
  font-family: ui-sans-serif, system-ui, -apple-system, "Segoe UI", Roboto, "Helvetica Neue", Arial, sans-serif;
  position: relative;
  overflow-x: hidden;
  display: flex;
  flex-direction: column;
}

/* Europe satellite backdrop, same treatment as VIGIL's shell (under the grid). */
.photo {
  position: fixed; inset: 0; pointer-events: none;
  background: url("bg-europe.jpg") no-repeat center 90% / cover;
  opacity: .35;
  filter: saturate(.55) hue-rotate(75deg) brightness(.85) contrast(1.05);
  -webkit-mask-image: radial-gradient(130% 95% at 50% 40%, #000 32%, rgba(0,0,0,.35) 62%, transparent 86%);
  mask-image: radial-gradient(130% 95% at 50% 40%, #000 32%, rgba(0,0,0,.35) 62%, transparent 86%);
}
.grid {
  position: fixed; inset: 0; pointer-events: none;
  background-image:
    linear-gradient(rgba(34,211,238,.09) 1px, transparent 1px),
    linear-gradient(90deg, rgba(34,211,238,.09) 1px, transparent 1px);
  background-size: 32px 32px;
}
/* Static beam crossing the tool buttons at mid-height, full viewport width. */
.beam {
  position: absolute; top: 50%; left: calc(50% - 50vw); width: 100vw; height: 2px;
  transform: translateY(-50%); pointer-events: none; z-index: 0; opacity: .55;
  background: linear-gradient(90deg, transparent, #22d3ee 20%, #22d3ee 80%, transparent);
  box-shadow: 0 0 12px rgba(34,211,238,.6);
}

.top {
  position: relative; z-index: 1;
  display: flex; align-items: center; gap: 14px;
  padding: 20px 28px;
}
.logo { height: 28px; width: auto; display: block; }
.divider { width: 1px; height: 22px; background: var(--border); }
.brand { font-size: 13px; letter-spacing: .12em; text-transform: uppercase; color: var(--muted); }

main {
  position: relative; z-index: 1;
  flex: 1;
  display: flex; flex-direction: column; align-items: center; justify-content: center;
  padding: 24px 16px 72px;
  text-align: center;
}
h1 { margin: 0; font-size: clamp(26px, 4vw, 36px); font-weight: 600; letter-spacing: .04em; }
.lead { margin: 10px 0 40px; color: var(--muted); font-size: 14px; }

.tools {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(220px, 1fr));
  gap: 20px;
  width: 100%; max-width: 820px;
  position: relative;
}
.tool { --c: #22d3ee; }
.tool[data-tool="trace"] { --c: #10b981; }
.tool[data-tool="sage"]  { --c: #4f9eff; }
.tool[data-tool="scout"] { --c: #f97316; }

.tool {
  position: relative; z-index: 1;
  display: flex; flex-direction: column; align-items: flex-start; gap: 8px;
  text-align: left; text-decoration: none; color: var(--text);
  background: var(--surface);
  border: 1px solid var(--border);
  border-top: 3px solid var(--c);
  border-radius: 12px;
  padding: 22px 22px 18px;
  box-shadow: 0 20px 40px -20px rgba(0,0,0,.6);
  transition: transform .15s ease, border-color .15s ease, box-shadow .15s ease;
}
.tool:hover, .tool:focus-visible {
  transform: translateY(-3px);
  border-color: var(--c);
  box-shadow: 0 20px 40px -18px var(--c);
  outline: none;
}
.tool:focus-visible { outline: 2px solid var(--c); outline-offset: 3px; }
.name { font-size: 20px; font-weight: 600; letter-spacing: .08em; }
.desc { font-size: 12px; color: var(--muted); line-height: 1.5; min-height: 36px; }
.go { margin-top: 6px; font-size: 13px; font-weight: 500; color: var(--c); }

@media (max-width: 520px) {
  .top { padding: 16px; }
  .logo { height: 22px; }
  .desc { min-height: 0; }
}
