/* ============================
   HASHSWARM — THEME CSS
   ============================ */

:root {
  --bg: #080a0f;
  --bg-surface: #0f1117;
  --bg-card: #131620;
  --fg: #e8e8ec;
  --fg-muted: #7a7d8a;
  --accent: #F59E0B;
  --accent-dim: rgba(245,158,11,0.12);
  --accent-glow: rgba(245,158,11,0.06);
  --border: rgba(255,255,255,0.07);
  --btc: #F7931A;
  --sol: #00FFA3;
  --etc: #328332;
}

/* ---- RESET & BASE ---- */
*, *::before, *::after { box-sizing: border-box; margin: 0; padding: 0; }

body {
  background: var(--bg);
  color: var(--fg);
  font-family: 'Figtree', sans-serif;
  font-size: 16px;
  line-height: 1.6;
  overflow-x: hidden;
  -webkit-font-smoothing: antialiased;
}

/* ---- SCROLLBAR ---- */
::-webkit-scrollbar { width: 6px; }
::-webkit-scrollbar-track { background: var(--bg); }
::-webkit-scrollbar-thumb { background: rgba(245,158,11,0.3); border-radius: 3px; }

/* ---- NAVBAR ---- */
.navbar {
  position: fixed;
  top: 0; left: 0; right: 0;
  z-index: 100;
  display: flex;
  align-items: center;
  justify-content: space-between;
  padding: 18px 48px;
  background: rgba(8,10,15,0.8);
  backdrop-filter: blur(12px);
  border-bottom: 1px solid var(--border);
}

.nav-logo {
  display: flex;
  align-items: center;
  gap: 10px;
  font-family: 'Syne', sans-serif;
  font-weight: 700;
  font-size: 18px;
  color: var(--fg);
}

.nav-status {
  display: flex;
  align-items: center;
  gap: 8px;
  font-size: 13px;
  color: var(--fg-muted);
}

.status-dot {
  width: 8px; height: 8px;
  background: #22c55e;
  border-radius: 50%;
  box-shadow: 0 0 8px rgba(34,197,94,0.6);
  animation: pulse-dot 2s ease-in-out infinite;
}

@keyframes pulse-dot {
  0%, 100% { opacity: 1; }
  50% { opacity: 0.4; }
}

/* ---- HERO ---- */
.hero {
  position: relative;
  min-height: 100vh;
  display: flex;
  align-items: center;
  justify-content: center;
  padding: 120px 48px 80px;
  overflow: hidden;
}

.hero-bg {
  position: absolute;
  inset: 0;
  pointer-events: none;
}

.grid-overlay {
  position: absolute;
  inset: 0;
  background-image:
    linear-gradient(rgba(245,158,11,0.04) 1px, transparent 1px),
    linear-gradient(90deg, rgba(245,158,11,0.04) 1px, transparent 1px);
  background-size: 80px 80px;
  mask-image: radial-gradient(ellipse 80% 60% at 50% 40%, black 0%, transparent 100%);
}

.glow-orb {
  position: absolute;
  border-radius: 50%;
  filter: blur(120px);
}

.glow-1 {
  width: 600px; height: 600px;
  top: -200px; left: -100px;
  background: radial-gradient(circle, rgba(245,158,11,0.08) 0%, transparent 70%);
}

.glow-2 {
  width: 500px; height: 500px;
  bottom: -100px; right: -100px;
  background: radial-gradient(circle, rgba(100,80,200,0.06) 0%, transparent 70%);
}

.particle-field {
  position: absolute;
  inset: 0;
}

.particle {
  position: absolute;
  width: 2px; height: 2px;
  background: var(--accent);
  border-radius: 50%;
  opacity: 0.4;
  animation: float-up linear infinite;
}

.p1 { left: 12%; top: 80%; animation-duration: 8s; animation-delay: 0s; }
.p2 { left: 22%; top: 90%; animation-duration: 11s; animation-delay: 2s; }
.p3 { left: 35%; top: 85%; animation-duration: 9s; animation-delay: 1s; }
.p4 { left: 50%; top: 95%; animation-duration: 7s; animation-delay: 4s; }
.p5 { left: 65%; top: 88%; animation-duration: 12s; animation-delay: 0.5s; }
.p6 { left: 78%; top: 82%; animation-duration: 10s; animation-delay: 3s; }
.p7 { left: 88%; top: 92%; animation-duration: 8.5s; animation-delay: 1.5s; }
.p8 { left: 95%; top: 78%; animation-duration: 9.5s; animation-delay: 2.5s; }

@keyframes float-up {
  0% { transform: translateY(0) scale(1); opacity: 0.6; }
  50% { opacity: 0.2; }
  100% { transform: translateY(-100vh) scale(0.5); opacity: 0; }
}

.hero-content {
  position: relative;
  z-index: 1;
  max-width: 800px;
  text-align: center;
}

.hero-badge {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  padding: 8px 16px;
  background: var(--accent-dim);
  border: 1px solid rgba(245,158,11,0.2);
  border-radius: 999px;
  font-size: 12px;
  font-weight: 600;
  color: var(--accent);
  letter-spacing: 0.05em;
  text-transform: uppercase;
  margin-bottom: 32px;
}

.badge-dot {
  width: 6px; height: 6px;
  background: var(--accent);
  border-radius: 50%;
  box-shadow: 0 0 6px var(--accent);
}

.hero-title {
  font-family: 'Syne', sans-serif;
  font-weight: 800;
  font-size: clamp(42px, 6vw, 72px);
  line-height: 1.08;
  color: var(--fg);
  margin-bottom: 28px;
  letter-spacing: -0.02em;
}

.accent {
  color: var(--accent);
}

.hero-lede {
  font-size: 18px;
  line-height: 1.7;
  color: var(--fg-muted);
  max-width: 620px;
  margin: 0 auto 40px;
}

.hero-coins {
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 12px;
  flex-wrap: wrap;
}

.coin-badge {
  display: flex;
  align-items: center;
  gap: 8px;
  padding: 8px 16px;
  border-radius: 999px;
  font-size: 14px;
  font-weight: 600;
  border: 1px solid transparent;
}

.coin-icon {
  font-size: 16px;
  font-weight: 700;
}

.coin-btc {
  background: rgba(247,147,26,0.1);
  border-color: rgba(247,147,26,0.2);
  color: #F7931A;
}

.coin-sol {
  background: rgba(0,255,163,0.08);
  border-color: rgba(0,255,163,0.2);
  color: #00FFA3;
}

.coin-etc {
  background: rgba(50,131,50,0.12);
  border-color: rgba(50,131,50,0.25);
  color: #4ade80;
}

/* ---- STATS ROW ---- */
.stats-row {
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 0;
  padding: 48px;
  background: var(--bg-surface);
  border-top: 1px solid var(--border);
  border-bottom: 1px solid var(--border);
}

.stat-item {
  flex: 1;
  text-align: center;
  padding: 0 32px;
}

.stat-value {
  font-family: 'Syne', sans-serif;
  font-weight: 800;
  font-size: 36px;
  color: var(--accent);
  letter-spacing: -0.02em;
  margin-bottom: 4px;
}

.stat-label {
  font-size: 13px;
  color: var(--fg-muted);
  text-transform: uppercase;
  letter-spacing: 0.06em;
}

.stat-divider {
  width: 1px;
  height: 48px;
  background: var(--border);
}

/* ---- HOW IT WORKS ---- */
.how-it-works {
  padding: 120px 48px;
  max-width: 1200px;
  margin: 0 auto;
}

.section-header {
  text-align: center;
  margin-bottom: 72px;
}

.section-tag {
  display: inline-block;
  font-size: 11px;
  font-weight: 600;
  text-transform: uppercase;
  letter-spacing: 0.1em;
  color: var(--accent);
  margin-bottom: 16px;
}

.section-header h2 {
  font-family: 'Syne', sans-serif;
  font-weight: 800;
  font-size: clamp(32px, 4vw, 52px);
  color: var(--fg);
  letter-spacing: -0.02em;
  margin-bottom: 16px;
}

.section-sub {
  font-size: 17px;
  color: var(--fg-muted);
  max-width: 500px;
  margin: 0 auto;
}

.mechanism-grid {
  display: grid;
  grid-template-columns: repeat(2, 1fr);
  gap: 24px;
}

.mechanism-card {
  background: var(--bg-card);
  border: 1px solid var(--border);
  border-radius: 16px;
  padding: 36px;
  position: relative;
  transition: border-color 0.3s ease, transform 0.3s ease;
}

.mechanism-card:hover {
  border-color: rgba(245,158,11,0.2);
  transform: translateY(-2px);
}

.mech-number {
  font-family: 'Syne', sans-serif;
  font-weight: 800;
  font-size: 13px;
  color: var(--accent);
  margin-bottom: 20px;
  letter-spacing: 0.05em;
}

.mechanism-card h3 {
  font-family: 'Syne', sans-serif;
  font-weight: 700;
  font-size: 20px;
  color: var(--fg);
  margin-bottom: 12px;
}

.mechanism-card p {
  font-size: 15px;
  color: var(--fg-muted);
  line-height: 1.7;
}

/* ---- ARCHITECTURE ---- */
.architecture {
  padding: 120px 48px;
  background: var(--bg-surface);
  border-top: 1px solid var(--border);
  border-bottom: 1px solid var(--border);
}

.arch-content {
  max-width: 1200px;
  margin: 0 auto;
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 80px;
  align-items: center;
}

.arch-text h2 {
  font-family: 'Syne', sans-serif;
  font-weight: 800;
  font-size: clamp(28px, 3.5vw, 44px);
  color: var(--fg);
  letter-spacing: -0.02em;
  margin-bottom: 16px;
}

.arch-text > p {
  font-size: 16px;
  color: var(--fg-muted);
  line-height: 1.7;
  margin-bottom: 32px;
}

.arch-list {
  list-style: none;
  display: flex;
  flex-direction: column;
  gap: 14px;
}

.arch-list li {
  display: flex;
  align-items: flex-start;
  gap: 12px;
  font-size: 15px;
  color: var(--fg-muted);
}

.arch-list svg {
  flex-shrink: 0;
  margin-top: 2px;
}

/* Architecture Diagram */
.arch-diagram {
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 0;
}

.diagram-node {
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  gap: 12px;
}

.master-wallet {
  background: linear-gradient(135deg, rgba(245,158,11,0.12), rgba(245,158,11,0.05));
  border: 1px solid rgba(245,158,11,0.3);
  border-radius: 16px;
  padding: 28px 36px;
  width: 100%;
}

.wallet-icon {
  color: var(--accent);
}

.node-label {
  font-size: 12px;
  text-transform: uppercase;
  letter-spacing: 0.08em;
  color: var(--fg-muted);
}

.diagram-flow {
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 8px;
  padding: 12px 0;
}

.flow-line {
  width: 2px;
  height: 40px;
  background: linear-gradient(to bottom, rgba(245,158,11,0.5), rgba(245,158,11,0.1));
}

.flow-label {
  font-size: 11px;
  color: var(--fg-muted);
  text-transform: uppercase;
  letter-spacing: 0.06em;
}

.pools-row {
  display: flex;
  gap: 16px;
  width: 100%;
}

.pool-node {
  flex: 1;
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 8px;
  background: var(--bg-card);
  border: 1px solid var(--border);
  border-radius: 12px;
  padding: 20px 12px;
}

.pool-icon {
  font-size: 22px;
  font-weight: 700;
}

.pool-node span {
  font-size: 11px;
  text-transform: uppercase;
  letter-spacing: 0.06em;
  color: var(--fg-muted);
}

.btc .pool-icon { color: #F7931A; }
.sol .pool-icon { color: #00FFA3; }
.etc .pool-icon { color: #4ade80; }

.miners-field {
  background: var(--bg-card);
  border: 1px solid var(--border);
  border-radius: 16px;
  padding: 24px;
  width: 100%;
}

.miner-grid {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 6px;
  width: 100%;
}

.miner-cell {
  aspect-ratio: 1;
  background: var(--accent-dim);
  border-radius: 4px;
  border: 1px solid rgba(245,158,11,0.15);
  animation: miner-pulse 3s ease-in-out infinite;
}

.miner-cell:nth-child(2) { animation-delay: 0.4s; }
.miner-cell:nth-child(3) { animation-delay: 0.8s; }
.miner-cell:nth-child(4) { animation-delay: 1.2s; }
.miner-cell:nth-child(5) { animation-delay: 1.6s; }
.miner-cell:nth-child(6) { animation-delay: 2s; }
.miner-cell:nth-child(7) { animation-delay: 2.4s; }
.miner-cell:nth-child(8) { animation-delay: 2.8s; }
.miner-cell:nth-child(9) { animation-delay: 0.2s; }

@keyframes miner-pulse {
  0%, 100% { background: var(--accent-dim); border-color: rgba(245,158,11,0.15); }
  50% { background: rgba(245,158,11,0.25); border-color: rgba(245,158,11,0.4); }
}

/* ---- PRINCIPLES ---- */
.principles {
  padding: 120px 48px;
  max-width: 1200px;
  margin: 0 auto;
}

.principles-grid {
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  gap: 24px;
}

.principle-card {
  background: var(--bg-surface);
  border: 1px solid var(--border);
  border-radius: 16px;
  padding: 32px 28px;
  transition: border-color 0.3s ease, transform 0.3s ease;
}

.principle-card:hover {
  border-color: rgba(245,158,11,0.15);
  transform: translateY(-2px);
}

.principle-icon {
  width: 48px; height: 48px;
  background: var(--accent-dim);
  border-radius: 12px;
  display: flex;
  align-items: center;
  justify-content: center;
  margin-bottom: 20px;
}

.principle-card h3 {
  font-family: 'Syne', sans-serif;
  font-weight: 700;
  font-size: 17px;
  color: var(--fg);
  margin-bottom: 10px;
}

.principle-card p {
  font-size: 14px;
  color: var(--fg-muted);
  line-height: 1.65;
}

/* ---- CLOSING ---- */
.closing {
  padding: 120px 48px;
  background: var(--bg-surface);
  border-top: 1px solid var(--border);
}

.closing-inner {
  max-width: 800px;
  margin: 0 auto;
  text-align: center;
  position: relative;
}

.closing-glow {
  position: absolute;
  top: 50%; left: 50%;
  transform: translate(-50%, -50%);
  width: 400px; height: 400px;
  background: radial-gradient(circle, rgba(245,158,11,0.06) 0%, transparent 70%);
  pointer-events: none;
}

.closing h2 {
  font-family: 'Syne', sans-serif;
  font-weight: 800;
  font-size: clamp(28px, 4vw, 48px);
  color: var(--fg);
  letter-spacing: -0.02em;
  margin-bottom: 24px;
  line-height: 1.2;
}

.closing p {
  font-size: 17px;
  color: var(--fg-muted);
  line-height: 1.75;
  margin-bottom: 40px;
}

.closing-coins {
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 24px;
}

.closing-coin {
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 6px;
}

.coin-sym {
  font-size: 28px;
  font-weight: 700;
}

.closing-coin span:last-child {
  font-size: 11px;
  font-weight: 600;
  text-transform: uppercase;
  letter-spacing: 0.08em;
}

.btc .coin-sym { color: #F7931A; }
.sol .coin-sym { color: #00FFA3; }
.etc .coin-sym { color: #4ade80; }
.closing-coin span:last-child { color: var(--fg-muted); }

/* ---- FOOTER ---- */
.footer {
  padding: 48px;
  border-top: 1px solid var(--border);
}

.footer-inner {
  max-width: 1200px;
  margin: 0 auto;
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 12px;
}

.footer-brand {
  display: flex;
  align-items: center;
  gap: 10px;
  font-family: 'Syne', sans-serif;
  font-weight: 700;
  font-size: 16px;
  color: var(--fg);
}

.footer-tagline {
  font-size: 14px;
  color: var(--fg-muted);
}

.footer-meta {
  font-size: 12px;
  color: var(--fg-muted);
  opacity: 0.5;
}

/* ---- RESPONSIVE ---- */
@media (max-width: 900px) {
  .navbar { padding: 16px 24px; }
  .hero { padding: 100px 24px 60px; }
  .mechanism-grid { grid-template-columns: 1fr; }
  .arch-content { grid-template-columns: 1fr; gap: 48px; }
  .principles-grid { grid-template-columns: repeat(2, 1fr); }
  .stats-row { flex-wrap: wrap; gap: 24px; }
  .stat-divider { display: none; }
  .stat-item { flex: 1 1 40%; }
}

@media (max-width: 600px) {
  .navbar { padding: 14px 20px; }
  .hero { padding: 90px 20px 50px; }
  .hero-title { font-size: 36px; }
  .principles-grid { grid-template-columns: 1fr; }
  .how-it-works, .architecture, .principles, .closing { padding: 80px 20px; }
  .stats-row { padding: 32px 20px; }
  .footer { padding: 32px 20px; }
}
