/* =========================================================================
   Griffin Technology Partners — Design System
   Dark theme, electric blue accents, polygonal geometry
   ========================================================================= */

/* ---------- Tokens ---------- */
:root {
  /* Brand — sampled from logo.png polygonal griffin */
  --brand-primary: #0064DC;
  --brand-bright: #0084F0;
  --brand-deep: #001E78;
  --brand-glow: rgba(0, 132, 240, 0.5);
  --brand-glow-soft: rgba(0, 132, 240, 0.2);
  --accent-silver: #BFC8D4;
  --accent-cyan: #00E5FF;

  /* Surfaces */
  --bg-deep: #050810;
  --bg-base: #0A0F1C;
  --bg-surface: #111827;
  --bg-elevated: #1A2332;
  --bg-glass: rgba(17, 24, 39, 0.72);

  /* Borders & lines */
  --border: rgba(255, 255, 255, 0.08);
  --border-strong: rgba(255, 255, 255, 0.16);
  --border-brand: rgba(0, 132, 240, 0.32);

  /* Text */
  --text-high: #F1F5F9;
  --text-mid: #A0AEC2;
  --text-low: #6B7A8D;
  --text-on-brand: #FFFFFF;

  /* Status */
  --success: #2DD4BF;
  --warning: #FBBF24;
  --danger: #EF4444;

  /* Type */
  --font-display: "Space Grotesk", "Inter", system-ui, -apple-system, "Segoe UI", sans-serif;
  --font-body: "Inter", system-ui, -apple-system, "Segoe UI", sans-serif;

  /* Spacing scale (4px base) */
  --space-1: 0.25rem;
  --space-2: 0.5rem;
  --space-3: 0.75rem;
  --space-4: 1rem;
  --space-5: 1.5rem;
  --space-6: 2rem;
  --space-7: 3rem;
  --space-8: 4rem;
  --space-9: 6rem;
  --space-10: 8rem;

  /* Radii */
  --radius-sm: 6px;
  --radius-md: 10px;
  --radius-lg: 18px;
  --radius-xl: 28px;
  --radius-pill: 999px;

  /* Shadows */
  --shadow-sm: 0 1px 2px rgba(0, 0, 0, 0.35);
  --shadow-md: 0 8px 24px rgba(0, 0, 0, 0.4);
  --shadow-lg: 0 24px 60px rgba(0, 0, 0, 0.55);
  --shadow-glow: 0 0 40px var(--brand-glow);
  --shadow-glow-soft: 0 0 30px var(--brand-glow-soft);

  /* Layout */
  --container: 1200px;
  --container-narrow: 880px;
  --header-h: 76px;

  /* Motion */
  --ease-out: cubic-bezier(0.22, 1, 0.36, 1);
  --ease-in-out: cubic-bezier(0.65, 0, 0.35, 1);
  --dur-fast: 180ms;
  --dur-base: 300ms;
  --dur-slow: 600ms;
}

/* ---------- Reset & base ---------- */
*, *::before, *::after { box-sizing: border-box; }
* { margin: 0; }
html { scroll-behavior: smooth; -webkit-text-size-adjust: 100%; }
html, body { height: 100%; }

body {
  font-family: var(--font-body);
  font-size: 16px;
  line-height: 1.6;
  color: var(--text-high);
  background: var(--bg-base);
  background-image:
    radial-gradient(1200px 600px at 80% -10%, rgba(0, 132, 240, 0.10), transparent 60%),
    radial-gradient(900px 500px at -10% 110%, rgba(11, 77, 168, 0.08), transparent 60%);
  background-attachment: fixed;
  -webkit-font-smoothing: antialiased;
  -moz-osx-font-smoothing: grayscale;
  text-rendering: optimizeLegibility;
  overflow-x: hidden;
}

img, svg, video { display: block; max-width: 100%; height: auto; }
button { font: inherit; color: inherit; cursor: pointer; }
a { color: var(--brand-bright); text-decoration: none; transition: color var(--dur-fast) var(--ease-out); }
a:hover { color: var(--brand-primary); }
:focus-visible { outline: 2px solid var(--brand-bright); outline-offset: 3px; border-radius: 3px; }

::selection { background: var(--brand-primary); color: var(--text-on-brand); }

/* Skip link for a11y */
.skip-link {
  position: absolute; left: -9999px; top: 0;
  padding: var(--space-3) var(--space-5);
  background: var(--brand-primary); color: var(--text-on-brand);
  z-index: 200; border-radius: 0 0 var(--radius-md) 0;
}
.skip-link:focus { left: 0; }

/* ---------- Type ---------- */
h1, h2, h3, h4 {
  font-family: var(--font-display);
  font-weight: 600;
  letter-spacing: -0.02em;
  line-height: 1.15;
  color: var(--text-high);
}
h1 { font-size: clamp(2.4rem, 5vw + 1rem, 4.25rem); font-weight: 700; }
h2 { font-size: clamp(1.85rem, 3vw + 0.8rem, 2.85rem); }
h3 { font-size: clamp(1.25rem, 1.5vw + 0.7rem, 1.6rem); }
h4 { font-size: 1.1rem; }
p { color: var(--text-mid); }
.lead { font-size: 1.2rem; color: var(--text-mid); max-width: 64ch; }
.eyebrow {
  display: inline-flex; align-items: center; gap: 0.5em;
  font-family: var(--font-display);
  font-size: 0.78rem; font-weight: 600; letter-spacing: 0.18em; text-transform: uppercase;
  color: var(--brand-bright);
  padding: var(--space-2) var(--space-4);
  border: 1px solid var(--border-brand);
  border-radius: var(--radius-pill);
  background: rgba(0, 132, 240, 0.06);
}
.eyebrow::before {
  content: ""; width: 6px; height: 6px; background: var(--brand-bright);
  clip-path: polygon(50% 0, 100% 50%, 50% 100%, 0 50%);
}
.gradient-text {
  background: linear-gradient(135deg, var(--brand-bright) 0%, var(--accent-cyan) 100%);
  -webkit-background-clip: text;
  background-clip: text;
  color: transparent;
}

/* ---------- Layout primitives ---------- */
.container { width: 100%; max-width: var(--container); margin-inline: auto; padding-inline: clamp(1rem, 4vw, 2rem); }
.container-narrow { max-width: var(--container-narrow); margin-inline: auto; padding-inline: clamp(1rem, 4vw, 2rem); }
.section { padding-block: clamp(4rem, 8vw, 7rem); position: relative; }
.section-tight { padding-block: clamp(3rem, 5vw, 4.5rem); }
.section-head { text-align: center; max-width: 720px; margin: 0 auto var(--space-8); }
.section-head .eyebrow { margin-bottom: var(--space-4); }
.section-head p { margin-top: var(--space-4); font-size: 1.1rem; }

.grid { display: grid; gap: var(--space-5); }
.grid-2 { grid-template-columns: repeat(auto-fit, minmax(280px, 1fr)); }
.grid-3 { grid-template-columns: repeat(auto-fit, minmax(260px, 1fr)); }
.grid-4 { grid-template-columns: repeat(auto-fit, minmax(220px, 1fr)); }

.flex { display: flex; }
.flex-center { display: flex; align-items: center; justify-content: center; }
.gap-3 { gap: var(--space-3); }
.gap-4 { gap: var(--space-4); }
.gap-5 { gap: var(--space-5); }

/* ---------- Buttons ---------- */
.btn {
  --btn-bg: transparent;
  --btn-color: var(--text-high);
  --btn-border: var(--border-strong);
  display: inline-flex; align-items: center; justify-content: center; gap: 0.5em;
  font-family: var(--font-display); font-weight: 600; font-size: 0.98rem;
  padding: 0.9rem 1.6rem;
  background: var(--btn-bg);
  color: var(--btn-color);
  border: 1px solid var(--btn-border);
  border-radius: var(--radius-md);
  cursor: pointer;
  transition: transform var(--dur-fast) var(--ease-out), background var(--dur-base) var(--ease-out), box-shadow var(--dur-base) var(--ease-out), border-color var(--dur-base) var(--ease-out), color var(--dur-base) var(--ease-out);
  white-space: nowrap;
  position: relative; overflow: hidden;
  text-decoration: none;
}
.btn:hover { transform: translateY(-1px); }
.btn:active { transform: translateY(0); }
.btn:focus-visible { outline: 2px solid var(--brand-bright); outline-offset: 3px; }

.btn--primary {
  --btn-bg: linear-gradient(135deg, var(--brand-primary), var(--brand-deep));
  --btn-color: var(--text-on-brand);
  --btn-border: transparent;
  box-shadow: 0 8px 30px rgba(0, 132, 240, 0.35), inset 0 1px 0 rgba(255, 255, 255, 0.18);
}
.btn--primary:hover {
  --btn-bg: linear-gradient(135deg, var(--brand-bright), var(--brand-primary));
  box-shadow: 0 12px 40px rgba(0, 132, 240, 0.5), inset 0 1px 0 rgba(255, 255, 255, 0.22);
}

.btn--ghost {
  --btn-bg: rgba(255, 255, 255, 0.04);
  --btn-color: var(--text-high);
  --btn-border: var(--border-strong);
  backdrop-filter: blur(10px);
}
.btn--ghost:hover {
  --btn-bg: rgba(255, 255, 255, 0.08);
  --btn-border: var(--border-brand);
}

.btn--lg { padding: 1.05rem 2rem; font-size: 1rem; }
.btn--sm { padding: 0.6rem 1.1rem; font-size: 0.875rem; }

.btn-arrow { transition: transform var(--dur-fast) var(--ease-out); }
.btn:hover .btn-arrow { transform: translateX(3px); }

/* ---------- Header ---------- */
.site-header {
  position: fixed; top: 0; left: 0; right: 0;
  z-index: 100;
  height: var(--header-h);
  display: flex; align-items: center;
  /* DO NOT put backdrop-filter on this element directly — it creates
     a containing block for position:fixed descendants, which traps
     the mobile drawer inside the 76px-tall header on iOS Safari.
     Render the blurred glass via a ::before pseudo-element instead. */
  background: transparent;
  border-bottom: 1px solid transparent;
  transition: border-color var(--dur-base) var(--ease-out);
}
.site-header::before {
  content: "";
  position: absolute; inset: 0; z-index: -1;
  background: rgba(10, 15, 28, 0.6);
  backdrop-filter: blur(18px) saturate(140%);
  -webkit-backdrop-filter: blur(18px) saturate(140%);
  transition: background var(--dur-base) var(--ease-out);
}
.site-header.is-scrolled::before { background: rgba(10, 15, 28, 0.88); }
.site-header.is-scrolled { border-bottom-color: var(--border); }
.site-header__inner {
  width: 100%; max-width: var(--container); margin: 0 auto;
  padding-inline: clamp(1rem, 4vw, 2rem);
  display: flex; align-items: center; justify-content: space-between; gap: var(--space-5);
}
.brand {
  display: inline-flex; align-items: center; gap: 0.7rem;
  text-decoration: none; color: var(--text-high);
  font-family: var(--font-display); font-weight: 700; letter-spacing: -0.01em;
  font-size: 1.05rem;
}
.brand__mark { width: auto; height: 44px; flex-shrink: 0; object-fit: contain; filter: drop-shadow(0 4px 14px rgba(0, 132, 240, 0.35)); }
.footer-brand .brand__mark { height: 56px; }
.brand__name { display: inline-flex; flex-direction: column; line-height: 1.05; }
.brand__name small { font-size: 0.7rem; font-weight: 500; letter-spacing: 0.14em; color: var(--text-low); text-transform: uppercase; }

/* Image-based wordmark replaces .brand__name when present */
.brand__wordmark {
  display: block;
  height: 32px;
  width: auto;
  flex-shrink: 0;
  filter: drop-shadow(0 1px 4px rgba(0, 0, 0, 0.5));
  align-self: center;
  /* GRIFFIN is visually much heavier than TECHNOLOGY PARTNERS, so the
     optical center sits above the geometric center. Nudge down so the
     wordmark feels centered with the griffin. */
  transform: translateY(3px);
}
.footer-brand .brand__wordmark { height: 40px; transform: translateY(4px); }
@media (max-width: 880px) {
  .brand__wordmark { height: 26px; transform: translateY(2px); }
}
@media (max-width: 540px) {
  .brand__wordmark { height: 22px; transform: translateY(2px); }
}

.nav { display: flex; align-items: center; gap: var(--space-2); }
.nav__list { display: flex; gap: var(--space-1); list-style: none; padding: 0; margin: 0; }
.nav__link {
  display: inline-flex; align-items: center;
  padding: 0.55rem 0.9rem;
  font-size: 0.95rem; color: var(--text-mid); font-weight: 500;
  border-radius: var(--radius-md);
  transition: color var(--dur-fast) var(--ease-out), background var(--dur-fast) var(--ease-out);
}
.nav__link:hover { color: var(--text-high); background: rgba(255, 255, 255, 0.04); }
.nav__link.is-active { color: var(--brand-bright); background: rgba(0, 132, 240, 0.08); }

.nav-toggle {
  display: none;
  width: 44px; height: 44px;
  background: rgba(255, 255, 255, 0.04);
  border: 1px solid var(--border-strong);
  border-radius: var(--radius-md);
  align-items: center; justify-content: center;
  flex-direction: column; gap: 5px;
}
.nav-toggle span {
  display: block; width: 18px; height: 2px;
  background: var(--text-high); border-radius: 2px;
  transition: transform var(--dur-base) var(--ease-out), opacity var(--dur-base) var(--ease-out);
}
.nav-toggle[aria-expanded="true"] span:nth-child(1) { transform: translateY(7px) rotate(45deg); }
.nav-toggle[aria-expanded="true"] span:nth-child(2) { opacity: 0; }
.nav-toggle[aria-expanded="true"] span:nth-child(3) { transform: translateY(-7px) rotate(-45deg); }

@media (max-width: 880px) {
  .nav-toggle { display: inline-flex; }
  .nav__list {
    position: fixed;
    top: var(--header-h); right: 0; bottom: 0; left: 0;
    width: 100%;
    height: calc(100dvh - var(--header-h));
    background: var(--bg-deep);
    flex-direction: column; align-items: stretch;
    padding: var(--space-6) var(--space-5);
    gap: var(--space-2);
    transform: translateY(-12px); opacity: 0; pointer-events: none;
    transition: transform var(--dur-base) var(--ease-out), opacity var(--dur-base) var(--ease-out);
    border-top: 1px solid var(--border);
    overflow-y: auto;
    z-index: 99;
  }
  .nav.is-open .nav__list {
    transform: translateY(0); opacity: 1; pointer-events: auto;
  }
  .nav__link { font-size: 1.1rem; padding: 1rem 1.1rem; }
  .nav .btn { margin-top: var(--space-3); }
}

/* ---------- Hero ---------- */
.hero {
  position: relative;
  padding-top: calc(var(--header-h) + clamp(3rem, 6vw, 6rem));
  padding-bottom: clamp(4rem, 8vw, 7rem);
  overflow: hidden;
  isolation: isolate;
}
.hero__bg {
  position: absolute; inset: 0; z-index: -1;
  background:
    radial-gradient(700px 500px at 75% 30%, rgba(0, 132, 240, 0.18), transparent 60%),
    radial-gradient(500px 400px at 20% 80%, rgba(0, 229, 255, 0.08), transparent 60%);
}
.hero__grid {
  position: absolute; inset: 0; z-index: -1;
  background-image:
    linear-gradient(rgba(255, 255, 255, 0.035) 1px, transparent 1px),
    linear-gradient(90deg, rgba(255, 255, 255, 0.035) 1px, transparent 1px);
  background-size: 64px 64px;
  mask-image: radial-gradient(ellipse 80% 60% at 50% 30%, #000 35%, transparent 75%);
  -webkit-mask-image: radial-gradient(ellipse 80% 60% at 50% 30%, #000 35%, transparent 75%);
}
.hero__inner {
  display: grid;
  grid-template-columns: 1.15fr 0.85fr;
  align-items: center;
  gap: clamp(2rem, 5vw, 5rem);
}
@media (max-width: 880px) {
  .hero__inner { grid-template-columns: 1fr; }
}
.hero__copy { max-width: 60ch; }
.hero__title { margin-block: var(--space-4) var(--space-5); }
.hero__title em { font-style: normal; }
.hero__sub { font-size: clamp(1.05rem, 1vw + 0.85rem, 1.25rem); color: var(--text-mid); margin-bottom: var(--space-7); }
.hero__cta { display: flex; flex-wrap: wrap; gap: var(--space-3); }
.hero__meta {
  margin-top: var(--space-7);
  display: flex; flex-wrap: wrap; align-items: center; gap: var(--space-5);
  color: var(--text-low); font-size: 0.92rem;
}
.hero__meta-item { display: inline-flex; align-items: center; gap: 0.5rem; }
.hero__meta-item svg { color: var(--brand-bright); flex-shrink: 0; }

/* Hero polygonal visual */
.hero__visual {
  position: relative; min-height: 420px;
  display: grid; place-items: center;
}
.poly-stack {
  position: relative; width: min(100%, 460px); aspect-ratio: 1;
}
.poly-stack svg { position: absolute; inset: 0; }
.poly-stack__main {
  filter: drop-shadow(0 30px 60px rgba(0, 132, 240, 0.35)) drop-shadow(0 0 60px rgba(0, 132, 240, 0.2));
  animation: float 9s ease-in-out infinite;
  transform-box: fill-box; transform-origin: center;
}
.poly-stack__halo {
  animation: spin 60s linear infinite;
  opacity: 0.5;
  transform-box: fill-box; transform-origin: center;
}
.poly-stack__dots {
  animation: float 12s ease-in-out infinite reverse;
  opacity: 0.7;
  transform-box: fill-box; transform-origin: center;
}

@keyframes float {
  0%, 100% { transform: translate(0, 0); }
  50% { transform: translate(0, -14px); }
}
@keyframes spin {
  from { transform: rotate(0); }
  to { transform: rotate(360deg); }
}

/* ---------- Stats / trust strip ---------- */
.stats {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(180px, 1fr));
  gap: 1px;
  background: var(--border);
  border: 1px solid var(--border);
  border-radius: var(--radius-lg);
  overflow: hidden;
}
.stat { padding: var(--space-6); background: var(--bg-surface); text-align: center; }
.stat__num {
  font-family: var(--font-display); font-weight: 700; font-size: 2.2rem;
  background: linear-gradient(135deg, var(--brand-bright), var(--accent-cyan));
  -webkit-background-clip: text; background-clip: text; color: transparent;
}
.stat__label { color: var(--text-mid); font-size: 0.92rem; margin-top: var(--space-2); }

/* ---------- Cards ---------- */
.card {
  position: relative;
  padding: var(--space-6);
  background: linear-gradient(180deg, rgba(255, 255, 255, 0.025), rgba(255, 255, 255, 0)) , var(--bg-surface);
  border: 1px solid var(--border);
  border-radius: var(--radius-lg);
  transition: transform var(--dur-base) var(--ease-out), border-color var(--dur-base) var(--ease-out), background var(--dur-base) var(--ease-out);
  overflow: hidden;
  isolation: isolate;
}
.card::before {
  content: ""; position: absolute; inset: 0; z-index: -1;
  background: radial-gradient(400px 250px at var(--mx, 50%) var(--my, 0%), rgba(0, 132, 240, 0.10), transparent 60%);
  opacity: 0; transition: opacity var(--dur-base) var(--ease-out);
}
.card:hover { transform: translateY(-3px); border-color: var(--border-brand); }
.card:hover::before { opacity: 1; }

.card--feature {
  display: grid; grid-template-rows: auto 1fr auto; gap: var(--space-4);
}
.card__icon {
  width: 48px; height: 48px;
  display: grid; place-items: center;
  background: linear-gradient(135deg, rgba(0, 132, 240, 0.18), rgba(0, 229, 255, 0.08));
  border: 1px solid var(--border-brand);
  color: var(--brand-bright);
  clip-path: polygon(15% 0, 85% 0, 100% 30%, 100% 70%, 85% 100%, 15% 100%, 0 70%, 0 30%);
  flex-shrink: 0;
}
.card__icon svg { width: 22px; height: 22px; }
.card__title { color: var(--text-high); }
.card__desc { color: var(--text-mid); font-size: 0.97rem; }
.card__list { list-style: none; padding: 0; margin: var(--space-3) 0 0 0; display: grid; gap: var(--space-2); }
.card__list li {
  font-size: 0.92rem; color: var(--text-mid);
  display: flex; align-items: flex-start; gap: 0.55rem;
}
.card__list li::before {
  content: ""; flex-shrink: 0; margin-top: 0.55em;
  width: 6px; height: 6px; background: var(--brand-bright);
  clip-path: polygon(50% 0, 100% 50%, 50% 100%, 0 50%);
}

/* ---------- Service tile (polygonal) ---------- */
.svc-grid { display: grid; grid-template-columns: repeat(auto-fit, minmax(260px, 1fr)); gap: var(--space-5); }
.svc-card {
  position: relative;
  padding: var(--space-7) var(--space-6) var(--space-6);
  display: flex;
  flex-direction: column;
  gap: var(--space-4);
}
.svc-card .card__icon { margin-bottom: var(--space-2); }
.svc-card .card__title { margin-top: 0; padding-right: 3rem; }
.svc-card__num {
  position: absolute; top: var(--space-5); right: var(--space-5);
  font-family: var(--font-display); font-weight: 700; font-size: 1.6rem;
  color: rgba(0, 132, 240, 0.32); letter-spacing: -0.02em;
  pointer-events: none; line-height: 1;
}

/* ---------- Process / Steps ---------- */
.steps { counter-reset: step; display: grid; gap: var(--space-5); grid-template-columns: repeat(auto-fit, minmax(260px, 1fr)); }
.step { position: relative; padding: var(--space-6); padding-top: var(--space-7); border: 1px solid var(--border); border-radius: var(--radius-lg); background: var(--bg-surface); counter-increment: step; }
.step::before {
  content: counter(step, decimal-leading-zero);
  position: absolute; top: -22px; left: var(--space-6);
  width: 44px; height: 44px;
  background: linear-gradient(135deg, var(--brand-primary), var(--brand-deep));
  display: grid; place-items: center;
  font-family: var(--font-display); font-weight: 700; color: var(--text-on-brand);
  clip-path: polygon(15% 0, 85% 0, 100% 30%, 100% 70%, 85% 100%, 15% 100%, 0 70%, 0 30%);
  box-shadow: 0 6px 20px rgba(0, 132, 240, 0.45);
}
.step h3 { margin-bottom: var(--space-2); }

/* ---------- Feature row (image + text) ---------- */
.feature-row {
  display: grid; grid-template-columns: 1fr 1fr; gap: clamp(2rem, 5vw, 4.5rem); align-items: center;
}
.feature-row.is-reverse > :first-child { order: 2; }
@media (max-width: 880px) {
  .feature-row { grid-template-columns: 1fr; }
  .feature-row.is-reverse > :first-child { order: 0; }
}
.feature-row__visual {
  position: relative; aspect-ratio: 5/4; min-height: 320px;
  background: linear-gradient(135deg, rgba(0, 132, 240, 0.10), rgba(0, 229, 255, 0.04));
  border: 1px solid var(--border-brand);
  border-radius: var(--radius-xl);
  overflow: hidden; isolation: isolate;
  display: grid; place-items: center;
}
.feature-row__visual::after {
  content: ""; position: absolute; inset: 0; z-index: -1;
  background-image:
    linear-gradient(rgba(255, 255, 255, 0.04) 1px, transparent 1px),
    linear-gradient(90deg, rgba(255, 255, 255, 0.04) 1px, transparent 1px);
  background-size: 32px 32px;
}
.feature-row__visual svg { width: 70%; height: auto; filter: drop-shadow(0 12px 40px rgba(0, 132, 240, 0.4)); }

/* ---------- Testimonials ---------- */
.testimonial {
  padding: var(--space-7) var(--space-6);
  background: linear-gradient(180deg, rgba(255, 255, 255, 0.025), transparent), var(--bg-surface);
  border: 1px solid var(--border); border-radius: var(--radius-lg);
  position: relative;
}
.testimonial__quote {
  font-family: var(--font-display); font-size: 1.18rem; line-height: 1.55;
  color: var(--text-high); margin-bottom: var(--space-5);
  text-wrap: balance;
}
.testimonial__quote::before {
  content: '"'; font-size: 3.5rem; color: var(--brand-bright); line-height: 0;
  display: inline-block; vertical-align: -0.45em; margin-right: 0.18em; margin-left: -0.1em;
  opacity: 0.7;
}
.testimonial__attr { display: flex; align-items: center; gap: var(--space-3); border-top: 1px solid var(--border); padding-top: var(--space-4); }
.testimonial__avatar {
  width: 44px; height: 44px; flex-shrink: 0;
  background: linear-gradient(135deg, var(--brand-primary), var(--brand-deep));
  display: grid; place-items: center;
  font-family: var(--font-display); font-weight: 700; color: var(--text-on-brand);
  clip-path: polygon(15% 0, 85% 0, 100% 30%, 100% 70%, 85% 100%, 15% 100%, 0 70%, 0 30%);
}
.testimonial__name { color: var(--text-high); font-weight: 600; }
.testimonial__role { color: var(--text-low); font-size: 0.88rem; }

/* ---------- FAQ ---------- */
.faq { max-width: 880px; margin: 0 auto; display: grid; gap: var(--space-3); }
.faq__item {
  border: 1px solid var(--border);
  border-radius: var(--radius-lg);
  background: var(--bg-surface);
  overflow: hidden;
  transition: border-color var(--dur-base) var(--ease-out);
}
.faq__item[open] { border-color: var(--border-brand); }
.faq__summary {
  padding: var(--space-5) var(--space-6);
  cursor: pointer; list-style: none;
  display: flex; align-items: center; justify-content: space-between; gap: var(--space-4);
  font-family: var(--font-display); font-weight: 600; font-size: 1.05rem;
  color: var(--text-high);
}
.faq__summary::-webkit-details-marker { display: none; }
.faq__summary::after {
  content: ""; flex-shrink: 0;
  width: 24px; height: 24px;
  background: rgba(0, 132, 240, 0.1);
  border: 1px solid var(--border-brand);
  border-radius: 6px;
  background-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' width='14' height='14' viewBox='0 0 14 14' fill='none'%3E%3Cpath d='M3 7h8M7 3v8' stroke='%230084F0' stroke-width='1.6' stroke-linecap='round'/%3E%3C/svg%3E");
  background-repeat: no-repeat; background-position: center;
  transition: transform var(--dur-base) var(--ease-out), background-color var(--dur-base) var(--ease-out);
}
.faq__item[open] .faq__summary::after {
  transform: rotate(45deg);
  background-color: rgba(0, 132, 240, 0.2);
}
.faq__body { padding: 0 var(--space-6) var(--space-5); color: var(--text-mid); }
.faq__body p + p { margin-top: var(--space-3); }

/* ---------- CTA section ---------- */
.cta-band {
  position: relative;
  padding: clamp(3rem, 6vw, 5rem) clamp(1.5rem, 4vw, 3rem);
  background:
    radial-gradient(800px 400px at 80% 0%, rgba(0, 132, 240, 0.18), transparent 60%),
    linear-gradient(180deg, rgba(0, 132, 240, 0.06), transparent), var(--bg-surface);
  border: 1px solid var(--border-brand);
  border-radius: var(--radius-xl);
  text-align: center;
  isolation: isolate;
  overflow: hidden;
}
.cta-band::after {
  content: ""; position: absolute; inset: 0; z-index: -1;
  background-image:
    linear-gradient(rgba(255, 255, 255, 0.035) 1px, transparent 1px),
    linear-gradient(90deg, rgba(255, 255, 255, 0.035) 1px, transparent 1px);
  background-size: 48px 48px;
  mask-image: radial-gradient(ellipse 80% 70% at 50% 50%, #000 30%, transparent 80%);
  -webkit-mask-image: radial-gradient(ellipse 80% 70% at 50% 50%, #000 30%, transparent 80%);
}
.cta-band h2 { max-width: 24ch; margin: 0 auto var(--space-4); }
.cta-band p { max-width: 56ch; margin: 0 auto var(--space-6); font-size: 1.1rem; }
.cta-band .btn-row { display: flex; flex-wrap: wrap; justify-content: center; gap: var(--space-3); }

/* ---------- Contact page grid ---------- */
.contact-grid {
  display: grid;
  grid-template-columns: minmax(0, 1.4fr) minmax(0, 1fr);
  align-items: start;
  gap: clamp(2rem, 5vw, 4rem);
}
@media (max-width: 800px) {
  .contact-grid { grid-template-columns: 1fr; }
}

/* ---------- Forms ---------- */
.form { display: grid; gap: var(--space-4); }
.field { display: grid; gap: var(--space-2); }
.field label { font-size: 0.88rem; font-weight: 600; color: var(--text-high); letter-spacing: 0.02em; }
.field label .req { color: var(--brand-bright); }
.input, .textarea {
  width: 100%;
  padding: 0.85rem 1rem;
  font: inherit; color: var(--text-high);
  background: var(--bg-deep);
  border: 1px solid var(--border-strong);
  border-radius: var(--radius-md);
  transition: border-color var(--dur-fast) var(--ease-out), box-shadow var(--dur-fast) var(--ease-out), background var(--dur-fast) var(--ease-out);
}
.input::placeholder, .textarea::placeholder { color: var(--text-low); }
.input:focus, .textarea:focus {
  outline: none;
  border-color: var(--brand-primary);
  box-shadow: 0 0 0 4px rgba(0, 132, 240, 0.18);
  background: rgba(0, 132, 240, 0.04);
}
.textarea { min-height: 140px; resize: vertical; font-family: inherit; }
.field--row { display: grid; grid-template-columns: 1fr 1fr; gap: var(--space-4); }
@media (max-width: 600px) { .field--row { grid-template-columns: 1fr; } }
.form__notice { font-size: 0.85rem; color: var(--text-low); }

.form-status {
  padding: var(--space-3) var(--space-4);
  border-radius: var(--radius-md);
  font-size: 0.92rem;
  display: none;
}
.form-status.is-success { display: block; background: rgba(45, 212, 191, 0.1); border: 1px solid rgba(45, 212, 191, 0.4); color: var(--success); }
.form-status.is-error { display: block; background: rgba(239, 68, 68, 0.1); border: 1px solid rgba(239, 68, 68, 0.4); color: var(--danger); }

/* ---------- Pricing ---------- */
.pricing { display: grid; grid-template-columns: repeat(auto-fit, minmax(280px, 1fr)); gap: var(--space-5); }
.tier {
  position: relative;
  padding: var(--space-7) var(--space-6);
  background: var(--bg-surface);
  border: 1px solid var(--border);
  border-radius: var(--radius-lg);
  display: flex; flex-direction: column;
  transition: transform var(--dur-base) var(--ease-out), border-color var(--dur-base) var(--ease-out);
}
.tier:hover { transform: translateY(-3px); border-color: var(--border-brand); }
.tier--featured {
  background: linear-gradient(180deg, rgba(0, 132, 240, 0.08), transparent), var(--bg-surface);
  border-color: var(--border-brand);
  box-shadow: 0 30px 60px rgba(0, 0, 0, 0.3), 0 0 60px var(--brand-glow-soft);
}
.tier__badge {
  position: absolute; top: -12px; left: var(--space-6);
  padding: 0.3rem 0.8rem;
  font-family: var(--font-display); font-size: 0.78rem; font-weight: 600; letter-spacing: 0.16em; text-transform: uppercase;
  background: linear-gradient(135deg, var(--brand-primary), var(--brand-deep)); color: var(--text-on-brand);
  border-radius: var(--radius-pill);
}
.tier__name { font-family: var(--font-display); font-weight: 600; font-size: 1.25rem; color: var(--text-high); }
.tier__duration { color: var(--text-low); font-size: 0.92rem; margin-top: var(--space-1); }
.tier__price {
  margin: var(--space-5) 0;
  display: flex; align-items: baseline; gap: 0.4rem;
}
.tier__price-num { font-family: var(--font-display); font-weight: 700; font-size: 2.5rem; color: var(--text-high); letter-spacing: -0.02em; }
.tier__price-unit { color: var(--text-low); font-size: 0.95rem; }
.tier__features { list-style: none; padding: 0; margin: 0 0 var(--space-6) 0; display: grid; gap: var(--space-3); flex: 1; }
.tier__features li {
  font-size: 0.95rem; color: var(--text-mid);
  display: flex; align-items: flex-start; gap: 0.55rem;
}
.tier__features li::before {
  content: ""; flex-shrink: 0; margin-top: 0.4em; width: 14px; height: 14px;
  background: rgba(0, 132, 240, 0.15);
  border: 1px solid var(--border-brand);
  border-radius: 4px;
  background-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' width='10' height='10' viewBox='0 0 10 10' fill='none'%3E%3Cpath d='M2 5l2 2 4-4' stroke='%230084F0' stroke-width='1.6' stroke-linecap='round' stroke-linejoin='round'/%3E%3C/svg%3E");
  background-repeat: no-repeat; background-position: center;
}

/* ---------- Logo grid (employers) ---------- */
.logo-grid {
  display: grid; grid-template-columns: repeat(auto-fit, minmax(140px, 1fr));
  gap: var(--space-1);
  background: var(--border); border: 1px solid var(--border);
  border-radius: var(--radius-lg);
  overflow: hidden;
}
.logo-grid__item {
  background: var(--bg-surface);
  padding: var(--space-6) var(--space-4);
  display: grid; place-items: center;
  font-family: var(--font-display); font-weight: 600; font-size: 0.95rem;
  color: var(--text-mid); letter-spacing: 0.04em;
  transition: color var(--dur-base) var(--ease-out), background var(--dur-base) var(--ease-out);
}
.logo-grid__item:hover { color: var(--text-high); background: var(--bg-elevated); }

/* ---------- Footer ---------- */
.site-footer {
  position: relative;
  padding-block: var(--space-8) var(--space-5);
  background: var(--bg-deep);
  border-top: 1px solid var(--border);
  margin-top: var(--space-8);
}
.site-footer::before {
  content: ""; position: absolute; top: 0; left: 0; right: 0; height: 1px;
  background: linear-gradient(90deg, transparent, var(--brand-primary), transparent);
  opacity: 0.4;
}
.footer-grid {
  display: grid;
  grid-template-columns: 1.4fr 1fr 1fr 1fr;
  gap: clamp(2rem, 4vw, 3rem);
  padding-bottom: var(--space-7);
  border-bottom: 1px solid var(--border);
}
@media (max-width: 880px) { .footer-grid { grid-template-columns: 1fr 1fr; } }
@media (max-width: 540px) { .footer-grid { grid-template-columns: 1fr; } }
.footer-col h4 {
  font-family: var(--font-display); font-size: 0.78rem; font-weight: 600;
  letter-spacing: 0.16em; text-transform: uppercase;
  color: var(--text-low); margin-bottom: var(--space-4);
}
.footer-col ul { list-style: none; padding: 0; display: grid; gap: var(--space-2); }
.footer-col a { color: var(--text-mid); font-size: 0.95rem; }
.footer-col a:hover { color: var(--text-high); }
.footer-brand p { font-size: 0.95rem; max-width: 36ch; margin-top: var(--space-3); }
.footer-contact-item { display: flex; align-items: flex-start; gap: 0.6rem; color: var(--text-mid); font-size: 0.95rem; }
.footer-contact-item svg { color: var(--brand-bright); flex-shrink: 0; margin-top: 0.2em; }

.site-footer__bottom {
  padding-top: var(--space-5);
  display: flex; flex-wrap: wrap; align-items: center; justify-content: space-between; gap: var(--space-4);
  font-size: 0.88rem; color: var(--text-low);
}
.site-footer__bottom p { color: var(--text-low); }

/* ---------- Polygonal section divider ---------- */
.poly-divider {
  position: relative; height: 60px;
  background: linear-gradient(180deg, transparent, rgba(0, 132, 240, 0.04));
  margin-block: -1px;
}
.poly-divider::before {
  content: ""; position: absolute; inset: 0;
  background-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' width='100' height='60' viewBox='0 0 100 60' preserveAspectRatio='none'%3E%3Cpath d='M0 30 L25 5 L50 30 L75 5 L100 30 V60 H0 Z' fill='%23050810'/%3E%3C/svg%3E");
  background-size: 200px 60px;
  background-repeat: repeat-x;
  opacity: 0.5;
}

/* ---------- Reveal on scroll ---------- */
.reveal {
  opacity: 0; transform: translateY(20px);
  transition: opacity 700ms var(--ease-out), transform 700ms var(--ease-out);
  transition-delay: var(--reveal-delay, 0ms);
}
.reveal.is-visible { opacity: 1; transform: none; }

@media (prefers-reduced-motion: reduce) {
  *, *::before, *::after { animation: none !important; transition: none !important; }
  html { scroll-behavior: auto; }
  .reveal { opacity: 1; transform: none; }
}

/* ---------- Page hero (interior pages) ---------- */
.page-hero {
  position: relative;
  padding-top: calc(var(--header-h) + clamp(3rem, 6vw, 5rem));
  padding-bottom: clamp(3rem, 5vw, 4.5rem);
  text-align: center;
  isolation: isolate;
  overflow: hidden;
}
.page-hero::before {
  content: ""; position: absolute; inset: 0; z-index: -1;
  background:
    radial-gradient(700px 400px at 50% -10%, rgba(0, 132, 240, 0.15), transparent 60%),
    linear-gradient(180deg, rgba(0, 132, 240, 0.04), transparent);
}
.page-hero::after {
  content: ""; position: absolute; inset: 0; z-index: -1;
  background-image:
    linear-gradient(rgba(255, 255, 255, 0.03) 1px, transparent 1px),
    linear-gradient(90deg, rgba(255, 255, 255, 0.03) 1px, transparent 1px);
  background-size: 56px 56px;
  mask-image: radial-gradient(ellipse 70% 50% at 50% 30%, #000 35%, transparent 75%);
  -webkit-mask-image: radial-gradient(ellipse 70% 50% at 50% 30%, #000 35%, transparent 75%);
  opacity: 0.7;
}
.page-hero h1 { margin-top: var(--space-4); margin-bottom: var(--space-4); }
.page-hero p { max-width: 64ch; margin: 0 auto; font-size: 1.15rem; }

/* ---------- Crumbs ---------- */
.crumbs {
  display: inline-flex; gap: 0.5rem; align-items: center;
  font-size: 0.85rem; color: var(--text-low);
}
.crumbs a { color: var(--text-mid); }
.crumbs a:hover { color: var(--text-high); }

/* ---------- Utility ---------- */
.text-center { text-align: center; }
.mt-4 { margin-top: var(--space-4); }
.mt-6 { margin-top: var(--space-6); }
.mt-8 { margin-top: var(--space-8); }

/* =========================================================================
   SVG motion layer
   ========================================================================= */

/* Make SVG element transforms rotate/scale around their own center */
[class*="anim-"] { transform-box: fill-box; transform-origin: center; }

@keyframes pulse-glow {
  0%, 100% { opacity: 0.6; transform: scale(1); }
  50%      { opacity: 1;   transform: scale(1.06); }
}
@keyframes pulse-soft {
  0%, 100% { opacity: 0.45; }
  50%      { opacity: 1; }
}
@keyframes spin-slow {
  from { transform: rotate(0deg); }
  to   { transform: rotate(360deg); }
}
@keyframes spin-reverse {
  from { transform: rotate(0deg); }
  to   { transform: rotate(-360deg); }
}
@keyframes dataflow {
  from { stroke-dashoffset: 200; }
  to   { stroke-dashoffset: 0; }
}
@keyframes dataflow-reverse {
  from { stroke-dashoffset: 0; }
  to   { stroke-dashoffset: 200; }
}
@keyframes vertex-pulse {
  0%, 100% { transform: scale(1);   opacity: 0.8; }
  50%      { transform: scale(1.6); opacity: 1; }
}
@keyframes float-y {
  0%, 100% { transform: translateY(0); }
  50%      { transform: translateY(-6px); }
}
@keyframes float-x {
  0%, 100% { transform: translateX(0); }
  50%      { transform: translateX(4px); }
}
@keyframes radar {
  0%   { transform: scale(0.6); opacity: 0.7; }
  100% { transform: scale(2.1); opacity: 0; }
}
@keyframes draw {
  from { stroke-dashoffset: var(--draw-len, 300); }
  to   { stroke-dashoffset: 0; }
}
@keyframes shimmer {
  0%, 100% { opacity: 0.7; filter: brightness(1); }
  50%      { opacity: 1;   filter: brightness(1.3); }
}

/* Utility classes — apply directly to SVG elements */
.anim-pulse-glow    { animation: pulse-glow 3.6s var(--ease-in-out) infinite; }
.anim-pulse-soft    { animation: pulse-soft 2.8s var(--ease-in-out) infinite; }
.anim-spin-slow     { animation: spin-slow 28s linear infinite; }
.anim-spin-reverse  { animation: spin-reverse 36s linear infinite; }
.anim-dataflow     { stroke-dasharray: 8 14; animation: dataflow 1.8s linear infinite; }
.anim-dataflow-rev { stroke-dasharray: 8 14; animation: dataflow-reverse 2.4s linear infinite; }
.anim-vertex       { animation: vertex-pulse 2.6s var(--ease-in-out) infinite; }
.anim-float-y      { animation: float-y 4.5s var(--ease-in-out) infinite; }
.anim-float-x      { animation: float-x 5.2s var(--ease-in-out) infinite; }
.anim-radar        { transform-origin: center; animation: radar 3.2s ease-out infinite; }
.anim-shimmer      { animation: shimmer 2.4s var(--ease-in-out) infinite; }

/* Stagger helpers */
.delay-1 { animation-delay: 0.2s; }
.delay-2 { animation-delay: 0.4s; }
.delay-3 { animation-delay: 0.6s; }
.delay-4 { animation-delay: 0.9s; }
.delay-5 { animation-delay: 1.2s; }
.delay-6 { animation-delay: 1.5s; }
.delay-7 { animation-delay: 1.8s; }
.delay-8 { animation-delay: 2.1s; }

/* Card icons: subtle ambient float + grow on card hover */
.card__icon { transition: transform 420ms var(--ease-out), filter 420ms var(--ease-out); }
.card__icon svg { animation: float-y 5s var(--ease-in-out) infinite; }
.card:hover .card__icon { transform: scale(1.08) rotate(-2deg); filter: drop-shadow(0 8px 20px var(--brand-glow-soft)); }
.card:hover .card__icon svg { animation-play-state: paused; }

/* Service card number ambient shimmer */
.svc-card__num { transition: color 600ms var(--ease-out), text-shadow 600ms var(--ease-out); }
.svc-card:hover .svc-card__num {
  color: rgba(0, 132, 240, 0.45);
  text-shadow: 0 0 30px rgba(0, 132, 240, 0.4);
}

/* Logo grid items: brand glow on hover */
.logo-grid__item { position: relative; isolation: isolate; }
.logo-grid__item::after {
  content: ""; position: absolute; inset: 0; z-index: -1;
  background: radial-gradient(circle at center, rgba(0, 132, 240, 0.22), transparent 65%);
  opacity: 0; transition: opacity 400ms var(--ease-out);
}
.logo-grid__item:hover::after { opacity: 1; }

/* Process step numbers: pulse subtly */
.step::before { animation: pulse-glow 4s var(--ease-in-out) infinite; }
.step:hover::before { animation: spin-slow 6s linear infinite; }

/* Eyebrow diamond: subtle pulse */
.eyebrow::before { animation: pulse-soft 2.4s var(--ease-in-out) infinite; }

/* Tier featured: subtle floating glow */
.tier--featured { animation: float-y 6s var(--ease-in-out) infinite; }
.tier--featured:hover { animation-play-state: paused; }

/* Pause all decorative animations when reduced motion is requested */
@media (prefers-reduced-motion: reduce) {
  [class*="anim-"], .card__icon svg, .step::before, .eyebrow::before, .tier--featured {
    animation: none !important;
  }
}
.hide-sm { display: initial; }
@media (max-width: 600px) { .hide-sm { display: none; } }
