/* ============================================================
   AttentIQ · attentiq.com
   Dark agentic-OS aesthetic. Mission control, not admin panel.
   ============================================================ */

:root {
  --bg: #05070d;
  --bg-raise: #0a0f1a;
  --panel: rgba(14, 21, 36, 0.72);
  --line: rgba(84, 116, 168, 0.22);
  --line-bright: rgba(34, 211, 238, 0.55);
  --text: #e6edf7;
  --text-dim: #8fa0ba;
  --cyan: #22d3ee;
  --cyan-soft: rgba(34, 211, 238, 0.14);
  --amber: #fbbf24;
  --amber-soft: rgba(251, 191, 36, 0.12);
  --font-display: "Space Grotesk", system-ui, sans-serif;
  --font-body: "Inter", system-ui, sans-serif;
  --font-mono: "JetBrains Mono", ui-monospace, monospace;
}

* { margin: 0; padding: 0; box-sizing: border-box; }

html { scroll-behavior: smooth; }

body {
  background: var(--bg);
  color: var(--text);
  font-family: var(--font-body);
  font-size: 17px;
  line-height: 1.6;
  overflow-x: hidden;
}

.mono { font-family: var(--font-mono); }

h1, h2, h3 { font-family: var(--font-display); line-height: 1.12; letter-spacing: -0.01em; }

h1 { font-size: clamp(2.6rem, 6.2vw, 4.6rem); font-weight: 700; }
h2 { font-size: clamp(1.7rem, 3.6vw, 2.6rem); font-weight: 600; }
h3 { font-size: 1.15rem; font-weight: 600; }

a { color: inherit; }

section { position: relative; padding: 96px 24px; max-width: 1180px; margin: 0 auto; }

/* ---------- background layers ---------- */

.bg-grid {
  position: fixed; inset: 0; z-index: -2; pointer-events: none;
  background-image:
    linear-gradient(rgba(84, 116, 168, 0.07) 1px, transparent 1px),
    linear-gradient(90deg, rgba(84, 116, 168, 0.07) 1px, transparent 1px);
  background-size: 56px 56px;
  mask-image: radial-gradient(ellipse 90% 70% at 50% 0%, black 30%, transparent 100%);
}

.bg-glow {
  position: fixed; inset: 0; z-index: -3; pointer-events: none;
  background:
    radial-gradient(ellipse 55% 40% at 70% -5%, rgba(34, 211, 238, 0.11), transparent 65%),
    radial-gradient(ellipse 45% 35% at 15% 15%, rgba(59, 91, 219, 0.10), transparent 65%);
}

/* ---------- header ---------- */

.site-header {
  position: sticky; top: 0; z-index: 50;
  display: flex; align-items: center; justify-content: space-between; gap: 16px;
  padding: 14px 28px;
  background: rgba(5, 7, 13, 0.78);
  backdrop-filter: blur(14px);
  border-bottom: 1px solid var(--line);
}

.logo {
  display: flex; align-items: center; gap: 10px;
  font-family: var(--font-display); font-weight: 700; font-size: 1.05rem;
  letter-spacing: 0.14em; text-decoration: none;
}

.logo-mark {
  width: 22px; height: 22px; border-radius: 50%;
  border: 2px solid var(--cyan); position: relative; flex: none;
  box-shadow: 0 0 14px rgba(34, 211, 238, 0.55);
}
.logo-mark::after {
  content: ""; position: absolute; inset: 6px; border-radius: 50%;
  background: var(--cyan);
}

.logo-iq { color: var(--cyan); }

.site-nav { display: flex; gap: 26px; }
.site-nav a {
  font-size: 0.86rem; color: var(--text-dim); text-decoration: none;
  letter-spacing: 0.04em; transition: color 160ms ease;
}
.site-nav a:hover { color: var(--cyan); }

/* ---------- buttons ---------- */

.btn {
  display: inline-block; text-decoration: none; font-family: var(--font-display);
  font-weight: 600; font-size: 0.95rem; letter-spacing: 0.02em;
  padding: 13px 26px; border-radius: 10px;
  transition: transform 160ms ease, box-shadow 160ms ease, background 160ms ease;
}
.btn-primary {
  background: linear-gradient(120deg, var(--cyan), #4f8ef7);
  color: #04121b;
  box-shadow: 0 0 24px rgba(34, 211, 238, 0.35);
}
.btn-primary:hover { transform: translateY(-2px); box-shadow: 0 0 40px rgba(34, 211, 238, 0.55); }
.btn-ghost {
  color: var(--text); border: 1px solid var(--line);
  background: rgba(14, 21, 36, 0.5);
}
.btn-ghost:hover { border-color: var(--line-bright); }
.btn-sm { padding: 9px 18px; font-size: 0.84rem; }
.btn-lg { padding: 17px 34px; font-size: 1.1rem; }

/* ---------- LEDs & badges ---------- */

.led {
  display: inline-block; width: 8px; height: 8px; border-radius: 50%;
  margin-right: 7px; vertical-align: 1px;
}
.led-cyan  { background: var(--cyan);  box-shadow: 0 0 8px var(--cyan);  animation: blink 2.4s infinite; }
.led-amber { background: var(--amber); box-shadow: 0 0 8px var(--amber); animation: blink 1.8s infinite; }
.led-dim   { background: #3b4a63; }

@keyframes blink { 0%, 100% { opacity: 1; } 50% { opacity: 0.35; } }

.kicker {
  color: var(--cyan); font-size: 0.8rem; letter-spacing: 0.18em;
  margin-bottom: 14px;
}

/* ---------- hero ---------- */

.hero {
  min-height: 88vh; display: flex; align-items: center;
  padding-top: 40px;
}

.hero-inner { position: relative; z-index: 2; max-width: 780px; }

.hero-badge {
  display: inline-block; font-family: var(--font-mono); font-size: 0.74rem;
  letter-spacing: 0.16em; color: var(--text-dim);
  border: 1px solid var(--line); border-radius: 999px;
  padding: 8px 16px; margin-bottom: 28px;
  background: rgba(14, 21, 36, 0.6);
}

.grad {
  background: linear-gradient(120deg, var(--cyan), #4f8ef7);
  -webkit-background-clip: text; background-clip: text; color: transparent;
}
.grad-amber {
  background: linear-gradient(120deg, var(--amber), #f97316);
  -webkit-background-clip: text; background-clip: text; color: transparent;
}

.hero-sub {
  margin-top: 26px; font-size: 1.14rem; color: var(--text-dim); max-width: 620px;
}

.hero-cta { margin-top: 38px; display: flex; gap: 16px; flex-wrap: wrap; }

/* radar */

.radar {
  position: absolute; right: -140px; top: 50%; transform: translateY(-50%);
  width: 620px; height: 620px; z-index: 1; opacity: 0.55; pointer-events: none;
}
.radar-ring {
  position: absolute; border: 1px solid rgba(34, 211, 238, 0.22); border-radius: 50%;
}
.radar-ring.r1 { inset: 0; }
.radar-ring.r2 { inset: 110px; }
.radar-ring.r3 { inset: 220px; }
.radar-sweep {
  position: absolute; inset: 0; border-radius: 50%;
  background: conic-gradient(from 0deg, rgba(34, 211, 238, 0.28), transparent 18%);
  animation: sweep 6s linear infinite;
}
@keyframes sweep { to { transform: rotate(360deg); } }

.radar-blip {
  position: absolute; width: 7px; height: 7px; border-radius: 50%;
  background: var(--cyan); box-shadow: 0 0 12px var(--cyan);
  animation: blip 6s infinite;
}
.radar-blip.b1 { top: 26%; left: 58%; animation-delay: 1.1s; }
.radar-blip.b2 { top: 55%; left: 30%; animation-delay: 3.2s; }
.radar-blip.b3 { top: 68%; left: 66%; animation-delay: 5s; }
@keyframes blip { 0%, 12% { opacity: 1; } 45%, 100% { opacity: 0.12; } }

/* ---------- stats ---------- */

.stats {
  display: grid; grid-template-columns: repeat(4, 1fr); gap: 18px;
  padding-top: 0; padding-bottom: 72px;
}
.stat {
  border: 1px solid var(--line); border-radius: 14px; padding: 24px 22px;
  background: var(--panel); backdrop-filter: blur(8px);
}
.stat-num {
  display: block; font-size: 2rem; font-weight: 700; color: var(--cyan);
  text-shadow: 0 0 22px rgba(34, 211, 238, 0.4);
}
.stat-label { display: block; margin-top: 8px; font-size: 0.86rem; color: var(--text-dim); }

/* ---------- mission control ---------- */

.section-head { max-width: 720px; margin-bottom: 54px; }
.section-sub { margin-top: 16px; color: var(--text-dim); }

.mission {
  border: 1px solid var(--line); border-radius: 22px;
  background:
    radial-gradient(ellipse 70% 50% at 50% 0%, rgba(34, 211, 238, 0.05), transparent 70%),
    var(--bg-raise);
  padding: 72px 44px;
}

.pipeline {
  display: flex; align-items: stretch; gap: 0;
}

.agent-card {
  flex: 1; display: flex; flex-direction: column; gap: 6px; align-items: flex-start;
  text-align: left; cursor: pointer;
  border: 1px solid var(--line); border-radius: 14px;
  background: var(--panel); color: var(--text);
  padding: 22px 20px; font-family: var(--font-body);
  transition: border-color 180ms ease, box-shadow 180ms ease, transform 180ms ease;
}
.agent-card:hover { border-color: var(--line-bright); transform: translateY(-3px); }
.agent-card.is-active {
  border-color: var(--cyan);
  box-shadow: 0 0 32px rgba(34, 211, 238, 0.22), inset 0 0 24px rgba(34, 211, 238, 0.05);
}

.agent-stage { font-size: 0.68rem; color: var(--text-dim); letter-spacing: 0.18em; }
.agent-name {
  font-family: var(--font-display); font-weight: 700; font-size: 1.5rem;
  letter-spacing: 0.06em;
}
.agent-role { font-size: 0.88rem; color: var(--text-dim); }
.agent-status { margin-top: 10px; font-size: 0.68rem; letter-spacing: 0.14em; color: var(--cyan); }
.agent-card-sm .agent-status { color: var(--text-dim); }

/* gates between stages */

.gate {
  flex: 0 0 150px; display: flex; flex-direction: column;
  align-items: center; justify-content: center; gap: 8px; padding: 0 8px;
}
.gate-line {
  position: relative; width: 100%; height: 2px;
  background: linear-gradient(90deg, var(--line-bright), rgba(251, 191, 36, 0.5), var(--line-bright));
  overflow: visible;
}
.pulse {
  position: absolute; top: 50%; left: 0; width: 9px; height: 9px;
  border-radius: 50%; transform: translateY(-50%);
  background: var(--cyan); box-shadow: 0 0 12px var(--cyan);
  animation: travel 3.2s ease-in-out infinite;
}
@keyframes travel {
  0%   { left: 0;    opacity: 0; }
  12%  { opacity: 1; }
  46%  { left: calc(50% - 5px); background: var(--amber); box-shadow: 0 0 12px var(--amber); }
  54%  { left: calc(50% - 5px); background: var(--amber); box-shadow: 0 0 12px var(--amber); }
  88%  { opacity: 1; }
  100% { left: calc(100% - 9px); background: var(--cyan); opacity: 0; }
}

.gate-chip {
  font-size: 0.62rem; letter-spacing: 0.14em; color: var(--amber);
  border: 1px solid rgba(251, 191, 36, 0.35); border-radius: 999px;
  background: var(--amber-soft); padding: 4px 10px; white-space: nowrap;
}
.gate-desc { font-size: 0.7rem; color: var(--text-dim); text-align: center; line-height: 1.35; }

/* post-signing crew */

.crew { margin-top: 40px; }
.crew-label { font-size: 0.72rem; letter-spacing: 0.16em; color: var(--text-dim); margin-bottom: 14px; }
.crew-row { display: grid; grid-template-columns: repeat(3, 1fr); gap: 16px; }
.agent-card-sm { opacity: 0.75; }
.agent-card-sm .agent-name { font-size: 1.15rem; }
.agent-card-sm:hover { opacity: 1; }

/* detail panel */

.agent-detail {
  margin-top: 40px; border: 1px solid var(--line); border-left: 3px solid var(--cyan);
  border-radius: 12px; background: var(--panel); padding: 26px 30px;
  min-height: 132px;
}
.detail-head { display: flex; gap: 18px; align-items: baseline; flex-wrap: wrap; margin-bottom: 10px; }
.detail-name { font-size: 1.1rem; font-weight: 700; color: var(--cyan); letter-spacing: 0.1em; }
.detail-tag { font-size: 0.7rem; color: var(--text-dim); letter-spacing: 0.16em; }
.detail-body { color: var(--text); max-width: 760px; }
.detail-gate { margin-top: 14px; font-size: 0.76rem; color: var(--amber); letter-spacing: 0.06em; }

/* ---------- how it works ---------- */

.steps { display: grid; grid-template-columns: repeat(3, 1fr); gap: 20px; }
.step {
  border: 1px solid var(--line); border-radius: 16px; padding: 30px 26px;
  background: var(--panel);
  transition: border-color 180ms ease, transform 180ms ease;
}
.step:hover { border-color: var(--line-bright); transform: translateY(-3px); }
.step-num {
  display: inline-block; font-size: 0.78rem; color: var(--cyan);
  border: 1px solid rgba(34, 211, 238, 0.35); border-radius: 8px;
  background: var(--cyan-soft); padding: 4px 10px; margin-bottom: 18px;
  letter-spacing: 0.14em;
}
.step h3 { margin-bottom: 10px; }
.step p { color: var(--text-dim); font-size: 0.95rem; }

/* ---------- guarantees ---------- */

.guarantee-grid { display: grid; grid-template-columns: repeat(2, 1fr); gap: 20px; }
.guarantee {
  border: 1px solid var(--line); border-radius: 16px; padding: 30px 28px;
  background: var(--panel); position: relative; overflow: hidden;
}
.guarantee::before {
  content: ""; position: absolute; top: 0; left: 0; right: 0; height: 2px;
  background: linear-gradient(90deg, var(--amber), transparent 70%);
  opacity: 0.7;
}
.g-num {
  display: inline-block; font-size: 0.78rem; color: var(--amber);
  border: 1px solid rgba(251, 191, 36, 0.35); border-radius: 8px;
  background: var(--amber-soft); padding: 4px 10px; margin-bottom: 16px;
  letter-spacing: 0.14em;
}
.guarantee h3 { margin-bottom: 10px; }
.guarantee p { color: var(--text-dim); font-size: 0.95rem; }

/* ---------- day one ---------- */

.dayone { text-align: center; }
.dayone-inner { max-width: 680px; margin: 0 auto; }
.dayone .kicker { color: var(--amber); }
.dayone p { margin-top: 18px; color: var(--text-dim); }
.dayone-note {
  display: inline-block; margin-top: 26px; font-size: 0.74rem; letter-spacing: 0.2em;
  color: var(--amber); border: 1px solid rgba(251, 191, 36, 0.35);
  border-radius: 999px; padding: 8px 18px; background: var(--amber-soft);
}

/* ---------- contact ---------- */

.contact { padding-bottom: 130px; }
.contact-inner {
  text-align: center; max-width: 640px; margin: 0 auto;
  border: 1px solid var(--line); border-radius: 22px;
  background:
    radial-gradient(ellipse 80% 90% at 50% 110%, rgba(34, 211, 238, 0.10), transparent 70%),
    var(--bg-raise);
  padding: 72px 40px;
}
.contact-inner p { margin: 18px 0 30px; color: var(--text-dim); }
.contact-fine { font-size: 0.8rem; margin-top: 26px !important; letter-spacing: 0.04em; }

/* ---------- footer ---------- */

.site-footer { border-top: 1px solid var(--line); padding: 34px 24px; }
.footer-inner {
  max-width: 1180px; margin: 0 auto; display: flex; justify-content: space-between;
  gap: 14px; flex-wrap: wrap; font-size: 0.8rem; color: var(--text-dim);
}
.footer-inner a { text-decoration: none; }
.footer-inner a:hover { color: var(--cyan); }

/* ---------- reveal on scroll ---------- */

.reveal { opacity: 0; transform: translateY(22px); transition: opacity 640ms ease, transform 640ms ease; }
.reveal.visible { opacity: 1; transform: none; }

/* ---------- reduced motion ---------- */

@media (prefers-reduced-motion: reduce) {
  .radar-sweep, .pulse, .led-cyan, .led-amber, .radar-blip { animation: none; }
  .reveal { opacity: 1; transform: none; transition: none; }
  html { scroll-behavior: auto; }
}

/* ---------- responsive ---------- */

@media (max-width: 980px) {
  .stats { grid-template-columns: repeat(2, 1fr); }
  .radar { opacity: 0.25; right: -280px; }
  .pipeline { flex-direction: column; }
  .gate { flex-basis: auto; padding: 18px 0; width: 100%; }
  .gate-line { width: 2px; height: 46px; background: linear-gradient(180deg, var(--line-bright), rgba(251, 191, 36, 0.5), var(--line-bright)); position: absolute; z-index: -1; }
  .gate { position: relative; }
  .pulse { display: none; }
  .crew-row { grid-template-columns: 1fr; }
  .steps { grid-template-columns: 1fr; }
  .guarantee-grid { grid-template-columns: 1fr; }
  .mission { padding: 48px 22px; }
}

@media (max-width: 640px) {
  .site-nav { display: none; }
  .stats { grid-template-columns: 1fr 1fr; }
  section { padding: 64px 18px; }
  .hero { min-height: auto; padding-top: 72px; }
}
