/**
 * 0Tick Anticheat — home landing (single dark theme, CSS 3D + scroll FX)
 */

html[data-theme="light"] body.page-home,
html[data-theme="light"] body.page-home * {
  color-scheme: dark;
}

body.page-home {
  --hl-bg: #050a14;
  --hl-surface: #0e1a2e;
  --hl-surface-2: #121f36;
  --hl-border: rgba(255, 255, 255, 0.08);
  --hl-border-strong: rgba(255, 255, 255, 0.14);
  --hl-blue: #007bff;
  --hl-blue-hover: #1a8cff;
  --hl-blue-glow: rgba(0, 123, 255, 0.35);
  --hl-text: #f0f4fc;
  --hl-muted: #8b9cb8;
  --hl-radius: 12px;
  --hl-max: 1180px;

  --color-accent: var(--hl-blue);
  --color-primary: var(--hl-blue);
  --color-primary-hover: var(--hl-blue-hover);
  --color-bg-deep: var(--hl-bg);
  --color-bg: var(--hl-bg);
  --color-surface: var(--hl-surface);
  --color-text: var(--hl-text);
  --color-text-secondary: var(--hl-muted);
  --color-border: var(--hl-border);

  font-family: "Inter", ui-sans-serif, system-ui, sans-serif;
  color: var(--hl-text);
  background: var(--hl-bg);
}

body.page-home .theme-picker {
  display: none !important;
}

body.page-home .top {
  position: sticky;
  top: 0;
  z-index: 40;
  background: rgba(5, 10, 20, 0.78);
  border-bottom: 1px solid var(--hl-border);
  backdrop-filter: blur(14px);
}

body.page-home .top .logo,
body.page-home .top .nav a:not(.btn) {
  color: var(--hl-muted);
}

body.page-home .top .nav a:not(.btn):hover,
body.page-home .top .nav a:not(.btn).is-active {
  color: var(--hl-text);
}

body.page-home .top .nav a.nav-signin .nav-signin__icon {
  font-size: 1.05rem;
  line-height: 1;
  flex-shrink: 0;
}

body.page-home .top .nav a.nav-signin {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 0.45rem;
  margin-left: 0.35rem;
  padding: 0.5rem 1rem;
  font-size: 0.8125rem;
  font-weight: 600;
  letter-spacing: 0.01em;
  text-transform: none;
  line-height: 1.2;
  color: #fff;
  background: linear-gradient(135deg, #5865f2 0%, #4752c4 100%);
  border: 1px solid rgba(255, 255, 255, 0.14);
  border-radius: 8px;
  box-shadow: 0 4px 16px rgba(88, 101, 242, 0.38);
  transition:
    background 0.2s ease,
    border-color 0.2s ease,
    box-shadow 0.2s ease,
    transform 0.12s ease;
}

body.page-home .top .nav a.nav-signin:hover {
  color: #fff;
  background: linear-gradient(135deg, #6d79f5 0%, #5865f2 100%);
  border-color: rgba(255, 255, 255, 0.22);
  box-shadow: 0 6px 22px rgba(88, 101, 242, 0.48);
  transform: translateY(-1px);
}

body.page-home .top .nav a.nav-signin:active {
  transform: translateY(0);
  box-shadow: 0 2px 10px rgba(88, 101, 242, 0.35);
}

body.page-home .main--home-bleed {
  max-width: none;
  width: 100%;
  padding: 0;
}

body.page-home .footer {
  border-top: 1px solid var(--hl-border);
  color: var(--hl-muted);
  background: var(--hl-bg);
}

body.page-home .footer a {
  color: var(--hl-blue);
}

/* Landing root */
.hl {
  position: relative;
  --hl-scroll: 0;
  overflow-x: clip;
}

.hl__progress {
  position: fixed;
  top: 0;
  left: 0;
  right: 0;
  height: 3px;
  z-index: 50;
  background: rgba(255, 255, 255, 0.04);
  pointer-events: none;
}

.hl__progress-bar {
  display: block;
  height: 100%;
  width: calc(var(--hl-scroll) * 100%);
  background: linear-gradient(90deg, var(--hl-blue), #4da3ff);
  box-shadow: 0 0 12px var(--hl-blue-glow);
  transition: width 0.08s linear;
}

/* Background FX */
.hl__fx {
  position: fixed;
  inset: 0;
  z-index: 0;
  pointer-events: none;
  overflow: hidden;
}

.hl__fx-vignette {
  position: absolute;
  inset: 0;
  background: radial-gradient(ellipse 80% 60% at 50% 0%, transparent 40%, var(--hl-bg) 100%);
}

.hl__fx-grid {
  position: absolute;
  left: -30%;
  right: -30%;
  bottom: -35%;
  height: 70%;
  background-image:
    linear-gradient(rgba(0, 123, 255, 0.07) 1px, transparent 1px),
    linear-gradient(90deg, rgba(0, 123, 255, 0.07) 1px, transparent 1px);
  background-size: 56px 56px;
  transform: perspective(900px) rotateX(68deg) translate3d(0, calc(var(--hl-scroll) * -80px), 0);
  transform-origin: 50% 100%;
  opacity: 0.5;
  mask-image: linear-gradient(to top, black 20%, transparent 85%);
}

.hl__fx-orb {
  position: absolute;
  border-radius: 50%;
  filter: blur(72px);
  opacity: 0.4;
}

.hl__fx-orb--1 {
  width: min(55vw, 480px);
  height: min(55vw, 480px);
  top: 5%;
  left: 10%;
  background: rgba(0, 123, 255, 0.55);
  transform: translate3d(calc(var(--hl-scroll) * 60px), calc(var(--hl-scroll) * -40px), 0);
}

.hl__fx-orb--2 {
  width: min(45vw, 380px);
  height: min(45vw, 380px);
  top: 35%;
  right: 5%;
  background: rgba(0, 86, 214, 0.45);
  transform: translate3d(calc(var(--hl-scroll) * -70px), calc(var(--hl-scroll) * 30px), 0);
}

.hl__fx-orb--3 {
  width: min(40vw, 320px);
  height: min(40vw, 320px);
  bottom: 10%;
  left: 35%;
  background: rgba(0, 123, 255, 0.25);
  transform: translate3d(0, calc(var(--hl-scroll) * 50px), 0);
}

/* 3D scene */
.hl__scene {
  position: relative;
  z-index: 1;
  perspective: 1500px;
  perspective-origin: 50% 30%;
  padding-bottom: 4rem;
}

.hl__layer {
  transform-style: preserve-3d;
  backface-visibility: hidden;
  will-change: transform, opacity;
  max-width: var(--hl-max);
  margin-left: auto;
  margin-right: auto;
  padding-left: clamp(1rem, 4vw, 2rem);
  padding-right: clamp(1rem, 4vw, 2rem);
}

body.page-home.hl-static .hl__layer {
  will-change: auto;
  transform: none !important;
  opacity: 1 !important;
}

body.page-home.hl-static .hl-orb__ring {
  animation: none;
}

/* Hero */
.hl-hero {
  min-height: min(92vh, 900px);
  display: flex;
  flex-direction: column;
  justify-content: center;
  padding-top: 2rem;
  padding-bottom: 3rem;
}

.hl-hero__grid {
  display: grid;
  grid-template-columns: 1.05fr 0.95fr;
  gap: clamp(2rem, 5vw, 4rem);
  align-items: center;
}

.hl-eyebrow {
  margin: 0 0 1rem;
  font-size: 0.72rem;
  font-weight: 700;
  letter-spacing: 0.16em;
  text-transform: uppercase;
  color: var(--hl-blue);
}

.hl-hero__title {
  margin: 0 0 1.25rem;
  font-size: clamp(2.4rem, 6vw, 3.75rem);
  font-weight: 800;
  line-height: 1.05;
  letter-spacing: -0.04em;
}

.hl-hero__title-line {
  display: block;
}

.hl-hero__title-line--accent {
  background: linear-gradient(120deg, #fff 0%, #7eb8ff 45%, var(--hl-blue) 100%);
  -webkit-background-clip: text;
  background-clip: text;
  color: transparent;
}

.hl-hero__lead {
  margin: 0 0 1.75rem;
  max-width: 34rem;
  font-size: 1.05rem;
  line-height: 1.6;
  color: var(--hl-muted);
}

.hl-hero__actions {
  display: flex;
  flex-wrap: wrap;
  gap: 0.75rem;
  margin-bottom: 1.25rem;
}

.hl-hero__meta {
  margin: 0;
  font-size: 0.85rem;
  color: var(--hl-muted);
}

.hl-hero__meta a {
  color: var(--hl-blue);
  text-decoration: none;
}

.hl-hero__meta a:hover {
  text-decoration: underline;
}

/* Orb visual */
.hl-hero__visual {
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 1.5rem;
}

.hl-orb {
  position: relative;
  width: min(320px, 72vw);
  height: min(320px, 72vw);
  display: grid;
  place-items: center;
  transform-style: preserve-3d;
}

.hl-orb__ring {
  position: absolute;
  border-radius: 50%;
  border: 1px solid rgba(0, 123, 255, 0.35);
  box-shadow: 0 0 40px rgba(0, 123, 255, 0.12) inset;
}

.hl-orb__ring--a {
  width: 100%;
  height: 100%;
  animation: hl-spin 24s linear infinite;
}

.hl-orb__ring--b {
  width: 78%;
  height: 78%;
  border-color: rgba(0, 123, 255, 0.5);
  animation: hl-spin-rev 18s linear infinite;
}

.hl-orb__ring--c {
  width: 56%;
  height: 56%;
  border-style: dashed;
  opacity: 0.7;
  animation: hl-spin 30s linear infinite;
}

.hl-orb__core {
  position: relative;
  z-index: 2;
  width: 112px;
  height: 112px;
  border-radius: 24px;
  background: linear-gradient(145deg, var(--hl-surface), #0a1221);
  border: 1px solid var(--hl-border-strong);
  display: grid;
  place-items: center;
  box-shadow:
    0 20px 50px rgba(0, 0, 0, 0.5),
    0 0 60px var(--hl-blue-glow);
  transform: translateZ(40px);
}

.hl-orb__core img {
  width: 72px;
  height: 72px;
  border-radius: 14px;
  object-fit: cover;
}

@keyframes hl-spin {
  to { transform: rotateZ(360deg); }
}

@keyframes hl-spin-rev {
  to { transform: rotateZ(-360deg); }
}

.hl-hero__chips {
  display: flex;
  flex-wrap: wrap;
  gap: 0.6rem;
  justify-content: center;
}

.hl-chip {
  padding: 0.55rem 0.85rem;
  background: rgba(14, 26, 46, 0.85);
  border: 1px solid var(--hl-border);
  border-radius: 999px;
  backdrop-filter: blur(8px);
  transform: translateZ(20px);
}

.hl-chip__k {
  display: block;
  font-size: 0.7rem;
  font-weight: 700;
  color: var(--hl-blue);
  text-transform: uppercase;
  letter-spacing: 0.06em;
}

.hl-chip__v {
  display: block;
  font-size: 0.72rem;
  color: var(--hl-muted);
  margin-top: 0.1rem;
}

.hl-scroll {
  align-self: center;
  margin-top: 2.5rem;
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 0.5rem;
  font-size: 0.7rem;
  letter-spacing: 0.12em;
  text-transform: uppercase;
  color: var(--hl-muted);
  text-decoration: none;
  opacity: 0.75;
  transition: opacity 0.2s;
}

.hl-scroll:hover {
  opacity: 1;
  color: var(--hl-text);
}

.hl-scroll__line {
  width: 1px;
  height: 36px;
  background: linear-gradient(var(--hl-blue), transparent);
  animation: hl-scroll-line 2s ease-in-out infinite;
}

@keyframes hl-scroll-line {
  0%, 100% { transform: scaleY(0.6); opacity: 0.5; }
  50% { transform: scaleY(1); opacity: 1; }
}

/* Buttons */
.hl-btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  padding: 0.65rem 1.25rem;
  font-size: 0.9rem;
  font-weight: 600;
  border-radius: 8px;
  border: 1px solid transparent;
  cursor: pointer;
  text-decoration: none;
  transition: background 0.2s, border-color 0.2s, transform 0.15s;
}

.hl-btn--primary {
  background: var(--hl-blue);
  border-color: var(--hl-blue);
  color: #fff;
}

.hl-btn--primary:hover {
  background: var(--hl-blue-hover);
  border-color: var(--hl-blue-hover);
  transform: translateY(-1px);
}

.hl-btn--ghost {
  background: transparent;
  border-color: var(--hl-border-strong);
  color: var(--hl-muted);
}

.hl-btn--ghost:hover {
  color: var(--hl-text);
  background: rgba(255, 255, 255, 0.05);
}

.hl-btn--block {
  width: 100%;
  margin-top: 1rem;
}

/* Trust strip */
.hl-strip {
  margin-bottom: 3rem;
}

.hl-strip__inner {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  justify-content: center;
  gap: 0.65rem 1rem;
  padding: 1rem 1.25rem;
  background: rgba(14, 26, 46, 0.6);
  border: 1px solid var(--hl-border);
  border-radius: var(--hl-radius);
  backdrop-filter: blur(10px);
}

.hl-strip__item {
  font-size: 0.8rem;
  font-weight: 600;
  color: var(--hl-muted);
  letter-spacing: 0.02em;
}

.hl-strip__dot {
  width: 4px;
  height: 4px;
  border-radius: 50%;
  background: var(--hl-blue);
  opacity: 0.6;
}

/* Section headers */
.hl-block {
  margin-bottom: clamp(3rem, 8vw, 5rem);
}

.hl-head {
  margin-bottom: 1.75rem;
}

.hl-head--center {
  text-align: center;
}

.hl-head__num {
  display: block;
  font-size: 0.72rem;
  font-weight: 700;
  letter-spacing: 0.14em;
  color: var(--hl-blue);
  margin-bottom: 0.35rem;
}

.hl-head__title {
  margin: 0 0 0.5rem;
  font-size: clamp(1.35rem, 3vw, 1.85rem);
  font-weight: 800;
  letter-spacing: -0.03em;
}

.hl-head__sub {
  margin: 0;
  max-width: 36rem;
  color: var(--hl-muted);
  font-size: 0.95rem;
  line-height: 1.5;
}

.hl-head--center .hl-head__sub {
  margin-left: auto;
  margin-right: auto;
}

/* Steps */
.hl-steps {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 1rem;
}

.hl-step {
  padding: 1.5rem 1.35rem;
  background: var(--hl-surface);
  border: 1px solid var(--hl-border);
  border-radius: var(--hl-radius);
  transform: translateZ(0);
  transition: border-color 0.2s, box-shadow 0.2s;
}

.hl-step:hover {
  border-color: rgba(0, 123, 255, 0.35);
  box-shadow: 0 16px 40px rgba(0, 0, 0, 0.35);
}

.hl-step__icon {
  width: 2.25rem;
  height: 2.25rem;
  border-radius: 8px;
  background: var(--hl-blue);
  color: #fff;
  font-weight: 800;
  font-size: 0.95rem;
  display: grid;
  place-items: center;
  margin-bottom: 1rem;
}

.hl-step h3 {
  margin: 0 0 0.5rem;
  font-size: 1.05rem;
}

.hl-step p {
  margin: 0;
  font-size: 0.88rem;
  line-height: 1.55;
  color: var(--hl-muted);
}

/* Bento */
.hl-bento {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 0.85rem;
  margin-bottom: 1.25rem;
}

.hl-bento__card {
  padding: 1.15rem 1.2rem;
  background: var(--hl-surface);
  border: 1px solid var(--hl-border);
  border-radius: var(--hl-radius);
  border-left: 3px solid var(--hl-blue);
  transition: transform 0.25s, border-color 0.2s;
}

.hl-bento__card:hover {
  transform: translateY(-4px) translateZ(8px);
  border-color: rgba(0, 123, 255, 0.4);
}

.hl-bento__idx {
  display: block;
  font-size: 0.65rem;
  font-weight: 700;
  color: var(--hl-blue);
  letter-spacing: 0.1em;
  margin-bottom: 0.5rem;
}

.hl-bento__card p {
  margin: 0;
  font-size: 0.88rem;
  line-height: 1.45;
  color: var(--hl-muted);
}

.hl-prose {
  padding: 1.35rem 1.5rem;
  background: var(--hl-surface);
  border: 1px solid var(--hl-border);
  border-radius: var(--hl-radius);
  font-size: 0.92rem;
  line-height: 1.65;
  color: var(--hl-muted);
}

.hl-prose strong {
  color: var(--hl-text);
}

.hl-prose a {
  color: var(--hl-blue);
}

/* Panel mock */
.hl-mock {
  border: 1px solid var(--hl-border-strong);
  border-radius: var(--hl-radius);
  overflow: hidden;
  box-shadow: 0 28px 70px rgba(0, 0, 0, 0.45);
  background: #0a1221;
  transform: perspective(1200px) rotateX(4deg);
  transition: transform 0.4s ease;
}

.hl-block--panel:hover .hl-mock {
  transform: perspective(1200px) rotateX(0deg);
}

.hl-mock__bar {
  display: flex;
  align-items: center;
  gap: 0.4rem;
  padding: 0.65rem 1rem;
  background: #0e1a2e;
  border-bottom: 1px solid var(--hl-border);
}

.hl-mock__bar span {
  width: 8px;
  height: 8px;
  border-radius: 50%;
  background: rgba(255, 255, 255, 0.15);
}

.hl-mock__bar em {
  margin-left: auto;
  font-style: normal;
  font-size: 0.75rem;
  color: var(--hl-muted);
}

.hl-mock__body {
  display: grid;
  grid-template-columns: 140px 1fr;
  min-height: 220px;
}

.hl-mock__side {
  padding: 1rem 0.75rem;
  border-right: 1px solid var(--hl-border);
  display: flex;
  flex-direction: column;
  gap: 0.45rem;
}

.hl-mock__side span {
  font-size: 0.72rem;
  color: var(--hl-muted);
  padding: 0.35rem 0.5rem;
  border-radius: 6px;
}

.hl-mock__side .is-on {
  background: rgba(0, 123, 255, 0.15);
  color: var(--hl-blue);
  font-weight: 600;
}

.hl-mock__main {
  padding: 1rem;
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 0.65rem;
  align-content: start;
}

.hl-mock__stat {
  padding: 0.85rem;
  background: var(--hl-surface);
  border: 1px solid var(--hl-border);
  border-radius: 8px;
}

.hl-mock__stat b {
  display: block;
  color: var(--hl-blue);
  font-size: 0.95rem;
}

.hl-mock__stat small {
  color: var(--hl-muted);
  font-size: 0.68rem;
}

.hl-mock__wide {
  grid-column: 1 / -1;
  height: 72px;
  border-radius: 8px;
  background: linear-gradient(90deg, rgba(0, 123, 255, 0.12), rgba(14, 26, 46, 0.8));
  border: 1px solid var(--hl-border);
}

/* Plans */
.hl-plans {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 1.15rem;
  transform-style: preserve-3d;
}

.hl-plan {
  position: relative;
  padding: 1.5rem 1.35rem;
  background: var(--hl-surface);
  border: 1px solid var(--hl-border);
  border-radius: var(--hl-radius);
  transform-style: preserve-3d;
  transition: border-color 0.2s, box-shadow 0.2s;
}

.hl-plan::after {
  content: "";
  position: absolute;
  inset: 0;
  border-radius: inherit;
  background: linear-gradient(155deg, rgba(0, 123, 255, 0.14), transparent 50%);
  opacity: 0;
  pointer-events: none;
  transition: opacity 0.25s;
}

.hl-plan:hover::after,
.hl-plan--hot::after {
  opacity: 1;
}

.hl-plan--hot {
  border-color: rgba(0, 123, 255, 0.45);
  box-shadow: 0 20px 55px rgba(0, 123, 255, 0.14);
}

.hl-plan__badge {
  position: absolute;
  top: 0.85rem;
  right: 0.85rem;
  font-size: 0.62rem;
  font-weight: 700;
  text-transform: uppercase;
  letter-spacing: 0.08em;
  color: var(--hl-blue);
  background: rgba(0, 123, 255, 0.15);
  padding: 0.22rem 0.5rem;
  border-radius: 4px;
}

.hl-plan__img {
  width: 100%;
  max-height: 96px;
  object-fit: contain;
  margin-bottom: 0.85rem;
}

.hl-plan h3 {
  margin: 0 0 0.35rem;
  font-size: 1.1rem;
}

.hl-plan__price {
  margin: 0 0 1rem;
  font-size: 1.75rem;
  font-weight: 800;
  color: var(--hl-blue);
}

.hl-meter {
  margin-bottom: 1rem;
}

.hl-meter span {
  display: block;
  font-size: 0.65rem;
  text-transform: uppercase;
  letter-spacing: 0.08em;
  color: var(--hl-muted);
  margin-bottom: 0.35rem;
}

.hl-meter i {
  display: block;
  height: 5px;
  border-radius: 99px;
  background: linear-gradient(90deg, var(--hl-blue), var(--hl-blue-hover));
}

.hl-plan__list {
  margin: 0;
  padding-left: 1.1rem;
  font-size: 0.78rem;
  color: var(--hl-muted);
  line-height: 1.45;
}

.hl-plan__list li {
  margin-bottom: 0.3rem;
}

/* CTA */
.hl-cta {
  margin-bottom: 3rem;
}

.hl-cta__box {
  text-align: center;
  padding: clamp(2rem, 5vw, 3rem);
  border-radius: calc(var(--hl-radius) + 4px);
  border: 1px solid rgba(0, 123, 255, 0.35);
  background:
    radial-gradient(ellipse 80% 60% at 50% 0%, rgba(0, 123, 255, 0.2), transparent 55%),
    var(--hl-surface);
  box-shadow: 0 24px 60px rgba(0, 0, 0, 0.4);
}

.hl-cta__box h2 {
  margin: 0 0 0.65rem;
  font-size: clamp(1.4rem, 3vw, 1.9rem);
}

.hl-cta__box p {
  margin: 0 0 1.5rem;
  color: var(--hl-muted);
}

.hl-cta__actions {
  display: flex;
  flex-wrap: wrap;
  gap: 0.75rem;
  justify-content: center;
}

/* Payments */
.hl-pay {
  display: flex;
  flex-wrap: wrap;
  gap: 0.65rem;
  justify-content: center;
}

.hl-pay__item {
  padding: 0.55rem 0.85rem;
  background: var(--hl-surface);
  border: 1px solid var(--hl-border);
  border-radius: 8px;
  display: flex;
  align-items: center;
  min-height: 44px;
}

.hl-pay__item img {
  max-height: 26px;
  max-width: 88px;
  object-fit: contain;
  filter: brightness(1.05);
}

/* Reveal */
[data-reveal] {
  opacity: 0;
  transform: translateY(28px) translateZ(-20px);
  transition: opacity 0.65s ease, transform 0.65s ease;
}

[data-reveal].is-visible {
  opacity: 1;
  transform: translateY(0) translateZ(0);
}

.hl-bento__card[data-reveal].is-visible {
  transition-delay: calc(var(--hl-i, 0) * 0.07s);
}

/* Responsive */
@media (max-width: 960px) {
  .hl-hero__grid {
    grid-template-columns: 1fr;
    text-align: center;
  }

  .hl-hero__lead,
  .hl-head__sub {
    margin-left: auto;
    margin-right: auto;
  }

  .hl-hero__actions,
  .hl-cta__actions {
    justify-content: center;
  }

  .hl-hero__visual {
    order: -1;
  }

  .hl-steps,
  .hl-bento,
  .hl-plans {
    grid-template-columns: 1fr;
  }

  .hl-mock__body {
    grid-template-columns: 1fr;
  }

  .hl-mock__side {
    flex-direction: row;
    flex-wrap: wrap;
    border-right: none;
    border-bottom: 1px solid var(--hl-border);
  }

  body.page-home .hl__scene {
    perspective: none;
  }
}

@media (prefers-reduced-motion: reduce) {
  .hl-orb__ring,
  .hl-scroll__line {
    animation: none;
  }

  [data-reveal] {
    opacity: 1;
    transform: none;
    transition: none;
  }

  .hl__layer,
  .hl-plan {
    transition: none;
  }
}
