:root {
  --radius-card: 12px;
  --radius-button: 8px;
  --radius-input: 6px;
  --radius-image: 8px;
  --shadow-card: 0 12px 32px rgba(0, 0, 0, 0.08);
  --shadow-button: 0 4px 12px rgba(0, 0, 0, 0.06);
  --type-h1: clamp(2rem, 4vw, 2.5rem);
  --type-h2: 1.6rem;
  --type-h3: 1.25rem;
  --type-body: 1rem;
  --type-small: 0.875rem;
  --type-eyebrow: 0.72rem;
  --section-pad: clamp(3rem, 6vw, 5rem);
}

html {
  scroll-behavior: smooth;
}

body {
  margin: 0;
  background: var(--color-background);
  color: var(--color-text-primary);
  font-family: var(--font-body);
  font-size: var(--type-body);
  line-height: 1.65;
  text-rendering: optimizeLegibility;
}

h1,
h2,
h3,
.font-display {
  font-family: var(--font-display);
  color: var(--color-text-primary);
  line-height: 1.15;
  text-wrap: balance;
}

h1,
.type-h1 {
  font-size: var(--type-h1);
  font-weight: 800;
}

h2,
.type-h2 {
  font-size: var(--type-h2);
  font-weight: 800;
}

h3,
.type-h3 {
  font-size: var(--type-h3);
  font-weight: 800;
}

p,
li {
  text-wrap: pretty;
}

small,
.type-small {
  font-size: var(--type-small);
}

.eyebrow {
  display: inline-block;
  color: var(--color-primary-dark);
  font-size: var(--type-eyebrow);
  font-weight: 800;
  letter-spacing: 0.08em;
  text-transform: uppercase;
}

.section-pad {
  padding-top: var(--section-pad);
  padding-bottom: var(--section-pad);
}

.prose-measure {
  max-width: 68ch;
}

.site-header {
  background: rgba(245, 241, 243, 0.96);
  backdrop-filter: blur(10px);
  transition: box-shadow 180ms ease, padding 180ms ease, background-color 180ms ease;
}

.site-header.nav-shrink {
  box-shadow: 0 8px 24px rgba(0, 0, 0, 0.07);
  background: rgba(251, 242, 251, 0.98);
}

.nav-inner {
  min-height: 84px;
  transition: min-height 180ms ease;
}

.site-header.nav-shrink .nav-inner {
  min-height: 64px;
}

.logo-mark {
  width: 46px;
  height: 46px;
  border-radius: 12px;
  transition: width 180ms ease, height 180ms ease;
}

.site-header.nav-shrink .logo-mark {
  width: 38px;
  height: 38px;
}

.nav-link {
  color: var(--color-text-primary);
  font-weight: 700;
  transition: color 160ms ease;
}

.nav-link:hover,
.nav-link:focus-visible {
  color: var(--color-primary);
}

.mobile-panel {
  max-height: 0;
  overflow: hidden;
  transition: max-height 220ms ease;
}

.mobile-panel.is-open {
  max-height: 520px;
}

.btn-primary,
.btn-secondary {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 0.5rem;
  min-height: 44px;
  border-radius: var(--radius-button);
  padding: 0.72rem 1.05rem;
  font-weight: 800;
  text-decoration: none;
  box-shadow: var(--shadow-button);
  transition: background-color 160ms ease, color 160ms ease, transform 160ms ease, box-shadow 160ms ease;
}

.btn-primary {
  border: 0;
  background: var(--color-primary);
  color: #fff;
}

.btn-primary:hover,
.btn-primary:focus-visible {
  background: var(--color-primary-dark);
  transform: translateY(-1px);
}

.btn-secondary {
  border: 1px solid rgba(135, 29, 106, 0.22);
  background: var(--color-surface);
  color: var(--color-primary-dark);
}

.btn-secondary:hover,
.btn-secondary:focus-visible {
  background: #fff;
  color: var(--color-primary);
  transform: translateY(-1px);
}

.card-lift {
  border-radius: var(--radius-card);
  background: #fff;
  box-shadow: var(--shadow-card);
  transition: transform 160ms ease, box-shadow 160ms ease;
}

.card-lift:hover {
  transform: translateY(-2px);
}

.service-card {
  height: 100%;
  border: 1px solid rgba(135, 29, 106, 0.10);
}

.stack-card {
  border: 1px solid rgba(135, 29, 106, 0.10);
}

.image-rounded {
  border-radius: var(--radius-image);
  box-shadow: var(--shadow-card);
}

.icon-line {
  width: 2rem;
  height: 2rem;
  color: var(--color-primary);
  stroke: currentColor;
  stroke-width: 1.75;
  stroke-linecap: round;
  stroke-linejoin: round;
  fill: none;
}

.form-field {
  width: 100%;
  border: 1px solid rgba(89, 81, 87, 0.24);
  border-radius: var(--radius-input);
  background: #fff;
  color: var(--color-text-primary);
  padding: 0.72rem 0.82rem;
  outline: none;
  transition: border-color 160ms ease, box-shadow 160ms ease;
}

.form-field:focus {
  border-color: var(--color-primary);
  box-shadow: 0 0 0 3px rgba(135, 29, 106, 0.14);
}

label {
  font-weight: 800;
  color: var(--color-text-primary);
}

.form-help,
.muted {
  color: var(--color-text-secondary);
}

.confirmation {
  display: none;
  border-radius: var(--radius-input);
  background: rgba(116, 108, 157, 0.12);
  color: var(--color-primary-dark);
  padding: 0.85rem 1rem;
  font-weight: 700;
}

.confirmation.is-visible {
  display: block;
}

.numeric {
  font-variant-numeric: tabular-nums;
}

.cookie-banner {
  position: fixed;
  right: 1rem;
  bottom: 1rem;
  z-index: 60;
  max-width: 420px;
  border: 1px solid rgba(135, 29, 106, 0.14);
  border-radius: var(--radius-card);
  background: #fff;
  box-shadow: var(--shadow-card);
  padding: 1rem;
}

.cookie-banner.is-hidden {
  display: none;
}

.footer-link,
.text-link {
  color: var(--color-primary-dark);
  font-weight: 800;
  text-decoration: underline;
  text-decoration-thickness: 1px;
  text-underline-offset: 3px;
  transition: color 160ms ease;
}

.footer-link:hover,
.text-link:hover,
.footer-link:focus-visible,
.text-link:focus-visible {
  color: var(--color-accent);
}

@media (max-width: 767px) {
  .nav-inner {
    min-height: 70px;
  }

  .cookie-banner {
    left: 1rem;
    right: 1rem;
    bottom: 1rem;
  }
}
