:root {
  --bg: #080908;
  --surface: #10120f;
  --surface-2: #171a16;
  --line: #2d332c;
  --text: #f5f4ef;
  --muted: #aeb5aa;
  --soft: #d7dbd0;
  --accent: #ff6b6f;
  --accent-dark: #e8595f;
}

* {
  box-sizing: border-box;
}

html {
  scroll-behavior: smooth;
}

body {
  margin: 0;
  background: var(--bg);
  color: var(--text);
  font-family: "Helvetica Neue", Arial, system-ui, -apple-system, BlinkMacSystemFont, sans-serif;
  font-variant-numeric: tabular-nums;
}

body::before {
  position: fixed;
  inset: 0;
  z-index: -1;
  content: "";
  background:
    radial-gradient(circle at 78% 12%, rgba(255, 107, 111, 0.14), transparent 28%),
    linear-gradient(135deg, rgba(255, 255, 255, 0.035), transparent 32%),
    var(--bg);
}

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

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

h1,
h2,
h3,
p,
figure {
  margin: 0;
}

.site-header {
  position: sticky;
  top: 0;
  z-index: 20;
  display: grid;
  grid-template-columns: minmax(170px, 230px) 1fr auto;
  align-items: center;
  gap: 28px;
  min-height: 72px;
  padding: 14px clamp(18px, 4vw, 56px);
  background: rgba(8, 9, 8, 0.88);
  border-bottom: 1px solid rgba(255, 255, 255, 0.08);
  backdrop-filter: blur(18px);
}

.brand img {
  width: min(210px, 46vw);
  height: auto;
}

.nav-links {
  display: flex;
  justify-content: center;
  gap: clamp(20px, 3vw, 42px);
  color: var(--muted);
  font-size: 14px;
}

.nav-links a,
.nav-cta,
.button,
.contact-form button {
  transition:
    transform 180ms ease,
    color 180ms ease,
    border-color 180ms ease,
    background 180ms ease;
}

.nav-links a:hover,
.nav-cta:hover,
.button.secondary:hover {
  color: var(--accent);
  border-color: var(--accent);
}

.nav-cta,
.button {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  min-height: 44px;
  border: 1px solid var(--line);
  padding: 0 18px;
  color: var(--text);
  font-size: 14px;
  white-space: nowrap;
}

.nav-cta {
  border-color: rgba(255, 107, 111, 0.55);
}

.button:active,
.nav-cta:active,
.contact-form button:active {
  transform: translateY(1px);
}

.hero {
  position: relative;
  isolation: isolate;
  display: grid;
  grid-template-columns: minmax(0, 1fr);
  align-items: center;
  min-height: calc(100dvh - 72px);
  padding: clamp(52px, 8vw, 92px) clamp(18px, 4vw, 56px) clamp(42px, 6vw, 72px);
  overflow: hidden;
}

.hero::before,
.hero::after {
  position: absolute;
  inset: 0;
  content: "";
  pointer-events: none;
}

.hero::before {
  z-index: -2;
  background-image: url("./assets/search-intelligence.png");
  background-position: 68% 48%;
  background-size: cover;
  filter: saturate(0.9) contrast(1.08);
  opacity: 0.48;
  transform: scale(1.08);
  animation: heroImageDrift 18s ease-in-out infinite alternate;
}

.hero::after {
  z-index: -1;
  background:
    radial-gradient(circle at 74% 45%, rgba(255, 107, 111, 0.22), transparent 26%),
    linear-gradient(90deg, rgba(8, 9, 8, 0.98) 0%, rgba(8, 9, 8, 0.88) 38%, rgba(8, 9, 8, 0.5) 66%, rgba(8, 9, 8, 0.8) 100%),
    linear-gradient(180deg, rgba(8, 9, 8, 0.1) 0%, rgba(8, 9, 8, 0.82) 100%),
    repeating-linear-gradient(90deg, rgba(255, 255, 255, 0.035) 0 1px, transparent 1px 96px);
  animation: heroSignalPulse 8s ease-in-out infinite alternate;
}

.hero-copy {
  position: relative;
  max-width: 760px;
}

.eyebrow {
  margin-bottom: 22px;
  color: var(--accent);
  font-size: 13px;
  font-weight: 700;
  letter-spacing: 0.01em;
}

h1 {
  max-width: 10.8ch;
  font-size: clamp(58px, 8.5vw, 126px);
  font-weight: 700;
  line-height: 0.9;
  letter-spacing: 0;
}

.hero-text {
  max-width: 530px;
  margin-top: 28px;
  color: var(--soft);
  font-size: clamp(17px, 1.4vw, 21px);
  line-height: 1.45;
}

.hero-actions {
  display: flex;
  flex-wrap: wrap;
  gap: 12px;
  margin-top: 30px;
}

.button.primary {
  min-width: 144px;
  border-color: var(--accent);
  background: var(--accent);
  color: #14090a;
  font-weight: 700;
}

.button.primary:hover {
  background: var(--accent-dark);
}

.button.secondary {
  min-width: 144px;
  background: rgba(255, 255, 255, 0.02);
}

.statement,
.services,
.approach,
.proof,
.contact {
  padding: clamp(64px, 9vw, 128px) clamp(18px, 4vw, 56px);
  border-top: 1px solid rgba(255, 255, 255, 0.08);
}

.statement {
  display: grid;
  grid-template-columns: minmax(0, 0.8fr) minmax(320px, 0.72fr);
  gap: clamp(28px, 6vw, 92px);
  background: var(--surface);
}

.statement h2,
.section-heading h2,
.approach-copy h2,
.proof h2,
.contact-copy h2 {
  font-size: clamp(34px, 5.2vw, 82px);
  font-weight: 700;
  line-height: 0.96;
  letter-spacing: 0;
}

.statement p,
.approach-copy p,
.proof-panel p,
.contact-copy p {
  max-width: 680px;
  color: var(--soft);
  font-size: clamp(16px, 1.25vw, 19px);
  line-height: 1.65;
}

.services {
  display: grid;
  gap: 34px;
}

.section-heading {
  max-width: 760px;
}

.service-board {
  display: grid;
  grid-template-columns: minmax(0, 1.15fr) minmax(280px, 0.85fr);
  grid-auto-rows: minmax(260px, auto);
  gap: 16px;
}

.service-card {
  display: flex;
  min-height: 280px;
  flex-direction: column;
  justify-content: space-between;
  border: 1px solid var(--line);
  padding: clamp(22px, 3vw, 36px);
  background: var(--surface);
}

.service-card.large {
  grid-row: span 2;
  min-height: 576px;
  background:
    linear-gradient(135deg, rgba(255, 107, 111, 0.18), transparent 42%),
    var(--surface-2);
}

.service-card.dark {
  background:
    repeating-linear-gradient(135deg, rgba(255, 255, 255, 0.045) 0 1px, transparent 1px 18px),
    var(--surface);
}

.service-card span {
  color: var(--accent);
  font-family: ui-monospace, SFMono-Regular, Menlo, Monaco, Consolas, monospace;
  font-size: 13px;
  font-weight: 700;
}

.service-card h3 {
  max-width: 620px;
  color: var(--text);
  font-size: clamp(25px, 3.8vw, 58px);
  line-height: 1;
}

.service-card:not(.large) h3 {
  font-size: clamp(24px, 2.2vw, 34px);
  line-height: 1.05;
}

.service-card p,
.approach-grid p {
  max-width: 480px;
  color: var(--muted);
  line-height: 1.55;
}

.approach {
  display: grid;
  grid-template-columns: minmax(280px, 0.75fr) minmax(0, 1fr);
  gap: clamp(28px, 6vw, 90px);
  align-items: start;
}

.approach-copy {
  position: sticky;
  top: 104px;
}

.approach-copy p {
  margin-top: 24px;
}

.approach-grid {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 16px;
}

.approach-grid article {
  min-height: 240px;
  border: 1px solid var(--line);
  padding: 26px;
  background: rgba(255, 255, 255, 0.025);
}

.approach-grid h3 {
  margin-bottom: 58px;
  color: var(--accent);
  font-size: clamp(25px, 3vw, 42px);
}

.proof {
  display: grid;
  grid-template-columns: minmax(0, 0.8fr) minmax(300px, 0.58fr);
  gap: clamp(28px, 6vw, 90px);
  background:
    linear-gradient(90deg, rgba(255, 107, 111, 0.14), transparent 44%),
    var(--surface);
}

.proof-panel {
  display: grid;
  gap: 28px;
  align-content: start;
  border: 1px solid var(--line);
  padding: clamp(24px, 3vw, 36px);
  background: rgba(8, 9, 8, 0.42);
}

.contact {
  display: grid;
  grid-template-columns: minmax(0, 0.82fr) minmax(320px, 0.64fr);
  gap: clamp(28px, 6vw, 90px);
  align-items: start;
}

.contact-copy p {
  margin-top: 24px;
}

.contact-form {
  display: grid;
  gap: 18px;
  border: 1px solid var(--line);
  padding: clamp(22px, 3vw, 32px);
  background: var(--surface);
}

.form-status {
  border: 1px solid rgba(255, 107, 111, 0.5);
  padding: 12px 14px;
  color: var(--soft);
  line-height: 1.45;
}

.form-status:empty {
  display: none;
}

.hidden-field {
  position: absolute;
  left: -10000px;
  width: 1px;
  height: 1px;
  overflow: hidden;
}

.contact-form label {
  display: grid;
  gap: 8px;
  color: var(--soft);
  font-size: 14px;
}

.contact-form input,
.contact-form textarea {
  width: 100%;
  border: 1px solid #465041;
  border-radius: 0;
  background: #0c0e0c;
  color: var(--text);
  font: inherit;
  padding: 14px 15px;
}

.contact-form input:focus,
.contact-form textarea:focus {
  outline: 2px solid rgba(255, 107, 111, 0.8);
  outline-offset: 2px;
}

.cf-turnstile {
  min-height: 65px;
}

.contact-form button {
  min-height: 50px;
  border: 1px solid var(--accent);
  background: var(--accent);
  color: #14090a;
  font: inherit;
  font-weight: 700;
  cursor: pointer;
}

.site-footer {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 24px;
  padding: 30px clamp(18px, 4vw, 56px);
  border-top: 1px solid rgba(255, 255, 255, 0.08);
  color: var(--muted);
}

.site-footer img {
  width: 170px;
  height: auto;
}

.site-footer p {
  font-size: 14px;
}

@media (prefers-reduced-motion: reduce) {
  html {
    scroll-behavior: auto;
  }

  *,
  *::before,
  *::after {
    transition-duration: 0.01ms !important;
    animation-duration: 0.01ms !important;
    animation-iteration-count: 1 !important;
  }
}

@keyframes heroImageDrift {
  from {
    transform: scale(1.08) translate3d(0, 0, 0);
  }

  to {
    transform: scale(1.15) translate3d(-2.5%, 1.5%, 0);
  }
}

@keyframes heroSignalPulse {
  from {
    opacity: 0.94;
  }

  to {
    opacity: 1;
  }
}

@media (max-width: 980px) {
  .site-header {
    grid-template-columns: 1fr auto;
  }

  .nav-links {
    display: none;
  }

  .hero,
  .statement,
  .approach,
  .proof,
  .contact {
    grid-template-columns: 1fr;
  }

  .hero {
    min-height: auto;
  }

  .approach-copy {
    position: static;
  }
}

@media (max-width: 760px) {
  .site-header {
    min-height: 68px;
  }

  .nav-cta {
    display: none;
  }

  .brand img {
    width: 205px;
  }

  h1 {
    max-width: 8.2ch;
    font-size: clamp(45px, 13vw, 68px);
    line-height: 0.95;
  }

  .hero-actions {
    display: grid;
    grid-template-columns: 1fr;
  }

  .button {
    width: 100%;
  }

  .hero::before {
    background-position: 58% 48%;
    opacity: 0.38;
  }

  .hero::after {
    background:
      radial-gradient(circle at 56% 26%, rgba(255, 107, 111, 0.18), transparent 34%),
      linear-gradient(90deg, rgba(8, 9, 8, 0.94) 0%, rgba(8, 9, 8, 0.72) 100%),
      linear-gradient(180deg, rgba(8, 9, 8, 0.08) 0%, rgba(8, 9, 8, 0.86) 100%),
      repeating-linear-gradient(90deg, rgba(255, 255, 255, 0.028) 0 1px, transparent 1px 72px);
  }

  .service-board,
  .approach-grid {
    grid-template-columns: 1fr;
  }

  .service-card.large {
    grid-row: auto;
    min-height: 360px;
  }

  .service-card {
    min-height: 260px;
  }

  .site-footer {
    align-items: flex-start;
    flex-direction: column;
  }
}
