@import url('https://fonts.googleapis.com/css2?family=Red+Hat+Display:wght@300;400;500;600;700;800;900&family=Red+Hat+Mono:wght@300;400;500;600&display=swap');

:root {
  --bg-0: #000000;
  --bg-1: #0a0a0c;
  --bg-2: #0d1d30;
  --bg-3: #2a2a2a;
  --line: rgba(255, 255, 255, 0.08);
  --line-2: rgba(255, 255, 255, 0.14);
  --text-0: #ffffff;
  --text-1: rgba(255, 255, 255, 0.72);
  --text-2: rgba(255, 255, 255, 0.48);
  --text-3: rgba(255, 255, 255, 0.32);
  --accent: #6f15c8;
  --accent-soft: rgba(111, 21, 200, 0.14);
  --accent-line: rgba(111, 21, 200, 0.42);
  --green: #4ade80;
  --red: #f87171;
}

* { box-sizing: border-box; }

html, body {
  margin: 0;
  padding: 0;
  background: var(--bg-0);
  color: var(--text-0);
  font-family: 'Red Hat Display', -apple-system, sans-serif;
  font-feature-settings: 'ss01', 'cv11';
  -webkit-font-smoothing: antialiased;
  scroll-behavior: smooth;
}

.mono { font-family: 'Red Hat Mono', ui-monospace, monospace; }

.chapter {
  font-family: 'Red Hat Display', sans-serif;
  font-weight: 500;
  font-size: 11px;
  letter-spacing: 0.18em;
  text-transform: uppercase;
  color: var(--text-2);
}

.title-xxl {
  font-family: 'Red Hat Display', sans-serif;
  font-weight: 800;
  font-size: clamp(44px, 6.4vw, 92px);
  line-height: 0.96;
  letter-spacing: -0.035em;
}

.title-xl {
  font-weight: 700;
  font-size: clamp(32px, 3.6vw, 52px);
  line-height: 1.02;
  letter-spacing: -0.028em;
}

.title-l {
  font-weight: 700;
  font-size: 24px;
  line-height: 1.1;
  letter-spacing: -0.02em;
}

.body { color: var(--text-1); font-size: 16px; line-height: 1.55; font-weight: 400; }
.body-sm { color: var(--text-1); font-size: 14px; line-height: 1.5; }

.btn {
  display: inline-flex;
  align-items: center;
  gap: 10px;
  padding: 14px 22px;
  border-radius: 999px;
  font-family: 'Red Hat Display', sans-serif;
  font-weight: 600;
  font-size: 15px;
  letter-spacing: -0.005em;
  cursor: pointer;
  transition: transform 0.12s ease, background 0.15s ease, border-color 0.15s ease;
  border: 1px solid transparent;
  text-decoration: none;
  white-space: nowrap;
}
.btn-primary { background: var(--accent); color: #fff; }
.btn-primary:hover { transform: translateY(-1px); filter: brightness(1.08); }
.btn-ghost { background: transparent; color: var(--text-0); border-color: var(--line-2); }
.btn-ghost:hover { background: rgba(255,255,255,0.04); border-color: rgba(255,255,255,0.28); }

.tag {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  padding: 6px 12px;
  border-radius: 999px;
  border: 1px solid var(--line);
  background: rgba(255,255,255,0.02);
  font-size: 12px;
  color: var(--text-1);
  font-weight: 500;
}
.tag .dot {
  width: 6px; height: 6px; border-radius: 50%;
  background: var(--accent);
  box-shadow: 0 0 0 4px var(--accent-soft);
}

.shell {
  max-width: 1280px;
  margin: 0 auto;
  padding: 0 32px;
}

@media (max-width: 720px) {
  .shell { padding: 0 20px; }
}

/* Density variations */
[data-density="cozy"] .section { padding-top: 96px; padding-bottom: 96px; }
[data-density="comfy"] .section { padding-top: 140px; padding-bottom: 140px; }
[data-density="spacious"] .section { padding-top: 200px; padding-bottom: 200px; }

.section { padding-top: 140px; padding-bottom: 140px; }
.section-eyebrow {
  display: flex; align-items: baseline; gap: 14px;
  margin-bottom: 28px;
}
.section-eyebrow .num {
  font-family: 'Red Hat Mono', monospace;
  color: var(--accent);
  font-size: 12px;
  font-weight: 500;
}

.divider {
  height: 1px;
  background: linear-gradient(90deg, transparent, var(--line-2), transparent);
}

/* Subtle grid background utility */
.grid-bg {
  background-image:
    linear-gradient(var(--line) 1px, transparent 1px),
    linear-gradient(90deg, var(--line) 1px, transparent 1px);
  background-size: 56px 56px;
  background-position: -1px -1px;
}

/* keyframes */
@keyframes pulse-ring {
  0% { transform: scale(0.95); opacity: 0.6; }
  100% { transform: scale(1.6); opacity: 0; }
}
@keyframes fp-scan {
  0% { transform: translateY(-100%); opacity: 0; }
  10% { opacity: 1; }
  90% { opacity: 1; }
  100% { transform: translateY(100%); opacity: 0; }
}
@keyframes float-y {
  0%, 100% { transform: translateY(0); }
  50% { transform: translateY(-8px); }
}
@keyframes ticker {
  from { transform: translateX(0); }
  to { transform: translateX(-50%); }
}
@keyframes blink { 0%, 49% { opacity: 1; } 50%, 100% { opacity: 0; } }

.pulse-dot::after {
  content: '';
  position: absolute; inset: 0;
  border-radius: 50%;
  background: currentColor;
  animation: pulse-ring 2s ease-out infinite;
}

/* Card */
.card {
  background: linear-gradient(180deg, rgba(255,255,255,0.025), rgba(255,255,255,0.005));
  border: 1px solid var(--line);
  border-radius: 18px;
  padding: 28px;
  position: relative;
  overflow: hidden;
  transition: border-color 0.2s ease, transform 0.2s ease;
}
.card:hover {
  border-color: var(--accent-line);
}
.card .reveal {
  max-height: 0;
  opacity: 0;
  overflow: hidden;
  transition: max-height 0.4s ease, opacity 0.3s ease, margin-top 0.3s ease;
}
.card:hover .reveal {
  max-height: 200px;
  opacity: 1;
  margin-top: 14px;
}

/* Range scrubber on dashboard */
.spark { display: block; width: 100%; height: 100%; }

/* Logo strip animation */
.logo-strip {
  display: flex;
  width: max-content;
  animation: ticker 40s linear infinite;
}

/* form */
input.input, textarea.input {
  width: 100%;
  background: rgba(255,255,255,0.03);
  border: 1px solid var(--line);
  border-radius: 12px;
  padding: 14px 16px;
  color: #fff;
  font-family: inherit;
  font-size: 15px;
  outline: none;
  transition: border-color 0.15s ease;
}
input.input:focus, textarea.input:focus { border-color: var(--accent-line); }
input.input::placeholder, textarea.input::placeholder { color: var(--text-3); }

/* nav */
.navbar {
  position: sticky; top: 0; z-index: 50;
  backdrop-filter: blur(14px);
  background: rgba(0,0,0,0.55);
  border-bottom: 1px solid var(--line);
}
.nav-link {
  color: var(--text-1);
  font-size: 14px;
  font-weight: 500;
  text-decoration: none;
  transition: color 0.15s;
}
.nav-link:hover { color: var(--text-0); }

/* hero animated fingerprint */
.fingerprint-stage {
  position: relative;
  aspect-ratio: 1;
  width: 100%;
  max-width: 520px;
  margin-left: auto;
}
.fingerprint-stage svg { width: 100%; height: 100%; display: block; }
.fp-ring {
  position: absolute; inset: 8%;
  border-radius: 50%;
  border: 1px solid var(--accent-line);
  opacity: 0.4;
}
.fp-scan-line {
  position: absolute; left: 12%; right: 12%;
  height: 2px;
  background: linear-gradient(90deg, transparent, var(--accent), transparent);
  filter: drop-shadow(0 0 6px var(--accent));
  animation: fp-scan 3.6s ease-in-out infinite;
}

/* Stat block */
.stat-grid {
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  gap: 1px;
  background: var(--line);
  border: 1px solid var(--line);
  border-radius: 16px;
  overflow: hidden;
}
.stat-grid > div {
  background: var(--bg-0);
  padding: 22px 24px;
}
@media (max-width: 720px) {
  .stat-grid { grid-template-columns: repeat(2, 1fr); }
}

/* Dashboard mock */
.dash {
  background: linear-gradient(180deg, #0a0a0c, #060608);
  border: 1px solid var(--line);
  border-radius: 18px;
  overflow: hidden;
  box-shadow: 0 40px 80px -20px rgba(0,0,0,0.6), 0 0 0 1px rgba(255,255,255,0.02) inset;
}
.dash-header {
  display: flex; align-items: center; justify-content: space-between;
  padding: 14px 18px;
  border-bottom: 1px solid var(--line);
  background: rgba(255,255,255,0.015);
}
.dash-dots { display: flex; gap: 6px; }
.dash-dots span { width: 10px; height: 10px; border-radius: 50%; background: rgba(255,255,255,0.1); }

/* placeholder */
.placeholder {
  background:
    repeating-linear-gradient(135deg, rgba(255,255,255,0.025) 0 8px, transparent 8px 16px),
    rgba(255,255,255,0.02);
  border: 1px dashed var(--line-2);
  display: flex; align-items: center; justify-content: center;
  color: var(--text-3);
  font-family: 'Red Hat Mono', monospace;
  font-size: 11px;
  letter-spacing: 0.08em;
  text-transform: uppercase;
  border-radius: 12px;
}

/* Marquee mask */
.fade-mask {
  -webkit-mask-image: linear-gradient(90deg, transparent, #000 12%, #000 88%, transparent);
  mask-image: linear-gradient(90deg, transparent, #000 12%, #000 88%, transparent);
}

/* Section variations */
.bg-navy { background: var(--bg-2); }
.bg-pure { background: var(--bg-0); }

/* tiny avatar dot grid for personas */
.persona-dot {
  width: 36px; height: 36px;
  border-radius: 50%;
  background: linear-gradient(135deg, #6f15c8, #2a2a2a);
  display: inline-flex; align-items: center; justify-content: center;
  font-family: 'Red Hat Mono', monospace;
  font-size: 11px; color: #fff;
  border: 2px solid var(--bg-0);
}
