@font-face {
  font-family: "Space Grotesk";
  src: url("space-grotesk.woff") format("woff");
  font-weight: 300 700;
  font-display: swap;
}

:root {
  --ink: #101826;
  --paper: #F6F7F9;
  --white: #FFFFFF;
  --accent: #2F6BFF;
  --accent-dark: #1F52D6;
  --accent-soft: #A1BCFF;
  --muted: #535C6B;
  --line: #DCE1E8;
  --night: #0D1522;
  --night-muted: #A9B4C4;
  --wrap: 1180px;
  --gutter: clamp(20px, 5vw, 48px);
}

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

html { scroll-behavior: smooth; -webkit-text-size-adjust: 100%; }
@media (prefers-reduced-motion: reduce) { html { scroll-behavior: auto; } }

body {
  margin: 0;
  background: var(--white);
  color: var(--ink);
  font-family: "Space Grotesk", system-ui, sans-serif;
  font-size: 1.0625rem;
  line-height: 1.6;
  -webkit-font-smoothing: antialiased;
}

img, svg { display: block; max-width: 100%; }
a { color: var(--accent-dark); text-underline-offset: 3px; }
a:hover { color: var(--ink); }
:focus-visible { outline: 3px solid var(--accent); outline-offset: 3px; border-radius: 4px; }

.wrap { max-width: var(--wrap); margin: 0 auto; padding: 0 var(--gutter); }

.skip {
  position: absolute; left: 12px; top: -60px; z-index: 10;
  background: var(--ink); color: var(--white); padding: 10px 16px; border-radius: 8px;
}
.skip:focus { top: 12px; }

/* ---------- header ---------- */
.site-header { position: sticky; top: 0; z-index: 5; background: rgba(255, 255, 255, 0.94); border-bottom: 1px solid var(--line); }
@supports (backdrop-filter: blur(8px)) {
  .site-header { background: rgba(255, 255, 255, 0.82); backdrop-filter: blur(8px); }
}
.site-header .wrap { display: flex; align-items: center; justify-content: space-between; gap: 24px; min-height: 72px; }
.brand { display: flex; align-items: center; gap: 12px; color: var(--ink); text-decoration: none; }
.brand svg { width: 36px; height: 36px; }
.brand span { font-size: 1.375rem; font-weight: 600; letter-spacing: 0.04em; }
.site-nav { display: flex; align-items: center; gap: 28px; }
.site-nav a:not(.btn) { color: var(--ink); text-decoration: none; font-weight: 500; }
.site-nav a:not(.btn):hover { color: var(--accent-dark); }

.btn {
  display: inline-flex; align-items: center; justify-content: center; min-height: 48px;
  padding: 0 22px; border-radius: 10px; font-weight: 600; text-decoration: none;
  background: var(--accent); color: var(--white); border: 2px solid var(--accent);
  transition: background-color 0.15s, border-color 0.15s;
}
.btn:hover { background: var(--accent-dark); border-color: var(--accent-dark); color: var(--white); }
.btn-ghost { background: transparent; color: var(--ink); border-color: var(--line); }
.btn-ghost:hover { background: transparent; border-color: var(--ink); color: var(--ink); }
.site-nav .btn { min-height: 44px; padding: 0 18px; white-space: nowrap; }
@media (max-width: 400px) { .brand span { font-size: 1.125rem; } .site-nav .btn { padding: 0 14px; } }

@media (max-width: 760px) {
  .site-nav a:not(.btn) { display: none; }
}

/* ---------- hero ---------- */
.hero { background: var(--paper); border-bottom: 1px solid var(--line); overflow: hidden; }
.hero .wrap {
  display: grid; grid-template-columns: minmax(0, 7fr) minmax(0, 5fr); align-items: center;
  gap: clamp(32px, 6vw, 80px); padding-top: clamp(56px, 9vw, 120px); padding-bottom: clamp(56px, 9vw, 120px);
}
.hero h1 {
  margin: 0 0 24px; font-size: clamp(2.5rem, 6vw, 4.5rem); line-height: 1.04;
  font-weight: 600; letter-spacing: -0.02em; max-width: 13ch;
}
.hero p { margin: 0 0 36px; font-size: clamp(1.125rem, 1.8vw, 1.3125rem); color: var(--muted); max-width: 34em; }
.actions { display: flex; flex-wrap: wrap; gap: 12px; }

.globe { width: 100%; max-width: 440px; justify-self: end; }
.globe .analog { fill: none; stroke: var(--ink); stroke-opacity: 0.4; stroke-width: 1.6; stroke-linecap: round; }
.globe .rim { fill: none; stroke: var(--ink); stroke-width: 3; }
.globe .px { fill: var(--accent); }
.globe .px.soft { fill: var(--accent-soft); }

@media (prefers-reduced-motion: no-preference) {
  .globe .analog { stroke-dasharray: 120; stroke-dashoffset: 120; animation: draw 0.9s ease-out forwards; }
  .globe .px { opacity: 0; transform-box: fill-box; transform-origin: center; animation: pop 0.35s ease-out forwards; animation-delay: calc(0.7s + var(--i) * 0.06s); }
}
@keyframes draw { to { stroke-dashoffset: 0; } }
@keyframes pop { from { opacity: 0; transform: scale(0.4); } to { opacity: 1; transform: scale(1); } }

@media (max-width: 820px) {
  .hero .wrap { grid-template-columns: minmax(0, 1fr); }
  .globe { justify-self: start; max-width: 260px; order: -1; }
}

/* ---------- sections ---------- */
.section { padding: clamp(64px, 10vw, 120px) 0; }
.section h2 { margin: 0 0 12px; font-size: clamp(1.875rem, 3.6vw, 2.75rem); line-height: 1.1; font-weight: 600; letter-spacing: -0.015em; }
.section .intro { margin: 0 0 clamp(36px, 5vw, 56px); color: var(--muted); max-width: 40em; font-size: 1.125rem; }

/* services: pixel glyph + text, hairline separated, two columns */
.services { display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); column-gap: clamp(32px, 6vw, 80px); margin: 0; padding: 0; list-style: none; }
.services li { display: grid; grid-template-columns: 44px minmax(0, 1fr); gap: 20px; padding: 28px 0; border-top: 1px solid var(--line); }
.services h3 { margin: 0 0 6px; font-size: 1.25rem; line-height: 1.3; font-weight: 600; }
.services p { margin: 0; color: var(--muted); max-width: 36em; }
.glyph { display: grid; grid-template-columns: repeat(3, 12px); grid-auto-rows: 12px; gap: 2px; padding-top: 6px; align-self: start; align-content: start; }
.glyph i { width: 12px; height: 12px; border-radius: 2px; background: var(--line); }
.glyph i.on { background: var(--accent); }

@media (max-width: 760px) { .services { grid-template-columns: minmax(0, 1fr); } }

/* process: real sequence, digitisation grows step by step */
.process-section { background: var(--paper); border-top: 1px solid var(--line); border-bottom: 1px solid var(--line); }
.steps { display: grid; grid-template-columns: repeat(4, minmax(0, 1fr)); gap: clamp(24px, 3vw, 40px); margin: 0; padding: 0; list-style: none; counter-reset: step; }
.steps li { counter-increment: step; }
.steps .meter { display: grid; grid-auto-rows: 10px; align-content: start; grid-template-columns: repeat(4, 10px); gap: 3px; margin-bottom: 20px; }
.steps .meter i { width: 10px; height: 10px; border-radius: 2px; border: 1.5px solid var(--muted); }
.steps .meter i.on { background: var(--accent); border-color: var(--accent); }
.steps h3 { margin: 0 0 8px; font-size: 1.25rem; font-weight: 600; }
.steps h3::before { content: counter(step) ". "; color: var(--accent-dark); }
.steps p { margin: 0; color: var(--muted); }

@media (max-width: 900px) { .steps { grid-template-columns: repeat(2, minmax(0, 1fr)); row-gap: 40px; } }
@media (max-width: 520px) { .steps { grid-template-columns: minmax(0, 1fr); } }

/* principles */
.principles { display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); gap: clamp(24px, 4vw, 56px); }
.principles h3 { margin: 0 0 8px; font-size: 1.25rem; line-height: 1.3; font-weight: 600; }
.principles p { margin: 0; color: var(--muted); }
@media (max-width: 820px) { .principles { grid-template-columns: minmax(0, 1fr); } }

/* contact */
.contact { background: var(--night); color: var(--white); }
.contact .wrap { display: grid; grid-template-columns: minmax(0, 7fr) minmax(0, 5fr); gap: clamp(32px, 6vw, 80px); align-items: end; }
.contact h2 { color: var(--white); font-size: clamp(2.25rem, 5vw, 3.75rem); line-height: 1.05; max-width: 14ch; }
.contact .intro { color: var(--night-muted); margin-bottom: 32px; }
.contact address { font-style: normal; color: var(--night-muted); line-height: 1.8; }
.contact address strong { color: var(--white); font-weight: 600; }
.contact a:not(.btn) { color: var(--white); }
.contact .btn:focus-visible { outline-color: var(--white); }
@media (max-width: 820px) { .contact .wrap { grid-template-columns: minmax(0, 1fr); align-items: start; } }

/* footer */
.site-footer { background: var(--night); color: var(--night-muted); border-top: 1px solid #22304A; font-size: 0.9375rem; }
.site-footer .wrap { display: flex; flex-wrap: wrap; justify-content: space-between; gap: 16px; padding-top: 28px; padding-bottom: 28px; }
.site-footer nav { display: flex; gap: 24px; }
.site-footer a { color: var(--white); text-decoration: none; }
.site-footer a:hover { text-decoration: underline; color: var(--white); }

/* legal pages */
.legal { padding: clamp(48px, 8vw, 96px) 0; }
.legal .wrap { max-width: 820px; }
.legal h1 { margin: 0 0 32px; font-size: clamp(2.25rem, 5vw, 3.25rem); line-height: 1.1; font-weight: 600; letter-spacing: -0.015em; }
.legal h2 { margin: 40px 0 10px; font-size: 1.375rem; font-weight: 600; line-height: 1.3; }
.legal h3 { margin: 24px 0 6px; font-size: 1.125rem; font-weight: 600; }
.legal p, .legal li { color: #2A3342; }
.legal ul { padding-left: 1.2em; }
.fill { background: #FFF3A6; padding: 0 4px; border-radius: 3px; }
