:root {
  color-scheme: light;
  --bg: #f6f8fb;
  --surface: #ffffff;
  --surface-2: #eaf1f7;
  --text: #0b1724;
  --muted: #526172;
  --line: #cbd6e2;
  --accent: #0868bd;
  --accent-strong: #064f91;
  --accent-soft: #dceeff;
  --green: #137a55;
  --warm: #a65308;
  --danger: #b42318;
  --success: #067647;
  --radius: 8px;
  --radius-sm: 6px;
  --shadow: 0 18px 48px rgba(16, 40, 68, 0.12);
  --shell: min(1180px, calc(100% - 40px));
  --header-height: 72px;
}

:root[data-theme="dark"] {
  color-scheme: dark;
  --bg: #08131f;
  --surface: #101e2d;
  --surface-2: #17283a;
  --text: #f2f7fb;
  --muted: #b3c1cf;
  --line: #34485d;
  --accent: #4aa8f8;
  --accent-strong: #77c0ff;
  --accent-soft: #173d5f;
  --green: #54c69a;
  --warm: #f2ae62;
  --danger: #ff8a80;
  --success: #6ce9a6;
  --shadow: 0 20px 50px rgba(0, 0, 0, 0.32);
}

* { box-sizing: border-box; }

html { scroll-behavior: smooth; }

body {
  margin: 0;
  background: var(--bg);
  color: var(--text);
  font-family: Inter, "Segoe UI", Roboto, Helvetica, Arial, sans-serif;
  font-size: 16px;
  line-height: 1.6;
  text-rendering: optimizeLegibility;
}

body.nav-open { overflow: hidden; }

a { color: inherit; text-decoration: none; }
img { display: block; max-width: 100%; height: auto; }
button, input, select, textarea { font: inherit; }
button { color: inherit; }

a:focus-visible,
button:focus-visible,
input:focus-visible,
select:focus-visible,
textarea:focus-visible {
  outline: 3px solid color-mix(in srgb, var(--accent) 55%, transparent);
  outline-offset: 3px;
}

.shell { width: var(--shell); margin-inline: auto; }
.muted { color: var(--muted); }
.eyebrow {
  margin: 0 0 14px;
  color: var(--accent-strong);
  font-size: 0.78rem;
  font-weight: 800;
  letter-spacing: 0;
  text-transform: uppercase;
}

.skip-link {
  position: fixed;
  z-index: 100;
  top: 12px;
  left: 12px;
  padding: 10px 14px;
  background: var(--text);
  color: var(--bg);
  border-radius: var(--radius-sm);
  transform: translateY(-140%);
}

.skip-link:focus { transform: translateY(0); }

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

.site-header {
  position: sticky;
  z-index: 40;
  top: 0;
  min-height: var(--header-height);
  background: color-mix(in srgb, var(--bg) 92%, transparent);
  border-bottom: 1px solid var(--line);
  backdrop-filter: blur(16px);
}

.nav-shell {
  min-height: var(--header-height);
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 24px;
}

.brand {
  min-height: 48px;
  display: inline-flex;
  align-items: center;
  flex: 0 0 auto;
}

.brand img { width: 214px; }
.brand .logo-dark { display: none; }
:root[data-theme="dark"] .brand .logo-light { display: none; }
:root[data-theme="dark"] .brand .logo-dark { display: block; }

.site-menu {
  display: flex;
  align-items: center;
  gap: 6px;
}

.site-menu > a {
  min-height: 44px;
  display: inline-flex;
  align-items: center;
  padding: 0 12px;
  color: var(--muted);
  font-size: 0.92rem;
  font-weight: 700;
  border-radius: var(--radius-sm);
}

.site-menu > a:hover,
.site-menu > a[aria-current="page"] { color: var(--text); background: var(--surface-2); }

.nav-actions { display: flex; align-items: center; gap: 10px; margin-left: 8px; }

.language-switch {
  min-height: 44px;
  display: inline-flex;
  align-items: center;
  padding: 3px;
  background: var(--surface);
  border: 1px solid var(--line);
  border-radius: var(--radius-sm);
}

.language-switch a {
  min-width: 42px;
  min-height: 36px;
  display: grid;
  place-items: center;
  color: var(--muted);
  font-size: 0.82rem;
  font-weight: 800;
  border-radius: 4px;
}

.language-switch a[aria-current="page"] { background: var(--text); color: var(--bg); }

.theme-toggle {
  min-height: 44px;
  display: inline-flex;
  align-items: center;
  gap: 8px;
  padding: 0 10px;
  background: var(--surface);
  border: 1px solid var(--line);
  border-radius: var(--radius-sm);
  cursor: pointer;
}

.theme-track {
  width: 32px;
  height: 18px;
  display: block;
  padding: 2px;
  background: var(--line);
  border-radius: 999px;
}

.theme-thumb {
  width: 14px;
  height: 14px;
  display: block;
  background: var(--text);
  border-radius: 50%;
  transition: transform 180ms ease;
}

.theme-toggle[aria-checked="true"] .theme-thumb { transform: translateX(14px); }
.theme-label { color: var(--muted); font-size: 0.82rem; font-weight: 800; }

.nav-toggle {
  width: 46px;
  height: 46px;
  display: none;
  place-items: center;
  padding: 0;
  background: var(--surface);
  border: 1px solid var(--line);
  border-radius: var(--radius-sm);
  cursor: pointer;
}

.nav-toggle-lines,
.nav-toggle-lines::before,
.nav-toggle-lines::after {
  width: 19px;
  height: 2px;
  display: block;
  position: relative;
  background: var(--text);
  border-radius: 2px;
  transition: transform 180ms ease, opacity 180ms ease;
}

.nav-toggle-lines::before,
.nav-toggle-lines::after { content: ""; position: absolute; left: 0; }
.nav-toggle-lines::before { top: -6px; }
.nav-toggle-lines::after { top: 6px; }
.site-header.is-open .nav-toggle-lines { background: transparent; }
.site-header.is-open .nav-toggle-lines::before { top: 0; transform: rotate(45deg); }
.site-header.is-open .nav-toggle-lines::after { top: 0; transform: rotate(-45deg); }

.hero {
  min-height: min(680px, calc(100svh - 120px));
  position: relative;
  isolation: isolate;
  display: grid;
  align-items: end;
  overflow: hidden;
  background: #08131f;
}

.hero-visual { position: absolute; z-index: -2; inset: 0; margin: 0; }
.hero-visual img { width: 100%; height: 100%; object-fit: cover; object-position: 58% center; }
.hero::after {
  content: "";
  position: absolute;
  z-index: -1;
  inset: 0;
  background: linear-gradient(90deg, rgba(3, 12, 22, 0.92) 0%, rgba(3, 12, 22, 0.78) 45%, rgba(3, 12, 22, 0.2) 100%);
}

.hero-content { max-width: 800px; padding: 88px 0 96px; color: #fff; }
.hero .eyebrow { color: #89d2ff; }
.hero h1 {
  max-width: 780px;
  margin: 0;
  font-size: clamp(2.65rem, 5.4vw, 5rem);
  line-height: 0.98;
  letter-spacing: 0;
}
.hero-lead { max-width: 680px; margin: 24px 0 0; color: #d5e0e9; font-size: clamp(1.05rem, 1.8vw, 1.22rem); }
.hero-actions { display: flex; flex-wrap: wrap; gap: 12px; margin-top: 30px; }

.btn {
  min-height: 48px;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 9px;
  padding: 0 20px;
  border: 1px solid transparent;
  border-radius: var(--radius-sm);
  font-weight: 800;
  cursor: pointer;
  transition: background 160ms ease, border-color 160ms ease, transform 160ms ease;
}
.btn:hover { transform: translateY(-1px); }
.btn:active { transform: translateY(0); }
.btn.primary { background: var(--accent); color: #fff; }
.btn.primary:hover { background: var(--accent-strong); }
:root[data-theme="dark"] .btn.primary { background: #1677c8; color: #fff; }
:root[data-theme="dark"] .btn.primary:hover { background: #0e64aa; }
.btn.secondary { background: var(--surface); border-color: var(--line); color: var(--text); }
.hero .btn.secondary { background: rgba(255, 255, 255, 0.1); border-color: rgba(255, 255, 255, 0.42); color: #fff; }
.btn.full { width: 100%; }
.btn:disabled { cursor: wait; opacity: 0.7; transform: none; }

.credibility { background: var(--surface); border-bottom: 1px solid var(--line); }
.credibility-grid { display: grid; grid-template-columns: repeat(4, 1fr); }
.credibility-item { min-height: 92px; padding: 20px 24px; border-right: 1px solid var(--line); }
.credibility-item:last-child { border-right: 0; }
.credibility-item strong { display: block; font-size: 0.94rem; }
.credibility-item span { display: block; margin-top: 3px; color: var(--muted); font-size: 0.84rem; }

.section { padding: 92px 0; }
.section.alt { background: var(--surface-2); border-block: 1px solid var(--line); }
.section.dark { background: #07121e; color: #f2f7fb; }
.section-head { max-width: 720px; margin-bottom: 38px; }
.section-head.split { max-width: none; display: grid; grid-template-columns: 0.85fr 1.15fr; gap: 64px; align-items: end; }
.section-head h2,
.service-content h2,
.contact-copy h2 {
  margin: 0;
  font-size: clamp(2rem, 4vw, 3.55rem);
  line-height: 1.03;
  letter-spacing: 0;
}
.section-head p { margin: 0; color: var(--muted); font-size: 1.05rem; }
.section-head:not(.split) p { margin-top: 16px; }

.services-grid { display: grid; grid-template-columns: repeat(3, 1fr); gap: 16px; }
.service-card {
  min-height: 270px;
  display: flex;
  flex-direction: column;
  padding: 26px;
  background: var(--surface);
  border: 1px solid var(--line);
  border-radius: var(--radius);
}
.service-card:nth-child(1), .service-card:nth-child(2) { grid-column: span 1; }
.service-number { color: var(--accent-strong); font-size: 0.82rem; font-weight: 900; }
.service-card h3 { margin: 28px 0 10px; font-size: 1.42rem; line-height: 1.15; }
.service-card p { margin: 0; color: var(--muted); }
.service-link { margin-top: auto; padding-top: 24px; color: var(--accent-strong); font-weight: 800; }
.service-card:hover { border-color: var(--accent); box-shadow: var(--shadow); transform: translateY(-2px); }

.evidence-grid { display: grid; grid-template-columns: 1fr 1fr; gap: 64px; align-items: center; }
.evidence-media { margin: 0; }
.evidence-media img { width: 100%; aspect-ratio: 4 / 3; object-fit: cover; border-radius: var(--radius); }
.evidence-media figcaption { margin-top: 10px; color: var(--muted); font-size: 0.82rem; }
.proof-list { margin-top: 28px; border-top: 1px solid var(--line); }
.proof-item { display: grid; grid-template-columns: 30px 1fr; gap: 14px; padding: 20px 0; border-bottom: 1px solid var(--line); }
.proof-item b { color: var(--accent-strong); }
.proof-item strong { display: block; }
.proof-item p { margin: 4px 0 0; color: var(--muted); }

.sector-list { display: flex; flex-wrap: wrap; gap: 10px; }
.sector-list span { padding: 10px 14px; background: var(--surface); border: 1px solid var(--line); border-radius: var(--radius-sm); font-weight: 700; }

.process-list { display: grid; grid-template-columns: repeat(4, 1fr); border-top: 1px solid var(--line); }
.process-step { padding: 26px 24px 8px 0; border-right: 1px solid var(--line); }
.process-step + .process-step { padding-left: 24px; }
.process-step:last-child { border-right: 0; }
.process-step span { color: var(--accent-strong); font-size: 0.82rem; font-weight: 900; }
.process-step h3 { margin: 22px 0 8px; font-size: 1.22rem; }
.process-step p { margin: 0; color: var(--muted); }

.contact-layout { display: grid; grid-template-columns: 0.85fr 1.15fr; gap: 64px; align-items: start; }
.contact-copy { padding-top: 10px; }
.contact-copy > p { margin: 18px 0 0; color: #b9c8d6; }
.contact-options { margin-top: 30px; border-top: 1px solid #32465b; }
.contact-option { min-height: 76px; display: grid; grid-template-columns: 1fr auto; align-items: center; gap: 18px; border-bottom: 1px solid #32465b; }
.contact-option strong { display: block; }
.contact-option span { color: #b9c8d6; }
.contact-option .action-label { color: #8ed4ff; font-weight: 800; }

.contact-form {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 16px;
  padding: 28px;
  background: var(--surface);
  color: var(--text);
  border: 1px solid var(--line);
  border-radius: var(--radius);
}
.contact-form label { display: grid; gap: 7px; font-weight: 750; }
.contact-form label > span { font-size: 0.88rem; }
.contact-form input,
.contact-form select,
.contact-form textarea {
  width: 100%;
  min-height: 50px;
  padding: 11px 12px;
  background: var(--bg);
  color: var(--text);
  border: 2px solid var(--line);
  border-radius: var(--radius-sm);
}
.contact-form textarea { min-height: 140px; resize: vertical; }
.contact-form .full,
.contact-form .form-note,
.contact-form .consent { grid-column: 1 / -1; }
.contact-form .consent { display: grid; grid-template-columns: 20px 1fr; gap: 10px; align-items: start; font-weight: 500; }
.contact-form .consent input { width: 20px; min-height: 20px; margin: 2px 0 0; }
.contact-form .consent a { color: var(--accent-strong); text-decoration: underline; }
.form-note { min-height: 24px; margin: 0; color: var(--muted); font-size: 0.9rem; }
.form-note.is-success { color: var(--success); font-weight: 700; }
.form-note.is-error { color: var(--danger); font-weight: 700; }
.hp-field { position: absolute !important; left: -10000px !important; opacity: 0 !important; pointer-events: none !important; }

.service-hero {
  position: relative;
  isolation: isolate;
  min-height: 520px;
  display: grid;
  align-items: end;
  overflow: hidden;
  background: #08131f;
  color: #fff;
}
.service-hero img { position: absolute; z-index: -2; inset: 0; width: 100%; height: 100%; object-fit: cover; }
.service-hero::after { content: ""; position: absolute; z-index: -1; inset: 0; background: rgba(3, 12, 22, 0.76); }
.service-hero-content { max-width: 800px; padding: 82px 0 76px; }
.service-hero .eyebrow { color: #89d2ff; }
.service-hero h1 { margin: 0; font-size: clamp(2.55rem, 5vw, 4.8rem); line-height: 1; letter-spacing: 0; }
.service-hero p { max-width: 700px; margin: 22px 0 0; color: #d5e0e9; font-size: 1.14rem; }
.service-content-grid { display: grid; grid-template-columns: 0.8fr 1.2fr; gap: 72px; align-items: start; }
.service-content h2 { font-size: clamp(1.9rem, 3.3vw, 3rem); }
.service-content > p { color: var(--muted); }
.deliverables { margin: 0; padding: 0; list-style: none; border-top: 1px solid var(--line); }
.deliverables li { padding: 16px 0 16px 28px; position: relative; border-bottom: 1px solid var(--line); }
.deliverables li::before { content: ""; width: 10px; height: 10px; position: absolute; left: 0; top: 23px; background: var(--green); border-radius: 50%; }
.faq { margin-top: 36px; }
.faq details { border-top: 1px solid var(--line); }
.faq details:last-child { border-bottom: 1px solid var(--line); }
.faq summary { min-height: 58px; display: flex; align-items: center; justify-content: space-between; gap: 20px; cursor: pointer; font-weight: 800; }
.faq p { margin: 0 0 20px; color: var(--muted); }

.service-cta { display: grid; grid-template-columns: 1fr auto; gap: 48px; align-items: center; }
.service-cta h2 { max-width: 760px; margin: 0; font-size: clamp(2rem, 4vw, 3.55rem); line-height: 1.03; letter-spacing: 0; }
.service-cta p { max-width: 700px; margin: 16px 0 0; color: #b9c8d6; }
.service-cta .hero-actions { margin-top: 0; justify-content: flex-end; }

.privacy-copy { max-width: 820px; }
.privacy-copy h1 { margin: 0; font-size: clamp(2.5rem, 5vw, 4.6rem); line-height: 1; }
.privacy-copy h2 { margin: 42px 0 10px; font-size: 1.5rem; }
.privacy-copy p, .privacy-copy li { color: var(--muted); }
.privacy-copy a { color: var(--accent-strong); text-decoration: underline; text-underline-offset: 3px; }
.privacy-copy ul { padding-left: 22px; }
.privacy-copy li + li { margin-top: 8px; }
.privacy-meta { margin: 18px 0 0; color: var(--muted); font-size: 0.92rem; }
.privacy-summary { margin: 34px 0 0; padding: 22px 24px; background: var(--surface); border: 1px solid var(--line); border-left: 4px solid var(--accent); border-radius: var(--radius-sm); }
.privacy-summary p { margin: 0; }

.site-footer { padding: 58px 0 96px; background: #040d16; color: #eef5fb; }
.footer-grid { display: grid; grid-template-columns: 1.2fr 0.8fr 0.8fr; gap: 54px; }
.site-footer .brand { margin-bottom: 14px; }
.site-footer p { max-width: 460px; margin: 0; color: #aebdca; }
.footer-column strong { display: block; margin-bottom: 12px; }
.footer-column a, .footer-column span { min-height: 34px; display: flex; align-items: center; color: #b9c8d6; }
.footer-column a:hover { color: #fff; }
.footer-bottom { display: flex; justify-content: space-between; gap: 24px; margin-top: 42px; padding-top: 22px; border-top: 1px solid #26394c; color: #91a4b5; font-size: 0.86rem; }
.footer-bottom a { text-decoration: underline; }

.mobile-contact-bar { display: none; }

@media (max-width: 980px) {
  :root { --shell: min(100% - 32px, 760px); }
  .nav-toggle { display: grid; }
  .site-menu {
    position: fixed;
    z-index: 50;
    top: calc(var(--header-height) + 8px);
    right: 16px;
    left: 16px;
    max-height: calc(100svh - var(--header-height) - 24px);
    display: none;
    align-items: stretch;
    flex-direction: column;
    padding: 14px;
    overflow-y: auto;
    background: var(--surface);
    border: 1px solid var(--line);
    border-radius: var(--radius);
    box-shadow: var(--shadow);
  }
  .site-header.is-open .site-menu { display: flex; }
  .site-menu > a { width: 100%; min-height: 48px; }
  .nav-actions { justify-content: space-between; margin: 8px 0 0; padding-top: 12px; border-top: 1px solid var(--line); }
  .theme-toggle { min-height: 46px; }
  .section-head.split, .evidence-grid, .contact-layout, .service-content-grid { grid-template-columns: 1fr; gap: 38px; }
  .service-cta { grid-template-columns: 1fr; gap: 28px; }
  .service-cta .hero-actions { justify-content: flex-start; }
  .services-grid { grid-template-columns: 1fr 1fr; }
  .process-list { grid-template-columns: 1fr 1fr; }
  .process-step:nth-child(2) { border-right: 0; }
  .process-step:nth-child(n+3) { margin-top: 24px; border-top: 1px solid var(--line); }
  .contact-copy { max-width: 700px; }
}

@media (max-width: 680px) {
  :root { --shell: calc(100% - 32px); }
  .brand img { width: 180px; }
  .hero { min-height: min(700px, calc(100svh - 104px)); }
  .hero::after { background: rgba(3, 12, 22, 0.72); }
  .hero-visual img { object-position: 62% center; }
  .hero-content { padding: 62px 0 72px; }
  .hero h1 { font-size: clamp(2.55rem, 13vw, 4.15rem); }
  .hero-actions .btn { width: 100%; }
  .service-cta .hero-actions { width: 100%; }
  .credibility-grid { grid-template-columns: 1fr 1fr; }
  .credibility-item { min-height: 104px; padding: 18px 16px; border-bottom: 1px solid var(--line); }
  .credibility-item:nth-child(2) { border-right: 0; }
  .credibility-item:nth-child(n+3) { border-bottom: 0; }
  .section { padding: 68px 0; }
  .section-head { margin-bottom: 28px; }
  .services-grid, .process-list, .contact-form, .footer-grid { grid-template-columns: 1fr; }
  .service-card { min-height: 230px; }
  .process-step, .process-step + .process-step { padding: 22px 0; border-right: 0; border-top: 1px solid var(--line); }
  .process-step:first-child { border-top: 0; }
  .process-step:nth-child(n+3) { margin-top: 0; }
  .contact-form { padding: 20px; }
  .contact-option { grid-template-columns: 1fr; gap: 2px; padding: 16px 0; }
  .service-hero { min-height: 480px; }
  .service-hero-content { padding: 68px 0 62px; }
  .footer-bottom { flex-direction: column; }
  .site-footer { padding-bottom: 120px; }
  .mobile-contact-bar {
    position: fixed;
    z-index: 35;
    right: 0;
    bottom: 0;
    left: 0;
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 8px;
    padding: 10px 16px calc(10px + env(safe-area-inset-bottom));
    background: color-mix(in srgb, var(--bg) 94%, transparent);
    border-top: 1px solid var(--line);
    backdrop-filter: blur(16px);
  }
  .mobile-contact-bar a { min-height: 46px; display: grid; place-items: center; border-radius: var(--radius-sm); font-weight: 850; }
  .mobile-contact-bar a:first-child { background: var(--green); color: #fff; }
  .mobile-contact-bar a:last-child { background: var(--accent); color: #fff; }
}

@media (max-width: 380px) {
  .brand img { width: 160px; }
  .credibility-grid { grid-template-columns: 1fr; }
  .credibility-item { min-height: 82px; border-right: 0; border-bottom: 1px solid var(--line) !important; }
  .credibility-item:last-child { border-bottom: 0 !important; }
}

@media (prefers-reduced-motion: reduce) {
  html { scroll-behavior: auto; }
  *, *::before, *::after { transition-duration: 0.01ms !important; animation-duration: 0.01ms !important; animation-iteration-count: 1 !important; }
}
