/* ==========================================================================
   MetricInk — Landing Page
   Aesthetic: "Signal Room" — a dark trading-floor / command-center read on
   social analytics. Tall industrial display type for big numbers, warm
   mono labels for data, acid-lime for growth signals, ultraviolet for
   brand/AI moments. Grain + glow for atmosphere, no glass morphism.
   ========================================================================== */

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

:root {
  /* Surfaces */
  --bg: #06070a;
  --bg-1: #0a0c11;
  --bg-2: #0f121a;
  --surface: #12151d;
  --surface-high: #1a1f2b;
  --border: rgba(238, 242, 247, 0.09);
  --border-strong: rgba(238, 242, 247, 0.16);

  /* Text */
  --ink: #eef1f6;
  --ink-dim: #9aa2b2;
  --ink-faint: #5c6377;

  /* Accents */
  --violet: #8a5cff;
  --violet-soft: #c9b6ff;
  --lime: #d4ff3f;
  --lime-dim: #a8cc2f;
  --amber: #ffb84d;
  --red: #ff6b6b;

  /* Type */
  --f-display: 'Big Shoulders Display', sans-serif;
  --f-body: 'Manrope', sans-serif;
  --f-mono: 'JetBrains Mono', monospace;

  --container: 1280px;
  --gutter: clamp(20px, 5vw, 64px);

  --ease: cubic-bezier(0.16, 1, 0.3, 1);
}

/* ---------- Reset ---------- */
*, *::before, *::after { box-sizing: border-box; margin: 0; padding: 0; }
html { scroll-behavior: smooth; }
body {
  background: var(--bg);
  color: var(--ink);
  font-family: var(--f-body);
  font-size: 16px;
  line-height: 1.6;
  -webkit-font-smoothing: antialiased;
  overflow-x: hidden;
  position: relative;
}
img { max-width: 100%; display: block; }
a { color: inherit; text-decoration: none; }
ul { list-style: none; }
button { font: inherit; cursor: pointer; }

::selection { background: var(--lime); color: #06070a; }

/* Grain overlay */
body::before {
  content: '';
  position: fixed;
  inset: 0;
  z-index: 999;
  pointer-events: none;
  opacity: 0.05;
  mix-blend-mode: overlay;
  background-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' width='120' height='120'%3E%3Cfilter id='n'%3E%3CfeTurbulence type='fractalNoise' baseFrequency='0.9' numOctaves='2' stitchTiles='stitch'/%3E%3C/filter%3E%3Crect width='100%25' height='100%25' filter='url(%23n)'/%3E%3C/svg%3E");
}

/* ---------- Layout helpers ---------- */
.wrap {
  max-width: var(--container);
  margin: 0 auto;
  padding-left: var(--gutter);
  padding-right: var(--gutter);
}
section { position: relative; }
.eyebrow {
  font-family: var(--f-mono);
  font-size: 12px;
  letter-spacing: 0.14em;
  text-transform: uppercase;
  color: var(--lime);
  display: inline-flex;
  align-items: center;
  gap: 10px;
}
.eyebrow::before {
  content: '';
  width: 6px;
  height: 6px;
  border-radius: 50%;
  background: var(--lime);
  box-shadow: 0 0 10px 2px rgba(212, 255, 63, 0.7);
}

/* ---------- Background atmosphere ---------- */
.glow-orb {
  position: absolute;
  border-radius: 50%;
  filter: blur(90px);
  pointer-events: none;
  z-index: 0;
}
.grid-lines {
  position: absolute;
  inset: 0;
  background-image:
    linear-gradient(to right, rgba(238,242,247,0.035) 1px, transparent 1px),
    linear-gradient(to bottom, rgba(238,242,247,0.035) 1px, transparent 1px);
  background-size: 64px 64px;
  mask-image: radial-gradient(ellipse 80% 60% at 50% 0%, black 40%, transparent 100%);
  pointer-events: none;
}

/* ---------- Buttons ---------- */
.btn {
  display: inline-flex;
  align-items: center;
  gap: 10px;
  font-family: var(--f-mono);
  font-size: 13px;
  font-weight: 600;
  letter-spacing: 0.04em;
  text-transform: uppercase;
  padding: 15px 26px;
  border-radius: 3px;
  border: 1px solid transparent;
  transition: transform 0.35s var(--ease), box-shadow 0.35s var(--ease), background 0.25s var(--ease), border-color 0.25s var(--ease);
  white-space: nowrap;
}
.btn-primary {
  background: var(--lime);
  color: #0a0c05;
  box-shadow: 0 0 0 0 rgba(212,255,63,0);
}
.btn-primary:hover {
  transform: translateY(-3px);
  box-shadow: 0 14px 30px -10px rgba(212, 255, 63, 0.55);
}
.btn-ghost {
  background: transparent;
  border-color: var(--border-strong);
  color: var(--ink);
}
.btn-ghost:hover {
  border-color: var(--violet-soft);
  background: rgba(138, 92, 255, 0.08);
  transform: translateY(-2px);
}
.btn-block { width: 100%; justify-content: center; }

/* ==========================================================================
   Header / Nav
   ========================================================================== */
.site-header {
  position: fixed;
  top: 0; left: 0; right: 0;
  z-index: 100;
  padding: 18px 0;
  transition: background 0.4s var(--ease), border-color 0.4s var(--ease), padding 0.3s var(--ease);
  border-bottom: 1px solid transparent;
}
.site-header.is-scrolled {
  background: rgba(6, 7, 10, 0.82);
  backdrop-filter: none;
  border-bottom-color: var(--border);
  padding: 12px 0;
}
.nav-row {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 24px;
}
.brand {
  display: flex;
  align-items: center;
  gap: 10px;
  font-family: var(--f-display);
  font-weight: 700;
  font-size: 22px;
  letter-spacing: 0.01em;
}
.brand img { width: 26px; height: 26px; }
.brand span.tick { color: var(--lime); }

.nav-links {
  display: flex;
  gap: 34px;
  font-family: var(--f-mono);
  font-size: 12.5px;
  letter-spacing: 0.05em;
  text-transform: uppercase;
}
.nav-links a {
  position: relative;
  color: var(--ink-dim);
  transition: color 0.25s;
  padding: 4px 0;
}
.nav-links a::after {
  content: '';
  position: absolute;
  left: 0; right: 100%; bottom: -2px;
  height: 1px;
  background: var(--lime);
  transition: right 0.3s var(--ease);
}
.nav-links a:hover { color: var(--ink); }
.nav-links a:hover::after { right: 0; }

.nav-cta { display: flex; align-items: center; gap: 14px; }
.nav-toggle {
  display: none;
  background: none; border: none; color: var(--ink);
  width: 40px; height: 40px;
  flex-direction: column; align-items: center; justify-content: center; gap: 5px;
}
.nav-toggle span { width: 22px; height: 2px; background: var(--ink); transition: 0.3s; }

/* ==========================================================================
   Hero
   ========================================================================== */
.hero {
  padding: 168px 0 110px;
  overflow: hidden;
}
.hero .glow-orb.v { width: 620px; height: 620px; background: var(--violet); opacity: 0.22; top: -220px; right: -160px; }
.hero .glow-orb.l { width: 460px; height: 460px; background: var(--lime); opacity: 0.10; bottom: -180px; left: -120px; }

.hero-grid {
  position: relative;
  z-index: 1;
  display: grid;
  grid-template-columns: 1.15fr 0.85fr;
  gap: 48px;
  align-items: center;
}
.hero-copy .eyebrow { margin-bottom: 26px; }
.hero-title {
  font-family: var(--f-display);
  font-weight: 800;
  text-transform: uppercase;
  font-size: clamp(48px, 6.4vw, 92px);
  line-height: 0.92;
  letter-spacing: -0.01em;
}
.hero-title .accent { color: var(--lime); }
.hero-title em {
  font-style: normal;
  -webkit-text-stroke: 1.5px var(--ink);
  color: transparent;
}
.hero-sub {
  margin-top: 26px;
  max-width: 46ch;
  font-size: 18px;
  line-height: 1.65;
  color: var(--ink-dim);
}
.hero-actions {
  margin-top: 38px;
  display: flex;
  align-items: center;
  gap: 22px;
  flex-wrap: wrap;
}
.hero-actions .hint {
  font-family: var(--f-mono);
  font-size: 12px;
  color: var(--ink-faint);
}
.hero-meta {
  margin-top: 56px;
  display: flex;
  gap: 40px;
  flex-wrap: wrap;
}
.hero-meta .stat b {
  display: block;
  font-family: var(--f-display);
  font-size: 34px;
  font-weight: 700;
  color: var(--ink);
}
.hero-meta .stat span {
  font-family: var(--f-mono);
  font-size: 11px;
  letter-spacing: 0.08em;
  text-transform: uppercase;
  color: var(--ink-faint);
}

/* Hero visual: dashboard mock */
.hero-visual { position: relative; }
.panel {
  position: relative;
  background: linear-gradient(180deg, var(--surface), var(--bg-2));
  border: 1px solid var(--border);
  border-radius: 14px;
  padding: 22px;
  box-shadow: 0 40px 80px -30px rgba(0,0,0,0.7);
}
.panel-head {
  display: flex;
  align-items: center;
  justify-content: space-between;
  margin-bottom: 18px;
}
.panel-head .dots { display: flex; gap: 6px; }
.panel-head .dots i { width: 9px; height: 9px; border-radius: 50%; background: var(--border-strong); display: block; }
.panel-head .live {
  font-family: var(--f-mono);
  font-size: 10.5px;
  letter-spacing: 0.08em;
  color: var(--lime);
  display: flex; align-items: center; gap: 6px;
}
.panel-head .live::before { content: ''; width: 6px; height: 6px; border-radius: 50%; background: var(--lime); animation: pulse 1.8s infinite; }
@keyframes pulse { 0%,100%{opacity:1} 50%{opacity:0.25} }

.panel-grid {
  display: grid;
  grid-template-columns: repeat(2, 1fr);
  gap: 12px;
  margin-bottom: 14px;
}
.mini-card {
  background: rgba(255,255,255,0.02);
  border: 1px solid var(--border);
  border-radius: 8px;
  padding: 14px;
}
.mini-card .plat { font-family: var(--f-mono); font-size: 10px; letter-spacing: 0.06em; text-transform: uppercase; color: var(--ink-faint); display:flex; justify-content: space-between; }
.mini-card .val { font-family: var(--f-display); font-size: 26px; font-weight: 700; margin-top: 6px; }
.mini-card .delta { font-family: var(--f-mono); font-size: 11px; margin-top: 4px; }
.mini-card .delta.up { color: var(--lime); }
.mini-card .delta.down { color: var(--red); }

.chart-strip {
  background: rgba(255,255,255,0.02);
  border: 1px solid var(--border);
  border-radius: 8px;
  padding: 14px 14px 8px;
}
.chart-strip .label { font-family: var(--f-mono); font-size: 10px; text-transform: uppercase; letter-spacing: 0.06em; color: var(--ink-faint); margin-bottom: 10px; display:flex; justify-content: space-between; }
.chart-strip svg { width: 100%; height: 64px; display: block; }

.panel-float {
  position: absolute;
  right: -22px;
  bottom: -26px;
  background: var(--bg-1);
  border: 1px solid var(--border-strong);
  border-radius: 10px;
  padding: 12px 16px;
  display: flex;
  align-items: center;
  gap: 10px;
  box-shadow: 0 24px 50px -20px rgba(0,0,0,0.8);
}
.panel-float .ico {
  width: 30px; height: 30px; border-radius: 7px;
  background: rgba(138,92,255,0.18);
  display: flex; align-items: center; justify-content: center;
  color: var(--violet-soft);
  font-family: var(--f-mono);
  font-size: 13px;
}
.panel-float b { font-family: var(--f-display); font-size: 15px; display: block; }
.panel-float span { font-family: var(--f-mono); font-size: 10px; color: var(--ink-faint); }

/* ==========================================================================
   Marquee (platform ticker)
   ========================================================================== */
.marquee-band {
  border-top: 1px solid var(--border);
  border-bottom: 1px solid var(--border);
  background: var(--bg-1);
  padding: 20px 0;
  overflow: hidden;
}
.marquee-track {
  display: flex;
  width: max-content;
  gap: 64px;
  animation: scroll-x 34s linear infinite;
}
.marquee-band:hover .marquee-track { animation-play-state: paused; }
@keyframes scroll-x { from { transform: translateX(0); } to { transform: translateX(-50%); } }
.marquee-track span {
  font-family: var(--f-mono);
  font-size: 13px;
  letter-spacing: 0.08em;
  text-transform: uppercase;
  color: var(--ink-faint);
  display: flex;
  align-items: center;
  gap: 12px;
  white-space: nowrap;
}
.marquee-track span::before { content: '◆'; color: var(--violet); font-size: 8px; }

/* ==========================================================================
   Section shared
   ========================================================================== */
.section { padding: 130px 0; }
.section-head {
  max-width: 780px;
  margin-bottom: 64px;
}
.section-head .eyebrow { margin-bottom: 20px; }
.section-title {
  font-family: var(--f-display);
  font-weight: 800;
  text-transform: uppercase;
  font-size: clamp(34px, 4.4vw, 58px);
  line-height: 0.98;
}
.section-title .accent { color: var(--violet-soft); }
.section-desc {
  margin-top: 20px;
  font-size: 17px;
  color: var(--ink-dim);
  max-width: 60ch;
}
.section-alt { background: var(--bg-1); border-top: 1px solid var(--border); border-bottom: 1px solid var(--border); }

/* ---------- Problem / agitation ---------- */
.problem-row {
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  gap: 1px;
  background: var(--border);
  border: 1px solid var(--border);
  border-radius: 12px;
  overflow: hidden;
}
.problem-cell {
  background: var(--bg);
  padding: 30px 26px;
}
.problem-cell .num {
  font-family: var(--f-mono);
  font-size: 11px;
  color: var(--ink-faint);
  letter-spacing: 0.08em;
}
.problem-cell h3 {
  font-family: var(--f-display);
  font-weight: 700;
  font-size: 24px;
  text-transform: uppercase;
  margin: 14px 0 10px;
}
.problem-cell p { color: var(--ink-dim); font-size: 14.5px; }

/* ---------- Bento feature grid ---------- */
.bento {
  display: grid;
  grid-template-columns: repeat(6, 1fr);
  gap: 18px;
}
.bento .card {
  grid-column: span 3;
  background: linear-gradient(165deg, var(--surface), var(--bg-1));
  border: 1px solid var(--border);
  border-radius: 14px;
  padding: 34px;
  position: relative;
  overflow: hidden;
  transition: border-color 0.3s var(--ease), transform 0.3s var(--ease);
}
.bento .card:hover { border-color: var(--border-strong); transform: translateY(-4px); }
.bento .card.wide { grid-column: span 4; }
.bento .card.narrow { grid-column: span 2; }
.bento .card.tall { grid-row: span 2; }
.card .tag {
  font-family: var(--f-mono);
  font-size: 10.5px;
  letter-spacing: 0.08em;
  text-transform: uppercase;
  color: var(--lime);
  display: inline-block;
  margin-bottom: 18px;
}
.card h3 {
  font-family: var(--f-display);
  font-size: 26px;
  font-weight: 700;
  text-transform: uppercase;
  line-height: 1.05;
  margin-bottom: 12px;
}
.card p { color: var(--ink-dim); font-size: 14.5px; line-height: 1.6; }
.card .glyph {
  position: absolute;
  right: 20px;
  top: 20px;
  font-family: var(--f-mono);
  font-size: 11px;
  color: var(--ink-faint);
  border: 1px solid var(--border-strong);
  border-radius: 20px;
  padding: 4px 10px;
}

.mini-bars { display:flex; align-items:flex-end; gap:6px; height: 60px; margin-top: 22px; }
.mini-bars i { flex:1; background: linear-gradient(180deg, var(--violet), rgba(138,92,255,0.15)); border-radius: 3px 3px 0 0; }

.ring-wrap { display:flex; align-items:center; gap: 22px; margin-top: 20px; }
.ring-wrap svg { flex-shrink: 0; }

/* ---------- How it works ---------- */
.steps {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 0;
  counter-reset: step;
}
.step {
  position: relative;
  padding: 0 30px 0 0;
  border-left: 1px solid var(--border);
  padding-left: 30px;
}
.step:first-child { border-left: none; padding-left: 0; }
.step .idx {
  font-family: var(--f-display);
  font-size: 64px;
  font-weight: 800;
  color: transparent;
  -webkit-text-stroke: 1.5px var(--border-strong);
  line-height: 1;
}
.step h3 {
  font-family: var(--f-display);
  font-size: 22px;
  text-transform: uppercase;
  font-weight: 700;
  margin: 18px 0 10px;
}
.step p { color: var(--ink-dim); font-size: 14.5px; }

/* ---------- Stats strip ---------- */
.stats-strip {
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  gap: 1px;
  background: var(--border);
  border-top: 1px solid var(--border);
  border-bottom: 1px solid var(--border);
}
.stat-block {
  background: var(--bg);
  padding: 50px 30px;
  text-align: left;
}
.stat-block .count {
  font-family: var(--f-display);
  font-weight: 800;
  font-size: clamp(38px, 4vw, 56px);
  color: var(--ink);
  display: flex;
  align-items: baseline;
  gap: 4px;
}
.stat-block .count .suffix { font-size: 0.5em; color: var(--lime); }
.stat-block .caption {
  margin-top: 10px;
  font-family: var(--f-mono);
  font-size: 11.5px;
  letter-spacing: 0.06em;
  text-transform: uppercase;
  color: var(--ink-faint);
}

/* ---------- Platform depth (dashboard preview) ---------- */
.depth-grid {
  display: grid;
  grid-template-columns: 0.9fr 1.1fr;
  gap: 56px;
  align-items: center;
}
.depth-list { display: flex; flex-direction: column; gap: 2px; }
.depth-item {
  display: flex;
  align-items: center;
  justify-content: space-between;
  padding: 20px 4px;
  border-bottom: 1px solid var(--border);
  cursor: pointer;
  transition: padding-left 0.3s var(--ease);
}
.depth-item:hover { padding-left: 12px; }
.depth-item:first-child { border-top: 1px solid var(--border); }
.depth-item .name { display: flex; align-items: center; gap: 14px; font-family: var(--f-display); font-size: 20px; text-transform: uppercase; font-weight: 700; }
.depth-item .name i { width: 8px; height: 8px; border-radius: 50%; background: var(--violet); display: block; }
.depth-item .status { font-family: var(--f-mono); font-size: 11px; color: var(--ink-faint); text-transform: uppercase; letter-spacing: 0.06em; }
.depth-item .status.live { color: var(--lime); }

.depth-visual {
  background: linear-gradient(160deg, var(--surface), var(--bg-1));
  border: 1px solid var(--border);
  border-radius: 16px;
  padding: 30px;
}
.depth-visual .head { display:flex; justify-content: space-between; align-items: baseline; margin-bottom: 20px; }
.depth-visual .head b { font-family: var(--f-display); font-size: 22px; text-transform: uppercase; }
.depth-visual .head span { font-family: var(--f-mono); font-size: 11px; color: var(--lime); }
.depth-visual svg { width: 100%; height: 180px; }

/* ---------- CTA banner ---------- */
.cta-banner {
  position: relative;
  border-radius: 24px;
  overflow: hidden;
  background: linear-gradient(135deg, #12081f 0%, #0a0c11 55%, #0e1206 100%);
  border: 1px solid var(--border-strong);
  padding: 90px 70px;
  text-align: center;
}
.cta-banner .glow-orb { top: -140px; left: 50%; transform: translateX(-50%); width: 500px; height: 300px; background: var(--violet); opacity: 0.3; }
.cta-banner h2 {
  position: relative; z-index: 1;
  font-family: var(--f-display);
  font-weight: 800;
  text-transform: uppercase;
  font-size: clamp(34px, 5vw, 60px);
  line-height: 1.02;
  max-width: 18ch;
  margin: 0 auto;
}
.cta-banner .section-desc { margin-left: auto; margin-right: auto; text-align: center; position: relative; z-index: 1; }

/* ---------- CTA actions ---------- */
.cta-actions {
  position: relative; z-index: 1;
  margin-top: 40px;
  display: flex;
  justify-content: center;
}

/* ==========================================================================
   Footer
   ========================================================================== */
.site-footer {
  border-top: 1px solid var(--border);
  padding: 70px 0 30px;
}
.footer-top {
  display: grid;
  grid-template-columns: 1.4fr repeat(3, 1fr);
  gap: 40px;
  padding-bottom: 50px;
}
.footer-brand .brand { margin-bottom: 16px; }
.footer-brand p { color: var(--ink-dim); font-size: 14px; max-width: 32ch; }
.footer-col h4 {
  font-family: var(--f-mono);
  font-size: 11px;
  letter-spacing: 0.08em;
  text-transform: uppercase;
  color: var(--ink-faint);
  margin-bottom: 18px;
}
.footer-col ul { display: flex; flex-direction: column; gap: 12px; }
.footer-col a { color: var(--ink-dim); font-size: 14px; transition: color 0.2s; }
.footer-col a:hover { color: var(--lime); }
.footer-bottom {
  border-top: 1px solid var(--border);
  padding-top: 26px;
  display: flex;
  justify-content: space-between;
  align-items: center;
  flex-wrap: wrap;
  gap: 12px;
  font-family: var(--f-mono);
  font-size: 11.5px;
  color: var(--ink-faint);
}

/* ==========================================================================
   Scroll-reveal
   ========================================================================== */
[data-animate] {
  opacity: 0;
  transform: translateY(28px);
  transition: opacity 0.8s var(--ease), transform 0.8s var(--ease);
}
[data-animate].is-visible { opacity: 1; transform: translateY(0); }
[data-animate="fade"] { transform: none; }

/* ==========================================================================
   Responsive
   ========================================================================== */
@media (max-width: 1024px) {
  .hero-grid { grid-template-columns: 1fr; }
  .hero-visual { max-width: 480px; }
  .problem-row { grid-template-columns: repeat(2, 1fr); }
  .depth-grid { grid-template-columns: 1fr; }
  .footer-top { grid-template-columns: 1fr 1fr; }
  .bento { grid-template-columns: repeat(2, 1fr); }
  .bento .card, .bento .card.wide, .bento .card.narrow { grid-column: span 1; }
}

@media (max-width: 720px) {
  .nav-links, .nav-cta .btn-ghost { display: none; }
  .nav-toggle { display: flex; }
  .hero { padding: 130px 0 70px; }
  .hero-meta { gap: 28px; }
  .steps { grid-template-columns: 1fr; gap: 40px; }
  .step { border-left: none; padding-left: 0; border-top: 1px solid var(--border); padding-top: 30px; }
  .step:first-child { border-top: none; padding-top: 0; }
  .stats-strip { grid-template-columns: repeat(2, 1fr); }
  .problem-row { grid-template-columns: 1fr; }
  .cta-banner { padding: 60px 26px; }
  .footer-top { grid-template-columns: 1fr; gap: 30px; }
  .section { padding: 90px 0; }
}
