/* ==========================================================================
   CHION Care — Landing Page Stylesheet
   Metro UI · Flat · No Gradients · Desktop-first responsive
   ========================================================================== */

/* ----- Design tokens ----- */
:root {
  /* Brand */
  --c-primary:        #0050B3;   /* Metro azure - primary medical blue */
  --c-primary-dark:   #003A75;   /* Deep navy - trust */
  --c-primary-soft:   #E8F0FA;   /* Soft tint surfaces */
  --c-teal:           #008C8C;   /* Healing teal */
  --c-teal-dark:      #006666;
  --c-accent:         #E63946;   /* Vital red - critical & CTAs */
  --c-accent-dark:    #B71C2C;
  --c-success:        #2E7D32;   /* Wellness green */
  --c-warning:        #E08A00;   /* Status amber */
  --c-purple:         #4A148C;   /* Reports tile accent */

  /* Neutrals */
  --c-ink:            #0F1722;   /* Text primary */
  --c-ink-soft:       #3A4252;
  --c-muted:          #6B7280;
  --c-line:           #E1E5EB;
  --c-line-strong:    #C7CFDA;
  --c-surface:        #FFFFFF;
  --c-surface-soft:   #F4F6F9;
  --c-surface-tint:   #ECF0F5;
  --c-dark:           #0F1722;

  /* Typography */
  --ff-display: "Segoe UI", "Inter", -apple-system, BlinkMacSystemFont, "Helvetica Neue", Arial, sans-serif;
  --ff-body:    "Segoe UI", "Inter", -apple-system, BlinkMacSystemFont, "Helvetica Neue", Arial, sans-serif;
  --fw-light:   300;
  --fw-regular: 400;
  --fw-semi:    600;
  --fw-bold:    700;
  --fw-black:   800;

  /* Spacing (4px base) */
  --sp-1:  4px;
  --sp-2:  8px;
  --sp-3: 12px;
  --sp-4: 16px;
  --sp-5: 24px;
  --sp-6: 32px;
  --sp-7: 48px;
  --sp-8: 64px;
  --sp-9: 96px;

  /* Layout */
  --container: 1240px;
  --radius-sm: 2px;
  --radius:    4px;     /* Metro is sharp - keep radii minimal */

  /* Motion */
  --ease:        cubic-bezier(.2, .7, .2, 1);
  --ease-out:    cubic-bezier(.16, 1, .3, 1);
  --dur-fast:    160ms;
  --dur:         280ms;
  --dur-slow:    520ms;

  /* Elevation - Metro uses minimal shadow */
  --shadow-1:  0 1px 0 rgba(15, 23, 34, .04);
  --shadow-2:  0 8px 24px rgba(15, 23, 34, .06);
  --shadow-3:  0 16px 40px rgba(15, 23, 34, .10);
}

/* ----- Reset ----- */
*, *::before, *::after { box-sizing: border-box; }
html { scroll-behavior: smooth; }
body {
  margin: 0;
  font-family: var(--ff-body);
  font-size: 16px;
  line-height: 1.6;
  color: var(--c-ink);
  background: var(--c-surface);
  -webkit-font-smoothing: antialiased;
  text-rendering: optimizeLegibility;
}
img, svg { max-width: 100%; display: block; }
a { color: inherit; text-decoration: none; }
button { font: inherit; cursor: pointer; border: 0; background: none; color: inherit; }
ul, ol { list-style: none; padding: 0; margin: 0; }
em { font-style: normal; }

::selection { background: var(--c-primary); color: #fff; }

/* ----- Layout ----- */
.container {
  width: 100%;
  max-width: var(--container);
  margin: 0 auto;
  padding: 0 var(--sp-5);
}

/* ==========================================================================
   UTILITY BAR
   ========================================================================== */
.utility-bar {
  background: var(--c-dark);
  color: #C7D0DA;
  font-size: 13px;
  border-bottom: 1px solid #1B2435;
}
.utility-bar__inner {
  display: flex;
  align-items: center;
  justify-content: space-between;
  height: 38px;
  gap: var(--sp-5);
}
.utility-bar__group {
  display: flex;
  align-items: center;
  gap: var(--sp-5);
  flex-wrap: wrap;
}
.util-item, .util-link {
  display: inline-flex;
  align-items: center;
  gap: var(--sp-2);
  color: #C7D0DA;
  transition: color var(--dur-fast) var(--ease);
}
.util-link:hover, .util-item:hover { color: #fff; }
.util-icon { width: 14px; height: 14px; fill: currentColor; }
.util-item--alert { color: #F4B0B6; }
.util-divider {
  width: 1px; height: 14px; background: #2B384F;
}
.status-dot {
  width: 8px; height: 8px;
  background: #4CAF50;
  border-radius: 50%;
  display: inline-block;
  box-shadow: 0 0 0 0 rgba(76, 175, 80, .6);
  animation: pulse 2s infinite;
}
@keyframes pulse {
  0%   { box-shadow: 0 0 0 0 rgba(76, 175, 80, .55); }
  70%  { box-shadow: 0 0 0 8px rgba(76, 175, 80, 0); }
  100% { box-shadow: 0 0 0 0 rgba(76, 175, 80, 0); }
}

/* ==========================================================================
   HEADER
   ========================================================================== */
.site-header {
  position: sticky;
  top: 0;
  z-index: 50;
  background: rgba(255, 255, 255, .96);
  backdrop-filter: saturate(180%) blur(8px);
  border-bottom: 1px solid var(--c-line);
  transition: box-shadow var(--dur) var(--ease), height var(--dur) var(--ease);
}
.site-header.is-stuck { box-shadow: var(--shadow-2); }
.site-header__inner {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: var(--sp-5);
  height: 84px;
  transition: height var(--dur) var(--ease);
}
.site-header.is-stuck .site-header__inner { height: 68px; }

/* Brand */
.brand {
  display: inline-flex;
  align-items: center;
  gap: var(--sp-3);
}
.brand__mark { display: inline-flex; }
.brand__text { display: flex; flex-direction: column; line-height: 1.1; }
.brand__name {
  font-size: 18px;
  font-weight: var(--fw-bold);
  letter-spacing: .5px;
  color: var(--c-ink);
}
.brand__name em {
  font-weight: var(--fw-light);
  color: var(--c-primary);
}
.brand__sub {
  font-size: 11px;
  letter-spacing: 2px;
  text-transform: uppercase;
  color: var(--c-muted);
  margin-top: 2px;
}

/* Nav */
.primary-nav ul {
  display: flex;
  gap: var(--sp-6);
}
.primary-nav a {
  position: relative;
  font-size: 14px;
  font-weight: var(--fw-semi);
  color: var(--c-ink-soft);
  padding: var(--sp-2) 0;
  transition: color var(--dur-fast) var(--ease);
}
.primary-nav a::after {
  content: "";
  position: absolute;
  left: 0; right: 0; bottom: -2px;
  height: 2px;
  background: var(--c-primary);
  transform: scaleX(0);
  transform-origin: left;
  transition: transform var(--dur) var(--ease);
}
.primary-nav a:hover { color: var(--c-primary); }
.primary-nav a:hover::after { transform: scaleX(1); }

/* Header CTAs */
.header-cta { display: flex; align-items: center; gap: var(--sp-3); }

/* Mobile toggle */
.nav-toggle {
  display: none;
  width: 44px; height: 44px;
  flex-direction: column;
  justify-content: center;
  align-items: center;
  gap: 5px;
  border: 1px solid var(--c-line);
}
.nav-toggle span {
  display: block;
  width: 22px; height: 2px;
  background: var(--c-ink);
  transition: transform var(--dur) var(--ease), opacity var(--dur) var(--ease);
}

/* ==========================================================================
   BUTTONS
   ========================================================================== */
.btn {
  display: inline-flex;
  align-items: center;
  gap: var(--sp-2);
  padding: 12px 22px;
  font-size: 14px;
  font-weight: var(--fw-semi);
  border-radius: var(--radius);
  border: 2px solid transparent;
  transition: transform var(--dur-fast) var(--ease), background-color var(--dur-fast) var(--ease), color var(--dur-fast) var(--ease), border-color var(--dur-fast) var(--ease);
  white-space: nowrap;
}
.btn--lg { padding: 16px 28px; font-size: 15px; }
.btn__icon { width: 16px; height: 16px; fill: none; stroke: currentColor; stroke-width: 2.2; stroke-linecap: square; stroke-linejoin: miter; transition: transform var(--dur-fast) var(--ease); }
.btn:hover .btn__icon { transform: translateX(3px); }

.btn--primary { background: var(--c-primary); color: #fff; border-color: var(--c-primary); }
.btn--primary:hover { background: var(--c-primary-dark); border-color: var(--c-primary-dark); }

.btn--accent { background: var(--c-accent); color: #fff; border-color: var(--c-accent); }
.btn--accent:hover { background: var(--c-accent-dark); border-color: var(--c-accent-dark); }

.btn--ghost { background: transparent; color: var(--c-ink); border-color: var(--c-line-strong); }
.btn--ghost:hover { background: var(--c-ink); color: #fff; border-color: var(--c-ink); }

.btn--ghost-light { color: #fff; border-color: rgba(255,255,255,.45); }
.btn--ghost-light:hover { background: #fff; color: var(--c-ink); border-color: #fff; }

/* ==========================================================================
   GLOBAL ELEMENTS
   ========================================================================== */
.eyebrow {
  display: inline-flex;
  align-items: center;
  gap: var(--sp-2);
  font-size: 12px;
  font-weight: var(--fw-bold);
  letter-spacing: 2px;
  text-transform: uppercase;
  color: var(--c-primary);
}
.eyebrow--dark { color: var(--c-primary-dark); }
.eyebrow__dot {
  width: 8px; height: 8px;
  background: var(--c-accent);
  display: inline-block;
}
.eyebrow__dot--light { background: var(--c-teal); }

.section-head { max-width: 760px; margin-bottom: var(--sp-7); }
.section-head--centered { margin-left: auto; margin-right: auto; text-align: center; }
.section-title {
  font-size: clamp(28px, 3vw, 44px);
  font-weight: var(--fw-bold);
  letter-spacing: -0.02em;
  line-height: 1.1;
  margin: var(--sp-3) 0 var(--sp-4);
  color: var(--c-ink);
}
.section-title em {
  color: var(--c-primary);
  font-weight: var(--fw-light);
}
.section-title--light { color: #fff; }
.section-title--light em { color: #7BB8FF; }
.section-lede {
  font-size: 17px;
  color: var(--c-ink-soft);
  margin: 0;
  max-width: 64ch;
}
.section-head--centered .section-lede { margin-left: auto; margin-right: auto; }
.section-lede--light { color: #C7D0DA; }

/* ==========================================================================
   HERO
   ========================================================================== */
.hero {
  position: relative;
  padding-top: var(--sp-8);
  background: var(--c-surface);
  overflow: hidden;
}
.hero__inner {
  display: grid;
  grid-template-columns: 1.05fr 1fr;
  gap: var(--sp-8);
  align-items: center;
  min-height: 640px;
  padding-bottom: var(--sp-8);
}
.hero__content { max-width: 580px; }

.hero__title {
  font-size: clamp(38px, 4.6vw, 64px);
  font-weight: var(--fw-bold);
  line-height: 1.04;
  letter-spacing: -0.025em;
  margin: var(--sp-4) 0 var(--sp-5);
  color: var(--c-ink);
}
.accent-line {
  display: inline-block;
  position: relative;
  color: var(--c-primary);
  font-weight: var(--fw-light);
  font-style: italic;
}
.accent-line::after {
  content: "";
  position: absolute;
  left: 0; right: 0; bottom: -4px;
  height: 4px;
  background: var(--c-accent);
  transform: scaleX(0);
  transform-origin: left;
  animation: drawLine 900ms var(--ease-out) 700ms forwards;
}
@keyframes drawLine { to { transform: scaleX(1); } }

.hero__lede {
  font-size: 18px;
  color: var(--c-ink-soft);
  margin: 0 0 var(--sp-6);
  max-width: 56ch;
}
.hero__lede strong { color: var(--c-ink); font-weight: var(--fw-semi); }

.hero__actions {
  display: flex; flex-wrap: wrap;
  gap: var(--sp-3);
  margin-bottom: var(--sp-6);
}

.hero__trust {
  display: flex; flex-wrap: wrap;
  gap: var(--sp-5);
  padding-top: var(--sp-5);
  border-top: 1px solid var(--c-line);
}
.hero__trust li {
  display: inline-flex;
  align-items: center;
  gap: var(--sp-2);
  font-size: 13px;
  font-weight: var(--fw-semi);
  color: var(--c-ink-soft);
}
.hero__trust svg {
  width: 18px; height: 18px;
  fill: var(--c-success);
}

/* Hero visual: photo + floating Metro widgets */
.hero__visual {
  position: relative;
  height: 600px;
}
.hero__photo {
  position: absolute;
  inset: 0 var(--sp-7) var(--sp-7) 0;
  background: var(--c-surface-tint);
  overflow: hidden;
  border-radius: var(--radius);
  box-shadow: var(--shadow-3);
}
.hero__photo img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  object-position: center;
  transform: scale(1.02);
  transition: transform 1.6s var(--ease-out);
}
.hero__photo:hover img { transform: scale(1.06); }

.photo-caption {
  position: absolute;
  left: var(--sp-4);
  bottom: var(--sp-4);
  display: inline-flex;
  align-items: center;
  gap: var(--sp-2);
  padding: 6px 12px;
  background: rgba(15, 23, 34, .85);
  color: #fff;
  font-size: 12px;
  font-weight: var(--fw-semi);
  letter-spacing: .4px;
  backdrop-filter: blur(4px);
}
.photo-caption__pulse {
  width: 8px; height: 8px;
  background: var(--c-accent);
  border-radius: 50%;
  animation: pulse 2s infinite;
}

/* Floating widgets */
.hero__widget {
  position: absolute;
  background: #fff;
  border: 1px solid var(--c-line);
  padding: var(--sp-4) var(--sp-5);
  box-shadow: var(--shadow-2);
  min-width: 260px;
  animation: floaty 6s ease-in-out infinite;
}
.hero__widget--top {
  top: var(--sp-6);
  right: 0;
  animation-delay: -1.5s;
}
.hero__widget--bottom {
  bottom: 0;
  left: var(--sp-7);
  display: flex;
  align-items: center;
  gap: var(--sp-3);
}
@keyframes floaty {
  0%, 100% { transform: translateY(0); }
  50%      { transform: translateY(-8px); }
}

.widget-row {
  display: flex;
  align-items: baseline;
  justify-content: space-between;
  margin-bottom: 6px;
}
.widget-row--small { font-size: 12px; }
.widget-label {
  font-size: 12px;
  text-transform: uppercase;
  letter-spacing: 1.5px;
  color: var(--c-muted);
  font-weight: var(--fw-semi);
}
.widget-value {
  font-size: 24px;
  font-weight: var(--fw-bold);
  color: var(--c-ink);
}
.widget-of { color: var(--c-muted); font-weight: var(--fw-light); font-size: 16px; }
.widget-meta { color: var(--c-muted); font-size: 12px; }
.widget-meta--up { color: var(--c-success); font-weight: var(--fw-semi); }

.bar-track {
  width: 100%;
  height: 6px;
  background: var(--c-surface-tint);
  margin: var(--sp-2) 0 var(--sp-3);
}
.bar-fill {
  display: block;
  height: 100%;
  background: var(--c-primary);
  transform-origin: left;
  animation: barFill 1.4s var(--ease-out) .4s both;
}
@keyframes barFill { from { transform: scaleX(0); } }

.widget-icon {
  width: 44px; height: 44px;
  background: var(--c-success);
  color: #fff;
  display: inline-flex;
  align-items: center;
  justify-content: center;
}
.widget-icon svg { width: 22px; height: 22px; fill: currentColor; }
.widget-strong { font-weight: var(--fw-bold); color: var(--c-ink); font-size: 15px; }

/* Decorative accent blocks (solid color, no gradients) */
.accent-block {
  position: absolute;
  display: block;
  z-index: -1;
}
.accent-block--teal {
  width: 180px; height: 180px;
  background: var(--c-teal);
  bottom: -20px; right: -20px;
  opacity: .9;
}
.accent-block--blue {
  width: 90px; height: 90px;
  background: var(--c-primary);
  top: -10px; left: -10px;
}
.accent-block--red { background: var(--c-accent); }
.accent-block--dark { background: var(--c-dark); }

/* Hero strip */
.hero__strip {
  background: var(--c-surface-soft);
  border-top: 1px solid var(--c-line);
  border-bottom: 1px solid var(--c-line);
  padding: var(--sp-4) 0;
}
.hero__strip-inner {
  display: flex; flex-wrap: wrap;
  align-items: center;
  gap: var(--sp-5);
  justify-content: space-between;
}
.strip-label {
  font-size: 12px;
  font-weight: var(--fw-bold);
  letter-spacing: 2px;
  text-transform: uppercase;
  color: var(--c-muted);
}
.strip-items {
  display: flex; flex-wrap: wrap;
  gap: var(--sp-5);
}
.strip-items li {
  font-size: 14px;
  font-weight: var(--fw-semi);
  color: var(--c-ink-soft);
  display: inline-flex;
  align-items: center;
}
.strip-items li:not(:last-child)::after {
  content: "";
  width: 4px; height: 4px;
  background: var(--c-line-strong);
  margin-left: var(--sp-5);
  display: inline-block;
}

/* ==========================================================================
   STATS
   ========================================================================== */
.stats {
  padding: var(--sp-8) 0;
  background: var(--c-surface);
}
.stats__grid {
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  gap: 1px;
  background: var(--c-line);
  border: 1px solid var(--c-line);
}
.stat-card {
  padding: var(--sp-6);
  background: #fff;
  display: flex;
  flex-direction: column;
  gap: var(--sp-2);
  transition: background-color var(--dur) var(--ease), transform var(--dur) var(--ease);
}
.stat-card:hover { background: var(--c-surface-soft); transform: translateY(-2px); }
.stat-card--accent { background: var(--c-primary); color: #fff; }
.stat-card--accent:hover { background: var(--c-primary-dark); }
.stat-card__value {
  font-size: 56px;
  font-weight: var(--fw-bold);
  letter-spacing: -0.03em;
  line-height: 1;
  color: var(--c-primary);
}
.stat-card--accent .stat-card__value { color: #fff; }
.stat-card__unit { font-size: 32px; font-weight: var(--fw-light); margin-left: 2px; }
.stat-card__label {
  font-size: 13px;
  font-weight: var(--fw-semi);
  text-transform: uppercase;
  letter-spacing: 1.2px;
  color: var(--c-muted);
}
.stat-card--accent .stat-card__label { color: rgba(255,255,255,.85); }

/* ==========================================================================
   MODULES — METRO TILE GRID
   ========================================================================== */
.modules {
  padding: var(--sp-9) 0;
  background: var(--c-surface-soft);
}
.tile-grid {
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  grid-auto-rows: 220px;
  gap: var(--sp-4);
}
.tile {
  position: relative;
  padding: var(--sp-5);
  background: #fff;
  color: var(--c-ink);
  border: 1px solid var(--c-line);
  display: flex;
  flex-direction: column;
  justify-content: space-between;
  overflow: hidden;
  transition: transform var(--dur) var(--ease), box-shadow var(--dur) var(--ease);
  cursor: pointer;
}
.tile:hover {
  transform: translateY(-4px);
  box-shadow: var(--shadow-3);
  z-index: 2;
}
.tile__icon {
  width: 52px; height: 52px;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  margin-bottom: var(--sp-3);
}
.tile__icon svg {
  width: 32px; height: 32px;
  fill: none;
  stroke: currentColor;
  stroke-width: 1.8;
  stroke-linecap: square;
  stroke-linejoin: miter;
}
.tile__title {
  font-size: 18px;
  font-weight: var(--fw-bold);
  margin: 0 0 var(--sp-2);
  line-height: 1.2;
}
.tile__copy {
  font-size: 14px;
  color: currentColor;
  opacity: .85;
  margin: 0;
  line-height: 1.5;
}
.tile__points {
  margin-top: var(--sp-3);
  display: flex;
  flex-direction: column;
  gap: 6px;
}
.tile__points li {
  font-size: 13px;
  padding-left: 18px;
  position: relative;
  opacity: .9;
}
.tile__points li::before {
  content: "";
  position: absolute;
  left: 0; top: 8px;
  width: 8px; height: 2px;
  background: currentColor;
}
.tile__cta {
  align-self: flex-start;
  font-size: 13px;
  font-weight: var(--fw-bold);
  letter-spacing: .5px;
  text-transform: uppercase;
  padding-top: var(--sp-3);
}
.tile__cta span {
  margin-left: var(--sp-2);
  transition: transform var(--dur) var(--ease);
  display: inline-block;
}
.tile:hover .tile__cta span { transform: translateX(4px); }

/* Tile variants - solid block colors */
.tile--lg { grid-column: span 2; grid-row: span 2; }
.tile--wide { grid-column: span 2; }
.tile--blue { background: var(--c-primary); color: #fff; border-color: var(--c-primary); }
.tile--blue-light { background: var(--c-primary-soft); color: var(--c-primary-dark); border-color: var(--c-primary-soft); }
.tile--teal { background: var(--c-teal); color: #fff; border-color: var(--c-teal); }
.tile--dark { background: var(--c-dark); color: #fff; border-color: var(--c-dark); }
.tile--red  { background: var(--c-accent); color: #fff; border-color: var(--c-accent); }
.tile--green { background: var(--c-success); color: #fff; border-color: var(--c-success); }
.tile--purple { background: var(--c-purple); color: #fff; border-color: var(--c-purple); }

.tile--lg .tile__title { font-size: 28px; }
.tile--lg .tile__copy { font-size: 16px; }

.tile__split { display: flex; align-items: center; justify-content: space-between; gap: var(--sp-5); height: 100%; }
.tile__split > div:first-child { max-width: 56%; }
.tile__badges { display: flex; flex-direction: column; gap: var(--sp-2); }
.badge {
  display: inline-block;
  font-size: 12px;
  font-weight: var(--fw-bold);
  letter-spacing: 1px;
  text-transform: uppercase;
  padding: 6px 14px;
  border: 1px solid rgba(255,255,255,.35);
  color: #fff;
}

/* ==========================================================================
   DEPARTMENTS
   ========================================================================== */
.departments {
  padding: var(--sp-9) 0;
  background: var(--c-surface);
}
.dept-tabs {
  display: flex;
  flex-wrap: wrap;
  justify-content: center;
  gap: var(--sp-2);
  margin-bottom: var(--sp-7);
  border-bottom: 1px solid var(--c-line);
}
.dept-tab {
  position: relative;
  padding: var(--sp-3) var(--sp-5);
  font-size: 14px;
  font-weight: var(--fw-bold);
  letter-spacing: 1px;
  text-transform: uppercase;
  color: var(--c-muted);
  transition: color var(--dur-fast) var(--ease);
}
.dept-tab::after {
  content: "";
  position: absolute;
  bottom: -1px; left: 0; right: 0;
  height: 3px;
  background: var(--c-primary);
  transform: scaleX(0);
  transition: transform var(--dur) var(--ease);
}
.dept-tab:hover { color: var(--c-ink); }
.dept-tab.is-active { color: var(--c-primary); }
.dept-tab.is-active::after { transform: scaleX(1); }

.dept-panel {
  display: none;
  grid-template-columns: 1fr 1fr;
  gap: var(--sp-7);
  align-items: center;
}
.dept-panel.is-active { display: grid; animation: fadeUp 600ms var(--ease-out); }

.dept-panel__media {
  position: relative;
  height: 420px;
  background: var(--c-surface-tint);
  overflow: hidden;
}
.dept-panel__media img {
  width: 100%; height: 100%;
  object-fit: cover;
  transition: transform 1s var(--ease-out);
}
.dept-panel__media:hover img { transform: scale(1.05); }
.dept-panel__media .accent-block {
  width: 120px; height: 120px;
  top: -20px; right: -20px;
  opacity: .85;
}

.dept-panel__copy h3 {
  font-size: 32px;
  font-weight: var(--fw-bold);
  margin: 0 0 var(--sp-5);
  color: var(--c-ink);
}
.workflow { display: flex; flex-direction: column; gap: var(--sp-3); }
.workflow li {
  display: flex;
  align-items: center;
  gap: var(--sp-4);
  padding: var(--sp-3) var(--sp-4);
  background: var(--c-surface-soft);
  border-left: 3px solid var(--c-primary);
  font-size: 15px;
  font-weight: var(--fw-semi);
  color: var(--c-ink);
  transition: background-color var(--dur-fast) var(--ease), transform var(--dur-fast) var(--ease);
}
.workflow li:hover { background: var(--c-primary-soft); transform: translateX(4px); }
.step-num {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  width: 28px; height: 28px;
  background: var(--c-primary);
  color: #fff;
  font-size: 13px;
  font-weight: var(--fw-bold);
  flex-shrink: 0;
}

/* ==========================================================================
   ROLES
   ========================================================================== */
.roles {
  padding: var(--sp-9) 0;
  background: var(--c-surface-soft);
}
.role-grid {
  display: grid;
  grid-template-columns: repeat(5, 1fr);
  gap: var(--sp-4);
}
.role-card {
  background: #fff;
  padding: var(--sp-5);
  border: 1px solid var(--c-line);
  display: flex;
  flex-direction: column;
  gap: var(--sp-3);
  min-height: 240px;
  transition: transform var(--dur) var(--ease), border-color var(--dur) var(--ease), box-shadow var(--dur) var(--ease);
}
.role-card:hover {
  transform: translateY(-4px);
  border-color: var(--c-primary);
  box-shadow: var(--shadow-2);
}
.role-card__chip {
  display: inline-block;
  align-self: flex-start;
  font-size: 11px;
  font-weight: var(--fw-bold);
  letter-spacing: 1.5px;
  text-transform: uppercase;
  padding: 4px 10px;
  color: #fff;
}
.role-card__chip--blue  { background: var(--c-primary); }
.role-card__chip--teal  { background: var(--c-teal); }
.role-card__chip--green { background: var(--c-success); }
.role-card__chip--dark  { background: var(--c-dark); }
.role-card__chip--red   { background: var(--c-accent); }

.role-card h3 {
  font-size: 22px;
  font-weight: var(--fw-bold);
  margin: 0;
  color: var(--c-ink);
}
.role-card p {
  font-size: 14px;
  margin: 0;
  color: var(--c-ink-soft);
  flex-grow: 1;
}
.role-card__cta {
  font-size: 13px;
  font-weight: var(--fw-bold);
  letter-spacing: .5px;
  color: var(--c-primary);
  text-transform: uppercase;
}

/* ==========================================================================
   SECURITY
   ========================================================================== */
.security {
  padding: var(--sp-9) 0;
  background: var(--c-dark);
  color: #fff;
}
.security__inner {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: var(--sp-8);
  align-items: center;
}
.security__list {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: var(--sp-4);
  margin-top: var(--sp-6);
}
.security__list li {
  display: flex;
  gap: var(--sp-3);
  align-items: flex-start;
}
.security__check {
  width: 32px; height: 32px;
  background: var(--c-success);
  color: #fff;
  font-weight: var(--fw-bold);
  display: inline-flex;
  align-items: center;
  justify-content: center;
  flex-shrink: 0;
}
.security__list strong {
  display: block;
  font-size: 15px;
  font-weight: var(--fw-bold);
  color: #fff;
  margin-bottom: 2px;
}
.security__list span {
  font-size: 13px;
  color: #98A2B3;
}

/* Audit log panel */
.security__panel {
  background: #0A1220;
  border: 1px solid #1B2435;
  font-family: "Consolas", "SF Mono", Menlo, monospace;
}
.security__panel-head {
  display: flex;
  align-items: center;
  gap: var(--sp-2);
  padding: var(--sp-3) var(--sp-4);
  background: #060B14;
  border-bottom: 1px solid #1B2435;
}
.panel-dot {
  width: 10px; height: 10px;
  background: #3A4252;
  border-radius: 50%;
}
.panel-dot:nth-child(1) { background: #E63946; }
.panel-dot:nth-child(2) { background: #E08A00; }
.panel-dot:nth-child(3) { background: #4CAF50; }
.panel-title {
  margin-left: var(--sp-3);
  font-size: 12px;
  color: #98A2B3;
  letter-spacing: 1px;
}
.security__panel-body {
  padding: var(--sp-4);
  display: flex;
  flex-direction: column;
  gap: 6px;
}
.log-row {
  display: grid;
  grid-template-columns: 60px 1fr 80px 1fr;
  gap: var(--sp-3);
  font-size: 13px;
  color: #C7D0DA;
  padding: 4px 0;
  border-bottom: 1px dashed #1B2435;
  animation: logIn 400ms var(--ease-out) both;
}
.log-row:nth-child(1) { animation-delay: .0s; }
.log-row:nth-child(2) { animation-delay: .15s; }
.log-row:nth-child(3) { animation-delay: .30s; }
.log-row:nth-child(4) { animation-delay: .45s; }
.log-row:nth-child(5) { animation-delay: .60s; }
.log-row:nth-child(6) { animation-delay: .75s; }
@keyframes logIn {
  from { opacity: 0; transform: translateX(-6px); }
  to   { opacity: 1; transform: translateX(0); }
}
.log-time { color: #6B7280; }
.log-user { color: #fff; font-weight: var(--fw-semi); }
.log-act {
  font-weight: var(--fw-bold);
  text-transform: uppercase;
  font-size: 11px;
  letter-spacing: 1.5px;
}
.log-act--read  { color: #7BB8FF; }
.log-act--write { color: #4CAF50; }
.log-act--pay   { color: #FFB400; }
.log-row--ghost { opacity: .4; }

.security__chips {
  margin-top: var(--sp-5);
  display: flex;
  flex-wrap: wrap;
  gap: var(--sp-2);
}
.trust-chip {
  display: inline-flex;
  align-items: center;
  gap: 6px;
  padding: 6px 14px;
  background: #1B2435;
  font-size: 12px;
  font-weight: var(--fw-semi);
  letter-spacing: 1px;
  text-transform: uppercase;
  color: #C7D0DA;
}
.trust-chip__dot {
  width: 6px; height: 6px;
  background: var(--c-teal);
  display: inline-block;
}

/* ==========================================================================
   PAYMENTS
   ========================================================================== */
.payments {
  padding: var(--sp-9) 0;
  background: var(--c-surface);
}
.pay-grid {
  display: grid;
  grid-template-columns: repeat(5, 1fr);
  gap: var(--sp-4);
}
.pay-card {
  padding: var(--sp-5);
  border: 1px solid var(--c-line);
  background: #fff;
  display: flex;
  flex-direction: column;
  gap: var(--sp-3);
  transition: transform var(--dur) var(--ease), background-color var(--dur) var(--ease);
}
.pay-card:hover { transform: translateY(-4px); background: var(--c-surface-soft); }
.pay-card--feature { background: var(--c-primary); color: #fff; border-color: var(--c-primary); }
.pay-card--feature:hover { background: var(--c-primary-dark); }
.pay-card__icon {
  width: 48px; height: 48px;
  background: var(--c-primary-soft);
  color: var(--c-primary);
  display: inline-flex;
  align-items: center;
  justify-content: center;
}
.pay-card--feature .pay-card__icon { background: rgba(255,255,255,.15); color: #fff; }
.pay-card__icon svg {
  width: 26px; height: 26px;
  fill: none;
  stroke: currentColor;
  stroke-width: 1.8;
}
.pay-card h4 {
  font-size: 17px;
  font-weight: var(--fw-bold);
  margin: 0;
}
.pay-card p {
  font-size: 13px;
  margin: 0;
  opacity: .85;
}

/* ==========================================================================
   TESTIMONIAL
   ========================================================================== */
.testimonial {
  padding: var(--sp-9) 0;
  background: var(--c-surface-soft);
}
.testimonial__inner {
  display: grid;
  grid-template-columns: 1.4fr 1fr;
  gap: var(--sp-7);
  align-items: center;
}
.testimonial__quote {
  position: relative;
  padding-left: var(--sp-7);
}
.quote-mark {
  position: absolute;
  left: 0; top: -20px;
  font-size: 120px;
  line-height: 1;
  font-weight: var(--fw-bold);
  color: var(--c-primary);
  font-family: Georgia, serif;
}
.testimonial__quote blockquote {
  margin: 0;
  font-size: 24px;
  line-height: 1.4;
  font-weight: var(--fw-light);
  color: var(--c-ink);
  letter-spacing: -0.01em;
}
.testimonial__quote figcaption {
  margin-top: var(--sp-5);
  display: flex;
  flex-direction: column;
  font-size: 14px;
  color: var(--c-muted);
}
.testimonial__quote strong {
  font-size: 16px;
  font-weight: var(--fw-bold);
  color: var(--c-ink);
}

.brand-card {
  background: #fff;
  border: 1px solid var(--c-line);
  padding: var(--sp-6);
}
.brand-card__mark { margin-bottom: var(--sp-4); }
.brand-card__text { margin-bottom: var(--sp-5); }
.brand-card__text strong {
  display: block;
  font-size: 18px;
  font-weight: var(--fw-bold);
  color: var(--c-ink);
  margin-bottom: 2px;
}
.brand-card__text span {
  font-size: 13px;
  color: var(--c-muted);
}
.brand-card__meta {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 1px;
  background: var(--c-line);
  border: 1px solid var(--c-line);
}
.brand-card__meta li {
  padding: var(--sp-3);
  background: #fff;
  font-size: 13px;
}
.brand-card__meta span {
  display: block;
  font-size: 11px;
  text-transform: uppercase;
  letter-spacing: 1.5px;
  color: var(--c-muted);
  margin-bottom: 2px;
}
.brand-card__meta b {
  font-size: 15px;
  font-weight: var(--fw-bold);
  color: var(--c-ink);
}

/* ==========================================================================
   CTA
   ========================================================================== */
.cta {
  padding: var(--sp-9) 0;
  background: var(--c-primary);
  color: #fff;
}
.cta__inner {
  display: grid;
  grid-template-columns: 1.4fr 1fr;
  gap: var(--sp-7);
  align-items: center;
}
.cta h2 {
  font-size: clamp(28px, 3vw, 44px);
  font-weight: var(--fw-bold);
  letter-spacing: -0.02em;
  margin: 0 0 var(--sp-4);
  line-height: 1.1;
}
.cta p {
  font-size: 17px;
  color: rgba(255,255,255,.85);
  margin: 0;
  max-width: 56ch;
}
.cta__actions {
  display: flex;
  flex-wrap: wrap;
  gap: var(--sp-3);
  justify-content: flex-end;
}

/* ==========================================================================
   FOOTER
   ========================================================================== */
.site-footer {
  background: var(--c-dark);
  color: #C7D0DA;
}
.site-footer__grid {
  display: grid;
  grid-template-columns: 1.5fr 1fr 1fr 1.4fr;
  gap: var(--sp-7);
  padding: var(--sp-8) var(--sp-5);
}
.site-footer .brand__name { color: #fff; }
.site-footer .brand__name em { color: #7BB8FF; }
.site-footer .brand__sub { color: #6B7280; }
.site-footer__brand p {
  font-size: 14px;
  margin-top: var(--sp-4);
  max-width: 36ch;
  color: #98A2B3;
}
.footer-col h5 {
  font-size: 12px;
  font-weight: var(--fw-bold);
  letter-spacing: 2px;
  text-transform: uppercase;
  color: #fff;
  margin: 0 0 var(--sp-4);
}
.footer-col ul { display: flex; flex-direction: column; gap: var(--sp-2); }
.footer-col a { font-size: 14px; color: #C7D0DA; transition: color var(--dur-fast) var(--ease); }
.footer-col a:hover { color: #fff; }
.footer-contact li {
  display: flex;
  flex-direction: column;
  font-size: 14px;
  color: #fff;
  gap: 2px;
  margin-bottom: var(--sp-3);
}
.footer-contact span {
  font-size: 11px;
  text-transform: uppercase;
  letter-spacing: 1.5px;
  color: #6B7280;
}

.site-footer__base {
  border-top: 1px solid #1B2435;
  padding: var(--sp-4) 0;
  font-size: 12px;
  color: #6B7280;
}
.site-footer__base-inner {
  display: flex;
  justify-content: space-between;
  flex-wrap: wrap;
  gap: var(--sp-3);
}

/* ==========================================================================
   SCROLL REVEAL
   ========================================================================== */
.reveal {
  opacity: 0;
  transform: translateY(20px);
  transition: opacity 700ms var(--ease-out), transform 700ms var(--ease-out);
}
.reveal.is-visible {
  opacity: 1;
  transform: translateY(0);
}

@keyframes fadeUp {
  from { opacity: 0; transform: translateY(20px); }
  to   { opacity: 1; transform: translateY(0); }
}

/* ==========================================================================
   RESPONSIVE
   ========================================================================== */
@media (max-width: 1100px) {
  .hero__inner { grid-template-columns: 1fr; gap: var(--sp-7); }
  .hero__visual { height: 480px; }
  .tile-grid { grid-template-columns: repeat(3, 1fr); }
  .role-grid { grid-template-columns: repeat(3, 1fr); }
  .pay-grid  { grid-template-columns: repeat(3, 1fr); }
  .stats__grid { grid-template-columns: repeat(2, 1fr); }
  .security__inner,
  .testimonial__inner,
  .cta__inner { grid-template-columns: 1fr; }
  .dept-panel.is-active { grid-template-columns: 1fr; }
}

@media (max-width: 820px) {
  .utility-bar { display: none; }
  .primary-nav,
  .header-cta { display: none; }
  .nav-toggle { display: inline-flex; }
  .site-header.is-open .primary-nav {
    display: block;
    position: absolute;
    top: 100%; left: 0; right: 0;
    background: #fff;
    border-bottom: 1px solid var(--c-line);
    padding: var(--sp-4) var(--sp-5);
    box-shadow: var(--shadow-2);
  }
  .site-header.is-open .primary-nav ul {
    flex-direction: column;
    gap: var(--sp-3);
  }
  .hero { padding-top: var(--sp-6); }
  .hero__title { font-size: 36px; }
  .hero__widget { display: none; }
  .hero__photo { inset: 0; }
  .hero__visual { height: 360px; }
  .tile-grid { grid-template-columns: repeat(2, 1fr); grid-auto-rows: 200px; }
  .tile--lg { grid-column: span 2; grid-row: span 1; }
  .tile--wide { grid-column: span 2; }
  .role-grid { grid-template-columns: repeat(2, 1fr); }
  .pay-grid  { grid-template-columns: repeat(2, 1fr); }
  .stats__grid { grid-template-columns: 1fr 1fr; }
  .security__list { grid-template-columns: 1fr; }
  .site-footer__grid { grid-template-columns: 1fr 1fr; }
  .cta__actions { justify-content: flex-start; }
}

@media (max-width: 520px) {
  .tile-grid { grid-template-columns: 1fr; }
  .tile--lg, .tile--wide { grid-column: span 1; }
  .role-grid,
  .pay-grid,
  .site-footer__grid { grid-template-columns: 1fr; }
  .stats__grid { grid-template-columns: 1fr; }
  .testimonial__quote blockquote { font-size: 20px; }
}

/* Respect reduced motion */
@media (prefers-reduced-motion: reduce) {
  *, *::before, *::after {
    animation-duration: .001ms !important;
    transition-duration: .001ms !important;
  }
  .reveal { opacity: 1; transform: none; }
}
