/*═══════════════════════════════════════════════════════════════════════════
  DESIGN TOKENS — ems-display.com  v6.1  FROZEN
  Precision-industrial aesthetic. Navy + Cyan + Amber. Multi-layer depth.
  THIS FILE IS THE CONTRACT. Execution agents: read-only. Do NOT modify.
  ═══════════════════════════════════════════════════════════════════════════*/

/*───────────────────────────────────────────────────────────────────────────
  CUSTOM PROPERTIES
  ───────────────────────────────────────────────────────────────────────────*/

:root {
  /*── Color: Brand (navy) ──────────────────────────────────────────────────*/
  --brand-50:  #f0f4fa;
  --brand-100: #d9e2f0;
  --brand-200: #b3c5e1;
  --brand-300: #8da8d2;
  --brand-400: #668bc3;
  --brand-500: #406eb4;
  --brand-600: #335899;
  --brand-700: #26427d;
  --brand-800: #1a2c61;
  --brand-900: #0b1a2e;

  /*── Color: Accent (electric cyan) ────────────────────────────────────────*/
  --accent-50:  #e6f8fc;
  --accent-100: #b3eaf5;
  --accent-200: #80dcee;
  --accent-300: #4dcee7;
  --accent-400: #26c0df;
  --accent-500: #00b4d8;
  --accent-600: #0096b5;
  --accent-700: #007892;
  --accent-800: #005a6f;
  --accent-900: #003c4c;

  /*── Color: Accent2 (warm amber — CTAs, highlights) ───────────────────────*/
  --amber-50:  #fff9ed;
  --amber-100: #ffedcc;
  --amber-200: #ffdb8a;
  --amber-300: #ffc94d;
  --amber-400: #ffb820;
  --amber-500: #f0a500;
  --amber-600: #cc8c00;
  --amber-700: #a67300;
  --amber-800: #805a00;
  --amber-900: #594000;

  /*── Color: Neutral (cool-gray) ───────────────────────────────────────────*/
  --neutral-50:  #f8fafc;
  --neutral-100: #f1f5f9;
  --neutral-200: #e2e8f0;
  --neutral-300: #cbd5e1;
  --neutral-400: #94a3b8;
  --neutral-500: #64748b;
  --neutral-600: #475569;
  --neutral-700: #334155;
  --neutral-800: #1e293b;
  --neutral-900: #0f172a;
  --neutral-950: #020617;

  /*── Semantic ─────────────────────────────────────────────────────────────*/
  --surface:        var(--neutral-50);
  --surface-raised: #ffffff;
  --surface-overlay: rgba(11, 26, 46, 0.92);
  --surface-glass:  rgba(255, 255, 255, 0.06);
  --ink:            var(--neutral-900);
  --ink-secondary:  var(--neutral-600);
  --ink-muted:      var(--neutral-400);
  --ink-inverse:    #ffffff;
  --border:         var(--neutral-200);
  --border-strong:  var(--neutral-300);
  --brand:          var(--brand-600);
  --brand-hover:    var(--brand-700);
  --accent:         var(--accent-500);
  --accent-hover:   var(--accent-600);
  --cta:            var(--amber-500);
  --cta-hover:      var(--amber-600);
  --success:        #10b981;
  --warning:        var(--amber-500);
  --error:          #ef4444;

  /*── Gradient presets ─────────────────────────────────────────────────────*/
  --gradient-hero:   linear-gradient(135deg, var(--brand-900), #0d2440 40%, #0a2035 70%, var(--accent-900));
  --gradient-cta:    linear-gradient(135deg, var(--brand-800), var(--brand-700));
  --gradient-accent: linear-gradient(135deg, var(--accent-500), var(--accent-700));
  --gradient-card:   linear-gradient(180deg, rgba(11,26,46,0) 0%, rgba(11,26,46,0.03) 100%);

  /*── Type: Scale (1.25 major third) ──────────────────────────────────────*/
  --text-xs:   0.75rem;   /* 12px */
  --text-sm:   0.875rem;  /* 14px */
  --text-base: 0.9375rem; /* 15px */
  --text-md:   1.125rem;  /* 18px */
  --text-lg:   1.375rem;  /* 22px */
  --text-xl:   1.75rem;   /* 28px */
  --text-2xl:  2.1875rem; /* 35px */
  --text-3xl:  2.75rem;   /* 44px */
  --text-4xl:  3.4375rem; /* 55px */
  --text-5xl:  4.25rem;   /* 68px */

  /*── Type: Families ───────────────────────────────────────────────────────*/
  --font-display: 'Segoe UI', 'SF Pro Rounded', system-ui, -apple-system, sans-serif;
  --font-body:    'Inter', 'Segoe UI', system-ui, -apple-system, sans-serif;
  --font-mono:    'JetBrains Mono', 'Consolas', 'Cascadia Code', monospace;

  /*── Type: Weights ────────────────────────────────────────────────────────*/
  --fw-light:  300;
  --fw-normal: 400;
  --fw-medium: 500;
  --fw-semibold: 600;
  --fw-bold:   700;

  /*── Type: Line-heights ───────────────────────────────────────────────────*/
  --lh-tight:   1.15;
  --lh-snug:    1.3;
  --lh-normal:  1.6;
  --lh-relaxed: 1.75;

  /*── Spacing (8px base) ───────────────────────────────────────────────────*/
  --sp-0:  0;
  --sp-1:  0.25rem;  /* 4px */
  --sp-2:  0.5rem;   /* 8px */
  --sp-3:  0.75rem;  /* 12px */
  --sp-4:  1rem;     /* 16px */
  --sp-5:  1.5rem;   /* 24px */
  --sp-6:  2rem;     /* 32px */
  --sp-8:  3rem;     /* 48px */
  --sp-10: 4rem;     /* 64px */
  --sp-12: 5rem;     /* 80px */
  --sp-16: 6rem;     /* 96px */
  --sp-20: 8rem;     /* 128px */
  --sp-24: 10rem;    /* 160px */
  --sp-32: 14rem;    /* 224px */

  /*── Section gaps ─────────────────────────────────────────────────────────*/
  --section-gap-xs: 2rem;
  --section-gap-sm: 3rem;
  --section-gap-md: 5rem;
  --section-gap-lg: 8rem;
  --section-gap-xl: 12rem;

  /*── Depth: Multi-layer shadows ───────────────────────────────────────────*/
  --shadow-sm:
    0 1px 2px rgba(0,0,0,0.03),
    0 2px 4px rgba(0,0,0,0.04);
  --shadow-card:
    0 1px 2px rgba(0,0,0,0.04),
    0 4px 16px rgba(0,0,0,0.06),
    0 16px 48px rgba(0,0,0,0.06);
  --shadow-card-hover:
    0 1px 2px rgba(0,0,0,0.05),
    0 8px 24px rgba(0,0,0,0.08),
    0 24px 64px rgba(0,0,0,0.08),
    0 0 0 1px rgba(0,180,216,0.15);
  --shadow-modal:
    0 1px 2px rgba(0,0,0,0.06),
    0 8px 32px rgba(0,0,0,0.12),
    0 32px 96px rgba(0,0,0,0.16);
  --shadow-nav:
    0 1px 2px rgba(0,0,0,0.03),
    0 2px 8px rgba(0,0,0,0.05);
  --shadow-glow-cyan:
    0 0 20px rgba(0,180,216,0.2),
    0 0 60px rgba(0,180,216,0.08);

  /*── Border-radius ────────────────────────────────────────────────────────*/
  --radius-sm:   4px;
  --radius-md:   8px;
  --radius-lg:   12px;
  --radius-xl:   16px;
  --radius-full: 9999px;

  /*── Motion ───────────────────────────────────────────────────────────────*/
  --ease-out-expo: cubic-bezier(0.16, 1, 0.3, 1);
  --ease-spring:   cubic-bezier(0.34, 1.56, 0.64, 1);
  --dur-fast:      150ms;
  --dur-normal:    300ms;
  --dur-slow:      500ms;
  --dur-slower:    800ms;

  /*── Layout ───────────────────────────────────────────────────────────────*/
  --nav-height:     64px;
  --container-max:  1200px;
  --container-narrow: 860px;
  --container-wide: 1400px;
}

@media (prefers-reduced-motion: reduce) {
  :root {
    --dur-fast: 0ms;
    --dur-normal: 0ms;
    --dur-slow: 0ms;
    --dur-slower: 0ms;
  }
}

/*───────────────────────────────────────────────────────────────────────────
  RESET + BASE
  ───────────────────────────────────────────────────────────────────────────*/

*, *::before, *::after {
  box-sizing: border-box;
  margin: 0;
  padding: 0;
}

html {
  scroll-behavior: smooth;
  -webkit-text-size-adjust: 100%;
}

body {
  font-family: var(--font-body);
  font-size: var(--text-base);
  line-height: var(--lh-normal);
  color: var(--ink);
  background: var(--surface);
  -webkit-font-smoothing: antialiased;
  -moz-osx-font-smoothing: grayscale;
  overflow-x: hidden;
}

img {
  display: block;
  max-width: 100%;
  height: auto;
}

a {
  color: var(--brand);
  text-decoration: none;
  transition: color var(--dur-fast) var(--ease-out-expo);
}
a:hover { color: var(--brand-hover); }

ul, ol { list-style: none; }

/*── Skip link ──────────────────────────────────────────────────────────────*/
.skip-link {
  position: absolute;
  top: -100%;
  left: var(--sp-4);
  background: var(--ink);
  color: var(--ink-inverse);
  padding: var(--sp-2) var(--sp-4);
  border-radius: var(--radius-sm);
  z-index: 10000;
  font-weight: var(--fw-medium);
  transition: top var(--dur-fast);
}
.skip-link:focus {
  top: var(--sp-2);
}

/*───────────────────────────────────────────────────────────────────────────
  TYPOGRAPHY UTILITY CLASSES (in tokens — global)
  ───────────────────────────────────────────────────────────────────────────*/

.display { font-family: var(--font-display); }
.mono   { font-family: var(--font-mono); }

h1, .h1 { font-family: var(--font-display); font-size: var(--text-4xl); font-weight: var(--fw-bold); line-height: var(--lh-tight); letter-spacing: -0.02em; }
h2, .h2 { font-family: var(--font-display); font-size: var(--text-3xl); font-weight: var(--fw-semibold); line-height: var(--lh-snug); letter-spacing: -0.01em; }
h3, .h3 { font-family: var(--font-display); font-size: var(--text-2xl); font-weight: var(--fw-semibold); line-height: var(--lh-snug); }
h4, .h4 { font-family: var(--font-display); font-size: var(--text-xl); font-weight: var(--fw-semibold); line-height: var(--lh-snug); }

.lead {
  font-size: var(--text-md);
  line-height: var(--lh-relaxed);
  color: var(--ink-secondary);
}

.section-eyebrow {
  display: inline-block;
  font-family: var(--font-mono);
  font-size: var(--text-xs);
  font-weight: var(--fw-medium);
  text-transform: uppercase;
  letter-spacing: 0.12em;
  color: var(--accent);
  margin-bottom: var(--sp-2);
}

.section-label {
  display: inline-block;
  font-family: var(--font-mono);
  font-size: var(--text-xs);
  font-weight: var(--fw-semibold);
  text-transform: uppercase;
  letter-spacing: 0.1em;
  color: var(--accent);
  background: var(--accent-50);
  padding: var(--sp-1) var(--sp-3);
  border-radius: var(--radius-full);
  margin-bottom: var(--sp-3);
}

.section-title {
  font-family: var(--font-display);
  font-size: var(--text-3xl);
  font-weight: var(--fw-bold);
  line-height: var(--lh-tight);
  color: var(--ink);
  margin-bottom: var(--sp-4);
}

.section-subtitle {
  font-size: var(--text-md);
  color: var(--ink-secondary);
  max-width: 620px;
}

.text-center { text-align: center; }
.text-inverse { color: var(--ink-inverse); }

/*───────────────────────────────────────────────────────────────────────────
  LAYOUT CLASSES (in tokens — global)
  ───────────────────────────────────────────────────────────────────────────*/

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

.container-narrow {
  max-width: var(--container-narrow);
  margin-inline: auto;
  padding-inline: var(--sp-5);
}

.container-wide {
  max-width: var(--container-wide);
  margin-inline: auto;
  padding-inline: var(--sp-5);
}

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

@media (max-width: 860px) {
  .grid-2, .grid-3, .grid-4 { grid-template-columns: repeat(2, 1fr); }
}
@media (max-width: 560px) {
  .grid-2, .grid-3, .grid-4, .grid-auto { grid-template-columns: 1fr; }
}

/*── Media Split — TEXT + IMAGE layout ─────────────────────────────────────*/
.media-split {
  display: grid;
  grid-template-columns: 5fr 4fr;
  gap: var(--sp-10);
  align-items: start;
}

.media-split.reverse {
  grid-template-columns: 4fr 5fr;
}
.media-split.reverse .media-img {
  order: -1;
}

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

.media-text .feature-list {
  display: flex;
  flex-direction: column;
  gap: var(--sp-3);
  margin: var(--sp-2) 0;
}

.media-text .feature-list li {
  position: relative;
  padding-left: var(--sp-6);
  font-size: var(--text-base);
  color: var(--ink-secondary);
  line-height: var(--lh-snug);
}

.media-text .feature-list li::before {
  content: '';
  position: absolute;
  left: 0;
  top: 0.45em;
  width: 8px;
  height: 8px;
  border-radius: 2px;
  background: var(--accent);
}

.media-img {
  position: sticky;
  top: calc(var(--nav-height) + var(--sp-5));
  max-height: 460px;
  border-radius: var(--radius-lg);
  overflow: hidden;
  box-shadow: var(--shadow-card);
}

.media-img img {
  width: 100%;
  height: 100%;
  object-fit: cover;
}

@media (max-width: 860px) {
  .media-split, .media-split.reverse {
    grid-template-columns: 1fr;
    gap: var(--sp-6);
  }
  .media-split.reverse .media-img { order: 0; }
  .media-img {
    position: static;
    max-height: 360px;
  }
}

/*── Hero ───────────────────────────────────────────────────────────────────*/
.hero-inner {
  position: relative;
  height: 100vh;
  display: flex;
  align-items: center;
  background: var(--gradient-hero);
  padding: var(--nav-height) 0 0;
  overflow: hidden;
}

.hero-inner::before {
  content: '';
  position: absolute;
  inset: 0;
  background:
    radial-gradient(ellipse 80% 60% at 30% 40%, rgba(0,180,216,0.08) 0%, transparent 60%),
    radial-gradient(ellipse 60% 50% at 70% 60%, rgba(240,165,0,0.05) 0%, transparent 50%);
  pointer-events: none;
}

.hero-inner-content {
  position: relative;
  z-index: 1;
  padding: var(--sp-6) var(--sp-5);
  max-width: 680px;
}

.hero-inner-content h1 {
  color: var(--ink-inverse);
  margin-bottom: var(--sp-4);
}

.hero-inner-content .lead {
  color: rgba(255,255,255,0.75);
  margin-bottom: var(--sp-6);
}

.hero-inner-actions {
  display: flex;
  gap: var(--sp-3);
  flex-wrap: wrap;
}

@media (max-width: 480px) {
  .hero-inner {
    height: 100vh;
    padding: var(--nav-height) 0 0;
  }
  .hero-inner-content {
    padding: var(--sp-4) var(--sp-3);
  }
  .hero-inner-content h1 {
    font-size: var(--text-2xl);
  }
}

/*── Hero (short/page variant) ─────────────────────────────────────────────*/
.hero-page {
  position: relative;
  min-height: 35vh;
  display: flex;
  align-items: center;
  background: var(--gradient-hero);
  padding: var(--nav-height) 0 var(--sp-8);
  overflow: hidden;
}
.hero-page::before {
  content: '';
  position: absolute;
  inset: 0;
  background: radial-gradient(ellipse 60% 50% at 50% 40%, rgba(0,180,216,0.06) 0%, transparent 60%);
  pointer-events: none;
}
.hero-page .hero-inner-content {
  padding: var(--sp-5) var(--sp-5);
}
.hero-page .hero-inner-content h1 {
  font-size: var(--text-3xl);
}

@media (max-width: 480px) {
  .hero-page {
    min-height: 28vh;
    padding: var(--nav-height) 0 var(--sp-6);
  }
  .hero-page .hero-inner-content h1 {
    font-size: var(--text-2xl);
  }
}

/*───────────────────────────────────────────────────────────────────────────
  BUTTONS
  ───────────────────────────────────────────────────────────────────────────*/

.btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: var(--sp-2);
  font-family: var(--font-body);
  font-size: var(--text-sm);
  font-weight: var(--fw-semibold);
  line-height: 1;
  padding: 0.75rem 1.5rem;
  border-radius: var(--radius-sm);
  border: 2px solid transparent;
  cursor: pointer;
  transition: all var(--dur-fast) var(--ease-out-expo);
  text-decoration: none;
  white-space: nowrap;
}

.btn-primary {
  background: var(--cta);
  color: #fff;
  border-color: var(--cta);
}
.btn-primary:hover {
  background: var(--cta-hover);
  border-color: var(--cta-hover);
  color: #fff;
  box-shadow: 0 4px 16px rgba(240,165,0,0.3);
}

.btn-accent {
  background: var(--accent);
  color: #fff;
  border-color: var(--accent);
}
.btn-accent:hover {
  background: var(--accent-hover);
  color: #fff;
  box-shadow: var(--shadow-glow-cyan);
}

.btn-outline {
  background: transparent;
  color: var(--brand);
  border-color: var(--border-strong);
}
.btn-outline:hover {
  border-color: var(--brand);
  color: var(--brand-hover);
  background: var(--brand-50);
}

.btn-inverse {
  background: #fff;
  color: var(--brand-900);
  border-color: #fff;
}
.btn-inverse:hover {
  background: rgba(255,255,255,0.9);
  color: var(--brand-900);
  box-shadow: 0 4px 20px rgba(0,0,0,0.2);
}

.btn-outline-inverse {
  background: transparent;
  color: var(--ink-inverse);
  border-color: rgba(255,255,255,0.3);
}
.btn-outline-inverse:hover {
  background: rgba(255,255,255,0.1);
  border-color: rgba(255,255,255,0.6);
  color: var(--ink-inverse);
}

.btn-lg {
  padding: 1rem 2rem;
  font-size: var(--text-base);
}

.btn-sm {
  padding: 0.5rem 1rem;
  font-size: var(--text-xs);
}

/*───────────────────────────────────────────────────────────────────────────
  CARDS
  ───────────────────────────────────────────────────────────────────────────*/

.card {
  background: var(--surface-raised);
  border-radius: var(--radius-md);
  overflow: hidden;
  transition: all var(--dur-normal) var(--ease-out-expo);
}

.card-raised {
  box-shadow: var(--shadow-card);
}
.card-raised:hover {
  box-shadow: var(--shadow-card-hover);
  transform: translateY(-2px);
}

.card-media {
  position: relative;
  aspect-ratio: 4/3;
  overflow: hidden;
  background: var(--neutral-100);
}

.card-media img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  transition: transform var(--dur-slow) var(--ease-out-expo);
}

.card-raised:hover .card-media img {
  transform: scale(1.04);
}

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

.card-title {
  font-family: var(--font-display);
  font-size: var(--text-lg);
  font-weight: var(--fw-semibold);
  margin-bottom: var(--sp-2);
  color: var(--ink);
}

.card-desc {
  font-size: var(--text-sm);
  color: var(--ink-secondary);
  line-height: var(--lh-snug);
  margin-bottom: var(--sp-4);
}

/*── Badges ─────────────────────────────────────────────────────────────────*/
.badge {
  display: inline-block;
  width: fit-content;
  font-family: var(--font-mono);
  font-size: 0.6875rem;
  font-weight: var(--fw-semibold);
  text-transform: uppercase;
  letter-spacing: 0.06em;
  padding: 0.2em 0.5em;
  border-radius: var(--radius-full);
  line-height: 1.3;
}

.badge-accent {
  background: var(--accent-500);
  color: #fff;
}

.badge-outline {
  background: transparent;
  color: var(--accent);
  border: 1px solid var(--accent-300);
}

.badge-amber {
  background: var(--amber-100);
  color: var(--amber-800);
}

.badge-brand {
  background: var(--brand-100);
  color: var(--brand-700);
}

/*── Spec Mini (inline specs in cards) ─────────────────────────────────────*/
.spec-mini {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: var(--sp-2) var(--sp-3);
  margin-bottom: var(--sp-4);
  padding: var(--sp-3);
  background: var(--neutral-50);
  border-radius: var(--radius-sm);
}

.spec-mini dt {
  font-family: var(--font-mono);
  font-size: 0.6875rem;
  font-weight: var(--fw-medium);
  text-transform: uppercase;
  letter-spacing: 0.06em;
  color: var(--ink-muted);
}

.spec-mini dd {
  font-family: var(--font-mono);
  font-size: var(--text-sm);
  font-weight: var(--fw-semibold);
  color: var(--ink);
}

/*───────────────────────────────────────────────────────────────────────────
  SECTION GAPS
  ───────────────────────────────────────────────────────────────────────────*/

.section-gap-xs { padding-block: var(--section-gap-xs); }
.section-gap-sm { padding-block: var(--section-gap-sm); }
.section-gap-md { padding-block: var(--section-gap-md); }
.section-gap-lg { padding-block: var(--section-gap-lg); }
.section-gap-xl { padding-block: var(--section-gap-xl); }

/*───────────────────────────────────────────────────────────────────────────
  BLOCK: CTA Band
  ───────────────────────────────────────────────────────────────────────────*/

.cta-band {
  background: var(--gradient-cta);
  color: var(--ink-inverse);
  position: relative;
  overflow: hidden;
}

.cta-band::before {
  content: '';
  position: absolute;
  inset: 0;
  background:
    radial-gradient(ellipse 50% 80% at 20% 50%, rgba(0,180,216,0.12) 0%, transparent 60%),
    radial-gradient(ellipse 40% 60% at 80% 30%, rgba(240,165,0,0.08) 0%, transparent 50%);
  pointer-events: none;
}

.cta-band-inner {
  position: relative;
  z-index: 1;
  text-align: center;
  max-width: 640px;
  margin: 0 auto;
}

.cta-band-title {
  color: var(--ink-inverse);
  font-size: var(--text-3xl);
  margin-bottom: var(--sp-3);
}

.cta-band-lead {
  color: rgba(255,255,255,0.7);
  margin-bottom: var(--sp-6);
}

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

/*───────────────────────────────────────────────────────────────────────────
  BLOCK: Image Fallback Panel
  ───────────────────────────────────────────────────────────────────────────*/

.img-fallback-panel {
  width: 100%;
  height: 100%;
  min-height: 240px;
  border-radius: var(--radius-md);
  display: flex;
  align-items: center;
  justify-content: center;
  color: var(--neutral-400);
}

.img-fallback-panel.navy  { background: linear-gradient(135deg, var(--brand-800), var(--brand-900)); }
.img-fallback-panel.cyan  { background: linear-gradient(135deg, var(--accent-700), var(--accent-900)); }
.img-fallback-panel.gray  { background: linear-gradient(135deg, var(--neutral-100), var(--neutral-200)); }
.img-fallback-panel.split {
  background:
    linear-gradient(135deg, var(--brand-800) 0%, var(--brand-800) 50%, var(--accent-800) 50%, var(--accent-800) 100%);
}

.img-fallback-panel .fallback-icon {
  width: 48px;
  height: 48px;
  opacity: 0.3;
}

/*───────────────────────────────────────────────────────────────────────────
  TRUST BAR
  ───────────────────────────────────────────────────────────────────────────*/

.trust-bar {
  background: var(--surface-raised);
  border-block: 1px solid var(--border);
}

.trust-bar-grid {
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  gap: var(--sp-5);
  align-items: center;
  justify-items: center;
  padding-block: var(--sp-5);
}

.trust-bar-item {
  display: flex;
  align-items: center;
  gap: var(--sp-2);
  font-size: var(--text-sm);
  font-weight: var(--fw-medium);
  color: var(--ink-secondary);
}

.trust-bar-item svg {
  width: 20px;
  height: 20px;
  color: var(--accent);
  flex-shrink: 0;
}

@media (max-width: 640px) {
  .trust-bar-grid {
    grid-template-columns: repeat(2, 1fr);
    gap: var(--sp-4);
  }
}

/*───────────────────────────────────────────────────────────────────────────
  BLOCK: Stats Panel (frosted glass)
  ───────────────────────────────────────────────────────────────────────────*/

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

.stats-card {
  background: rgba(255,255,255,0.06);
  backdrop-filter: blur(12px);
  -webkit-backdrop-filter: blur(12px);
  border: 1px solid rgba(255,255,255,0.08);
  border-radius: var(--radius-lg);
  padding: var(--sp-6) var(--sp-4);
}

.stats-number {
  font-family: var(--font-display);
  font-size: var(--text-3xl);
  font-weight: var(--fw-bold);
  color: var(--accent);
  line-height: 1;
  margin-bottom: var(--sp-2);
}

.stats-label {
  font-family: var(--font-mono);
  font-size: var(--text-xs);
  text-transform: uppercase;
  letter-spacing: 0.1em;
  color: var(--ink-muted);
}

@media (max-width: 768px) {
  .stats-panel { grid-template-columns: repeat(2, 1fr); }
}

@media (max-width: 480px) {
  .stats-panel { grid-template-columns: 1fr; }
}

/*───────────────────────────────────────────────────────────────────────────
  BLOCK: Process Steps
  ───────────────────────────────────────────────────────────────────────────*/

.process-steps {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: var(--sp-5);
  position: relative;
}

.process-step {
  text-align: center;
  position: relative;
}

.process-step-icon {
  width: 64px;
  height: 64px;
  border-radius: var(--radius-full);
  background: linear-gradient(135deg, var(--accent-50), var(--accent-100));
  display: flex;
  align-items: center;
  justify-content: center;
  margin: 0 auto var(--sp-4);
}

.process-step-icon svg {
  width: 28px;
  height: 28px;
  color: var(--accent-700);
}

.process-step-num {
  font-family: var(--font-display);
  font-size: var(--text-xs);
  font-weight: var(--fw-bold);
  color: var(--accent);
  letter-spacing: 0.12em;
  text-transform: uppercase;
  margin-bottom: var(--sp-2);
}

.process-step h3 {
  font-size: var(--text-lg);
  margin-bottom: var(--sp-2);
}

.process-step p {
  font-size: var(--text-sm);
  color: var(--ink-secondary);
  max-width: 280px;
  margin: 0 auto;
}

.process-steps::before {
  content: '';
  position: absolute;
  top: 32px;
  left: calc(16.67% + 32px);
  right: calc(16.67% + 32px);
  height: 1px;
  background: var(--border);
  z-index: -1;
}

@media (max-width: 768px) {
  .process-steps {
    grid-template-columns: 1fr;
    gap: var(--sp-6);
  }
  .process-steps::before { display: none; }
}

/*───────────────────────────────────────────────────────────────────────────
  BLOCK: Application Grid
  ───────────────────────────────────────────────────────────────────────────*/

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

.app-card {
  position: relative;
  aspect-ratio: 1;
  border-radius: var(--radius-md);
  overflow: hidden;
  cursor: pointer;
}

.app-card img {
  width: 100%;
  height: 100%;
  object-fit: cover;
}

.app-card-overlay {
  position: absolute;
  inset: 0;
  background: linear-gradient(180deg, transparent 40%, rgba(11,26,46,0.8) 100%);
  display: flex;
  align-items: flex-end;
  padding: var(--sp-4);
}

.app-card-label {
  font-family: var(--font-display);
  font-size: var(--text-md);
  font-weight: var(--fw-semibold);
  color: #fff;
}

@media (max-width: 860px) {
  .app-grid { grid-template-columns: repeat(2, 1fr); }
}
@media (max-width: 480px) {
  .app-grid { grid-template-columns: 1fr; }
}

/*───────────────────────────────────────────────────────────────────────────
  BLOCK: Blog Card
  ───────────────────────────────────────────────────────────────────────────*/

.blog-card {
  background: var(--surface-raised);
  border-radius: var(--radius-md);
  overflow: hidden;
  box-shadow: var(--shadow-card);
  transition: all var(--dur-normal) var(--ease-out-expo);
}

.blog-card:hover {
  box-shadow: var(--shadow-card-hover);
  transform: translateY(-2px);
}

.blog-card-img {
  aspect-ratio: 16/9;
  overflow: hidden;
  background: var(--neutral-100);
}

.blog-card-img img {
  width: 100%;
  height: 100%;
  object-fit: cover;
}

.blog-card-body {
  padding: var(--sp-5);
}

.blog-card-date {
  font-family: var(--font-mono);
  font-size: var(--text-xs);
  color: var(--ink-muted);
  margin-bottom: var(--sp-2);
}

.blog-card-title {
  font-family: var(--font-display);
  font-size: var(--text-md);
  font-weight: var(--fw-semibold);
  line-height: var(--lh-snug);
  margin-bottom: var(--sp-2);
  color: var(--ink);
}

.blog-card-title a { color: inherit; }
.blog-card-title a:hover { color: var(--brand); }

.blog-card-excerpt {
  font-size: var(--text-sm);
  color: var(--ink-secondary);
  line-height: var(--lh-snug);
}

/*───────────────────────────────────────────────────────────────────────────
  BLOCK: Testimonial
  ───────────────────────────────────────────────────────────────────────────*/

.testimonial-block {
  text-align: center;
  max-width: 680px;
  margin: 0 auto;
  padding: var(--sp-8) 0;
}

.testimonial-quote {
  font-family: var(--font-display);
  font-size: var(--text-xl);
  font-weight: var(--fw-medium);
  font-style: italic;
  line-height: var(--lh-relaxed);
  color: var(--ink);
  margin-bottom: var(--sp-5);
  position: relative;
}

.testimonial-quote::before {
  content: '"';
  font-size: 4rem;
  color: var(--accent-200);
  position: absolute;
  top: -2rem;
  left: 50%;
  transform: translateX(-50%);
  line-height: 1;
  pointer-events: none;
}

.testimonial-author {
  font-family: var(--font-mono);
  font-size: var(--text-sm);
  color: var(--ink-secondary);
}

.testimonial-role {
  font-size: var(--text-xs);
  color: var(--ink-muted);
}

/*───────────────────────────────────────────────────────────────────────────
  BLOCK: Comparison Table
  ───────────────────────────────────────────────────────────────────────────*/

.comparison-table-wrap {
  overflow-x: auto;
  -webkit-overflow-scrolling: touch;
}

.comparison-table {
  width: 100%;
  border-collapse: collapse;
  font-size: var(--text-sm);
}

.comparison-table th {
  font-family: var(--font-mono);
  font-size: var(--text-xs);
  font-weight: var(--fw-semibold);
  text-transform: uppercase;
  letter-spacing: 0.08em;
  color: var(--ink-secondary);
  text-align: left;
  padding: var(--sp-3) var(--sp-4);
  border-bottom: 2px solid var(--border-strong);
  white-space: nowrap;
}

.comparison-table td {
  padding: var(--sp-3) var(--sp-4);
  border-bottom: 1px solid var(--border);
  color: var(--ink);
}

.comparison-table tr:hover td {
  background: var(--brand-50);
}

.comparison-table .col-product {
  font-weight: var(--fw-semibold);
  color: var(--brand);
}

/*───────────────────────────────────────────────────────────────────────────
  BLOCK: Spec Table
  ───────────────────────────────────────────────────────────────────────────*/

.spec-table-wrap {
  overflow-x: auto;
}

.spec-table {
  width: 100%;
  border-collapse: collapse;
}

.spec-table tr {
  border-bottom: 1px solid var(--border);
}

.spec-table td {
  padding: var(--sp-3) var(--sp-4);
  font-size: var(--text-sm);
}

.spec-table td:first-child {
  font-family: var(--font-mono);
  font-size: var(--text-xs);
  font-weight: var(--fw-medium);
  text-transform: uppercase;
  letter-spacing: 0.06em;
  color: var(--ink-muted);
  width: 200px;
  white-space: nowrap;
}

.spec-table td:last-child {
  font-weight: var(--fw-medium);
  color: var(--ink);
}

/*───────────────────────────────────────────────────────────────────────────
  BLOCK: Office Card
  ───────────────────────────────────────────────────────────────────────────*/

.office-card {
  background: var(--surface-raised);
  border: 1px solid var(--border);
  border-radius: var(--radius-md);
  padding: var(--sp-5);
  transition: box-shadow var(--dur-normal) var(--ease-out-expo);
}

.office-card:hover {
  box-shadow: var(--shadow-card);
}

.office-city {
  font-family: var(--font-display);
  font-size: var(--text-lg);
  font-weight: var(--fw-semibold);
  margin-bottom: var(--sp-2);
}

.office-address {
  font-size: var(--text-sm);
  color: var(--ink-secondary);
  line-height: var(--lh-snug);
  margin-bottom: var(--sp-3);
}

.office-tel {
  font-family: var(--font-mono);
  font-size: var(--text-xs);
  color: var(--accent);
}

/*───────────────────────────────────────────────────────────────────────────
  BLOCK: FAQ Accordion
  ───────────────────────────────────────────────────────────────────────────*/

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

.faq-item {
  border: 1px solid var(--border);
  border-radius: var(--radius-md);
  overflow: hidden;
  background: var(--surface-raised);
}

.faq-question {
  width: 100%;
  background: none;
  border: none;
  padding: var(--sp-4) var(--sp-5);
  font-family: var(--font-body);
  font-size: var(--text-base);
  font-weight: var(--fw-medium);
  color: var(--ink);
  text-align: left;
  cursor: pointer;
  display: flex;
  justify-content: space-between;
  align-items: center;
  gap: var(--sp-4);
}

.faq-question::after {
  content: '+';
  font-size: var(--text-lg);
  font-weight: var(--fw-light);
  color: var(--accent);
  transition: transform var(--dur-fast) var(--ease-out-expo);
  flex-shrink: 0;
}

.faq-item.open .faq-question::after {
  content: '−';
  transform: rotate(180deg);
}

.faq-item .faq-answer {
  display: none;
  padding: 0 var(--sp-5) var(--sp-4);
  font-size: var(--text-sm);
  color: var(--ink-secondary);
  line-height: var(--lh-relaxed);
}
.faq-item.open .faq-answer {
  display: block;
}

/*───────────────────────────────────────────────────────────────────────────
  BLOCK: Category Card
  ───────────────────────────────────────────────────────────────────────────*/

.category-card {
  background: var(--surface-raised);
  border: 1px solid var(--border);
  border-radius: var(--radius-md);
  padding: var(--sp-6) var(--sp-5);
  text-align: center;
  transition: all var(--dur-normal) var(--ease-out-expo);
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: var(--sp-3);
}

.category-card:hover {
  border-color: var(--accent-300);
  box-shadow: var(--shadow-card-hover);
  transform: translateY(-2px);
}

.category-card-icon {
  width: 56px;
  height: 56px;
  border-radius: var(--radius-md);
  background: linear-gradient(135deg, var(--accent-50), var(--accent-100));
  display: flex;
  align-items: center;
  justify-content: center;
  margin-bottom: var(--sp-2);
}

.category-card-icon svg {
  width: 28px;
  height: 28px;
  color: var(--accent-700);
}

.category-card h3 {
  font-size: var(--text-md);
  margin-bottom: 0;
}

.category-card p {
  font-size: var(--text-sm);
  color: var(--ink-secondary);
  line-height: var(--lh-snug);
}

/*───────────────────────────────────────────────────────────────────────────
  BLOCK: Product Filter Tabs
  ───────────────────────────────────────────────────────────────────────────*/

.filter-tabs {
  display: flex;
  gap: var(--sp-2);
  flex-wrap: wrap;
  justify-content: center;
}

.filter-tab {
  font-family: var(--font-mono);
  font-size: var(--text-xs);
  font-weight: var(--fw-medium);
  text-transform: uppercase;
  letter-spacing: 0.06em;
  padding: var(--sp-2) var(--sp-4);
  border-radius: var(--radius-full);
  border: 1px solid var(--border);
  background: var(--surface-raised);
  color: var(--ink-secondary);
  cursor: pointer;
  transition: all var(--dur-fast) var(--ease-out-expo);
}

.filter-tab:hover,
.filter-tab.active {
  border-color: var(--accent);
  color: var(--accent);
  background: var(--accent-50);
}

/*───────────────────────────────────────────────────────────────────────────
  BLOCK: Related Posts
  ───────────────────────────────────────────────────────────────────────────*/

.related-posts {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: var(--sp-5);
}

@media (max-width: 768px) {
  .related-posts { grid-template-columns: 1fr; }
}

/*───────────────────────────────────────────────────────────────────────────
  BLOCK: Article Header
  ───────────────────────────────────────────────────────────────────────────*/

.article-header {
  padding: var(--sp-10) 0 var(--sp-6);
}

.article-meta {
  display: flex;
  gap: var(--sp-4);
  align-items: center;
  margin-bottom: var(--sp-4);
  font-family: var(--font-mono);
  font-size: var(--text-xs);
  color: var(--ink-muted);
}

.article-meta .badge { margin-right: auto; }

.article-hero-img {
  width: 100%;
  aspect-ratio: 21/9;
  border-radius: var(--radius-lg);
  overflow: hidden;
  margin-bottom: var(--sp-8);
}

.article-hero-img img {
  width: 100%;
  height: 100%;
  object-fit: cover;
}

.article-body {
  font-size: var(--text-base);
  line-height: var(--lh-relaxed);
  color: var(--ink);
  max-width: var(--container-narrow);
  margin: 0 auto;
}

.article-body h2 {
  font-size: var(--text-2xl);
  margin-top: var(--sp-8);
  margin-bottom: var(--sp-4);
}

.article-body h3 {
  font-size: var(--text-xl);
  margin-top: var(--sp-6);
  margin-bottom: var(--sp-3);
}

.article-body p {
  margin-bottom: var(--sp-4);
}

.article-body ul, .article-body ol {
  margin-bottom: var(--sp-4);
  padding-left: var(--sp-6);
}

.article-body li {
  list-style: disc;
  margin-bottom: var(--sp-2);
  color: var(--ink-secondary);
}

.article-body figure {
  margin: var(--sp-8) 0;
}

.article-body figcaption {
  font-family: var(--font-mono);
  font-size: var(--text-xs);
  color: var(--ink-muted);
  text-align: center;
  margin-top: var(--sp-2);
}

/*───────────────────────────────────────────────────────────────────────────
  BLOCK: Author Bio
  ───────────────────────────────────────────────────────────────────────────*/

.author-bio {
  display: flex;
  gap: var(--sp-4);
  align-items: center;
  padding: var(--sp-5);
  background: var(--neutral-50);
  border-radius: var(--radius-md);
  max-width: var(--container-narrow);
  margin: var(--sp-8) auto;
}

.author-avatar {
  width: 56px;
  height: 56px;
  border-radius: var(--radius-full);
  background: var(--gradient-accent);
  flex-shrink: 0;
}

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

.author-info p {
  font-size: var(--text-sm);
  color: var(--ink-secondary);
}

/*───────────────────────────────────────────────────────────────────────────
  NAVIGATION (CSS in tokens — frozen)
  ───────────────────────────────────────────────────────────────────────────*/

.site-nav {
  position: fixed;
  top: 0;
  left: 0;
  right: 0;
  z-index: 1000;
  height: var(--nav-height);
  display: flex;
  align-items: center;
  background: rgba(255,255,255,0.92);
  backdrop-filter: blur(16px);
  -webkit-backdrop-filter: blur(16px);
  box-shadow: var(--shadow-nav);
  transition: background var(--dur-normal) var(--ease-out-expo),
              box-shadow var(--dur-normal) var(--ease-out-expo);
}

.site-nav.scrolled {
  box-shadow:
    0 1px 2px rgba(0,0,0,0.04),
    0 4px 16px rgba(0,0,0,0.08);
}

.site-nav .container {
  display: flex;
  align-items: center;
  justify-content: space-between;
  height: 100%;
}

.nav-logo {
  font-family: var(--font-display);
  font-size: var(--text-lg);
  font-weight: var(--fw-bold);
  color: var(--brand-900);
  display: flex;
  align-items: center;
  gap: var(--sp-2);
  text-decoration: none;
}

.nav-logo:hover { color: var(--brand-700); }

.nav-links {
  display: flex;
  align-items: center;
  gap: var(--sp-5);
}

.nav-links a {
  font-size: var(--text-sm);
  font-weight: var(--fw-medium);
  color: var(--ink-secondary);
  transition: color var(--dur-fast) var(--ease-out-expo);
  position: relative;
}

.nav-links a:hover,
.nav-links a.active {
  color: var(--ink);
}

.nav-links a.active::after {
  content: '';
  position: absolute;
  bottom: -4px;
  left: 0;
  right: 0;
  height: 2px;
  background: var(--accent);
  border-radius: 2px;
}

.nav-cta {
  margin-left: var(--sp-4);
  background: #1a2c61 !important;
  color: #ffffff !important;
  border-color: #1a2c61 !important;
}
.nav-cta:hover {
  background: #26427d !important;
  color: #ffffff !important;
  border-color: #26427d !important;
}

.nav-toggle {
  display: none;
  background: none;
  border: none;
  cursor: pointer;
  padding: var(--sp-2);
  color: var(--ink);
}

.nav-toggle svg { width: 24px; height: 24px; }

@media (max-width: 860px) {
  .nav-links {
    position: fixed;
    top: var(--nav-height);
    left: 0;
    right: 0;
    background: var(--surface-raised);
    flex-direction: column;
    padding: var(--sp-6);
    gap: var(--sp-4);
    box-shadow: var(--shadow-modal);
    transform: translateY(-100%);
    opacity: 0;
    pointer-events: none;
    transition: all var(--dur-normal) var(--ease-out-expo);
  }
  .nav-links.open {
    transform: translateY(0);
    opacity: 1;
    pointer-events: auto;
  }
  .nav-toggle { display: block; }
  .nav-cta { margin-left: 0; }
}

/*───────────────────────────────────────────────────────────────────────────
  FOOTER
  ───────────────────────────────────────────────────────────────────────────*/

.site-footer {
  background: var(--brand-900);
  color: rgba(255,255,255,0.7);
  padding: var(--sp-12) 0 var(--sp-6);
}

.footer-grid {
  display: grid;
  grid-template-columns: 2fr 1fr 1fr 1fr;
  gap: var(--sp-8);
  margin-bottom: var(--sp-8);
}

.footer-brand h3 {
  font-family: var(--font-display);
  font-size: var(--text-xl);
  color: var(--ink-inverse);
  margin-bottom: var(--sp-3);
}

.footer-brand p {
  font-size: var(--text-sm);
  line-height: var(--lh-relaxed);
  color: rgba(255,255,255,0.5);
}

.footer-col h4 {
  font-family: var(--font-mono);
  font-size: var(--text-xs);
  font-weight: var(--fw-semibold);
  text-transform: uppercase;
  letter-spacing: 0.1em;
  color: var(--ink-inverse);
  margin-bottom: var(--sp-4);
}

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

.footer-col a {
  font-size: var(--text-sm);
  color: rgba(255,255,255,0.5);
  transition: color var(--dur-fast) var(--ease-out-expo);
}

.footer-col a:hover { color: var(--ink-inverse); }

.footer-bottom {
  border-top: 1px solid rgba(255,255,255,0.08);
  padding-top: var(--sp-5);
  display: flex;
  justify-content: space-between;
  align-items: center;
  font-size: var(--text-xs);
  color: rgba(255,255,255,0.35);
}

@media (max-width: 860px) {
  .footer-grid {
    grid-template-columns: 1fr 1fr;
    gap: var(--sp-6);
  }
}
@media (max-width: 480px) {
  .footer-grid { grid-template-columns: 1fr; }
  .footer-bottom { flex-direction: column; gap: var(--sp-2); }
}

/*───────────────────────────────────────────────────────────────────────────
  INQUIRY MODAL
  ───────────────────────────────────────────────────────────────────────────*/

.modal-overlay {
  position: fixed;
  inset: 0;
  z-index: 2000;
  background: rgba(11, 26, 46, 0.7);
  backdrop-filter: blur(4px);
  display: flex;
  align-items: center;
  justify-content: center;
  padding: var(--sp-5);
  opacity: 0;
  pointer-events: none;
  transition: opacity var(--dur-normal) var(--ease-out-expo);
}

.modal-overlay.open {
  opacity: 1;
  pointer-events: auto;
}

.modal-content {
  background: var(--surface-raised);
  border-radius: var(--radius-xl);
  box-shadow: var(--shadow-modal);
  width: 100%;
  max-width: 560px;
  max-height: 90vh;
  overflow-y: auto;
  position: relative;
  transform: translateY(20px);
  transition: transform var(--dur-normal) var(--ease-spring);
}

.modal-overlay.open .modal-content {
  transform: translateY(0);
}

.modal-header {
  padding: var(--sp-5) var(--sp-6);
  border-bottom: 1px solid var(--border);
  display: flex;
  justify-content: space-between;
  align-items: center;
}

.modal-header h2 {
  font-size: var(--text-xl);
  margin-bottom: 0;
}

.modal-close {
  background: none;
  border: none;
  cursor: pointer;
  width: 36px;
  height: 36px;
  border-radius: var(--radius-full);
  display: flex;
  align-items: center;
  justify-content: center;
  color: var(--ink-muted);
  transition: all var(--dur-fast) var(--ease-out-expo);
}

.modal-close:hover {
  background: var(--neutral-100);
  color: var(--ink);
}

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

/*── Form ───────────────────────────────────────────────────────────────────*/

.form-group {
  margin-bottom: var(--sp-4);
}

.form-label {
  display: block;
  font-size: var(--text-sm);
  font-weight: var(--fw-medium);
  color: var(--ink);
  margin-bottom: var(--sp-2);
}

.form-input, .form-textarea, .form-select {
  width: 100%;
  padding: 0.625rem 0.875rem;
  font-family: var(--font-body);
  font-size: var(--text-sm);
  color: var(--ink);
  background: var(--surface);
  border: 1px solid var(--border-strong);
  border-radius: var(--radius-sm);
  transition: border-color var(--dur-fast) var(--ease-out-expo),
              box-shadow var(--dur-fast) var(--ease-out-expo);
}

.form-input:focus, .form-textarea:focus, .form-select:focus {
  outline: none;
  border-color: var(--accent);
  box-shadow: 0 0 0 3px rgba(0,180,216,0.12);
}

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

.form-submit {
  width: 100%;
  margin-top: var(--sp-2);
}

.form-confirmation {
  display: none;
  text-align: center;
  padding: var(--sp-8);
}

.form-confirmation h3 {
  font-size: var(--text-xl);
  color: var(--success);
  margin-bottom: var(--sp-3);
}

/*───────────────────────────────────────────────────────────────────────────
  REVEAL (scroll-triggered animations)
  ───────────────────────────────────────────────────────────────────────────*/

.reveal {
  opacity: 1;
  transform: none;
}

.reveal.revealed {
  opacity: 1;
  transform: none;
}

.reveal-stagger {
  opacity: 1;
  transform: none;
}

.reveal-stagger.revealed {
  opacity: 1;
  transform: none;
}

@media (prefers-reduced-motion: reduce) {
  .reveal, .reveal-stagger {
    opacity: 1;
    transform: none;
    transition: none;
  }
}
