:root {
  color-scheme: light;
  --color-page: oklch(97% 0.004 240);
  --color-surface: oklch(99% 0.003 240);
  --color-surface-muted: oklch(95% 0.006 240);
  --color-text: oklch(25% 0.015 250);
  --color-muted: oklch(45% 0.012 250);
  --color-line: oklch(88% 0.01 250);
  --color-strong-line: oklch(81% 0.014 250);
  --color-brand-dark: #0a1f44;
  --color-brand-blue: #2563eb;
  --color-brand-cyan: #7ee6f5;
  --color-accent: var(--color-brand-blue);
  --color-accent-soft: #e8f0ff;
  --color-focus: var(--color-brand-cyan);
  --shadow-soft: 0 20px 45px oklch(28% 0.03 250 / 0.08);
  --radius-sm: 12px;
  --radius-md: 18px;
  --radius-lg: 26px;
  --shell: min(100% - 40px, 1120px);
  --font-main: system-ui, -apple-system, BlinkMacSystemFont, "Segoe UI", sans-serif;
}

* {
  box-sizing: border-box;
}

html {
  scroll-behavior: smooth;
  scroll-padding-top: 88px;
}

body {
  margin: 0;
  background: linear-gradient(180deg, var(--color-page), oklch(98% 0.003 240));
  color: var(--color-text);
  font-family: var(--font-main);
  font-size: 16px;
  line-height: 1.65;
  text-rendering: optimizeLegibility;
}

img,
svg {
  display: block;
  max-width: 100%;
}

a {
  color: inherit;
  text-decoration-thickness: 0.08em;
  text-underline-offset: 0.18em;
}

a:hover {
  color: var(--color-accent);
}

a:focus-visible,
button:focus-visible {
  outline: 3px solid var(--color-focus);
  outline-offset: 4px;
}

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

h1,
h2,
h3 {
  margin-bottom: 0.9rem;
  color: var(--color-text);
  font-weight: 700;
  letter-spacing: -0.03em;
  line-height: 1.08;
  text-wrap: balance;
}

h1 {
  max-width: 14ch;
  font-size: clamp(2.4rem, 7vw, 4.7rem);
}

h2 {
  max-width: 18ch;
  font-size: clamp(1.9rem, 4vw, 3rem);
}

h3 {
  font-size: clamp(1.1rem, 2.2vw, 1.35rem);
}

p,
li {
  color: var(--color-muted);
  text-wrap: pretty;
}

ul,
ol {
  padding: 0;
}

.shell {
  width: var(--shell);
  margin-inline: auto;
}

.section {
  padding-block: clamp(4rem, 8vw, 7rem);
  scroll-margin-top: 88px;
}

.section--muted {
  background: var(--color-surface-muted);
}

.skip-link {
  position: fixed;
  top: 1rem;
  left: 1rem;
  z-index: 100;
  transform: translateY(-160%);
  border-radius: 999px;
  background: var(--color-text);
  color: var(--color-surface);
  padding: 0.75rem 1rem;
  transition: transform 160ms ease-out;
}

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

.site-header {
  position: sticky;
  top: 0;
  z-index: 20;
  border-bottom: 1px solid oklch(88% 0.01 250 / 0.85);
  background: oklch(97% 0.004 240 / 0.92);
  backdrop-filter: blur(12px);
}

.site-header__inner {
  display: grid;
  grid-template-columns: 1fr auto;
  align-items: center;
  gap: 1rem;
  min-height: 82px;
}

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

.brand__logo {
  display: block;
  width: auto;
  height: 42px;
  max-width: min(48vw, 220px);
}

.header-cta {
  display: inline-flex;
  border: 1px solid var(--color-strong-line);
  border-radius: 999px;
  background: var(--color-brand-dark);
  color: var(--color-surface);
  font-size: 0.95rem;
  font-weight: 600;
  padding: 0.7rem 1rem;
  text-decoration: none;
}

.header-cta:hover {
  background: var(--color-brand-blue);
  color: var(--color-surface);
}

.hero {
  position: relative;
  padding-top: clamp(4rem, 8vw, 7rem);
  overflow: hidden;
}

.hero::before {
  position: absolute;
  inset: 0;
  background-image: url("/assets/bgpoly.svg");
  background-repeat: no-repeat;
  content: "";
  opacity: 0.12;
  pointer-events: none;
}

.hero__grid,
.profile {
  display: grid;
  gap: clamp(2rem, 5vw, 4rem);
}

.hero__grid {
  position: relative;
  z-index: 1;
}

#profil {
  position: relative;
  overflow: hidden;
}

#profil::before {
  position: absolute;
  inset: 0;
  background-image: url("/assets/bgpoly2.svg");
  background-repeat: no-repeat;
  background-position: right center;
  content: "";
  opacity: 0.08;
  pointer-events: none;
}

.profile {
  position: relative;
  z-index: 1;
}

.hero__content {
  max-width: none;
}

.hero__content h1 {
  max-width: none;
}

.hero__lead {
  max-width: 62ch;
  margin-bottom: 0;
  color: var(--color-brand-dark);
  font-size: clamp(1.08rem, 2.5vw, 1.3rem);
  font-weight: 500;
}

.hero__actions {
  display: flex;
  flex-wrap: wrap;
  gap: 0.85rem;
  margin-top: 2rem;
}

.button {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  min-height: 48px;
  border-radius: 999px;
  font-weight: 700;
  text-decoration: none;
  transition: background-color 160ms ease-out, border-color 160ms ease-out, color 160ms ease-out;
}

.button--primary {
  background: var(--color-brand-dark);
  color: var(--color-surface);
  padding: 0.92rem 1.28rem;
}

.button--primary:hover {
  background: var(--color-brand-blue);
  color: var(--color-surface);
}

.button--secondary {
  border: 1px solid var(--color-strong-line);
  background: var(--color-surface);
  color: var(--color-text);
  padding: 0.82rem 1.12rem;
}

.button--secondary:hover {
  border-color: var(--color-accent);
  background: var(--color-accent-soft);
}

.service-card,
.step-card {
  border: 1px solid var(--color-line);
  border-radius: var(--radius-lg);
  background: var(--color-surface);
}

.section-heading {
  margin-bottom: clamp(1.8rem, 5vw, 3rem);
}

.section-heading p,
.rich-text p {
  max-width: 68ch;
  font-size: 1.04rem;
}

.service-grid,
.steps {
  display: grid;
  gap: 1rem;
}

.service-card,
.step-card {
  padding: 1.35rem;
}

.service-card p,
.step-card p {
  margin-bottom: 0;
}

.steps {
  list-style: none;
}

.step-card__index {
  display: inline-flex;
  margin-bottom: 1rem;
  color: var(--color-accent);
  font-size: 0.86rem;
  font-weight: 700;
  letter-spacing: 0.12em;
}

.profile {
  align-items: start;
}

.profile__text p:last-child {
  margin-bottom: 0;
}

.legal-page {
  min-height: 100vh;
}

.rich-text h2 {
  max-width: none;
  margin-top: 2rem;
  font-size: clamp(1.4rem, 3vw, 1.9rem);
}

.rich-text a:not(.button) {
  color: var(--color-accent);
}

.site-footer {
  border-top: 1px solid var(--color-line);
  background: var(--color-surface-muted);
  padding-block: 2.2rem;
}

.site-footer__inner {
  display: grid;
  gap: 1.5rem;
}

.site-footer p {
  max-width: 58ch;
  margin: 1rem 0 0;
}

.brand--footer .brand__logo {
  height: 38px;
  max-width: min(42vw, 200px);
}

.footer-links {
  display: flex;
  flex-wrap: wrap;
  gap: 0.8rem 1.2rem;
}

@media (min-width: 920px) {
  .site-header__inner {
    min-height: 92px;
  }

  .brand__logo {
    height: 50px;
    max-width: 260px;
  }

  .hero__grid,
  .profile {
    grid-template-columns: minmax(0, 1fr) minmax(320px, 0.8fr);
    align-items: start;
  }

  .hero__grid {
    grid-template-columns: minmax(0, 1fr);
  }

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

  .steps {
    grid-template-columns: repeat(3, minmax(0, 1fr));
  }

  .site-footer__inner {
    grid-template-columns: 1fr auto;
    align-items: end;
  }

  .footer-links {
    justify-content: flex-end;
  }
}

@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;
  }
}
