:root {
  --bg: #050604;
  --ink: #f7f4ec;
  --soft: #d6d2c7;
  --muted: #95938a;
  --line: rgba(244, 240, 228, 0.14);
  --line-strong: rgba(244, 240, 228, 0.26);
  --panel: #0c110d;
  --acid: #d8f59a;
  --pink: #f174b8;
  --heat: #ff735f;
  --bridge: #ff6f55;
  --gold: #ffd886;
  --bay: #092238;
  --sans: "Host Grotesk", ui-sans-serif, system-ui, sans-serif;
  --mono: "IBM Plex Mono", ui-monospace, monospace;
}

* {
  box-sizing: border-box;
}

html {
  background: var(--bg);
  scroll-behavior: smooth;
}

body {
  margin: 0;
  min-width: 320px;
  background: var(--bg);
  color: var(--ink);
  font-family: var(--sans);
  font-size: 16px;
  line-height: 1.56;
  overflow-x: hidden;
  -webkit-font-smoothing: antialiased;
}

body::selection {
  background: var(--acid);
  color: var(--bg);
}

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

button,
input,
textarea {
  font: inherit;
}

.wrap {
  width: min(1180px, calc(100% - 48px));
  margin: 0 auto;
}

.page-shell {
  position: relative;
  overflow: hidden;
  background:
    radial-gradient(ellipse at 16% 22%, rgba(9, 34, 56, 0.38), transparent 34%),
    radial-gradient(ellipse at 86% 70%, rgba(255, 111, 85, 0.1), transparent 34%),
    var(--bg);
  isolation: isolate;
}

.site-nav {
  position: relative;
  z-index: 5;
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 22px;
  padding: 18px 0;
}

.brand,
.footer-brand {
  display: inline-flex;
  align-items: center;
  gap: 11px;
  font-weight: 600;
}

.brand {
  color: var(--ink);
  font-size: 18px;
}

.brand-mark {
  width: 30px;
  height: 30px;
  flex: 0 0 auto;
}

.brand-mark circle,
.brand-mark path {
  fill: none;
  stroke: currentColor;
  stroke-width: 2.2;
}

.brand:hover .brand-mark,
.footer-brand:hover .brand-mark {
  animation: beaconSpin 1.4s ease-in-out;
}

@keyframes beaconSpin {
  0%, 100% {
    transform: rotate(0deg) scale(1);
  }
  48% {
    transform: rotate(12deg) scale(1.08);
  }
}

.nav-links {
  display: flex;
  align-items: center;
  gap: 6px;
  color: rgba(247, 244, 236, 0.72);
  font-size: 14px;
}

.nav-links a {
  border-radius: 7px;
  background: rgba(247, 244, 236, 0.055);
  padding: 8px 12px;
  line-height: 1;
}

.nav-links a:hover,
.nav-links a[aria-current="page"] {
  background: rgba(247, 244, 236, 0.12);
  color: var(--ink);
}

.btn {
  display: inline-flex;
  min-height: 48px;
  align-items: center;
  justify-content: center;
  border: 1px solid var(--line-strong);
  border-radius: 6px;
  padding: 12px 17px;
  color: var(--ink);
  font-weight: 600;
  transition: transform 160ms ease, background 160ms ease, color 160ms ease, border-color 160ms ease;
}

.btn:hover {
  transform: translateY(-1px);
  border-color: rgba(247, 244, 236, 0.48);
}

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

.btn-primary:hover {
  border-color: var(--acid);
  background: var(--acid);
}

.subhero {
  position: relative;
  min-height: 680px;
  display: grid;
  align-items: center;
  padding: 68px 0 92px;
  overflow: hidden;
  border-top: 1px solid rgba(247, 244, 236, 0.08);
  border-bottom: 1px solid rgba(247, 244, 236, 0.12);
  background: #030504;
}

.subhero::before {
  content: "";
  position: absolute;
  inset: 0;
  z-index: 0;
  background:
    linear-gradient(90deg, rgba(3, 5, 4, 0.9) 0%, rgba(3, 5, 4, 0.64) 42%, rgba(3, 5, 4, 0.14) 100%),
    linear-gradient(180deg, rgba(3, 5, 4, 0.16), rgba(3, 5, 4, 0.74)),
    url("/assets/knockstat-san-francisco-footer.png");
  background-size: cover;
  background-position: center bottom;
  filter: saturate(1.08) contrast(1.06);
  transform: scale(1.04);
  animation: heroBayDrift 34s ease-in-out infinite alternate;
}

.subhero::after {
  content: "";
  position: absolute;
  inset: 0;
  z-index: 1;
  pointer-events: none;
  opacity: 0.28;
  background-image:
    linear-gradient(rgba(247, 244, 236, 0.055) 1px, transparent 1px),
    linear-gradient(90deg, rgba(247, 244, 236, 0.04) 1px, transparent 1px);
  background-size: 72px 72px;
  mask-image: linear-gradient(90deg, #000, transparent 78%);
}

@keyframes heroBayDrift {
  from {
    transform: scale(1.04) translate3d(-1.2%, 0, 0);
  }
  to {
    transform: scale(1.08) translate3d(1.4%, -0.8%, 0);
  }
}

.subhero-grid {
  position: relative;
  z-index: 3;
  display: grid;
  grid-template-columns: minmax(0, 0.9fr) minmax(360px, 0.72fr);
  gap: 74px;
  align-items: end;
}

.page-start .subhero {
  min-height: auto;
  padding: 104px 0 128px;
}

.page-start .subhero-grid {
  align-items: center;
}

.page-start .form-panel {
  box-shadow: 0 34px 120px rgba(0, 0, 0, 0.42);
  backdrop-filter: blur(18px);
}

.eyebrow {
  margin: 0 0 18px;
  color: var(--acid);
  font-family: var(--mono);
  font-size: 13px;
}

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

h1,
h2 {
  color: var(--ink);
  font-weight: 500;
  line-height: 1.03;
}

h1 {
  max-width: 760px;
  margin-bottom: 22px;
  font-size: clamp(48px, 7vw, 92px);
}

h2 {
  max-width: 820px;
  margin-bottom: 20px;
  font-size: clamp(34px, 4.8vw, 58px);
}

h3 {
  margin-bottom: 10px;
  color: var(--ink);
  font-size: 20px;
  line-height: 1.2;
}

.lead {
  max-width: 620px;
  margin-bottom: 0;
  color: var(--soft);
  font-size: 20px;
}

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

.hero-card {
  position: relative;
  border: 1px solid rgba(247, 244, 236, 0.22);
  background:
    linear-gradient(180deg, rgba(247, 244, 236, 0.08), rgba(247, 244, 236, 0.02)),
    rgba(3, 5, 4, 0.64);
  box-shadow: 0 24px 90px rgba(0, 0, 0, 0.38);
  padding: 20px;
  overflow: hidden;
}

.hero-card::before {
  content: "";
  position: absolute;
  inset: 0;
  pointer-events: none;
  opacity: 0.28;
  background:
    radial-gradient(circle at 82% 24%, rgba(216, 245, 154, 0.18), transparent 24%),
    repeating-linear-gradient(120deg, transparent 0 24px, rgba(247, 244, 236, 0.05) 24px 25px);
}

.hero-card > * {
  position: relative;
  z-index: 1;
}

.stat-row,
.mini-row {
  display: grid;
  grid-template-columns: 1fr auto;
  gap: 14px;
  align-items: center;
  border-bottom: 1px solid var(--line);
  padding: 13px 0;
  color: var(--soft);
}

.stat-row:first-child,
.mini-row:first-child {
  padding-top: 0;
}

.stat-row:last-child,
.mini-row:last-child {
  border-bottom: 0;
  padding-bottom: 0;
}

.stat-row span,
.mini-row span {
  color: var(--muted);
  font-family: var(--mono);
  font-size: 12px;
}

.stat-row strong,
.mini-row strong {
  color: var(--acid);
  font-family: var(--mono);
  font-weight: 500;
}

.section {
  position: relative;
  overflow: hidden;
  border-top: 1px solid var(--line);
  padding: 96px 0;
}

.section > .wrap {
  position: relative;
  z-index: 2;
}

.section-dark {
  background:
    radial-gradient(ellipse at 86% 10%, rgba(216, 245, 154, 0.08), transparent 30%),
    #050604;
}

.section-bay {
  background:
    radial-gradient(ellipse at 18% 88%, rgba(216, 211, 198, 0.08), transparent 34%),
    radial-gradient(ellipse at 78% 18%, rgba(9, 34, 56, 0.34), transparent 38%),
    #040604;
}

.section-head {
  display: flex;
  justify-content: space-between;
  gap: 40px;
  align-items: end;
  margin-bottom: 40px;
}

.section-head p {
  max-width: 450px;
  margin-bottom: 8px;
  color: var(--muted);
}

.grid-2,
.grid-3,
.grid-4 {
  display: grid;
  gap: 1px;
  border: 1px solid var(--line-strong);
  background: var(--line);
}

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

.grid-3 {
  grid-template-columns: repeat(3, 1fr);
}

.grid-4 {
  grid-template-columns: repeat(4, 1fr);
}

.panel {
  position: relative;
  min-height: 220px;
  padding: 26px;
  background:
    linear-gradient(180deg, rgba(247, 244, 236, 0.04), rgba(247, 244, 236, 0.012)),
    var(--panel);
  overflow: hidden;
}

.panel::before {
  content: "";
  position: absolute;
  inset: 0 0 auto;
  height: 3px;
  background: repeating-linear-gradient(90deg, rgba(216, 245, 154, 0.72) 0 7px, transparent 7px 14px);
  opacity: 0.36;
}

.panel > * {
  position: relative;
  z-index: 1;
}

.panel p,
.check-list li,
.timeline p,
.table-row {
  color: var(--muted);
}

.num {
  color: var(--acid);
  font-family: var(--mono);
  font-size: 13px;
}

.check-list {
  margin: 18px 0 0;
  padding: 0;
  list-style: none;
}

.check-list li {
  border-top: 1px solid var(--line);
  padding: 10px 0;
}

.console {
  position: relative;
  border: 1px solid var(--line-strong);
  background:
    linear-gradient(180deg, rgba(255, 255, 255, 0.05), rgba(255, 255, 255, 0.015)),
    #0e130f;
  overflow: hidden;
}

.console-top {
  height: 48px;
  display: flex;
  align-items: center;
  justify-content: space-between;
  padding: 0 16px;
  border-bottom: 1px solid var(--line);
  color: var(--muted);
  font-family: var(--mono);
  font-size: 12px;
}

.lights {
  display: flex;
  gap: 7px;
}

.lights i {
  width: 9px;
  height: 9px;
  border-radius: 50%;
  background: rgba(247, 244, 236, 0.28);
}

.console-body {
  padding: 24px;
}

.prompt {
  width: min(470px, 100%);
  margin: 0 0 20px auto;
  border: 1px solid var(--line-strong);
  background: rgba(247, 244, 236, 0.06);
  padding: 14px 16px;
  color: var(--ink);
}

.answer-bubble {
  border: 1px solid var(--line);
  background: rgba(0, 0, 0, 0.28);
  padding: 18px;
  color: var(--soft);
}

.trace {
  margin-top: 16px;
  padding-top: 12px;
  border-top: 1px solid var(--line);
  color: var(--muted);
  font-family: var(--mono);
  font-size: 12px;
}

.trace div {
  display: flex;
  justify-content: space-between;
  gap: 20px;
  padding: 4px 0;
}

.hot {
  color: var(--heat);
  font-family: var(--mono);
  font-size: 13px;
}

.up {
  color: var(--acid);
  font-family: var(--mono);
  font-size: 13px;
}

.timeline {
  display: grid;
  gap: 1px;
  border: 1px solid var(--line-strong);
  background: var(--line);
}

.timeline-item {
  display: grid;
  grid-template-columns: 120px 1fr;
  gap: 28px;
  background: var(--panel);
  padding: 24px;
}

.pricing-grid {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 1px;
  border: 1px solid var(--line-strong);
  background: var(--line);
}

.price-card {
  position: relative;
  min-height: 460px;
  display: flex;
  flex-direction: column;
  padding: 28px;
  background: var(--panel);
  overflow: hidden;
}

.price-card.featured {
  background:
    linear-gradient(180deg, rgba(216, 245, 154, 0.13), rgba(255, 255, 255, 0.02)),
    #10170f;
}

.price {
  margin: 22px 0 10px;
  color: var(--ink);
  font-size: 46px;
  font-weight: 500;
  line-height: 1;
}

.price small {
  color: var(--muted);
  font-size: 15px;
}

.price-card .btn {
  margin-top: auto;
}

.compare {
  border: 1px solid var(--line-strong);
  overflow: hidden;
}

.table-row {
  display: grid;
  grid-template-columns: 1.3fr repeat(3, 1fr);
  gap: 1px;
  border-bottom: 1px solid var(--line);
  background: rgba(247, 244, 236, 0.05);
}

.table-row:last-child {
  border-bottom: 0;
}

.table-row > * {
  background: #08100b;
  padding: 14px 16px;
}

.table-head {
  color: var(--ink);
  font-weight: 600;
}

.form-panel {
  border: 1px solid var(--line-strong);
  background:
    linear-gradient(135deg, rgba(113, 98, 255, 0.16), transparent 38%),
    linear-gradient(24deg, transparent 58%, rgba(216, 245, 154, 0.14)),
    #0c110d;
  padding: 30px;
}

.form-grid {
  display: grid;
  grid-template-columns: repeat(2, 1fr);
  gap: 12px;
}

.form-grid label {
  display: block;
  color: var(--muted);
  font-family: var(--mono);
  font-size: 12px;
}

.form-grid input,
.form-grid textarea {
  width: 100%;
  margin-top: 7px;
  border: 1px solid var(--line-strong);
  border-radius: 6px;
  background: rgba(0, 0, 0, 0.24);
  color: var(--ink);
  padding: 12px 14px;
}

.form-grid textarea {
  min-height: 126px;
  resize: vertical;
}

.form-grid .span-2 {
  grid-column: 1 / -1;
}

.sf-ambient {
  position: absolute;
  inset: 0;
  z-index: 0;
  overflow: hidden;
  pointer-events: none;
}

.sf-fog-lane {
  position: absolute;
  left: -16%;
  right: -16%;
  height: 178px;
  opacity: 0.26;
  background:
    radial-gradient(ellipse at 24% 46%, rgba(216, 211, 198, 0.32), transparent 38%),
    radial-gradient(ellipse at 58% 58%, rgba(247, 244, 236, 0.18), transparent 42%),
    radial-gradient(ellipse at 86% 42%, rgba(216, 245, 154, 0.1), transparent 30%);
  animation: fogLane 34s ease-in-out infinite alternate;
}

.sf-fog-lane.one {
  top: 18%;
}

.sf-fog-lane.two {
  top: 58%;
  animation-duration: 46s;
  animation-direction: alternate-reverse;
}

@keyframes fogLane {
  from {
    transform: translate3d(-5%, -4px, 0) scaleX(1.02);
  }
  to {
    transform: translate3d(5%, 6px, 0) scaleX(1.08);
  }
}

.sf-bay-lights {
  position: absolute;
  left: -4%;
  right: -4%;
  bottom: -28px;
  height: 132px;
  opacity: 0.25;
  background-image:
    radial-gradient(circle, rgba(255, 216, 134, 0.72) 0 1.4px, transparent 1.8px),
    radial-gradient(circle, rgba(216, 245, 154, 0.48) 0 1px, transparent 1.5px);
  background-size: 58px 28px, 91px 38px;
  background-position: 0 0, 22px 11px;
  mask-image: linear-gradient(180deg, transparent, #000 42%, transparent 100%);
  animation: bayTwinkle 5.8s steps(3, end) infinite;
}

@keyframes bayTwinkle {
  0%, 100% {
    opacity: 0.18;
  }
  50% {
    opacity: 0.34;
  }
}

.sf-bridge-ghost {
  position: absolute;
  left: max(-90px, -6vw);
  bottom: -34px;
  width: min(820px, 78vw);
  height: auto;
  color: var(--bridge);
  opacity: 0.18;
  animation: bridgeGlow 7.5s ease-in-out infinite;
}

.sf-bridge-ghost path,
.sf-bridge-ghost line {
  fill: none;
  stroke: currentColor;
  stroke-linecap: round;
  stroke-linejoin: round;
}

.sf-bridge-ghost .deck {
  stroke-width: 3;
}

.sf-bridge-ghost .cable {
  stroke-width: 1.2;
  opacity: 0.74;
}

.sf-bridge-ghost .tower {
  stroke-width: 2.2;
}

@keyframes bridgeGlow {
  0%, 100% {
    opacity: 0.14;
    transform: translate3d(0, 0, 0);
  }
  50% {
    opacity: 0.28;
    transform: translate3d(10px, -4px, 0);
  }
}

.sub-footer {
  position: relative;
  min-height: 640px;
  overflow: hidden;
  background: #061523;
  color: rgba(250, 247, 238, 0.9);
}

.sub-footer::before {
  content: "";
  position: absolute;
  inset: 0;
  background:
    linear-gradient(180deg, rgba(3, 4, 3, 0.56) 0%, rgba(3, 4, 3, 0.14) 42%, rgba(3, 4, 3, 0.62) 100%),
    linear-gradient(90deg, rgba(2, 8, 13, 0.72) 0%, rgba(2, 8, 13, 0.24) 48%, rgba(2, 8, 13, 0.38) 100%),
    url("/assets/knockstat-san-francisco-footer.png");
  background-size: cover;
  background-position: center bottom;
}

.footer-scene {
  position: relative;
  z-index: 1;
  display: grid;
  grid-template-columns: minmax(340px, 0.9fr) minmax(420px, 1fr);
  gap: 48px 72px;
  min-height: 640px;
  align-content: space-between;
  padding: 82px 0 32px;
}

.footer-main h2 {
  max-width: 620px;
  margin-bottom: 18px;
  font-size: clamp(40px, 5vw, 70px);
  line-height: 0.96;
}

.footer-main p {
  max-width: 480px;
  color: rgba(250, 247, 238, 0.74);
  font-size: 18px;
}

.footer-grid {
  display: grid;
  grid-template-columns: repeat(3, minmax(120px, 1fr));
  gap: 34px;
  justify-self: end;
  width: min(560px, 100%);
}

.footer-column h3 {
  margin: 0 0 14px;
  color: #fffaf0;
  font-size: 15px;
}

.footer-column a {
  display: block;
  width: fit-content;
  margin: 9px 0;
  color: rgba(250, 247, 238, 0.64);
  font-size: 15px;
}

.footer-column a:hover,
.footer-legal a:hover {
  color: #fffaf0;
}

.footer-bottom {
  grid-column: 1 / -1;
  display: flex;
  align-items: flex-end;
  justify-content: space-between;
  gap: 28px;
  color: rgba(250, 247, 238, 0.72);
  font-size: 14px;
}

.footer-location strong {
  display: block;
  margin-bottom: 6px;
  color: #fffaf0;
  font-family: var(--mono);
  font-size: 12px;
}

.footer-legal {
  display: flex;
  flex-wrap: wrap;
  justify-content: flex-end;
  gap: 18px;
}

@media (prefers-reduced-motion: reduce) {
  .subhero::before,
  .sf-fog-lane,
  .sf-bay-lights,
  .sf-bridge-ghost,
  .brand:hover .brand-mark,
  .footer-brand:hover .brand-mark {
    animation: none !important;
  }
}

@media (max-width: 960px) {
  .site-nav {
    align-items: flex-start;
    flex-direction: column;
  }

  .nav-links {
    flex-wrap: wrap;
  }

  .subhero {
    min-height: 620px;
  }

  .subhero-grid,
  .grid-2,
  .grid-3,
  .grid-4,
  .pricing-grid,
  .footer-scene {
    grid-template-columns: 1fr;
  }

  .section-head {
    display: block;
  }

  .section-head p {
    margin-top: 12px;
  }

  .footer-grid {
    justify-self: start;
    width: min(640px, 100%);
  }
}

@media (max-width: 700px) {
  .wrap {
    width: min(100% - 32px, 1180px);
  }

  .subhero {
    min-height: auto;
    padding: 58px 0 72px;
  }

  .subhero-grid {
    gap: 42px;
  }

  h1 {
    font-size: 48px;
  }

  .lead {
    font-size: 18px;
  }

  .section {
    padding: 68px 0;
  }

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

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

  .form-grid .span-2 {
    grid-column: auto;
  }

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

  .footer-legal {
    justify-content: flex-start;
  }
}
