/* ==========================================================
   MSR TechWorks: site styles
   ========================================================== */

/* Self-hosted variable fonts (latin subset) */
@font-face {
  font-family: "Inter";
  src: url("../fonts/inter-latin.woff2") format("woff2");
  font-weight: 400 600;
  font-style: normal;
  font-display: swap;
}
@font-face {
  font-family: "Space Grotesk";
  src: url("../fonts/space-grotesk-latin.woff2") format("woff2");
  font-weight: 500 700;
  font-style: normal;
  font-display: swap;
}

:root {
  --navy-950: #060d1c;
  --navy-900: #0a1428;
  --navy-800: #111f3d;
  --navy-700: #1b2d55;
  --blue-500: #2f7cf6;
  --blue-400: #4d9bff;
  --cyan-400: #22d3ee;

  --ink: #0d1626;
  --ink-soft: #4a5568;
  --ink-mute: #6b7686;
  --surface: #ffffff;
  --surface-alt: #f4f7fb;
  --line: #e3e9f2;

  --radius: 16px;
  --radius-sm: 10px;
  --shadow-sm: 0 1px 2px rgba(13, 22, 38, .06), 0 1px 3px rgba(13, 22, 38, .08);
  --shadow-lg: 0 20px 40px -12px rgba(13, 22, 38, .18);

  --font-body: "Inter", system-ui, -apple-system, "Segoe UI", Roboto, sans-serif;
  --font-head: "Space Grotesk", "Inter", system-ui, sans-serif;

  --container: 1180px;
  --header-h: 72px;
}

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

html { scroll-behavior: smooth; scroll-padding-top: calc(var(--header-h) + 12px); }

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

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

a { color: inherit; text-decoration: none; }

h1, h2, h3, h4 {
  font-family: var(--font-head);
  line-height: 1.15;
  letter-spacing: -0.02em;
  margin: 0 0 .5em;
  text-wrap: balance;
}

h2 { font-size: clamp(1.9rem, 3.2vw, 2.6rem); }
h3 { font-size: 1.2rem; letter-spacing: -0.01em; }
p  { margin: 0 0 1em; }

.container {
  width: 100%;
  max-width: var(--container);
  margin-inline: auto;
  padding-inline: 24px;
}

:focus-visible {
  outline: 2px solid var(--blue-400);
  outline-offset: 3px;
  border-radius: 6px;
}

.skip-link {
  position: absolute;
  left: 16px;
  top: -60px;
  z-index: 100;
  padding: 10px 16px;
  background: var(--blue-500);
  color: #fff;
  border-radius: var(--radius-sm);
}
.skip-link:focus { top: 12px; }

/* ---------- Buttons ---------- */

.btn {
  display: inline-flex;
  align-items: center;
  gap: .5rem;
  padding: .85rem 1.4rem;
  border-radius: 999px;
  font-weight: 600;
  font-size: 1rem;
  line-height: 1;
  border: 1px solid transparent;
  transition: transform .2s ease, background-color .2s ease, border-color .2s ease, box-shadow .2s ease;
}
.btn svg { width: 18px; height: 18px; fill: none; stroke: currentColor; stroke-width: 2; stroke-linecap: round; stroke-linejoin: round; transition: transform .2s ease; }
.btn:hover svg { transform: translateX(3px); }

.btn-primary {
  background: linear-gradient(135deg, var(--blue-500), #1f63d8);
  color: #fff;
  box-shadow: 0 8px 24px -8px rgba(47, 124, 246, .6);
}
.btn-primary:hover { transform: translateY(-1px); box-shadow: 0 12px 28px -8px rgba(47, 124, 246, .75); }

.btn-ghost {
  color: #fff;
  border-color: rgba(255, 255, 255, .22);
  background: rgba(255, 255, 255, .04);
}
.btn-ghost:hover { border-color: rgba(255, 255, 255, .5); background: rgba(255, 255, 255, .08); }

.btn-sm { padding: .6rem 1.1rem; font-size: .925rem; }

/* ---------- Header ---------- */

.site-header {
  position: fixed;
  inset: 0 0 auto 0;
  z-index: 50;
  height: var(--header-h);
  transition: background-color .3s ease, box-shadow .3s ease, border-color .3s ease;
  border-bottom: 1px solid transparent;
}
.site-header.scrolled {
  background: rgba(10, 20, 40, .82);
  backdrop-filter: saturate(160%) blur(14px);
  -webkit-backdrop-filter: saturate(160%) blur(14px);
  border-bottom-color: rgba(255, 255, 255, .06);
}

.header-inner {
  height: 100%;
  display: flex;
  align-items: center;
  justify-content: space-between;
}

.brand { display: inline-flex; align-items: center; gap: .7rem; color: #fff; }
.brand-mark {
  display: grid;
  place-items: center;
  width: 40px;
  height: 40px;
  border-radius: 50%;
  background: #000;
  color: #fff;
  font-family: var(--font-head);
  font-weight: 700;
  font-size: .8rem;
  letter-spacing: .02em;
  box-shadow: inset 0 0 0 1px rgba(255, 255, 255, .18), 0 0 0 3px rgba(47, 124, 246, .25);
}
.brand-name { font-family: var(--font-head); font-weight: 700; font-size: 1.2rem; letter-spacing: -0.01em; }
.brand-name span { font-weight: 500; opacity: .75; }

.site-nav { display: flex; align-items: center; gap: 2rem; }
.site-nav a:not(.btn) {
  color: rgba(255, 255, 255, .78);
  font-weight: 500;
  font-size: .95rem;
  position: relative;
  transition: color .2s ease;
}
.site-nav a:not(.btn)::after {
  content: "";
  position: absolute;
  left: 0; right: 0; bottom: -6px;
  height: 2px;
  background: var(--cyan-400);
  transform: scaleX(0);
  transform-origin: left;
  transition: transform .25s ease;
}
.site-nav a:not(.btn):hover,
.site-nav a.active { color: #fff; }
.site-nav a:not(.btn):hover::after,
.site-nav a.active::after { transform: scaleX(1); }

.site-nav .nav-phone { display: inline-flex; align-items: center; gap: .45rem; color: #fff; }
.site-nav .nav-phone svg { width: 16px; height: 16px; fill: none; stroke: var(--cyan-400); stroke-width: 2; stroke-linecap: round; stroke-linejoin: round; }

.nav-toggle {
  display: none;
  width: 44px;
  height: 44px;
  border: 0;
  background: transparent;
  cursor: pointer;
  padding: 10px;
  flex-direction: column;
  justify-content: center;
  gap: 5px;
}
.nav-toggle span { display: block; height: 2px; background: #fff; border-radius: 2px; transition: transform .25s ease, opacity .25s ease; }
.nav-toggle[aria-expanded="true"] span:nth-child(1) { transform: translateY(7px) rotate(45deg); }
.nav-toggle[aria-expanded="true"] span:nth-child(2) { opacity: 0; }
.nav-toggle[aria-expanded="true"] span:nth-child(3) { transform: translateY(-7px) rotate(-45deg); }

/* ---------- Hero ---------- */

.hero {
  position: relative;
  overflow: hidden;
  background: radial-gradient(1200px 600px at 80% -10%, var(--navy-700), transparent 60%), var(--navy-900);
  color: #fff;
  padding: calc(var(--header-h) + 72px) 0 104px;
}

.hero-bg { position: absolute; inset: 0; pointer-events: none; }
.glow { position: absolute; border-radius: 50%; filter: blur(80px); opacity: .55; }
.glow-1 { width: 520px; height: 520px; background: var(--blue-500); top: -180px; right: -120px; opacity: .35; }
.glow-2 { width: 420px; height: 420px; background: var(--cyan-400); bottom: -260px; left: -120px; opacity: .18; }
.grid-lines {
  position: absolute;
  inset: 0;
  background-image:
    linear-gradient(rgba(255, 255, 255, .045) 1px, transparent 1px),
    linear-gradient(90deg, rgba(255, 255, 255, .045) 1px, transparent 1px);
  background-size: 56px 56px;
  mask-image: radial-gradient(ellipse 70% 60% at 50% 40%, #000 30%, transparent 80%);
  -webkit-mask-image: radial-gradient(ellipse 70% 60% at 50% 40%, #000 30%, transparent 80%);
}

.hero-inner {
  position: relative;
  display: grid;
  grid-template-columns: 1.15fr .85fr;
  gap: 64px;
  align-items: center;
}

.eyebrow {
  display: inline-flex;
  align-items: center;
  gap: .6rem;
  padding: .4rem .9rem;
  border-radius: 999px;
  background: rgba(255, 255, 255, .06);
  border: 1px solid rgba(255, 255, 255, .12);
  font-size: .85rem;
  font-weight: 500;
  color: rgba(255, 255, 255, .85);
  margin-bottom: 1.5rem;
}
.eyebrow .dot { width: 8px; height: 8px; border-radius: 50%; background: #34d399; box-shadow: 0 0 0 4px rgba(52, 211, 153, .2); }

.hero h1 {
  font-size: clamp(2.6rem, 6vw, 4.4rem);
  font-weight: 700;
  letter-spacing: -0.035em;
  margin-bottom: 1.25rem;
}
.gradient-text {
  background: linear-gradient(90deg, var(--blue-400), var(--cyan-400));
  -webkit-background-clip: text;
  background-clip: text;
  color: transparent;
}

.lead { font-size: 1.2rem; color: rgba(255, 255, 255, .74); max-width: 36rem; margin-bottom: 2.25rem; }

.hero-actions { display: flex; flex-wrap: wrap; gap: .9rem; }

/* status panel */
.hero-panel {
  background: linear-gradient(180deg, rgba(255, 255, 255, .08), rgba(255, 255, 255, .03));
  border: 1px solid rgba(255, 255, 255, .12);
  border-radius: 20px;
  padding: 22px;
  backdrop-filter: blur(10px);
  -webkit-backdrop-filter: blur(10px);
  box-shadow: 0 30px 60px -20px rgba(0, 0, 0, .55);
}
.panel-head { display: flex; align-items: center; gap: 12px; padding-bottom: 16px; border-bottom: 1px solid rgba(255, 255, 255, .08); margin-bottom: 8px; }
.panel-dots { display: flex; gap: 6px; }
.panel-dots i { width: 10px; height: 10px; border-radius: 50%; background: rgba(255, 255, 255, .2); }
.panel-title { font-size: .85rem; color: rgba(255, 255, 255, .7); font-weight: 500; }

.panel-list { list-style: none; margin: 0; padding: 0; }
.panel-list li {
  display: flex;
  align-items: center;
  gap: 12px;
  padding: 12px 4px;
  font-size: .95rem;
  color: rgba(255, 255, 255, .88);
  border-bottom: 1px dashed rgba(255, 255, 255, .07);
}
.panel-list li:last-child { border-bottom: 0; }
.panel-list b { margin-left: auto; font-weight: 500; font-size: .82rem; color: #6ee7b7; }
.panel-list li:last-child b { color: #7dd3fc; }

.status { width: 9px; height: 9px; border-radius: 50%; flex: none; }
.status.ok { background: #34d399; box-shadow: 0 0 0 0 rgba(52, 211, 153, .6); animation: pulse 2.4s infinite; }
.status.info { background: #38bdf8; }

@keyframes pulse {
  0%   { box-shadow: 0 0 0 0 rgba(52, 211, 153, .55); }
  70%  { box-shadow: 0 0 0 8px rgba(52, 211, 153, 0); }
  100% { box-shadow: 0 0 0 0 rgba(52, 211, 153, 0); }
}

.panel-bar { height: 6px; border-radius: 99px; background: rgba(255, 255, 255, .08); overflow: hidden; margin: 14px 0 12px; }
.panel-bar span { display: block; height: 100%; width: 100%; background: linear-gradient(90deg, var(--blue-500), var(--cyan-400)); transform-origin: left; animation: fill 2.2s ease-out both .4s; }
@keyframes fill { from { transform: scaleX(0); } to { transform: scaleX(1); } }
.panel-foot { margin: 0; font-size: .85rem; color: rgba(255, 255, 255, .6); }

/* ---------- Sections ---------- */

.section { padding: 112px 0; }
.section-alt { background: var(--surface-alt); }

.section-kicker {
  display: inline-block;
  font-size: .8rem;
  font-weight: 600;
  letter-spacing: .14em;
  text-transform: uppercase;
  color: var(--blue-500);
  margin-bottom: .9rem;
}

.section-head { max-width: 680px; margin: 0 auto 56px; text-align: center; }
.section-head p:last-child { color: var(--ink-soft); font-size: 1.1rem; }

/* About */
.about-grid {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 72px;
  align-items: start;
}
.about-grid > div > p { color: var(--ink-soft); }

.pillars { list-style: none; margin: 0; padding: 0; display: grid; gap: 16px; }
.pillar {
  display: flex;
  gap: 18px;
  padding: 22px;
  background: var(--surface);
  border: 1px solid var(--line);
  border-radius: var(--radius);
  transition: border-color .25s ease, box-shadow .25s ease, transform .25s ease;
}
.pillar:hover { border-color: #c9d8ef; box-shadow: var(--shadow-lg); transform: translateY(-2px); }
.pillar h3 { margin-bottom: .25rem; font-size: 1.1rem; }
.pillar p { margin: 0; color: var(--ink-soft); font-size: .98rem; }

.pillar-icon, .card-icon {
  flex: none;
  display: grid;
  place-items: center;
  width: 48px;
  height: 48px;
  border-radius: 12px;
  background: linear-gradient(135deg, rgba(47, 124, 246, .12), rgba(34, 211, 238, .12));
  color: var(--blue-500);
}
.pillar-icon svg, .card-icon svg, .contact-tile svg {
  width: 24px; height: 24px;
  fill: none; stroke: currentColor; stroke-width: 1.8; stroke-linecap: round; stroke-linejoin: round;
}

/* Services */
.cards {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 24px;
}
.card {
  position: relative;
  padding: 32px 28px;
  background: var(--surface);
  border: 1px solid var(--line);
  border-radius: var(--radius);
  box-shadow: var(--shadow-sm);
  overflow: hidden;
  transition: transform .3s ease, box-shadow .3s ease, border-color .3s ease;
}
.card::before {
  content: "";
  position: absolute;
  inset: 0 0 auto 0;
  height: 3px;
  background: linear-gradient(90deg, var(--blue-500), var(--cyan-400));
  transform: scaleX(0);
  transform-origin: left;
  transition: transform .35s ease;
}
.card:hover { transform: translateY(-4px); box-shadow: var(--shadow-lg); border-color: #cfdcf0; }
.card:hover::before { transform: scaleX(1); }
.card .card-icon { margin-bottom: 22px; }
.card h3 { margin-bottom: .6rem; }
.card p { margin: 0; color: var(--ink-soft); font-size: .98rem; }

.card-featured {
  grid-column: span 2;
  background:
    radial-gradient(500px 220px at 100% 0%, rgba(47, 124, 246, .10), transparent 70%),
    var(--surface);
  border-color: #cddcf3;
}
.card-featured p { max-width: 40rem; }

.card-cta {
  display: flex;
  flex-direction: column;
  color: #fff;
  border-color: transparent;
  background:
    radial-gradient(360px 200px at 100% 0%, rgba(47, 124, 246, .55), transparent 70%),
    var(--navy-900);
}
.card-cta p { color: rgba(255, 255, 255, .72); margin-bottom: 24px; }
.card-cta:hover { border-color: transparent; }
.card-cta-link {
  margin-top: auto;
  display: inline-flex;
  align-items: center;
  gap: .5rem;
  font-weight: 600;
  color: var(--cyan-400);
}
.card-cta-link svg { width: 18px; height: 18px; fill: none; stroke: currentColor; stroke-width: 2; stroke-linecap: round; stroke-linejoin: round; transition: transform .2s ease; }
.card-cta:hover .card-cta-link svg { transform: translateX(4px); }

/* Approach */
.steps {
  list-style: none;
  margin: 0;
  padding: 0;
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 24px;
  counter-reset: step;
}
.step {
  position: relative;
  padding: 32px 28px;
  border-radius: var(--radius);
  border: 1px solid var(--line);
  background: linear-gradient(180deg, var(--surface), var(--surface-alt));
}
.step-num {
  display: inline-block;
  font-family: var(--font-head);
  font-weight: 700;
  font-size: 2.4rem;
  line-height: 1;
  margin-bottom: 18px;
  background: linear-gradient(135deg, var(--blue-500), var(--cyan-400));
  -webkit-background-clip: text;
  background-clip: text;
  color: transparent;
}
.step p { margin: 0; color: var(--ink-soft); }

/* Testimonials (hidden until filled in) */
.quotes { display: grid; grid-template-columns: repeat(3, 1fr); gap: 24px; }
.quote {
  margin: 0;
  padding: 32px 28px;
  background: var(--surface);
  border: 1px solid var(--line);
  border-radius: var(--radius);
  box-shadow: var(--shadow-sm);
  display: flex;
  flex-direction: column;
}
.quote blockquote { margin: 0 0 24px; font-size: 1.05rem; color: var(--ink); }
.quote blockquote::before { content: "\201C"; display: block; font-family: var(--font-head); font-size: 3rem; line-height: .8; color: var(--blue-400); margin-bottom: 8px; }
.quote figcaption { margin-top: auto; font-size: .92rem; color: var(--ink-mute); }
.quote figcaption strong { display: block; color: var(--ink); font-weight: 600; }

/* Team (hidden until filled in) */
.team { display: grid; grid-template-columns: repeat(auto-fit, minmax(240px, 320px)); justify-content: center; gap: 24px; }
.member { text-align: center; padding: 32px 24px; border: 1px solid var(--line); border-radius: var(--radius); background: var(--surface); }
.member img { width: 120px; height: 120px; border-radius: 50%; object-fit: cover; margin: 0 auto 18px; box-shadow: 0 0 0 4px var(--surface-alt), 0 0 0 5px var(--line); }
.member h3 { margin-bottom: .2rem; }
.member .role { color: var(--blue-500); font-weight: 600; font-size: .92rem; margin-bottom: .8rem; }
.member p { color: var(--ink-soft); font-size: .96rem; margin: 0; }

/* FAQ (hidden until filled in) */
.faq { max-width: 820px; margin: 0 auto; display: grid; gap: 12px; }
.faq details { border: 1px solid var(--line); border-radius: var(--radius-sm); background: var(--surface); transition: border-color .2s ease, box-shadow .2s ease; }
.faq details[open] { border-color: #c9d8ef; box-shadow: var(--shadow-sm); }
.faq summary {
  list-style: none;
  cursor: pointer;
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 16px;
  padding: 20px 24px;
  font-family: var(--font-head);
  font-weight: 600;
  font-size: 1.08rem;
}
.faq summary::-webkit-details-marker { display: none; }
.faq summary::after { content: "+"; font-size: 1.5rem; line-height: 1; color: var(--blue-500); transition: transform .2s ease; }
.faq details[open] summary::after { transform: rotate(45deg); }
.faq details p { margin: 0; padding: 0 24px 22px; color: var(--ink-soft); }

/* Contact CTA */
#contact { padding-top: 0; }
.cta {
  position: relative;
  overflow: hidden;
  display: grid;
  grid-template-columns: 1.2fr 1fr;
  gap: 48px;
  align-items: center;
  padding: 56px;
  border-radius: 24px;
  color: #fff;
  background:
    radial-gradient(600px 300px at 100% 0%, rgba(47, 124, 246, .45), transparent 60%),
    radial-gradient(500px 300px at 0% 100%, rgba(34, 211, 238, .18), transparent 60%),
    var(--navy-900);
}
.cta h2 { font-size: clamp(1.7rem, 3vw, 2.3rem); }
.cta-copy p { margin: 0; color: rgba(255, 255, 255, .72); font-size: 1.1rem; }

.cta-actions { display: grid; gap: 14px; }
.contact-tile {
  display: flex;
  align-items: center;
  gap: 16px;
  padding: 18px 20px;
  border-radius: 14px;
  background: rgba(255, 255, 255, .06);
  border: 1px solid rgba(255, 255, 255, .12);
  font-weight: 600;
  transition: background-color .2s ease, border-color .2s ease, transform .2s ease;
}
.contact-tile:hover { background: rgba(255, 255, 255, .1); border-color: rgba(255, 255, 255, .3); transform: translateY(-2px); }
.contact-tile svg { color: var(--cyan-400); flex: none; }
.contact-tile span { display: flex; flex-direction: column; line-height: 1.35; word-break: break-word; }
.contact-tile small { font-weight: 500; font-size: .8rem; color: rgba(255, 255, 255, .6); }

/* Contact + form */
.cta.contact { align-items: start; grid-template-columns: 1fr 1.1fr; }
.cta.contact .section-kicker { color: var(--cyan-400); }
.cta.contact .cta-copy > p { margin-bottom: 1.5rem; }
.cta.contact .cta-actions { margin-top: 2rem; }

.checklist { list-style: none; margin: 0; padding: 0; display: grid; gap: .7rem; }
.checklist li { position: relative; padding-left: 2rem; color: rgba(255, 255, 255, .85); }
.checklist li::before {
  content: "";
  position: absolute;
  left: 0; top: .2em;
  width: 1.25rem; height: 1.25rem;
  border-radius: 50%;
  background: rgba(34, 211, 238, .15) url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 24 24' fill='none' stroke='%2322d3ee' stroke-width='3' stroke-linecap='round' stroke-linejoin='round'%3E%3Cpath d='M6 12.5l4 4 8-9'/%3E%3C/svg%3E") center / 70% no-repeat;
}

.contact-form {
  background: var(--surface);
  color: var(--ink);
  border-radius: 18px;
  padding: 32px;
  box-shadow: 0 30px 60px -24px rgba(0, 0, 0, .5);
}
.contact-form h3 { font-size: 1.35rem; margin-bottom: 1.25rem; }

.form-grid { display: grid; grid-template-columns: 1fr 1fr; gap: 16px; }
.field { display: grid; gap: 6px; }
.field-full { grid-column: 1 / -1; }
.field > span { font-size: .88rem; font-weight: 600; color: var(--ink); }
.field em { font-style: normal; color: var(--blue-500); }
.field input, .field select, .field textarea {
  width: 100%;
  font: inherit;
  font-size: 1rem;
  color: var(--ink);
  background: var(--surface-alt);
  border: 1px solid var(--line);
  border-radius: var(--radius-sm);
  padding: .75rem .9rem;
  transition: border-color .2s ease, box-shadow .2s ease, background-color .2s ease;
}
.field textarea { resize: vertical; min-height: 120px; }
.field select {
  appearance: none;
  padding-right: 2.5rem;
  background-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 24 24' fill='none' stroke='%234a5568' stroke-width='2' stroke-linecap='round' stroke-linejoin='round'%3E%3Cpath d='M6 9l6 6 6-6'/%3E%3C/svg%3E");
  background-repeat: no-repeat;
  background-position: right .8rem center;
  background-size: 18px;
}
.field input:focus, .field select:focus, .field textarea:focus {
  outline: none;
  background-color: var(--surface);
  border-color: var(--blue-400);
  box-shadow: 0 0 0 4px rgba(47, 124, 246, .15);
}
.field input:user-invalid, .field textarea:user-invalid { border-color: #e05252; }

.hp { position: absolute; left: -10000px; width: 1px; height: 1px; overflow: hidden; }
.turnstile-slot:not(:empty) { margin-top: 16px; }

.btn-block { width: 100%; justify-content: center; margin-top: 20px; padding: 1rem; cursor: pointer; }
.btn[disabled] { opacity: .65; cursor: progress; transform: none; }

.form-status { margin: 14px 0 0; font-size: .95rem; font-weight: 500; }
.form-status:empty { display: none; }
.form-status.is-success { color: #0f8a5f; }
.form-status.is-error { color: #c53030; }
.form-note { margin: 12px 0 0; font-size: .82rem; color: var(--ink-mute); }

/* ---------- Footer ---------- */

.site-footer { background: var(--navy-950); color: rgba(255, 255, 255, .7); padding: 72px 0 28px; font-size: .95rem; }
.footer-grid {
  display: grid;
  grid-template-columns: 1.6fr 1fr 1.3fr 1.3fr;
  gap: 40px;
  padding-bottom: 48px;
  border-bottom: 1px solid rgba(255, 255, 255, .08);
}
.footer-tag { margin-top: 16px; max-width: 280px; }
.site-footer h4 { color: #fff; font-size: .9rem; letter-spacing: .04em; margin-bottom: 1rem; }
.site-footer ul { list-style: none; margin: 0; padding: 0; display: grid; gap: .55rem; }
.site-footer a:hover { color: #fff; }

.footer-bottom {
  display: flex;
  justify-content: space-between;
  align-items: center;
  gap: 16px;
  padding-top: 24px;
  font-size: .875rem;
}
.footer-bottom p { margin: 0; }

/* ---------- 404 page ---------- */

.nf { min-height: 100vh; display: grid; place-items: center; text-align: center; padding: 48px 24px; }
.nf-inner { position: relative; }
.nf-code { font-family: var(--font-head); font-weight: 700; font-size: clamp(5rem, 18vw, 9rem); line-height: 1; margin: 24px 0 8px; }
.nf .nf-title { font-size: clamp(1.6rem, 4vw, 2.2rem); }
.nf p { color: rgba(255, 255, 255, .72); max-width: 30rem; margin: 0 auto 2rem; }
.nf .hero-actions { justify-content: center; }

/* ---------- Reveal animation ---------- */

.js .reveal { opacity: 0; transform: translateY(18px); transition: opacity .7s ease, transform .7s ease; }
.js .reveal.in { opacity: 1; transform: none; }

@media (prefers-reduced-motion: reduce) {
  html { scroll-behavior: auto; }
  *, *::before, *::after { animation: none !important; transition: none !important; }
  .js .reveal { opacity: 1; transform: none; }
}

/* ---------- Responsive ---------- */

@media (max-width: 1100px) and (min-width: 821px) {
  .site-nav .nav-phone { display: none; }
}

@media (max-width: 1024px) {
  .quotes { grid-template-columns: 1fr; max-width: 640px; margin-inline: auto; }
  .hero-inner { grid-template-columns: 1fr; gap: 48px; }
  .hero-panel { max-width: 520px; }
  .about-grid { grid-template-columns: 1fr; gap: 40px; }
  .cards { grid-template-columns: repeat(2, 1fr); }
  .card-cta { grid-column: span 2; }
  .cta.contact { grid-template-columns: 1fr; }
  .cta { grid-template-columns: 1fr; padding: 44px; }
  .footer-grid { grid-template-columns: 1fr 1fr; }
}

@media (max-width: 820px) {
  .nav-toggle { display: flex; }
  .site-nav {
    position: fixed;
    top: var(--header-h);
    left: 0; right: 0;
    flex-direction: column;
    align-items: stretch;
    gap: 0;
    padding: 12px 24px 24px;
    background: rgba(10, 20, 40, .97);
    backdrop-filter: blur(14px);
    -webkit-backdrop-filter: blur(14px);
    border-bottom: 1px solid rgba(255, 255, 255, .08);
    transform: translateY(-8px);
    opacity: 0;
    visibility: hidden;
    transition: opacity .2s ease, transform .2s ease, visibility .2s;
  }
  .site-nav.open { opacity: 1; transform: none; visibility: visible; }
  .site-nav a:not(.btn) { padding: 14px 0; border-bottom: 1px solid rgba(255, 255, 255, .06); font-size: 1.05rem; }
  .site-nav a:not(.btn)::after { display: none; }
  .site-nav .btn { margin-top: 16px; justify-content: center; }
  .site-header.menu-open { background: rgba(10, 20, 40, .97); }

  .steps { grid-template-columns: 1fr; }
}

@media (max-width: 640px) {
  body { font-size: 1rem; }
  .section { padding: 80px 0; }
  .hero { padding: calc(var(--header-h) + 48px) 0 80px; }
  .cards { grid-template-columns: 1fr; }
  .card-featured, .card-cta { grid-column: auto; }
  .form-grid { grid-template-columns: 1fr; }
  .contact-form { padding: 24px 20px; }
  .cta { padding: 32px 24px; border-radius: 20px; }
  .footer-grid { grid-template-columns: 1fr; gap: 32px; }
  .footer-bottom { flex-direction: column; text-align: center; }
}
