:root {
  --bg0: #05080d; --bg1: #0a0f17; --line: rgba(120, 170, 220, 0.12); --line2: rgba(120, 170, 220, 0.24);
  --text: #d7e3f2; --muted: #8494aa; --cyan: #22e5ff; --orange: #ff8a1f; --purple: #a26bff; --green: #34f5c5; --red: #ff5a3d;
  --font-d: 'Orbitron', sans-serif; --font-b: 'Rajdhani', sans-serif; --font-m: 'JetBrains Mono', monospace;
  --metal: linear-gradient(180deg, #172131 0%, #0e1520 100%);
}
* { box-sizing: border-box; }
html { scroll-behavior: smooth; }
body.home { margin: 0; min-height: 100vh; color: var(--text); font-family: var(--font-b); font-size: 16px; -webkit-font-smoothing: antialiased; overflow-x: hidden;
  background:
    linear-gradient(90deg, rgba(34,229,255,.045) 1px, transparent 1px) 0 0 / 32px 32px,
    linear-gradient(rgba(34,229,255,.045) 1px, transparent 1px) 0 0 / 32px 32px,
    linear-gradient(90deg, rgba(34,229,255,.07) 1px, transparent 1px) 0 0 / 160px 160px,
    linear-gradient(rgba(34,229,255,.07) 1px, transparent 1px) 0 0 / 160px 160px,
    radial-gradient(ellipse at 20% 0%, #0d1828 0%, var(--bg0) 60%);
  background-attachment: fixed; }
#home-bg { position: fixed; inset: 0; width: 100%; height: 100%; opacity: .38; pointer-events: none; z-index: 0; mask: linear-gradient(180deg, transparent 72%, #000 92%); }
.home-glow { position: fixed; inset: 0; pointer-events: none; z-index: 0; background: radial-gradient(600px 400px at 85% 25%, rgba(162,107,255,.13), transparent 70%), radial-gradient(700px 500px at 10% 60%, rgba(34,229,255,.08), transparent 70%); }
a { color: inherit; text-decoration: none; }

.h-nav, .h-hero, .h-section, .h-foot { position: relative; z-index: 1; width: min(1240px, calc(100% - 48px)); margin: 0 auto; }
.h-badge { display: block; line-height: 0; opacity: .55; transition: opacity .2s; }
.h-badge:hover, .h-badge:focus-visible { opacity: 1; }
.h-badge img { width: 56px; height: 56px; }
.h-nav { display: flex; align-items: center; justify-content: space-between; padding: 22px 0; }
.h-logo { display: flex; align-items: center; gap: 12px; }
.h-logo b { display: block; font-family: var(--font-d); font-size: 18px; letter-spacing: .14em; }
.h-logo em { font-style: normal; color: var(--orange); }
.h-logo small { display: block; font-family: var(--font-m); font-size: 9.5px; letter-spacing: .2em; text-transform: uppercase; color: var(--muted); }
.logo-core { animation: core 2.4s ease-in-out infinite; transform-origin: 32px 31px; }
@keyframes core { 50% { filter: drop-shadow(0 0 6px #ff8a1f); transform: scale(1.12); } }
.h-nav nav { display: flex; align-items: center; gap: 10px; }
.h-link { padding: 8px 12px; color: var(--muted); font-weight: 600; letter-spacing: .06em; text-transform: uppercase; font-size: 13px; transition: color .2s; }
.h-link:hover { color: var(--cyan); }

.h-btn { --bc: var(--orange); display: inline-flex; align-items: center; justify-content: center; gap: 8px; padding: 10px 18px; border-radius: 9px; font-family: var(--font-d); font-size: 11.5px; font-weight: 700; letter-spacing: .12em; text-transform: uppercase; cursor: pointer; color: #fff; border: 1px solid color-mix(in srgb, var(--bc) 70%, transparent); background: linear-gradient(180deg, color-mix(in srgb, var(--bc) 55%, #000), color-mix(in srgb, var(--bc) 25%, #000)); box-shadow: 0 0 0 1px rgba(0,0,0,.4) inset, 0 6px 22px color-mix(in srgb, var(--bc) 25%, transparent); transition: .2s; white-space: nowrap; }
.h-btn:hover { transform: translateY(-1px); box-shadow: 0 0 26px color-mix(in srgb, var(--bc) 55%, transparent); }
.h-btn-ghost { --bc: var(--cyan); color: var(--cyan); background: rgba(34,229,255,.06); box-shadow: none; }
.h-btn-lg { padding: 14px 24px; font-size: 12.5px; }

.h-hero { display: grid; grid-template-columns: 1.15fr .85fr; gap: 56px; align-items: center; min-height: calc(100vh - 90px); padding: 30px 0 120px; }
.h-kicker { display: inline-flex; align-items: center; gap: 10px; padding: 6px 12px; border: 1px solid var(--line2); border-radius: 999px; background: rgba(10,15,23,.7); font-family: var(--font-m); font-size: 11px; letter-spacing: .14em; text-transform: uppercase; color: var(--cyan); }
.h-kicker i { width: 7px; height: 7px; border-radius: 50%; background: var(--green); box-shadow: 0 0 10px var(--green); animation: blink 1.6s infinite; }
@keyframes blink { 50% { opacity: .3; } }
.h-copy h1 { margin: 22px 0 18px; font-family: var(--font-d); font-weight: 900; font-size: clamp(40px, 5.6vw, 76px); line-height: 1.02; letter-spacing: .01em; color: #f2f7ff; text-shadow: 0 0 40px rgba(34,229,255,.15); }
.h-copy h1 .c { color: var(--cyan); text-shadow: 0 0 30px rgba(34,229,255,.45); }
.h-copy h1 .o { color: var(--orange); text-shadow: 0 0 30px rgba(255,138,31,.4); }
.h-lead { max-width: 560px; margin: 0 0 28px; font-size: 19px; line-height: 1.5; color: #b6c4d6; }
.h-cta { display: flex; flex-wrap: wrap; gap: 12px; }
.h-stats { display: flex; gap: 34px; margin: 40px 0 0; padding: 0; }
.h-stats div { padding-left: 14px; border-left: 2px solid rgba(34,229,255,.35); }
.h-stats dt { font-family: var(--font-d); font-size: 26px; font-weight: 700; color: #fff; }
.h-stats dd { margin: 2px 0 0; font-family: var(--font-m); font-size: 10.5px; letter-spacing: .14em; text-transform: uppercase; color: var(--muted); }

.h-auth { position: relative; padding: 22px 26px 26px; border-radius: 18px; background: rgba(12,18,28,.86); backdrop-filter: blur(10px); border: 1px solid rgba(34,229,255,.28); box-shadow: 0 30px 80px rgba(0,0,0,.55), 0 0 40px rgba(34,229,255,.08); scroll-margin: 40px; }
.h-auth::before, .h-auth::after { content: ''; position: absolute; width: 22px; height: 22px; border: 2px solid var(--orange); pointer-events: none; }
.h-auth::before { top: -2px; left: -2px; border-right: 0; border-bottom: 0; border-radius: 18px 0 0 0; }
.h-auth::after { bottom: -2px; right: -2px; border-left: 0; border-top: 0; border-radius: 0 0 18px 0; }
.h-auth-tabs { display: grid; grid-template-columns: 1fr 1fr; gap: 4px; padding: 4px; margin-bottom: 18px; border-radius: 10px; background: rgba(0,0,0,.35); border: 1px solid var(--line); }
.h-auth-tabs button { padding: 9px; border: 0; border-radius: 7px; background: none; color: var(--muted); font-family: var(--font-d); font-size: 11px; font-weight: 600; letter-spacing: .12em; text-transform: uppercase; cursor: pointer; transition: .2s; }
.h-auth[data-active="register"] [data-tab="register"], .h-auth[data-active="login"] [data-tab="login"] { color: #fff; background: linear-gradient(180deg, rgba(34,229,255,.22), rgba(34,229,255,.08)); box-shadow: 0 0 0 1px rgba(34,229,255,.35) inset; }
.h-form { display: none; flex-direction: column; gap: 14px; animation: rise .3s ease-out; }
.h-auth[data-active="register"] [data-form="register"], .h-auth[data-active="login"] [data-form="login"] { display: flex; }
@keyframes rise { from { opacity: 0; transform: translateY(6px); } }
.h-form h2 { margin: 0; font-family: var(--font-d); font-size: 20px; color: #fff; letter-spacing: .03em; }
.h-sub { margin: -8px 0 4px; color: var(--muted); }
.h-form label { display: flex; flex-direction: column; gap: 6px; font-family: var(--font-m); font-size: 10.5px; letter-spacing: .14em; text-transform: uppercase; color: var(--muted); }
.h-form input:not([type=checkbox]) { padding: 12px 14px; border-radius: 9px; border: 1px solid var(--line2); background: rgba(3,6,11,.7); color: var(--text); font-family: var(--font-b); font-size: 16px; letter-spacing: normal; text-transform: none; outline: none; transition: .2s; }
.h-form input:focus { border-color: var(--cyan); box-shadow: 0 0 0 3px rgba(34,229,255,.15); }
.h-form .h-check { flex-direction: row; align-items: center; gap: 8px; text-transform: none; letter-spacing: normal; font-family: var(--font-b); font-size: 14px; }
.h-check input { accent-color: var(--cyan); width: 16px; height: 16px; }
.h-err { color: var(--red); font-family: var(--font-b); font-size: 13.5px; letter-spacing: normal; text-transform: none; }
.h-submit { margin-top: 6px; width: 100%; }

.h-section { padding: 70px 0; }
.h-section-head span { font-family: var(--font-m); font-size: 12px; letter-spacing: .2em; text-transform: uppercase; color: var(--orange); }
.h-section-head h2 { margin: 8px 0 30px; font-family: var(--font-d); font-size: clamp(24px, 3vw, 36px); color: #fff; }
.h-features { display: grid; grid-template-columns: repeat(4, 1fr); gap: 16px; }
.h-features article, .h-chain li { position: relative; padding: 22px; border-radius: 14px; background: rgba(12,18,28,.82); border: 1px solid var(--line); transition: .25s; }
.h-features article:hover, .h-chain li:hover { border-color: rgba(34,229,255,.4); transform: translateY(-3px); box-shadow: 0 16px 40px rgba(0,0,0,.4); }
.h-ico { display: grid; place-items: center; width: 44px; height: 44px; border-radius: 11px; font-size: 22px; border: 1px solid currentColor; background: color-mix(in srgb, currentColor 10%, transparent); }
.h-ico.c { color: var(--cyan); } .h-ico.o { color: var(--orange); } .h-ico.p { color: var(--purple); } .h-ico.g { color: var(--green); }
.h-features h3, .h-chain h3 { margin: 16px 0 6px; font-family: var(--font-d); font-size: 15px; letter-spacing: .06em; color: #fff; }
.h-features p, .h-chain p { margin: 0; color: #a6b4c7; line-height: 1.5; }
.h-chain { display: grid; grid-template-columns: repeat(4, 1fr); gap: 16px; margin: 0; padding: 0; list-style: none; counter-reset: c; }
.h-chain li b { font-family: var(--font-m); font-size: 12px; color: var(--cyan); letter-spacing: .2em; }
.h-chain li:not(:last-child)::after { content: '›'; position: absolute; right: -14px; top: 50%; transform: translateY(-50%); color: var(--orange); font-size: 26px; font-weight: 700; text-shadow: 0 0 10px var(--orange); }
.h-final { margin-top: 36px; text-align: center; }
.h-foot { display: flex; justify-content: space-between; align-items: center; gap: 16px; flex-wrap: wrap; padding: 26px 0 34px; border-top: 1px solid var(--line); color: var(--muted); font-family: var(--font-m); font-size: 11px; letter-spacing: .08em; }

@media (max-width: 1000px) {
  .h-hero { grid-template-columns: 1fr; gap: 36px; min-height: 0; padding-bottom: 60px; }
  .h-features, .h-chain { grid-template-columns: repeat(2, 1fr); }
  .h-chain li::after { display: none; }
}
@media (max-width: 640px) {
  .h-nav, .h-hero, .h-section, .h-foot { width: calc(100% - 28px); }
  .h-link, .h-nav .h-btn-ghost { display: none; }
  .h-logo small { display: none; }
  .h-stats { gap: 18px; }
  .h-stats dt { font-size: 20px; }
  .h-features, .h-chain { grid-template-columns: 1fr; }
  .h-auth { padding: 18px; }
}
@media (prefers-reduced-motion: reduce) { * { animation: none !important; transition: none !important; } html { scroll-behavior: auto; } }

.sandbox-banner { position: relative; z-index: 5; display: flex; align-items: center; justify-content: center; gap: 10px; padding: 6px 12px; font: 600 12px/1.3 'JetBrains Mono', monospace; letter-spacing: .06em; text-align: center; color: #1a0f02; background: repeating-linear-gradient(135deg, #ff8a1f 0 18px, #ffa64d 18px 36px); box-shadow: 0 0 18px rgba(255,138,31,.45); }
.sandbox-banner b { padding: 3px 7px; border-radius: 4px; background: #1a0f02; color: #ff8a1f; letter-spacing: .14em; }
.h-verify { position: relative; z-index: 2; min-height: 80vh; display: grid; place-items: center; padding: 24px 16px; }
.h-verify .h-card { width: min(460px, 100%); display: flex; flex-direction: column; gap: 14px; padding: 28px; border-radius: 16px; border: 1px solid rgba(34,229,255,.3); background: rgba(8,13,20,.9); box-shadow: 0 20px 60px rgba(0,0,0,.5); }
.h-verify h2 { margin: 0; font-family: var(--font-d); font-size: 22px; color: #fff; }
.h-verify .small { font-size: 14px; }
.h-ok { margin: 0; padding: 10px 12px; border-radius: 8px; border: 1px solid rgba(61,220,151,.4); background: rgba(61,220,151,.08); color: #3ddc97; }
.h-textbtn { align-self: flex-start; background: none; border: 0; padding: 0; color: var(--muted); font: inherit; text-decoration: underline; cursor: pointer; }
.h-hp { position: absolute !important; left: -10000px !important; width: 1px; height: 1px; overflow: hidden; }
.h-turnstile { min-height: 65px; }
.h-verify .h-form { display: flex; }
.h-appeal { width: min(560px, 100%) !important; }
.h-appeal textarea { width: 100%; min-height: 96px; padding: 10px 12px; border-radius: 8px; border: 1px solid rgba(34,229,255,.25); background: rgba(5,9,14,.8); color: #fff; font: inherit; resize: vertical; box-sizing: border-box; }
.h-case { display: flex; flex-direction: column; gap: 6px; padding: 14px; border-radius: 10px; border: 1px solid rgba(255,138,30,.3); background: rgba(255,138,30,.05); }
.h-case h3 { margin: 0; font-family: var(--font-d); font-size: 15px; color: #ffb066; letter-spacing: .04em; }
.h-case p { margin: 0; }
.h-status { font-weight: 700; }
.h-status-pending { color: #ffb066; }
.h-status-accepted { color: #3ddc97; }
.h-status-rejected { color: var(--red); }
