/* ==========================================================================
   Solid Foundation Technologies — site styles
   ========================================================================== */

@font-face {
  font-family: 'Manrope';
  font-style: normal;
  font-weight: 200 800;
  font-display: swap;
  src: url('/fonts/manrope-latin.woff2') format('woff2');
}

@font-face {
  font-family: 'Inter';
  font-style: normal;
  font-weight: 400 600;
  font-display: swap;
  src: url('/fonts/inter-latin.woff2') format('woff2');
}

:root {
  /* Official brand palette */
  --navy: #0B1730;        /* Deep Midnight Navy (primary) */
  --blue: #2457D6;        /* Royal Technology Blue (secondary) */
  --ice: #A8D8F0;         /* Ice Blue (accent) */
  --gray-50: #F3F6FA;     /* Cool Gray (background) */
  --white: #FFFFFF;
  --graphite: #252D3A;    /* Supporting text */

  /* Supporting tints derived from the palette */
  --navy-2: #071022;
  --blue-light: var(--ice);
  --blue-bright: #6E98F0; /* royal blue lifted for text on navy */
  --blue-deep: #1C46B3;
  --ice-50: #EEF7FC;
  --ice-200: #CDE8F6;
  --charcoal: var(--graphite);
  --gray-100: #E6EBF2;
  --gray-200: #D5DCE7;
  --slate: #5A6476;       /* muted graphite, 5.9:1 on white */
  --error: #DC2626;
  --success: var(--blue);

  --font-display: 'Manrope', ui-sans-serif, system-ui, -apple-system, 'Segoe UI', sans-serif;
  --font-body: 'Inter', ui-sans-serif, system-ui, -apple-system, 'Segoe UI', sans-serif;

  --radius-sm: 8px;
  --radius: 14px;
  --radius-lg: 22px;
  --shadow-sm: 0 1px 2px rgba(11, 23, 48, .06);
  --shadow: 0 12px 32px -12px rgba(11, 23, 48, .18);
  --shadow-lg: 0 30px 60px -20px rgba(11, 23, 48, .28);
  --header-h: 76px;
  --ease: cubic-bezier(.22, .61, .36, 1);
  --section-y: clamp(84px, 11vw, 144px);
}

/* ---------- Base ---------- */

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

html {
  scroll-behavior: smooth;
  scroll-padding-top: calc(var(--header-h) + 8px);
  -webkit-text-size-adjust: 100%;
}

body {
  margin: 0;
  font-family: var(--font-body);
  font-size: 1rem;
  line-height: 1.65;
  color: var(--charcoal);
  background: var(--white);
  -webkit-font-smoothing: antialiased;
  -moz-osx-font-smoothing: grayscale;
  text-rendering: optimizeLegibility;
}

body.nav-open { overflow: hidden; }

h1, h2, h3, h4 {
  font-family: var(--font-display);
  margin: 0;
  line-height: 1.12;
  letter-spacing: -0.02em;
  color: var(--navy);
}

p { margin: 0 0 1em; }
p:last-child { margin-bottom: 0; }
img, svg { display: block; max-width: 100%; }
ul, ol { margin: 0; padding: 0; list-style: none; }
a { color: var(--blue); text-decoration-thickness: 1px; text-underline-offset: 3px; }
button, input, select, textarea { font: inherit; color: inherit; }

:focus-visible {
  outline: 3px solid var(--blue);
  outline-offset: 3px;
  border-radius: 4px;
}
.site-header :focus-visible, .hero :focus-visible, .suretyiq :focus-visible, .site-footer :focus-visible, .legal-header :focus-visible, .not-found :focus-visible { outline-color: var(--ice); }

.sr-only {
  position: absolute !important;
  width: 1px; height: 1px;
  padding: 0; margin: -1px;
  overflow: hidden;
  clip: rect(0, 0, 0, 0);
  white-space: nowrap;
  border: 0;
}

.skip-link {
  position: fixed;
  top: 12px; left: 12px;
  z-index: 200;
  padding: 10px 18px;
  background: var(--white);
  color: var(--navy);
  font-weight: 600;
  border-radius: var(--radius-sm);
  transform: translateY(-200%);
  transition: transform .2s var(--ease);
}
.skip-link:focus { transform: translateY(0); }

.container {
  width: 100%;
  max-width: 1240px;
  margin-inline: auto;
  padding-inline: clamp(20px, 5vw, 40px);
}

.text-gradient {
  background: linear-gradient(100deg, var(--ice) 0%, #8CC0F2 45%, var(--blue-bright) 100%);
  -webkit-background-clip: text;
  background-clip: text;
  color: transparent;
}

/* ---------- Buttons ---------- */

.btn {
  --btn-bg: var(--blue);
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 10px;
  min-height: 48px;
  padding: 12px 24px;
  border: 1px solid transparent;
  border-radius: 10px;
  font-family: var(--font-display);
  font-weight: 700;
  font-size: .875rem;
  letter-spacing: .08em;
  text-transform: uppercase;
  text-decoration: none;
  line-height: 1.2;
  cursor: pointer;
  transition: background-color .2s var(--ease), border-color .2s var(--ease), color .2s var(--ease), transform .2s var(--ease), box-shadow .2s var(--ease);
}
.btn-icon { width: 18px; height: 18px; transition: transform .2s var(--ease); }
.btn:hover .btn-icon { transform: translateX(3px); }

.btn-primary {
  background: var(--blue);
  color: var(--white);
  box-shadow: 0 10px 24px -10px rgba(36, 87, 214, .8), inset 0 1px 0 rgba(255, 255, 255, .15);
}
.btn-primary { position: relative; overflow: hidden; isolation: isolate; }
.btn-primary::after {
  content: '';
  position: absolute;
  inset: 0;
  z-index: -1;
  background: linear-gradient(110deg, transparent 30%, rgba(255, 255, 255, .22) 50%, transparent 70%);
  transform: translateX(-120%);
  transition: transform .7s var(--ease);
}
.btn-primary:hover { background: var(--blue-deep); transform: translateY(-2px); box-shadow: 0 16px 30px -12px rgba(36, 87, 214, .9), inset 0 1px 0 rgba(255, 255, 255, .15); }
.btn-primary:hover::after { transform: translateX(120%); }
.btn-primary:active { transform: translateY(0); box-shadow: 0 6px 14px -8px rgba(36, 87, 214, .8); }

.btn-ghost {
  background: rgba(255, 255, 255, .04);
  color: var(--white);
  border-color: rgba(255, 255, 255, .22);
}
.btn-ghost:hover { border-color: var(--ice); background: rgba(168, 216, 240, .08); transform: translateY(-2px); }
.btn-ghost:active { transform: translateY(0); }

.btn-sm { min-height: 42px; padding: 10px 18px; font-size: .78rem; }
.btn-lg { min-height: 56px; padding: 16px 30px; }
.btn-block { width: 100%; }

/* ---------- Header / navigation ---------- */

.site-header {
  position: fixed;
  inset: 0 0 auto 0;
  z-index: 100;
  height: var(--header-h);
  transition: background-color .3s var(--ease), box-shadow .3s var(--ease), border-color .3s var(--ease);
  border-bottom: 1px solid transparent;
}
.site-header.is-scrolled {
  background: rgba(11, 23, 48, .86);
  -webkit-backdrop-filter: saturate(160%) blur(14px);
  backdrop-filter: saturate(160%) blur(14px);
  border-bottom-color: rgba(255, 255, 255, .07);
  box-shadow: 0 10px 30px -15px rgba(0, 0, 0, .5);
}

.header-inner {
  height: 100%;
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 24px;
}

.brand {
  display: inline-flex;
  align-items: center;
  gap: 12px;
  text-decoration: none;
  color: var(--white);
  flex-shrink: 0;
}
/* Header logo: horizontal Connected Triad lockup (reverse version for the dark header) */
.brand picture { display: block; }
.brand-logo { display: block; width: auto; height: 40px; }
@media (min-width: 1024px) and (max-width: 1179px) { .brand-logo { height: 36px; } }
@media (max-width: 420px) { .brand-logo { height: 34px; } }
@media (max-width: 340px) { .brand-logo { height: 29px; } }

.nav-toggle {
  display: none;
  position: relative;
  z-index: 2;
  width: 46px; height: 46px;
  border: 1px solid rgba(255, 255, 255, .18);
  border-radius: 10px;
  background: rgba(255, 255, 255, .04);
  cursor: pointer;
}
.nav-toggle-bar {
  position: absolute;
  left: 13px; right: 13px;
  height: 2px;
  background: var(--white);
  border-radius: 2px;
  transition: transform .25s var(--ease), top .25s var(--ease);
}
.nav-toggle-bar:nth-of-type(2) { top: 18px; }
.nav-toggle-bar:nth-of-type(3) { top: 26px; }
.nav-toggle[aria-expanded='true'] .nav-toggle-bar:nth-of-type(2) { top: 22px; transform: rotate(45deg); }
.nav-toggle[aria-expanded='true'] .nav-toggle-bar:nth-of-type(3) { top: 22px; transform: rotate(-45deg); }

.nav-menu { display: flex; align-items: center; gap: 28px; }
.nav-links { display: flex; align-items: center; gap: 4px; }
.nav-links a {
  position: relative;
  display: block;
  padding: 8px 12px;
  color: rgba(255, 255, 255, .78);
  font-size: .92rem;
  font-weight: 500;
  text-decoration: none;
  border-radius: 8px;
  transition: color .2s var(--ease);
}
.nav-links a::after {
  content: '';
  position: absolute;
  left: 12px; right: 12px; bottom: 2px;
  height: 2px;
  background: var(--blue-light);
  border-radius: 2px;
  transform: scaleX(0);
  transform-origin: left;
  transition: transform .25s var(--ease);
}
.nav-links a:hover, .nav-links a.is-active { color: var(--white); }
.nav-links a.is-active::after { transform: scaleX(1); }

@media (max-width: 1023px) {
  .nav-toggle { display: inline-block; }
  .nav-menu {
    position: fixed;
    inset: 0;
    flex-direction: column;
    align-items: stretch;
    justify-content: flex-start;
    gap: 28px;
    padding: calc(var(--header-h) + 24px) clamp(20px, 5vw, 40px) 40px;
    background: var(--navy);
    background-image: radial-gradient(600px 400px at 100% 0%, rgba(36, 87, 214, .3), transparent 70%);
    opacity: 0;
    visibility: hidden;
    transform: translateY(-8px);
    transition: opacity .25s var(--ease), transform .25s var(--ease), visibility 0s linear .25s;
    overflow-y: auto;
  }
  .nav-menu.is-open {
    opacity: 1;
    visibility: visible;
    transform: none;
    transition: opacity .25s var(--ease), transform .25s var(--ease);
  }
  .nav-links { flex-direction: column; align-items: stretch; gap: 0; }
  .nav-links a {
    padding: 16px 4px;
    font-family: var(--font-display);
    font-size: 1.5rem;
    font-weight: 700;
    color: var(--white);
    border-bottom: 1px solid rgba(255, 255, 255, .08);
    border-radius: 0;
  }
  .nav-links a::after { display: none; }
  .nav-links a.is-active { color: var(--blue-light); }
  .nav-cta { min-height: 56px; font-size: .9rem; }
}

/* ---------- Hero ---------- */

.hero {
  position: relative;
  overflow: hidden;
  background: var(--navy);
  color: rgba(255, 255, 255, .78);
  padding: calc(var(--header-h) + clamp(48px, 8vw, 96px)) 0 clamp(40px, 6vw, 64px);
  isolation: isolate;
}
.hero-bg {
  position: absolute;
  inset: 0;
  z-index: -1;
  background:
    radial-gradient(900px 600px at 85% 20%, rgba(36, 87, 214, .34), transparent 65%),
    radial-gradient(700px 500px at -10% 110%, rgba(36, 87, 214, .2), transparent 60%),
    linear-gradient(180deg, var(--navy) 0%, var(--navy-2) 100%);
}
.hero-bg::before {
  content: '';
  position: absolute;
  inset: 0;
  background-image:
    linear-gradient(rgba(255, 255, 255, .045) 1px, transparent 1px),
    linear-gradient(90deg, rgba(255, 255, 255, .045) 1px, transparent 1px);
  background-size: 64px 64px;
  -webkit-mask-image: radial-gradient(ellipse 80% 70% at 60% 40%, #000 30%, transparent 80%);
  mask-image: radial-gradient(ellipse 80% 70% at 60% 40%, #000 30%, transparent 80%);
}

.hero-grid {
  display: grid;
  grid-template-columns: 1fr;
  gap: 48px;
  align-items: center;
}
@media (min-width: 1024px) {
  .hero-grid { grid-template-columns: minmax(0, 1.12fr) minmax(0, .88fr); gap: 32px; }
}

.hero-company {
  display: inline-flex;
  align-items: center;
  gap: 14px;
  margin-bottom: 28px;
  font-family: var(--font-display);
  font-weight: 700;
  font-size: clamp(.82rem, 1.6vw, 1rem);
  letter-spacing: .28em;
  text-transform: uppercase;
  color: var(--white);
}
.hero-company-line {
  width: 40px; height: 2px;
  background: linear-gradient(90deg, var(--blue), var(--blue-light));
  border-radius: 2px;
}

.hero-title {
  display: flex;
  flex-direction: column;
  font-size: clamp(2.5rem, 7.4vw, 5.1rem);
  font-weight: 800;
  line-height: 1.04;
  letter-spacing: -0.035em;
  color: var(--white);
}

.hero-title .hl { font-style: normal; color: var(--ice); }

.hero-lede {
  margin: 30px 0 0;
  font-size: clamp(1.05rem, 1.5vw, 1.2rem);
  line-height: 1.65;
  color: rgba(255, 255, 255, .8);
  max-width: 54ch;
}

.hero-tagline {
  display: flex;
  align-items: center;
  gap: 14px;
  margin: 22px 0 0;
  font-family: var(--font-display);
  font-size: clamp(.95rem, 1.4vw, 1.05rem);
  font-weight: 700;
  letter-spacing: .02em;
  color: var(--white);
}
.hero-tagline-rule { width: 28px; height: 2px; flex-shrink: 0; border-radius: 2px; background: var(--blue-bright); }

.hero-actions { display: flex; flex-wrap: wrap; gap: 14px; margin-top: 36px; }
@media (max-width: 479px) { .hero-actions .btn { width: 100%; } }

.hero-visual {
  --tilt-x: 0deg;
  --tilt-y: 0deg;
  position: relative;
  width: 100%;
  max-width: 520px;
  margin-inline: auto;
  aspect-ratio: 1;
  transform: perspective(1400px) rotateX(var(--tilt-x)) rotateY(var(--tilt-y));
  transition: transform .9s var(--ease);
}
@media (max-width: 1023px) { .hero-visual { max-width: 420px; } }
@media (max-width: 599px) { .hero-visual { max-width: 300px; margin-top: 8px; } }
.network { width: 100%; height: 100%; overflow: visible; }

/* The emblem sits inside the core lens (lens: r=60 at the centre of a 520 viewBox). */
.hero-emblem {
  position: absolute;
  top: 50%; left: 50%;
  width: 16%;
  transform: translate(-50%, -50%);
  filter: drop-shadow(0 4px 10px rgba(11, 23, 48, .25));
  pointer-events: none;
}
.hero-emblem img { width: 100%; height: auto; }

.orbit { transform-origin: 260px 260px; }
.orbit-slow { animation: spin 60s linear infinite; }
.orbit-fast { animation: spin 38s linear infinite reverse; }
.pulse { transform-origin: 260px 260px; animation: pulse 4.5s var(--ease) infinite; }
.links-glow { animation: glow 6s ease-in-out infinite; }

.signal {
  stroke-dasharray: 14 86;
  stroke-dashoffset: 100;
  opacity: 0;
  animation: signal 5.2s var(--ease) infinite;
}
.signal-2 { animation-delay: -1.3s; }
.signal-3 { animation-delay: -2.6s; }
.signal-4 { animation-delay: -3.9s; animation-duration: 6.4s; }

.node-pulse { transform-box: fill-box; transform-origin: center; animation: node-pulse 3.6s ease-out infinite; }
.np-2 { animation-delay: -.9s; }
.np-3 { animation-delay: -1.8s; }
.np-4 { animation-delay: -2.7s; }
.nodes-core circle { animation: twinkle 3.6s ease-in-out infinite; }
.nodes-core circle:nth-child(2) { animation-delay: -1.2s; }
.nodes-core circle:nth-child(3) { animation-delay: -2.4s; }

@keyframes spin { to { transform: rotate(360deg); } }
@keyframes pulse {
  0% { transform: scale(1); opacity: .6; }
  100% { transform: scale(2.6); opacity: 0; }
}
@keyframes glow { 50% { opacity: .45; } }
@keyframes signal {
  0% { stroke-dashoffset: 100; opacity: 0; }
  15% { opacity: 1; }
  70% { opacity: 1; }
  100% { stroke-dashoffset: 0; opacity: 0; }
}
@keyframes node-pulse {
  0% { transform: scale(1); opacity: .8; }
  80%, 100% { transform: scale(3.2); opacity: 0; }
}
@keyframes twinkle { 50% { opacity: .35; } }

.hero-chip {
  position: absolute;
  display: inline-flex;
  align-items: center;
  gap: 8px;
  padding: 9px 14px;
  font-size: .78rem;
  font-weight: 600;
  color: var(--white);
  white-space: nowrap;
  background: rgba(11, 23, 48, .7);
  border: 1px solid rgba(255, 255, 255, .12);
  border-radius: 999px;
  -webkit-backdrop-filter: blur(8px);
  backdrop-filter: blur(8px);
  box-shadow: 0 10px 30px -12px rgba(0, 0, 0, .6);
  animation: float 7s ease-in-out infinite;
}
.chip-dot { width: 7px; height: 7px; border-radius: 50%; background: var(--blue-light); box-shadow: 0 0 0 4px rgba(168, 216, 240, .2); }
.chip-a { top: 14%; left: -2%; }
.chip-b { top: 46%; right: -4%; animation-delay: -2.4s; }
.chip-c { bottom: 10%; left: 10%; animation-delay: -4.6s; }
@media (max-width: 599px) {
  .hero-chip { padding: 7px 11px; font-size: .7rem; }
  .chip-a { top: 6%; left: -6%; }
  .chip-b { top: 50%; right: -8%; }
  .chip-c { bottom: 4%; left: 4%; }
}
@keyframes float { 50% { transform: translateY(-8px); } }

.hero-capabilities {
  display: grid;
  grid-template-columns: repeat(2, 1fr);
  margin-top: clamp(48px, 7vw, 88px);
  border-top: 1px solid rgba(255, 255, 255, .1);
}
.hero-capabilities li {
  padding: 22px 0 4px;
  font-family: var(--font-display);
  font-weight: 600;
  font-size: .82rem;
  letter-spacing: .16em;
  text-transform: uppercase;
  color: rgba(255, 255, 255, .62);
  display: flex;
  align-items: center;
  gap: 12px;
}
.hero-capabilities li::before {
  content: '';
  width: 6px; height: 6px;
  background: var(--blue);
  transform: rotate(45deg);
  flex-shrink: 0;
}
@media (min-width: 768px) { .hero-capabilities { grid-template-columns: repeat(4, 1fr); } }

/* ---------- Sections (shared) ---------- */

.section { padding: var(--section-y) 0; position: relative; }

.eyebrow {
  display: inline-flex;
  align-items: center;
  gap: 10px;
  margin-bottom: 18px;
  font-family: var(--font-display);
  font-size: .78rem;
  font-weight: 700;
  letter-spacing: .22em;
  text-transform: uppercase;
  color: var(--blue);
}
.eyebrow::before { content: ''; width: 24px; height: 2px; background: currentColor; border-radius: 2px; }

.section-title {
  font-size: clamp(2rem, 4.6vw, 3.35rem);
  font-weight: 800;
  letter-spacing: -0.03em;
}
.text-muted-strong { color: var(--slate); }

.section-head { max-width: 760px; margin-bottom: clamp(44px, 6vw, 72px); }
.section-head-center { margin-inline: auto; text-align: center; }
.section-head-center .eyebrow { justify-content: center; }
.section-intro { margin-top: 20px; font-size: 1.1rem; color: var(--slate); }

/* ---------- About ---------- */

.about { background: var(--white); }
.about-grid { display: grid; gap: 32px; }
@media (min-width: 900px) {
  .about-grid { grid-template-columns: minmax(0, 1fr) minmax(0, 1.05fr); gap: 72px; align-items: start; }
}
.about-body { color: var(--graphite); font-size: 1.06rem; }
.about-lead {
  font-family: var(--font-display);
  font-size: clamp(1.25rem, 2.2vw, 1.55rem);
  font-weight: 600;
  line-height: 1.4;
  color: var(--navy);
  margin-bottom: 1.1em;
}

.pillars {
  display: grid;
  gap: 18px;
  margin-top: clamp(56px, 7vw, 88px);
}
@media (min-width: 768px) { .pillars { grid-template-columns: repeat(3, 1fr); gap: 24px; } }

.pillar {
  position: relative;
  padding: 34px 30px 32px;
  background: var(--gray-50);
  border: 1px solid var(--gray-100);
  border-radius: var(--radius-lg);
  overflow: hidden;
  transition: transform .3s var(--ease), box-shadow .3s var(--ease), border-color .3s var(--ease);
}
.pillar::after {
  content: '';
  position: absolute;
  left: 0; right: 0; top: 0;
  height: 3px;
  background: linear-gradient(90deg, var(--blue), var(--blue-light));
  transform: scaleX(.18);
  transform-origin: left;
  transition: transform .4s var(--ease);
}
.pillar:hover { transform: translateY(-4px); box-shadow: var(--shadow); border-color: transparent; background: var(--white); }
.pillar:hover::after { transform: scaleX(1); }
.pillar-icon {
  width: 52px; height: 52px;
  display: grid;
  place-items: center;
  margin-bottom: 24px;
  border-radius: 14px;
  background: var(--navy);
  color: var(--blue-light);
}
.pillar-icon svg { width: 26px; height: 26px; }
.pillar-title {
  margin-bottom: 10px;
  font-size: 1rem;
  font-weight: 800;
  letter-spacing: .18em;
  text-transform: uppercase;
}
.pillar p { color: var(--slate); }

/* ---------- Solutions ---------- */

.solutions {
  background: var(--gray-50);
  background-image:
    radial-gradient(800px 400px at 100% 0%, rgba(36, 87, 214, .07), transparent 70%);
}

.service-grid { display: grid; gap: 20px; }
@media (min-width: 768px) { .service-grid { grid-template-columns: repeat(2, 1fr); gap: 24px; } }

.service-card {
  position: relative;
  display: flex;
  flex-direction: column;
  padding: clamp(28px, 4vw, 44px);
  background: var(--white);
  border: 1px solid var(--gray-100);
  border-radius: var(--radius-lg);
  box-shadow: var(--shadow-sm);
  transition: transform .3s var(--ease), box-shadow .3s var(--ease), border-color .3s var(--ease);
  isolation: isolate;
  overflow: hidden;
}
.service-card::before {
  content: '';
  position: absolute;
  inset: 0;
  z-index: -1;
  background: radial-gradient(420px 220px at 100% 0%, rgba(36, 87, 214, .09), transparent 70%);
  opacity: 0;
  transition: opacity .3s var(--ease);
}
.service-card:hover { transform: translateY(-4px); box-shadow: var(--shadow-lg); border-color: rgba(36, 87, 214, .25); }
.service-card:hover::before { opacity: 1; }

.service-top { display: flex; justify-content: space-between; align-items: flex-start; margin-bottom: 28px; }
.service-icon {
  width: 56px; height: 56px;
  display: grid;
  place-items: center;
  border-radius: 14px;
  background: linear-gradient(140deg, var(--blue) 0%, var(--blue-deep) 100%);
  color: var(--white);
  box-shadow: 0 12px 24px -10px rgba(36, 87, 214, .7);
}
.service-icon svg { width: 28px; height: 28px; }
.service-num {
  font-family: var(--font-display);
  font-size: 2.4rem;
  font-weight: 800;
  line-height: 1;
  color: var(--gray-100);
  letter-spacing: -0.04em;
}
.service-title { font-size: clamp(1.3rem, 2.2vw, 1.55rem); font-weight: 700; margin-bottom: 14px; }
.service-card > p { color: var(--slate); }

.service-tags { display: flex; flex-wrap: wrap; gap: 8px; margin: 22px 0 30px; }
.service-tags li {
  padding: 6px 12px;
  font-size: .78rem;
  font-weight: 500;
  color: var(--navy);
  background: var(--gray-50);
  border: 1px solid var(--gray-100);
  border-radius: 999px;
}

.service-cta {
  margin-top: auto;
  display: inline-flex;
  align-items: center;
  gap: 10px;
  align-self: flex-start;
  padding: 12px 0 4px;
  font-family: var(--font-display);
  font-weight: 700;
  font-size: .82rem;
  letter-spacing: .12em;
  text-transform: uppercase;
  color: var(--blue);
  text-decoration: none;
  border-bottom: 2px solid rgba(36, 87, 214, .2);
  transition: border-color .2s var(--ease), gap .2s var(--ease);
}
.service-cta:hover { border-color: var(--blue); gap: 14px; }

/* ---------- SuretyIQ ---------- */

.suretyiq {
  background: var(--charcoal);
  color: rgba(255, 255, 255, .74);
  overflow: hidden;
  isolation: isolate;
}
.suretyiq-bg {
  position: absolute;
  inset: 0;
  z-index: -1;
  background:
    radial-gradient(700px 500px at 90% 50%, rgba(36, 87, 214, .3), transparent 65%),
    radial-gradient(500px 400px at 0% 0%, rgba(11, 23, 48, 1), transparent 70%),
    linear-gradient(160deg, var(--navy) 0%, var(--charcoal) 60%);
}
.suretyiq-bg::before {
  content: '';
  position: absolute;
  inset: 0;
  background-image: radial-gradient(rgba(255, 255, 255, .08) 1px, transparent 1px);
  background-size: 26px 26px;
  -webkit-mask-image: linear-gradient(90deg, transparent, #000 60%);
  mask-image: linear-gradient(90deg, transparent, #000 60%);
}

.suretyiq-head { display: grid; grid-template-columns: minmax(0, 1fr); gap: 28px; margin-bottom: clamp(44px, 6vw, 72px); }
@media (min-width: 1024px) { .suretyiq-head { grid-template-columns: minmax(0, 1fr) minmax(0, 1fr); gap: 72px; align-items: end; } }
.suretyiq-copy > p { max-width: 58ch; }

.portfolio-label {
  display: inline-flex;
  align-items: center;
  gap: 12px;
  margin-bottom: 18px;
  font-family: var(--font-display);
  font-size: .72rem;
  font-weight: 700;
  letter-spacing: .22em;
  text-transform: uppercase;
  color: rgba(255, 255, 255, .6);
}
.portfolio-num {
  display: inline-grid;
  place-items: center;
  width: 30px; height: 30px;
  border: 1px solid rgba(168, 216, 240, .4);
  border-radius: 50%;
  font-size: .72rem;
  letter-spacing: 0;
  color: var(--ice);
}

.suretyiq .section-title { color: var(--white); }
.iq { color: #60A5FA; } /* SuretyIQ's own product accent — kept separate from the corporate palette */
.suretyiq-sub {
  margin: 14px 0 26px;
  font-family: var(--font-display);
  font-size: clamp(1.2rem, 2.2vw, 1.5rem);
  font-weight: 600;
  color: var(--white);
}

.product-kicker {
  margin-bottom: 18px;
  font-family: var(--font-display);
  font-size: .74rem;
  font-weight: 700;
  letter-spacing: .18em;
  line-height: 1.8;
  text-transform: uppercase;
  color: var(--ice);
}
.product-kicker span { white-space: nowrap; }
@media (max-width: 479px) { .product-kicker span { white-space: normal; } }
.product-kicker .sep { margin: 0 10px; color: rgba(255, 255, 255, .3); }

.capability-grid {
  display: grid;
  gap: 12px;
  margin-top: clamp(48px, 7vw, 80px);
  padding-top: clamp(32px, 4vw, 44px);
  border-top: 1px solid rgba(255, 255, 255, .1);
}
@media (min-width: 600px) { .capability-grid { grid-template-columns: repeat(2, 1fr); } }
@media (min-width: 1024px) { .capability-grid { grid-template-columns: repeat(5, 1fr); gap: 16px; } }
.capability {
  display: flex;
  align-items: center;
  gap: 12px;
  padding: 16px;
  font-weight: 600;
  font-size: .95rem;
  line-height: 1.35;
  color: var(--white);
  background: rgba(255, 255, 255, .04);
  border: 1px solid rgba(255, 255, 255, .08);
  border-radius: 12px;
  transition: border-color .3s var(--ease), background-color .3s var(--ease), transform .3s var(--ease);
}
.capability:hover { border-color: rgba(168, 216, 240, .35); background: rgba(255, 255, 255, .07); transform: translateY(-2px); }
.capability svg {
  width: 24px; height: 24px;
  padding: 4px;
  flex-shrink: 0;
  border-radius: 50%;
  color: var(--white);
  background: var(--blue);
  box-shadow: 0 0 0 4px rgba(36, 87, 214, .2);
}

.suretyiq-cta { display: flex; flex-wrap: wrap; align-items: center; gap: 14px; margin-top: 34px; }
@media (max-width: 479px) { .suretyiq-cta .btn { width: 100%; } }

/* App window: a desktop application frame shared by the product showcases.
   Reusable for a future Our Work / Portfolio section. */
.app-window {
  position: relative;
  border-radius: 14px;
  overflow: hidden;
}
.app-window-bar {
  display: flex;
  align-items: center;
  gap: 16px;
  height: 40px;
  padding: 0 16px;
}
.app-window-dots { display: flex; gap: 7px; }
.app-window-dots { min-width: 70px; }
.app-window-dots i { width: 10px; height: 10px; border-radius: 50%; }
.app-window-title { font-family: var(--font-display); font-weight: 700; font-size: .8rem; letter-spacing: .02em; }
.app-window-address {
  display: flex;
  align-items: center;
  gap: 8px;
  flex: 0 1 340px;
  min-width: 0;
  height: 26px;
  margin-inline: auto;
  padding: 0 14px;
  border-radius: 8px;
  font-size: .74rem;
  white-space: nowrap;
  overflow: hidden;
  text-overflow: ellipsis;
}
.app-window-address svg { width: 12px; height: 12px; flex-shrink: 0; }
.app-window-bar .app-window-title { min-width: 70px; text-align: right; }

/* Real screenshot inside the frame; the whole image is a link to the enlarged view. */
.app-window-shot { position: relative; display: block; cursor: zoom-in; }
.app-window-shot img { display: block; width: 100%; height: auto; }
.shot-zoom {
  position: absolute;
  right: 16px; bottom: 16px;
  display: inline-flex;
  align-items: center;
  gap: 8px;
  padding: 8px 14px;
  border-radius: 999px;
  font-size: .78rem;
  font-weight: 600;
  color: var(--white);
  background: rgba(11, 23, 48, .82);
  border: 1px solid rgba(255, 255, 255, .16);
  box-shadow: 0 10px 24px -10px rgba(0, 0, 0, .6);
  opacity: 0;
  transform: translateY(6px);
  transition: opacity .3s var(--ease), transform .3s var(--ease);
}
.shot-zoom svg { width: 16px; height: 16px; }
.app-window-shot:hover .shot-zoom, .app-window-shot:focus-visible .shot-zoom { opacity: 1; transform: none; }
.app-window-shot:focus-visible { outline-offset: -4px; }
@media (hover: none) { .shot-zoom { opacity: 1; transform: none; padding: 6px 11px; font-size: .7rem; right: 10px; bottom: 10px; } }

.app-window-dark {
  background: #0E1B36;
  border: 1px solid rgba(255, 255, 255, .14);
  box-shadow:
    0 1px 0 rgba(255, 255, 255, .08) inset,
    0 50px 90px -30px rgba(0, 0, 0, .85),
    0 24px 40px -24px rgba(36, 87, 214, .55);
}
.app-window-dark .app-window-bar { background: linear-gradient(180deg, #16264A, #111F3E); border-bottom: 1px solid rgba(255, 255, 255, .08); }
.app-window-dark .app-window-dots i { background: rgba(255, 255, 255, .2); }
.app-window-dark .app-window-title { color: var(--white); }
.app-window-dark .app-window-title b { color: #60A5FA; }
.app-window-dark .app-window-address { color: rgba(255, 255, 255, .6); background: rgba(255, 255, 255, .06); border: 1px solid rgba(255, 255, 255, .06); }

.product-showcase { position: relative; margin: 0; }
.product-showcase::before {
  content: '';
  position: absolute;
  inset: 12% 8% -6%;
  z-index: -1;
  border-radius: 50%;
  background: radial-gradient(closest-side, rgba(36, 87, 214, .45), transparent);
  filter: blur(30px);
}
.product-showcase .app-window {
  transform: perspective(2200px) rotateX(4deg);
  transform-origin: 50% 100%;
  transition: transform .8s var(--ease), box-shadow .8s var(--ease);
}
.product-showcase:hover .app-window { transform: perspective(2200px) rotateX(0); }
@media (max-width: 1023px) { .product-showcase .app-window { transform: none; } }
@media (max-width: 599px) {
  .app-window-bar { height: 34px; padding: 0 12px; gap: 10px; }
  .app-window-dots i { width: 8px; height: 8px; }
  .app-window-dots, .app-window-bar .app-window-title { min-width: 0; }
  .app-window-bar .app-window-title { display: none; }
  .app-window-address { height: 22px; font-size: .68rem; }
}

.w-45 { width: 45%; } .w-70 { width: 70%; } .w-85 { width: 85%; }

.dash-caption { margin-top: 20px; font-size: .8rem; color: rgba(255, 255, 255, .5); text-align: center; }

/* SuretyIQ screenshot carousel (manual only, no auto-advance) */
.shot-nav { display: none; }
.js .shot-nav { display: flex; flex-wrap: wrap; align-items: center; justify-content: space-between; gap: 16px; margin-bottom: 22px; }
.shot-tabs { display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 10px; flex: 1 1 560px; }
.shot-tab {
  display: flex;
  align-items: flex-start;
  gap: 14px;
  padding: 14px 18px;
  text-align: left;
  color: rgba(255, 255, 255, .62);
  background: rgba(255, 255, 255, .03);
  border: 1px solid rgba(255, 255, 255, .1);
  border-radius: 12px;
  cursor: pointer;
  transition: border-color .3s var(--ease), background-color .3s var(--ease), color .3s var(--ease);
}
.shot-tab:hover { border-color: rgba(168, 216, 240, .3); color: rgba(255, 255, 255, .85); }
.shot-tab.is-active {
  color: rgba(255, 255, 255, .8);
  background: rgba(36, 87, 214, .16);
  border-color: rgba(168, 216, 240, .45);
  box-shadow: inset 0 -2px 0 var(--ice);
}
.shot-tab-num { padding-top: 2px; font-family: var(--font-display); font-size: .78rem; font-weight: 800; color: rgba(255, 255, 255, .4); }
.shot-tab.is-active .shot-tab-num { color: var(--ice); }
.shot-tab-text { font-size: .84rem; line-height: 1.45; }
.shot-tab-text strong { display: block; margin-bottom: 2px; font-family: var(--font-display); font-size: 1rem; color: var(--white); }

.shot-arrows { display: flex; align-items: center; gap: 12px; }
.shot-arrow {
  display: grid;
  place-items: center;
  width: 44px; height: 44px;
  color: var(--white);
  background: rgba(255, 255, 255, .05);
  border: 1px solid rgba(255, 255, 255, .18);
  border-radius: 50%;
  cursor: pointer;
  transition: background-color .2s var(--ease), border-color .2s var(--ease), transform .2s var(--ease);
}
.shot-arrow:hover { background: var(--blue); border-color: var(--blue); }
.shot-arrow:active { transform: scale(.95); }
.shot-arrow svg { width: 18px; height: 18px; }
.shot-count { min-width: 40px; text-align: center; font-family: var(--font-display); font-size: .85rem; font-weight: 600; color: rgba(255, 255, 255, .5); }
.shot-count b { color: var(--white); }

/* Slides share one grid cell so the frame keeps a steady size while crossfading. */
.shot-track { display: grid; background: #141D32; }
.shot-slide + .shot-slide { border-top: 1px solid rgba(255, 255, 255, .1); }
.js .shot-slide {
  grid-area: 1 / 1;
  align-self: start;
  border-top: 0;
  visibility: hidden;
  opacity: 0;
  transform: translateX(14px);
  transition: opacity .5s var(--ease), transform .5s var(--ease), visibility 0s .5s;
}
.js .shot-slide.is-active { visibility: visible; opacity: 1; transform: none; transition-delay: 0s; }

@media (max-width: 767px) {
  .js .shot-nav { gap: 12px; }
  .shot-tabs { flex-basis: 100%; }
  .shot-tab { padding: 12px 14px; gap: 10px; }
  .shot-tab-text { font-size: .76rem; }
  .shot-tab-text strong { font-size: .92rem; }
  .shot-arrows { width: 100%; justify-content: center; }
  .shot-track { touch-action: pan-y; }
}
@media (max-width: 419px) { .shot-tab-num { display: none; } }

/* ---------- FleetCommand (Our Work 02) ----------
   Reuses the SuretyIQ section layout, app window and carousel. Gold is limited to this
   showcase, echoing the Emperial LLC demo branding in the screenshots; the section itself
   stays on the corporate navy/blue palette. */

.fleetcommand {
  --fc-gold: #C9A44C;
  --fc-gold-soft: rgba(201, 164, 76, .4);
  border-top: 1px solid rgba(255, 255, 255, .06);
}
.fleetcommand-bg {
  background:
    radial-gradient(640px 480px at 8% 62%, rgba(201, 164, 76, .1), transparent 65%),
    radial-gradient(640px 480px at 96% 8%, rgba(36, 87, 214, .26), transparent 65%),
    linear-gradient(200deg, var(--navy) 0%, var(--navy-2) 72%);
}
.fleetcommand-bg::before {
  -webkit-mask-image: linear-gradient(270deg, transparent, #000 60%);
  mask-image: linear-gradient(270deg, transparent, #000 60%);
}
.fleetcommand .portfolio-num { border-color: var(--fc-gold-soft); color: var(--fc-gold); }
.fc { color: var(--fc-gold); }
.fc-title-rest {
  display: block;
  margin-top: 10px;
  font-size: .56em;
  font-weight: 700;
  letter-spacing: -0.02em;
  line-height: 1.2;
  color: rgba(255, 255, 255, .84);
}
.fc-client {
  display: flex;
  flex-wrap: wrap;
  align-items: baseline;
  gap: 4px 12px;
  margin-top: 18px;
  font-family: var(--font-display);
  font-weight: 700;
  color: var(--white);
}
.fc-client span {
  font-size: .72rem;
  letter-spacing: .18em;
  text-transform: uppercase;
  color: var(--fc-gold);
}
.fc-demo-btn { text-transform: uppercase; letter-spacing: .06em; }
.fc-disclaimer { margin-top: 14px; font-size: .8rem; color: rgba(255, 255, 255, .55); }

.product-showcase-fc::before {
  background: radial-gradient(closest-side, rgba(36, 87, 214, .35), rgba(201, 164, 76, .12) 60%, transparent);
}
.app-window-fc {
  box-shadow:
    0 1px 0 rgba(255, 255, 255, .08) inset,
    0 50px 90px -30px rgba(0, 0, 0, .85),
    0 24px 40px -24px rgba(201, 164, 76, .35);
}
.app-window-dark.app-window-fc .app-window-title b { color: var(--fc-gold); }
.fleetcommand .shot-tab.is-active {
  border-color: var(--fc-gold-soft);
  box-shadow: inset 0 -2px 0 var(--fc-gold);
}
.fleetcommand .shot-tab.is-active .shot-tab-num { color: var(--fc-gold); }
.shot-tabs-3 { grid-template-columns: repeat(3, minmax(0, 1fr)); flex-basis: 760px; }
@media (max-width: 767px) {
  .shot-tabs-3 { flex-basis: 100%; gap: 8px; }
  .shot-tabs-3 .shot-tab { padding: 12px; }
  .shot-tabs-3 .shot-tab-num { display: none; }
  .shot-tabs-3 .shot-tab-text span { display: none; }
  .shot-tabs-3 .shot-tab-text strong { margin: 0; font-size: .82rem; line-height: 1.3; }
}

@media (min-width: 1024px) { .capability-grid-6 { grid-template-columns: repeat(3, 1fr); } }

/* Custom-build positioning panel */
.tailor {
  display: grid;
  gap: 28px;
  margin-top: clamp(40px, 6vw, 64px);
  padding: clamp(26px, 4vw, 48px);
  border: 1px solid rgba(201, 164, 76, .22);
  border-radius: var(--radius-lg);
  background: linear-gradient(135deg, rgba(255, 255, 255, .04), rgba(36, 87, 214, .1));
}
@media (min-width: 1024px) { .tailor { grid-template-columns: minmax(0, 1.1fr) minmax(0, 1fr); gap: 32px 64px; align-items: center; } }
.tailor-title {
  margin-bottom: 12px;
  font-size: clamp(1.35rem, 2.4vw, 1.75rem);
  font-weight: 800;
  letter-spacing: -0.02em;
  color: var(--white);
}
.tailor-copy p { max-width: 56ch; }
.tailor-list { display: grid; gap: 12px; margin: 0; padding: 0; list-style: none; }
.tailor-list li { display: flex; align-items: center; gap: 14px; font-weight: 600; color: var(--white); }
.tailor-list li::before {
  content: '';
  flex-shrink: 0;
  width: 8px; height: 8px;
  border-radius: 2px;
  background: var(--fc-gold);
  transform: rotate(45deg);
}
.tailor-cta {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  justify-content: space-between;
  gap: 16px 24px;
  grid-column: 1 / -1;
  padding-top: 24px;
  border-top: 1px solid rgba(255, 255, 255, .1);
}
.tailor-cta p { font-family: var(--font-display); font-weight: 600; color: rgba(255, 255, 255, .82); }
@media (max-width: 479px) { .tailor-cta .btn { width: 100%; } }

/* ---------- Screenshot lightbox ---------- */

.lightbox {
  width: min(96vw, 1680px);
  max-width: none;
  max-height: 94vh;
  margin: auto;
  padding: 0;
  border: 1px solid rgba(255, 255, 255, .14);
  border-radius: 14px;
  background: var(--navy);
  box-shadow: 0 40px 100px -20px rgba(0, 0, 0, .8);
  overflow: auto;
}
.lightbox::backdrop { background: rgba(7, 16, 34, .86); -webkit-backdrop-filter: blur(6px); backdrop-filter: blur(6px); }
.lightbox[open] { animation: lightbox-in .35s var(--ease); }
@keyframes lightbox-in { from { opacity: 0; transform: scale(.97); } }
.lightbox-img { display: block; width: 100%; height: auto; }
.lightbox-close {
  position: sticky;
  top: 12px;
  float: right;
  z-index: 1;
  display: grid;
  place-items: center;
  width: 42px; height: 42px;
  margin: 12px 12px -54px 0;
  border: 1px solid rgba(255, 255, 255, .2);
  border-radius: 50%;
  color: var(--white);
  background: rgba(11, 23, 48, .85);
  cursor: pointer;
  transition: background-color .2s var(--ease);
}
.lightbox-close:hover { background: var(--blue); }
.lightbox-close svg { width: 18px; height: 18px; }
.lightbox :focus-visible { outline-color: var(--ice); }
body.lightbox-open { overflow: hidden; }

/* ---------- What We Build ---------- */

.showcase { background: var(--white); }
.showcase-grid { display: grid; gap: 32px; align-items: start; }
@media (min-width: 1024px) { .showcase-grid { grid-template-columns: minmax(0, .8fr) minmax(0, 1.2fr); gap: 56px; align-items: center; } }

.showcase-tabs { display: none; }
.js .showcase-tabs { display: grid; gap: 10px; }
@media (max-width: 1023px) {
  .js .showcase-tabs { grid-auto-flow: column; grid-auto-columns: minmax(220px, 1fr); overflow-x: auto; padding: 2px 2px 10px; scroll-snap-type: x mandatory; }
  .showcase-tab { scroll-snap-align: start; }
}
@media (max-width: 599px) {
  .js .showcase-tabs { grid-auto-columns: max-content; }
  .showcase-tab { padding: 14px 16px; gap: 10px; }
  .tab-desc { display: none; }
}
.showcase-tab {
  display: flex;
  align-items: flex-start;
  gap: 16px;
  width: 100%;
  padding: 18px 20px;
  text-align: left;
  background: var(--white);
  border: 1px solid var(--gray-100);
  border-radius: var(--radius);
  cursor: pointer;
  transition: border-color .3s var(--ease), box-shadow .3s var(--ease), background-color .3s var(--ease), transform .3s var(--ease);
}
.showcase-tab:hover { border-color: var(--gray-200); transform: translateX(2px); }
.showcase-tab.is-active {
  border-color: rgba(36, 87, 214, .35);
  background: linear-gradient(90deg, var(--ice-50), var(--white));
  box-shadow: var(--shadow), inset 3px 0 0 var(--blue);
}
.tab-num { font-family: var(--font-display); font-weight: 800; font-size: .8rem; color: var(--slate); padding-top: 3px; transition: color .3s var(--ease); }
.showcase-tab.is-active .tab-num { color: var(--blue); }
.tab-text { font-size: .9rem; line-height: 1.5; color: var(--slate); }
.tab-text strong { display: block; margin-bottom: 3px; font-family: var(--font-display); font-size: 1rem; color: var(--navy); }

.showcase-stage { position: relative; margin: 0; }
.showcase-stage::before {
  content: '';
  position: absolute;
  inset: 6% -4% -6% 10%;
  z-index: 0;
  border-radius: 32px;
  background: radial-gradient(closest-side, rgba(168, 216, 240, .55), transparent);
  filter: blur(24px);
}
.app-window-light {
  background: var(--white);
  border: 1px solid var(--gray-200);
  box-shadow: 0 1px 0 rgba(255, 255, 255, .9) inset, var(--shadow-lg), 0 0 0 8px rgba(243, 246, 250, .8);
}
.app-window-light .app-window-bar { background: var(--gray-50); border-bottom: 1px solid var(--gray-100); }
.app-window-light .app-window-dots i { background: var(--gray-200); }
.app-window-light .app-window-title { color: var(--slate); font-weight: 600; font-size: .75rem; letter-spacing: .12em; text-transform: uppercase; }
.app-window-light .app-window-screen { min-height: 340px; background: var(--white); }
.showcase-caption { position: relative; margin-top: 18px; font-size: .8rem; color: var(--slate); text-align: center; }

/* Without JS every panel is listed; with JS only the selected one shows. */
.showcase-panel { padding: 20px; }
.showcase-panel + .showcase-panel { border-top: 1px solid var(--gray-100); }
.panel-label { margin-bottom: 14px; font-family: var(--font-display); font-weight: 700; color: var(--navy); }
.js .panel-label { position: absolute; width: 1px; height: 1px; overflow: hidden; clip: rect(0 0 0 0); white-space: nowrap; }
/* Panels share one grid cell so the window keeps the tallest panel's height and never jumps. */
.js .app-window-light .app-window-screen { display: grid; }
.js .showcase-panel {
  grid-area: 1 / 1;
  align-self: center;
  border-top: 0;
  visibility: hidden;
  opacity: 0;
  transform: translateY(8px);
  transition: opacity .45s var(--ease), transform .45s var(--ease), visibility 0s .45s;
}
.js .showcase-panel.is-active { visibility: visible; opacity: 1; transform: none; transition-delay: 0s; }

/* Skeleton primitives used by the concept mock-ups */
.sk, .sk-lg { display: block; height: 8px; border-radius: 4px; background: var(--gray-200); }
.sk-lg { height: 14px; background: var(--navy); opacity: .85; }
.sk.faint { background: var(--gray-100); }
.w-15 { width: 15%; } .w-20 { width: 20%; } .w-25 { width: 25%; } .w-30 { width: 30%; } .w-35 { width: 35%; }
.w-40 { width: 40%; } .w-50 { width: 50%; } .w-55 { width: 55%; } .w-60 { width: 60%; }

.mock-dash { display: grid; grid-template-columns: 40px 1fr; gap: 16px; }
.md-side { display: flex; flex-direction: column; gap: 12px; padding: 12px 9px; border-radius: 12px; background: var(--navy); }
.md-side i { display: block; width: 22px; height: 22px; border-radius: 7px; background: rgba(255, 255, 255, .12); }
.md-side i.is-on { background: var(--blue); box-shadow: 0 0 12px rgba(36, 87, 214, .7); }
.md-main { display: grid; gap: 14px; min-width: 0; }
.md-head { display: flex; align-items: center; justify-content: space-between; }
.md-h1 { width: 34%; height: 12px; border-radius: 4px; background: var(--navy); }
.md-btn { width: 70px; height: 24px; border-radius: 7px; background: var(--blue); }
.md-kpis { display: grid; grid-template-columns: repeat(3, 1fr); gap: 10px; }
.md-kpi { position: relative; display: grid; gap: 10px; padding: 14px 12px; border: 1px solid var(--gray-100); border-radius: 10px; background: var(--gray-50); }
.md-trend { position: absolute; top: 12px; right: 10px; width: 16px; height: 8px; border-radius: 4px; background: var(--ice); }
.md-trend.up { background: var(--blue); opacity: .7; }
.md-chart { padding: 12px; border: 1px solid var(--gray-100); border-radius: 10px; }
.md-chart svg { width: 100%; height: 100px; }
.md-line { stroke-dasharray: 100; stroke-dashoffset: 0; }
.showcase-panel.is-active .md-line { animation: draw 1.6s var(--ease) both; }
@keyframes draw { from { stroke-dashoffset: 100; } }
.md-rows { display: grid; gap: 8px; }
.md-row { display: flex; align-items: center; gap: 14px; padding: 10px 12px; border-radius: 8px; background: var(--gray-50); }
.md-tag { margin-left: auto; width: 48px; height: 16px; border-radius: 999px; background: rgba(36, 87, 214, .2); }
.md-tag.t-ice { background: var(--ice-200); }

.mock-chat { display: grid; gap: 14px; max-width: 520px; margin-inline: auto; }
.mc-head { display: flex; align-items: center; gap: 10px; padding-bottom: 12px; border-bottom: 1px solid var(--gray-100); }
.mc-avatar { width: 28px; height: 28px; border-radius: 50%; background: radial-gradient(circle at 35% 30%, var(--ice), var(--blue)); box-shadow: 0 0 0 4px var(--ice-50); }
.mc-name { font-family: var(--font-display); font-weight: 700; font-size: .9rem; color: var(--navy); }
.mc-status { margin-left: auto; font-size: .72rem; font-weight: 600; color: var(--blue); }
.mc-thread { display: grid; gap: 10px; }
.mc-msg { max-width: 82%; margin: 0; padding: 10px 14px; font-size: .86rem; line-height: 1.5; border-radius: 14px; }
.mc-user { justify-self: end; color: var(--white); background: var(--blue); border-bottom-right-radius: 4px; }
.mc-bot { color: var(--graphite); background: var(--gray-50); border: 1px solid var(--gray-100); border-bottom-left-radius: 4px; }
.mc-actions { display: flex; flex-wrap: wrap; gap: 8px; }
.mc-actions span { padding: 5px 12px; font-size: .75rem; font-weight: 600; color: var(--blue); border: 1px solid rgba(36, 87, 214, .3); border-radius: 999px; }
.mc-typing { display: flex; gap: 5px; margin: 0; padding: 12px 14px; width: max-content; border-radius: 14px; background: var(--gray-50); }
.mc-typing i { width: 6px; height: 6px; border-radius: 50%; background: var(--slate); opacity: .4; animation: typing 1.4s ease-in-out infinite; }
.mc-typing i:nth-child(2) { animation-delay: .2s; }
.mc-typing i:nth-child(3) { animation-delay: .4s; }
@keyframes typing { 30% { opacity: 1; transform: translateY(-2px); } }
.mc-input { display: flex; align-items: center; gap: 12px; padding: 12px 14px; border: 1px solid var(--gray-200); border-radius: 12px; }
.mc-send { margin-left: auto; width: 26px; height: 26px; border-radius: 8px; background: var(--blue); }

.mock-flow { position: relative; display: grid; gap: 14px; max-width: 460px; margin: 8px auto; }
.mock-flow::before {
  content: '';
  position: absolute;
  top: 24px; bottom: 24px; left: 27px;
  width: 2px;
  background: linear-gradient(var(--blue), var(--ice));
  opacity: .5;
}
.mock-flow li {
  position: relative;
  display: flex;
  align-items: center;
  gap: 16px;
  padding: 12px 16px 12px 12px;
  background: var(--white);
  border: 1px solid var(--gray-100);
  border-radius: 12px;
  box-shadow: var(--shadow-sm);
}
.mf-icon { position: relative; width: 32px; height: 32px; flex-shrink: 0; border-radius: 10px; background: var(--navy); }
.mf-icon::after { content: ''; position: absolute; inset: 11px; border-radius: 50%; background: var(--ice); }
.mf-text { font-size: .85rem; color: var(--slate); line-height: 1.4; }
.mf-text b { display: block; font-family: var(--font-display); font-size: .78rem; letter-spacing: .12em; text-transform: uppercase; color: var(--navy); }
.mf-check { margin-left: auto; width: 20px; height: 20px; border-radius: 50%; background: var(--ice-50); border: 2px solid var(--ice-200); }
.showcase-panel.is-active .mf-check { animation: flow-done 4s var(--ease) infinite; }
.showcase-panel.is-active li:nth-child(2) .mf-check { animation-delay: .6s; }
.showcase-panel.is-active li:nth-child(3) .mf-check { animation-delay: 1.2s; }
.showcase-panel.is-active li:nth-child(4) .mf-check { animation-delay: 1.8s; }
@keyframes flow-done {
  10%, 80% { background: var(--blue); border-color: var(--blue); box-shadow: 0 0 0 4px rgba(36, 87, 214, .15); }
}

.mock-apps { position: relative; display: grid; grid-template-columns: 1fr; padding: 8px 8px 8px 0; }
.ma-web { display: grid; gap: 14px; margin-right: 120px; padding: 18px; border: 1px solid var(--gray-100); border-radius: 12px; background: var(--gray-50); }
.ma-hero { display: grid; gap: 10px; padding: 22px 18px; border-radius: 10px; background: linear-gradient(135deg, var(--navy), #16306A); }
.ma-hero .sk-lg { background: var(--white); opacity: .9; }
.ma-hero .sk { background: rgba(255, 255, 255, .25); }
.ma-cta { width: 90px; height: 24px; margin-top: 6px; border-radius: 7px; background: var(--blue); }
.ma-cards { display: grid; grid-template-columns: repeat(3, 1fr); gap: 10px; }
.ma-cards i { height: 64px; border-radius: 10px; background: var(--white); border: 1px solid var(--gray-100); }
.ma-phone {
  position: absolute;
  right: 12px; top: 22px;
  display: grid;
  align-content: start;
  gap: 10px;
  width: 128px;
  padding: 26px 12px 14px;
  border: 6px solid var(--navy);
  border-radius: 24px;
  background: var(--white);
  box-shadow: var(--shadow-lg);
}
.ma-notch { position: absolute; top: 6px; left: 50%; width: 36px; height: 6px; border-radius: 4px; background: var(--navy); transform: translateX(-50%); }
.ma-card { height: 58px; border-radius: 10px; background: linear-gradient(135deg, var(--blue), var(--ice)); }
.ma-btn { height: 22px; margin-top: 6px; border-radius: 7px; background: var(--navy); }
@media (max-width: 479px) {
  .md-kpis { grid-template-columns: repeat(2, 1fr); }
  .md-kpi:nth-child(3) { display: none; }
  .ma-web { margin-right: 84px; }
  .ma-phone { width: 104px; }
}

/* ---------- Process ---------- */

.process { background: var(--white); }

.steps { display: grid; gap: 20px; counter-reset: step; position: relative; }
@media (min-width: 640px) { .steps { grid-template-columns: repeat(2, 1fr); } }
@media (min-width: 1024px) {
  .steps { grid-template-columns: repeat(4, 1fr); gap: 24px; }
  .steps::before {
    content: '';
    position: absolute;
    top: 52px; left: 8%; right: 8%;
    height: 1px;
    background: linear-gradient(90deg, transparent, var(--gray-200) 10%, var(--gray-200) 90%, transparent);
    z-index: 0;
  }
}

.step {
  position: relative;
  z-index: 1;
  padding: 32px 28px;
  border-radius: var(--radius-lg);
  background: var(--white);
  border: 1px solid var(--gray-100);
  transition: border-color .3s var(--ease), box-shadow .3s var(--ease);
}
.step:hover { border-color: rgba(36, 87, 214, .3); box-shadow: var(--shadow); }
.step-num {
  display: inline-grid;
  place-items: center;
  width: 44px; height: 44px;
  margin-bottom: 26px;
  border-radius: 12px;
  font-family: var(--font-display);
  font-weight: 800;
  font-size: .95rem;
  color: var(--white);
  background: var(--navy);
  box-shadow: 0 0 0 6px var(--white), 0 0 0 7px var(--gray-100);
}
.step:hover .step-num { background: var(--blue); }
.step-title { font-size: 1.05rem; font-weight: 800; letter-spacing: .16em; text-transform: uppercase; margin-bottom: 12px; }
.step p { color: var(--slate); }

.process-cta { display: flex; justify-content: center; margin-top: clamp(44px, 6vw, 64px); }

/* ---------- Contact / form ---------- */

.contact {
  background: var(--gray-50);
  background-image:
    radial-gradient(700px 500px at 0% 100%, rgba(36, 87, 214, .08), transparent 70%);
}
.contact-grid { display: grid; gap: 48px; align-items: start; }
@media (min-width: 1024px) {
  .contact-grid { grid-template-columns: minmax(0, .8fr) minmax(0, 1.2fr); gap: 64px; }
  .contact-intro { position: sticky; top: calc(var(--header-h) + 32px); }
}
.contact-intro > p { color: var(--graphite); font-size: 1.06rem; }
.contact-intro .section-title { margin-bottom: 22px; }
.contact-intro > .contact-email { margin-top: 18px; font-size: .98rem; color: var(--slate); }
.contact-email a { font-weight: 600; }

.next-steps { display: grid; gap: 4px; margin-top: 36px; border-top: 1px solid var(--gray-200); }
.next-steps li {
  display: flex;
  gap: 18px;
  padding: 18px 0;
  border-bottom: 1px solid var(--gray-200);
  font-size: .95rem;
  color: var(--slate);
}
.next-steps li > span { font-family: var(--font-display); font-weight: 800; color: var(--blue); font-size: .9rem; padding-top: 1px; }
.next-steps strong { display: block; color: var(--navy); font-weight: 600; margin-bottom: 2px; }

.form-card {
  padding: clamp(24px, 4.5vw, 48px);
  background: var(--white);
  border: 1px solid var(--gray-100);
  border-radius: var(--radius-lg);
  box-shadow: var(--shadow-lg);
}

.form-group { margin: 0 0 30px; padding: 0; border: 0; min-width: 0; }
.form-group legend {
  display: flex;
  align-items: center;
  gap: 12px;
  width: 100%;
  margin-bottom: 18px;
  padding: 0;
  font-family: var(--font-display);
  font-size: .78rem;
  font-weight: 800;
  letter-spacing: .2em;
  text-transform: uppercase;
  color: var(--navy);
}
.form-group legend::after { content: ''; flex: 1; height: 1px; background: var(--gray-100); }

.field-grid { display: grid; gap: 18px; }
@media (min-width: 640px) { .field-grid { grid-template-columns: repeat(2, 1fr); gap: 18px 20px; } }
.field-full { grid-column: 1 / -1; }

.field label { display: block; margin-bottom: 7px; font-size: .9rem; font-weight: 600; color: var(--charcoal); }
.req { color: var(--blue); font-weight: 700; }
.opt { margin-left: 4px; font-size: .75rem; font-weight: 500; color: var(--slate); }

.field input[type='text'],
.field input[type='email'],
.field input[type='tel'],
.field input[type='date'],
.field select,
.field textarea {
  width: 100%;
  min-height: 50px;
  padding: 12px 14px;
  font-size: 1rem;
  color: var(--charcoal);
  background: var(--gray-50);
  border: 1px solid var(--gray-200);
  border-radius: 10px;
  transition: border-color .2s var(--ease), box-shadow .2s var(--ease), background-color .2s var(--ease);
  -webkit-appearance: none;
  appearance: none;
}
.field textarea { resize: vertical; min-height: 140px; line-height: 1.55; }
.field select {
  padding-right: 42px;
  background-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 20 20'%3E%3Cpath d='m6 8 4 4 4-4' fill='none' stroke='%235A6476' stroke-width='1.8' stroke-linecap='round' stroke-linejoin='round'/%3E%3C/svg%3E");
  background-repeat: no-repeat;
  background-position: right 14px center;
  background-size: 18px;
  cursor: pointer;
}
.field input::placeholder, .field textarea::placeholder { color: #8A93A3; }
.field input:hover, .field select:hover, .field textarea:hover { border-color: #BCC6D6; }
.field input:focus, .field select:focus, .field textarea:focus {
  outline: none;
  background: var(--white);
  border-color: var(--blue);
  box-shadow: 0 0 0 4px rgba(36, 87, 214, .15);
}
.field [aria-invalid='true'] { border-color: var(--error) !important; background-color: #FEF2F2 !important; }
.field [aria-invalid='true']:focus { box-shadow: 0 0 0 4px rgba(220, 38, 38, .14) !important; }

.field-error { margin: 6px 0 0; font-size: .82rem; font-weight: 500; color: var(--error); }
.field-error:empty { display: none; }
.field-hint { margin: 6px 0 0; font-size: .8rem; color: var(--slate); }

.consent {
  display: grid;
  grid-template-columns: auto 1fr;
  gap: 4px 14px;
  align-items: start;
  padding: 18px;
  background: var(--gray-50);
  border: 1px solid var(--gray-100);
  border-radius: 12px;
}
.consent input {
  width: 22px; height: 22px;
  margin: 1px 0 0;
  accent-color: var(--blue);
  cursor: pointer;
}
.consent input[aria-invalid='true'] { outline: 2px solid var(--error); outline-offset: 2px; }
.consent label { margin: 0; font-weight: 400; font-size: .88rem; line-height: 1.55; color: var(--graphite); cursor: pointer; }
.consent .field-error { grid-column: 2; }

.hp-field { position: absolute; left: -10000px; width: 1px; height: 1px; overflow: hidden; }

.form-actions { margin-top: 26px; }
.form-footnote { margin-top: 14px; font-size: .82rem; color: var(--slate); text-align: center; }

.btn .spinner {
  display: none;
  width: 18px; height: 18px;
  border: 2px solid rgba(255, 255, 255, .35);
  border-top-color: var(--white);
  border-radius: 50%;
  animation: spin .8s linear infinite;
}
.btn.is-loading { pointer-events: none; opacity: .85; }
.btn.is-loading .spinner { display: inline-block; }
.btn:disabled { cursor: progress; }

.form-status {
  margin-bottom: 26px;
  padding: 14px 16px;
  border-radius: 10px;
  font-size: .92rem;
  font-weight: 500;
  border: 1px solid;
}
.form-status.is-error { color: #991B1B; background: #FEF2F2; border-color: #FECACA; }
.form-status.is-info { color: var(--navy); background: var(--ice-50); border-color: var(--ice-200); }

.form-success { padding: clamp(16px, 4vw, 40px) 0; text-align: center; }
.form-success p { color: var(--graphite); max-width: 46ch; margin-inline: auto; }
.success-icon { width: 72px; height: 72px; margin: 0 auto 24px; color: var(--success); }
.success-icon svg { width: 100%; height: 100%; }
.success-title { font-size: clamp(1.6rem, 3.4vw, 2.1rem); font-weight: 800; margin-bottom: 20px; }
.success-title:focus { outline: none; }
.success-tagline {
  margin-top: 28px !important;
  padding-top: 24px;
  border-top: 1px solid var(--gray-100);
  font-family: var(--font-display);
  font-weight: 700;
  color: var(--blue) !important;
}

/* ---------- Footer ---------- */

.site-footer {
  background: var(--navy);
  color: rgba(255, 255, 255, .66);
  padding: clamp(56px, 8vw, 88px) 0 32px;
  font-size: .94rem;
}
.site-footer a { color: rgba(255, 255, 255, .8); text-decoration: none; transition: color .2s var(--ease); }
.site-footer a:hover { color: var(--white); text-decoration: underline; }

.footer-top { display: grid; gap: 40px; padding-bottom: 44px; border-bottom: 1px solid rgba(255, 255, 255, .1); }
@media (min-width: 900px) { .footer-top { grid-template-columns: 1.4fr 1fr 1fr; gap: 56px; } }

.footer-logo { margin: 0 0 20px; }
.footer-logo img { display: block; width: 220px; max-width: 100%; height: auto; }
.footer-tagline { color: var(--blue-light); font-weight: 600; font-family: var(--font-display); }
.footer-services { margin-top: 18px; font-size: .85rem; line-height: 1.9; }
.footer-services span { margin: 0 6px; color: rgba(255, 255, 255, .3); }

.footer-nav ul { display: grid; gap: 10px; }
.footer-label {
  margin-bottom: 10px;
  font-family: var(--font-display);
  font-size: .75rem;
  font-weight: 700;
  letter-spacing: .2em;
  text-transform: uppercase;
  color: var(--white);
}
.footer-email { font-size: .9rem; }
.footer-email a { color: var(--blue-light); font-weight: 600; }
.footer-email-note { margin-top: 8px; font-size: .85rem; }

.footer-bottom {
  display: flex;
  flex-wrap: wrap;
  justify-content: space-between;
  align-items: center;
  gap: 14px 24px;
  padding-top: 28px;
  font-size: .85rem;
}
.footer-bottom p { margin: 0; }
.footer-legal { display: flex; gap: 22px; }

/* ---------- Legal pages ---------- */

.legal-header { background: var(--navy); }
.legal-header .header-inner { height: var(--header-h); }
.legal-back { color: rgba(255, 255, 255, .8); text-decoration: none; font-size: .9rem; font-weight: 500; }
.legal-back:hover { color: var(--white); }

.legal-main { padding: clamp(48px, 8vw, 96px) 0; }
.legal-main .container { max-width: 820px; }
.legal-main h1 { font-size: clamp(2.2rem, 5vw, 3rem); font-weight: 800; margin-bottom: 12px; }
.legal-main h2 { font-size: 1.3rem; font-weight: 700; margin: 40px 0 12px; }
.legal-main p, .legal-main li { color: var(--graphite); }
.legal-main ul { list-style: disc; padding-left: 22px; margin-bottom: 1em; }
.legal-main li { margin-bottom: 6px; }
.legal-meta { color: var(--slate); font-size: .92rem; }
.draft-notice {
  margin: 28px 0 8px;
  padding: 18px 20px;
  border-radius: 12px;
  background: var(--ice-50);
  border: 1px solid var(--ice-200);
  border-left: 4px solid var(--blue);
  color: var(--navy) !important;
  font-size: .94rem;
}
.draft-notice strong { color: var(--navy); }

.not-found {
  min-height: 100vh;
  display: grid;
  place-items: center;
  text-align: center;
  padding: 40px 20px;
  background: var(--navy);
  color: rgba(255, 255, 255, .75);
}
.not-found h1 { color: var(--white); font-size: clamp(2.4rem, 6vw, 3.6rem); font-weight: 800; margin: 18px 0 14px; }
.not-found .code { font-family: var(--font-display); font-weight: 800; letter-spacing: .3em; color: var(--blue-light); }
.not-found .btn { margin-top: 28px; }

/* ---------- Scroll reveal ---------- */

.js .reveal {
  opacity: 0;
  transform: translateY(22px);
  transition: opacity .8s var(--ease), transform .8s var(--ease);
  transition-delay: var(--reveal-delay, 0s);
}
.js .reveal.is-visible { opacity: 1; transform: none; }

/* ---------- Reduced motion ---------- */

@media (prefers-reduced-motion: reduce) {
  html { scroll-behavior: auto; }
  *, *::before, *::after {
    animation-duration: .001ms !important;
    animation-iteration-count: 1 !important;
    transition-duration: .001ms !important;
    transition-delay: 0s !important;
  }
  .js .reveal { opacity: 1; transform: none; }
  .pulse, .signals, .node-pulses { display: none; }
  .hero-visual, .product-showcase .app-window { transform: none; }
  .btn .spinner { animation: none; border-top-color: rgba(255, 255, 255, .35); }
}
