:root {
  color-scheme: dark;
  --bg: #050505;
  --ink: #f4f3ef;
  --muted: #9d9d98;
  --panel: rgba(10, 10, 10, 0.78);
  --line: rgba(255, 255, 255, 0.14);
  --white: #ffffff;
  --green: #c6f006;
  --red: #ff4b4b;
  --blue: #7aa7ff;
  --shadow: 0 30px 90px rgba(0, 0, 0, 0.5);
}

* { box-sizing: border-box; }
html { scroll-behavior: smooth; }

body {
  margin: 0;
  min-height: 100vh;
  background: #050505;
  color: var(--ink);
  font-family: Inter, ui-sans-serif, system-ui, -apple-system, BlinkMacSystemFont, "Segoe UI", sans-serif;
}

body::before {
  content: "";
  position: fixed;
  inset: 0;
  z-index: -3;
  background: url("./assets/liquid-bg.jpg") center / cover no-repeat;
  opacity: 0.34;
  filter: invert(1) grayscale(1) contrast(1.25);
}

body::after {
  content: "";
  position: fixed;
  inset: 0;
  z-index: -2;
  background:
    linear-gradient(90deg, rgba(255, 255, 255, 0.045) 1px, transparent 1px),
    linear-gradient(rgba(255, 255, 255, 0.035) 1px, transparent 1px),
    radial-gradient(circle at 76% 18%, rgba(198, 240, 6, 0.16), transparent 30%),
    linear-gradient(180deg, rgba(5, 5, 5, 0.6), #050505 88%);
  background-size: 44px 44px, 44px 44px, auto, auto;
}

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

.site {
  min-height: 100vh;
  padding: 18px clamp(14px, 3vw, 44px) 78px;
}

.topbar {
  position: sticky;
  top: 16px;
  z-index: 10;
  display: grid;
  grid-template-columns: 1fr auto 1fr;
  align-items: center;
  gap: 18px;
  max-width: 1180px;
  margin: 0 auto;
  padding: 10px;
  border: 1px solid var(--line);
  border-radius: 18px;
  background: rgba(5, 5, 5, 0.74);
  backdrop-filter: blur(18px);
  box-shadow: var(--shadow);
}

.brand {
  display: flex;
  align-items: center;
  gap: 10px;
  width: max-content;
  font-weight: 950;
}

.brand img {
  width: 40px;
  height: 40px;
  border: 1px solid var(--line);
  border-radius: 12px;
  object-fit: cover;
}

nav {
  display: flex;
  justify-content: center;
  gap: 6px;
}

nav a {
  padding: 10px 14px;
  border-radius: 999px;
  color: var(--muted);
  font-size: 13px;
  font-weight: 850;
}

nav a:hover {
  background: rgba(255, 255, 255, 0.08);
  color: var(--ink);
}

.xButton,
.primary,
.secondary {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  border: 1px solid var(--line);
  border-radius: 999px;
  font-weight: 950;
}

.xButton {
  justify-self: end;
  min-width: 56px;
  min-height: 42px;
  background: var(--white);
  color: #070707;
}

.hero {
  display: grid;
  grid-template-columns: minmax(0, 1fr) minmax(350px, 500px);
  gap: clamp(28px, 5vw, 76px);
  align-items: center;
  max-width: 1180px;
  min-height: calc(100vh - 98px);
  margin: 0 auto;
  padding: 68px 0 42px;
}

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

.kicker,
.sectionHead p {
  margin-bottom: 14px;
  color: var(--green);
  font-size: 12px;
  font-weight: 950;
  letter-spacing: 0.18em;
  text-transform: uppercase;
}

h1 {
  max-width: 780px;
  margin-bottom: 20px;
  font-size: clamp(54px, 8.6vw, 116px);
  line-height: 0.86;
  letter-spacing: 0;
}

.lead {
  max-width: 620px;
  color: #d1d1ca;
  font-size: clamp(17px, 1.9vw, 22px);
  line-height: 1.52;
}

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

.primary,
.secondary {
  min-height: 52px;
  padding: 0 22px;
}

.primary {
  background: var(--green);
  color: #080808;
  border-color: rgba(198, 240, 6, 0.68);
}

.secondary {
  background: rgba(0, 0, 0, 0.28);
}

.scanner,
.distortion,
.routebook,
.docs {
  border: 1px solid var(--line);
  background: var(--panel);
  box-shadow: var(--shadow);
}

.scanner {
  border-radius: 30px;
  padding: 22px;
}

.scannerTop,
.routeTop,
.row {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 16px;
}

.scannerTop,
.routeTop {
  margin-bottom: 20px;
  color: var(--muted);
  font-size: 12px;
  font-weight: 950;
  letter-spacing: 0.14em;
  text-transform: uppercase;
}

.scannerTop b,
.routeTop b {
  color: var(--green);
}

.scope {
  position: relative;
  display: grid;
  place-items: center;
  min-height: 330px;
  overflow: hidden;
  border: 1px solid rgba(255, 255, 255, 0.11);
  border-radius: 24px;
  background:
    radial-gradient(circle, rgba(198, 240, 6, 0.08), transparent 58%),
    #060606;
}

.scope img {
  position: relative;
  z-index: 2;
  width: 150px;
  height: 150px;
  border-radius: 30px;
  object-fit: cover;
  box-shadow: 0 0 70px rgba(198, 240, 6, 0.18);
}

.axis {
  position: absolute;
  background: rgba(255, 255, 255, 0.18);
}

.xAxis {
  left: 10%;
  right: 10%;
  height: 1px;
}

.yAxis {
  top: 10%;
  bottom: 10%;
  width: 1px;
}

.wave {
  position: absolute;
  left: -18%;
  width: 136%;
  height: 120px;
  border: 2px solid transparent;
  border-top-color: var(--green);
  border-radius: 50%;
  transform: rotate(-9deg);
  animation: skewWave 3.2s ease-in-out infinite;
}

.skewStats {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 10px;
  margin-top: 14px;
}

.skewStats div {
  min-height: 86px;
  padding: 15px;
  border: 1px solid rgba(255, 255, 255, 0.08);
  border-radius: 18px;
  background: rgba(255, 255, 255, 0.04);
}

.skewStats span {
  display: block;
  color: var(--muted);
  font-size: 12px;
  font-weight: 850;
  text-transform: uppercase;
}

.skewStats b {
  display: block;
  margin-top: 10px;
  color: var(--green);
  font-size: 24px;
}

.distortion,
.routebook,
.docs {
  max-width: 1180px;
  margin: 0 auto 24px;
  border-radius: 28px;
  padding: clamp(20px, 3vw, 34px);
}

.sectionHead h2,
.docs h2 {
  max-width: 800px;
  font-size: clamp(30px, 4.4vw, 58px);
  line-height: 0.96;
}

.cards {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 14px;
}

.cards article {
  min-height: 214px;
  padding: 20px;
  border: 1px solid rgba(255, 255, 255, 0.08);
  border-radius: 20px;
  background: rgba(255, 255, 255, 0.04);
}

.cards span {
  color: var(--blue);
  font-size: 12px;
  font-weight: 950;
}

.cards h3 {
  margin: 44px 0 10px;
  font-size: 32px;
}

.cards p,
.docText p {
  color: #cacac2;
  line-height: 1.65;
}

.row {
  display: grid;
  grid-template-columns: 1fr 0.9fr 0.75fr 0.55fr;
  min-height: 58px;
  padding: 0 12px;
  border-top: 1px solid rgba(255, 255, 255, 0.08);
}

.row.head {
  min-height: 42px;
  color: var(--muted);
  font-size: 12px;
  font-weight: 950;
  text-transform: uppercase;
}

.row b {
  justify-self: end;
  padding: 5px 10px;
  border-radius: 999px;
  background: rgba(198, 240, 6, 0.13);
  color: var(--green);
}

.row.danger b {
  background: rgba(255, 75, 75, 0.14);
  color: var(--red);
}

.docs {
  display: grid;
  grid-template-columns: 0.75fr 1.25fr;
  gap: 26px;
}

@keyframes skewWave {
  0%, 100% { transform: translateY(18px) rotate(-9deg) scaleX(1); }
  50% { transform: translateY(-18px) rotate(7deg) scaleX(1.12); }
}

@media (max-width: 900px) {
  .topbar { grid-template-columns: 1fr auto; }
  nav { display: none; }
  .hero, .docs { grid-template-columns: 1fr; }
  .hero { min-height: auto; padding-top: 54px; }
  .cards { grid-template-columns: 1fr; }
}

@media (max-width: 560px) {
  .site { padding-inline: 12px; }
  h1 { font-size: 52px; }
  .skewStats { grid-template-columns: 1fr; }
  .row {
    grid-template-columns: 1fr;
    align-items: start;
    gap: 6px;
    padding: 14px 0;
  }
  .row.head { display: none; }
  .row b { justify-self: start; }
}
