:root {
  --bg: #050506;
  --ink: #f4f4f7;
  --muted: #b7b7c0;
  --red: #e0182c;
  --glow: rgba(224, 24, 44, 0.4);
  --tg: #2aa3e0;
  --line: rgba(255, 255, 255, 0.14);
  --font-display: "Orbitron", sans-serif;
  --font-ui: "Manrope", sans-serif;
  --font-mono: "Share Tech Mono", monospace;
}

*,
*::before,
*::after {
  box-sizing: border-box;
}

html,
body {
  margin: 0;
  min-height: 100%;
  background: #07070a;
  color: var(--ink);
  font-family: var(--font-ui);
}

body {
  overflow-x: hidden;
}

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

.world {
  position: fixed;
  inset: -6%;
  z-index: 0;
  overflow: hidden;
  perspective: 1000px;
  transform-style: preserve-3d;
}

.world-photo {
  width: 100%;
  height: 100%;
  object-fit: cover;
  display: block;
  transform-origin: center center;
  filter: brightness(0.78) contrast(1.16) saturate(0.82);
  will-change: transform;
}

.world-depth {
  position: absolute;
  inset: 0;
  background:
    radial-gradient(circle at 50% 38%, rgba(225, 29, 46, 0.16), transparent 28%),
    linear-gradient(to top, rgba(0, 0, 0, 0.35), transparent 40%);
  pointer-events: none;
}

#fx {
  position: fixed;
  inset: 0;
  z-index: 1;
  width: 100%;
  height: 100%;
  pointer-events: none;
  display: block;
}

.fx-scanlines,
.fx-vignette,
.fx-frame {
  position: fixed;
  inset: 0;
  pointer-events: none;
  z-index: 2;
}

.fx-scanlines {
  background: repeating-linear-gradient(
    to bottom,
    rgba(255, 255, 255, 0.03) 0 1px,
    transparent 2px 4px
  );
  opacity: 0.35;
}

.fx-vignette {
  background: radial-gradient(ellipse at center, transparent 42%, rgba(0, 0, 0, 0.55) 100%);
}

.fx-frame {
  box-shadow: inset 0 0 0 1px rgba(255, 255, 255, 0.06), inset 0 0 70px rgba(0, 0, 0, 0.28);
}

.top {
  position: fixed;
  top: 0;
  left: 0;
  right: 0;
  z-index: 10;
  display: flex;
  align-items: center;
  justify-content: space-between;
  padding: 20px 28px;
}

.mark {
  width: 46px;
  height: 46px;
  display: grid;
  place-items: center;
  border: 1px solid var(--line);
  border-radius: 14px;
  font-family: var(--font-display);
  font-size: 0.68rem;
  letter-spacing: 0.12em;
  background: rgba(8, 8, 10, 0.45);
  backdrop-filter: blur(16px);
}

main {
  position: relative;
  z-index: 3;
}

.hero {
  min-height: 100dvh;
  display: flex;
  flex-direction: column;
  justify-content: flex-end;
  padding: 0 8vw 12vh;
}

.kicker {
  margin: 0 0 12px;
  font-family: var(--font-mono);
  letter-spacing: 0.38em;
  font-size: 0.72rem;
  color: var(--muted);
  text-transform: uppercase;
}

h1 {
  margin: 0 0 18px;
  font-family: var(--font-display);
  font-weight: 800;
  line-height: 0.88;
  font-size: clamp(2.5rem, 9vw, 6.8rem);
}

h1 .query {
  display: block;
  text-shadow: 0 0 28px var(--glow);
}

.lead {
  margin: 0 0 28px;
  max-width: 34rem;
  font-size: 1.05rem;
  line-height: 1.55;
  color: #dedee6;
  font-weight: 500;
}

.lead b {
  font-weight: 600;
  color: #fff;
}

.glitch {
  position: relative;
  display: inline-block;
}

.glitch::before,
.glitch::after {
  content: attr(data-text);
  position: absolute;
  inset: 0;
  opacity: 0.6;
}

.glitch::before {
  color: #ff4452;
  clip-path: inset(0 0 58% 0);
  animation: g1 3.4s infinite linear;
}

.glitch::after {
  color: #9aa0a6;
  clip-path: inset(52% 0 0 0);
  animation: g2 2.8s infinite linear;
}

@keyframes g1 {
  0%, 90%, 100% { transform: translate(0); }
  93% { transform: translate(-3px, 1px); }
}

@keyframes g2 {
  0%, 88%, 100% { transform: translate(0); }
  92% { transform: translate(3px, 0); }
}

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

.btn {
  --pad: 18px;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 10px;
  min-height: 50px;
  padding: 0 24px;
  border-radius: 999px;
  font-family: var(--font-mono);
  font-size: 0.78rem;
  letter-spacing: 0.18em;
  text-transform: uppercase;
  cursor: pointer;
  position: relative;
  isolation: isolate;
  overflow: hidden;
  transition: transform 0.25s ease, box-shadow 0.25s ease, border-color 0.25s ease, background 0.25s ease;
}

.btn::before {
  content: "";
  position: absolute;
  inset: 1px;
  border-radius: inherit;
  background: linear-gradient(180deg, rgba(255, 255, 255, 0.16), transparent 42%);
  pointer-events: none;
  z-index: 0;
}

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

.btn-primary {
  border: 1px solid rgba(255, 180, 180, 0.22);
  background: linear-gradient(180deg, #ff3b4d 0%, var(--red) 58%, #9d0d1c 100%);
  color: #fff;
  box-shadow: 0 10px 28px var(--glow), inset 0 1px 0 rgba(255, 255, 255, 0.28);
}

.btn-ghost {
  border: 1px solid var(--line);
  background: rgba(10, 10, 12, 0.48);
  color: #fff;
  backdrop-filter: blur(18px);
  box-shadow: 0 8px 24px rgba(0, 0, 0, 0.28), inset 0 1px 0 rgba(255, 255, 255, 0.12);
}

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

.btn-primary:hover {
  box-shadow: 0 16px 36px var(--glow);
}

.btn-ghost:hover {
  border-color: rgba(42, 163, 224, 0.7);
  box-shadow: 0 0 24px rgba(42, 163, 224, 0.22);
}

.ico {
  width: 18px;
  height: 18px;
  border-radius: 50%;
  display: inline-block;
  background: currentColor;
}

.ico.tg {
  background: var(--tg);
  mask: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 24 24'%3E%3Cpath fill='black' d='M21.5 3.3 18.2 21c-.2.9-.8 1.1-1.6.7l-4.5-3.3-2.2 2.1c-.2.3-.5.4-.8.4l.3-4.7 8.6-7.8c.4-.3 0-.5-.6-.2l-10.6 6.7-4.6-1.4c-1-.3-1-.9.2-1.4L20.3 2.4c.8-.3 1.6.2 1.2.9Z'/%3E%3C/svg%3E") center / 12px no-repeat;
}

.org {
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  gap: 14px;
  padding: 0 8vw 8vh;
}

.glass {
  padding: 22px 22px 24px;
  border: 1px solid var(--line);
  border-radius: 22px;
  background: linear-gradient(180deg, rgba(255, 255, 255, 0.07), rgba(6, 6, 8, 0.42));
  backdrop-filter: blur(18px);
  box-shadow: 0 16px 40px rgba(0, 0, 0, 0.28);
}

.glass span {
  font-family: var(--font-mono);
  font-size: 0.7rem;
  letter-spacing: 0.2em;
  color: var(--red);
}

.glass h2 {
  margin: 10px 0 8px;
  font-family: var(--font-display);
  font-size: 0.95rem;
  letter-spacing: 0.08em;
  font-weight: 500;
}

.glass p {
  margin: 0;
  color: var(--muted);
  font-size: 0.95rem;
  line-height: 1.5;
  font-weight: 500;
}

footer {
  position: relative;
  z-index: 3;
  padding: 0 8vw 36px;
  font-family: var(--font-mono);
  font-size: 0.72rem;
  letter-spacing: 0.12em;
  color: var(--muted);
}

footer a {
  color: #fff;
  border-bottom: 1px solid rgba(255, 255, 255, 0.3);
}

@media (max-width: 860px) {
  .org {
    grid-template-columns: 1fr;
  }
}

@media (max-width: 640px) {
  .top {
    padding: 16px;
  }

  .hero {
    padding: 0 20px 8vh;
  }

  .org,
  footer {
    padding-left: 20px;
    padding-right: 20px;
  }

  .btn {
    width: 100%;
  }

  .actions {
    width: min(100%, 360px);
  }
}
