:root {
  --midnight: #0b0f19;
  --charcoal: #111827;
  --panel: #151b2a;
  --off-white: #f8fafc;
  --soft-gray: #e5e7eb;
  --muted: #cbd5e1;
  --body: #1f2937;
  --cyan: #06b6d4;
  --cyan-strong: #0891b2;
  --border-light: #d1d5db;
  --border-dark: #263244;
}

* { box-sizing: border-box; }
html { scroll-behavior: smooth; }
body {
  margin: 0;
  font-family: Arial, "Helvetica Neue", Helvetica, sans-serif;
  color: var(--body);
  background: var(--off-white);
  line-height: 1.6;
}
a { color: inherit; text-decoration: none; }
img, svg { max-width: 100%; display: block; }
.container { width: min(1200px, calc(100% - 32px)); margin-inline: auto; }
.narrow { max-width: 880px; }
.skip-link {
  position: absolute;
  inset-inline-start: 16px;
  top: -80px;
  z-index: 100;
  background: var(--cyan);
  color: #06111f;
  padding: 10px 14px;
}
.skip-link:focus { top: 12px; }

.site-header {
  position: sticky;
  top: 0;
  z-index: 50;
  background: rgba(11, 15, 25, .96);
  color: var(--off-white);
  border-bottom: 1px solid var(--border-dark);
  backdrop-filter: blur(16px);
}
.nav-shell {
  min-height: 72px;
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 24px;
}
.brand { display: inline-flex; align-items: center; gap: 12px; min-width: 260px; }
.brand-logo {
  width: 122px;
  height: auto;
  flex: 0 0 auto;
}
.brand strong, .brand small { display: block; line-height: 1.15; }
.brand small { color: var(--muted); font-size: 12px; margin-top: 3px; }
.site-nav { display: flex; align-items: center; gap: 18px; font-size: 14px; }
.site-nav a:not(.button) { color: var(--muted); }
.site-nav a[aria-current="page"], .site-nav a:hover { color: #fff; }
.nav-toggle { display: none; }
.lang-toggle, .filter-row button {
  border: 1px solid var(--border-dark);
  background: transparent;
  color: inherit;
  min-height: 40px;
  padding: 0 12px;
  cursor: pointer;
}

.button {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  min-height: 48px;
  padding: 0 18px;
  border: 1px solid transparent;
  font-weight: 700;
  border-radius: 8px;
}
.button-primary { background: var(--cyan); color: #06111f; }
.button-primary:hover { background: #22d3ee; }
.button-secondary { border-color: #475569; color: var(--off-white); }
.button-secondary:hover { border-color: var(--cyan); color: #fff; }
.button-small { min-height: 40px; padding-inline: 14px; background: var(--cyan); color: #06111f; }

.hero, .page-hero {
  background: var(--midnight);
  color: var(--off-white);
  padding: 96px 0;
}
.hero-grid { display: grid; grid-template-columns: minmax(0, 1.15fr) minmax(320px, .85fr); gap: 56px; align-items: center; }
.eyebrow {
  margin: 0 0 12px;
  color: var(--cyan);
  font-weight: 800;
  text-transform: uppercase;
  font-size: 13px;
  letter-spacing: 0;
}
h1, h2, h3 { line-height: 1.12; margin: 0 0 18px; letter-spacing: 0; }
h1 { font-size: clamp(38px, 6vw, 64px); }
h2 { font-size: clamp(28px, 4vw, 40px); }
h3 { font-size: 22px; }
.lead { font-size: 20px; color: var(--muted); max-width: 760px; }
.action-row { display: flex; gap: 14px; flex-wrap: wrap; margin: 30px 0 18px; }
.trust-note { color: var(--muted); max-width: 760px; }
.hero-panel {
  border: 1px solid var(--border-dark);
  background: linear-gradient(180deg, #111827 0%, #0f172a 100%);
  border-radius: 8px;
  padding: 24px;
}
.panel-header { display: flex; align-items: center; gap: 10px; color: var(--muted); margin-bottom: 20px; }
.status-dot { width: 10px; height: 10px; border-radius: 999px; background: #10b981; box-shadow: 0 0 0 6px rgba(16, 185, 129, .12); }
.signal-list { display: grid; gap: 12px; }
.signal-list div {
  border: 1px solid var(--border-dark);
  padding: 16px;
  background: rgba(255,255,255,.03);
}
.signal-list strong, .signal-list span { display: block; }
.signal-list span { color: var(--muted); font-size: 14px; margin-top: 4px; }

.section { padding: 88px 0; background: var(--midnight); color: var(--off-white); }
.section-light { background: var(--off-white); color: var(--body); }
.section-heading { max-width: 820px; margin-bottom: 32px; }
.metric-grid, .card-grid { display: grid; gap: 20px; }
.metric-grid { grid-template-columns: repeat(3, 1fr); }
.card-grid.four { grid-template-columns: repeat(4, 1fr); }
.card-grid.three { grid-template-columns: repeat(3, 1fr); }
.metric-card, .service-card, .case-card, .feature-list article, .contact-panel, .contact-form {
  border: 1px solid var(--border-light);
  background: #fff;
  color: var(--body);
  border-radius: 8px;
  padding: 24px;
}
.section:not(.section-light) .service-card {
  background: var(--panel);
  color: var(--off-white);
  border-color: var(--border-dark);
}
.service-card p, .case-card p, .metric-card p { margin-bottom: 0; }
.card-index { color: var(--cyan); font-weight: 800; display: block; margin-bottom: 16px; }
.split-grid, .feature-layout, .contact-grid { display: grid; grid-template-columns: 1fr 1.25fr; gap: 40px; }
.cta-band {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 32px;
  border: 1px solid var(--border-dark);
  background: var(--panel);
  color: var(--off-white);
  border-radius: 8px;
  padding: 36px;
}
.cta-band p { max-width: 760px; }

.service-tabs {
  position: sticky;
  top: 72px;
  z-index: 30;
  display: flex;
  gap: 8px;
  overflow-x: auto;
  padding: 12px max(16px, calc((100vw - 1200px) / 2));
  background: #fff;
  border-bottom: 1px solid var(--border-light);
}
.service-tabs a, .filter-row button {
  white-space: nowrap;
  border: 1px solid var(--border-light);
  padding: 10px 14px;
  border-radius: 8px;
  color: var(--body);
  background: #fff;
}
.service-tabs a:hover, .filter-row button[aria-pressed="true"] { border-color: var(--cyan); color: #075985; }
.feature-list { display: grid; grid-template-columns: 1fr 1fr; gap: 16px; }
.table-wrap { overflow-x: auto; border: 1px solid var(--border-light); border-radius: 8px; background: #fff; }
table { width: 100%; border-collapse: collapse; min-width: 860px; }
caption { text-align: start; padding: 16px; font-weight: 800; }
th, td { padding: 16px; border-top: 1px solid var(--border-light); text-align: start; vertical-align: top; }
thead th { background: #eef2f7; }

.filter-row { display: flex; gap: 10px; flex-wrap: wrap; margin-bottom: 24px; }
.portfolio-matrix {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 20px;
}
.enterprise-case {
  display: grid;
  gap: 18px;
}
.enterprise-case.is-hidden {
  display: none;
}
.case-topline {
  display: flex;
  align-items: flex-start;
  gap: 14px;
}
.case-topline span {
  display: inline-grid;
  place-items: center;
  width: 42px;
  height: 42px;
  flex: 0 0 auto;
  border-radius: 8px;
  background: #ecfeff;
  color: #075985;
  font-weight: 800;
}
.enterprise-case dl {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 12px;
  margin: 0;
}
.enterprise-case dl div {
  border-top: 1px solid var(--border-light);
  padding-top: 12px;
}
.enterprise-case dt {
  color: #475569;
  font-size: 13px;
  font-weight: 800;
  text-transform: uppercase;
}
.enterprise-case dd {
  margin: 4px 0 0;
  font-weight: 700;
}
.case-details { display: grid; gap: 28px; }
.case-details article { border-bottom: 1px solid var(--border-dark); padding-bottom: 28px; }

.contact-form { display: grid; gap: 24px; }
.form-step { display: grid; gap: 10px; }
label { font-weight: 700; }
input, select, textarea {
  width: 100%;
  min-height: 46px;
  border: 1px solid #9ca3af;
  border-radius: 8px;
  padding: 10px 12px;
  font: inherit;
  background: #fff;
}
textarea { resize: vertical; }
.form-note {
  margin: 4px 0 0;
  color: #475569;
  font-size: 14px;
}
.form-status {
  border: 1px solid var(--border-light);
  border-radius: 8px;
  padding: 12px 14px;
  background: #ecfeff;
  color: #164e63;
}
.form-status.is-error {
  background: #fef2f2;
  color: #991b1b;
  border-color: #fecaca;
}
input:focus, select:focus, textarea:focus, button:focus-visible, a:focus-visible {
  outline: 2px solid var(--cyan);
  outline-offset: 2px;
}
.check-row { display: flex; gap: 10px; align-items: flex-start; font-weight: 400; }
.check-row input { width: auto; min-height: auto; margin-top: 6px; }
.contact-panel { align-self: start; position: sticky; top: 104px; }
.contact-panel address { font-style: normal; display: grid; gap: 16px; }
.contact-panel a, .contact-panel span { display: block; color: #075985; }
.notice { margin-top: 24px; padding-top: 24px; border-top: 1px solid var(--border-light); }

.site-footer {
  background: #060914;
  color: var(--muted);
  padding: 48px 0;
}
.footer-grid { display: grid; grid-template-columns: 1.4fr 1fr 1fr; gap: 32px; }
.site-footer h2, .site-footer h3 { color: var(--off-white); font-size: 20px; }
.site-footer nav, .site-footer address { display: grid; gap: 10px; font-style: normal; }

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

@media (max-width: 900px) {
  .nav-toggle {
    display: inline-flex;
    min-height: 42px;
    padding: 0 12px;
    background: transparent;
    color: #fff;
    border: 1px solid var(--border-dark);
  }
  .site-nav {
    display: none;
    position: absolute;
    inset-inline: 16px;
    top: 72px;
    padding: 18px;
    background: var(--charcoal);
    border: 1px solid var(--border-dark);
    border-radius: 8px;
    flex-direction: column;
    align-items: stretch;
  }
  .site-nav.is-open { display: flex; }
  .hero-grid, .split-grid, .feature-layout, .contact-grid { grid-template-columns: 1fr; }
  .metric-grid, .card-grid.four, .card-grid.three, .feature-list, .footer-grid { grid-template-columns: 1fr; }
  .portfolio-matrix, .enterprise-case dl { grid-template-columns: 1fr; }
  .hero, .page-hero, .section { padding: 56px 0; }
  .cta-band { flex-direction: column; align-items: flex-start; padding: 24px; }
  .contact-panel { position: static; }
  .brand { min-width: 0; }
  .brand-logo { width: 92px; }
  .brand small { display: none; }
}
