/* teamworx4 */
/* operational intelligence for teams that can't afford to guess */

/* this took longer than i'd like to admit */
/* cabinet grotesk for the industrial-editorial tension it creates */
/* the grid is 12-col at desktop, 4-col on mobile — resist adding a 6-col phase */
/* execution score ring: pure SVG stroke-dashoffset, no library */
/* tried a dark sidebar nav first. killed it. this is better */
/* the capacity calculator was rebuilt twice. third time held */
/* safari strikes again — this fix is load-bearing */
/* z-index: 9 because 10 felt arrogant */
/* don't let anyone talk you into a CSS framework here */
/* the spacing scale took three rounds. this is the one */
/* bottleneck analyzer color bands: don't touch those hex values */

/* ============================================================
   reset
   ============================================================ */
*, *::before, *::after { box-sizing: border-box; margin: 0; padding: 0; }
html { scroll-behavior: smooth; -webkit-text-size-adjust: 100%; }
body { line-height: 1.6; -webkit-font-smoothing: antialiased; }
img, svg { display: block; max-width: 100%; }
button { cursor: pointer; background: none; border: none; font: inherit; }
a { color: inherit; text-decoration: none; }
ul, ol { list-style: none; }
input, textarea, select { font: inherit; }

/* ============================================================
   tokens
   ============================================================ */
:root {
  /* color system */
  --c-navy:        #0D1B2A;
  --c-navy-mid:    #1A2D42;
  --c-navy-light:  #243955;
  --c-graphite:    #2E3A47;
  --c-steel:       #4A5568;
  --c-muted:       #718096;
  --c-subtle:      #A0AEC0;
  --c-border:      #CBD5E0;
  --c-border-light:#E2E8F0;
  --c-surface:     #F7F9FC;
  --c-white:       #FFFFFF;
  --c-blue:        #0057FF;
  --c-blue-dark:   #0040CC;
  --c-blue-light:  #E8F0FF;
  --c-green:       #2D9E6B;
  --c-green-light: #E6F6EE;
  --c-amber:       #D97706;
  --c-amber-light: #FEF3C7;
  --c-red:         #DC2626;

  /* typography */
  --font-head:  'Cabinet Grotesk', 'Arial', sans-serif;
  --font-body:  'Literata', 'Georgia', serif;
  --font-mono:  'JetBrains Mono', 'Courier New', monospace;

  /* scale */
  --text-xs:   0.75rem;
  --text-sm:   0.875rem;
  --text-base: 1rem;
  --text-lg:   1.125rem;
  --text-xl:   1.25rem;
  --text-2xl:  1.5rem;
  --text-3xl:  1.875rem;
  --text-4xl:  2.25rem;
  --text-5xl:  3rem;
  --text-6xl:  3.75rem;

  /* spacing */
  --sp-1:  0.25rem;
  --sp-2:  0.5rem;
  --sp-3:  0.75rem;
  --sp-4:  1rem;
  --sp-5:  1.25rem;
  --sp-6:  1.5rem;
  --sp-8:  2rem;
  --sp-10: 2.5rem;
  --sp-12: 3rem;
  --sp-16: 4rem;
  --sp-20: 5rem;
  --sp-24: 6rem;
  --sp-32: 8rem;

  /* layout */
  --container-max: 1280px;
  --container-pad: var(--sp-6);
  --header-h:      64px;

  /* radius */
  --r-sm:  4px;
  --r-md:  8px;
  --r-lg:  12px;
  --r-xl:  16px;
  --r-2xl: 24px;

  /* shadows */
  --shadow-sm:  0 1px 3px rgba(13,27,42,0.08), 0 1px 2px rgba(13,27,42,0.06);
  --shadow-md:  0 4px 12px rgba(13,27,42,0.10), 0 2px 4px rgba(13,27,42,0.06);
  --shadow-lg:  0 10px 30px rgba(13,27,42,0.12), 0 4px 8px rgba(13,27,42,0.06);
  --shadow-xl:  0 20px 50px rgba(13,27,42,0.15);

  /* transitions */
  --t-fast:   150ms ease;
  --t-base:   250ms ease;
  --t-slow:   400ms ease;

  /* z-index */
  --z-base:    1;
  --z-card:    2;
  --z-tooltip: 9;
  --z-header:  100;
  --z-mobile:  200;
  --z-cookie:  300;

  /* logo */
  --logo-w: 160px;
  --logo-h: 36px;
}

/* ============================================================
   base
   ============================================================ */
body {
  font-family: var(--font-body);
  font-size: var(--text-base);
  color: var(--c-navy);
  background: var(--c-white);
}

h1, h2, h3, h4, h5, h6 {
  font-family: var(--font-head);
  font-weight: 700;
  line-height: 1.2;
  color: var(--c-navy);
}

h1 { font-size: var(--text-5xl); letter-spacing: -0.03em; }
h2 { font-size: var(--text-4xl); letter-spacing: -0.02em; }
h3 { font-size: var(--text-2xl); letter-spacing: -0.01em; }
h4 { font-size: var(--text-xl); }
h5 { font-size: var(--text-lg); }
h6 { font-size: var(--text-base); }

p { color: var(--c-graphite); line-height: 1.75; }
strong { font-weight: 700; color: var(--c-navy); }

a:hover { color: var(--c-blue); }

/* ============================================================
   layout
   ============================================================ */
.container {
  max-width: var(--container-max);
  margin: 0 auto;
  padding: 0 var(--container-pad);
}

main { padding-top: var(--header-h); }

.section { padding: var(--sp-20) 0; }
.section--lg { padding: var(--sp-32) 0; }
.section--sm { padding: var(--sp-12) 0; }

.section-label {
  font-family: var(--font-head);
  font-size: var(--text-xs);
  font-weight: 700;
  letter-spacing: 0.12em;
  text-transform: uppercase;
  color: var(--c-blue);
  margin-bottom: var(--sp-4);
}

.section-title {
  font-size: var(--text-4xl);
  margin-bottom: var(--sp-4);
}

.section-lead {
  font-size: var(--text-lg);
  color: var(--c-steel);
  max-width: 600px;
  margin-bottom: var(--sp-12);
}

.grid-2 { display: grid; grid-template-columns: repeat(2, 1fr); gap: var(--sp-8); }
.grid-3 { display: grid; grid-template-columns: repeat(3, 1fr); gap: var(--sp-6); }
.grid-4 { display: grid; grid-template-columns: repeat(4, 1fr); gap: var(--sp-6); }

.flex { display: flex; }
.flex-center { display: flex; align-items: center; justify-content: center; }
.flex-between { display: flex; align-items: center; justify-content: space-between; }

/* ============================================================
   header
   ============================================================ */
#site-header {
  position: fixed;
  top: 0; left: 0; right: 0;
  background: rgba(255,255,255,0.97);
  border-bottom: 1px solid var(--c-border-light);
  backdrop-filter: blur(8px);
  -webkit-backdrop-filter: blur(8px);
  z-index: var(--z-header);
  transition: box-shadow var(--t-base);
}

#site-header.scrolled { box-shadow: var(--shadow-md); }

#site-header .container { height: 100%; }

.nav-inner {
  display: flex;
  align-items: center;
  height: 100%;
  gap: var(--sp-8);
}

.nav-logo {
  display: flex;
  align-items: center;
  flex-shrink: 0;
}

.nav-logo img {
  max-width: var(--logo-w);
  max-height: var(--logo-h);
  width: auto;
  height: auto;
  display: block;
}

.nav-links {
  display: flex;
  align-items: center;
  gap: var(--sp-1);
  flex: 1;
  flex-wrap: wrap;
    padding: 10px 0;
}

.nav-links a {
  font-family: var(--font-head);
  font-size: var(--text-sm);
  font-weight: 600;
  color: var(--c-graphite);
  padding: var(--sp-2) var(--sp-3);
  border-radius: var(--r-md);
  transition: color var(--t-fast), background var(--t-fast);
}

.nav-links a:hover { color: var(--c-blue); background: var(--c-blue-light); }
.nav-links a.active { color: var(--c-blue); }

.nav-actions { margin-left: auto; }

.btn {
  display: inline-flex;
  align-items: center;
  gap: var(--sp-2);
  font-family: var(--font-head);
  font-weight: 700;
  font-size: var(--text-sm);
  padding: var(--sp-2) var(--sp-5);
  border-radius: var(--r-md);
  transition: all var(--t-fast);
  white-space: nowrap;
}

.btn-primary {
  background: var(--c-blue);
  color: var(--c-white);
  border: 2px solid var(--c-blue);
}
.btn-primary:hover { background: var(--c-blue-dark); border-color: var(--c-blue-dark); color: var(--c-white); }

.btn-outline {
  background: transparent;
  color: var(--c-navy);
  border: 2px solid var(--c-border);
}
.btn-outline:hover { border-color: var(--c-navy); color: var(--c-navy); }

.btn-lg { font-size: var(--text-base); padding: var(--sp-3) var(--sp-8); }
.btn-sm { font-size: var(--text-xs); padding: var(--sp-1) var(--sp-3); }

.hamburger {
  display: none;
  flex-direction: column;
  gap: 5px;
  padding: var(--sp-2);
  margin-left: auto;
}

.hamburger span {
  display: block;
  width: 22px;
  height: 2px;
  background: var(--c-navy);
  border-radius: 2px;
  transition: all var(--t-base);
}

/* ============================================================
   mobile menu
   ============================================================ */
.mobile-menu {
  display: none;
  position: fixed;
  top: var(--header-h);
  left: 0; right: 0;
  background: var(--c-white);
  border-bottom: 1px solid var(--c-border);
  padding: var(--sp-6);
  z-index: var(--z-mobile);
  flex-direction: column;
  gap: var(--sp-2);
  box-shadow: var(--shadow-lg);
}

.mobile-menu.open { display: flex; }

.mobile-menu a {
  font-family: var(--font-head);
  font-size: var(--text-base);
  font-weight: 600;
  color: var(--c-graphite);
  padding: var(--sp-3) var(--sp-4);
  border-radius: var(--r-md);
  border: 1px solid transparent;
  transition: all var(--t-fast);
}

.mobile-menu a:hover { color: var(--c-blue); background: var(--c-blue-light); border-color: var(--c-blue-light); }

.mobile-menu .btn-primary {
  margin-top: var(--sp-4);
  justify-content: center;
}

/* ============================================================
   reading progress
   ============================================================ */
#reading-progress {
  position: fixed;
  top: var(--header-h);
  left: 0;
  width: 0%;
  height: 3px;
  background: var(--c-blue);
  z-index: var(--z-header);
  transition: width 0.1s linear;
}

/* ============================================================
   back to top
   ============================================================ */
#back-to-top {
  position: fixed;
  bottom: var(--sp-8);
  right: var(--sp-8);
  width: 44px;
  height: 44px;
  background: var(--c-navy);
  color: var(--c-white);
  border-radius: var(--r-md);
  display: flex;
  align-items: center;
  justify-content: center;
  opacity: 0;
  pointer-events: none;
  transition: opacity var(--t-base), transform var(--t-base);
  z-index: var(--z-tooltip);
  cursor: pointer;
}

#back-to-top.visible {
  opacity: 1;
  pointer-events: auto;
}

#back-to-top:hover { background: var(--c-blue); transform: translateY(-2px); }

/* ============================================================
   breadcrumb
   ============================================================ */
.breadcrumb {
  padding: var(--sp-4) 0;
  border-bottom: 1px solid var(--c-border-light);
  margin-bottom: var(--sp-8);
}

.breadcrumb ol {
  display: flex;
  align-items: center;
  gap: var(--sp-2);
  list-style: none;
}

.breadcrumb li {
  display: flex;
  align-items: center;
  gap: var(--sp-2);
  font-family: var(--font-head);
  font-size: var(--text-sm);
}

.breadcrumb li + li::before {
  content: "›";
  color: var(--c-subtle);
}

.breadcrumb a { color: var(--c-steel); }
.breadcrumb a:hover { color: var(--c-blue); }
.breadcrumb li:last-child { color: var(--c-navy); font-weight: 600; }

/* ============================================================
   hero
   ============================================================ */
.hero {
  background: var(--c-navy);
  padding: var(--sp-24) 0 var(--sp-20);
  position: relative;
  overflow: hidden;
}

.hero::before {
  content: '';
  position: absolute;
  top: 0; left: 0; right: 0; bottom: 0;
  background: 
    radial-gradient(ellipse at 80% 20%, rgba(0,87,255,0.15) 0%, transparent 60%),
    radial-gradient(ellipse at 20% 80%, rgba(45,158,107,0.08) 0%, transparent 50%);
}

.hero-grid {
  position: absolute;
  top: 0; left: 0; right: 0; bottom: 0;
  background-image: 
    linear-gradient(rgba(0,87,255,0.06) 1px, transparent 1px),
    linear-gradient(90deg, rgba(0,87,255,0.06) 1px, transparent 1px);
  background-size: 60px 60px;
}

.hero .container { position: relative; z-index: var(--z-base); }

.hero-label {
  display: inline-flex;
  align-items: center;
  gap: var(--sp-2);
  font-family: var(--font-head);
  font-size: var(--text-xs);
  font-weight: 700;
  letter-spacing: 0.12em;
  text-transform: uppercase;
  color: var(--c-blue);
  background: rgba(0,87,255,0.12);
  border: 1px solid rgba(0,87,255,0.25);
  padding: var(--sp-2) var(--sp-4);
  border-radius: 100px;
  margin-bottom: var(--sp-6);
}

.hero-title {
  font-size: clamp(2.25rem, 5vw, 3.75rem);
  color: var(--c-white);
  max-width: 800px;
  margin-bottom: var(--sp-6);
  letter-spacing: -0.03em;
}

.hero-title .accent { color: var(--c-blue); }

.hero-body {
  font-size: var(--text-lg);
  color: rgba(255,255,255,0.7);
  max-width: 560px;
  margin-bottom: var(--sp-10);
  font-family: var(--font-body);
}

.hero-actions {
  display: flex;
  align-items: center;
  gap: var(--sp-4);
  flex-wrap: wrap;
}

.btn-hero {
  background: var(--c-blue);
  color: var(--c-white);
  border: 2px solid var(--c-blue);
  font-size: var(--text-base);
  padding: var(--sp-3) var(--sp-8);
  border-radius: var(--r-md);
  font-family: var(--font-head);
  font-weight: 700;
  transition: all var(--t-base);
}
.btn-hero:hover { background: var(--c-blue-dark); border-color: var(--c-blue-dark); color: var(--c-white); transform: translateY(-1px); box-shadow: 0 8px 20px rgba(0,87,255,0.3); }

.btn-hero-ghost {
  background: transparent;
  color: rgba(255,255,255,0.85);
  border: 2px solid rgba(255,255,255,0.25);
  font-size: var(--text-base);
  padding: var(--sp-3) var(--sp-8);
  border-radius: var(--r-md);
  font-family: var(--font-head);
  font-weight: 600;
  transition: all var(--t-base);
}
.btn-hero-ghost:hover { border-color: rgba(255,255,255,0.6); color: var(--c-white); }

/* ============================================================
   ops status board (homepage unique component)
   ============================================================ */
.ops-board {
  background: var(--c-navy);
  border-top: 1px solid rgba(255,255,255,0.06);
  padding: var(--sp-6) 0;
}

.ops-board-inner {
  display: grid;
  grid-template-columns: repeat(5, 1fr);
  gap: 1px;
  background: rgba(255,255,255,0.06);
  border-radius: var(--r-lg);
  overflow: hidden;
}

.ops-metric {
  background: rgba(255,255,255,0.03);
  padding: var(--sp-5) var(--sp-6);
  transition: background var(--t-fast);
}

.ops-metric:hover { background: rgba(0,87,255,0.08); }

.ops-metric-label {
  font-family: var(--font-head);
  font-size: var(--text-xs);
  font-weight: 600;
  letter-spacing: 0.08em;
  text-transform: uppercase;
  color: rgba(255,255,255,0.4);
  margin-bottom: var(--sp-2);
}

.ops-metric-value {
  font-family: var(--font-head);
  font-size: var(--text-3xl);
  font-weight: 800;
  color: var(--c-white);
  line-height: 1;
  margin-bottom: var(--sp-1);
}

.ops-metric-value .unit {
  font-size: var(--text-base);
  font-weight: 600;
  color: rgba(255,255,255,0.5);
}

.ops-metric-delta {
  font-family: var(--font-head);
  font-size: var(--text-xs);
  font-weight: 600;
  display: flex;
  align-items: center;
  gap: var(--sp-1);
}

.ops-metric-delta.up { color: var(--c-green); }
.ops-metric-delta.down { color: var(--c-red); }

/* ============================================================
   workflow selector (homepage component)
   ============================================================ */
.workflow-selector {
  background: var(--c-surface);
  border: 1px solid var(--c-border);
  border-radius: var(--r-xl);
  overflow: hidden;
}

.workflow-tabs {
  display: flex;
  background: var(--c-white);
  border-bottom: 1px solid var(--c-border);
  overflow-x: auto;
}

.workflow-tab {
  font-family: var(--font-head);
  font-size: var(--text-sm);
  font-weight: 600;
  color: var(--c-steel);
  padding: var(--sp-4) var(--sp-6);
  border-bottom: 3px solid transparent;
  white-space: nowrap;
  transition: all var(--t-fast);
  cursor: pointer;
  background: none;
  border-left: none;
  border-right: none;
  border-top: none;
}

.workflow-tab:hover { color: var(--c-navy); }
.workflow-tab.active { color: var(--c-blue); border-bottom-color: var(--c-blue); background: var(--c-blue-light); }

.workflow-content { display: none; padding: var(--sp-10); }
.workflow-content.active { display: grid; grid-template-columns: 1fr 1fr; gap: var(--sp-10); align-items: center; }

.workflow-steps { display: flex; flex-direction: column; gap: var(--sp-4); }

.workflow-step {
  display: flex;
  gap: var(--sp-4);
  align-items: flex-start;
}

.workflow-step-num {
  flex-shrink: 0;
  width: 28px;
  height: 28px;
  background: var(--c-blue);
  color: var(--c-white);
  border-radius: 50%;
  display: flex;
  align-items: center;
  justify-content: center;
  font-family: var(--font-head);
  font-size: var(--text-xs);
  font-weight: 700;
}

.workflow-step-text h4 {
  font-size: var(--text-base);
  margin-bottom: var(--sp-1);
}

.workflow-step-text p {
  font-size: var(--text-sm);
  color: var(--c-steel);
}

.workflow-visual {
  background: var(--c-navy);
  border-radius: var(--r-lg);
  padding: var(--sp-8);
  position: relative;
}

.workflow-diagram {
  display: flex;
  flex-direction: column;
  gap: var(--sp-3);
}

.wf-node {
  background: rgba(255,255,255,0.06);
  border: 1px solid rgba(255,255,255,0.1);
  border-radius: var(--r-md);
  padding: var(--sp-3) var(--sp-4);
  display: flex;
  align-items: center;
  gap: var(--sp-3);
}

.wf-node-dot {
  width: 8px;
  height: 8px;
  border-radius: 50%;
  flex-shrink: 0;
}

.wf-node-text {
  font-family: var(--font-head);
  font-size: var(--text-sm);
  font-weight: 600;
  color: rgba(255,255,255,0.85);
}

.wf-node-badge {
  margin-left: auto;
  font-family: var(--font-head);
  font-size: var(--text-xs);
  font-weight: 700;
  padding: 2px 8px;
  border-radius: 100px;
}

.wf-connector {
  width: 2px;
  height: var(--sp-3);
  background: rgba(255,255,255,0.12);
  margin-left: var(--sp-5);
}

/* ============================================================
   service cards
   ============================================================ */
.service-card {
  background: var(--c-white);
  border: 1px solid var(--c-border);
  border-radius: var(--r-lg);
  padding: var(--sp-8);
  transition: all var(--t-base);
  cursor: pointer;
  position: relative;
  overflow: hidden;
}

.service-card::before {
  content: '';
  position: absolute;
  top: 0; left: 0; right: 0;
  height: 3px;
  background: var(--c-blue);
  transform: scaleX(0);
  transform-origin: left;
  transition: transform var(--t-base);
}

.service-card:hover { box-shadow: var(--shadow-lg); transform: translateY(-2px); border-color: var(--c-border); }
.service-card:hover::before { transform: scaleX(1); }

.service-icon {
  width: 48px;
  height: 48px;
  background: var(--c-blue-light);
  border-radius: var(--r-md);
  display: flex;
  align-items: center;
  justify-content: center;
  margin-bottom: var(--sp-5);
  color: var(--c-blue);
}

.service-card h3 {
  font-size: var(--text-xl);
  margin-bottom: var(--sp-3);
}

.service-card p {
  font-size: var(--text-sm);
  color: var(--c-steel);
  margin-bottom: var(--sp-5);
}

.service-link {
  font-family: var(--font-head);
  font-size: var(--text-sm);
  font-weight: 700;
  color: var(--c-blue);
  display: flex;
  align-items: center;
  gap: var(--sp-2);
}

/* ============================================================
   stats strip
   ============================================================ */
.stats-strip {
  background: var(--c-navy);
  padding: var(--sp-16) 0;
}

.stats-grid {
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  gap: var(--sp-8);
  text-align: center;
}

.stat-item {}

.stat-value {
  font-family: var(--font-head);
  font-size: var(--text-5xl);
  font-weight: 800;
  color: var(--c-white);
  line-height: 1;
  margin-bottom: var(--sp-2);
}

.stat-value .stat-accent { color: var(--c-blue); }

.stat-label {
  font-family: var(--font-head);
  font-size: var(--text-sm);
  font-weight: 600;
  color: rgba(255,255,255,0.5);
  text-transform: uppercase;
  letter-spacing: 0.06em;
}

/* ============================================================
   case study cards
   ============================================================ */
.case-card {
  background: var(--c-white);
  border: 1px solid var(--c-border);
  border-radius: var(--r-xl);
  overflow: hidden;
  transition: all var(--t-base);
  cursor: pointer;
}

.case-card:hover { box-shadow: var(--shadow-xl); transform: translateY(-3px); }

.case-card-img {
  width: 100%;
  aspect-ratio: 16/9;
  object-fit: cover;
}

.case-card-body { padding: var(--sp-6); }

.case-card-industry {
  font-family: var(--font-head);
  font-size: var(--text-xs);
  font-weight: 700;
  letter-spacing: 0.1em;
  text-transform: uppercase;
  color: var(--c-blue);
  margin-bottom: var(--sp-3);
}

.case-card h3 {
  font-size: var(--text-xl);
  margin-bottom: var(--sp-3);
  transition: color var(--t-fast);
}

.case-card:hover h3 { color: var(--c-blue); }

.case-card p {
  font-size: var(--text-sm);
  color: var(--c-steel);
  margin-bottom: var(--sp-5);
}

.case-metrics {
  display: flex;
  gap: var(--sp-6);
  padding-top: var(--sp-5);
  border-top: 1px solid var(--c-border-light);
}

.case-metric {}

.case-metric-value {
  font-family: var(--font-head);
  font-size: var(--text-2xl);
  font-weight: 800;
  color: var(--c-navy);
  line-height: 1;
}

.case-metric-label {
  font-family: var(--font-head);
  font-size: var(--text-xs);
  color: var(--c-muted);
  font-weight: 600;
  text-transform: uppercase;
  letter-spacing: 0.06em;
}

/* ============================================================
   resource cards
   ============================================================ */
.resource-card {
  background: var(--c-white);
  border: 1px solid var(--c-border);
  border-radius: var(--r-lg);
  padding: var(--sp-6);
  transition: all var(--t-base);
  cursor: pointer;
}

.resource-card:hover { box-shadow: var(--shadow-md); border-color: var(--c-blue); }

.resource-type {
  font-family: var(--font-head);
  font-size: var(--text-xs);
  font-weight: 700;
  letter-spacing: 0.1em;
  text-transform: uppercase;
  padding: var(--sp-1) var(--sp-3);
  border-radius: 100px;
  display: inline-block;
  margin-bottom: var(--sp-4);
}

.resource-type.guide { background: var(--c-blue-light); color: var(--c-blue); }
.resource-type.tool { background: var(--c-green-light); color: var(--c-green); }
.resource-type.framework { background: var(--c-amber-light); color: var(--c-amber); }
.resource-type.article  { background: #EDE9FE; color: #5B21B6; }

/* ============================================================
   newsletter block (article pages)
   ============================================================ */
.newsletter-block {
  border: 1px solid var(--c-border);
  border-radius: var(--r-xl);
  padding: var(--sp-8);
  margin: var(--sp-12) 0 var(--sp-4);
  background: var(--c-white);
  box-shadow: var(--shadow-md);
}

.newsletter-block-inner {
  display: flex;
  gap: var(--sp-5);
  align-items: flex-start;
  margin-bottom: var(--sp-6);
}

.newsletter-icon {
  width: 44px;
  height: 44px;
  min-width: 44px;
  background: var(--c-blue-light);
  border-radius: var(--r-md);
  display: flex;
  align-items: center;
  justify-content: center;
  color: var(--c-blue);
}

.newsletter-text h3 {
  font-size: var(--text-xl);
  margin-bottom: var(--sp-2);
}

.newsletter-text p {
  font-size: var(--text-sm);
  color: var(--c-steel);
}

.newsletter-form {}

.newsletter-form-row {
  display: flex;
  gap: var(--sp-3);
  margin-bottom: var(--sp-3);
}

.newsletter-input {
  flex: 1;
  padding: var(--sp-3) var(--sp-4);
  border: 1px solid var(--c-border);
  border-radius: var(--r-md);
  font-family: var(--font-head);
  font-size: var(--text-base);
  color: var(--c-navy);
  transition: border-color var(--t-fast), box-shadow var(--t-fast);
}

.newsletter-input:focus {
  outline: none;
  border-color: var(--c-blue);
  box-shadow: 0 0 0 3px rgba(0,87,255,0.12);
}

.newsletter-btn {
  background: var(--c-blue);
  color: var(--c-white);
  font-family: var(--font-head);
  font-weight: 700;
  font-size: var(--text-sm);
  padding: var(--sp-3) var(--sp-6);
  border-radius: var(--r-md);
  border: none;
  cursor: pointer;
  white-space: nowrap;
  transition: background var(--t-fast), transform var(--t-fast);
}

.newsletter-btn:hover {
  background: var(--c-blue-dark);
  transform: translateY(-1px);
}

.newsletter-note {
  font-family: var(--font-head);
  font-size: var(--text-xs);
  color: var(--c-muted);
}

.newsletter-success {
  display: none;
  align-items: center;
  gap: var(--sp-2);
  font-family: var(--font-head);
  font-size: var(--text-sm);
  font-weight: 700;
  color: var(--c-green);
  padding: var(--sp-3) 0;
}

@media (max-width: 480px) {
  .newsletter-form-row { flex-direction: column; }
  .newsletter-btn { width: 100%; justify-content: center; }
  .newsletter-block-inner { flex-direction: column; gap: var(--sp-3); }
}

.resource-card h4 {
  font-size: var(--text-lg);
  margin-bottom: var(--sp-3);
}

.resource-card p {
  font-size: var(--text-sm);
  color: var(--c-steel);
}

/* ============================================================
   industry tabs
   ============================================================ */
.industry-grid {
  display: grid;
  grid-template-columns: 280px 1fr;
  gap: var(--sp-8);
  align-items: start;
}

.industry-tabs {
  display: flex;
  flex-direction: column;
  gap: var(--sp-2);
}

.industry-tab {
  font-family: var(--font-head);
  font-size: var(--text-sm);
  font-weight: 600;
  color: var(--c-steel);
  padding: var(--sp-4) var(--sp-5);
  border-radius: var(--r-md);
  border: 1px solid transparent;
  text-align: left;
  transition: all var(--t-fast);
  cursor: pointer;
  background: var(--c-white);
  display: flex;
  align-items: center;
  gap: var(--sp-3);
}

.industry-tab:hover { color: var(--c-navy); background: var(--c-surface); border-color: var(--c-border); }
.industry-tab.active { color: var(--c-blue); background: var(--c-blue-light); border-color: rgba(0,87,255,0.2); }

.industry-panel { display: none; }
.industry-panel.active { display: block; }

.industry-panel-inner {
  background: var(--c-white);
  border: 1px solid var(--c-border);
  border-radius: var(--r-xl);
  padding: var(--sp-10);
}

.industry-panel h3 {
  font-size: var(--text-3xl);
  margin-bottom: var(--sp-4);
}

.industry-panel p {
  font-size: var(--text-base);
  color: var(--c-steel);
  margin-bottom: var(--sp-8);
}

.industry-challenges { display: flex; flex-direction: column; gap: var(--sp-4); margin-bottom: var(--sp-8); }

.challenge-item {
  display: flex;
  gap: var(--sp-4);
  padding: var(--sp-4);
  background: var(--c-surface);
  border-radius: var(--r-md);
}

.challenge-icon {
  color: var(--c-blue);
  flex-shrink: 0;
  margin-top: 2px;
}

.challenge-text h5 { font-size: var(--text-sm); margin-bottom: var(--sp-1); }
.challenge-text p { font-size: var(--text-sm); color: var(--c-steel); }

/* ============================================================
   cta section
   ============================================================ */
.cta-section {
  background: var(--c-navy);
  padding: var(--sp-20) 0;
  position: relative;
  overflow: hidden;
}

.cta-section::before {
  content: '';
  position: absolute;
  top: -50%; left: -20%;
  width: 600px; height: 600px;
  background: radial-gradient(circle, rgba(0,87,255,0.15) 0%, transparent 70%);
}

.cta-section .container { position: relative; z-index: var(--z-base); text-align: center; }

.cta-section h2 {
  color: var(--c-white);
  font-size: var(--text-4xl);
  margin-bottom: var(--sp-4);
}

.cta-section p {
  color: rgba(255,255,255,0.65);
  font-size: var(--text-lg);
  max-width: 560px;
  margin: 0 auto var(--sp-10);
}

.cta-actions {
  display: flex;
  align-items: center;
  justify-content: center;
  gap: var(--sp-4);
  flex-wrap: wrap;
}

/* ============================================================
   trust bar
   ============================================================ */
.trust-bar {
  background: var(--c-surface);
  border-top: 1px solid var(--c-border);
  border-bottom: 1px solid var(--c-border);
  padding: var(--sp-8) 0;
}

.trust-bar-inner {
  display: flex;
  align-items: center;
  justify-content: center;
  gap: var(--sp-12);
  flex-wrap: wrap;
}

.trust-item {
  display: flex;
  align-items: center;
  gap: var(--sp-2);
  font-family: var(--font-head);
  font-size: var(--text-sm);
  font-weight: 600;
  color: var(--c-steel);
}

.trust-item svg { color: var(--c-blue); }

/* ============================================================
   pricing
   ============================================================ */
.pricing-grid {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: var(--sp-6);
  align-items: start;
}

.pricing-card {
  background: var(--c-white);
  border: 1px solid var(--c-border);
  border-radius: var(--r-xl);
  padding: var(--sp-8);
  position: relative;
}

.pricing-card.featured {
  border-color: var(--c-blue);
  box-shadow: 0 0 0 1px var(--c-blue), var(--shadow-xl);
}

.pricing-badge {
  position: absolute;
  top: -12px;
  left: 50%;
  transform: translateX(-50%);
  background: var(--c-blue);
  color: var(--c-white);
  font-family: var(--font-head);
  font-size: var(--text-xs);
  font-weight: 700;
  letter-spacing: 0.08em;
  text-transform: uppercase;
  padding: var(--sp-1) var(--sp-4);
  border-radius: 100px;
}

.pricing-tier {
  font-family: var(--font-head);
  font-size: var(--text-xs);
  font-weight: 700;
  letter-spacing: 0.1em;
  text-transform: uppercase;
  color: var(--c-steel);
  margin-bottom: var(--sp-3);
}

.pricing-name {
  font-family: var(--font-head);
  font-size: var(--text-3xl);
  font-weight: 800;
  color: var(--c-navy);
  margin-bottom: var(--sp-2);
}

.pricing-desc {
  font-size: var(--text-sm);
  color: var(--c-steel);
  margin-bottom: var(--sp-8);
  padding-bottom: var(--sp-8);
  border-bottom: 1px solid var(--c-border-light);
}

.pricing-features { display: flex; flex-direction: column; gap: var(--sp-3); margin-bottom: var(--sp-8); }

.pricing-feature {
  display: flex;
  align-items: flex-start;
  gap: var(--sp-3);
  font-size: var(--text-sm);
  color: var(--c-graphite);
}

.pricing-feature svg { color: var(--c-green); flex-shrink: 0; margin-top: 2px; }
.pricing-feature.unavailable { color: var(--c-muted); }
.pricing-feature.unavailable svg { color: var(--c-border); }

/* ============================================================
   contact form area
   ============================================================ */
.contact-grid {
  display: grid;
  grid-template-columns: 1fr 2fr;
  gap: var(--sp-16);
  align-items: start;
}

.contact-info { display: flex; flex-direction: column; gap: var(--sp-8); }

.contact-info-item { display: flex; gap: var(--sp-4); }

.contact-info-icon {
  width: 44px;
  height: 44px;
  background: var(--c-blue-light);
  border-radius: var(--r-md);
  display: flex;
  align-items: center;
  justify-content: center;
  color: var(--c-blue);
  flex-shrink: 0;
}

.contact-info-text h4 { font-size: var(--text-sm); margin-bottom: var(--sp-1); }
.contact-info-text p { font-size: var(--text-sm); color: var(--c-steel); }

.form-group { margin-bottom: var(--sp-5); }
.form-label {
  display: block;
  font-family: var(--font-head);
  font-size: var(--text-sm);
  font-weight: 600;
  color: var(--c-navy);
  margin-bottom: var(--sp-2);
}

.form-input, .form-textarea, .form-select {
  width: 100%;
  padding: var(--sp-3) var(--sp-4);
  border: 1px solid var(--c-border);
  border-radius: var(--r-md);
  background: var(--c-white);
  color: var(--c-navy);
  font-size: var(--text-base);
  transition: border-color var(--t-fast), box-shadow var(--t-fast);
}

.form-input:focus, .form-textarea:focus, .form-select:focus {
  outline: none;
  border-color: var(--c-blue);
  box-shadow: 0 0 0 3px rgba(0,87,255,0.12);
}

.form-textarea { resize: vertical; min-height: 120px; }

.form-row { display: grid; grid-template-columns: 1fr 1fr; gap: var(--sp-4); }

/* ============================================================
   faq
   ============================================================ */
.faq-list { display: flex; flex-direction: column; gap: var(--sp-4); }

.faq-item {
  background: var(--c-white);
  border: 1px solid var(--c-border);
  border-radius: var(--r-lg);
  overflow: hidden;
}

.faq-question {
  width: 100%;
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: var(--sp-4);
  padding: var(--sp-5) var(--sp-6);
  font-family: var(--font-head);
  font-size: var(--text-base);
  font-weight: 600;
  color: var(--c-navy);
  background: none;
  border: none;
  text-align: left;
  cursor: pointer;
  transition: background var(--t-fast);
}

.faq-question:hover { background: var(--c-surface); }
.faq-question.open { background: var(--c-blue-light); color: var(--c-blue); }

.faq-icon { flex-shrink: 0; transition: transform var(--t-base); color: var(--c-muted); }
.faq-question.open .faq-icon { transform: rotate(45deg); color: var(--c-blue); }

.faq-answer {
  display: none;
  padding: 0 var(--sp-6) var(--sp-5);
  color: var(--c-steel);
  font-size: var(--text-base);
  line-height: 1.75;
}

.faq-answer.open { display: block; }

/* ============================================================
   page hero (inner pages)
   ============================================================ */
.page-hero {
  background: linear-gradient(135deg, var(--c-navy) 0%, var(--c-navy-mid) 100%);
  padding: var(--sp-16) 0;
  position: relative;
  overflow: hidden;
}

.page-hero::after {
  content: '';
  position: absolute;
  right: -100px;
  top: -100px;
  width: 500px;
  height: 500px;
  background: radial-gradient(circle, rgba(0,87,255,0.12) 0%, transparent 70%);
}

.page-hero .container { position: relative; z-index: var(--z-base); }

.page-hero-label {
  font-family: var(--font-head);
  font-size: var(--text-xs);
  font-weight: 700;
  letter-spacing: 0.12em;
  text-transform: uppercase;
  color: var(--c-blue);
  margin-bottom: var(--sp-4);
}

.page-hero-title {
  font-size: clamp(1.875rem, 4vw, 3rem);
  color: var(--c-white);
  max-width: 700px;
  margin-bottom: var(--sp-4);
}

.page-hero-body {
  font-size: var(--text-lg);
  color: rgba(255,255,255,0.65);
  max-width: 560px;
}

/* ============================================================
   feature grid
   ============================================================ */
.feature-item {
  display: flex;
  flex-direction: column;
  gap: var(--sp-4);
}

.feature-icon {
  width: 44px;
  height: 44px;
  background: var(--c-blue-light);
  border-radius: var(--r-md);
  display: flex;
  align-items: center;
  justify-content: center;
  color: var(--c-blue);
}

.feature-item h4 { font-size: var(--text-lg); }
.feature-item p { font-size: var(--text-sm); color: var(--c-steel); }

/* ============================================================
   tools / interactive
   ============================================================ */
.tool-container {
  background: var(--c-white);
  border: 1px solid var(--c-border);
  border-radius: var(--r-xl);
  overflow: hidden;
  box-shadow: var(--shadow-lg);
}

.tool-header {
  background: var(--c-navy);
  padding: var(--sp-5) var(--sp-8);
  display: flex;
  align-items: center;
  justify-content: space-between;
}

.tool-title {
  font-family: var(--font-head);
  font-size: var(--text-base);
  font-weight: 700;
  color: var(--c-white);
  display: flex;
  align-items: center;
  gap: var(--sp-3);
}

.tool-body { padding: var(--sp-8); }

.range-group { margin-bottom: var(--sp-6); }
.range-label {
  display: flex;
  align-items: center;
  justify-content: space-between;
  font-family: var(--font-head);
  font-size: var(--text-sm);
  font-weight: 600;
  color: var(--c-navy);
  margin-bottom: var(--sp-3);
}

.range-value {
  font-weight: 800;
  color: var(--c-blue);
}

input[type="range"] {
  width: 100%;
  height: 6px;
  border-radius: 3px;
  background: var(--c-border);
  outline: none;
  -webkit-appearance: none;
  cursor: pointer;
}

input[type="range"]::-webkit-slider-thumb {
  -webkit-appearance: none;
  width: 18px;
  height: 18px;
  border-radius: 50%;
  background: var(--c-blue);
  cursor: pointer;
  box-shadow: 0 2px 6px rgba(0,87,255,0.3);
}

.tool-result {
  background: var(--c-navy);
  border-radius: var(--r-lg);
  padding: var(--sp-6);
  margin-top: var(--sp-6);
}

.tool-result-value {
  font-family: var(--font-head);
  font-size: var(--text-5xl);
  font-weight: 800;
  color: var(--c-white);
}

.tool-result-label {
  font-family: var(--font-head);
  font-size: var(--text-sm);
  color: rgba(255,255,255,0.5);
  margin-top: var(--sp-1);
}

/* score ring */
.score-ring-wrapper {
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: var(--sp-4);
}

.score-ring-svg { transform: rotate(-90deg); }

.score-ring-track { fill: none; stroke: rgba(255,255,255,0.1); }
.score-ring-fill { fill: none; stroke: var(--c-blue); stroke-linecap: round; transition: stroke-dashoffset 0.8s ease; }

.score-ring-center {
  font-family: var(--font-head);
  font-size: var(--text-3xl);
  font-weight: 800;
  fill: var(--c-white);
}

/* ============================================================
   footer
   ============================================================ */
footer {
  background: var(--c-navy);
  padding: var(--sp-16) 0 var(--sp-8);
}

.footer-grid {
  display: grid;
  grid-template-columns: 2fr 1fr 1fr 1fr;
  gap: var(--sp-12);
  padding-bottom: var(--sp-12);
  border-bottom: 1px solid rgba(255,255,255,0.08);
  margin-bottom: var(--sp-8);
}

.footer-brand {}

.footer-brand .nav-logo img {
  max-width: calc(var(--logo-w) * 0.9);
  max-height: calc(var(--logo-h) * 0.9);
  width: auto;
  height: auto;
  display: block;
  filter: brightness(0) invert(1);
}

.footer-brand p {
  font-size: var(--text-sm);
  color: rgba(255,255,255,0.5);
  margin-top: var(--sp-4);
  max-width: 280px;
}

.footer-col h5 {
  font-family: var(--font-head);
  font-size: var(--text-xs);
  font-weight: 700;
  letter-spacing: 0.1em;
  text-transform: uppercase;
  color: rgba(255,255,255,0.35);
  margin-bottom: var(--sp-5);
}

.footer-col ul { display: flex; flex-direction: column; gap: var(--sp-3); }

.footer-col a {
  font-family: var(--font-head);
  font-size: var(--text-sm);
  font-weight: 500;
  color: rgba(255,255,255,0.6);
  transition: color var(--t-fast);
}

.footer-col a:hover { color: var(--c-white); }

.footer-bottom {
  display: flex;
  align-items: center;
  justify-content: space-between;
  flex-wrap: wrap;
  gap: var(--sp-4);
}

.footer-bottom p {
  font-family: var(--font-head);
  font-size: var(--text-xs);
  color: rgba(255,255,255,0.35);
}

.footer-legal {
  display: flex;
  gap: var(--sp-6);
}

.footer-legal a {
  font-family: var(--font-head);
  font-size: var(--text-xs);
  color: rgba(255,255,255,0.35);
  transition: color var(--t-fast);
}

.footer-legal a:hover { color: rgba(255,255,255,0.7); }

/* ============================================================
   cookie banner
   ============================================================ */
#cookie-banner {
  position: fixed;
  bottom: 0;
  left: 0;
  right: 0;
  background: var(--c-white);
  border-top: 1px solid var(--c-border);
  box-shadow: 0 -4px 24px rgba(13,27,42,0.12);
  transform: translateY(100%);
  transition: transform var(--t-slow);
  z-index: var(--z-cookie);
}

#cookie-banner.visible { transform: translateY(0); }

.cookie-inner {
  max-width: var(--container-max);
  margin: 0 auto;
  padding: var(--sp-5) var(--sp-6);
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: var(--sp-8);
  flex-wrap: wrap;
}

.cookie-text {
  font-size: var(--text-sm);
  color: var(--c-graphite);
  flex: 1;
  min-width: 240px;
}

.cookie-text a { color: var(--c-blue); text-decoration: underline; }

.cookie-actions { display: flex; gap: var(--sp-3); flex-shrink: 0; }

#cookie-decline {
  font-family: var(--font-head);
  font-size: var(--text-sm);
  font-weight: 600;
  color: var(--c-steel);
  padding: var(--sp-2) var(--sp-5);
  border: 1px solid var(--c-border);
  border-radius: var(--r-md);
  transition: all var(--t-fast);
}

#cookie-decline:hover { border-color: var(--c-steel); color: var(--c-navy); }

#cookie-accept {
  font-family: var(--font-head);
  font-size: var(--text-sm);
  font-weight: 700;
  color: var(--c-white);
  background: var(--c-blue);
  padding: var(--sp-2) var(--sp-5);
  border-radius: var(--r-md);
  transition: all var(--t-fast);
}

#cookie-accept:hover { background: var(--c-blue-dark); }

/* ============================================================
   animations
   ============================================================ */
.reveal {
  opacity: 0;
  transform: translateY(20px);
  transition: opacity var(--t-slow), transform var(--t-slow);
}

.reveal.visible {
  opacity: 1;
  transform: translateY(0);
}

@keyframes pulse-dot {
  0%, 100% { opacity: 1; }
  50% { opacity: 0.3; }
}

.live-dot {
  display: inline-block;
  width: 8px;
  height: 8px;
  background: var(--c-green);
  border-radius: 50%;
  animation: pulse-dot 2s ease-in-out infinite;
}

/* ============================================================
   legal pages
   ============================================================ */
.legal-content {
  max-width: 800px;
  margin: 0 auto;
  padding: var(--sp-16) 0;
}

.legal-content h2 {
  font-size: var(--text-2xl);
  margin-top: var(--sp-12);
  margin-bottom: var(--sp-4);
  padding-top: var(--sp-8);
  border-top: 1px solid var(--c-border-light);
}

.legal-content h2:first-of-type { border-top: none; margin-top: var(--sp-8); }

.legal-content p, .legal-content li {
  font-size: var(--text-base);
  color: var(--c-graphite);
  margin-bottom: var(--sp-4);
  line-height: 1.8;
}

.legal-content ul, .legal-content ol {
  padding-left: var(--sp-6);
  margin-bottom: var(--sp-6);
}

.legal-content ul li { list-style: disc; }
.legal-content ol li { list-style: decimal; }

/* ============================================================
   responsive
   ============================================================ */
@media (max-width: 1024px) {
  .grid-4 { grid-template-columns: repeat(2, 1fr); }
  .footer-grid { grid-template-columns: 1fr 1fr; gap: var(--sp-8); }
  .industry-grid { grid-template-columns: 1fr; }
  .industry-tabs { flex-direction: row; overflow-x: auto; flex-wrap: nowrap; }
  .contact-grid { grid-template-columns: 1fr; gap: var(--sp-10); }
  .workflow-content.active { grid-template-columns: 1fr; }
  .ops-board-inner { grid-template-columns: repeat(3, 1fr); }
  .pricing-grid { grid-template-columns: 1fr; max-width: 480px; margin: 0 auto; }
}

@media (max-width: 768px) {
  :root { --container-pad: var(--sp-4); }

  h1 { font-size: var(--text-3xl); }
  h2 { font-size: var(--text-2xl); }

  .nav-links, .nav-actions { display: none; }
  .hamburger { display: flex; }

  .grid-2, .grid-3, .grid-4 { grid-template-columns: 1fr; }
  .form-row { grid-template-columns: 1fr; }

  .stats-grid { grid-template-columns: repeat(2, 1fr); }
  .ops-board-inner { grid-template-columns: repeat(2, 1fr); }

  .hero { padding: var(--sp-16) 0 var(--sp-12); }
  .hero-actions { flex-direction: column; align-items: flex-start; }

  .trust-bar-inner { gap: var(--sp-6); }

  .footer-grid { grid-template-columns: 1fr; gap: var(--sp-8); }
  .footer-bottom { flex-direction: column; align-items: flex-start; }

  .cookie-inner { flex-direction: column; align-items: flex-start; }

  #back-to-top { bottom: var(--sp-4); right: var(--sp-4); }
}

@media (max-width: 480px) {
  .stats-grid { grid-template-columns: 1fr; }
  .ops-board-inner { grid-template-columns: 1fr; }
  .hero-title { font-size: var(--text-2xl); }
}
