:root {
  --ink: #0f1114;
  --night: #17191d;
  --panel: #1d2025;
  --line: #30343a;
  --paper: #f7f7f5;
  --muted: #aeb8c8;
  --red: #d12b35;
  --red-dark: #a91922;
  --green: #65bf85;
  --max: 1180px;
}

* { box-sizing: border-box; }
html { scroll-behavior: smooth; }
body {
  margin: 0;
  color: var(--paper);
  background: var(--night);
  font-family: Inter, ui-sans-serif, system-ui, -apple-system, BlinkMacSystemFont, "Segoe UI", sans-serif;
  line-height: 1.6;
}
a { color: inherit; }
img { display: block; max-width: 100%; }
.skip-link { position: fixed; top: -80px; left: 16px; z-index: 99; padding: 12px 18px; background: var(--paper); color: var(--ink); }
.skip-link:focus { top: 16px; }
.container { width: min(calc(100% - 40px), var(--max)); margin-inline: auto; }
.site-header {
  position: sticky; top: 0; z-index: 20;
  background: rgba(23, 25, 29, .94); border-bottom: 1px solid var(--line);
  backdrop-filter: blur(14px); padding-top: env(safe-area-inset-top);
}
.nav { min-height: 76px; display: flex; align-items: center; justify-content: space-between; gap: 24px; }
.brand { display: inline-flex; align-items: center; gap: 12px; text-decoration: none; font-size: 19px; font-weight: 800; letter-spacing: -.02em; }
.brand img { width: 40px; height: 40px; }
.brand small { display: block; color: var(--muted); font-size: 9px; letter-spacing: .22em; text-transform: uppercase; }
.nav-links { display: flex; align-items: center; gap: 6px; }
.nav-links a { min-height: 44px; display: inline-flex; align-items: center; padding: 0 14px; color: #d6dce5; text-decoration: none; font-size: 14px; font-weight: 700; border-radius: 8px; }
.nav-links a:hover, .nav-links a:focus-visible { color: #fff; background: var(--panel); }
.nav-links .nav-cta { margin-left: 8px; color: #fff; background: var(--red); }
.nav-links .nav-cta:hover, .nav-links .nav-cta:focus-visible { background: var(--red-dark); }
.menu-button { display: none; width: 46px; height: 46px; border: 1px solid var(--line); border-radius: 8px; color: #fff; background: var(--panel); }
.menu-button svg { width: 22px; }
.hero { position: relative; min-height: 690px; display: grid; align-items: center; overflow: hidden; border-bottom: 1px solid var(--line); }
.hero::before, .hero::after { content: ""; position: absolute; border: 1px solid #2a2e34; border-radius: 50%; pointer-events: none; }
.hero::before { width: 560px; height: 560px; right: -180px; bottom: -310px; }
.hero::after { width: 420px; height: 420px; right: -110px; bottom: -260px; }
.hero-grid { display: grid; grid-template-columns: 1.15fr .85fr; gap: clamp(44px, 8vw, 110px); align-items: center; padding-block: 100px; }
.eyebrow { display: flex; align-items: center; gap: 12px; color: #c6cfdd; font-size: 12px; font-weight: 800; letter-spacing: .17em; text-transform: uppercase; }
.eyebrow::before { content: ""; width: 24px; height: 3px; background: var(--red); }
h1, h2, h3, p { margin-top: 0; }
h1 { max-width: 760px; margin: 22px 0; font-size: clamp(54px, 8vw, 108px); line-height: .88; letter-spacing: -.075em; text-transform: uppercase; }
.hero-copy { max-width: 650px; color: #bec7d4; font-size: clamp(17px, 2vw, 20px); }
.actions { display: flex; flex-wrap: wrap; gap: 12px; margin-top: 34px; }
.button { min-height: 50px; display: inline-flex; align-items: center; justify-content: center; gap: 10px; padding: 0 22px; border: 1px solid var(--line); border-radius: 8px; color: #fff; background: var(--panel); text-decoration: none; font-size: 13px; font-weight: 900; letter-spacing: .06em; text-transform: uppercase; }
.button.primary { border-color: var(--red); background: var(--red); }
.button:hover, .button:focus-visible { border-color: #68707c; }
.button.primary:hover, .button.primary:focus-visible { border-color: var(--red-dark); background: var(--red-dark); }
.hero-card { position: relative; z-index: 1; padding: 38px; border: 1px solid var(--line); border-radius: 12px; background: linear-gradient(145deg, #20242a, #181a1e); box-shadow: 0 28px 70px rgba(0,0,0,.26); }
.hero-card img { width: 78px; margin-bottom: 36px; }
.status { display: inline-flex; align-items: center; gap: 9px; margin-bottom: 14px; color: #c9d2df; font-size: 11px; font-weight: 800; letter-spacing: .15em; text-transform: uppercase; }
.status::before { content: ""; width: 8px; height: 8px; border-radius: 50%; background: var(--green); box-shadow: 0 0 0 5px rgba(101,191,133,.12); }
.hero-card h2 { margin-bottom: 12px; font-size: 31px; line-height: 1.08; }
.hero-card p { color: var(--muted); }
.stat-row { display: grid; grid-template-columns: repeat(3, 1fr); margin-top: 30px; border-top: 1px solid var(--line); }
.stat { padding: 20px 12px 0 0; color: var(--muted); font-size: 12px; }
.stat strong { display: block; color: var(--paper); font-size: 15px; }
.section { padding-block: clamp(72px, 10vw, 120px); }
.section.alt { background: var(--paper); color: var(--ink); }
.section-head { max-width: 720px; margin-bottom: 48px; }
.section-kicker { color: var(--red); font-size: 12px; font-weight: 900; letter-spacing: .17em; text-transform: uppercase; }
.section h2 { margin: 12px 0 16px; font-size: clamp(36px, 5vw, 64px); line-height: .98; letter-spacing: -.05em; }
.section-head p { color: var(--muted); font-size: 18px; }
.alt .section-head p { color: #5d6470; }
.service-grid { display: grid; grid-template-columns: repeat(3, 1fr); gap: 18px; }
.service-card { min-height: 310px; display: flex; flex-direction: column; padding: 28px; border: 1px solid #d9dadd; border-radius: 10px; background: #fff; }
.service-number { color: var(--red); font-size: 12px; font-weight: 900; letter-spacing: .18em; }
.service-card h3 { margin: auto 0 12px; font-size: 27px; line-height: 1.05; letter-spacing: -.035em; }
.service-card p { color: #5d6470; }
.text-link { display: inline-flex; min-height: 44px; align-items: center; color: var(--red-dark); font-weight: 800; text-decoration: none; }
.process { display: grid; grid-template-columns: repeat(3, 1fr); border: 1px solid var(--line); border-radius: 10px; overflow: hidden; }
.process article { padding: 32px; border-right: 1px solid var(--line); }
.process article:last-child { border-right: 0; }
.process span { color: var(--red); font-weight: 900; }
.process h3 { margin: 52px 0 10px; font-size: 22px; }
.process p { margin: 0; color: var(--muted); }
.support { display: grid; grid-template-columns: 1fr auto; align-items: center; gap: 40px; padding: 44px; border-left: 4px solid var(--red); background: var(--panel); }
.support h2 { margin-bottom: 10px; }
.support p { margin: 0; color: var(--muted); }
.site-footer { padding: 50px 0 28px; border-top: 1px solid var(--line); background: var(--ink); }
.footer-grid { display: grid; grid-template-columns: 1.5fr 1fr 1fr; gap: 50px; }
.footer-brand p { max-width: 390px; margin-top: 18px; color: var(--muted); font-size: 14px; }
.footer-title { margin-bottom: 14px; color: #fff; font-size: 12px; font-weight: 900; letter-spacing: .14em; text-transform: uppercase; }
.footer-links { display: grid; gap: 4px; }
.footer-links a { min-height: 44px; display: flex; align-items: center; color: var(--muted); text-decoration: none; }
.footer-links a:hover, .footer-links a:focus-visible { color: #fff; }
.footer-bottom { display: flex; justify-content: space-between; gap: 20px; margin-top: 48px; padding-top: 22px; border-top: 1px solid var(--line); color: #7f8998; font-size: 12px; }
.error-page { min-height: 100vh; display: grid; place-items: center; overflow: hidden; }
.error-wrap { width: min(calc(100% - 40px), 1040px); display: grid; grid-template-columns: .8fr 1.2fr; align-items: center; gap: clamp(40px, 8vw, 100px); padding-block: 60px; }
.error-code { color: transparent; font-size: clamp(150px, 26vw, 330px); font-weight: 950; line-height: .75; letter-spacing: -.12em; -webkit-text-stroke: 2px #343840; }
.error-content .brand { margin-bottom: 60px; }
.error-content h1 { margin: 12px 0 20px; font-size: clamp(48px, 7vw, 88px); }
.error-content p { max-width: 540px; color: var(--muted); font-size: 18px; }
:focus-visible { outline: 3px solid #fff; outline-offset: 3px; }

@media (max-width: 820px) {
  .menu-button { display: grid; place-items: center; }
  .nav-links { position: absolute; top: calc(100% + 1px); left: 0; right: 0; display: none; padding: 14px 20px 22px; border-bottom: 1px solid var(--line); background: var(--night); }
  .nav-links.open { display: grid; }
  .nav-links a { padding-inline: 8px; }
  .nav-links .nav-cta { margin: 8px 0 0; justify-content: center; }
  .hero { min-height: auto; }
  .hero-grid { grid-template-columns: 1fr; padding-block: 70px; }
  .hero-card { max-width: 580px; }
  .service-grid, .process { grid-template-columns: 1fr; }
  .process article { border-right: 0; border-bottom: 1px solid var(--line); }
  .process article:last-child { border-bottom: 0; }
  .process h3 { margin-top: 28px; }
  .support { grid-template-columns: 1fr; padding: 30px; }
  .footer-grid { grid-template-columns: 1fr 1fr; }
  .footer-brand { grid-column: 1 / -1; }
  .error-wrap { grid-template-columns: 1fr; }
  .error-code { order: 2; }
}

@media (max-width: 520px) {
  .container { width: min(calc(100% - 28px), var(--max)); }
  .brand { font-size: 16px; }
  .brand img { width: 36px; height: 36px; }
  h1 { font-size: clamp(50px, 18vw, 74px); }
  .hero-grid { padding-block: 54px 70px; }
  .hero-card { padding: 26px; }
  .stat-row { grid-template-columns: 1fr; }
  .stat { padding-top: 14px; }
  .actions, .actions .button { width: 100%; }
  .footer-grid { grid-template-columns: 1fr; gap: 30px; }
  .footer-brand { grid-column: auto; }
  .footer-bottom { flex-direction: column; }
  .error-content .brand { margin-bottom: 44px; }
}

@media (prefers-reduced-motion: reduce) { html { scroll-behavior: auto; } }
