/* Fonts loaded locally — no external @import */

*, *::before, *::after { margin: 0; padding: 0; box-sizing: border-box; }

:root {
  --bg:      #080808;
  --bg2:     #0e0e0e;
  --surface: rgba(255,255,255,0.04);
  --sur2:    rgba(255,255,255,0.07);
  --surface2: rgba(255,255,255,0.06);
  --border:  rgba(255,255,255,0.08);
  --bor2:    rgba(255,255,255,0.15);
  --border2: rgba(255,255,255,0.12);
  --red:     #e8341a;
  --red2:    #ff4d2e;
  --orange:  #f97316;
  --amber:   #fbbf24;
  --white:   #ffffff;
  --text:    #efefef;
  --text2:   #888;
  --text3:   #444;
  --green:   #22c55e;
  --font:    'Space Grotesk', 'Inter', sans-serif;
  --mono:    'JetBrains Mono', monospace;
}

html { scroll-behavior: smooth; }

body {
  background: var(--bg);
  color: var(--text);
  font-family: var(--font);
  min-height: 100vh;
  overflow-x: hidden;
  padding-top: 68px;
}

::selection { background: rgba(232,52,26,0.35); color: #fff; }
::-webkit-scrollbar { width: 4px; }
::-webkit-scrollbar-track { background: var(--bg); }
::-webkit-scrollbar-thumb { background: var(--red); border-radius: 2px; }

/* CANVAS — behind everything */
#starfield {
  position: fixed; inset: 0;
  z-index: 0; pointer-events: none;
}
#stars-canvas { width: 100%; height: 100%; }

/* SCAN LINE */
.scan-overlay {
  position: fixed; inset: 0;
  pointer-events: none; z-index: 2; overflow: hidden;
}
.scan-overlay::after {
  content: ''; position: absolute;
  left: 0; right: 0; height: 1px;
  background: linear-gradient(90deg, transparent, rgba(232,52,26,0.07), transparent);
  animation: scan 12s linear infinite;
}
@keyframes scan { 0% { top: -2px; } 100% { top: 100%; } }

/* HEADER */
.header {
  position: fixed; top: 0; left: 0; right: 0;
  z-index: 50;
  height: 68px;
  display: flex; align-items: center; justify-content: space-between;
  padding: 0 52px;
  background: rgba(8,8,8,0.92);
  backdrop-filter: blur(16px);
  border-bottom: 1px solid var(--border);
  transition: height 0.3s, background 0.3s;
}
.header.scrolled { height: 56px; background: rgba(8,8,8,0.99); }

.brand { display: flex; align-items: center; gap: 10px; text-decoration: none; }
.brand img { height: 30px; border-radius: 6px; }
.brand-name { font-size: 16px; font-weight: 700; color: var(--text); }
.brand-name em { font-style: normal; color: var(--red); }

.header-center { position: absolute; left: 50%; transform: translateX(-50%); }
.slogan {
  font-family: var(--mono); font-size: 11px;
  color: var(--text3); letter-spacing: 2px; text-transform: uppercase;
}

.header-right { display: flex; align-items: center; gap: 12px; }
.nav-links { display: flex; gap: 2px; }
.nav-link {
  color: var(--text2); text-decoration: none;
  font-size: 13px; font-weight: 500;
  padding: 6px 12px; border-radius: 6px;
  transition: color 0.2s, background 0.2s;
}
.nav-link:hover { color: var(--text); background: var(--sur2); }

.character {
  width: 32px; height: 32px; border-radius: 50%;
  overflow: hidden; border: 1.5px solid var(--bor2);
}
.character img { width: 100%; height: 100%; object-fit: cover; }

#langSelect {
  background: #1a1a1a;
  color: var(--text);
  border: 1px solid var(--border);
  padding: 6px 10px;
  border-radius: 6px;
  font-size: 12px;
  font-family: var(--mono);
  cursor: pointer;
  outline: none;
  -webkit-appearance: none;
  appearance: none;
}
#langSelect option {
  background: #1a1a1a;
  color: #efefef;
}

/* HERO */
.hero {
  position: relative;
  min-height: calc(100vh - 68px);
  display: flex; flex-direction: column;
  align-items: center; justify-content: center;
  text-align: center; padding: 80px 40px 60px;
}

.hero-glow {
  position: absolute; border-radius: 50%;
  pointer-events: none; filter: blur(100px);
}
.hero-glow-1 {
  width: 500px; height: 500px;
  background: radial-gradient(circle, rgba(232,52,26,0.07) 0%, transparent 70%);
  top: -100px; left: 50%; transform: translateX(-50%);
}
.hero-glow-2 {
  width: 350px; height: 350px;
  background: radial-gradient(circle, rgba(249,115,22,0.05) 0%, transparent 70%);
  bottom: 0; right: 5%;
}

.hero-eyebrow {
  display: inline-flex; align-items: center; gap: 8px;
  border: 1px solid var(--bor2); border-radius: 4px;
  padding: 6px 14px; margin-bottom: 32px;
  font-family: var(--mono); font-size: 11px;
  color: var(--text2); letter-spacing: 2px; text-transform: uppercase;
}
.hero-eyebrow-dot {
  width: 5px; height: 5px; border-radius: 50%;
  background: var(--green); box-shadow: 0 0 6px var(--green);
  animation: blink 2s ease-in-out infinite; flex-shrink: 0;
}
@keyframes blink { 0%,100%{opacity:1} 50%{opacity:0.3} }

.hero h1 {
  font-size: clamp(44px, 7vw, 92px);
  font-weight: 800; line-height: 1.0;
  letter-spacing: -3px; margin-bottom: 24px;
}
.hero h1 .line1 { display: block; color: var(--white); }
.hero h1 .line2 {
  display: block;
  background: linear-gradient(90deg, var(--red), var(--orange), var(--amber));
  -webkit-background-clip: text;
  -webkit-text-fill-color: transparent;
  background-clip: text;
}

.hero-desc {
  font-size: 17px; color: var(--text2);
  max-width: 520px; line-height: 1.75; margin-bottom: 40px;
}

.hero-cta {
  display: flex; gap: 12px; flex-wrap: wrap;
  justify-content: center; margin-bottom: 64px;
}

.btn-primary {
  display: inline-flex; align-items: center; gap: 8px;
  background: var(--red); color: #fff;
  padding: 12px 26px; border-radius: 8px;
  text-decoration: none; font-weight: 600; font-size: 14px;
  transition: background 0.2s, transform 0.2s, box-shadow 0.2s;
  box-shadow: 0 4px 20px rgba(232,52,26,0.3);
}
.btn-primary:hover { background: var(--red2); transform: translateY(-2px); box-shadow: 0 8px 28px rgba(232,52,26,0.45); }

.btn-secondary {
  display: inline-flex; align-items: center; gap: 8px;
  background: transparent; color: var(--text);
  padding: 12px 26px; border-radius: 8px;
  text-decoration: none; font-weight: 600; font-size: 14px;
  border: 1px solid var(--bor2);
  transition: background 0.2s, transform 0.2s;
}
.btn-secondary:hover { background: var(--sur2); transform: translateY(-2px); }

.hero-stats {
  display: flex;
  border: 1px solid var(--border);
  border-radius: 10px; overflow: hidden;
}
.hero-stat {
  padding: 18px 32px; text-align: center;
  border-right: 1px solid var(--border);
  background: var(--surface);
}
.hero-stat:last-child { border-right: none; }
.hero-stat-num {
  font-family: var(--mono); font-size: 24px; font-weight: 700;
  color: var(--white); line-height: 1;
}
.hero-stat-label {
  font-size: 11px; color: var(--text3);
  text-transform: uppercase; letter-spacing: 1px; margin-top: 4px;
}

/* SECTIONS */
.section {
  max-width: 1200px; margin: 0 auto 88px; padding: 0 52px;
}
.stats-row {
  max-width: 1200px; margin: 0 auto 88px; padding: 0 52px;
  display: grid; grid-template-columns: repeat(3,1fr); gap: 14px;
  scroll-margin-top: 88px;
}
.discord-section {
  max-width: 1200px; margin: 0 auto 88px; padding: 0 52px;
}
.devs-section {
  max-width: 1200px; margin: 0 auto 88px; padding: 0 52px;
}

.section-header { margin-bottom: 44px; }
.section-eyebrow {
  font-family: var(--mono); font-size: 11px;
  color: var(--red); letter-spacing: 2px;
  text-transform: uppercase; margin-bottom: 10px;
  display: flex; align-items: center; gap: 8px;
}
.section-eyebrow::before { content:''; width:18px; height:1px; background:var(--red); }
.section-title {
  font-size: clamp(24px, 3vw, 38px); font-weight: 700;
  letter-spacing: -0.8px; color: var(--white); margin-bottom: 8px;
}
.section-sub { font-size: 15px; color: var(--text2); max-width: 460px; line-height: 1.65; }

/* STAT CARDS */
.stat-card {
  background: var(--surface); border: 1px solid var(--border);
  border-radius: 12px; padding: 26px 22px;
  display: flex; align-items: center; gap: 16px;
  transition: border-color 0.2s, background 0.2s;
}
.stat-card:hover { border-color: var(--bor2); background: var(--sur2); }
.stat-icon-wrap {
  width: 42px; height: 42px; border-radius: 10px;
  background: rgba(232,52,26,0.1); border: 1px solid rgba(232,52,26,0.2);
  display: flex; align-items: center; justify-content: center; flex-shrink: 0;
}
.stat-icon-wrap svg { width: 18px; height: 18px; color: var(--red); }
.stat-num {
  font-family: var(--mono); font-size: 30px; font-weight: 700;
  color: var(--white); line-height: 1;
}
.stat-lbl { font-size: 12px; color: var(--text2); margin-top: 3px; }

/* FEATURE CARDS */
.features-grid { display: grid; grid-template-columns: repeat(3,1fr); gap: 14px; }
.feat-card {
  background: var(--surface); border: 1px solid var(--border);
  border-radius: 12px; padding: 26px 22px;
  transition: border-color 0.2s, background 0.2s, transform 0.25s;
  position: relative; overflow: hidden;
}
.feat-card::after {
  content:''; position:absolute; bottom:0; left:0; right:0; height:1px;
  background: linear-gradient(90deg, transparent, var(--red), transparent);
  opacity:0; transition: opacity 0.3s;
}
.feat-card:hover { border-color: var(--bor2); background: var(--sur2); transform: translateY(-3px); }
.feat-card:hover::after { opacity: 1; }
.feat-icon-wrap {
  width: 40px; height: 40px; border-radius: 9px;
  background: var(--sur2); border: 1px solid var(--bor2);
  display: flex; align-items: center; justify-content: center; margin-bottom: 16px;
  transition: background 0.2s, border-color 0.2s;
}
.feat-card:hover .feat-icon-wrap { background: rgba(232,52,26,0.1); border-color: rgba(232,52,26,0.25); }
.feat-icon-wrap svg { width: 18px; height: 18px; color: var(--text2); transition: color 0.2s; }
.feat-card:hover .feat-icon-wrap svg { color: var(--red); }
.feat-card h3 { font-size: 15px; font-weight: 600; color: var(--white); margin-bottom: 7px; }
.feat-card p { font-size: 13px; color: var(--text2); line-height: 1.6; }
.feat-tag {
  display: inline-block; margin-top: 12px;
  font-family: var(--mono); font-size: 10px;
  color: var(--text3); letter-spacing: 1px; text-transform: uppercase;
}

/* TECH GRID */
.tech-grid { display: grid; grid-template-columns: repeat(3,1fr); gap: 14px; }
.tech-item {
  background: var(--surface); border: 1px solid var(--border);
  border-radius: 12px; padding: 22px;
  transition: border-color 0.2s, background 0.2s;
}
.tech-item:hover { border-color: var(--bor2); background: var(--sur2); }
.tech-num {
  font-family: var(--mono); font-size: 10px;
  color: var(--text3); letter-spacing: 1px; margin-bottom: 12px;
}
.tech-item h4 { font-size: 14px; font-weight: 600; color: var(--white); margin-bottom: 6px; }
.tech-item p { font-size: 13px; color: var(--text2); line-height: 1.6; }
.tech-bar { margin-top: 14px; height: 2px; background: var(--border); border-radius: 1px; overflow: hidden; }
.tech-bar-fill {
  height: 100%; width: 0;
  background: linear-gradient(90deg, var(--red), var(--orange));
  border-radius: 1px;
  transition: width 1.5s cubic-bezier(0.16,1,0.3,1);
}

/* PERF GRID */
.perf-grid { display: grid; grid-template-columns: repeat(4,1fr); gap: 14px; }
.perf-item {
  background: var(--surface); border: 1px solid var(--border);
  border-radius: 12px; padding: 26px 18px; text-align: center;
  transition: border-color 0.2s, background 0.2s, transform 0.25s;
}
.perf-item:hover { border-color: var(--bor2); background: var(--sur2); transform: translateY(-3px); }
.perf-num {
  font-family: var(--mono); font-size: 34px; font-weight: 700;
  color: var(--white); margin-bottom: 7px; line-height: 1;
}
.perf-label { font-size: 12px; color: var(--text2); }

/* BLOCKED */
.blocked-grid { display: grid; grid-template-columns: repeat(2,1fr); gap: 9px; }
.blocked-item {
  display: flex; align-items: center; gap: 11px;
  background: var(--surface); border: 1px solid var(--border);
  border-radius: 8px; padding: 13px 16px;
  transition: border-color 0.2s, background 0.2s;
}
.blocked-item:hover { border-color: rgba(232,52,26,0.25); background: rgba(232,52,26,0.03); }
.blocked-indicator {
  width: 6px; height: 6px; border-radius: 50%;
  background: var(--red); box-shadow: 0 0 5px rgba(232,52,26,0.6); flex-shrink: 0;
}
.blocked-name { font-family: var(--mono); font-size: 13px; font-weight: 500; color: var(--text); }
.blocked-type { font-family: var(--mono); font-size: 10px; color: var(--text3); margin-left: auto; text-transform: uppercase; }

/* CHANGELOG */
.changelog-list { display: flex; flex-direction: column; gap: 9px; }
.changelog-item {
  display: flex; align-items: flex-start; gap: 12px;
  background: var(--surface); border: 1px solid var(--border);
  border-radius: 8px; padding: 14px 16px;
  transition: border-color 0.2s, background 0.2s;
}
.changelog-item:hover { border-color: var(--bor2); background: var(--sur2); }
.changelog-marker {
  width: 22px; height: 22px; border-radius: 5px;
  background: var(--sur2); border: 1px solid var(--bor2);
  display: flex; align-items: center; justify-content: center; flex-shrink: 0; margin-top: 1px;
}
.changelog-marker svg { width: 11px; height: 11px; color: var(--text2); }
.changelog-text { font-size: 13px; color: var(--text2); line-height: 1.55; }
.changelog-text strong { color: var(--text); font-weight: 600; }

/* DISCORD */
.discord-card {
  background: var(--surface); border: 1px solid var(--border);
  border-radius: 14px; padding: 56px 48px;
  display: flex; align-items: center; justify-content: space-between; gap: 36px;
  position: relative; overflow: hidden;
}
.discord-card::before {
  content:''; position:absolute; top:0; left:0; right:0; height:1px;
  background: linear-gradient(90deg, transparent, rgba(88,101,242,0.5), transparent);
}
.discord-card-text h2 {
  font-size: 28px; font-weight: 700; color: var(--white);
  letter-spacing: -0.5px; margin-bottom: 8px;
}
.discord-card-text p { font-size: 14px; color: var(--text2); max-width: 360px; line-height: 1.6; }
.btn-discord {
  display: inline-flex; align-items: center; gap: 9px;
  background: #5865F2; color: #fff;
  padding: 12px 28px; border-radius: 8px;
  text-decoration: none; font-weight: 600; font-size: 14px;
  white-space: nowrap; flex-shrink: 0;
  transition: background 0.2s, transform 0.2s, box-shadow 0.2s;
  box-shadow: 0 4px 18px rgba(88,101,242,0.35);
}
.btn-discord:hover { background: #4752c4; transform: translateY(-2px); box-shadow: 0 8px 28px rgba(88,101,242,0.5); }

/* DEVELOPERS */
.dev-grid { display: grid; grid-template-columns: repeat(2,1fr); gap: 14px; }
.dev-card {
  background: var(--surface); border: 1px solid var(--border);
  border-radius: 12px; padding: 28px 24px;
  display: flex; align-items: center; gap: 18px;
  transition: border-color 0.2s, background 0.2s, transform 0.25s;
}
.dev-card:hover { border-color: var(--bor2); background: var(--sur2); transform: translateY(-3px); }
.dev-avatar {
  width: 60px; height: 60px; border-radius: 50%;
  border: 1.5px solid var(--bor2); flex-shrink: 0;
  transition: border-color 0.2s;
}
.dev-card:hover .dev-avatar { border-color: var(--red); }
.dev-name { font-size: 16px; font-weight: 700; color: var(--white); margin-bottom: 3px; }
.dev-role { font-family: var(--mono); font-size: 11px; color: var(--text3); text-transform: uppercase; letter-spacing: 1px; }

/* FOOTER */
.footer {
  background: var(--bg2); border-top: 1px solid var(--border);
  padding: 52px 0 22px;
}
.footer-inner {
  max-width: 1200px; margin: 0 auto; padding: 0 52px;
  display: grid; grid-template-columns: 2fr 1fr 1fr; gap: 44px;
}
.footer-brand p { font-size: 13px; color: var(--text3); line-height: 1.65; margin-top: 10px; max-width: 250px; }
.footer-col h4 { font-size: 11px; font-weight: 600; color: var(--text2); text-transform: uppercase; letter-spacing: 1.5px; margin-bottom: 14px; }
.footer-col ul { list-style: none; }
.footer-col li { margin-bottom: 8px; }
.footer-col a { font-size: 13px; color: var(--text3); text-decoration: none; transition: color 0.2s; }
.footer-col a:hover { color: var(--text); }
.footer-bottom {
  max-width: 1200px; margin: 36px auto 0;
  padding: 18px 52px 0; border-top: 1px solid var(--border);
  display: flex; align-items: center; justify-content: space-between;
}
.footer-bottom p { font-size: 12px; color: var(--text3); font-family: var(--mono); }
.footer-status {
  display: flex; align-items: center; gap: 6px;
  font-family: var(--mono); font-size: 11px; color: var(--green);
}
.footer-status::before {
  content:''; width:5px; height:5px; border-radius:50%;
  background: var(--green); box-shadow: 0 0 5px var(--green);
  animation: blink 2s ease-in-out infinite;
}

/* REVEAL */
.reveal { opacity: 0; transition: opacity 0.6s ease, transform 0.6s cubic-bezier(0.16,1,0.3,1); transform: translateY(24px); }
.reveal.show { opacity: 1; transform: translateY(0); }

/* TILT */
.feat-card, .tech-item, .perf-item, .stat-card, .dev-card { will-change: transform; }

/* RESPONSIVE */
@media (max-width: 1024px) {
  .features-grid, .tech-grid { grid-template-columns: repeat(2,1fr); }
  .perf-grid { grid-template-columns: repeat(2,1fr); }
  .footer-inner { grid-template-columns: 1fr 1fr; }
  .discord-card { flex-direction: column; text-align: center; padding: 40px 32px; }
  .discord-card-text p { max-width: 100%; }
}
@media (max-width: 768px) {
  .header { padding: 0 18px; }
  .header-center, .nav-links { display: none; }
  .hero { padding: 52px 20px 44px; }
  .hero h1 { letter-spacing: -2px; }
  .hero-stats { flex-direction: column; }
  .hero-stat { border-right: none; border-bottom: 1px solid var(--border); }
  .hero-stat:last-child { border-bottom: none; }
  .section, .stats-row, .discord-section, .devs-section { padding: 0 18px; }
  .features-grid, .tech-grid, .perf-grid, .stats-row { grid-template-columns: 1fr; }
  .blocked-grid, .dev-grid { grid-template-columns: 1fr; }
  .footer-inner { grid-template-columns: 1fr; gap: 26px; padding: 0 18px; }
  .footer-bottom { flex-direction: column; gap: 8px; padding: 16px 18px 0; }
}

/* ── NAV AUTH BUTTONS ── */
.btn-nav-login {
  display: inline-flex; align-items: center; gap: 6px;
  padding: 7px 14px; border-radius: 6px; font-size: 13px; font-weight: 600;
  color: var(--text2); text-decoration: none;
  border: 1px solid var(--border); background: transparent;
  transition: color 0.2s, border-color 0.2s, background 0.2s;
}
.btn-nav-login:hover { color: var(--text); border-color: var(--bor2); background: var(--sur2); }
.btn-nav-register {
  display: inline-flex; align-items: center;
  padding: 7px 14px; border-radius: 6px; font-size: 13px; font-weight: 600;
  color: #fff; text-decoration: none;
  background: var(--red);
  transition: background 0.2s, transform 0.2s;
}
.btn-nav-register:hover { background: var(--red2); transform: translateY(-1px); }

/* ── USER DROPDOWN ── */
.user-dropdown-wrap { position: relative; }
.user-dropdown-btn {
  display: flex; align-items: center; gap: 8px;
  background: var(--surface); border: 1px solid var(--border);
  border-radius: 8px; padding: 6px 12px; cursor: pointer;
  color: var(--text); font-family: var(--font); font-size: 13px; font-weight: 600;
  transition: border-color 0.2s, background 0.2s;
}
.user-dropdown-btn:hover { border-color: var(--bor2); background: var(--sur2); }
.user-dropdown-avatar {
  width: 24px; height: 24px; border-radius: 50%;
  background: rgba(232,52,26,0.15); border: 1px solid rgba(232,52,26,0.3);
  display: flex; align-items: center; justify-content: center;
  font-size: 11px; font-weight: 700; color: var(--red); flex-shrink: 0;
}
.user-dropdown-name { max-width: 100px; overflow: hidden; text-overflow: ellipsis; white-space: nowrap; }
.user-dropdown-menu {
  position: absolute; top: calc(100% + 8px); right: 0;
  background: var(--bg2); border: 1px solid var(--border);
  border-radius: 10px; padding: 6px; min-width: 180px;
  box-shadow: 0 16px 40px rgba(0,0,0,0.5);
  opacity: 0; visibility: hidden; transform: translateY(-6px);
  transition: opacity 0.15s, transform 0.15s, visibility 0.15s;
  z-index: 100;
}
.user-dropdown-menu.open { opacity: 1; visibility: visible; transform: translateY(0); }
.user-drop-item {
  display: flex; align-items: center; gap: 9px;
  padding: 9px 12px; border-radius: 7px; font-size: 13px;
  color: var(--text2); text-decoration: none; font-weight: 500;
  transition: background 0.15s, color 0.15s;
}
.user-drop-item:hover { background: var(--sur2); color: var(--text); }
.user-drop-divider { height: 1px; background: var(--border); margin: 4px 0; }
.user-drop-danger { color: #f87171; }
.user-drop-danger:hover { background: rgba(239,68,68,0.1); color: #f87171; }

/* ── REFERENCES SECTION ── */
.refs-grid {
  display: grid;
  grid-template-columns: repeat(auto-fill, minmax(180px, 1fr));
  gap: 16px;
}
.ref-card {
  background: var(--surface); border: 1px solid var(--border);
  border-radius: 12px; padding: 24px 18px;
  display: flex; flex-direction: column; align-items: center; text-align: center;
  transition: border-color 0.2s, background 0.2s, transform 0.25s;
}
.ref-card:hover { border-color: var(--bor2); background: var(--sur2); transform: translateY(-3px); }
.ref-img-wrap { margin-bottom: 14px; }
.ref-img {
  width: 72px; height: 72px; border-radius: 50%;
  object-fit: cover; border: 2px solid var(--bor2);
  transition: border-color 0.2s;
}
.ref-card:hover .ref-img { border-color: var(--red); }
.ref-img-placeholder {
  width: 72px; height: 72px; border-radius: 50%;
  background: var(--sur2); border: 2px solid var(--bor2);
  display: flex; align-items: center; justify-content: center;
  color: var(--text3);
}
.ref-name { font-size: 14px; font-weight: 700; color: var(--white); margin-bottom: 5px; }
.ref-note { font-size: 12px; color: var(--text3); line-height: 1.5; }

/* ── SCROLL OFFSET — handled by JS ── */
