:root {
  --primary: #0a4fb7;
  --primary-deep: #00398b;
  --primary-soft: #d9e2ff;
  --primary-soft-2: #eef3ff;
  --navy: #001133;
  --ink: #191b22;
  --muted: #434653;
  --muted-soft: #737784;
  --line: #cfd4e5;
  --line-soft: #e2e6f2;
  --surface: #ffffff;
  --surface-page: #faf8ff;
  --surface-soft: #f8faff;
  --surface-card: #f3f3fc;
  --inverse: #2e3037;
  --inverse-text: #f0f0f9;
  --cyan: #00d1ff;
  --green: #1fbf75;
  --shadow: 0 4px 24px rgba(8, 26, 60, 0.06);
  --shadow-lift: 0 18px 42px rgba(8, 26, 60, 0.1);
  --radius: 8px;
  --container: 980px;
  color-scheme: light;
}

* {
  box-sizing: border-box;
}

html {
  scroll-behavior: smooth;
}

body {
  margin: 0;
  overflow-x: hidden;
  color: var(--ink);
  background: var(--surface-page);
  font-family:
    Inter, ui-sans-serif, system-ui, -apple-system, BlinkMacSystemFont, "Segoe UI",
    sans-serif;
  line-height: 1.6;
  text-rendering: optimizeLegibility;
}

img,
svg {
  display: block;
}

a {
  color: inherit;
  text-decoration: none;
}

button,
input,
select,
textarea {
  font: inherit;
}

button {
  cursor: pointer;
}

.skip-link {
  position: absolute;
  top: -48px;
  left: 16px;
  z-index: 100;
  padding: 10px 14px;
  color: var(--surface);
  background: var(--primary);
  border-radius: var(--radius);
}

.skip-link:focus {
  top: 16px;
}

.container {
  width: min(calc(100% - 40px), var(--container));
  margin-inline: auto;
}

.site-header {
  position: sticky;
  top: 0;
  z-index: 40;
  background: rgba(250, 248, 255, 0.93);
  border-bottom: 1px solid rgba(207, 212, 229, 0.7);
  box-shadow: 0 4px 20px rgba(8, 26, 60, 0.04);
  backdrop-filter: blur(18px);
}

.nav {
  position: relative;
  width: min(calc(100% - 40px), var(--container));
  min-height: 58px;
  margin-inline: auto;
  display: grid;
  grid-template-columns: auto 1fr auto;
  align-items: center;
  gap: 24px;
}

.brand {
  display: inline-flex;
  align-items: center;
  min-width: 0;
}

.brand-logo {
  width: clamp(104px, 12vw, 132px);
  max-width: 100%;
  height: auto;
}

.footer-brand .brand-logo {
  width: min(128px, 100%);
}

.brand-mark,
.brand small,
.brand strong {
  display: none;
}

.icon-box svg,
.btn svg,
.nav-cta svg {
  fill: none;
  stroke: currentColor;
  stroke-linecap: round;
  stroke-linejoin: round;
}

.nav-links {
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 28px;
}

.nav-menu-label {
  display: none;
}

.nav-links a {
  position: relative;
  color: var(--muted);
  font-size: 0.82rem;
  font-weight: 700;
  line-height: 1;
}

.nav-links a::after {
  position: absolute;
  right: 0;
  bottom: -12px;
  left: 0;
  height: 2px;
  content: "";
  background: var(--primary);
  opacity: 0;
  transform: scaleX(0.55);
  transition:
    opacity 160ms ease,
    transform 160ms ease;
}

.nav-links a:hover,
.nav-links a:focus-visible,
.nav-links a.is-active {
  color: var(--primary);
}

.nav-links a.is-active::after,
.nav-links a:hover::after {
  opacity: 1;
  transform: scaleX(1);
}

.nav-toggle {
  width: 42px;
  height: 42px;
  display: none;
  place-items: center;
  gap: 4px;
  padding: 0;
  color: var(--primary);
  background: var(--surface);
  border: 1px solid var(--line-soft);
  border-radius: var(--radius);
}

.nav-toggle span {
  width: 18px;
  height: 2px;
  display: block;
  background: currentColor;
  border-radius: 999px;
  transition:
    opacity 160ms ease,
    transform 160ms ease;
}

.nav.is-open .nav-toggle span:nth-child(1) {
  transform: translateY(6px) rotate(45deg);
}

.nav.is-open .nav-toggle span:nth-child(2) {
  opacity: 0;
  transform: scaleX(0.2);
}

.nav.is-open .nav-toggle span:nth-child(3) {
  transform: translateY(-6px) rotate(-45deg);
}

.nav-cta,
.btn {
  min-height: 42px;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 10px;
  padding: 12px 22px;
  border: 1px solid transparent;
  border-radius: var(--radius);
  font-size: 0.86rem;
  font-weight: 800;
  line-height: 1;
  transition:
    transform 180ms ease,
    border-color 180ms ease,
    background-color 180ms ease,
    box-shadow 180ms ease;
}

.nav-cta {
  min-height: 34px;
  padding: 9px 18px;
  color: var(--surface);
  background: var(--primary);
  box-shadow: none;
}

.nav-cta svg {
  display: none;
}

.btn-primary {
  color: var(--surface);
  background: var(--primary);
  box-shadow: 0 10px 20px rgba(10, 79, 183, 0.18);
}

.btn-secondary {
  color: var(--primary);
  background: transparent;
  border-color: var(--primary);
}

.nav-cta:hover,
.btn:hover,
.nav-cta:focus-visible,
.btn:focus-visible {
  transform: translateY(-1px);
}

.btn-primary:hover,
.btn-primary:focus-visible,
.nav-cta:hover,
.nav-cta:focus-visible {
  background: var(--primary-deep);
}

.btn-secondary:hover,
.btn-secondary:focus-visible {
  background: rgba(10, 79, 183, 0.06);
}

.btn svg,
.nav-cta svg {
  width: 18px;
  height: 18px;
  flex: 0 0 auto;
  stroke-width: 2.2;
}

h1,
h2,
h3,
p {
  margin-top: 0;
}

h1,
h2,
h3,
.brand,
.btn,
.nav-cta,
.nav-links a {
  font-family:
    "Plus Jakarta Sans", Inter, ui-sans-serif, system-ui, -apple-system,
    BlinkMacSystemFont, "Segoe UI", sans-serif;
}

h1 {
  max-width: 720px;
  margin-bottom: 22px;
  color: var(--primary);
  font-size: clamp(2.7rem, 5vw, 4rem);
  font-weight: 800;
  line-height: 1.05;
  letter-spacing: 0;
}

h2 {
  margin-bottom: 16px;
  color: var(--ink);
  font-size: clamp(1.8rem, 3.2vw, 2.7rem);
  font-weight: 800;
  line-height: 1.18;
  letter-spacing: 0;
}

h3 {
  margin-bottom: 10px;
  color: var(--ink);
  font-size: 1.05rem;
  font-weight: 800;
  line-height: 1.3;
  letter-spacing: 0;
}

.eyebrow {
  display: inline-flex;
  align-items: center;
  margin: 0 0 14px;
  color: var(--primary);
  font-size: 0.72rem;
  font-weight: 800;
  letter-spacing: 0.08em;
  line-height: 1;
  text-transform: uppercase;
}

.hero .eyebrow {
  padding: 7px 11px;
  color: var(--primary);
  background: var(--primary-soft);
  border-radius: 999px;
}

.hero {
  position: relative;
  min-height: 610px;
  display: grid;
  align-items: stretch;
  overflow: hidden;
  background: var(--surface-page);
  isolation: isolate;
}

.hero-bg,
.hero::after {
  display: none;
}

.hero-grid {
  min-height: 610px;
  display: grid;
  grid-template-columns: minmax(0, 1fr) minmax(300px, 340px);
  gap: 86px;
  align-items: center;
  padding: 80px 0 86px;
}

.hero-copy {
  color: var(--ink);
}

.hero-lede,
.page-hero p {
  max-width: 620px;
  margin-bottom: 30px;
  color: var(--muted);
  font-size: 1rem;
  line-height: 1.65;
}

.typewriter {
  display: inline;
  color: var(--navy);
  background: linear-gradient(180deg, transparent 62%, rgba(10, 79, 183, 0.16) 0);
  text-shadow: none;
  -webkit-text-fill-color: currentColor;
}

.typewriter::after {
  display: none;
}

.hero-actions {
  display: flex;
  flex-wrap: wrap;
  gap: 14px;
}

.hero-console {
  align-self: center;
  overflow: hidden;
  color: var(--ink);
  background: rgba(255, 255, 255, 0.86);
  border: 2px solid rgba(10, 79, 183, 0.72);
  border-radius: var(--radius);
  box-shadow: var(--shadow);
  backdrop-filter: blur(12px);
}

.console-head {
  display: none;
}

.console-body {
  display: grid;
  gap: 12px;
  padding: 24px;
}

.console-label {
  position: relative;
  display: flex;
  align-items: center;
  gap: 8px;
  margin-bottom: 8px;
  color: var(--ink);
  font-family:
    "Plus Jakarta Sans", Inter, ui-sans-serif, system-ui, -apple-system,
    BlinkMacSystemFont, "Segoe UI", sans-serif;
  font-size: 1.05rem;
  font-weight: 800;
  text-transform: none;
}

.console-label::before {
  width: 9px;
  height: 9px;
  content: "";
  background: var(--green);
  border-radius: 50%;
}

.console-row {
  position: relative;
  display: grid;
  grid-template-columns: 1fr auto;
  align-items: center;
  gap: 16px;
  min-height: 48px;
  padding: 13px 14px 13px 46px;
  background: var(--surface-card);
  border: 0;
  border-radius: var(--radius);
}

.console-row::before {
  position: absolute;
  top: 50%;
  left: 14px;
  width: 20px;
  height: 20px;
  content: "";
  background: rgba(10, 79, 183, 0.12);
  border-radius: 6px;
  transform: translateY(-50%);
}

.console-row strong {
  color: var(--ink);
  font-size: 0.82rem;
  font-weight: 800;
}

.console-row span {
  color: var(--primary);
  font-size: 0.78rem;
  font-weight: 800;
  white-space: nowrap;
}

.trust-strip {
  background: var(--surface-page);
  border: 0;
}

.trust-grid {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 18px;
  padding: 0 0 78px;
}

.trust-grid div {
  display: grid;
  gap: 8px;
  padding: 20px;
  background: var(--surface);
  border: 1px solid var(--line-soft);
  border-radius: var(--radius);
  box-shadow: var(--shadow);
}

.trust-grid strong {
  color: var(--ink);
  font-family:
    "Plus Jakarta Sans", Inter, ui-sans-serif, system-ui, -apple-system,
    BlinkMacSystemFont, "Segoe UI", sans-serif;
  font-size: 0.98rem;
}

.trust-grid span {
  color: var(--muted);
  font-size: 0.9rem;
}

.section {
  padding: 96px 0;
}

.section-soft,
.proof-section {
  background: var(--surface-soft);
}

.proof-section {
  background: linear-gradient(180deg, var(--surface-page), var(--surface-soft));
}

.two-column {
  display: grid;
  grid-template-columns: minmax(0, 0.92fr) minmax(0, 1.08fr);
  gap: 64px;
  align-items: start;
}

.lead-copy p,
.section-heading p,
.service-card p,
.challenge-grid p,
.detail-panel p,
.values-grid p,
.process-list p,
.scope-card p,
.next-step-panel li {
  color: var(--muted);
}

.section-heading {
  max-width: 760px;
  margin: 0 auto 42px;
  text-align: center;
}

.challenge-grid {
  display: grid;
  grid-template-columns: repeat(12, 1fr);
  gap: 18px;
  margin-top: 42px;
}

.challenge-grid article,
.service-card,
.scope-card,
.contact-method-card,
.next-step-panel,
.values-grid article,
.detail-panel,
.faq-item,
.contact-form {
  background: var(--surface);
  border: 1px solid var(--line-soft);
  border-radius: var(--radius);
  box-shadow: var(--shadow);
}

.challenge-grid article {
  position: relative;
  min-height: 156px;
  grid-column: span 6;
  overflow: hidden;
  padding: 48px 24px 24px;
  transition:
    transform 180ms ease,
    box-shadow 180ms ease,
    border-color 180ms ease;
}

.challenge-grid article:nth-child(1),
.challenge-grid article:nth-child(4) {
  grid-column: span 7;
}

.challenge-grid article:nth-child(2),
.challenge-grid article:nth-child(3) {
  grid-column: span 5;
}

.challenge-grid article:hover,
.service-card:hover,
.values-grid article:hover {
  border-color: rgba(10, 79, 183, 0.22);
  box-shadow: var(--shadow-lift);
  transform: translateY(-2px);
}

.challenge-grid span,
.values-grid span {
  position: absolute;
  top: 16px;
  left: 22px;
  color: rgba(25, 27, 34, 0.08);
  font-family:
    "Plus Jakarta Sans", Inter, ui-sans-serif, system-ui, -apple-system,
    BlinkMacSystemFont, "Segoe UI", sans-serif;
  font-size: 2.2rem;
  font-weight: 800;
  line-height: 1;
}

.challenge-grid h3,
.values-grid h3 {
  position: relative;
  padding-left: 42px;
}

.challenge-grid h3::before,
.values-grid h3::before {
  position: absolute;
  top: 0.08em;
  left: 0;
  width: 26px;
  height: 26px;
  content: "";
  background: rgba(10, 79, 183, 0.12);
  border-radius: 7px;
}

.challenge-grid p,
.values-grid p {
  margin-bottom: 0;
  font-size: 0.92rem;
}

.stats-grid {
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  gap: 18px;
}

.stat-card {
  min-height: 150px;
  padding: 24px 18px 20px;
  text-align: center;
  background: var(--surface-card);
  border: 0;
  border-bottom: 3px solid #c84545;
  border-radius: var(--radius);
  box-shadow: none;
  transition:
    transform 180ms ease,
    box-shadow 180ms ease;
}

.stat-card:nth-child(2) {
  border-bottom-color: var(--primary);
}

.stat-card:nth-child(3) {
  border-bottom-color: var(--cyan);
}

.stat-card:nth-child(4) {
  border-bottom-color: #7e2c00;
}

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

.stat-value {
  display: block;
  margin-bottom: 8px;
  color: var(--primary);
  font-family:
    "Plus Jakarta Sans", Inter, ui-sans-serif, system-ui, -apple-system,
    BlinkMacSystemFont, "Segoe UI", sans-serif;
  font-size: clamp(2.35rem, 4vw, 3rem);
  font-weight: 800;
  line-height: 1;
}

.stat-card h3 {
  margin-bottom: 8px;
  color: var(--ink);
  font-size: 0.9rem;
}

.stat-card p {
  margin-bottom: 0;
  color: var(--muted);
  font-size: 0.82rem;
  line-height: 1.5;
}

.source-note {
  margin: 18px auto 0;
  color: var(--muted-soft);
  font-size: 0.84rem;
  text-align: center;
}

.source-note a {
  color: var(--primary);
  font-weight: 800;
}

.service-grid {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 18px;
}

.service-card {
  min-height: 172px;
  display: flex;
  flex-direction: column;
  padding: 24px;
  transition:
    transform 180ms ease,
    border-color 180ms ease,
    box-shadow 180ms ease;
}

a.service-card:hover,
a.service-card:focus-visible {
  border-color: rgba(10, 79, 183, 0.3);
  box-shadow: var(--shadow-lift);
  transform: translateY(-2px);
}

.icon-box {
  width: 34px;
  height: 34px;
  display: grid;
  place-items: center;
  margin-bottom: 24px;
  color: var(--primary);
  background: transparent;
  border: 0;
  border-radius: var(--radius);
}

.icon-box svg {
  width: 25px;
  height: 25px;
  stroke-width: 2.4;
}

.service-card p {
  margin-bottom: 0;
  font-size: 0.9rem;
}

body[data-page="home"] .service-grid {
  grid-template-columns: repeat(4, 1fr);
}

.feature-band {
  display: block;
}

.feature-band > div:first-child {
  max-width: 520px;
  margin-bottom: 56px;
}

.feature-band h2 {
  font-size: clamp(1.8rem, 3vw, 2.45rem);
}

.process-list {
  position: relative;
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  gap: 0;
  counter-reset: process-step;
}

.process-list::before {
  position: absolute;
  top: 31px;
  right: 0;
  left: 0;
  height: 1px;
  content: "";
  background: var(--line-soft);
}

.process-list article {
  position: relative;
  display: block;
  padding: 0 22px 0 0;
  background: transparent;
  border: 0;
  border-radius: 0;
  counter-increment: process-step;
}

.process-list span {
  display: block;
  margin-bottom: 18px;
  color: var(--primary);
  font-family:
    "Plus Jakarta Sans", Inter, ui-sans-serif, system-ui, -apple-system,
    BlinkMacSystemFont, "Segoe UI", sans-serif;
  font-size: 0.92rem;
  font-weight: 800;
}

.process-list span::before {
  width: 62px;
  height: 62px;
  display: grid;
  place-items: center;
  margin-bottom: 24px;
  color: var(--surface);
  content: counter(process-step, decimal-leading-zero);
  background: var(--primary);
  border-radius: 999px;
}

.process-list p {
  margin-bottom: 0;
  font-size: 0.86rem;
  line-height: 1.55;
}

.section-soft:has(.tag-list) {
  color: var(--inverse-text);
  background: var(--inverse);
}

.section-soft:has(.tag-list) .two-column {
  grid-template-columns: 1fr;
  max-width: 760px;
  text-align: center;
}

.section-soft:has(.tag-list) h2,
.section-soft:has(.tag-list) .eyebrow {
  color: var(--inverse-text);
}

.section-soft:has(.tag-list) .tag-list {
  justify-content: center;
}

.tag-list {
  display: flex;
  flex-wrap: wrap;
  gap: 12px;
}

.tag-list span {
  display: inline-flex;
  align-items: center;
  min-height: 34px;
  padding: 8px 15px;
  color: var(--inverse-text);
  background: transparent;
  border: 1px solid rgba(240, 240, 249, 0.45);
  border-radius: 999px;
  font-size: 0.86rem;
  font-weight: 700;
}

.cta-section {
  padding: 76px 0;
  color: var(--surface);
  background: var(--primary);
}

.cta-card {
  display: grid;
  justify-items: center;
  gap: 24px;
  text-align: center;
}

.cta-card h2 {
  max-width: 650px;
  margin: 0 auto;
  color: var(--surface);
  font-size: clamp(1.8rem, 3vw, 2.35rem);
}

.cta-section .eyebrow {
  color: var(--primary-soft);
}

.cta-section .btn-primary {
  color: var(--primary);
  background: var(--surface);
  box-shadow: none;
}

.cta-section .btn-primary:hover,
.cta-section .btn-primary:focus-visible {
  color: var(--primary-deep);
  background: var(--primary-soft-2);
}

.page-hero {
  padding: 96px 0 88px;
  color: var(--ink);
  background: var(--surface-page);
}

.page-hero-grid {
  display: grid;
  grid-template-columns: minmax(0, 1fr) minmax(300px, 0.58fr);
  gap: 64px;
  align-items: center;
}

.page-hero h1 {
  color: var(--primary);
  font-size: clamp(2.4rem, 4.5vw, 3.8rem);
}

.page-hero .eyebrow {
  color: var(--primary);
}

.scope-card,
.contact-method-card,
.next-step-panel {
  padding: 24px;
}

.scope-card strong,
.contact-method-card strong,
.next-step-panel strong {
  display: block;
  margin-bottom: 12px;
  color: var(--ink);
  font-family:
    "Plus Jakarta Sans", Inter, ui-sans-serif, system-ui, -apple-system,
    BlinkMacSystemFont, "Segoe UI", sans-serif;
  font-size: 1.02rem;
  font-weight: 800;
}

.scope-card p {
  margin-bottom: 0;
}

.detail-stack {
  display: grid;
  gap: 18px;
}

.detail-panel {
  display: grid;
  grid-template-columns: minmax(230px, 0.75fr) minmax(0, 1.25fr);
  gap: 44px;
  padding: 30px;
}

.detail-panel h2 {
  font-size: clamp(1.55rem, 2.4vw, 2.1rem);
}

.check-list {
  display: grid;
  gap: 10px;
  padding: 0;
  margin: 22px 0 0;
  list-style: none;
}

.check-list li {
  position: relative;
  padding-left: 24px;
  color: var(--muted);
  font-weight: 700;
}

.check-list li::before {
  position: absolute;
  top: 0.62em;
  left: 0;
  width: 7px;
  height: 7px;
  content: "";
  background: var(--green);
  border-radius: 50%;
  box-shadow: 0 0 0 4px rgba(31, 191, 117, 0.12);
}

.faq-list {
  display: grid;
  gap: 12px;
}

.faq-item {
  overflow: hidden;
}

.faq-item button {
  width: 100%;
  padding: 20px 22px;
  color: var(--ink);
  background: transparent;
  border: 0;
  text-align: left;
  font-weight: 800;
}

.faq-content {
  padding: 0 22px 22px;
}

.faq-content p {
  margin-bottom: 0;
  color: var(--muted);
}

.browser-frame {
  overflow: hidden;
  background: var(--surface);
  border: 1px solid var(--line-soft);
  border-radius: var(--radius);
  box-shadow: var(--shadow);
}

.browser-bar {
  height: 42px;
  display: flex;
  align-items: center;
  gap: 8px;
  padding: 0 16px;
  background: var(--surface-card);
  border-bottom: 1px solid var(--line-soft);
}

.browser-bar span {
  width: 9px;
  height: 9px;
  background: var(--primary);
  border-radius: 50%;
}

.browser-bar span:nth-child(2) {
  background: var(--cyan);
}

.browser-bar span:nth-child(3) {
  background: var(--green);
}

.browser-content {
  padding: 24px;
}

.mock-hero {
  height: 112px;
  background: linear-gradient(135deg, var(--primary), rgba(0, 209, 255, 0.58));
  border-radius: var(--radius);
}

.mock-lines {
  display: grid;
  gap: 12px;
  margin-top: 24px;
}

.mock-lines span {
  height: 12px;
  background: var(--primary-soft);
  border-radius: 999px;
}

.mock-lines span:nth-child(1) {
  width: 88%;
}

.mock-lines span:nth-child(2) {
  width: 64%;
}

.mock-lines span:nth-child(3) {
  width: 72%;
}

.mock-grid {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 12px;
  margin-top: 24px;
}

.mock-grid span {
  height: 68px;
  background: var(--surface-card);
  border: 1px solid var(--line-soft);
  border-radius: var(--radius);
}

.values-grid {
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  gap: 18px;
}

.values-grid article {
  position: relative;
  min-height: 226px;
  overflow: hidden;
  padding: 50px 24px 24px;
  transition:
    transform 180ms ease,
    border-color 180ms ease,
    box-shadow 180ms ease;
}

.contact-hero {
  padding-bottom: 88px;
}

.contact-method-card {
  display: grid;
  gap: 10px;
}

.contact-method-card a {
  color: var(--primary);
  font-weight: 800;
}

.contact-method-card span {
  display: block;
  margin-top: 8px;
  color: var(--muted);
  font-size: 0.9rem;
}

.social-links {
  display: flex;
  flex-wrap: wrap;
  gap: 10px;
  margin-top: 16px;
}

.social-links a {
  min-height: 34px;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 8px;
  padding: 8px 12px;
  color: var(--muted);
  background: transparent;
  border: 1px solid var(--line);
  border-radius: 999px;
  font-size: 0.82rem;
  font-weight: 800;
  transition:
    color 160ms ease,
    background-color 160ms ease,
    border-color 160ms ease,
    transform 160ms ease;
}

.social-links a:hover,
.social-links a:focus-visible {
  color: var(--primary);
  background: var(--primary-soft-2);
  border-color: var(--primary-soft);
  transform: translateY(-1px);
}

.contact-method-card .social-links a {
  color: var(--primary);
  background: var(--primary-soft-2);
  border-color: var(--primary-soft);
}

.contact-layout {
  display: grid;
  grid-template-columns: minmax(0, 1fr) minmax(290px, 0.5fr);
  gap: 28px;
  align-items: start;
}

.contact-form {
  padding: 28px;
}

.form-row {
  margin-bottom: 16px;
}

.form-row.split {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 14px;
}

label {
  display: block;
  margin-bottom: 8px;
  color: var(--ink);
  font-size: 0.78rem;
  font-weight: 800;
  letter-spacing: 0.06em;
  text-transform: uppercase;
}

input,
select,
textarea {
  width: 100%;
  min-height: 48px;
  padding: 12px 13px;
  color: var(--ink);
  background: var(--surface);
  border: 1px solid var(--line);
  border-radius: var(--radius);
  outline: none;
  transition:
    border-color 160ms ease,
    box-shadow 160ms ease;
}

textarea {
  resize: vertical;
}

input:focus,
select:focus,
textarea:focus {
  border-color: var(--primary);
  box-shadow: 0 0 0 4px rgba(10, 79, 183, 0.12);
}

[aria-invalid="true"] {
  border-color: #ba1a1a;
}

.field-error {
  min-height: 18px;
  display: block;
  margin-top: 5px;
  color: #ba1a1a;
  font-size: 0.84rem;
  font-weight: 700;
}

.form-submit {
  width: 100%;
  margin-top: 4px;
}

.form-note {
  margin: 14px 0 0;
  color: var(--muted);
  font-size: 0.9rem;
}

.form-note.is-success {
  color: #0f8b58;
  font-weight: 800;
}

.form-note.is-error {
  color: #ba1a1a;
  font-weight: 800;
}

.btn:disabled,
.btn[aria-busy="true"] {
  cursor: wait;
  opacity: 0.68;
  transform: none;
}

.next-step-panel {
  position: sticky;
  top: 92px;
}

.next-step-panel ol {
  display: grid;
  gap: 14px;
  padding-left: 22px;
  margin: 0;
}

.site-footer {
  color: var(--muted);
  background: #ececf4;
}

.footer-grid {
  display: grid;
  grid-template-columns: minmax(0, 1.25fr) minmax(170px, 0.65fr) minmax(240px, 0.9fr);
  gap: 52px;
  padding: 56px 0 36px;
}

.footer-grid strong {
  display: block;
  margin-bottom: 14px;
  color: var(--ink);
  font-family:
    "Plus Jakarta Sans", Inter, ui-sans-serif, system-ui, -apple-system,
    BlinkMacSystemFont, "Segoe UI", sans-serif;
  font-weight: 800;
}

.footer-grid p {
  max-width: 430px;
  margin: 16px 0 0;
  color: var(--muted);
  font-size: 0.88rem;
}

.footer-grid a:not(.brand) {
  display: block;
  margin-top: 10px;
  color: var(--muted);
  font-size: 0.88rem;
  font-weight: 700;
}

.footer-grid a:hover {
  color: var(--primary);
}

.footer-grid .social-links a {
  display: inline-flex;
  margin-top: 0;
}

.footer-bottom {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 18px;
  padding: 22px 0 34px;
  color: var(--muted);
  border-top: 1px solid rgba(115, 119, 132, 0.22);
}

.footer-bottom a {
  color: var(--primary);
  font-weight: 800;
}

@media (max-width: 1080px) {
  .nav {
    grid-template-columns: auto auto;
    justify-content: space-between;
  }

  .nav-toggle {
    display: grid;
  }

  .nav-links,
  .nav-cta {
    display: none;
  }

  .nav.is-open .nav-links {
    position: absolute;
    top: calc(100% + 10px);
    right: 0;
    left: 0;
    display: grid;
    gap: 6px;
    max-height: calc(100vh - 88px);
    padding: 12px;
    overflow-y: auto;
    background: var(--surface);
    border: 1px solid var(--line-soft);
    border-radius: var(--radius);
    box-shadow: var(--shadow-lift);
  }

  .nav.is-open .nav-menu-label {
    display: block;
    padding: 8px 12px 10px;
    color: var(--muted-soft);
    font-size: 0.78rem;
    font-weight: 800;
    text-transform: uppercase;
  }

  .nav.is-open .nav-links a {
    display: grid;
    gap: 4px;
    padding: 14px;
    border-radius: var(--radius);
  }

  .nav.is-open .nav-links a::after {
    position: static;
    width: auto;
    height: auto;
    display: block;
    content: attr(data-nav-note);
    color: var(--muted);
    background: transparent;
    opacity: 1;
    transform: none;
    font-family: Inter, ui-sans-serif, system-ui, sans-serif;
    font-size: 0.82rem;
    font-weight: 600;
  }

  .nav.is-open .nav-links a:hover,
  .nav.is-open .nav-links a.is-active {
    background: var(--primary-soft-2);
  }

  .hero-grid,
  .page-hero-grid,
  .contact-layout {
    grid-template-columns: 1fr;
  }

  .hero-console {
    max-width: 560px;
    align-self: start;
  }

  .challenge-grid,
  .stats-grid,
  .values-grid {
    grid-template-columns: repeat(2, 1fr);
  }

  .challenge-grid article,
  .challenge-grid article:nth-child(1),
  .challenge-grid article:nth-child(2),
  .challenge-grid article:nth-child(3),
  .challenge-grid article:nth-child(4) {
    grid-column: auto;
  }

  .service-grid {
    grid-template-columns: repeat(2, 1fr);
  }

  .process-list {
    grid-template-columns: repeat(2, 1fr);
    gap: 32px 18px;
  }

  .process-list::before {
    display: none;
  }

  .next-step-panel {
    position: static;
  }
}

@media (max-width: 760px) {
  .container {
    width: min(calc(100% - 32px), var(--container));
  }

  .nav {
    width: min(calc(100% - 28px), var(--container));
    min-height: 62px;
  }

  .brand-logo {
    width: 118px;
  }

  .hero {
    min-height: auto;
  }

  .hero-grid {
    min-height: auto;
    gap: 34px;
    padding: 58px 0 62px;
  }

  h1 {
    font-size: clamp(2.25rem, 11vw, 3.1rem);
  }

  .page-hero h1 {
    font-size: clamp(2.1rem, 10vw, 2.9rem);
  }

  h2 {
    font-size: clamp(1.7rem, 8vw, 2.35rem);
  }

  .hero-actions {
    align-items: stretch;
    flex-direction: column;
  }

  .btn {
    width: 100%;
  }

  .trust-grid,
  .two-column,
  .challenge-grid,
  .stats-grid,
  .service-grid,
  .values-grid,
  .footer-grid,
  .detail-panel,
  .form-row.split,
  .process-list {
    grid-template-columns: 1fr;
  }

  .section {
    padding: 72px 0;
  }

  .page-hero {
    padding: 62px 0;
  }

  .trust-grid {
    padding-bottom: 58px;
  }

  .section-heading {
    text-align: left;
  }

  .service-card,
  .challenge-grid article,
  .values-grid article,
  .stat-card {
    min-height: auto;
  }

  .hero-console {
    max-width: none;
  }

  .console-row {
    grid-template-columns: 1fr;
    gap: 4px;
  }

  .process-list {
    gap: 26px;
  }

  .process-list article {
    padding-right: 0;
  }

  .process-list span::before {
    width: 52px;
    height: 52px;
    margin-bottom: 16px;
  }

  .browser-frame {
    max-width: 520px;
  }

  .mock-grid {
    grid-template-columns: 1fr;
  }

  .mock-grid span {
    height: 50px;
  }

  .contact-form {
    padding: 20px;
  }

  .contact-method-card,
  .scope-card,
  .next-step-panel {
    padding: 20px;
  }

  .cta-card {
    text-align: left;
    justify-items: stretch;
  }

  .section-soft:has(.tag-list) .two-column {
    text-align: left;
  }

  .section-soft:has(.tag-list) .tag-list {
    justify-content: flex-start;
  }

  .footer-bottom {
    align-items: flex-start;
    flex-direction: column;
  }
}

@media (max-width: 420px) {
  .brand-logo {
    width: 108px;
  }

  .footer-brand .brand-logo {
    width: min(128px, 100%);
  }

  .console-body,
  .service-card,
  .challenge-grid article,
  .values-grid article,
  .detail-panel,
  .stat-card {
    padding: 20px;
  }

  .challenge-grid article,
  .values-grid article {
    padding-top: 46px;
  }
}

@media (max-width: 1080px) {
  body[data-page="home"] .service-grid {
    grid-template-columns: repeat(2, 1fr);
  }
}

@media (max-width: 760px) {
  body[data-page="home"] .service-grid {
    grid-template-columns: 1fr;
  }
}
