/* Intelistor — design tokens */
:root {
  /* Brand — from logo gradient */
  --teal: #2BB8A9;
  --teal-bright: #3FD0BE;
  --teal-soft: #E6F7F4;
  --teal-dim: #1A8A7F;
  --blue-deep: #1B4A5C;
  --blue-ink: #0B2A36;
  --blue-night: #061921;

  /* Neutrals */
  --ink: #0E1820;
  --ink-2: #1F2A33;
  --slate-800: #283440;
  --slate-600: #4A5A68;
  --slate-500: #697785;
  --slate-400: #94A2B0;
  --slate-300: #C8D1D9;
  --slate-200: #E2E8EE;
  --slate-100: #F0F4F7;
  --slate-50:  #F8FAFB;
  --white: #FFFFFF;

  /* Semantic */
  --ok: #2BB8A9;
  --bad: #D85555;
  --warn: #E8A547;

  /* Type */
  --font-display: 'Sora', ui-sans-serif, system-ui, sans-serif;
  --font-body: 'Inter', ui-sans-serif, system-ui, sans-serif;
  --font-mono: 'JetBrains Mono', ui-monospace, monospace;

  /* Radii */
  --r-sm: 6px;
  --r-md: 10px;
  --r-lg: 16px;
  --r-xl: 22px;

  /* Shadows */
  --shadow-sm: 0 1px 2px rgba(11, 42, 54, 0.06), 0 1px 1px rgba(11,42,54,0.04);
  --shadow-md: 0 4px 14px rgba(11, 42, 54, 0.08), 0 2px 4px rgba(11,42,54,0.04);
  --shadow-lg: 0 20px 50px rgba(11, 42, 54, 0.12), 0 8px 16px rgba(11,42,54,0.06);

  /* Layout */
  --maxw: 1240px;
  --maxw-narrow: 960px;
  --gutter: 32px;
}

* { box-sizing: border-box; }

html, body {
  margin: 0;
  padding: 0;
  background: var(--white);
  color: var(--ink);
  font-family: var(--font-body);
  font-size: 16px;
  line-height: 1.55;
  -webkit-font-smoothing: antialiased;
  -moz-osx-font-smoothing: grayscale;
  scroll-behavior: smooth;
}

body { overflow-x: hidden; }

h1, h2, h3, h4 {
  font-family: var(--font-display);
  letter-spacing: -0.02em;
  color: var(--blue-ink);
  margin: 0;
  font-weight: 700;
  line-height: 1.1;
}

p { margin: 0; color: var(--slate-600); }
a { color: inherit; text-decoration: none; }
button { font-family: inherit; cursor: pointer; border: 0; background: none; }

.container {
  max-width: var(--maxw);
  margin: 0 auto;
  padding: 0 var(--gutter);
}

.narrow {
  max-width: var(--maxw-narrow);
  margin: 0 auto;
  padding: 0 var(--gutter);
}

/* Section spacing */
section { padding: 120px 0; position: relative; }
@media (max-width: 720px) { section { padding: 80px 0; } }

.eyebrow {
  font-family: var(--font-mono);
  font-size: 12px;
  font-weight: 500;
  letter-spacing: 0.14em;
  text-transform: uppercase;
  color: var(--teal);
  display: inline-flex;
  align-items: center;
  gap: 10px;
}
.eyebrow::before {
  content: '';
  width: 24px;
  height: 1px;
  background: var(--teal);
}

.section-title {
  font-size: clamp(32px, 4.2vw, 52px);
  font-weight: 700;
  letter-spacing: -0.025em;
  margin-top: 18px;
  max-width: 900px;
  text-wrap: balance;
}

.section-title em {
  font-style: normal;
  background: linear-gradient(135deg, var(--teal) 0%, var(--blue-deep) 100%);
  -webkit-background-clip: text;
  background-clip: text;
  color: transparent;
}

.section-kicker {
  max-width: 640px;
  margin-top: 20px;
  font-size: 18px;
  color: var(--slate-600);
  line-height: 1.6;
}

/* Dark section */
.dark {
  background: var(--blue-night);
  color: var(--slate-200);
}
.dark h1, .dark h2, .dark h3, .dark h4 { color: var(--white); }
.dark p { color: var(--slate-300); }
.dark .eyebrow { color: var(--teal-bright); }
.dark .eyebrow::before { background: var(--teal-bright); }
.dark .section-title em {
  background: linear-gradient(135deg, var(--teal-bright) 0%, #5FA9C2 100%);
  -webkit-background-clip: text;
  background-clip: text;
  color: transparent;
}

/* Grid ambient on dark sections */
.dark::before {
  content: '';
  position: absolute; inset: 0;
  background-image:
    linear-gradient(rgba(43, 184, 169, 0.06) 1px, transparent 1px),
    linear-gradient(90deg, rgba(43, 184, 169, 0.06) 1px, transparent 1px);
  background-size: 48px 48px;
  mask-image: radial-gradient(ellipse at center, black 30%, transparent 75%);
  -webkit-mask-image: radial-gradient(ellipse at center, black 30%, transparent 75%);
  pointer-events: none;
}
.dark > * { position: relative; z-index: 1; }

/* Buttons */
.btn {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  padding: 13px 22px;
  border-radius: var(--r-md);
  font-weight: 600;
  font-size: 15px;
  transition: transform .18s ease, background .2s, color .2s, border-color .2s;
  white-space: nowrap;
}
.btn:hover { transform: translateY(-1px); }
.btn:active { transform: translateY(0); }

.btn-primary {
  background: var(--blue-ink);
  color: white;
  border: 1px solid var(--blue-ink);
}
.btn-primary:hover { background: var(--ink); }

.btn-teal {
  background: linear-gradient(135deg, var(--teal) 0%, var(--blue-deep) 140%);
  color: white;
  border: 1px solid transparent;
  box-shadow: 0 4px 14px rgba(43, 184, 169, 0.3);
}
.btn-teal:hover { box-shadow: 0 6px 20px rgba(43, 184, 169, 0.4); }

.btn-ghost {
  background: transparent;
  color: var(--blue-ink);
  border: 1px solid var(--slate-300);
}
.btn-ghost:hover { border-color: var(--blue-ink); background: var(--slate-50); }

.dark .btn-ghost {
  color: white;
  border-color: rgba(255,255,255,0.2);
}
.dark .btn-ghost:hover { border-color: white; background: rgba(255,255,255,0.05); }

.btn-link {
  display: inline-flex; align-items: center; gap: 6px;
  color: var(--teal-dim);
  font-weight: 600;
  font-size: 15px;
  transition: gap .2s;
}
.btn-link:hover { gap: 10px; }

/* Cards */
.card {
  background: white;
  border: 1px solid var(--slate-200);
  border-radius: var(--r-lg);
  padding: 28px;
  transition: border-color .2s, transform .2s, box-shadow .2s;
}
.card:hover {
  border-color: var(--slate-300);
  box-shadow: var(--shadow-md);
}

.dark .card {
  background: rgba(255,255,255,0.03);
  border-color: rgba(255,255,255,0.08);
  backdrop-filter: blur(8px);
}
.dark .card:hover {
  border-color: rgba(43, 184, 169, 0.4);
  background: rgba(255,255,255,0.05);
}

/* Dividers */
.rule {
  height: 1px;
  background: var(--slate-200);
  width: 100%;
}

/* Tags / pills */
.pill {
  display: inline-flex;
  align-items: center;
  gap: 6px;
  padding: 6px 12px;
  border-radius: 999px;
  font-size: 12px;
  font-weight: 600;
  letter-spacing: 0.02em;
}
.pill-teal {
  background: var(--teal-soft);
  color: var(--teal-dim);
  border: 1px solid rgba(43, 184, 169, 0.2);
}
.pill-slate {
  background: var(--slate-100);
  color: var(--slate-600);
}
.pill-dot::before {
  content: '';
  width: 6px; height: 6px; border-radius: 50%;
  background: var(--teal);
}

/* Numbered list */
.num {
  font-family: var(--font-display);
  font-weight: 700;
  color: var(--teal);
  font-variant-numeric: tabular-nums;
  letter-spacing: -0.03em;
}

/* Utility */
.center { text-align: center; }
.stack-sm > * + * { margin-top: 8px; }
.stack > * + * { margin-top: 16px; }
.stack-lg > * + * { margin-top: 28px; }

.anim-in {
  opacity: 0;
  transform: translateY(20px);
  animation: fadeUp .7s ease forwards;
}
@keyframes fadeUp {
  to { opacity: 1; transform: translateY(0); }
}

/* Keyframes for data pulse */
@keyframes pulse-ring {
  0% { transform: scale(0.8); opacity: 0.8; }
  100% { transform: scale(2.2); opacity: 0; }
}
@keyframes dash {
  to { stroke-dashoffset: -100; }
}
@keyframes blink {
  0%, 100% { opacity: 1; }
  50% { opacity: 0.3; }
}

/* Link styles inside body copy */
.body-link {
  color: var(--teal-dim);
  border-bottom: 1px solid currentColor;
  transition: color .2s;
}
.body-link:hover { color: var(--blue-ink); }
