/* ============================================================
   SIGNALSTACK SHARED — Tokens, nav, footer, type, utilities
   Used by: main site + all /work/ case study pages
   ============================================================ */
* { box-sizing: border-box; margin: 0; padding: 0; }
html { scroll-behavior: smooth; }
html, body { overflow-x: hidden; }

:root {
  --bg: #fafbfc;
  --surface: #ffffff;
  --surface-2: #f4f6fa;
  --surface-3: #eef1f6;
  --ink: #0a0f1f;
  --ink-2: #1f2937;
  --ink-3: #475569;
  --muted: #64748b;
  --muted-2: #94a3b8;
  --navy: #1e2a4a;
  --navy-2: #2c3e5a;
  --navy-soft: #3b5998;
  --accent: #2563eb;
  --accent-2: #4f46e5;
  --accent-glow: rgba(37, 99, 235, 0.12);
  --success: #10b981;
  --border: #e5e9f0;
  --border-2: #d8dee9;
  --max: 1280px;
  --gutter: clamp(1.25rem, 3vw, 2.5rem);
  --section-y: clamp(5rem, 9vw, 8rem);
  --radius: 14px;
  --radius-lg: 20px;
  --radius-sm: 8px;
  --shadow-xs: 0 1px 2px rgba(15, 23, 42, 0.04);
  --shadow-sm: 0 2px 6px rgba(15, 23, 42, 0.05), 0 1px 2px rgba(15, 23, 42, 0.04);
  --shadow-md: 0 8px 24px rgba(15, 23, 42, 0.06), 0 2px 6px rgba(15, 23, 42, 0.04);
  --shadow-lg: 0 24px 60px rgba(15, 23, 42, 0.08), 0 4px 12px rgba(15, 23, 42, 0.05);
  --shadow-xl: 0 40px 80px rgba(15, 23, 42, 0.12), 0 8px 24px rgba(15, 23, 42, 0.08);
  --font-sans: "Manrope", -apple-system, BlinkMacSystemFont, "Segoe UI", sans-serif;
  --font-mono: "JetBrains Mono", "SF Mono", Menlo, monospace;
}

* { box-sizing: border-box; margin: 0; padding: 0; }
html { scroll-behavior: smooth; }
body {
  font-family: var(--font-sans);
  font-weight: 400;
  background: var(--bg);
  color: var(--ink);
  line-height: 1.55;
  font-size: 16px;
  -webkit-font-smoothing: antialiased;
  -moz-osx-font-smoothing: grayscale;
  overflow-x: hidden;
}

body::before {
  content: "";
  position: fixed;
  inset: 0;
  z-index: -1;
  background:
    radial-gradient(ellipse 80% 50% at 20% 0%, rgba(37, 99, 235, 0.06), transparent 60%),
    radial-gradient(ellipse 60% 40% at 80% 15%, rgba(79, 70, 229, 0.05), transparent 60%);
  pointer-events: none;
}

a { color: inherit; text-decoration: none; }
img { display: block; max-width: 100%; height: auto; }
button { font: inherit; cursor: pointer; }
::selection { background: var(--accent); color: white; }

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

/* ============================================================
   TYPOGRAPHY
   ============================================================ */
.display {
  font-size: clamp(2.6rem, 6.4vw, 5.5rem);
  font-weight: 700;
  line-height: 1.02;
  letter-spacing: -0.035em;
  color: var(--ink);
}
.display .gradient {
  background: linear-gradient(135deg, var(--accent) 0%, var(--accent-2) 60%, var(--navy) 100%);
  -webkit-background-clip: text;
  background-clip: text;
  color: transparent;
  display: inline-block;
}

h2.section-h {
  font-size: clamp(2rem, 4.4vw, 3.4rem);
  font-weight: 700;
  line-height: 1.08;
  letter-spacing: -0.03em;
  color: var(--ink);
}
h2.section-h .gradient {
  background: linear-gradient(135deg, var(--accent) 0%, var(--accent-2) 100%);
  -webkit-background-clip: text;
  background-clip: text;
  color: transparent;
}


/* Container utility */
.container { max-width: var(--max); margin: 0 auto; padding: 0 var(--gutter); }

/* ---- Eyebrows, buttons, and general utilities ---- */
.eyebrow {
  display: inline-flex;
  align-items: center;
  gap: 0.5rem;
  font-family: var(--font-mono);
  font-size: 12px;
  font-weight: 500;
  letter-spacing: 0.04em;
  color: var(--accent);
  text-transform: uppercase;
  padding: 0.4rem 0.8rem;
  background: var(--accent-glow);
  border-radius: 999px;
  border: 1px solid rgba(37, 99, 235, 0.15);
}

.eyebrow-plain {
  display: inline-flex;
  align-items: center;
  gap: 0.55rem;
  font-family: var(--font-mono);
  font-size: 12px;
  font-weight: 500;
  letter-spacing: 0.06em;
  color: var(--accent);
  text-transform: uppercase;
}
.eyebrow-plain::before {
  content: "";
  width: 24px;
  height: 1px;
  background: var(--accent);
}

.lede {
  font-size: clamp(1.05rem, 1.4vw, 1.2rem);
  line-height: 1.6;
  color: var(--ink-3);
  font-weight: 400;
}

/* ============================================================
   BUTTONS
   ============================================================ */
.btn {
  display: inline-flex;
  align-items: center;
  gap: 0.55rem;
  padding: 0.85rem 1.4rem;
  font-size: 14.5px;
  font-weight: 600;
  letter-spacing: -0.005em;
  border-radius: 999px;
  border: 1px solid transparent;
  transition: all 0.22s cubic-bezier(0.4, 0, 0.2, 1);
  white-space: nowrap;
  cursor: pointer;
}

.btn-primary { background: var(--ink); color: white; box-shadow: 0 1px 0 rgba(255,255,255,0.06) inset, var(--shadow-sm); }
.btn-primary:hover { background: var(--navy); transform: translateY(-1px); box-shadow: var(--shadow-md); }
.btn-primary .arrow { display: inline-block; transition: transform 0.3s cubic-bezier(0.4, 0, 0.2, 1); }
.btn-primary:hover .arrow { transform: translateX(4px); }

.btn-secondary { background: transparent; color: var(--ink); border-color: var(--border-2); }
.btn-secondary:hover { border-color: var(--ink); background: var(--surface); }

.btn-accent {
  background: linear-gradient(135deg, var(--accent) 0%, var(--accent-2) 100%);
  color: white;
  box-shadow: 0 6px 16px -4px rgba(37, 99, 235, 0.4);
}
.btn-accent:hover { transform: translateY(-1px); box-shadow: 0 10px 24px -4px rgba(37, 99, 235, 0.5); }
.btn-accent .arrow { display: inline-block; transition: transform 0.3s cubic-bezier(0.4, 0, 0.2, 1); }
.btn-accent:hover .arrow { transform: translateX(4px); }

/* ============================================================
   ANNOUNCEMENT

/* ---- Navigation header ---- */
.nav {
  position: sticky;
  top: 0;
  z-index: 50;
  background: rgba(250, 251, 252, 0.82);
  backdrop-filter: saturate(180%) blur(20px);
  -webkit-backdrop-filter: saturate(180%) blur(20px);
  border-bottom: 1px solid transparent;
  transition: border-color 0.3s ease, background 0.3s ease;
}
.nav.scrolled {
  border-bottom-color: var(--border);
  background: rgba(250, 251, 252, 0.94);
}
.nav .container {
  display: flex;
  justify-content: space-between;
  align-items: center;
  padding: 0.9rem var(--gutter);
  gap: 2rem;
}

.brand {
  display: flex;
  align-items: center;
  gap: 0.65rem;
  font-weight: 700;
  font-size: 17px;
  letter-spacing: -0.02em;
  color: var(--ink);
}
.brand-mark {
  width: 34px;
  height: 34px;
  display: grid;
  place-items: center;
  flex-shrink: 0;
}
.brand-mark img {
  width: 100%; height: 100%;
  object-fit: contain;
}

.nav-links {
  display: flex;
  align-items: center;
  gap: 2.2rem;
  font-size: 14.5px;
  font-weight: 500;
}
.nav-links a {
  color: var(--ink-3);
  transition: color 0.2s ease;
  position: relative;
}
.nav-links a:hover { color: var(--ink); }

.nav-toggle { display: none; }
@media (max-width: 880px) {
  .nav-links { display: none; }
  .nav-toggle {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    width: 40px; height: 40px;
    background: transparent;
    border: 1px solid var(--border-2);
    border-radius: 999px;
  }
  .nav-toggle span { width: 16px; height: 1.5px; background: var(--ink); position: relative; }
  .nav-toggle span::before, .nav-toggle span::after {
    content: ""; position: absolute; left: 0;
    width: 16px; height: 1.5px; background: var(--ink);
  }
  .nav-toggle span::before { top: -5px; }
  .nav-toggle span::after { top: 5px; }
  .nav-links.open {
    display: flex;
    position: absolute;
    top: 100%; left: 0; right: 0;
    flex-direction: column;
    background: var(--surface);
    padding: 1.5rem var(--gutter) 2rem;
    gap: 1.4rem;
    border-bottom: 1px solid var(--border);
    align-items: flex-start;
    box-shadow: var(--shadow-md);
  }
  .nav-cta-desktop { display: none; }
}

/* ============================================================
   HERO — with real photo + floating proof cards
   ============================================================ */

/* ---- Section head + reveal animation ---- */
.section-head {
  text-align: center;
  max-width: 38rem;
  margin: 0 auto clamp(3rem, 5vw, 4.5rem);
}
.section-head .eyebrow, .section-head .eyebrow-plain { margin-bottom: 1.25rem; }
.section-head h2 { margin-bottom: 1.25rem; }
.section-head p { color: var(--ink-3); font-size: 1.05rem; line-height: 1.6; }


   ============================================================ */
.reveal {
  opacity: 0;
  transform: translateY(20px);
  transition: opacity 0.7s cubic-bezier(0.16, 1, 0.3, 1), transform 0.7s cubic-bezier(0.16, 1, 0.3, 1);
}
.reveal.visible { opacity: 1; transform: translateY(0); }
.reveal[data-delay="1"] { transition-delay: 0.06s; }
.reveal[data-delay="2"] { transition-delay: 0.12s; }
.reveal[data-delay="3"] { transition-delay: 0.18s; }
.reveal[data-delay="4"] { transition-delay: 0.24s; }
.reveal[data-delay="5"] { transition-delay: 0.30s; }

@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;
  }
  .reveal { opacity: 1; transform: none; }
  .hero h1 .word, .hero .lede, .hero-ctas, .hero-visual, .hero-trust { opacity: 1; transform: none; animation: none; }
}


/* ---- Footer ---- */
.footer {
  background: var(--ink);
  color: rgba(255, 255, 255, 0.7);
  padding: clamp(3.5rem, 6vw, 5rem) 0 1.5rem;
  position: relative;
  overflow: hidden;
}

.footer-grid {
  display: grid;
  grid-template-columns: 2fr 1fr 1fr 1fr;
  gap: 3rem;
  margin-bottom: clamp(3rem, 5vw, 4rem);
}

.footer-brand .brand { color: white; margin-bottom: 1.25rem; }
.footer-brand p {
  font-size: 14.5px;
  line-height: 1.6;
  color: rgba(255, 255, 255, 0.6);
  max-width: 28rem;
  margin-bottom: 1.75rem;
}

.footer-social { display: flex; gap: 0.5rem; }
.footer-social a {
  width: 36px; height: 36px;
  display: grid;
  place-items: center;
  background: rgba(255, 255, 255, 0.05);
  border: 1px solid rgba(255, 255, 255, 0.1);
  border-radius: 50%;
  color: rgba(255, 255, 255, 0.7);
  transition: all 0.2s ease;
}
.footer-social a:hover {
  background: rgba(37, 99, 235, 0.15);
  border-color: rgba(37, 99, 235, 0.4);
  color: white;
}
.footer-social svg { width: 16px; height: 16px; }

.footer-col h4 {
  font-size: 12px;
  font-family: var(--font-mono);
  font-weight: 500;
  letter-spacing: 0.08em;
  text-transform: uppercase;
  color: rgba(255, 255, 255, 0.45);
  margin-bottom: 1.25rem;
}
.footer-col ul { list-style: none; display: flex; flex-direction: column; gap: 0.7rem; }
.footer-col a {
  color: rgba(255, 255, 255, 0.7);
  font-size: 14px;
  transition: color 0.2s ease;
}
.footer-col a:hover { color: white; }

/* Big wordmark band */
.footer-wordmark {
  margin: 0 calc(-1 * var(--gutter));
  padding: 2.5rem var(--gutter);
  border-top: 1px solid rgba(255, 255, 255, 0.08);
  border-bottom: 1px solid rgba(255, 255, 255, 0.08);
  display: flex;
  justify-content: center;
  margin-bottom: 1.5rem;
  position: relative;
  overflow: hidden;
}
.footer-wordmark::before {
  content: "";
  position: absolute;
  top: 50%; left: 50%;
  transform: translate(-50%, -50%);
  width: 80%;
  height: 200%;
  background: radial-gradient(ellipse, rgba(37, 99, 235, 0.1), transparent 60%);
  pointer-events: none;
}
.footer-wordmark img {
  max-width: 80%;
  height: auto;
  max-height: 80px;
  opacity: 0.9;
  position: relative;
  z-index: 1;
}

.footer-bottom {
  display: flex;
  justify-content: space-between;
  align-items: center;
  padding-top: 0.75rem;
  font-size: 13px;
  color: rgba(255, 255, 255, 0.5);
  flex-wrap: wrap;
  gap: 1rem;
}
.footer-bottom-links { display: flex; gap: 1.5rem; }
