:root {
  /* Microblink brand palette */
  --c-cobalt:        #0062F2;   /* primary action / accent (Microblink Cobalt) */
  --c-cobalt-soft:   #3D8AF7;   /* lighter cobalt for hover / gradients */
  --c-cobalt-deep:   #0048C2;   /* darker cobalt for active states */
  --c-lime:          #DFFF00;   /* Microblink Lime - bright accent */
  --c-lime-soft:     #ECFF66;
  --c-deep-blue:     #142641;   /* Microblink Deep Blue - body text on light, surface on dark */
  --c-deep-blue-2:   #0A1A30;   /* deeper navy for hero / sections */
  --c-deep-blue-3:   #1E3253;   /* surface highlight on dark */

  /* Aliases kept for backwards compatibility with existing class names */
  --c-navy:    var(--c-deep-blue-2);
  --c-navy-2:  var(--c-deep-blue-3);
  --c-cyan:    var(--c-cobalt);
  --c-cyan-soft: var(--c-cobalt-soft);
  --c-amber:   var(--c-lime);

  --c-paper:   #F8FAFC;
  --c-mist:    #EEF4FF;          /* very light cobalt tint, used as section bg */
  --c-slate:   #94A3B8;
  --c-slate-2: #475569;
  --shadow-card:        0 10px 30px -10px rgba(20, 38, 65, 0.25);
  --shadow-card-strong: 0 25px 50px -12px rgba(20, 38, 65, 0.45);
  --shadow-cobalt:      0 10px 28px -10px rgba(0, 98, 242, 0.55);
  --shadow-lime:        0 10px 28px -10px rgba(223, 255, 0, 0.55);
}

html { scroll-behavior: smooth; }

body {
  font-family: 'Satoshi', 'Inter', system-ui, -apple-system, Segoe UI, Roboto, sans-serif;
  color: var(--c-deep-blue);
  background-color: var(--c-paper);
  -webkit-font-smoothing: antialiased;
}

.font-mono { font-family: 'JetBrains Mono', ui-monospace, SFMono-Regular, Menlo, monospace; }
.font-display { font-family: 'Satoshi', 'Inter', system-ui, sans-serif; }

/* Brand gradient text - Microblink cobalt -> lime sweep */
.brand-gradient {
  background: linear-gradient(90deg, #76A8FB 0%, #DFFF00 100%);
  -webkit-background-clip: text;
  background-clip: text;
  color: transparent;
}

/* Microblink-style wordmark (used in header) */
.wordmark {
  font-family: 'Satoshi', 'Inter', system-ui, sans-serif;
  font-weight: 900;
  letter-spacing: 0.16em;
  text-transform: uppercase;
  font-size: 0.95rem;
  line-height: 1;
}

/* Hero - Microblink cobalt -> lime blob gradient on Deep Blue */
.hero {
  position: relative;
  background:
    linear-gradient(180deg, rgba(10,26,48,0.78) 0%, rgba(10,26,48,0.88) 100%),
    url('../img/hero-pattern.svg') center/cover no-repeat;
  background-color: var(--c-deep-blue-2);
  color: var(--c-paper);
  overflow: hidden;
  isolation: isolate;
}
.hero::before {
  content: '';
  position: absolute;
  inset: -2px;
  background:
    radial-gradient(45% 35% at 18% 25%, rgba(0,98,242,0.45) 0%, rgba(0,98,242,0) 65%),
    radial-gradient(50% 40% at 88% 80%, rgba(223,255,0,0.22) 0%, rgba(223,255,0,0) 65%);
  pointer-events: none;
}
.hero::after {
  content: '';
  position: absolute;
  inset: 0;
  background: linear-gradient(180deg, transparent 70%, var(--c-paper) 100%);
  pointer-events: none;
}

/* Holographic shimmer accent */
.shimmer {
  background: linear-gradient(110deg,
    rgba(0,98,242,0) 0%,
    rgba(0,98,242,0.55) 30%,
    rgba(118,168,251,0.55) 50%,
    rgba(223,255,0,0.65) 70%,
    rgba(0,98,242,0) 100%);
  background-size: 300% 100%;
  animation: shimmerMove 6s linear infinite;
  -webkit-background-clip: text;
  background-clip: text;
  color: transparent;
}
@keyframes shimmerMove {
  0% { background-position: 0% 50%; }
  100% { background-position: 300% 50%; }
}

/* MRZ-style strip */
.mrz {
  font-family: 'JetBrains Mono', monospace;
  letter-spacing: 0.18em;
  color: var(--c-lime);
  background: rgba(10,26,48,0.55);
  border-top: 1px solid rgba(0,98,242,0.35);
  border-bottom: 1px solid rgba(0,98,242,0.35);
  padding: 0.6rem 0;
  white-space: nowrap;
  overflow: hidden;
  position: relative;
}
.mrz span { display: inline-block; padding-right: 3rem; }

/* Right-to-left scrolling track (seamless via duplicated content) */
.mrz-track {
  display: inline-block;
  white-space: nowrap;
  will-change: transform;
  animation: mrzScroll 45s linear infinite;
}
.mrz:hover .mrz-track { animation-play-state: paused; }

@keyframes mrzScroll {
  from { transform: translate3d(0, 0, 0); }
  to   { transform: translate3d(-50%, 0, 0); }
}

/* Subtle scanline overlay to reinforce the "scanning" feel */
.mrz::after {
  content: "";
  position: absolute;
  inset: 0;
  pointer-events: none;
  background: linear-gradient(
    90deg,
    rgba(10,26,48,0.85) 0%,
    rgba(10,26,48,0) 12%,
    rgba(10,26,48,0) 88%,
    rgba(10,26,48,0.85) 100%
  );
}

@media (prefers-reduced-motion: reduce) {
  .mrz-track { animation: none; }
}

/* Section heading */
.section-eyebrow {
  font-family: 'JetBrains Mono', monospace;
  font-size: 0.75rem;
  letter-spacing: 0.3em;
  text-transform: uppercase;
  color: var(--c-lime);
}
.section-eyebrow.on-light { color: var(--c-cobalt); }
.section-eyebrow.on-light::before,
.section-eyebrow::before {
  content: '// ';
  opacity: 0.7;
}

/* Cards */
.card {
  background: #fff;
  border-radius: 1rem;
  padding: 1.5rem;
  box-shadow: var(--shadow-card);
  border: 1px solid #E2E8F0;
  transition: transform 180ms ease, box-shadow 180ms ease;
}
.card:hover { transform: translateY(-2px); box-shadow: var(--shadow-card-strong); }

.card-dark {
  background:
    radial-gradient(140% 90% at 100% 0%, rgba(0,98,242,0.18) 0%, rgba(0,98,242,0) 55%),
    radial-gradient(120% 90% at 0% 100%, rgba(223,255,0,0.10) 0%, rgba(223,255,0,0) 55%),
    linear-gradient(160deg, var(--c-deep-blue-2) 0%, var(--c-deep-blue) 100%);
  color: var(--c-paper);
  border: 1px solid rgba(0,98,242,0.35);
}

/* Stat tile */
.stat-number {
  font-family: 'Satoshi', 'Inter', system-ui, sans-serif;
  font-size: 2.75rem;
  font-weight: 900;
  background: linear-gradient(90deg, var(--c-cobalt) 0%, #76A8FB 100%);
  -webkit-background-clip: text;
  background-clip: text;
  color: transparent;
  line-height: 1;
  letter-spacing: -0.02em;
}

/* Timeline */
.timeline {
  position: relative;
  padding-left: 2.5rem;
  --c-timeline-bg: #F1F5F9; /* matches the section bg-slate-100 */
  --timeline-axis: 1rem;
}
.timeline::before {
  content: '';
  position: absolute;
  left: var(--timeline-axis);
  margin-left: -1px;
  top: 0.5rem;
  bottom: 0.5rem;
  width: 2px;
  background: linear-gradient(180deg, var(--c-cobalt), rgba(0,98,242,0.15));
}
.timeline-item { position: relative; padding-bottom: 2rem; }
.timeline-item:last-child { padding-bottom: 0; }
.timeline-dot {
  position: absolute;
  left: calc(var(--timeline-axis) - 2.5rem);
  margin-left: -0.5rem;
  top: 0.5rem;
  width: 1rem;
  height: 1rem;
  border-radius: 999px;
  background: var(--c-cobalt);
  box-shadow:
    0 0 0 4px var(--c-timeline-bg),
    0 0 0 7px rgba(0,98,242,0.22);
}
.timeline-item.is-key .timeline-dot {
  background: var(--c-lime);
  box-shadow:
    0 0 0 4px var(--c-timeline-bg),
    0 0 0 7px rgba(223,255,0,0.45);
}
.timeline-date {
  font-family: 'JetBrains Mono', monospace;
  font-size: 0.85rem;
  color: var(--c-slate-2);
  letter-spacing: 0.05em;
}

/* Comparison table */
.cmp {
  width: 100%;
  border-collapse: separate;
  border-spacing: 0;
  font-size: 0.92rem;
}
.cmp th, .cmp td {
  text-align: left;
  padding: 0.85rem 1rem;
  border-bottom: 1px solid #E2E8F0;
  vertical-align: top;
}
.cmp thead th {
  background: var(--c-deep-blue);
  color: var(--c-paper);
  font-weight: 600;
  letter-spacing: 0.04em;
}
.cmp thead th:first-child { border-top-left-radius: 0.75rem; }
.cmp thead th:last-child  { border-top-right-radius: 0.75rem; }
.cmp tr:last-child td { border-bottom: none; }
.cmp tr:last-child td:first-child { border-bottom-left-radius: 0.75rem; }
.cmp tr:last-child td:last-child  { border-bottom-right-radius: 0.75rem; }
.cmp .ours {
  background: linear-gradient(0deg, rgba(0,98,242,0.07), rgba(0,98,242,0.07));
}
.cmp .ours-head {
  background: linear-gradient(160deg, var(--c-deep-blue) 0%, #0E2547 100%) !important;
  color: var(--c-lime) !important;
}
.cmp-wrap { overflow-x: auto; border-radius: 0.75rem; box-shadow: var(--shadow-card); background: #fff; }

/* Buttons */
.btn {
  display: inline-flex;
  align-items: center;
  gap: 0.5rem;
  padding: 0.85rem 1.5rem;
  border-radius: 999px;
  font-weight: 700;
  font-size: 0.95rem;
  transition: transform 120ms ease, box-shadow 120ms ease, background-color 120ms ease, color 120ms ease;
}
.btn:hover { transform: translateY(-1px); }
.btn-primary {
  background: var(--c-cobalt);
  color: #fff;
  box-shadow: var(--shadow-cobalt);
}
.btn-primary:hover { background: var(--c-cobalt-soft); }
.btn-lime {
  background: var(--c-lime);
  color: var(--c-deep-blue);
  box-shadow: var(--shadow-lime);
}
.btn-lime:hover { background: var(--c-lime-soft); }
.btn-ghost {
  background: rgba(255,255,255,0.06);
  color: var(--c-paper);
  border: 1px solid rgba(255,255,255,0.25);
}
.btn-ghost:hover { background: rgba(255,255,255,0.12); }
.btn-dark {
  background: var(--c-deep-blue);
  color: var(--c-paper);
}
.btn-dark:hover { background: var(--c-deep-blue-3); }

/* Pill */
.pill {
  display: inline-flex;
  align-items: center;
  gap: 0.4rem;
  padding: 0.3rem 0.75rem;
  border-radius: 999px;
  font-size: 0.75rem;
  font-weight: 600;
  letter-spacing: 0.04em;
  background: rgba(0,98,242,0.18);
  color: #BFD7FE;
  border: 1px solid rgba(0,98,242,0.45);
}
.pill-amber, .pill-lime {
  background: rgba(223,255,0,0.14);
  color: var(--c-lime);
  border-color: rgba(223,255,0,0.45);
}
.pill-light {
  background: rgba(255,255,255,0.10);
  color: var(--c-paper);
  border-color: rgba(255,255,255,0.25);
}

/* Nav */
.nav-link {
  font-size: 0.9rem;
  font-weight: 500;
  color: rgba(248,250,252,0.72);
  transition: color 120ms ease;
}
.nav-link:hover { color: #fff; }

/* Sponsor placeholder boxes */
.placeholder-tile {
  border: 1.5px dashed #94A3B8;
  background: repeating-linear-gradient(45deg, #F1F5F9, #F1F5F9 10px, #E2E8F0 10px, #E2E8F0 20px);
  color: var(--c-slate-2);
  display: flex;
  align-items: center;
  justify-content: center;
  text-align: center;
  font-size: 0.8rem;
  border-radius: 0.75rem;
  padding: 1rem;
}

/* FAQ */
.faq details {
  border: 1px solid #E2E8F0;
  border-radius: 0.75rem;
  background: #fff;
  padding: 1rem 1.25rem;
  transition: box-shadow 120ms ease, border-color 120ms ease;
}
.faq details + details { margin-top: 0.75rem; }
.faq details[open] {
  box-shadow: var(--shadow-card);
  border-color: rgba(0,98,242,0.35);
}
.faq summary {
  cursor: pointer;
  font-weight: 600;
  list-style: none;
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 1rem;
}
.faq summary::-webkit-details-marker { display: none; }
.faq summary::after {
  content: '+';
  font-family: 'JetBrains Mono', monospace;
  color: var(--c-cobalt);
  font-weight: 700;
  font-size: 1.25rem;
  transition: transform 200ms ease;
}
.faq details[open] summary::after { transform: rotate(45deg); }
.faq details p {
  margin-top: 0.85rem;
  color: var(--c-slate-2);
  line-height: 1.6;
}

/* Reference list */
.refs {
  list-style: none;
  padding: 0;
  margin: 0;
  counter-reset: refcount;
}
.refs li {
  counter-increment: refcount;
  padding: 0.75rem 0 0.75rem 2.5rem;
  border-bottom: 1px solid #E2E8F0;
  position: relative;
  font-size: 0.92rem;
  line-height: 1.55;
  color: var(--c-slate-2);
}
.refs li::before {
  content: '[' counter(refcount) ']';
  position: absolute;
  left: 0;
  top: 0.75rem;
  font-family: 'JetBrains Mono', monospace;
  color: var(--c-cobalt);
  font-weight: 600;
}
.refs li:last-child { border-bottom: none; }
.refs a { color: var(--c-deep-blue); text-decoration: underline; text-decoration-color: rgba(0,98,242,0.5); }
.refs a:hover { text-decoration-color: var(--c-cobalt); }

/* Selection color */
::selection { background: var(--c-lime); color: var(--c-deep-blue); }

/* Microblink-style soft surface (optional, for blob backgrounds) */
.surface-mb-soft {
  background:
    radial-gradient(35% 60% at 12% 50%, rgba(0,98,242,0.18) 0%, rgba(0,98,242,0) 55%),
    radial-gradient(35% 60% at 88% 50%, rgba(223,255,0,0.18) 0%, rgba(223,255,0,0) 55%),
    var(--c-paper);
}

/* Mobile nav */
@media (max-width: 767px) {
  .nav-mobile { display: none; }
  .nav-mobile.open { display: block; }
}
