@font-face { font-family: 'Rubik Dirt'; src: url('../fonts/rubik-dirt.woff2') format('woff2'); font-display: swap; }
@font-face { font-family: 'Chakra Petch'; font-weight: 400 600; src: url('../fonts/chakra-petch-latin-600-normal.woff2') format('woff2'); font-display: swap; }
@font-face { font-family: 'Chakra Petch'; font-weight: 700 900; src: url('../fonts/chakra-petch-latin-700-normal.woff2') format('woff2'); font-display: swap; }
@font-face { font-family: 'Inter'; font-weight: 400 500; src: url('../fonts/inter-latin-400-normal.woff2') format('woff2'); font-display: swap; }
@font-face { font-family: 'Inter'; font-weight: 600 700; src: url('../fonts/inter-latin-600-normal.woff2') format('woff2'); font-display: swap; }

:root {
  --bg: #05070b;
  --bg2: #0b0f17;
  --panel: #10151f;
  --line: rgba(255, 255, 255, 0.08);
  --text: #eef2f7;
  --muted: #8f99a8;
  --blue: #2b8cff;
  --blue2: #1a5fd1;
  --glow: rgba(43, 140, 255, 0.45);
  --dirt: 'Rubik Dirt', 'Impact', sans-serif;
  --ui: 'Chakra Petch', 'Segoe UI', sans-serif;
  --body: 'Inter', 'Segoe UI', sans-serif;
  --gutter: clamp(16px, 4vw, 56px);
}

* { box-sizing: border-box; margin: 0; padding: 0; }
html { scroll-behavior: smooth; background: var(--bg); overflow-x: clip; }
body { font-family: var(--body); color: var(--text); background: var(--bg); line-height: 1.55; overflow-x: clip; }
a { color: inherit; text-decoration: none; }
button { font: inherit; color: inherit; background: none; border: 0; cursor: pointer; }
img { display: block; max-width: 100%; }
.wrap { width: min(1240px, 100%); margin: 0 auto; padding: 0 var(--gutter); }

.grain {
  position: fixed; inset: -50%; z-index: 100; pointer-events: none; opacity: 0.07;
  background-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' width='160' height='160'%3E%3Cfilter id='n'%3E%3CfeTurbulence type='fractalNoise' baseFrequency='0.9' numOctaves='3' stitchTiles='stitch'/%3E%3C/filter%3E%3Crect width='100%25' height='100%25' filter='url(%23n)'/%3E%3C/svg%3E");
  animation: grain 1s steps(4) infinite;
}
@keyframes grain { 0% { transform: translate(0, 0); } 25% { transform: translate(-3%, 2%); } 50% { transform: translate(2%, -3%); } 75% { transform: translate(-2%, -1%); } 100% { transform: translate(1%, 3%); } }

/* nav */
.nav {
  position: fixed; top: 0; left: 0; right: 0; z-index: 50; display: flex; align-items: center; gap: 24px;
  height: 72px; padding: 0 var(--gutter); transition: background 0.25s, border-color 0.25s;
  border-bottom: 1px solid transparent;
}
.nav.solid { background: rgba(5, 7, 11, 0.88); backdrop-filter: blur(10px); border-color: var(--line); }
.brand { display: flex; align-items: center; gap: 10px; font-family: var(--dirt); font-size: 26px; letter-spacing: 0.02em; }
.brand img { width: 40px; height: 40px; border: 1px solid rgba(43, 140, 255, 0.4); }
.brand b { color: var(--blue); font-weight: 400; }
.links { display: flex; gap: 28px; margin-left: 24px; font-family: var(--ui); font-weight: 700; font-size: 14px; letter-spacing: 0.12em; text-transform: uppercase; }
.links a { color: var(--muted); transition: color 0.2s; }
.links a:hover { color: var(--text); }
.nav-right { margin-left: auto; display: flex; align-items: center; gap: 14px; }
.burger { display: none; width: 40px; height: 40px; flex-direction: column; justify-content: center; gap: 6px; align-items: center; }
.burger span { width: 22px; height: 2px; background: var(--text); }

/* buttons */
.btn {
  position: relative; display: inline-flex; align-items: center; justify-content: center; gap: 10px;
  height: 52px; padding: 0 28px; font-family: var(--ui); font-weight: 700; font-size: 15px; letter-spacing: 0.14em; text-transform: uppercase;
  background: var(--blue); color: #03101f; clip-path: polygon(10px 0, 100% 0, calc(100% - 10px) 100%, 0 100%);
  transition: transform 0.15s, filter 0.15s, box-shadow 0.15s;
}
.btn:hover { filter: brightness(1.12); transform: translateY(-1px); }
.btn-sm { height: 40px; padding: 0 18px; font-size: 13px; }
.btn-big { height: 68px; padding: 0 40px; font-size: 18px; box-shadow: 0 0 40px var(--glow); flex-direction: column; gap: 0; line-height: 1.1; }
.btn-big .addr { font-size: 11px; letter-spacing: 0.1em; opacity: 0.7; font-weight: 600; }
.btn-ghost { background: transparent; color: var(--text); border: 0; box-shadow: inset 0 0 0 2px rgba(255, 255, 255, 0.25); clip-path: none; }
.btn-ghost:hover { box-shadow: inset 0 0 0 2px var(--blue); color: var(--blue); }

/* hero */
.hero { position: relative; isolation: isolate; min-height: 100vh; display: flex; align-items: center; padding: 120px var(--gutter) 90px; overflow: hidden; }
.hero-bg {
  position: absolute; inset: 0; z-index: -1;
  background:
    linear-gradient(90deg, rgba(5, 7, 11, 0.97) 0%, rgba(5, 7, 11, 0.86) 38%, rgba(5, 7, 11, 0.25) 75%, rgba(5, 7, 11, 0.55) 100%),
    linear-gradient(0deg, var(--bg) 0%, transparent 30%),
    url('../img/keyart.jpg') right center / cover no-repeat;
  animation: drift 24s ease-in-out infinite alternate;
}
@keyframes drift { from { transform: scale(1.04); } to { transform: scale(1.1) translateX(-1.5%); } }
.hero-inner { width: min(1240px, 100%); margin: 0 auto; }
.status {
  display: inline-flex; align-items: center; gap: 10px; padding: 8px 14px; margin-bottom: 26px;
  font-family: var(--ui); font-weight: 700; font-size: 13px; letter-spacing: 0.12em; text-transform: uppercase;
  background: rgba(16, 21, 31, 0.8); border: 1px solid var(--line);
}
.status .dot { width: 10px; height: 10px; border-radius: 50%; background: #6b7280; }
.status.online .dot { background: #22d36b; box-shadow: 0 0 0 0 rgba(34, 211, 107, 0.6); animation: ping 1.6s infinite; }
.status.offline .dot { background: #ff4d5e; }
.status b { color: var(--blue); }
@keyframes ping { 70% { box-shadow: 0 0 0 10px rgba(34, 211, 107, 0); } 100% { box-shadow: 0 0 0 0 rgba(34, 211, 107, 0); } }
.hero-title { font-family: var(--dirt); font-weight: 400; font-size: clamp(64px, 12vw, 168px); line-height: 0.86; letter-spacing: 0.01em; transform: skewX(-6deg); }
.hero-title .line { display: block; opacity: 0; transform: translateX(-40px); animation: slam 0.6s cubic-bezier(0.2, 0.9, 0.2, 1.2) forwards; }
.hero-title .line:nth-child(2) { animation-delay: 0.12s; }
.hero-title .line:nth-child(3) { animation-delay: 0.24s; }
.hero-title em { font-style: normal; color: var(--blue); }
.hero-title .blue { color: var(--blue); text-shadow: 0 0 34px var(--glow); }
.hero-title .blue em { color: var(--text); }
@keyframes slam { to { opacity: 1; transform: none; } }
.hero-sub { max-width: 560px; margin-top: 28px; font-size: 18px; color: #c4ccd8; }
.hero-cta { display: flex; flex-wrap: wrap; align-items: center; gap: 16px; margin-top: 36px; }
.hero-note { margin-top: 18px; font-family: var(--ui); font-size: 13px; letter-spacing: 0.08em; color: var(--muted); text-transform: uppercase; }
.scroll-hint { position: absolute; left: 50%; bottom: 28px; width: 2px; height: 46px; background: linear-gradient(var(--blue), transparent); animation: hint 1.8s ease-in-out infinite; }
@keyframes hint { 0%, 100% { opacity: 0.2; transform: translateY(0); } 50% { opacity: 1; transform: translateY(8px); } }

/* ticker */
.ticker { position: relative; overflow: hidden; background: var(--blue); color: #03101f; transform: rotate(-1.6deg); margin: -10px -20px 0; box-shadow: 0 0 50px var(--glow); }
.ticker-track { display: flex; width: max-content; padding: 14px 0; font-family: var(--dirt); font-size: clamp(22px, 3vw, 34px); white-space: nowrap; animation: marquee 32s linear infinite; }
.ticker-track span { padding: 0 22px; }
.ticker-track i { font-style: normal; opacity: 0.5; }
@keyframes marquee { to { transform: translateX(-50%); } }

/* titles */
section { position: relative; }
.title { font-family: var(--dirt); font-weight: 400; font-size: clamp(42px, 6.5vw, 88px); line-height: 0.95; transform: skewX(-5deg); }
.title em { font-style: normal; color: var(--blue); text-shadow: 0 0 28px var(--glow); }
.lead { margin-top: 18px; max-width: 620px; color: var(--muted); font-size: 18px; }

/* world */
.world { padding: 140px 0 110px; }
.split { display: grid; grid-template-columns: 1fr 1fr; gap: 22px; margin-top: 54px; }
.side { position: relative; padding: 44px 40px 40px; background: var(--panel); border: 1px solid var(--line); overflow: hidden; }
.side::before { content: ''; position: absolute; inset: 0; opacity: 0.2; background: url('../img/keyart.jpg') center / cover; filter: grayscale(1); mix-blend-mode: luminosity; }
.side > * { position: relative; }
.side-ls::after { content: ''; position: absolute; left: 0; top: 0; bottom: 0; width: 4px; background: #e9eef5; }
.side-lv { border-color: rgba(43, 140, 255, 0.35); box-shadow: inset 0 0 80px rgba(43, 140, 255, 0.12); }
.side-lv::after { content: ''; position: absolute; left: 0; top: 0; bottom: 0; width: 4px; background: var(--blue); box-shadow: 0 0 20px var(--blue); }
.side-tag { font-family: var(--dirt); font-size: 80px; line-height: 1; color: rgba(255, 255, 255, 0.07); position: absolute; right: 24px; top: 14px; }
.side h3 { font-family: var(--dirt); font-weight: 400; font-size: clamp(34px, 4vw, 52px); line-height: 1; }
.side-lv h3 { color: var(--blue); }
.side p { margin-top: 16px; color: #c4ccd8; font-size: 16px; }
.side ul { margin-top: 22px; list-style: none; display: grid; gap: 10px; }
.side li { position: relative; padding-left: 26px; font-family: var(--ui); font-weight: 700; font-size: 14px; letter-spacing: 0.08em; text-transform: uppercase; }
.side li::before { content: ''; position: absolute; left: 0; top: 50%; width: 14px; height: 4px; background: var(--blue); transform: translateY(-50%) skewX(-20deg); }
.side-ls li::before { background: #e9eef5; }

/* features */
.features { padding: 110px 0; background: linear-gradient(180deg, var(--bg) 0%, var(--bg2) 100%); clip-path: polygon(0 4%, 100% 0, 100% 96%, 0 100%); }
.cards { display: grid; grid-template-columns: repeat(4, 1fr); gap: 16px; margin-top: 54px; }
.card { position: relative; padding: 30px 26px 28px; background: var(--panel); border: 1px solid var(--line); transition: transform 0.2s, border-color 0.2s, box-shadow 0.2s; }
.card:hover { transform: translateY(-4px); border-color: rgba(43, 140, 255, 0.5); box-shadow: 0 18px 40px rgba(0, 0, 0, 0.5), 0 0 30px rgba(43, 140, 255, 0.15); }
.card .num { font-family: var(--dirt); font-size: 44px; line-height: 1; color: var(--blue); opacity: 0.9; }
.card h3 { margin-top: 16px; font-family: var(--ui); font-weight: 700; font-size: 20px; letter-spacing: 0.04em; text-transform: uppercase; }
.card p { margin-top: 10px; color: var(--muted); font-size: 15px; }

/* stats */
.stats { padding: 70px 0; }
.stats-row { display: grid; grid-template-columns: repeat(4, 1fr); gap: 16px; }
.stat { padding: 26px 20px; border-left: 4px solid var(--blue); background: linear-gradient(90deg, rgba(43, 140, 255, 0.1), transparent); }
.stat b { display: block; font-family: var(--dirt); font-weight: 400; font-size: clamp(48px, 6vw, 76px); line-height: 1; }
.stat span { font-family: var(--ui); font-weight: 700; font-size: 13px; letter-spacing: 0.14em; text-transform: uppercase; color: var(--muted); }

/* join */
.join { padding: 110px 0; }
.steps { display: grid; grid-template-columns: repeat(3, 1fr); gap: 18px; margin-top: 54px; counter-reset: s; }
.step { position: relative; display: flex; flex-direction: column; align-items: flex-start; gap: 12px; padding: 34px 30px; background: var(--panel); border: 1px solid var(--line); }
.step > span { font-family: var(--dirt); font-size: 70px; line-height: 0.8; color: var(--blue); text-shadow: 0 0 24px var(--glow); }
.step h3 { font-family: var(--ui); font-weight: 700; font-size: 22px; text-transform: uppercase; letter-spacing: 0.04em; }
.step p { color: var(--muted); font-size: 15px; flex: 1; }

/* rules */
.rules { padding: 40px 0 120px; }
.faq { display: grid; grid-template-columns: 1fr 1fr; gap: 12px; margin-top: 40px; }
.faq details { background: var(--panel); border: 1px solid var(--line); transition: border-color 0.2s; }
.faq details[open] { border-color: rgba(43, 140, 255, 0.45); }
.faq summary { list-style: none; cursor: pointer; display: flex; justify-content: space-between; align-items: center; gap: 16px; padding: 20px 22px; font-family: var(--ui); font-weight: 700; font-size: 17px; letter-spacing: 0.04em; text-transform: uppercase; }
.faq summary::-webkit-details-marker { display: none; }
.faq summary::after { content: '+'; font-family: var(--dirt); font-size: 28px; color: var(--blue); transition: transform 0.2s; }
.faq details[open] summary::after { transform: rotate(45deg); }
.faq details.fixed { border-color: rgba(43, 140, 255, 0.45); }
.faq details.fixed summary { cursor: default; }
.faq details.fixed summary::after { content: ''; }
.faq p { padding: 0 22px 22px; color: var(--muted); }

/* final */
.final { padding: 130px 0; overflow: hidden; isolation: isolate; }
.final::before { content: ''; position: absolute; inset: 0; background: linear-gradient(0deg, var(--bg), rgba(5, 7, 11, 0.6), var(--bg)), url('../img/keyart.jpg') center / cover; opacity: 0.55; z-index: -1; }
.final-inner { display: flex; flex-direction: column; align-items: center; text-align: center; gap: 38px; }
.final-title { font-family: var(--dirt); font-weight: 400; font-size: clamp(48px, 8vw, 120px); line-height: 0.9; transform: skewX(-6deg); }
.final-title em { font-style: normal; color: var(--blue); text-shadow: 0 0 36px var(--glow); }

/* footer */
.foot { padding: 40px 0; border-top: 1px solid var(--line); background: #030407; }
.foot-row { display: flex; flex-wrap: wrap; align-items: center; gap: 24px; }
.socials { display: flex; gap: 10px; margin-left: auto; }
.socials a { height: 40px; padding: 0 16px; display: inline-flex; align-items: center; font-family: var(--ui); font-weight: 700; font-size: 13px; letter-spacing: 0.1em; text-transform: uppercase; border: 1px solid var(--line); color: var(--muted); }
.socials a:hover { color: var(--blue); border-color: var(--blue); }
.small { width: 100%; font-size: 13px; color: #5d6676; }

/* toast */
.toast { position: fixed; left: 50%; bottom: 30px; z-index: 60; transform: translate(-50%, 30px); opacity: 0; padding: 14px 22px; background: var(--blue); color: #03101f; font-family: var(--ui); font-weight: 700; letter-spacing: 0.08em; text-transform: uppercase; transition: opacity 0.25s, transform 0.25s; pointer-events: none; }
.toast.show { opacity: 1; transform: translate(-50%, 0); }

/* reveal */
.reveal { opacity: 0; transform: translateY(26px); transition: opacity 0.6s ease, transform 0.6s ease; }
.reveal.in { opacity: 1; transform: none; }

@media (max-width: 1040px) {
  .cards { grid-template-columns: repeat(2, 1fr); }
  .stats-row { grid-template-columns: repeat(2, 1fr); }
}
@media (max-width: 820px) {
  .links { display: none; position: absolute; top: 72px; left: 0; right: 0; flex-direction: column; gap: 0; margin: 0; background: rgba(5, 7, 11, 0.97); border-bottom: 1px solid var(--line); }
  .links a { padding: 16px var(--gutter); border-top: 1px solid var(--line); }
  .nav.open .links { display: flex; }
  .nav.open { background: rgba(5, 7, 11, 0.97); }
  .burger { display: flex; }
  .nav-right .btn-sm { display: none; }
  .split, .steps, .faq { grid-template-columns: 1fr; }
  .hero { padding-top: 110px; }
  .hero-bg { background: linear-gradient(0deg, var(--bg) 5%, rgba(5, 7, 11, 0.75) 60%, rgba(5, 7, 11, 0.55)), url('../img/keyart.jpg') 65% center / cover no-repeat; }
  .side { padding: 34px 24px 30px; }
}
@media (max-width: 520px) {
  .cards, .stats-row { grid-template-columns: 1fr; }
  .brand span { display: none; }
  .hero-cta .btn { width: 100%; }
  .btn-big { padding: 0 20px; }
}
@media (prefers-reduced-motion: reduce) {
  *, *::before, *::after { animation: none !important; transition: none !important; }
  .hero-title .line, .reveal { opacity: 1; transform: none; }
}
