:root {
  --surface: #f8f9ff;
  --surface-low: #eff4ff;
  --surface-card: #ffffff;
  --surface-blue: #dce9ff;
  --slate: #0f172a;
  --charcoal: #1e293b;
  --text: #0b1c30;
  --muted: #45464d;
  --line: #c6c6cd;
  --blue: #2563eb;
  --blue-dark: #0051d5;
  --orange: #f97316;
  --shadow: 0 24px 70px rgba(15, 23, 42, 0.13);
  --radius: 8px;
  --ease: cubic-bezier(0.16, 1, 0.3, 1);
}

* {
  box-sizing: border-box;
}

html {
  scroll-behavior: smooth;
}

body {
  margin: 0;
  background: var(--surface);
  color: var(--text);
  font-family: Inter, ui-sans-serif, system-ui, -apple-system, BlinkMacSystemFont, "Segoe UI", sans-serif;
  overflow-x: hidden;
}

body.drawer-open {
  overflow: hidden;
}

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

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

button,
input,
select,
textarea {
  font: inherit;
}

.site-header {
  position: fixed;
  z-index: 30;
  top: 0;
  left: 0;
  right: 0;
  display: flex;
  align-items: center;
  justify-content: space-between;
  height: 64px;
  padding: 0 16px;
  background: rgba(248, 249, 255, 0.82);
  border-bottom: 1px solid rgba(198, 198, 205, 0.55);
  backdrop-filter: blur(18px);
  transition: box-shadow 0.22s ease, background 0.22s ease;
}

.site-header.scrolled {
  background: rgba(248, 249, 255, 0.94);
  box-shadow: 0 10px 30px rgba(15, 23, 42, 0.08);
}

.brand,
.header-cta,
.desktop-nav a,
.mono-line,
.button,
.service-index,
label,
.trust-strip,
.ba-label {
  font-family: "SFMono-Regular", "Cascadia Code", "JetBrains Mono", Consolas, monospace;
  font-size: 12px;
  font-weight: 700;
  letter-spacing: 0.08em;
  text-transform: uppercase;
}

.brand {
  display: inline-flex;
  align-items: center;
  gap: 10px;
  color: var(--slate);
  text-transform: none;
  letter-spacing: 0;
}

.brand-mark {
  display: grid;
  place-items: center;
  width: 38px;
  height: 32px;
  color: white;
  background: var(--slate);
  clip-path: polygon(50% 0, 100% 42%, 100% 100%, 0 100%, 0 42%);
  font-size: 10px;
  line-height: 1;
  letter-spacing: 0.02em;
}

.desktop-nav,
.header-cta {
  display: none;
}

.menu-button {
  width: 42px;
  height: 42px;
  display: grid;
  place-content: center;
  gap: 6px;
  border: 0;
  background: transparent;
}

.menu-button span {
  width: 22px;
  height: 2px;
  background: var(--slate);
}

.mobile-drawer {
  position: fixed;
  z-index: 50;
  inset: 0 auto 0 0;
  width: min(84vw, 360px);
  padding: 22px;
  display: flex;
  flex-direction: column;
  gap: 18px;
  background: var(--surface-card);
  box-shadow: var(--shadow);
  transform: translateX(-105%);
  transition: transform 0.32s var(--ease);
}

.drawer-open .mobile-drawer {
  transform: translateX(0);
}

.drawer-close {
  align-self: flex-end;
  border: 0;
  color: var(--blue);
  background: transparent;
}

.mobile-drawer a {
  padding: 14px 12px;
  border-bottom: 1px solid var(--line);
  font-family: "Hanken Grotesk", "Arial Black", "Segoe UI", sans-serif;
  font-size: 30px;
  font-weight: 800;
}

.drawer-phone {
  margin-top: auto;
  color: var(--blue);
}

.drawer-scrim {
  position: fixed;
  z-index: 45;
  inset: 0;
  border: 0;
  background: rgba(15, 23, 42, 0.38);
  opacity: 0;
  pointer-events: none;
  transition: opacity 0.25s ease;
}

.drawer-open .drawer-scrim {
  opacity: 1;
  pointer-events: auto;
}

.hero {
  position: relative;
  min-height: 100svh;
  padding: 92px 16px 24px;
  display: flex;
  flex-direction: column;
  justify-content: flex-end;
  overflow: hidden;
  color: white;
  background: var(--slate);
}

.hero-media {
  position: absolute;
  inset: 0;
  overflow: hidden;
}

.hero-media::after {
  content: "";
  position: absolute;
  inset: 0;
  background:
    linear-gradient(180deg, rgba(15, 23, 42, 0.12), rgba(15, 23, 42, 0.42) 34%, rgba(15, 23, 42, 0.96)),
    radial-gradient(circle at 76% 18%, rgba(37, 99, 235, 0.26), transparent 34%);
}

.hero-bg,
.hero-fg {
  position: absolute;
  inset: 0;
  width: 100%;
  height: 100%;
  object-fit: cover;
}

.hero-bg {
  opacity: 0.74;
  transform: scale(1.08);
}

.hero-fg {
  opacity: 0.18;
  mix-blend-mode: screen;
  transform: scale(1.18);
}

.hero-content,
.hero-proof {
  position: relative;
  z-index: 1;
}

.mono-line {
  color: var(--blue);
  margin: 0 0 14px;
}

.hero .mono-line {
  color: #bcd2ff;
}

h1,
h2,
h3 {
  font-family: "Hanken Grotesk", "Arial Black", "Segoe UI", sans-serif;
  letter-spacing: 0;
  margin: 0;
}

h1 {
  max-width: 980px;
  font-size: clamp(43px, 13vw, 94px);
  line-height: 0.92;
  font-weight: 900;
}

h2 {
  font-size: clamp(34px, 9vw, 64px);
  line-height: 0.98;
  font-weight: 850;
}

h3 {
  font-size: clamp(26px, 7vw, 42px);
  line-height: 1;
  font-weight: 800;
}

p {
  color: var(--muted);
  line-height: 1.7;
}

.hero p {
  max-width: 640px;
  color: #eaf1ff;
  font-size: 17px;
}

.hero-actions {
  display: grid;
  gap: 12px;
  margin-top: 26px;
}

.button {
  position: relative;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  min-height: 52px;
  padding: 0 22px;
  border-radius: 4px;
  border: 1px solid transparent;
  cursor: pointer;
  transition: transform 0.24s var(--ease), background 0.2s ease, border-color 0.2s ease;
}

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

.button.primary {
  color: white;
  background: var(--blue);
  box-shadow: 0 16px 36px rgba(37, 99, 235, 0.25);
}

.button.ghost {
  color: white;
  border-color: rgba(255, 255, 255, 0.62);
  background: rgba(255, 255, 255, 0.05);
  backdrop-filter: blur(10px);
}

.hero-proof {
  display: grid;
  grid-template-columns: 1fr;
  gap: 10px;
  margin-top: 26px;
}

.hero-proof div {
  padding: 14px;
  background: rgba(255, 255, 255, 0.09);
  border: 1px solid rgba(255, 255, 255, 0.16);
  border-radius: var(--radius);
  backdrop-filter: blur(12px);
}

.hero-proof strong {
  display: block;
  font-family: "Hanken Grotesk", "Arial Black", "Segoe UI", sans-serif;
  font-size: 32px;
  line-height: 1;
}

.hero-proof span {
  color: #dce9ff;
  font-size: 13px;
}

.trust-strip {
  display: flex;
  gap: 18px;
  padding: 18px 16px;
  overflow: hidden;
  color: var(--muted);
  background: white;
  border-bottom: 1px solid var(--line);
  white-space: nowrap;
}

.trust-strip span {
  flex: 0 0 auto;
}

.section {
  width: min(100% - 32px, 1180px);
  margin: 0 auto;
  padding: 72px 0;
}

.intro-grid {
  display: grid;
  gap: 24px;
}

.intro-grid p {
  margin: 0;
  font-size: 18px;
}

.service-stack {
  width: min(100% - 32px, 1180px);
  margin: 0 auto;
  display: grid;
  gap: 18px;
}

.service-card {
  position: sticky;
  top: 76px;
  display: grid;
  gap: 0;
  overflow: hidden;
  border: 1px solid rgba(198, 198, 205, 0.8);
  border-radius: var(--radius);
  background: white;
  box-shadow: 0 20px 54px rgba(15, 23, 42, 0.08);
}

.service-card:nth-child(2) {
  top: 92px;
}

.service-card:nth-child(3) {
  top: 108px;
}

.service-card img {
  width: 100%;
  height: 250px;
  object-fit: cover;
}

.service-card div {
  padding: 24px;
}

.service-index {
  display: inline-block;
  margin-bottom: 14px;
  color: var(--blue);
}

.service-card p {
  margin-bottom: 18px;
}

.service-card ul {
  display: grid;
  gap: 10px;
  margin: 0;
  padding: 0;
  list-style: none;
}

.service-card li {
  color: var(--charcoal);
}

.service-card li::before {
  content: "";
  display: inline-block;
  width: 7px;
  height: 7px;
  margin-right: 10px;
  border: 2px solid var(--blue);
  border-radius: 50%;
}

.split-proof,
.estimator,
.contact-grid {
  display: grid;
  gap: 28px;
}

.proof-list {
  display: flex;
  flex-wrap: wrap;
  gap: 8px;
  margin-top: 24px;
}

.proof-list span {
  padding: 8px 10px;
  color: var(--blue-dark);
  background: var(--surface-blue);
  border-radius: 4px;
  font-family: "SFMono-Regular", "Cascadia Code", "JetBrains Mono", Consolas, monospace;
  font-size: 11px;
  font-weight: 700;
  text-transform: uppercase;
}

.before-after {
  position: relative;
  min-height: 430px;
  overflow: hidden;
  border-radius: var(--radius);
  background: var(--slate);
  box-shadow: var(--shadow);
}

.before-after img {
  position: absolute;
  inset: 0;
  width: 100%;
  height: 100%;
  object-fit: cover;
}

.before-after .after {
  clip-path: inset(0 45% 0 0);
}

.before-after input {
  position: absolute;
  z-index: 3;
  inset: auto 18px 18px;
  width: calc(100% - 36px);
  accent-color: var(--blue);
}

.ba-label {
  position: absolute;
  z-index: 2;
  top: 16px;
  padding: 8px 10px;
  color: white;
  background: rgba(15, 23, 42, 0.76);
  border-radius: 4px;
}

.ba-label.before {
  left: 16px;
}

.ba-label.after-label {
  right: 16px;
}

.estimator {
  align-items: start;
  padding-top: 88px;
}

.estimate-panel,
.contact-form {
  display: grid;
  gap: 16px;
  padding: 18px;
  background: white;
  border: 1px solid var(--line);
  border-radius: var(--radius);
  box-shadow: var(--shadow);
}

label {
  display: grid;
  gap: 8px;
  color: var(--muted);
}

input,
select,
textarea {
  width: 100%;
  border: 1px solid var(--line);
  border-radius: 4px;
  padding: 14px;
  color: var(--text);
  background: var(--surface);
  outline: none;
}

input:focus,
select:focus,
textarea:focus {
  border-color: var(--blue);
  box-shadow: 0 0 0 4px rgba(37, 99, 235, 0.12);
}

input[type="range"] {
  padding: 0;
}

.estimate-result,
.form-note {
  margin: 0;
  padding: 14px;
  background: var(--surface-low);
  border-left: 3px solid var(--blue);
  border-radius: 4px;
}

.contact-cards {
  display: grid;
  gap: 12px;
  margin-top: 24px;
}

.contact-cards a,
.contact-cards div {
  display: grid;
  gap: 4px;
  padding: 18px;
  background: white;
  border: 1px solid var(--line);
  border-radius: var(--radius);
}

.contact-cards span {
  color: var(--blue);
  font-family: "SFMono-Regular", "Cascadia Code", "JetBrains Mono", Consolas, monospace;
  font-size: 11px;
  font-weight: 700;
  letter-spacing: 0.08em;
  text-transform: uppercase;
}

.site-footer {
  display: grid;
  gap: 30px;
  padding: 44px 16px 34px;
  color: #eaf1ff;
  background: var(--slate);
}

.site-footer p {
  color: #b4c5ff;
}

.site-footer nav,
.site-footer div:last-child {
  display: grid;
  gap: 10px;
}

.reveal {
  opacity: 0;
  transform: translateY(28px);
}

@media (prefers-reduced-motion: reduce) {
  *,
  *::before,
  *::after {
    scroll-behavior: auto !important;
    transition-duration: 0.01ms !important;
    animation-duration: 0.01ms !important;
  }

  .reveal {
    opacity: 1;
    transform: none;
  }
}

@media (min-width: 760px) {
  .site-header {
    height: 72px;
    padding: 0 32px;
  }

  .desktop-nav {
    display: flex;
    gap: 24px;
    color: var(--muted);
  }

  .desktop-nav a:hover,
  .header-cta:hover {
    color: var(--blue);
  }

  .header-cta {
    display: inline-flex;
    color: var(--blue);
  }

  .menu-button {
    display: none;
  }

  .hero {
    min-height: 96svh;
    padding: 112px 32px 34px;
  }

  .hero-actions {
    grid-template-columns: max-content max-content;
  }

  .hero-proof {
    grid-template-columns: repeat(3, 1fr);
    width: min(100%, 920px);
  }

  .trust-strip {
    justify-content: center;
    gap: 42px;
  }

  .intro-grid,
  .split-proof,
  .estimator,
  .contact-grid {
    grid-template-columns: 1fr 1fr;
    align-items: center;
  }

  .service-card {
    grid-template-columns: 0.92fr 1fr;
    min-height: 470px;
  }

  .service-card img {
    height: 100%;
  }

  .service-card div {
    padding: 48px;
  }

  .estimate-panel,
  .contact-form {
    padding: 28px;
  }

  .site-footer {
    grid-template-columns: 1.2fr 0.7fr 0.8fr;
    padding: 64px 32px;
  }
}
