/* ============================================================
   Social Metric Hub — Marketing Site Design System
   Pulled from the product: indigo→blue gradients, navy ink,
   white surfaces, soft blue shadows. Display: Sora, Body: Inter.
   ============================================================ */

:root {
  /* Ink + text */
  --ink: #0e1b34;
  --ink-2: #1b2c4f;
  --muted: #59698a;
  --muted-2: #8593ad;

  /* Brand */
  --blue: #2458f4;
  --indigo: #6348f6;
  --violet: #7567ff;
  --sky: #2e90fa;

  /* Surfaces */
  --bg: #ffffff;
  --bg-soft: #f5f7fe;
  --bg-tint: #eef3ff;
  --bg-ink: #0b1530;
  --line: rgba(16, 30, 60, 0.10);
  --line-soft: rgba(16, 30, 60, 0.06);

  /* Accent chips */
  --green-bg: #e8f8ed;
  --green-ink: #18724a;
  --amber-bg: #fff3df;
  --amber-ink: #9a6212;
  --red-bg: #fdecec;
  --red-ink: #c0392b;

  /* Gradients */
  --grad-brand: linear-gradient(135deg, #7567ff 0%, #545cf8 52%, #2e90fa 100%);
  --grad-cta: linear-gradient(135deg, #2458f4 0%, #6348f6 100%);
  --grad-ink: linear-gradient(160deg, #12265a 0%, #0b1530 70%);
  --grad-soft: linear-gradient(180deg, #f8faff 0%, #eef3ff 100%);

  /* Shadows */
  --shadow-sm: 0 4px 14px rgba(33, 58, 120, 0.07);
  --shadow-md: 0 18px 42px rgba(40, 66, 120, 0.10);
  --shadow-lg: 0 34px 80px rgba(31, 52, 108, 0.16);
  --shadow-cta: 0 16px 34px rgba(36, 88, 244, 0.26);

  /* Geometry */
  --r-sm: 12px;
  --r-md: 18px;
  --r-lg: 26px;
  --r-xl: 34px;
  --maxw: 1200px;

  --font-display: "Sora", "Inter", system-ui, sans-serif;
  --font-body: "Inter", system-ui, -apple-system, sans-serif;
}

* { box-sizing: border-box; }

html { scroll-behavior: smooth; }

body {
  margin: 0;
  font-family: var(--font-body);
  color: var(--ink);
  background: var(--bg);
  -webkit-font-smoothing: antialiased;
  text-rendering: optimizeLegibility;
  line-height: 1.6;
}

img { max-width: 100%; display: block; }

a { color: inherit; text-decoration: none; }

h1, h2, h3, h4 {
  font-family: var(--font-display);
  color: var(--ink);
  margin: 0;
  letter-spacing: 0;
  line-height: 1.04;
  font-weight: 700;
  text-wrap: balance;
}

p { margin: 0; text-wrap: pretty; }

/* ---------- Layout ---------- */
.wrap {
  width: min(var(--maxw), calc(100% - 48px));
  margin-inline: auto;
}
.section { padding: 96px 0; }
.section-tight { padding: 64px 0; }

.eyebrow {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  font-family: var(--font-body);
  font-size: 12.5px;
  font-weight: 700;
  letter-spacing: 0.11em;
  text-transform: uppercase;
  color: var(--blue);
}
.eyebrow::before {
  content: "";
  width: 18px;
  height: 2px;
  border-radius: 2px;
  background: var(--grad-cta);
}

.section-head { max-width: 680px; }
.section-head.center { margin-inline: auto; text-align: center; }
.section-head.center .eyebrow { justify-content: center; }
.section-head h2 {
  font-size: clamp(30px, 4vw, 46px);
  margin: 16px 0 0;
}
.section-head p {
  margin-top: 18px;
  font-size: 18px;
  color: var(--muted);
  line-height: 1.7;
}

/* ---------- Buttons ---------- */
.btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 9px;
  font-family: var(--font-body);
  font-weight: 650;
  font-size: 15px;
  line-height: 1;
  padding: 14px 22px;
  border-radius: 13px;
  border: 1px solid transparent;
  cursor: pointer;
  transition: transform .16s ease, box-shadow .16s ease, background .16s ease, border-color .16s ease;
  white-space: nowrap;
}
.btn svg { width: 17px; height: 17px; }
.btn-primary {
  background: var(--grad-cta);
  color: #fff;
  box-shadow: var(--shadow-cta);
}
.btn-primary:hover { transform: translateY(-2px); box-shadow: 0 22px 44px rgba(36, 88, 244, 0.34); }
.btn-ghost {
  background: #fff;
  color: var(--ink);
  border-color: var(--line);
  box-shadow: var(--shadow-sm);
}
.btn-ghost:hover { transform: translateY(-2px); border-color: rgba(36,88,244,.35); }
.btn-ink {
  background: var(--ink);
  color: #fff;
}
.btn-ink:hover { transform: translateY(-2px); background: #16264a; }
.btn-white {
  background: #fff;
  color: var(--blue);
}
.btn-white:hover { transform: translateY(-2px); box-shadow: 0 18px 40px rgba(8,18,45,.28); }
.btn-lg { padding: 17px 28px; font-size: 16px; border-radius: 14px; }
.btn-link {
  display: inline-flex;
  align-items: center;
  gap: 7px;
  font-weight: 650;
  color: var(--blue);
  font-size: 15px;
}
.btn-link svg { width: 16px; height: 16px; transition: transform .16s ease; }
.btn-link:hover svg { transform: translateX(3px); }

/* ---------- Chips / pills ---------- */
.chip {
  display: inline-flex;
  align-items: center;
  gap: 7px;
  padding: 7px 13px;
  border-radius: 999px;
  font-size: 12.5px;
  font-weight: 700;
  letter-spacing: 0.01em;
}
.chip-green { background: var(--green-bg); color: var(--green-ink); }
.chip-amber { background: var(--amber-bg); color: var(--amber-ink); }
.chip-red { background: var(--red-bg); color: var(--red-ink); }
.chip-blue { background: var(--bg-tint); color: var(--blue); }
.dot { width: 7px; height: 7px; border-radius: 50%; background: currentColor; }

/* ---------- Header ---------- */
.site-header {
  position: sticky;
  top: 0;
  z-index: 60;
  background: rgba(255,255,255,0.82);
  backdrop-filter: saturate(180%) blur(14px);
  -webkit-backdrop-filter: saturate(180%) blur(14px);
  border-bottom: 1px solid transparent;
  transition: border-color .2s ease, box-shadow .2s ease;
}
.site-header.scrolled {
  border-color: var(--line-soft);
  box-shadow: 0 6px 22px rgba(20, 40, 90, 0.05);
}
.nav {
  height: 70px;
  display: flex;
  align-items: center;
  gap: 34px;
}
.brand {
  display: inline-flex;
  align-items: center;
  gap: 11px;
  font-family: var(--font-display);
  font-weight: 700;
  font-size: 17px;
  letter-spacing: 0;
  color: var(--ink);
}
.brand img { width: 34px; height: 34px; }
.nav-links {
  display: flex;
  align-items: center;
  gap: 6px;
  margin-left: 8px;
}
.nav-links a {
  padding: 8px 13px;
  border-radius: 9px;
  font-size: 14.5px;
  font-weight: 550;
  color: var(--ink-2);
  transition: background .14s ease, color .14s ease;
}
.nav-links a:hover { background: var(--bg-soft); color: var(--ink); }
.nav-links a.active { color: var(--blue); }
.nav-cta {
  margin-left: auto;
  display: flex;
  align-items: center;
  gap: 12px;
}
.nav-login {
  font-size: 14.5px;
  font-weight: 600;
  color: var(--ink-2);
  padding: 8px 6px;
}
.nav-login:hover { color: var(--blue); }
.nav-toggle { display: none; }

.mobile-menu {
  display: none;
  flex-direction: column;
  gap: 4px;
  padding: 12px 24px 20px;
  border-top: 1px solid var(--line-soft);
  background: #fff;
}
.mobile-menu.open { display: flex; }
.mobile-menu a {
  padding: 11px 8px;
  font-size: 15.5px;
  font-weight: 600;
  color: var(--ink-2);
  border-radius: 9px;
}
.mobile-menu a:hover { background: var(--bg-soft); }
.mobile-menu .btn { color: #fff; }

/* ---------- Footer ---------- */
.site-footer {
  background: var(--bg-ink);
  color: #c8d3ea;
  padding: 72px 0 36px;
}
.footer-grid {
  display: grid;
  grid-template-columns: 1.5fr repeat(4, 1fr);
  gap: 40px;
}
.footer-brand .brand { color: #fff; margin-bottom: 16px; }
.footer-brand p { color: #92a2c4; font-size: 14.5px; max-width: 280px; }
.footer-col h5 {
  font-family: var(--font-body);
  font-size: 12px;
  letter-spacing: 0.1em;
  text-transform: uppercase;
  color: #7e8eb2;
  margin: 0 0 16px;
  font-weight: 700;
}
.footer-col a {
  display: block;
  color: #c2cee6;
  font-size: 14.5px;
  padding: 6px 0;
  transition: color .14s ease;
}
.footer-col a:hover { color: #fff; }
.footer-bottom {
  margin-top: 52px;
  padding-top: 26px;
  border-top: 1px solid rgba(255,255,255,0.10);
  display: flex;
  justify-content: space-between;
  align-items: center;
  gap: 16px;
  flex-wrap: wrap;
  color: #8092b4;
  font-size: 13.5px;
}
.footer-badges { display: flex; gap: 10px; flex-wrap: wrap; }
.footer-badges span {
  padding: 6px 11px;
  border-radius: 8px;
  background: rgba(255,255,255,0.06);
  font-size: 12px;
  font-weight: 600;
  color: #aab8d6;
}

/* ---------- Generic cards ---------- */
.card {
  background: #fff;
  border: 1px solid var(--line);
  border-radius: var(--r-lg);
  box-shadow: var(--shadow-md);
}

/* ---------- Reveal on scroll ---------- */
.reveal {
  opacity: 0;
  transform: translateY(22px);
  transition: opacity .7s cubic-bezier(.2,.7,.2,1), transform .7s cubic-bezier(.2,.7,.2,1);
}
.reveal.in { opacity: 1; transform: none; }
@media (prefers-reduced-motion: reduce) {
  .reveal { opacity: 1; transform: none; transition: none; }
  html { scroll-behavior: auto; }
}

/* ---------- Mock UI primitives (product imagery) ---------- */
.mock {
  background: #fff;
  border-radius: 20px;
  border: 1px solid var(--line);
  box-shadow: var(--shadow-lg);
  overflow: hidden;
}
.mock-bar {
  height: 44px;
  display: flex;
  align-items: center;
  gap: 8px;
  padding: 0 16px;
  border-bottom: 1px solid var(--line-soft);
  background: #fbfcff;
}
.mock-dots { display: flex; gap: 6px; }
.mock-dots i { width: 9px; height: 9px; border-radius: 50%; background: #d9e0ee; display: block; }
.mock-tab {
  font-size: 12px;
  font-weight: 600;
  color: var(--muted);
  padding: 5px 10px;
  border-radius: 7px;
}
.mock-tab.on { background: var(--bg-tint); color: var(--blue); }

/* ---------- Bar chart (CSS) ---------- */
.bars { display: flex; align-items: flex-end; gap: 8px; }
.bars i {
  display: block;
  flex: 1;
  border-radius: 6px 6px 3px 3px;
  background: var(--grad-cta);
  opacity: .9;
}

/* ---------- Platform marks ---------- */
.pmark {
  width: 40px; height: 40px; border-radius: 11px; flex: 0 0 auto;
  display: grid; place-items: center; color: #fff;
}
.pmark svg { width: 21px; height: 21px; }
.pmark.fb { background: #1877f2; }
.pmark.ig { background: linear-gradient(135deg, #f9ce34 0%, #ee2a7b 50%, #6228d7 100%); }
.pmark.yt { background: #ff0033; }
.pmark.tt { background: #0a0a0a; }
.pmark.sm { width: 30px; height: 30px; border-radius: 9px; }
.pmark.sm svg { width: 16px; height: 16px; }
.pmark.lg { width: 52px; height: 52px; border-radius: 15px; }
.pmark.lg svg { width: 27px; height: 27px; }

/* platform strip */
.pstrip { display: flex; align-items: center; justify-content: center; gap: 16px; flex-wrap: wrap; }
.pstrip .pchip {
  display: inline-flex; align-items: center; gap: 10px;
  padding: 9px 16px 9px 9px; border-radius: 999px;
  background: #fff; border: 1px solid var(--line); box-shadow: var(--shadow-sm);
  font-weight: 600; font-size: 14px; color: var(--ink-2);
}

/* ---------- Feature grid ---------- */
.feat-grid {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 18px;
}
.feat-tile {
  background: #fff; border: 1px solid var(--line); border-radius: var(--r-md);
  padding: 24px 22px; box-shadow: var(--shadow-sm);
  transition: transform .16s ease, box-shadow .16s ease, border-color .16s ease;
}
.feat-tile:hover { transform: translateY(-4px); box-shadow: var(--shadow-md); border-color: rgba(36,88,244,.2); }
.feat-tile .ft-ic {
  width: 46px; height: 46px; border-radius: 13px; display: grid; place-items: center;
  background: linear-gradient(140deg, rgba(117,103,255,.13), rgba(46,144,250,.13));
  color: var(--blue); margin-bottom: 16px;
}
.feat-tile .ft-ic svg { width: 23px; height: 23px; }
.feat-tile h4 { font-family: var(--font-display); font-size: 17.5px; margin-bottom: 7px; }
.feat-tile p { font-size: 14px; color: var(--muted); line-height: 1.6; }
.feat-tile .ft-tag {
  display: inline-block; margin-top: 13px; font-size: 11px; font-weight: 800;
  letter-spacing: .04em; text-transform: uppercase; color: var(--blue);
  background: var(--bg-tint); padding: 5px 10px; border-radius: 999px;
}

/* lane label above feature groups */
.lane-label {
  display: flex; align-items: center; gap: 12px; margin: 0 0 22px;
}
.lane-label .ll-k {
  font-family: var(--font-display); font-weight: 700; font-size: 20px; letter-spacing: 0;
}
.lane-label .ll-line { flex: 1; height: 1px; background: var(--line); }
.lane-label .ll-num {
  font-size: 12px; font-weight: 800; color: var(--blue);
  background: var(--bg-tint); padding: 5px 11px; border-radius: 999px;
}

/* ---------- Responsive ---------- */
@media (max-width: 980px) {
  .footer-grid { grid-template-columns: 1fr 1fr; gap: 32px; }
  .footer-brand { grid-column: 1 / -1; }
  .nav-links { display: none; }
  .nav-toggle {
    display: inline-flex;
    margin-left: auto;
    align-items: center;
    justify-content: center;
    width: 42px; height: 42px;
    border-radius: 11px;
    border: 1px solid var(--line);
    background: #fff;
  }
  .nav-cta .nav-login { display: none; }
  .nav-cta { margin-left: 0; }
}
@media (max-width: 560px) {
  .section { padding: 68px 0; }
  .wrap { width: calc(100% - 36px); }
  .footer-grid { grid-template-columns: 1fr; }
}

@media (max-width: 980px) {
  .feat-grid { grid-template-columns: 1fr 1fr; }
}
@media (max-width: 620px) {
  .feat-grid { grid-template-columns: 1fr; }
}
