/* =========================================================
   Social Metrics Ltd — Design System
   "Signal" — a broadcast/frequency identity for a company
   that turns raw stories into distributed content.
   ========================================================= */

:root {
  /* Color */
  --navy-950: #06132c;
  --navy-900: #0b1e3d;
  --navy-800: #122a54;
  --blue-600: #1b4fd6;
  --blue-500: #2f66f5;
  --blue-400: #4c8dff;
  --cyan-300: #7dd8ff;
  --ink-900: #10182a;
  --slate-600: #46536a;
  --slate-500: #5b6b84;
  --slate-300: #b9c4d6;
  --fog-50: #f5f8fc;
  --fog-100: #eaf1fb;
  --white: #ffffff;

  /* Type */
  --font-display: 'Space Grotesk', 'Segoe UI', sans-serif;
  --font-body: 'Inter', 'Segoe UI', sans-serif;
  --font-mono: 'IBM Plex Mono', 'Courier New', monospace;

  /* Layout */
  --max-width: 1180px;
  --radius-sm: 8px;
  --radius-md: 14px;
  --radius-lg: 24px;
  --shadow-soft: 0 20px 45px -25px rgba(11, 30, 61, 0.35);
  --shadow-card: 0 1px 0 rgba(11, 30, 61, 0.06), 0 12px 30px -20px rgba(11, 30, 61, 0.25);
}

/* ---------- Reset ---------- */
*, *::before, *::after { box-sizing: border-box; }
html { scroll-behavior: smooth; }
body {
  margin: 0;
  font-family: var(--font-body);
  color: var(--ink-900);
  background: var(--fog-50);
  -webkit-font-smoothing: antialiased;
  line-height: 1.6;
}
img { max-width: 100%; display: block; }
a { color: inherit; text-decoration: none; }
ul { list-style: none; margin: 0; padding: 0; }
h1, h2, h3, h4 { font-family: var(--font-display); margin: 0; line-height: 1.12; letter-spacing: -0.01em; }
p { margin: 0; }
button { font-family: inherit; }

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

:focus-visible {
  outline: 2px solid var(--cyan-300);
  outline-offset: 3px;
  border-radius: 4px;
}

.container {
  width: 100%;
  max-width: var(--max-width);
  margin-inline: auto;
  padding-inline: 24px;
}

.eyebrow {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  font-family: var(--font-mono);
  font-size: 12.5px;
  letter-spacing: 0.14em;
  text-transform: uppercase;
  color: var(--blue-500);
  font-weight: 600;
}
.eyebrow .dot {
  width: 7px; height: 7px; border-radius: 50%;
  background: var(--blue-500);
  box-shadow: 0 0 0 0 rgba(47, 102, 245, 0.55);
  animation: pulse 2.2s ease-out infinite;
}
.eyebrow--light { color: var(--cyan-300); }
.eyebrow--light .dot { background: var(--cyan-300); box-shadow: 0 0 0 0 rgba(125, 216, 255, 0.55); }

@keyframes pulse {
  0%   { box-shadow: 0 0 0 0 rgba(47, 102, 245, 0.45); }
  70%  { box-shadow: 0 0 0 9px rgba(47, 102, 245, 0); }
  100% { box-shadow: 0 0 0 0 rgba(47, 102, 245, 0); }
}

.section { padding: 96px 0; }
.section--tight { padding: 64px 0; }
.section-head { max-width: 640px; margin-bottom: 48px; }
.section-head h2 { font-size: clamp(28px, 3.6vw, 40px); color: var(--navy-900); margin-top: 14px; }
.section-head p { color: var(--slate-500); font-size: 17px; margin-top: 14px; }

/* ---------- Buttons ---------- */
.btn {
  display: inline-flex;
  align-items: center;
  gap: 10px;
  padding: 13px 26px;
  border-radius: 999px;
  font-weight: 600;
  font-size: 15px;
  border: 1px solid transparent;
  cursor: pointer;
  transition: transform 0.18s ease, box-shadow 0.18s ease, background 0.18s ease, color 0.18s ease, border-color 0.18s ease;
  white-space: nowrap;
}
.btn:hover { transform: translateY(-2px); }
.btn-primary { background: var(--blue-500); color: var(--white); box-shadow: 0 14px 28px -14px rgba(47, 102, 245, 0.65); }
.btn-primary:hover { background: var(--blue-600); }
.btn-ghost-light { background: transparent; color: var(--white); border-color: rgba(255,255,255,0.35); }
.btn-ghost-light:hover { border-color: var(--cyan-300); color: var(--cyan-300); }
.btn-outline { background: transparent; color: var(--navy-900); border-color: rgba(11,30,61,0.18); }
.btn-outline:hover { border-color: var(--blue-500); color: var(--blue-500); }

/* ---------- Header ---------- */
.site-header {
  position: sticky; top: 0; z-index: 100;
  background: rgba(6, 19, 44, 0.86);
  backdrop-filter: blur(10px);
  border-bottom: 1px solid rgba(255,255,255,0.08);
}
.site-header .container { display: flex; align-items: center; justify-content: space-between; height: 76px; }
.brand { display: flex; align-items: center; gap: 10px; font-family: var(--font-display); font-weight: 700; font-size: 19px; color: var(--white); }
.brand-mark {
  width: 40px; height: 40px;
  display: grid; place-items: center;
  flex-shrink: 0;
}
.brand-mark img { width: 100%; height: 100%; object-fit: contain; display: block; }
.brand small { display: block; font-family: var(--font-mono); font-weight: 500; font-size: 10.5px; letter-spacing: 0.1em; color: var(--cyan-300); text-transform: uppercase; }

.main-nav { display: flex; align-items: center; gap: 36px; }
.main-nav ul { display: flex; gap: 30px; }
.main-nav a {
  color: var(--slate-300); font-size: 14.5px; font-weight: 500;
  position: relative; padding-bottom: 4px; transition: color 0.15s ease;
}
.main-nav a:hover, .main-nav a[aria-current="page"] { color: var(--white); }
.main-nav a[aria-current="page"]::after {
  content: ""; position: absolute; left: 0; right: 0; bottom: -6px; height: 2px;
  background: var(--cyan-300); border-radius: 2px;
}
.nav-toggle {
  display: none; background: transparent; border: 1px solid rgba(255,255,255,0.25);
  border-radius: 8px; width: 42px; height: 38px; color: var(--white); cursor: pointer;
}
.hero-cta-mobile { display: none; }

/* ---------- Hero ---------- */
.hero {
  position: relative;
  background: radial-gradient(120% 140% at 15% -10%, #10275a 0%, var(--navy-900) 45%, var(--navy-950) 100%);
  color: var(--white);
  overflow: hidden;
  padding-top: 108px;
  padding-bottom: 0;
}
.hero-inner { position: relative; z-index: 2; padding-bottom: 90px; display: grid; gap: 22px; max-width: 760px; }
.hero h1 { font-size: clamp(38px, 5.6vw, 66px); font-weight: 600; }
.hero h1 .accent { color: var(--cyan-300); }
.hero-sub { font-size: 18px; color: var(--slate-300); max-width: 560px; }
.hero-cta { display: flex; gap: 14px; margin-top: 10px; flex-wrap: wrap; }
.hero-stats { display: grid; grid-template-columns: repeat(4, auto); gap: 40px; margin-top: 40px; }
.hero-stats div strong { display: block; font-family: var(--font-display); font-size: 28px; color: var(--white); }
.hero-stats div span { font-family: var(--font-mono); font-size: 12px; letter-spacing: 0.06em; color: var(--slate-300); text-transform: uppercase; }

.waveform { position: absolute; inset: 0; z-index: 1; opacity: 0.55; pointer-events: none; }
.waveform svg { width: 100%; height: 100%; }
.wave-path { animation: drift 9s ease-in-out infinite alternate; }
@keyframes drift { from { transform: translateY(0); } to { transform: translateY(8px); } }

.wave-divider { display: block; width: 100%; height: 46px; }
.wave-divider path { fill: var(--fog-50); }

/* ---------- Logo / brand strip ---------- */
.trust-strip { background: var(--navy-950); padding: 22px 0; }
.trust-strip .container { display: flex; align-items: center; gap: 34px; flex-wrap: wrap; justify-content: space-between; }
.trust-strip span { font-family: var(--font-mono); font-size: 11.5px; letter-spacing: 0.1em; color: var(--slate-300); text-transform: uppercase; white-space: nowrap; }
.trust-logos { display: flex; gap: 30px; flex-wrap: wrap; }
.trust-logos a { font-family: var(--font-display); font-weight: 600; font-size: 14.5px; color: var(--slate-300); transition: color 0.15s ease; }
.trust-logos a:hover { color: var(--cyan-300); }

/* ---------- Cards / Grid ---------- */
.grid { display: grid; gap: 24px; }
.grid-3 { grid-template-columns: repeat(3, 1fr); }
.grid-4 { grid-template-columns: repeat(4, 1fr); }
.grid-2 { grid-template-columns: repeat(2, 1fr); }
.grid-5 { grid-template-columns: repeat(3, 1fr); }

.card {
  background: var(--white);
  border: 1px solid rgba(11, 30, 61, 0.07);
  border-radius: var(--radius-md);
  padding: 30px;
  box-shadow: var(--shadow-card);
  transition: transform 0.2s ease, box-shadow 0.2s ease, border-color 0.2s ease;
}
.card:hover { transform: translateY(-4px); border-color: rgba(47, 102, 245, 0.25); box-shadow: 0 24px 44px -26px rgba(11,30,61,0.32); }
.card-icon {
  width: 46px; height: 46px; border-radius: 12px;
  background: var(--fog-100); display: grid; place-items: center; margin-bottom: 18px;
  color: var(--blue-500);
}
.card h3 { font-size: 19px; color: var(--navy-900); margin-bottom: 10px; }
.card p { color: var(--slate-500); font-size: 15px; }

/* ---------- Network / brand cards ---------- */
.network-card {
  background: var(--white);
  border-radius: var(--radius-md);
  border: 1px solid rgba(11,30,61,0.07);
  padding: 26px;
  box-shadow: var(--shadow-card);
  display: flex; flex-direction: column; gap: 12px;
}
.network-card .tag { font-family: var(--font-mono); font-size: 11px; letter-spacing: 0.08em; color: var(--blue-500); text-transform: uppercase; }
.network-card h3 { font-size: 20px; color: var(--navy-900); }
.network-card p { color: var(--slate-500); font-size: 14.5px; flex-grow: 1; }
.network-card a.visit { font-size: 14px; font-weight: 600; color: var(--blue-600); display: inline-flex; align-items: center; gap: 6px; }
.network-card a.visit:hover { color: var(--blue-500); }

/* ---------- Split / About ---------- */
.split { display: grid; grid-template-columns: 1.05fr 0.95fr; gap: 64px; align-items: center; }
.about-panel {
  background: var(--navy-900); color: var(--white);
  border-radius: var(--radius-lg); padding: 36px;
  position: relative; overflow: hidden;
}
.about-panel::before {
  content: ""; position: absolute; inset: -30%; z-index: 0;
  background: radial-gradient(circle at 30% 20%, rgba(76,141,255,0.35), transparent 60%);
}
.about-panel-inner { position: relative; z-index: 1; display: grid; gap: 20px; }
.about-stat { display: flex; justify-content: space-between; align-items: baseline; border-bottom: 1px solid rgba(255,255,255,0.1); padding-bottom: 14px; }
.about-stat strong { font-family: var(--font-display); font-size: 24px; }
.about-stat span { font-family: var(--font-mono); font-size: 12px; color: var(--slate-300); text-transform: uppercase; letter-spacing: 0.06em; }

.lede { font-size: 20px; color: var(--navy-800); font-family: var(--font-display); font-weight: 500; margin: 18px 0; }
.body-text { color: var(--slate-600); font-size: 16px; margin-bottom: 16px; }
.checklist { display: grid; gap: 12px; margin-top: 22px; }
.checklist li { display: flex; gap: 12px; color: var(--slate-600); font-size: 15px; align-items: flex-start; }
.checklist svg { flex-shrink: 0; margin-top: 3px; color: var(--blue-500); }

/* ---------- Process / values ---------- */
.value-row { display: flex; gap: 20px; padding: 26px 0; border-bottom: 1px solid rgba(11,30,61,0.08); }
.value-row:last-child { border-bottom: none; }
.value-row .num { font-family: var(--font-mono); color: var(--blue-500); font-size: 14px; padding-top: 3px; min-width: 34px; }
.value-row h4 { font-size: 18px; color: var(--navy-900); margin-bottom: 6px; }
.value-row p { color: var(--slate-500); font-size: 15px; }

/* ---------- CTA banner ---------- */
.cta-banner {
  background: linear-gradient(120deg, var(--navy-950), var(--navy-900) 60%, #0e2f66);
  color: var(--white); border-radius: var(--radius-lg);
  padding: 56px; display: flex; align-items: center; justify-content: space-between; gap: 30px;
  flex-wrap: wrap; position: relative; overflow: hidden;
}
.cta-banner h2 { font-size: clamp(24px, 3vw, 32px); max-width: 480px; }
.cta-banner p { color: var(--slate-300); margin-top: 10px; max-width: 460px; }

/* ---------- Forms ---------- */
.form-grid { display: grid; grid-template-columns: 1fr 1fr; gap: 18px; }
.field { display: flex; flex-direction: column; gap: 8px; }
.field.full { grid-column: 1 / -1; }
.field label { font-size: 13.5px; font-weight: 600; color: var(--navy-900); }
.field input, .field textarea {
  border: 1px solid rgba(11,30,61,0.16); border-radius: var(--radius-sm);
  padding: 13px 14px; font-family: var(--font-body); font-size: 15px; color: var(--ink-900);
  background: var(--white); transition: border-color 0.15s ease, box-shadow 0.15s ease;
}
.field input:focus, .field textarea:focus {
  border-color: var(--blue-500); box-shadow: 0 0 0 4px rgba(47,102,245,0.12); outline: none;
}
.field textarea { resize: vertical; min-height: 130px; }
.form-note { font-size: 13px; color: var(--slate-500); margin-top: 6px; }

.alert { padding: 14px 18px; border-radius: var(--radius-sm); font-size: 14.5px; margin-bottom: 22px; }
.alert-success { background: #e7f6ec; color: #1c6b3c; border: 1px solid #b9e6c6; }
.alert-error { background: #fdecec; color: #a12727; border: 1px solid #f5c2c2; }

.contact-info-card {
  background: var(--navy-900); color: var(--white); border-radius: var(--radius-lg);
  padding: 34px; display: grid; gap: 22px;
}
.contact-info-card h3 { font-size: 20px; }
.contact-info-card--address { position: relative; overflow: hidden; padding: 40px 34px; gap: 6px; }
.contact-info-card--address::before {
  content: ""; position: absolute; inset: -20% -20% auto auto; width: 220px; height: 220px; z-index: 0;
  background: radial-gradient(circle, rgba(76,141,255,0.28), transparent 65%);
}
.pin-badge {
  width: 52px; height: 52px; border-radius: 14px; background: rgba(125,216,255,0.12);
  color: var(--cyan-300); display: grid; place-items: center; position: relative; z-index: 1; margin-bottom: 4px;
}
.office-address { position: relative; z-index: 1; font-family: var(--font-display); font-size: 20px; font-weight: 500; color: var(--white); line-height: 1.4; margin: 6px 0 18px; }
.contact-info-card .visit { position: relative; z-index: 1; font-size: 14px; font-weight: 600; color: var(--cyan-300); display: inline-flex; align-items: center; gap: 6px; width: fit-content; }
.contact-info-card .visit:hover { color: var(--blue-400); }
.contact-line { display: flex; gap: 14px; align-items: flex-start; }
.contact-line .ico { width: 38px; height: 38px; border-radius: 10px; background: rgba(255,255,255,0.08); display: grid; place-items: center; flex-shrink: 0; color: var(--cyan-300); }
.contact-line span { display: block; font-size: 14.5px; color: var(--slate-300); }
.contact-line strong { display: block; color: var(--white); font-size: 15px; }

/* ---------- Footer ---------- */
.site-footer { background: var(--navy-950); color: var(--slate-300); padding: 72px 0 30px; }
.footer-grid { display: grid; grid-template-columns: 1.4fr 1fr 1fr 1.2fr; gap: 40px; padding-bottom: 46px; border-bottom: 1px solid rgba(255,255,255,0.08); }
.footer-grid h4 { color: var(--white); font-size: 14px; letter-spacing: 0.04em; margin-bottom: 18px; text-transform: uppercase; font-family: var(--font-mono); font-weight: 600; }
.footer-grid ul li { margin-bottom: 11px; }
.footer-grid a { font-size: 14.5px; color: var(--slate-300); transition: color 0.15s ease; }
.footer-grid a:hover { color: var(--cyan-300); }
.footer-about p { font-size: 14.5px; color: var(--slate-300); margin-top: 14px; max-width: 320px; }
.footer-bottom { display: flex; justify-content: space-between; align-items: center; padding-top: 26px; flex-wrap: wrap; gap: 14px; font-size: 13px; }
.social-row { display: flex; gap: 12px; }
.social-row a { width: 36px; height: 36px; border-radius: 50%; border: 1px solid rgba(255,255,255,0.15); display: grid; place-items: center; transition: border-color 0.15s ease, color 0.15s ease; }
.social-row a:hover { border-color: var(--cyan-300); color: var(--cyan-300); }

/* ---------- Page hero (inner pages) ---------- */
.page-hero { background: var(--navy-900); color: var(--white); padding: 150px 0 70px; position: relative; overflow: hidden; }
.page-hero h1 { font-size: clamp(32px, 4.4vw, 48px); margin-top: 14px; max-width: 700px; }
.page-hero p { color: var(--slate-300); font-size: 17px; margin-top: 16px; max-width: 560px; }
.breadcrumb { font-family: var(--font-mono); font-size: 12.5px; color: var(--slate-300); }
.breadcrumb a { color: var(--slate-300); }
.breadcrumb a:hover { color: var(--cyan-300); }

/* ---------- Audit tool ---------- */
.audit-form { display: flex; gap: 12px; margin-top: 28px; max-width: 560px; flex-wrap: wrap; }
.audit-form input[type="url"] {
  flex: 1; min-width: 220px; padding: 14px 18px; border-radius: 999px; border: 1px solid rgba(255,255,255,0.22);
  background: rgba(255,255,255,0.06); color: var(--white); font-size: 15px; font-family: var(--font-body);
}
.audit-form input[type="url"]::placeholder { color: var(--slate-300); }
.audit-form input[type="url"]:focus { outline: none; border-color: var(--cyan-300); background: rgba(255,255,255,0.1); }

.audit-summary { display: flex; align-items: center; gap: 36px; flex-wrap: wrap; }
.score-ring {
  --score: 0;
  width: 148px; height: 148px; border-radius: 50%; flex-shrink: 0;
  background: conic-gradient(var(--blue-500) calc(var(--score) * 3.6deg), var(--fog-100) 0deg);
  display: grid; place-items: center;
}
.score-ring-inner {
  width: 118px; height: 118px; border-radius: 50%; background: var(--white);
  display: flex; flex-direction: column; align-items: center; justify-content: center;
  box-shadow: inset 0 0 0 1px rgba(11,30,61,0.06);
}
.score-ring-inner strong { font-family: var(--font-display); font-size: 34px; color: var(--navy-900); line-height: 1; }
.score-ring-inner span { font-family: var(--font-mono); font-size: 12px; color: var(--slate-500); margin-top: 4px; }

.check-list { display: grid; gap: 4px; }
.check-row { display: flex; gap: 12px; align-items: flex-start; padding: 14px 4px; border-bottom: 1px solid rgba(11,30,61,0.07); }
.check-row:last-child { border-bottom: none; }
.check-row svg { flex-shrink: 0; margin-top: 2px; }
.check-row strong { display: block; font-size: 15px; color: var(--navy-900); }
.check-row span { display: block; font-size: 13.5px; color: var(--slate-500); margin-top: 2px; }
/* ---------- Tablet & below: ~980px ---------- */
@media (max-width: 980px) {
  .split { grid-template-columns: 1fr; gap: 44px; }
  .grid-4 { grid-template-columns: repeat(2, 1fr); }
  .grid-3 { grid-template-columns: repeat(2, 1fr); }
  .grid-5 { grid-template-columns: repeat(2, 1fr); }
  .footer-grid { grid-template-columns: 1fr 1fr; gap: 32px; }
  .hero-stats { grid-template-columns: repeat(2, 1fr); row-gap: 24px; column-gap: 24px; }

  /* Nav collapses to the slide-out menu at tablet widths too, so the
     desktop bar never has to squeeze 5 links + 2 buttons into one row. */
  .main-nav { position: fixed; inset: 76px 0 0 0; background: var(--navy-950); flex-direction: column; align-items: stretch; padding: 30px 24px; transform: translateX(100%); transition: transform 0.25s ease; overflow-y: auto; }
  .main-nav.open { transform: translateX(0); }
  .main-nav ul { flex-direction: column; gap: 6px; }
  .main-nav ul a { display: block; padding: 14px 6px; border-bottom: 1px solid rgba(255,255,255,0.06); }
  .main-nav .hero-cta-mobile { display: block; margin-top: 18px; }
  .nav-toggle { display: block; }
  #headerCta { display: none; }
}

/* ---------- Large phones / small tablets: ~760px ---------- */
@media (max-width: 760px) {
  .grid-3, .grid-4, .grid-2, .grid-5 { grid-template-columns: 1fr; }
  .footer-grid { grid-template-columns: 1fr; gap: 30px; }
  .form-grid { grid-template-columns: 1fr; }
  .cta-banner { padding: 34px; flex-direction: column; align-items: flex-start; }
  .section { padding: 64px 0; }
  .section--tight { padding: 48px 0; }
  .about-panel { padding: 26px; }
  .card, .network-card { padding: 24px; }
  .hero-stats { grid-template-columns: repeat(2, 1fr); }
  .page-hero { padding: 130px 0 54px; }
}

/* ---------- Small phones: ~480px ---------- */
@media (max-width: 480px) {
  .container { padding-inline: 18px; }
  .hero-cta { flex-direction: column; align-items: stretch; }
  .hero-cta .btn { justify-content: center; }
  .hero-stats { grid-template-columns: repeat(2, 1fr); row-gap: 20px; column-gap: 16px; }
  .hero-stats div strong { font-size: 22px; }
  .brand small { display: none; }
  .cta-banner h2 { font-size: 22px; }
  .contact-info-card { padding: 26px; }
  .btn { padding: 12px 20px; font-size: 14px; }
  .audit-form { flex-direction: column; }
  .audit-form .btn { justify-content: center; }
  .audit-summary { flex-direction: column; align-items: flex-start; text-align: left; gap: 22px; }
}

/* ---------- Very small phones: ~360px ---------- */
@media (max-width: 360px) {
  .hero-stats { grid-template-columns: 1fr 1fr; }
  .section-head h2 { font-size: 24px; }
}
