/* ============================================
   VENN TECHNOLOGY — Design System
   ============================================ */

:root {
  --ink: #0B1220;
  --ink-soft: #131D33;
  --paper: #F5F6F2;
  --surface: #FFFFFF;
  --teal: #17B8A6;
  --teal-dim: #0E8E80;
  --amber: #E8A33D;
  --navy-text: #10192B;
  --slate: #5B6472;
  --line: #E1E2DC;
  --line-dark: #223052;

  --font-display: 'Space Grotesk', sans-serif;
  --font-body: 'Public Sans', sans-serif;
  --font-mono: 'IBM Plex Mono', monospace;
}

* { box-sizing: border-box; }

html { scroll-behavior: smooth; }

@media (prefers-reduced-motion: reduce) {
  html { scroll-behavior: auto; }
  *, *::before, *::after {
    animation-duration: 0.01ms !important;
    animation-iteration-count: 1 !important;
    transition-duration: 0.01ms !important;
    scroll-behavior: auto !important;
  }
}

body {
  margin: 0;
  font-family: var(--font-body);
  background: var(--paper);
  color: var(--navy-text);
  -webkit-font-smoothing: antialiased;
}

h1, h2, h3, h4, .font-display {
  font-family: var(--font-display);
  letter-spacing: -0.02em;
}

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

:focus-visible {
  outline: 2px solid var(--teal);
  outline-offset: 3px;
}

/* ---------- Layout helpers ---------- */
.wrap {
  max-width: 1200px;
  margin: 0 auto;
  padding-left: 24px;
  padding-right: 24px;
}

.section { padding: 96px 0; }
@media (max-width: 768px) {
  .section { padding: 64px 0; }
}

/* ---------- Nav ---------- */
.site-header {
  position: sticky;
  top: 0;
  z-index: 50;
  background: rgba(11, 18, 32, 0.92);
  backdrop-filter: blur(10px);
  border-bottom: 1px solid var(--line-dark);
}

.nav-link {
  color: #C7CEDE;
  font-family: var(--font-body);
  font-weight: 500;
  font-size: 15px;
  transition: color 0.2s ease;
  position: relative;
}
.nav-link:hover, .nav-link.active { color: #FFFFFF; }
.nav-link.active::after {
  content: "";
  position: absolute;
  left: 0; right: 0; bottom: -6px;
  height: 2px;
  background: var(--teal);
}

/* ---------- Buttons ---------- */
.btn {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  font-family: var(--font-display);
  font-weight: 600;
  font-size: 15px;
  padding: 13px 26px;
  border-radius: 4px;
  transition: transform 0.18s ease, box-shadow 0.18s ease, background 0.18s ease;
  cursor: pointer;
  border: none;
}
.btn-primary {
  background: var(--teal);
  color: var(--ink);
}
.btn-primary:hover {
  transform: translateY(-2px);
  box-shadow: 0 8px 24px rgba(23, 184, 166, 0.35);
}
.btn-outline {
  background: transparent;
  color: var(--paper);
  border: 1.5px solid rgba(245, 246, 242, 0.35);
}
.btn-outline:hover {
  border-color: var(--teal);
  color: var(--teal);
}
.btn-dark {
  background: var(--ink);
  color: var(--paper);
}
.btn-dark:hover {
  transform: translateY(-2px);
  box-shadow: 0 8px 24px rgba(11, 18, 32, 0.25);
}

/* ---------- Eyebrow / labels ---------- */
.eyebrow {
  font-family: var(--font-mono);
  font-size: 12.5px;
  letter-spacing: 0.14em;
  text-transform: uppercase;
  color: var(--teal-dim);
  display: inline-flex;
  align-items: center;
  gap: 8px;
}
.eyebrow::before {
  content: "";
  width: 7px;
  height: 7px;
  border-radius: 50%;
  background: var(--teal);
}

/* ---------- Cards ---------- */
.card {
  background: var(--surface);
  border: 1px solid var(--line);
  border-radius: 8px;
  transition: transform 0.25s ease, box-shadow 0.25s ease, border-color 0.25s ease;
}
.card:hover {
  transform: translateY(-4px);
  box-shadow: 0 16px 40px rgba(16, 25, 43, 0.08);
  border-color: var(--teal);
}

/* ---------- Venn signature ---------- */
.venn-wrap {
  position: relative;
  width: 100%;
  max-width: 520px;
  aspect-ratio: 1 / 1;
  margin: 0 auto;
}
.venn-circle {
  position: absolute;
  border-radius: 50%;
  mix-blend-mode: screen;
  display: flex;
  align-items: center;
  justify-content: center;
  transition: transform 0.6s cubic-bezier(.16,1,.3,1), opacity 0.4s ease;
  cursor: default;
}
.venn-label {
  font-family: var(--font-mono);
  font-size: 12px;
  letter-spacing: 0.08em;
  text-transform: uppercase;
  color: #fff;
  text-align: center;
  padding: 0 12px;
  opacity: 0.85;
  pointer-events: none;
}
.venn-center {
  position: absolute;
  top: 50%; left: 50%;
  transform: translate(-50%, -50%);
  text-align: center;
  z-index: 5;
  pointer-events: none;
}
.venn-center .name {
  font-family: var(--font-display);
  font-weight: 700;
  font-size: 22px;
  color: #fff;
  letter-spacing: -0.01em;
}
.venn-center .sub {
  font-family: var(--font-mono);
  font-size: 10.5px;
  color: var(--teal);
  letter-spacing: 0.1em;
  margin-top: 2px;
}
.venn-group:hover .venn-circle { opacity: 0.4; }
.venn-group .venn-circle:hover { opacity: 0.85 !important; transform: scale(1.05); z-index: 3; }
.venn-group .venn-circle:hover .venn-label { opacity: 1; }

/* ---------- Stat block ---------- */
.stat-num {
  font-family: var(--font-display);
  font-weight: 700;
  font-size: 48px;
  color: var(--ink);
  line-height: 1;
}
.stat-num .unit { color: var(--teal-dim); }

/* ---------- Scroll reveal ---------- */
.reveal {
  opacity: 0;
  transform: translateY(18px);
  transition: opacity 0.7s cubic-bezier(.16,1,.3,1), transform 0.7s cubic-bezier(.16,1,.3,1);
}
.reveal.is-visible {
  opacity: 1;
  transform: translateY(0);
}

/* ---------- Dot grid texture ---------- */
.dot-grid {
  background-image: radial-gradient(rgba(255,255,255,0.09) 1px, transparent 1px);
  background-size: 22px 22px;
}
.dot-grid-light {
  background-image: radial-gradient(rgba(16,25,43,0.08) 1px, transparent 1px);
  background-size: 22px 22px;
}

/* ---------- Footer ---------- */
.site-footer {
  background: var(--ink);
  color: #A8B1C4;
}
.site-footer a { color: #D6DBE6; }
.site-footer a:hover { color: var(--teal); }

/* ---------- Marquee (clients) ---------- */
.marquee-track {
  display: flex;
  gap: 64px;
  animation: marquee 28s linear infinite;
  width: max-content;
}
@keyframes marquee {
  from { transform: translateX(0); }
  to { transform: translateX(-50%); }
}

/* ---------- Mobile nav ---------- */
#mobile-menu { display: none; }
#mobile-menu.open { display: block; }

/* ---------- Timeline (Deckstream) ---------- */
.tl-line {
  position: absolute;
  left: 15px;
  top: 0;
  bottom: 0;
  width: 2px;
  background: var(--line);
}
.tl-dot {
  width: 32px; height: 32px;
  border-radius: 50%;
  background: var(--ink);
  border: 3px solid var(--teal);
  flex-shrink: 0;
}

/* ---------- Badge ---------- */
.pill {
  font-family: var(--font-mono);
  font-size: 11.5px;
  letter-spacing: 0.05em;
  padding: 5px 11px;
  border-radius: 100px;
  border: 1px solid var(--line);
  color: var(--slate);
}

/* obfuscated email reveal */
.email-link { cursor: pointer; }
