/* ===== BruteFather — Dark Minimalism Theme ===== */

/* ---------- Reset & Base ---------- */
*, *::before, *::after {
  margin: 0; padding: 0; box-sizing: border-box;
}

:root {
  --bg-primary:    #0a0a0f;
  --bg-secondary:  #0e0e16;
  --bg-card:       #111119;
  --bg-card-hover: #16161f;
  --bg-nav:        rgba(10, 10, 15, 0.92);

  --border:        #1a1a28;
  --border-light:  #222236;

  --text-primary:  #e8e8ef;
  --text-secondary:#9999aa;
  --text-dim:      #555566;

  --accent:        #00ccff;
  --accent-glow:   rgba(0, 204, 255, 0.15);
  --accent-hover:  #00aadd;
  --accent-orange: #f7931a;
  --accent-green:  #00ff88;
  --accent-red:    #ff4466;
  --accent-yellow: #ffaa00;

  --font-body:     'Inter', -apple-system, BlinkMacSystemFont, 'Segoe UI', sans-serif;
  --font-mono:     'JetBrains Mono', 'Cascadia Code', 'Fira Code', 'Consolas', monospace;

  --radius:        10px;
  --radius-sm:     6px;
  --radius-lg:     16px;

  --max-width:     1200px;
  --nav-height:    64px;

  --transition:    0.25s cubic-bezier(0.4, 0, 0.2, 1);
}

html {
  scroll-behavior: smooth;
  scroll-padding-top: var(--nav-height);
}

body {
  background: var(--bg-primary);
  color: var(--text-primary);
  font-family: var(--font-body);
  font-size: 15px;
  line-height: 1.6;
  -webkit-font-smoothing: antialiased;
  overflow-x: hidden;
}

a { color: var(--accent); text-decoration: none; transition: color var(--transition); }
a:hover { color: var(--accent-hover); }

::selection { background: var(--accent); color: var(--bg-primary); }

.container {
  max-width: var(--max-width);
  margin: 0 auto;
  padding: 0 24px;
}

/* ---------- Navbar ---------- */
.navbar {
  position: fixed;
  top: 0; left: 0; right: 0;
  height: var(--nav-height);
  background: var(--bg-nav);
  backdrop-filter: blur(16px);
  -webkit-backdrop-filter: blur(16px);
  border-bottom: 1px solid var(--border);
  z-index: 1000;
  transition: background var(--transition), box-shadow var(--transition);
}
.navbar.scrolled {
  box-shadow: 0 4px 24px rgba(0, 0, 0, 0.4);
}

.nav-inner {
  max-width: var(--max-width);
  margin: 0 auto;
  padding: 0 24px;
  height: 100%;
  display: flex;
  align-items: center;
  justify-content: space-between;
}

.nav-logo {
  display: flex;
  align-items: center;
  gap: 8px;
  color: var(--text-primary);
  font-weight: 700;
  font-size: 18px;
}
.nav-logo:hover { color: var(--accent); }
.logo-icon { font-size: 22px; }
.logo-text { font-family: var(--font-mono); letter-spacing: -0.5px; }

.nav-links {
  display: flex;
  align-items: center;
  gap: 4px;
}
.nav-links a {
  color: var(--text-secondary);
  font-size: 13px;
  font-weight: 500;
  padding: 8px 14px;
  border-radius: var(--radius-sm);
  transition: all var(--transition);
}
.nav-links a:hover {
  color: var(--text-primary);
  background: rgba(255, 255, 255, 0.04);
}
.nav-dashboard {
  background: var(--accent) !important;
  color: var(--bg-primary) !important;
  font-weight: 600 !important;
  margin-left: 8px;
}
.nav-dashboard:hover {
  background: var(--accent-hover) !important;
}

.nav-right {
  display: flex;
  align-items: center;
  gap: 12px;
}

/* Language toggle */
.lang-toggle {
  display: flex;
  align-items: center;
  gap: 6px;
  background: var(--bg-card);
  border: 1px solid var(--border);
  border-radius: var(--radius-sm);
  padding: 7px 14px;
  color: var(--text-secondary);
  cursor: pointer;
  font-size: 13px;
  font-family: var(--font-mono);
  transition: all var(--transition);
  line-height: 1;
}
.lang-toggle:hover {
  border-color: var(--accent);
  color: var(--accent);
  background: var(--accent-glow);
}
.lang-globe {
  width: 16px;
  height: 16px;
  flex-shrink: 0;
}
.lang-label { font-weight: 700; letter-spacing: 0.5px; }

/* Burger */
.nav-burger {
  display: none;
  flex-direction: column;
  gap: 5px;
  background: none;
  border: none;
  cursor: pointer;
  padding: 4px;
}
.nav-burger span {
  display: block;
  width: 22px;
  height: 2px;
  background: var(--text-secondary);
  border-radius: 2px;
  transition: all var(--transition);
}
.nav-burger.active span:nth-child(1) { transform: rotate(45deg) translate(5px, 5px); }
.nav-burger.active span:nth-child(2) { opacity: 0; }
.nav-burger.active span:nth-child(3) { transform: rotate(-45deg) translate(5px, -5px); }

/* ---------- Hero ---------- */
.hero {
  position: relative;
  min-height: 100vh;
  display: flex;
  align-items: center;
  justify-content: center;
  padding: calc(var(--nav-height) + 40px) 24px 60px;
  overflow: hidden;
}

.hero-bg {
  position: absolute;
  inset: 0;
  z-index: 0;
}
.hero-bg canvas {
  width: 100%;
  height: 100%;
  opacity: 0.35;
}
.hero-bg::after {
  content: '';
  position: absolute;
  inset: 0;
  background: radial-gradient(ellipse at 50% 30%, transparent 0%, var(--bg-primary) 70%);
}

.hero-content {
  position: relative;
  z-index: 1;
  text-align: center;
  max-width: 800px;
}

.hero-badge {
  display: inline-block;
  background: var(--accent-glow);
  border: 1px solid rgba(0, 204, 255, 0.3);
  color: var(--accent);
  font-family: var(--font-mono);
  font-size: 13px;
  font-weight: 600;
  padding: 4px 16px;
  border-radius: 20px;
  margin-bottom: 20px;
  letter-spacing: 0.5px;
}

.hero-title {
  margin-bottom: 20px;
}
.hero-title-main {
  display: block;
  font-family: var(--font-mono);
  font-size: clamp(42px, 7vw, 72px);
  font-weight: 800;
  letter-spacing: -2px;
  background: linear-gradient(135deg, var(--text-primary) 0%, var(--accent) 100%);
  -webkit-background-clip: text;
  -webkit-text-fill-color: transparent;
  background-clip: text;
  line-height: 1.1;
}
.hero-title-sub {
  display: block;
  font-size: clamp(16px, 2.5vw, 22px);
  font-weight: 400;
  color: var(--text-secondary);
  margin-top: 8px;
  letter-spacing: 1px;
}

.hero-desc {
  font-size: 16px;
  color: var(--text-secondary);
  max-width: 620px;
  margin: 0 auto 32px;
  line-height: 1.7;
}

.hero-cta {
  display: flex;
  gap: 16px;
  justify-content: center;
  flex-wrap: wrap;
  margin-bottom: 48px;
}

.hero-counters {
  display: flex;
  gap: 48px;
  justify-content: center;
  flex-wrap: wrap;
}

.hero-counter {
  text-align: center;
}
.hero-counter-value {
  display: block;
  font-family: var(--font-mono);
  font-size: 32px;
  font-weight: 700;
  color: var(--accent);
}
.hero-counter-label {
  display: block;
  font-size: 12px;
  color: var(--text-dim);
  text-transform: uppercase;
  letter-spacing: 1px;
  margin-top: 4px;
}

.hero-scroll {
  position: absolute;
  bottom: 32px;
  left: 50%;
  transform: translateX(-50%);
  z-index: 1;
}
.hero-scroll a {
  color: var(--text-dim);
  animation: bounce 2s infinite;
}
@keyframes bounce {
  0%, 100% { transform: translateY(0); }
  50% { transform: translateY(8px); }
}

/* ---------- Buttons ---------- */
.btn {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  padding: 12px 28px;
  border-radius: var(--radius);
  font-size: 14px;
  font-weight: 600;
  font-family: var(--font-body);
  cursor: pointer;
  transition: all var(--transition);
  border: none;
  text-decoration: none;
}
.btn-icon { font-size: 16px; }

.btn-primary {
  background: var(--accent);
  color: var(--bg-primary);
}
.btn-primary:hover {
  background: var(--accent-hover);
  color: var(--bg-primary);
  box-shadow: 0 4px 20px rgba(0, 204, 255, 0.3);
  transform: translateY(-1px);
}

.btn-secondary {
  background: transparent;
  color: var(--accent);
  border: 1px solid var(--border-light);
}
.btn-secondary:hover {
  border-color: var(--accent);
  background: var(--accent-glow);
  color: var(--accent);
}

.btn-large {
  padding: 16px 36px;
  font-size: 16px;
  border-radius: var(--radius-lg);
}

/* ---------- Sections ---------- */
.section {
  padding: 96px 0;
}
.section-dark {
  background: var(--bg-secondary);
}

.section-title {
  text-align: center;
  font-size: 36px;
  font-weight: 700;
  margin-bottom: 12px;
  letter-spacing: -0.5px;
}
.section-desc {
  text-align: center;
  color: var(--text-secondary);
  font-size: 16px;
  max-width: 540px;
  margin: 0 auto 56px;
}

/* ---------- Features Grid ---------- */
.features-grid {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 20px;
}

.feature-card {
  background: var(--bg-card);
  border: 1px solid var(--border);
  border-radius: var(--radius-lg);
  padding: 28px;
  transition: all var(--transition);
}
.feature-card:hover {
  border-color: var(--border-light);
  background: var(--bg-card-hover);
  transform: translateY(-2px);
  box-shadow: 0 8px 32px rgba(0, 0, 0, 0.3);
}

.feature-icon {
  font-size: 32px;
  margin-bottom: 16px;
  display: inline-block;
}

.feature-card h3 {
  font-size: 17px;
  font-weight: 600;
  margin-bottom: 8px;
  color: var(--text-primary);
}
.feature-card p {
  font-size: 13px;
  color: var(--text-secondary);
  line-height: 1.6;
}

/* ---------- Stats Grid ---------- */
.stats-grid {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 20px;
  margin-bottom: 24px;
}

.stat-card {
  background: var(--bg-card);
  border: 1px solid var(--border);
  border-radius: var(--radius-lg);
  padding: 24px;
  text-align: center;
  transition: all var(--transition);
}
.stat-card:hover {
  border-color: var(--accent);
  box-shadow: 0 0 24px var(--accent-glow);
}

.stat-icon { font-size: 24px; margin-bottom: 8px; }
.stat-value {
  font-family: var(--font-mono);
  font-size: 28px;
  font-weight: 700;
  color: var(--accent);
  margin-bottom: 4px;
}
.stat-label {
  font-size: 12px;
  color: var(--text-dim);
  text-transform: uppercase;
  letter-spacing: 1px;
}

.stats-refresh {
  text-align: center;
  font-size: 12px;
  color: var(--text-dim);
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 8px;
}
.stats-dot {
  width: 8px; height: 8px;
  border-radius: 50%;
  background: var(--accent-green);
  animation: pulse-dot 2s infinite;
}
@keyframes pulse-dot {
  0%, 100% { opacity: 1; }
  50% { opacity: 0.3; }
}

/* Stat value animations */
.stat-value.found-positive { color: var(--accent-yellow); }
.stat-value.network-offline { color: var(--text-dim); }

/* ---------- Modes Grid ---------- */
.modes-grid {
  display: grid;
  grid-template-columns: repeat(auto-fill, minmax(260px, 1fr));
  gap: 16px;
}

.mode-card {
  background: var(--bg-card);
  border: 1px solid var(--border);
  border-radius: var(--radius);
  padding: 20px;
  position: relative;
  transition: all var(--transition);
  overflow: hidden;
}
.mode-card:hover {
  border-color: var(--border-light);
  background: var(--bg-card-hover);
}
.mode-card::before {
  content: '';
  position: absolute;
  top: 0; left: 0;
  width: 3px; height: 100%;
  background: var(--accent);
  opacity: 0;
  transition: opacity var(--transition);
}
.mode-card:hover::before { opacity: 1; }

.mode-num {
  font-family: var(--font-mono);
  font-size: 11px;
  font-weight: 700;
  color: var(--accent);
  opacity: 0.5;
  margin-bottom: 8px;
}
.mode-card h4 {
  font-size: 15px;
  font-weight: 600;
  margin-bottom: 6px;
  color: var(--text-primary);
}
.mode-card p {
  font-size: 12px;
  color: var(--text-secondary);
  line-height: 1.5;
}

/* ---------- Download ---------- */
.download-card {
  background: var(--bg-card);
  border: 1px solid var(--border);
  border-radius: var(--radius-lg);
  padding: 40px;
  display: flex;
  justify-content: space-between;
  align-items: center;
  gap: 40px;
  max-width: 900px;
  margin: 0 auto;
}

.download-version {
  display: flex;
  align-items: baseline;
  gap: 12px;
  margin-bottom: 16px;
}
.download-ver-label {
  font-size: 24px;
  font-weight: 700;
  color: var(--text-primary);
}
.download-ver-num {
  font-family: var(--font-mono);
  font-size: 16px;
  font-weight: 600;
  color: var(--accent);
  background: var(--accent-glow);
  padding: 2px 12px;
  border-radius: 12px;
}

.download-meta {
  display: flex;
  gap: 20px;
  margin-bottom: 20px;
  flex-wrap: wrap;
}
.download-meta-item {
  display: flex;
  align-items: center;
  gap: 6px;
  font-size: 13px;
  color: var(--text-secondary);
}
.meta-icon { font-size: 14px; }

.download-reqs h4 {
  font-size: 14px;
  font-weight: 600;
  color: var(--text-primary);
  margin-bottom: 8px;
}
.download-reqs ul {
  list-style: none;
  padding: 0;
}
.download-reqs li {
  font-size: 13px;
  color: var(--text-secondary);
  padding: 3px 0;
  padding-left: 16px;
  position: relative;
}
.download-reqs li::before {
  content: '›';
  position: absolute;
  left: 0;
  color: var(--accent);
  font-weight: 700;
}

.download-actions {
  text-align: center;
  flex-shrink: 0;
}
.download-btn {
  white-space: nowrap;
}
.download-hash {
  font-family: var(--font-mono);
  font-size: 10px;
  color: var(--text-dim);
  margin-top: 12px;
  word-break: break-all;
}

/* ---------- Changelog ---------- */
.changelog-list {
  max-width: 720px;
  margin: 0 auto;
}

.changelog-entry {
  position: relative;
  padding: 24px 0 24px 32px;
  border-left: 2px solid var(--border);
}
.changelog-entry::before {
  content: '';
  position: absolute;
  left: -6px; top: 28px;
  width: 10px; height: 10px;
  border-radius: 50%;
  background: var(--accent);
  border: 2px solid var(--bg-primary);
}
.changelog-entry:first-child::before {
  background: var(--accent-green);
  box-shadow: 0 0 8px rgba(0, 255, 136, 0.4);
}

.changelog-ver {
  font-family: var(--font-mono);
  font-size: 16px;
  font-weight: 700;
  color: var(--accent);
  margin-bottom: 4px;
}
.changelog-date {
  font-size: 12px;
  color: var(--text-dim);
  margin-bottom: 12px;
}
.changelog-body ul {
  list-style: none;
  padding: 0;
}
.changelog-body li {
  font-size: 13px;
  color: var(--text-secondary);
  padding: 3px 0;
  padding-left: 20px;
  position: relative;
}
.changelog-body li::before {
  content: '+';
  position: absolute;
  left: 0;
  color: var(--accent-green);
  font-family: var(--font-mono);
  font-weight: 700;
}

/* ---------- FAQ ---------- */
.faq-list {
  max-width: 720px;
  margin: 0 auto;
  display: flex;
  flex-direction: column;
  gap: 12px;
}

.faq-item {
  background: var(--bg-card);
  border: 1px solid var(--border);
  border-radius: var(--radius);
  overflow: hidden;
  transition: all var(--transition);
}
.faq-item[open] {
  border-color: var(--border-light);
}

.faq-item summary {
  padding: 18px 24px;
  font-size: 14px;
  font-weight: 600;
  color: var(--text-primary);
  cursor: pointer;
  list-style: none;
  display: flex;
  justify-content: space-between;
  align-items: center;
  transition: color var(--transition);
}
.faq-item summary::-webkit-details-marker { display: none; }
.faq-item summary::after {
  content: '+';
  font-family: var(--font-mono);
  font-size: 18px;
  color: var(--accent);
  transition: transform var(--transition);
}
.faq-item[open] summary::after {
  transform: rotate(45deg);
}
.faq-item summary:hover { color: var(--accent); }

.faq-item p {
  padding: 0 24px 18px;
  font-size: 13px;
  color: var(--text-secondary);
  line-height: 1.7;
}

/* ---------- Footer ---------- */
.footer {
  background: var(--bg-primary);
  border-top: 1px solid var(--border);
  padding: 40px 0;
}
.footer-inner {
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 16px;
}
.footer-logo {
  display: flex;
  align-items: center;
  gap: 8px;
  font-family: var(--font-mono);
  font-weight: 700;
  font-size: 16px;
  color: var(--text-primary);
}
.footer-links {
  display: flex;
  gap: 24px;
}
.footer-links a {
  font-size: 13px;
  color: var(--text-secondary);
}
.footer-links a:hover { color: var(--accent); }
.footer-copy {
  font-size: 12px;
  color: var(--text-dim);
}

/* ---------- Responsive ---------- */
@media (max-width: 900px) {
  .features-grid { grid-template-columns: repeat(2, 1fr); }
  .stats-grid { grid-template-columns: repeat(2, 1fr); }
  .download-card { flex-direction: column; text-align: center; padding: 28px; }
  .download-actions { width: 100%; }
  .hero-counters { gap: 32px; }
}

@media (max-width: 640px) {
  .nav-links { 
    display: none; 
    position: absolute;
    top: var(--nav-height);
    left: 0; right: 0;
    background: var(--bg-nav);
    backdrop-filter: blur(16px);
    flex-direction: column;
    padding: 16px;
    border-bottom: 1px solid var(--border);
  }
  .nav-links.active { display: flex; }
  .nav-burger { display: flex; }

  .features-grid { grid-template-columns: 1fr; }
  .stats-grid { grid-template-columns: repeat(2, 1fr); }
  .modes-grid { grid-template-columns: 1fr; }

  .section { padding: 64px 0; }
  .section-title { font-size: 28px; }
  .section-desc { font-size: 14px; margin-bottom: 36px; }

  .hero { padding-top: calc(var(--nav-height) + 24px); }
  .hero-title-main { letter-spacing: -1px; }
  .hero-counters { gap: 24px; }
  .hero-counter-value { font-size: 24px; }

  .download-meta { justify-content: center; }
}

@media (max-width: 400px) {
  .stats-grid { grid-template-columns: 1fr; }
  .hero-counters { flex-direction: column; gap: 16px; }
}

/* ---------- Animations (AOS-like) ---------- */
.animate-in {
  opacity: 0;
  transform: translateY(20px);
  transition: opacity 0.6s ease, transform 0.6s ease;
}
.animate-in.visible {
  opacity: 1;
  transform: translateY(0);
}

/* ---------- Scrollbar ---------- */
::-webkit-scrollbar { width: 8px; }
::-webkit-scrollbar-track { background: var(--bg-primary); }
::-webkit-scrollbar-thumb { 
  background: var(--border-light);
  border-radius: 4px;
}
::-webkit-scrollbar-thumb:hover { background: var(--text-dim); }

/* ---------- Collapsible Changelog ---------- */
details.changelog-entry {
  border: 1px solid var(--border-light);
  border-radius: 12px;
  padding: 0;
  margin-bottom: 16px;
  background: var(--bg-secondary);
  overflow: hidden;
  transition: border-color 0.3s;
}
details.changelog-entry[open] {
  border-color: var(--accent-primary);
}
details.changelog-entry summary.changelog-header {
  display: flex;
  align-items: center;
  gap: 16px;
  padding: 20px 24px;
  cursor: pointer;
  user-select: none;
  list-style: none;
}
details.changelog-entry summary.changelog-header::-webkit-details-marker { display: none; }
details.changelog-entry summary.changelog-header::marker { display: none; content: ""; }
.changelog-header .changelog-toggle {
  margin-left: auto;
  font-size: 12px;
  color: var(--text-dim);
  transition: transform 0.3s;
}
details.changelog-entry[open] .changelog-toggle {
  transform: rotate(180deg);
}
details.changelog-entry .changelog-body {
  padding: 0 24px 20px;
  border-top: 1px solid var(--border-light);
}
details.changelog-entry .changelog-ver {
  display: inline-block;
  font-family: var(--font-mono);
  font-weight: 700;
  font-size: 16px;
  color: var(--accent-primary);
}
details.changelog-entry .changelog-date {
  font-size: 13px;
  color: var(--text-dim);
}

/* ---------- Footer Legal ---------- */
.footer-legal {
  margin-top: 24px;
  padding-top: 20px;
  border-top: 1px solid var(--border-light);
  font-size: 11px;
  line-height: 1.6;
  color: var(--text-dim);
  max-width: 720px;
  margin-left: auto;
  margin-right: auto;
  text-align: center;
  opacity: 0.7;
}

/* ---------- TG Auth Modal ---------- */
.tg-modal-overlay {
  position: fixed;
  inset: 0;
  z-index: 10000;
  background: rgba(0,0,0,0.8);
  backdrop-filter: blur(8px);
  display: flex;
  align-items: center;
  justify-content: center;
  animation: fadeIn 0.2s ease;
}
.tg-modal {
  background: var(--bg-card);
  border: 1px solid var(--border-light);
  border-radius: 20px;
  padding: 48px 40px;
  max-width: 420px;
  width: 90%;
  text-align: center;
  position: relative;
  box-shadow: 0 24px 80px rgba(0,0,0,0.5);
}
.tg-modal-close {
  position: absolute;
  top: 16px;
  right: 20px;
  background: none;
  border: none;
  color: var(--text-dim);
  font-size: 28px;
  cursor: pointer;
  transition: color 0.2s;
  line-height: 1;
}
.tg-modal-close:hover { color: var(--text-primary); }
.tg-modal-icon {
  font-size: 48px;
  margin-bottom: 16px;
}
.tg-modal h3 {
  font-size: 22px;
  margin-bottom: 8px;
  color: var(--text-primary);
}
.tg-modal-desc {
  color: var(--text-secondary);
  font-size: 14px;
  margin-bottom: 24px;
}
.tg-modal-code {
  font-family: var(--font-mono);
  font-size: 36px;
  font-weight: 700;
  letter-spacing: 8px;
  color: var(--accent-primary);
  padding: 16px;
  background: var(--bg-primary);
  border: 1px solid var(--border-light);
  border-radius: 12px;
  margin-bottom: 24px;
  user-select: all;
}
.tg-modal-btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 8px;
  width: 100%;
  margin-bottom: 20px;
}
.tg-modal-status {
  font-size: 13px;
  color: var(--text-dim);
  animation: pulse 2s ease-in-out infinite;
}
@keyframes pulse { 0%,100%{opacity:0.5} 50%{opacity:1} }
