@font-face {
  font-family: "Hanken Grotesk";
  src: url("/fonts/hanken-grotesk-latin-wght-normal.woff2") format("woff2");
  font-weight: 100 900;
  font-style: normal;
  font-display: swap;
}

:root {
  --ink: #101828;
  --ink-soft: #475067;
  --line: #dfe3ec;
  --paper: #ffffff;
  --wash: #f5f5f6;
  --accent: #c8102e;
  --accent-deep: #a00d25;
  --accent-wash: #fdecee;
  --night: #17181c;
  --night-soft: #c9ccd3;
  --radius: 14px;
  --wrap: 1120px;
  --gutter: clamp(20px, 5vw, 48px);
  --ease: cubic-bezier(0.16, 1, 0.3, 1);
  --font: "Hanken Grotesk", ui-sans-serif, system-ui, -apple-system, "Segoe UI", Roboto, "Helvetica Neue", Arial, sans-serif;
}

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

html {
  -webkit-text-size-adjust: 100%;
  scroll-padding-top: 84px;
  scrollbar-color: #b8c0d4 var(--wash);
}

body {
  margin: 0;
  background: var(--paper);
  color: var(--ink);
  font-family: var(--font);
  font-size: 1.0625rem;
  line-height: 1.6;
  -webkit-font-smoothing: antialiased;
  caret-color: var(--accent);
}

::selection { background: var(--accent); color: #fff; }

a { color: var(--accent); text-underline-offset: 0.18em; text-decoration-thickness: 1px; }
a:hover { color: var(--accent-deep); }

:focus-visible {
  outline: 2px solid var(--accent);
  outline-offset: 3px;
  border-radius: 4px;
}

h1, h2, h3 { line-height: 1.12; letter-spacing: -0.02em; margin: 0; text-wrap: balance; }
h1 { font-size: clamp(2.25rem, 5.2vw, 3.75rem); font-weight: 700; letter-spacing: -0.03em; }
h2 { font-size: clamp(1.75rem, 3.4vw, 2.5rem); font-weight: 700; }
h3 { font-size: 1.375rem; font-weight: 650; letter-spacing: -0.015em; }
p { margin: 0; }

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

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

/* Header */
.site-header {
  position: sticky; top: 0; z-index: 10;
  background: rgba(255, 255, 255, 0.92);
  backdrop-filter: saturate(1.4) blur(12px);
  border-bottom: 1px solid var(--line);
}
.site-header .wrap { display: flex; align-items: center; gap: 24px; min-height: 68px; }
.brand {
  display: inline-flex; align-items: center; gap: 9px;
  font-size: 1.375rem; color: var(--ink); text-decoration: none; margin-right: auto;
}
.brand:hover { color: var(--ink); }
.brand-name { font-size: 1.1875rem; font-weight: 600; color: var(--ink); letter-spacing: -0.01em; white-space: nowrap; }

/* The mark: ANY, then AI in the accent block; "Technologies" follows as text. */
.mark {
  display: inline-flex; align-items: center; gap: 0.2em;
  font-weight: 750; line-height: 1; letter-spacing: 0.06em;
}
.mark b {
  font-weight: inherit; color: #fff; background: var(--accent);
  /* letter-spacing adds 0.06em after the I, so the right padding is that much smaller */
  padding: 0.24em 0.3em 0.24em 0.36em; border-radius: 0.26em;
}
.nav { display: flex; align-items: center; gap: 28px; }
.nav a { color: var(--ink-soft); text-decoration: none; font-size: 1rem; font-weight: 500; }
.nav a:hover { color: var(--ink); }
.lang {
  display: inline-flex; border: 1px solid var(--line); border-radius: 999px; padding: 3px;
  font-size: 0.8125rem; font-weight: 650;
}
.lang a, .lang span { padding: 4px 11px; border-radius: 999px; text-decoration: none; color: var(--ink-soft); }
.lang span { background: var(--ink); color: #fff; }
.lang a:hover { color: var(--ink); background: var(--wash); }

/* Buttons */
.btn {
  display: inline-flex; align-items: center; gap: 10px;
  background: var(--accent); color: #fff; text-decoration: none;
  font-weight: 650; font-size: 1.0625rem;
  padding: 14px 24px; border-radius: 999px;
  transition: background 0.2s var(--ease), transform 0.2s var(--ease), box-shadow 0.2s var(--ease);
  box-shadow: 0 1px 2px rgba(16, 24, 40, 0.12);
}
.btn:hover { background: var(--accent-deep); color: #fff; transform: translateY(-1px); box-shadow: 0 8px 20px -8px rgba(200, 16, 46, 0.5); }
.btn:active { transform: translateY(0); }
.btn svg { width: 18px; height: 18px; flex: none; }
.btn-quiet { background: transparent; color: var(--ink); box-shadow: inset 0 0 0 1px var(--line); }
.btn-quiet:hover { background: var(--wash); color: var(--ink); box-shadow: inset 0 0 0 1px #c5ccdb; }
.btn-light { background: #fff; color: var(--night); }
.btn-light:hover { background: var(--accent-wash); color: var(--night); box-shadow: 0 8px 24px -8px rgba(0, 0, 0, 0.5); }

/* Hero */
.hero { padding-block: clamp(48px, 8vw, 104px) clamp(56px, 8vw, 112px); }
.hero .wrap { display: grid; grid-template-columns: minmax(0, 1.05fr) minmax(0, 0.95fr); gap: clamp(32px, 6vw, 80px); align-items: center; }
.hero p.lead { margin-top: 24px; font-size: clamp(1.125rem, 1.6vw, 1.3125rem); color: var(--ink-soft); max-width: 34em; }
.hero .actions { margin-top: 36px; display: flex; flex-wrap: wrap; gap: 12px; }

/* Service overview in the hero */
.offer { border-top: 2px solid var(--ink); }
.offer a {
  display: grid; grid-template-columns: minmax(0, 1fr) auto; gap: 4px 20px; align-items: center;
  padding: 22px 4px; border-bottom: 1px solid var(--line);
  color: var(--ink); text-decoration: none;
  transition: padding 0.3s var(--ease), background 0.3s var(--ease);
}
.offer strong { font-size: clamp(1.25rem, 2vw, 1.5rem); font-weight: 650; letter-spacing: -0.015em; line-height: 1.2; }
.offer span { grid-column: 1; color: var(--ink-soft); font-size: 1rem; }
.offer svg { grid-column: 2; grid-row: 1 / span 2; width: 22px; height: 22px; color: var(--accent); transition: transform 0.3s var(--ease); }
.offer a:hover { background: var(--wash); padding-inline: 16px; color: var(--ink); }
.offer a:hover svg { transform: translateX(4px); }

@media (prefers-reduced-motion: no-preference) { html { scroll-behavior: smooth; } }

/* Sections */
.section { padding-block: clamp(64px, 9vw, 120px); }
.section-wash { background: var(--wash); }
.section-head { max-width: 40em; margin-bottom: clamp(32px, 5vw, 56px); }
.section-head p { margin-top: 16px; color: var(--ink-soft); font-size: 1.1875rem; }

/* Services */
.services { border-top: 1px solid var(--line); }
.service {
  display: grid; grid-template-columns: minmax(0, 0.8fr) minmax(0, 1.2fr); gap: clamp(16px, 5vw, 64px);
  padding-block: clamp(28px, 4vw, 44px); border-bottom: 1px solid var(--line);
}
.service h3 { font-size: clamp(1.5rem, 2.4vw, 1.875rem); }
.service p { color: var(--ink-soft); max-width: 36em; }
.service ul { margin: 16px 0 0; padding: 0; list-style: none; display: flex; flex-wrap: wrap; gap: 8px; }
.service li { font-size: 0.9375rem; font-weight: 550; color: var(--ink); background: var(--wash); border-radius: 999px; padding: 5px 14px; }

/* Steps */
.steps { list-style: none; margin: 0; padding: 0; display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); gap: clamp(24px, 4vw, 48px); counter-reset: step; }
.steps li { counter-increment: step; border-top: 2px solid var(--ink); padding-top: 20px; }
.steps li::before { content: counter(step); display: block; font-size: 0.9375rem; font-weight: 700; color: var(--accent); margin-bottom: 10px; font-variant-numeric: tabular-nums; }
.steps p { margin-top: 10px; color: var(--ink-soft); }

/* Products */
.products { display: grid; grid-template-columns: minmax(0, 0.8fr) minmax(0, 1.2fr); gap: clamp(24px, 5vw, 64px); align-items: start; }
.products .section-head { margin-bottom: 0; }
.product-list { margin: 0; padding: 0; list-style: none; background: var(--paper); border: 1px solid var(--line); border-radius: var(--radius); }
.product-list li { display: grid; grid-template-columns: minmax(0, 11em) minmax(0, 1fr); gap: 4px 24px; padding: 18px 24px; border-bottom: 1px solid var(--line); }
.product-list li:last-child { border-bottom: 0; }
.product-list strong { font-weight: 650; }
.product-list span { color: var(--ink-soft); }
.product-list small { display: block; font-size: 0.8125rem; font-weight: 600; color: var(--ink-soft); }

/* Contact */
.contact { background: var(--night); color: #fff; }
.contact ::selection { background: #fff; color: var(--night); }
.contact h2 { max-width: 18em; }
.contact p { margin-top: 20px; color: var(--night-soft); font-size: 1.1875rem; max-width: 34em; }
.contact .actions { margin-top: 36px; display: flex; flex-wrap: wrap; align-items: center; gap: 20px; }
.contact .mail { color: #fff; font-size: 1.1875rem; font-weight: 600; }
.contact :focus-visible { outline-color: #fff; }

/* Footer */
.site-footer { padding-block: 32px; font-size: 0.9375rem; color: var(--ink-soft); border-top: 1px solid var(--line); }
.site-footer .wrap { display: flex; flex-wrap: wrap; gap: 12px 28px; align-items: center; }
.site-footer p { margin-right: auto; }
.site-footer a { color: var(--ink-soft); }
.site-footer a:hover { color: var(--ink); }

/* Legal and plain text pages */
.prose { max-width: 44rem; padding-block: clamp(40px, 6vw, 80px) clamp(56px, 8vw, 104px); }
.prose h1 { font-size: clamp(2rem, 4vw, 2.75rem); margin-bottom: 28px; }
.prose h2 { font-size: 1.375rem; letter-spacing: -0.015em; margin-top: 44px; margin-bottom: 12px; }
.prose p, .prose ul, .prose address { margin: 0 0 14px; color: #2c3447; }
.prose address { font-style: normal; }
.prose ul { padding-left: 1.2em; }
.prose li { margin-bottom: 6px; }
.prose .note { color: var(--ink-soft); font-size: 0.9375rem; }

@media (max-width: 860px) {
  .hero .wrap, .products { grid-template-columns: minmax(0, 1fr); }
  .service { grid-template-columns: minmax(0, 1fr); gap: 12px; }
  .steps { grid-template-columns: minmax(0, 1fr); }
  .nav .nav-link { display: none; }
}
@media (max-width: 350px) {
  .brand-name { display: none; }
}
@media (max-width: 520px) {
  .product-list li { grid-template-columns: minmax(0, 1fr); }
  .btn { width: 100%; justify-content: center; }
  .contact .actions { align-items: flex-start; flex-direction: column; }
}
