/* ==========================================================================
   BITMINECHAIN — Design Tokens
   Palette: obsidian base, ore-copper + steel-blue duo (mined value vs data)
   Type: Space Grotesk (display) / Inter (body) / JetBrains Mono (data,hash)
   ========================================================================== */

@import url('https://fonts.googleapis.com/css2?family=Space+Grotesk:wght@400;500;600;700&family=Inter:wght@400;500;600;700&family=JetBrains+Mono:wght@400;500;600&display=swap');

:root {
  --obsidian: #0A1128;
  --graphite: #10192F;
  --graphite-2: #16213B;
  --line: #24304A;
  --white: #D6EAFF;
  --grey: #7E93B0;
  --copper: #3FA9F5;
  --copper-dim: #2C6FA0;
  --steel: #6FB4EC;
  --steel-dim: #1D3A5C;

  --font-display: 'Space Grotesk', sans-serif;
  --font-body: 'Inter', sans-serif;
  --font-mono: 'JetBrains Mono', monospace;

  --radius: 10px;
  --ease: cubic-bezier(0.16, 1, 0.3, 1);
}

* { margin: 0; padding: 0; box-sizing: border-box; }

html { scroll-behavior: smooth; }

@media (prefers-reduced-motion: reduce) {
  html { scroll-behavior: auto; }
  * { animation-duration: 0.01ms !important; animation-iteration-count: 1 !important; transition-duration: 0.01ms !important; }
}

body {
  background: var(--obsidian);
  color: var(--white);
  font-family: var(--font-body);
  line-height: 1.6;
  overflow-x: hidden;
}

a { color: inherit; text-decoration: none; }
ul { list-style: none; }
img, svg { display: block; max-width: 100%; }

:focus-visible {
  outline: 2px solid var(--copper);
  outline-offset: 3px;
}

.container {
  max-width: 1180px;
  margin: 0 auto;
  padding: 0 24px;
}

/* ---------- background texture: faint ore-vein grid ---------- */
.vein-bg {
  position: fixed;
  inset: 0;
  z-index: 0;
  pointer-events: none;
  background-image:
    radial-gradient(circle at 15% 20%, rgba(63,169,245,0.07), transparent 40%),
    radial-gradient(circle at 85% 75%, rgba(111,180,236,0.08), transparent 45%);
}

/* ==========================================================================
   NAV
   ========================================================================== */
.navbar {
  position: sticky;
  top: 0;
  z-index: 100;
  background: rgba(10,11,13,0.85);
  backdrop-filter: blur(10px);
  border-bottom: 1px solid var(--line);
}

.nav-inner {
  display: flex;
  align-items: center;
  justify-content: space-between;
  padding: 18px 24px;
  max-width: 1180px;
  margin: 0 auto;
}

.brand {
  display: flex;
  align-items: center;
  gap: 10px;
  font-family: var(--font-display);
  font-weight: 700;
  font-size: 1.25rem;
  letter-spacing: -0.02em;
}

.brand-mark {
  width: 30px;
  height: 30px;
}

.nav-links {
  display: flex;
  gap: 32px;
  font-size: 0.92rem;
  color: var(--grey);
}

.nav-links a { transition: color 0.2s var(--ease); }
.nav-links a:hover { color: var(--white); }

.nav-actions { display: flex; gap: 12px; align-items: center; }

.btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 8px;
  padding: 11px 22px;
  border-radius: var(--radius);
  font-family: var(--font-body);
  font-weight: 600;
  font-size: 0.92rem;
  cursor: pointer;
  border: 1px solid transparent;
  transition: transform 0.2s var(--ease), background 0.2s var(--ease), border-color 0.2s var(--ease);
  white-space: nowrap;
}

.btn:hover { transform: translateY(-1px); }

.btn-primary {
  background: linear-gradient(135deg, var(--copper), #2C6FA0);
  color: #071023;
}
.btn-primary:hover { box-shadow: 0 8px 24px rgba(63,169,245,0.35); }

.btn-ghost {
  background: transparent;
  border-color: var(--line);
  color: var(--white);
}
.btn-ghost:hover { border-color: var(--grey); }

.nav-toggle { display: none; }

@media (max-width: 860px) {
  .nav-links { display: none; }
  .nav-toggle {
    display: block;
    background: none;
    border: none;
    color: var(--white);
    font-size: 1.4rem;
  }
}

/* ==========================================================================
   HERO
   ========================================================================== */
.hero {
  position: relative;
  padding: 100px 0 70px;
  overflow: hidden;
}

.hero-grid {
  display: grid;
  grid-template-columns: 1.05fr 0.95fr;
  gap: 48px;
  align-items: center;
}

@media (max-width: 900px) {
  .hero-grid { grid-template-columns: 1fr; }
}

.eyebrow {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  font-family: var(--font-mono);
  font-size: 0.78rem;
  letter-spacing: 0.08em;
  text-transform: uppercase;
  color: var(--copper);
  background: rgba(63,169,245,0.08);
  border: 1px solid rgba(63,169,245,0.25);
  padding: 6px 14px;
  border-radius: 100px;
  margin-bottom: 24px;
}

.pulse-dot {
  width: 6px;
  height: 6px;
  border-radius: 50%;
  background: var(--copper);
  animation: pulse 1.8s infinite;
}

@keyframes pulse {
  0%, 100% { box-shadow: 0 0 0 0 rgba(63,169,245,0.55); }
  70% { box-shadow: 0 0 0 8px rgba(63,169,245,0); }
}

.hero h1 {
  font-family: var(--font-display);
  font-size: clamp(2.4rem, 5vw, 3.6rem);
  font-weight: 700;
  line-height: 1.08;
  letter-spacing: -0.02em;
  margin-bottom: 22px;
}

.hero h1 .accent { color: var(--copper); }

.hero p.lead {
  font-size: 1.08rem;
  color: var(--grey);
  max-width: 480px;
  margin-bottom: 34px;
}

.hero-actions {
  display: flex;
  gap: 14px;
  margin-bottom: 40px;
  flex-wrap: wrap;
}

.trust-row {
  display: flex;
  align-items: center;
  gap: 22px;
  color: var(--grey);
  font-size: 0.85rem;
}

.trust-row strong { color: var(--white); font-family: var(--font-mono); }

/* ---------- Hero visual: mining core ---------- */
.core-wrap {
  position: relative;
  display: flex;
  align-items: center;
  justify-content: center;
  height: 460px;
}

.core-rings {
  position: absolute;
  width: 380px;
  height: 380px;
  border-radius: 50%;
  border: 1px solid var(--line);
}

.core-rings.r2 { width: 300px; height: 300px; animation: spin 40s linear infinite; }
.core-rings.r3 { width: 220px; height: 220px; animation: spin 26s linear infinite reverse; }

@keyframes spin { to { transform: rotate(360deg); } }

.core-rings .node {
  position: absolute;
  width: 8px;
  height: 8px;
  border-radius: 50%;
  background: var(--copper);
  top: -4px;
  left: calc(50% - 4px);
  box-shadow: 0 0 12px rgba(63,169,245,0.8);
}

.core-crystal {
  position: relative;
  width: 160px;
  height: 160px;
  animation: float 5s ease-in-out infinite;
}

@keyframes float {
  0%, 100% { transform: translateY(0px); }
  50% { transform: translateY(-14px); }
}

.core-crystal svg { width: 100%; height: 100%; }

.hash-ticker {
  position: absolute;
  bottom: 8px;
  left: 50%;
  transform: translateX(-50%);
  font-family: var(--font-mono);
  font-size: 0.8rem;
  color: var(--steel);
  background: var(--graphite);
  border: 1px solid var(--line);
  padding: 8px 16px;
  border-radius: 100px;
  display: flex;
  gap: 10px;
  align-items: center;
  white-space: nowrap;
}

.hash-ticker .live-dot {
  width: 6px; height: 6px; border-radius: 50%;
  background: #4ADE80;
  animation: pulse2 1.6s infinite;
}
@keyframes pulse2 {
  0%, 100% { opacity: 1; } 50% { opacity: 0.3; }
}

/* ==========================================================================
   STATS STRIP
   ========================================================================== */
.stats-strip {
  border-top: 1px solid var(--line);
  border-bottom: 1px solid var(--line);
  padding: 36px 0;
}

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

@media (max-width: 760px) {
  .stats-grid { grid-template-columns: repeat(2, 1fr); }
}

.stat-num {
  font-family: var(--font-mono);
  font-size: clamp(1.5rem, 3vw, 2.1rem);
  font-weight: 600;
  color: var(--copper);
}

.stat-label {
  color: var(--grey);
  font-size: 0.82rem;
  margin-top: 6px;
  text-transform: uppercase;
  letter-spacing: 0.05em;
}

/* ==========================================================================
   SECTION HEADERS
   ========================================================================== */
.section { padding: 100px 0; }
.section-head { max-width: 620px; margin-bottom: 56px; }

.section-eyebrow {
  font-family: var(--font-mono);
  font-size: 0.78rem;
  letter-spacing: 0.08em;
  text-transform: uppercase;
  color: var(--steel);
  margin-bottom: 14px;
}

.section h2 {
  font-family: var(--font-display);
  font-size: clamp(1.8rem, 3.4vw, 2.5rem);
  font-weight: 700;
  letter-spacing: -0.02em;
  margin-bottom: 14px;
}

.section-head p { color: var(--grey); font-size: 1.02rem; }

/* ==========================================================================
   HOW IT WORKS (real sequence -> numbered is justified)
   ========================================================================== */
.process {
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  gap: 20px;
}

@media (max-width: 900px) {
  .process { grid-template-columns: repeat(2, 1fr); }
}
@media (max-width: 560px) {
  .process { grid-template-columns: 1fr; }
}

.process-card {
  background: var(--graphite);
  border: 1px solid var(--line);
  border-radius: var(--radius);
  padding: 28px 22px;
  position: relative;
  transition: transform 0.25s var(--ease), border-color 0.25s var(--ease);
}

.process-card:hover {
  transform: translateY(-4px);
  border-color: var(--copper-dim);
}

.process-index {
  font-family: var(--font-mono);
  color: var(--copper);
  font-size: 0.85rem;
  margin-bottom: 18px;
}

.process-card h3 {
  font-family: var(--font-display);
  font-size: 1.08rem;
  margin-bottom: 10px;
}

.process-card p { color: var(--grey); font-size: 0.92rem; }

/* connecting line between steps on desktop */
.process-card:not(:last-child)::after {
  content: '';
  position: absolute;
  top: 44px;
  right: -20px;
  width: 20px;
  height: 1px;
  background: var(--line);
  display: none;
}
@media (min-width: 901px) {
  .process-card:not(:last-child)::after { display: block; }
}

/* ==========================================================================
   COINS GRID
   ========================================================================== */
.coins-grid {
  display: grid;
  grid-template-columns: repeat(5, 1fr);
  gap: 16px;
}

@media (max-width: 900px) { .coins-grid { grid-template-columns: repeat(3, 1fr); } }
@media (max-width: 560px) { .coins-grid { grid-template-columns: repeat(2, 1fr); } }

.coin-card {
  background: var(--graphite);
  border: 1px solid var(--line);
  border-radius: var(--radius);
  padding: 22px 18px;
  text-align: center;
  transition: border-color 0.2s var(--ease), transform 0.2s var(--ease);
}

.coin-card:hover { border-color: var(--steel-dim); transform: translateY(-3px); }

.coin-icon {
  width: 40px;
  height: 40px;
  margin: 0 auto 14px;
}

.coin-card .sym { font-family: var(--font-mono); font-weight: 600; }
.coin-card .rate { color: var(--grey); font-size: 0.8rem; margin-top: 4px; }

/* ==========================================================================
   TRUST / TESTIMONIALS
   ========================================================================== */
.trust-grid {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 20px;
}
@media (max-width: 860px) { .trust-grid { grid-template-columns: 1fr; } }

.trust-card {
  background: var(--graphite);
  border: 1px solid var(--line);
  border-radius: var(--radius);
  padding: 26px;
}

.trust-card .quote {
  color: var(--white);
  font-size: 0.98rem;
  margin-bottom: 20px;
}

.trust-card .who {
  display: flex;
  align-items: center;
  gap: 12px;
}

.avatar {
  width: 38px; height: 38px;
  border-radius: 50%;
  background: linear-gradient(135deg, var(--copper), var(--steel));
  flex-shrink: 0;
}

.who-name { font-size: 0.88rem; font-weight: 600; }
.who-role { font-size: 0.78rem; color: var(--grey); }

/* ==========================================================================
   FINAL CTA
   ========================================================================== */
.cta-band {
  background: var(--graphite);
  border: 1px solid var(--line);
  border-radius: 20px;
  padding: 64px 40px;
  text-align: center;
  position: relative;
  overflow: hidden;
}

.cta-band::before {
  content: '';
  position: absolute;
  inset: 0;
  background: radial-gradient(circle at 50% 0%, rgba(63,169,245,0.12), transparent 60%);
}

.cta-band h2 {
  font-family: var(--font-display);
  font-size: clamp(1.8rem, 3.6vw, 2.6rem);
  margin-bottom: 16px;
  position: relative;
}

.cta-band p {
  color: var(--grey);
  margin-bottom: 30px;
  position: relative;
}

.cta-band .btn { position: relative; }

/* ==========================================================================
   FOOTER
   ========================================================================== */
.footer {
  border-top: 1px solid var(--line);
  padding: 50px 0 30px;
  color: var(--grey);
  font-size: 0.88rem;
}

.footer-grid {
  display: grid;
  grid-template-columns: 2fr 1fr 1fr 1fr;
  gap: 32px;
  margin-bottom: 40px;
}

@media (max-width: 760px) {
  .footer-grid { grid-template-columns: 1fr 1fr; }
}

.footer h4 {
  color: var(--white);
  font-size: 0.85rem;
  margin-bottom: 16px;
  text-transform: uppercase;
  letter-spacing: 0.05em;
}

.footer ul li { margin-bottom: 10px; }
.footer ul li a:hover { color: var(--white); }

.footer-bottom {
  border-top: 1px solid var(--line);
  padding-top: 24px;
  display: flex;
  justify-content: space-between;
  flex-wrap: wrap;
  gap: 12px;
}

/* ==========================================================================
   SCROLL REVEAL
   ========================================================================== */
.reveal {
  opacity: 0;
  transform: translateY(24px);
  transition: opacity 0.7s var(--ease), transform 0.7s var(--ease);
}
.reveal.is-visible {
  opacity: 1;
  transform: translateY(0);
}
