/* =========================================================================
   Metachanic — main stylesheet
   Design ported 1:1 from the Claude Design source (see ___template___source__claude_design).
   No CSS framework: hand-written, scoped, and small on purpose — every rule
   here is a rule the browser has to parse on first paint.
   ========================================================================= */

:root {
  --bg: #0B1220;
  --bg-alt: #0D1526;
  --surface: #111827;
  --border: rgba(248, 250, 252, 0.08);
  --border-soft: rgba(248, 250, 252, 0.07);
  --border-faint: rgba(248, 250, 252, 0.06);
  --text: #F8FAFC;
  --text-muted: #CBD5E1;
  --text-faint: #94A3B8;
  --text-dim: #64748B;
  --blue: #2563EB;
  --blue-light: #3B82F6;
  --cyan: #06B6D4;
  --cyan-light: #67E8F9;
  --font-sans: 'Inter', system-ui, -apple-system, 'Segoe UI', sans-serif;
  --font-mono: 'JetBrains Mono', ui-monospace, SFMono-Regular, monospace;
  --container: 1200px;
  --radius-lg: 16px;
  --radius-md: 14px;
  --radius-sm: 10px;
  --header-h: 96px;
}

/* ---------- Self-hosted webfonts ----------
   Inter + JetBrains Mono, subset to Cyrillic + Latin only. Self-hosting
   avoids the extra DNS lookup + connection to fonts.gstatic.com — one of
   the cheapest LCP wins available. font-display: swap avoids invisible
   text (FOIT); unicode-range means the browser only fetches the subset
   it actually needs to paint the glyphs present on the page. */

@font-face {
  font-family: 'Inter';
  font-style: normal;
  font-weight: 400;
  font-display: swap;
  src: url('../fonts/inter-400-latin.woff2') format('woff2');
  unicode-range: U+0000-00FF, U+0131, U+0152-0153, U+02BB-02BC, U+02C6, U+02DA, U+02DC, U+0304, U+0308, U+0329, U+2000-206F, U+20AC, U+2122, U+2191, U+2193, U+2212, U+2215, U+FEFF, U+FFFD;
}
@font-face {
  font-family: 'Inter';
  font-style: normal;
  font-weight: 400;
  font-display: swap;
  src: url('../fonts/inter-400-cyrillic.woff2') format('woff2');
  unicode-range: U+0301, U+0400-045F, U+0490-0491, U+04B0-04B1, U+2116;
}
@font-face {
  font-family: 'Inter';
  font-style: normal;
  font-weight: 500;
  font-display: swap;
  src: url('../fonts/inter-500-latin.woff2') format('woff2');
  unicode-range: U+0000-00FF, U+0131, U+0152-0153, U+02BB-02BC, U+02C6, U+02DA, U+02DC, U+0304, U+0308, U+0329, U+2000-206F, U+20AC, U+2122, U+2191, U+2193, U+2212, U+2215, U+FEFF, U+FFFD;
}
@font-face {
  font-family: 'Inter';
  font-style: normal;
  font-weight: 500;
  font-display: swap;
  src: url('../fonts/inter-500-cyrillic.woff2') format('woff2');
  unicode-range: U+0301, U+0400-045F, U+0490-0491, U+04B0-04B1, U+2116;
}
@font-face {
  font-family: 'Inter';
  font-style: normal;
  font-weight: 600;
  font-display: swap;
  src: url('../fonts/inter-600-latin.woff2') format('woff2');
  unicode-range: U+0000-00FF, U+0131, U+0152-0153, U+02BB-02BC, U+02C6, U+02DA, U+02DC, U+0304, U+0308, U+0329, U+2000-206F, U+20AC, U+2122, U+2191, U+2193, U+2212, U+2215, U+FEFF, U+FFFD;
}
@font-face {
  font-family: 'Inter';
  font-style: normal;
  font-weight: 600;
  font-display: swap;
  src: url('../fonts/inter-600-cyrillic.woff2') format('woff2');
  unicode-range: U+0301, U+0400-045F, U+0490-0491, U+04B0-04B1, U+2116;
}
@font-face {
  font-family: 'Inter';
  font-style: normal;
  font-weight: 700;
  font-display: swap;
  src: url('../fonts/inter-700-latin.woff2') format('woff2');
  unicode-range: U+0000-00FF, U+0131, U+0152-0153, U+02BB-02BC, U+02C6, U+02DA, U+02DC, U+0304, U+0308, U+0329, U+2000-206F, U+20AC, U+2122, U+2191, U+2193, U+2212, U+2215, U+FEFF, U+FFFD;
}
@font-face {
  font-family: 'Inter';
  font-style: normal;
  font-weight: 700;
  font-display: swap;
  src: url('../fonts/inter-700-cyrillic.woff2') format('woff2');
  unicode-range: U+0301, U+0400-045F, U+0490-0491, U+04B0-04B1, U+2116;
}
@font-face {
  font-family: 'Inter';
  font-style: normal;
  font-weight: 800;
  font-display: swap;
  src: url('../fonts/inter-800-latin.woff2') format('woff2');
  unicode-range: U+0000-00FF, U+0131, U+0152-0153, U+02BB-02BC, U+02C6, U+02DA, U+02DC, U+0304, U+0308, U+0329, U+2000-206F, U+20AC, U+2122, U+2191, U+2193, U+2212, U+2215, U+FEFF, U+FFFD;
}
@font-face {
  font-family: 'Inter';
  font-style: normal;
  font-weight: 800;
  font-display: swap;
  src: url('../fonts/inter-800-cyrillic.woff2') format('woff2');
  unicode-range: U+0301, U+0400-045F, U+0490-0491, U+04B0-04B1, U+2116;
}
@font-face {
  font-family: 'JetBrains Mono';
  font-style: normal;
  font-weight: 400;
  font-display: swap;
  src: url('../fonts/jetbrains-mono-400-latin.woff2') format('woff2');
  unicode-range: U+0000-00FF, U+0131, U+0152-0153, U+02BB-02BC, U+02C6, U+02DA, U+02DC, U+0304, U+0308, U+0329, U+2000-206F, U+20AC, U+2122, U+2191, U+2193, U+2212, U+2215, U+FEFF, U+FFFD;
}
@font-face {
  font-family: 'JetBrains Mono';
  font-style: normal;
  font-weight: 400;
  font-display: swap;
  src: url('../fonts/jetbrains-mono-400-cyrillic.woff2') format('woff2');
  unicode-range: U+0301, U+0400-045F, U+0490-0491, U+04B0-04B1, U+2116;
}
@font-face {
  font-family: 'JetBrains Mono';
  font-style: normal;
  font-weight: 500;
  font-display: swap;
  src: url('../fonts/jetbrains-mono-500-latin.woff2') format('woff2');
  unicode-range: U+0000-00FF, U+0131, U+0152-0153, U+02BB-02BC, U+02C6, U+02DA, U+02DC, U+0304, U+0308, U+0329, U+2000-206F, U+20AC, U+2122, U+2191, U+2193, U+2212, U+2215, U+FEFF, U+FFFD;
}
@font-face {
  font-family: 'JetBrains Mono';
  font-style: normal;
  font-weight: 500;
  font-display: swap;
  src: url('../fonts/jetbrains-mono-500-cyrillic.woff2') format('woff2');
  unicode-range: U+0301, U+0400-045F, U+0490-0491, U+04B0-04B1, U+2116;
}

/* ---------- Reset & base ---------- */
*,
*::before,
*::after {
  box-sizing: border-box;
}

html {
  scroll-behavior: smooth;
  scroll-padding-top: var(--header-h);
}

body {
  margin: 0;
  background: var(--bg);
  color: var(--text);
  font-family: var(--font-sans);
  -webkit-font-smoothing: antialiased;
  text-rendering: optimizeLegibility;
  overflow-x: hidden;
}

img, svg {
  display: block;
  max-width: 100%;
}

a {
  color: inherit;
}

input, textarea, button {
  font-family: inherit;
}

ul, ol {
  padding: 0;
  margin: 0;
}

h1, h2, h3, p {
  margin: 0;
}

::selection {
  background: var(--blue);
  color: #fff;
}

.visually-hidden {
  position: absolute !important;
  width: 1px; height: 1px;
  padding: 0; margin: -1px;
  overflow: hidden;
  clip: rect(0, 0, 0, 0);
  white-space: nowrap;
  border: 0;
}

/* honeypot field: off-screen, not display:none, so simple bots still fill it in */
.hp-field {
  position: absolute;
  left: -9999px;
  top: -9999px;
  width: 1px;
  height: 1px;
  overflow: hidden;
}

.skip-link {
  position: absolute;
  left: 16px;
  top: -60px;
  z-index: 100;
  padding: 10px 16px;
  border-radius: 8px;
  background: var(--blue);
  color: #fff;
  text-decoration: none;
  font-weight: 600;
  transition: top .15s ease;
}
.skip-link:focus {
  top: 12px;
}

:focus-visible {
  outline: 2px solid var(--cyan);
  outline-offset: 2px;
}

.page {
  min-height: 100vh;
  background: var(--bg);
  color: var(--text);
}

.container {
  max-width: var(--container);
  margin: 0 auto;
  padding-inline: 24px;
}
.container--narrow {
  max-width: 820px;
}

/* ---------- Header ---------- */
.site-header {
  position: sticky;
  top: 0;
  z-index: 50;
  background: rgba(11, 18, 32, 0.72);
  backdrop-filter: blur(14px);
  -webkit-backdrop-filter: blur(14px);
  border-bottom: 1px solid var(--border-soft);
  transition: background-color .25s ease, box-shadow .25s ease;
}
.site-header.is-scrolled {
  background: rgba(11, 18, 32, 0.92);
  box-shadow: 0 8px 24px rgba(0, 0, 0, 0.28);
}

.site-header__nav {
  max-width: var(--container);
  margin: 0 auto;
  padding: 16px 24px;
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 24px;
  transition: padding .25s ease;
}
.site-header.is-scrolled .site-header__nav {
  padding: 10px 24px;
}

.brand {
  display: flex;
  align-items: center;
  gap: 10px;
  text-decoration: none;
  color: var(--text);
  font-weight: 800;
  font-size: 19px;
  letter-spacing: -0.02em;
  flex-shrink: 0;
  transition: font-size .25s ease;
}
.site-header.is-scrolled .brand {
  font-size: 17px;
}

.brand__mark {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  width: 30px;
  height: 30px;
  border-radius: 8px;
  background: linear-gradient(135deg, var(--blue), var(--cyan));
  box-shadow: 0 4px 16px rgba(37, 99, 235, 0.45);
  flex-shrink: 0;
  transition: width .25s ease, height .25s ease;
}
.site-header.is-scrolled .brand__mark {
  width: 26px;
  height: 26px;
  border-radius: 7px;
}
.brand__mark--sm {
  width: 26px;
  height: 26px;
  border-radius: 7px;
  box-shadow: none;
}

.site-header__links {
  display: flex;
  align-items: center;
  gap: 32px;
  list-style: none;
  margin: 0;
  padding: 0;
  font-size: 15px;
  font-weight: 500;
  color: var(--text-muted);
}

.site-header__links a {
  text-decoration: none;
  transition: color .15s ease;
}
.site-header__links a:hover,
.site-header__links a:focus-visible {
  color: var(--text);
}

.site-header__cta {
  flex-shrink: 0;
}

.site-header__toggle {
  display: none;
  flex-shrink: 0;
  width: 40px;
  height: 40px;
  align-items: center;
  justify-content: center;
  border-radius: 9px;
  border: 1px solid var(--border);
  background: rgba(248, 250, 252, 0.04);
  color: var(--text);
  cursor: pointer;
}
.site-header__toggle svg { pointer-events: none; }
.site-header__toggle .icon-close { display: none; }
.site-header__toggle[aria-expanded="true"] .icon-open { display: none; }
.site-header__toggle[aria-expanded="true"] .icon-close { display: block; }

/* ---------- Buttons ---------- */
.btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 8px;
  text-decoration: none;
  font-weight: 600;
  cursor: pointer;
  border: none;
  transition: background-color .15s ease, border-color .15s ease, transform .15s ease;
}

.btn--sm {
  padding: 10px 18px;
  border-radius: 9px;
  font-size: 14px;
}

.btn--lg {
  padding: 14px 26px;
  border-radius: var(--radius-sm);
  font-size: 16px;
}

.btn--primary {
  background: var(--blue);
  color: #fff;
  box-shadow: 0 6px 20px rgba(37, 99, 235, 0.35);
}
.btn--primary:hover,
.btn--primary:focus-visible {
  background: var(--blue-light);
}

.btn--lg.btn--primary {
  box-shadow: 0 10px 30px rgba(37, 99, 235, 0.4);
}

.btn--secondary {
  background: rgba(248, 250, 252, 0.04);
  border: 1px solid rgba(248, 250, 252, 0.14);
  color: var(--text);
}
.btn--secondary:hover,
.btn--secondary:focus-visible {
  background: rgba(248, 250, 252, 0.09);
  border-color: rgba(248, 250, 252, 0.3);
}

.btn--full {
  width: 100%;
}

/* ---------- Section scaffolding ---------- */
.section {
  padding: 96px 24px;
  border-top: 1px solid var(--border-faint);
}
.section--alt {
  background: var(--bg-alt);
}

.section-head {
  max-width: 680px;
  margin: 0 auto 56px;
}
.section-head--center {
  max-width: 820px;
  text-align: left;
  margin-bottom: 48px;
}

.eyebrow {
  margin: 0 0 14px;
  font-family: var(--font-mono);
  font-size: 13px;
  letter-spacing: 0.06em;
  color: var(--cyan);
}

.section-title {
  margin: 0 0 16px;
  font-size: clamp(28px, 4vw, 42px);
  font-weight: 800;
  letter-spacing: -0.02em;
}
.section-title--tight {
  margin-bottom: 0;
}

.section-lead {
  margin: 0;
  font-size: 17px;
  line-height: 1.6;
  color: var(--text-muted);
}

/* ---------- Hero ---------- */
.hero {
  position: relative;
  padding: 120px 24px 110px;
  overflow: hidden;
}

.hero__glow {
  position: absolute;
  top: -160px;
  left: 50%;
  width: 900px;
  max-width: 200vw;
  height: 520px;
  background: radial-gradient(50% 50% at 50% 50%, rgba(37, 99, 235, 0.38), transparent 70%);
  filter: blur(30px);
  animation: floatGlow 9s ease-in-out infinite;
  pointer-events: none;
  transform: translateX(-50%);
}

.hero__grid {
  position: absolute;
  inset: 0;
  background-image:
    linear-gradient(rgba(248, 250, 252, 0.035) 1px, transparent 1px),
    linear-gradient(90deg, rgba(248, 250, 252, 0.035) 1px, transparent 1px);
  background-size: 56px 56px;
  mask-image: radial-gradient(circle at 50% 30%, #000, transparent 72%);
  -webkit-mask-image: radial-gradient(circle at 50% 30%, #000, transparent 72%);
  pointer-events: none;
}

@keyframes floatGlow {
  0%, 100% { transform: translateX(-50%) translateY(0) scale(1); opacity: .55; }
  50% { transform: translateX(-50%) translateY(-4%) scale(1.06); opacity: .75; }
}

.hero__inner {
  position: relative;
  max-width: 960px;
  margin: 0 auto;
  text-align: center;
}

.hero__badge {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  padding: 6px 14px;
  border: 1px solid rgba(6, 182, 212, 0.35);
  border-radius: 999px;
  background: rgba(6, 182, 212, 0.08);
  color: var(--cyan-light);
  font-family: var(--font-mono);
  font-size: 12.5px;
  letter-spacing: 0.04em;
  margin-bottom: 28px;
}

.hero__badge-dot {
  width: 7px;
  height: 7px;
  border-radius: 50%;
  background: var(--cyan);
  box-shadow: 0 0 10px var(--cyan);
}

.hero__title {
  margin: 0 0 22px;
  font-size: clamp(34px, 5.4vw, 60px);
  line-height: 1.08;
  font-weight: 800;
  letter-spacing: -0.03em;
}

.hero__title-accent {
  background: linear-gradient(120deg, var(--blue-light), var(--cyan));
  -webkit-background-clip: text;
  background-clip: text;
  color: transparent;
}

.hero__lead {
  margin: 0 auto 40px;
  max-width: 720px;
  font-size: clamp(16px, 2vw, 19px);
  line-height: 1.6;
  color: var(--text-muted);
}

.hero__actions {
  display: flex;
  flex-wrap: wrap;
  gap: 14px;
  justify-content: center;
}

/* ---------- Services ---------- */
.services-grid {
  display: grid;
  grid-template-columns: repeat(auto-fill, minmax(310px, 1fr));
  gap: 18px;
}

.service-card {
  padding: 26px;
  border: 1px solid var(--border);
  border-radius: var(--radius-md);
  background: var(--surface);
  transition: border-color .2s ease, transform .2s ease;
}
.service-card:hover {
  border-color: rgba(59, 130, 246, 0.5);
  transform: translateY(-3px);
}

.service-card__icon {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  width: 44px;
  height: 44px;
  border-radius: 11px;
  background: rgba(37, 99, 235, 0.14);
  border: 1px solid rgba(37, 99, 235, 0.25);
  color: var(--blue-light);
  margin-bottom: 18px;
}

.service-card__title {
  margin: 0 0 10px;
  font-size: 18px;
  font-weight: 700;
  letter-spacing: -0.01em;
}

.service-card__text {
  margin: 0;
  font-size: 14.5px;
  line-height: 1.6;
  color: var(--text-muted);
}

.services__note {
  margin: 36px 0 0;
  font-size: 15px;
  color: var(--text-faint);
  font-style: italic;
}

/* ---------- Process (timeline) ----------
   Alternating centered timeline on tablet/desktop, collapsing to a plain
   left-aligned line on mobile. Steps fade/slide in via .is-visible, toggled
   by an IntersectionObserver in main.js; prefers-reduced-motion and no-JS
   both fall back to everything simply being visible (see rules below). */
.process-timeline {
  position: relative;
  list-style: none;
  margin: 0;
  padding: 0;
  display: flex;
  flex-direction: column;
  gap: 40px;
}

.process-timeline::before {
  content: '';
  position: absolute;
  top: 4px;
  bottom: 4px;
  left: 50%;
  width: 2px;
  transform: translateX(-50%);
  background: linear-gradient(to bottom, transparent, var(--border) 6%, var(--border) 94%, transparent);
}

.process-step {
  position: relative;
  display: grid;
  grid-template-columns: 1fr 56px 1fr;
  grid-template-areas: "left marker right";
  align-items: start;
  column-gap: 32px;
}

.process-step__marker {
  grid-area: marker;
  justify-self: center;
  width: 48px;
  height: 48px;
  border-radius: 50%;
  display: flex;
  align-items: center;
  justify-content: center;
  background: linear-gradient(135deg, var(--blue), var(--cyan));
  box-shadow: 0 0 0 6px var(--bg-alt), 0 6px 20px rgba(37, 99, 235, 0.35);
  z-index: 1;
}

.process-step__num {
  font-family: var(--font-mono);
  font-weight: 700;
  font-size: 16px;
  color: #fff;
}

.process-step__card {
  grid-area: right;
  background: var(--surface);
  border: 1px solid var(--border);
  border-radius: var(--radius-md);
  padding: 20px 24px;
  transition: border-color .2s ease, transform .2s ease;
}
.process-step:hover .process-step__card {
  border-color: var(--border-soft);
}

.process-step:nth-child(even) .process-step__card {
  grid-area: left;
  text-align: right;
}

.process-step__title {
  margin: 0 0 8px;
  font-size: 17px;
  font-weight: 700;
}

.process-step__text {
  margin: 0;
  font-size: 14px;
  line-height: 1.55;
  color: var(--text-muted);
}

/* Reveal-on-scroll: main.js adds .is-visible per step via IntersectionObserver */
.process-step__marker,
.process-step__card {
  opacity: 0;
  transform: translateY(18px);
  transition: opacity .5s ease, transform .5s ease;
}
.process-step.is-visible .process-step__marker,
.process-step.is-visible .process-step__card {
  opacity: 1;
  transform: translateY(0);
}

@media (max-width: 880px) {
  .process-timeline::before {
    left: 23px;
  }
  .process-step {
    grid-template-columns: 46px 1fr;
    grid-template-areas: "marker card";
    column-gap: 20px;
  }
  .process-step__marker {
    width: 40px;
    height: 40px;
    box-shadow: 0 0 0 5px var(--bg-alt), 0 4px 14px rgba(37, 99, 235, 0.35);
  }
  .process-step__num {
    font-size: 14px;
  }
  .process-step__card,
  .process-step:nth-child(even) .process-step__card {
    grid-area: card;
    text-align: left;
  }
}

@media (prefers-reduced-motion: reduce) {
  .process-step__marker,
  .process-step__card,
  .process-step:nth-child(even) .process-step__card {
    opacity: 1;
    transform: none;
    transition: none;
  }
}

/* ---------- About / Why ---------- */
.about-grid {
  max-width: var(--container);
  margin: 0 auto;
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 56px;
  align-items: center;
}

.about-grid .section-head {
  margin-bottom: 0;
}

.about-grid .section-title {
  margin-bottom: 18px;
}

.about-grid .section-lead {
  font-size: 17px;
  line-height: 1.65;
}

.why-list {
  list-style: none;
  margin: 0;
  padding: 0;
  display: flex;
  flex-direction: column;
  gap: 14px;
}

.why-item {
  display: flex;
  align-items: flex-start;
  gap: 14px;
  padding: 18px 20px;
  border: 1px solid var(--border);
  border-radius: 12px;
  background: var(--surface);
}

.why-item__icon {
  flex-shrink: 0;
  margin-top: 2px;
  color: var(--cyan);
}

.why-item__text {
  font-size: 16px;
  font-weight: 500;
  color: var(--text);
}

/* ---------- FAQ ---------- */
.faq-list {
  display: flex;
  flex-direction: column;
  gap: 12px;
}

.faq-item {
  border: 1px solid var(--border);
  border-radius: 12px;
  background: var(--surface);
  padding: 2px 20px;
}

.faq-item__summary {
  cursor: pointer;
  list-style: none;
  padding: 18px 0;
  font-size: 16.5px;
  font-weight: 600;
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 16px;
}
.faq-item__summary::-webkit-details-marker {
  display: none;
}

.faq-item__plus {
  color: var(--blue-light);
  font-size: 22px;
  font-weight: 400;
  line-height: 1;
  transition: transform .15s ease;
  flex-shrink: 0;
}
.faq-item[open] .faq-item__plus {
  transform: rotate(45deg);
}

.faq-item__answer {
  margin: 0;
  padding: 0 0 20px;
  font-size: 15px;
  line-height: 1.65;
  color: var(--text-muted);
}

/* ---------- Contact ---------- */
.contact-wrap {
  max-width: 640px;
  margin: 0 auto;
  text-align: center;
}

.contact-wrap .section-head {
  margin: 0 0 40px;
  max-width: none;
}
.contact-wrap .section-lead {
  font-size: 17px;
}

.contact-success {
  padding: 40px 28px;
  border: 1px solid rgba(6, 182, 212, 0.35);
  border-radius: var(--radius-lg);
  background: rgba(6, 182, 212, 0.08);
}
.contact-success svg {
  margin: 0 auto 14px;
}
.contact-success h2 {
  margin: 0 0 8px;
  font-size: 20px;
  font-weight: 700;
}
.contact-success p {
  margin: 0;
  font-size: 15px;
  color: var(--text-muted);
}

.contact-error {
  padding: 18px 20px;
  margin: 0 0 24px;
  border: 1px solid rgba(239, 68, 68, 0.35);
  border-radius: 12px;
  background: rgba(239, 68, 68, 0.08);
  color: #FCA5A5;
  font-size: 14.5px;
  text-align: left;
}

.contact-form {
  display: flex;
  flex-direction: column;
  gap: 16px;
  text-align: left;
}

.form-row {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 16px;
}

.form-field {
  display: flex;
  flex-direction: column;
  gap: 8px;
  font-size: 14px;
  font-weight: 500;
  color: var(--text-muted);
}

.form-field__hint {
  color: var(--text-dim);
  font-weight: 400;
}

.form-input,
.form-textarea {
  padding: 13px 15px;
  border-radius: var(--radius-sm);
  border: 1px solid rgba(248, 250, 252, 0.12);
  background: var(--bg);
  color: var(--text);
  font-size: 15px;
  outline: none;
  transition: border-color .15s ease;
}
.form-input:focus,
.form-textarea:focus {
  border-color: var(--blue-light);
}
.form-textarea {
  resize: vertical;
  font-family: inherit;
}

/* ---------- Footer ---------- */
.site-footer {
  border-top: 1px solid var(--border-soft);
  padding: 40px 24px;
}

.site-footer__inner {
  max-width: var(--container);
  margin: 0 auto;
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  justify-content: space-between;
  gap: 20px;
}

.site-footer__nav {
  display: flex;
  gap: 24px;
  font-size: 14px;
  color: var(--text-muted);
}
.site-footer__nav a {
  text-decoration: none;
}
.site-footer__nav a:hover,
.site-footer__nav a:focus-visible {
  color: var(--text);
}

.site-footer__copy {
  margin: 0;
  font-size: 13px;
  color: var(--text-dim);
}

/* ---------- Responsive ---------- */
@media (max-width: 880px) {
  .site-header__toggle {
    display: inline-flex;
  }

  .site-header__links {
    position: fixed;
    inset: 72px 16px auto 16px;
    flex-direction: column;
    align-items: stretch;
    gap: 4px;
    padding: 12px;
    background: rgba(11, 18, 32, 0.97);
    border: 1px solid var(--border);
    border-radius: var(--radius-md);
    box-shadow: 0 20px 50px rgba(0, 0, 0, 0.45);
    transform: translateY(-12px);
    opacity: 0;
    visibility: hidden;
    pointer-events: none;
    transition: opacity .18s ease, transform .18s ease, visibility .18s;
  }
  .site-header__links.is-open {
    opacity: 1;
    visibility: visible;
    pointer-events: auto;
    transform: translateY(0);
  }
  .site-header__links a {
    display: block;
    padding: 12px 14px;
    border-radius: 8px;
  }
  .site-header__links a:hover,
  .site-header__links a:focus-visible {
    background: rgba(248, 250, 252, 0.06);
  }

  .site-header__cta {
    display: none;
  }

  .about-grid {
    grid-template-columns: 1fr;
    gap: 40px;
  }
}

@media (max-width: 640px) {
  .hero {
    padding: 88px 20px 80px;
  }
  .section {
    padding: 72px 20px;
  }
  .form-row {
    grid-template-columns: 1fr;
  }
  .site-footer__inner {
    justify-content: center;
    text-align: center;
  }
}

@media (prefers-reduced-motion: reduce) {
  html {
    scroll-behavior: auto;
  }
  .hero__glow {
    animation: none;
  }
  * {
    transition-duration: 0.001ms !important;
    animation-duration: 0.001ms !important;
  }
}
