:root {
  --bg: #f3f4f4;
  --ink: #151515;
  --muted: #6a7074;
  --line: #d7dcdf;
  --soft: #e9ecee;
  --panel: #f9faf9;
  --accent: #dbe7ec;
  --accent-dark: #9eabb2;
  --silver: #eef9ff;
  --silver-strong: #cfdde5;
  --glow: 0 0 18px rgba(238, 249, 255, 0.85);
  --white: #fbfcfb;
  --wrap: min(1200px, calc(100vw - clamp(36px, 8vw, 112px)));
  --columns: repeat(12, minmax(0, 1fr));
  --grid-gap: 24px;
  --space-xs: 8px;
  --space-sm: 14px;
  --space-md: 24px;
  --space-lg: 40px;
  --inner-gap: clamp(28px, 4vw, 48px);
  --screen-gap: clamp(72px, 9vw, 120px);
  --ease: 180ms ease;
}

* {
  box-sizing: border-box;
}

html {
  scroll-behavior: smooth;
}

body {
  margin: 0;
  background: var(--bg);
  color: var(--ink);
  font-family:
    Inter, Arial, Helvetica, sans-serif;
  letter-spacing: 0;
  font-size: 16px;
  line-height: 1.5;
  cursor: none;
}

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

button,
input,
textarea,
label {
  cursor: none;
}

.cursor-square {
  position: fixed;
  top: 0;
  left: 0;
  z-index: 1000;
  width: 14px;
  height: 14px;
  border: 1px solid var(--silver);
  background: rgba(238, 249, 255, 0.22);
  box-shadow: var(--glow);
  pointer-events: none;
  transform: translate3d(-100px, -100px, 0);
  transition:
    width 140ms ease,
    height 140ms ease,
    background 140ms ease,
    border-color 140ms ease;
}

.cursor-square.is-active {
  width: 24px;
  height: 24px;
  background: rgba(238, 249, 255, 0.34);
  border-color: #fff;
}

.topbar {
  position: sticky;
  top: 0;
  z-index: 10;
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: var(--space-md);
  padding: 18px max(18px, calc((100vw - var(--wrap)) / 2));
  border-bottom: 1px solid var(--line);
  background: rgba(243, 244, 244, 0.9);
  backdrop-filter: blur(18px);
}

.brand,
nav {
  display: flex;
  align-items: center;
  gap: var(--space-sm);
}

.brand {
  font-weight: 700;
  transition:
    color var(--ease),
    transform var(--ease);
}

.brand:hover {
  color: var(--ink);
  transform: translateY(-1px);
}

.brand-mark {
  display: grid;
  width: 38px;
  height: 38px;
  place-items: center;
  border: 1px solid var(--ink);
  background: var(--ink);
  color: var(--bg);
  font-size: 13px;
  transition:
    background var(--ease),
    color var(--ease),
    transform var(--ease);
}

.brand:hover .brand-mark {
  background: var(--silver);
  color: var(--ink);
  box-shadow: var(--glow);
  transform: rotate(-3deg);
}

nav a {
  position: relative;
  color: var(--muted);
  font-size: 14px;
  transition: color var(--ease);
}

nav a:hover {
  color: var(--ink);
}

nav a::after {
  position: absolute;
  right: 0;
  bottom: -6px;
  left: 0;
  height: 1px;
  background: var(--ink);
  content: "";
  transform: scaleX(0);
  transform-origin: left;
  transition: transform var(--ease);
}

nav a:hover::after {
  transform: scaleX(1);
  box-shadow: var(--glow);
}

.hero {
  min-height: calc(100vh - 75px);
  display: grid;
  grid-template-columns: var(--columns);
  column-gap: var(--grid-gap);
  align-items: end;
  padding: var(--screen-gap) max(18px, calc((100vw - var(--wrap)) / 2)) var(--inner-gap);
  border-bottom: 1px solid var(--line);
}

.hero-inner {
  grid-column: 1 / 13;
  width: 100%;
}

.section-code {
  margin: 0 0 var(--space-md);
  color: var(--accent-dark);
  font-size: 13px;
  font-weight: 700;
  line-height: 1.2;
  text-transform: uppercase;
}

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

h1 {
  max-width: none;
  margin-bottom: var(--space-md);
  font-size: clamp(46px, 7.4vw, 104px);
  font-weight: 750;
  line-height: 0.97;
}

h2 {
  margin-bottom: 0;
  font-size: clamp(30px, 4.2vw, 60px);
  font-weight: 720;
  line-height: 1.04;
}

h3 {
  margin-bottom: var(--space-sm);
  font-size: 20px;
  line-height: 1.1;
}

.hero-lead {
  max-width: 620px;
  color: var(--muted);
  font-size: clamp(17px, 1.55vw, 21px);
  line-height: 1.45;
}

.hero-actions,
.form-footer {
  display: flex;
  align-items: center;
  flex-wrap: wrap;
  gap: var(--space-sm);
}

.button {
  display: inline-flex;
  min-width: 190px;
  min-height: 52px;
  align-items: center;
  justify-content: center;
  border: 1px solid var(--ink);
  padding: 0 24px;
  cursor: pointer;
  font: inherit;
  font-weight: 700;
  transition:
    background var(--ease),
    border-color var(--ease),
    color var(--ease),
    box-shadow var(--ease),
    transform var(--ease);
}

.button.primary {
  background: var(--ink);
  color: var(--bg);
}

.button.secondary {
  background: transparent;
}

.button:hover {
  box-shadow: 0 10px 0 rgba(21, 21, 21, 0.1);
  transform: translateY(-3px);
}

.button.primary:hover {
  background: var(--silver);
  color: var(--ink);
  border-color: var(--silver);
  box-shadow: var(--glow), 0 10px 0 rgba(21, 21, 21, 0.1);
}

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

.band,
.process,
.request {
  padding: var(--screen-gap) max(18px, calc((100vw - var(--wrap)) / 2));
  border-bottom: 1px solid var(--line);
}

.split {
  display: grid;
  grid-template-columns: var(--columns);
  column-gap: var(--grid-gap);
}

.split > h2 {
  grid-column: 1 / 7;
}

.text-stack {
  color: var(--muted);
  font-size: clamp(17px, 1.35vw, 19px);
  line-height: 1.45;
}

.feature-grid {
  display: grid;
  grid-template-columns: repeat(4, minmax(0, 1fr));
  gap: 1px;
  margin-top: var(--inner-gap);
  background: var(--ink);
  border: 1px solid var(--ink);
  perspective: 1200px;
}

.feature-grid article {
  position: relative;
  min-height: 220px;
  padding: 0;
  background: transparent;
  transform-style: preserve-3d;
  transform: rotateY(180deg);
  transition:
    transform 760ms cubic-bezier(0.2, 0.8, 0.2, 1);
}

.feature-grid article.is-flipped {
  transform: rotateY(0deg);
}

.feature-grid article:hover {
  transform: rotateY(0deg) translateY(-6px);
}

.card-face {
  position: absolute;
  inset: 0;
  display: flex;
  flex-direction: column;
  padding: var(--space-md);
  backface-visibility: hidden;
}

.card-front {
  background: var(--bg);
}

.card-back {
  background:
    linear-gradient(135deg, rgba(238, 249, 255, 0.16), transparent 38%),
    var(--ink);
  transform: rotateY(180deg);
}

.feature-grid span {
  display: block;
  margin-bottom: clamp(34px, 4vw, 52px);
  color: var(--accent-dark);
  font-weight: 700;
  transition: color var(--ease);
}

.feature-grid article:hover span,
.feature-grid article.is-flipped span {
  color: var(--ink);
}

.feature-grid h3.title-flash {
  animation: silver-title 900ms ease both;
}

@keyframes silver-title {
  0%,
  100% {
    color: var(--ink);
    text-shadow: none;
  }

  45% {
    color: var(--silver);
    text-shadow: var(--glow);
  }
}

.feature-grid p,
.process-row p,
.request-copy p,
.form-footer p {
  color: var(--muted);
  line-height: 1.5;
}

.process {
  background: var(--ink);
  color: var(--bg);
}

.process .section-code {
  color: var(--silver-strong);
}

.process-list {
  display: grid;
  gap: 0;
  border-top: 1px solid rgba(246, 243, 238, 0.28);
}

.process-row {
  display: grid;
  grid-template-columns: var(--columns);
  column-gap: var(--grid-gap);
  padding: var(--space-lg) 0;
  border-bottom: 1px solid rgba(246, 243, 238, 0.28);
  transition:
    padding-left var(--ease),
    border-color var(--ease);
}

.process-row:hover {
  padding-left: var(--space-md);
  border-color: var(--silver-strong);
}

.process-row strong {
  grid-column: 1 / 7;
  font-size: clamp(22px, 2.6vw, 36px);
  line-height: 1;
}

.process-row p {
  grid-column: 7 / 13;
  margin-bottom: 0;
  color: rgba(246, 243, 238, 0.74);
  font-size: clamp(17px, 1.45vw, 20px);
}

.request {
  display: grid;
  grid-template-columns: var(--columns);
  column-gap: var(--grid-gap);
  align-items: start;
}

.request-copy {
  grid-column: 1 / 7;
  position: sticky;
  top: 106px;
}

.request-form {
  grid-column: 7 / 13;
}

.request-copy p {
  max-width: 470px;
  font-size: clamp(17px, 1.35vw, 19px);
}

.request-form {
  display: grid;
  gap: var(--space-sm);
}

label {
  display: grid;
  gap: 10px;
  padding: 18px;
  border: 1px solid var(--line);
  background: var(--white);
  transition:
    border-color var(--ease),
    box-shadow var(--ease),
    transform var(--ease);
}

label span {
  color: var(--muted);
  font-size: 13px;
  font-weight: 700;
  transition: color var(--ease);
}

input,
textarea {
  width: 100%;
  border: 0;
  border-radius: 0;
  background: transparent;
  color: var(--ink);
  font: inherit;
  font-size: 18px;
  outline: none;
  padding: 0;
  transition:
    color var(--ease),
    padding-left var(--ease);
}

textarea {
  min-height: 132px;
  resize: vertical;
  line-height: 1.45;
}

label:focus-within,
label:hover {
  border-color: var(--accent-dark);
  box-shadow: var(--glow), 0 10px 0 rgba(21, 21, 21, 0.08);
  transform: translateY(-2px);
}

label:hover span,
label:focus-within span {
  color: var(--accent-dark);
}

label:hover input,
label:hover textarea,
label:focus-within input,
label:focus-within textarea {
  padding-left: var(--space-xs);
}

.form-grid {
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  gap: var(--space-md);
}

.form-footer {
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  gap: var(--space-md);
}

.form-footer .button {
  grid-column: 1 / 3;
  width: 100%;
}

.form-footer p {
  display: flex;
  min-height: 52px;
  align-items: center;
  margin: 0;
  padding: 0 18px;
  border: 1px solid var(--line);
  background: var(--white);
  color: var(--muted);
  font-size: 13px;
  font-weight: 700;
  line-height: 1.25;
  overflow-wrap: anywhere;
  transition:
    border-color var(--ease),
    box-shadow var(--ease),
    transform var(--ease);
}

.form-footer p:hover {
  border-color: var(--accent-dark);
  box-shadow: var(--glow), 0 10px 0 rgba(21, 21, 21, 0.08);
  transform: translateY(-2px);
}

.checkbox-line {
  display: flex;
  align-items: center;
  gap: var(--space-sm);
  cursor: pointer;
  padding: 16px 18px;
}

.checkbox-line input {
  width: 22px;
  height: 22px;
  accent-color: var(--ink);
}

.checkbox-line span {
  color: var(--ink);
}

button.button {
  border-radius: 0;
}

footer {
  display: flex;
  justify-content: space-between;
  gap: var(--space-md);
  padding: 28px max(18px, calc((100vw - var(--wrap)) / 2));
  color: var(--muted);
}

footer a {
  transition: color var(--ease);
}

footer a:hover {
  color: var(--ink);
}

@media (max-width: 940px) {
  .hero,
  .split,
  .process-row,
  .request {
    grid-template-columns: 1fr;
  }

  .hero-inner {
    grid-column: auto;
  }

  .split > h2,
  .process-row strong,
  .process-row p,
  .request-copy,
  .request-form {
    grid-column: auto;
  }

  .request-copy {
    position: static;
  }

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

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

  .form-footer {
    grid-template-columns: 1fr;
  }

  .form-footer .button {
    grid-column: auto;
  }
}

@media (max-width: 640px) {
  .topbar,
  nav,
  footer {
    align-items: flex-start;
    flex-direction: column;
  }

  nav {
    gap: 10px;
  }

  h1 {
    font-size: 42px;
  }

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

  .feature-grid article {
    min-height: 190px;
  }

  .process-row {
    grid-template-columns: 1fr;
  }

  .button {
    width: 100%;
  }
}
