/* ========================================
   Bitcoin 2.0 — Dark & Light Mode Theme
   ======================================== */

:root,
[data-theme="dark"] {
  --bg: #050505;
  --bg-card: rgba(255, 255, 255, 0.02);
  --bg-card-hover: rgba(255, 255, 255, 0.04);
  --text: #fafafa;
  --text-muted: #a0a0a0;
  --border: rgba(255, 255, 255, 0.06);
  --header-bg: rgba(5, 5, 5, 0.7);
}

[data-theme="light"] {
  --bg: #fafafa;
  --bg-card: rgba(0, 0, 0, 0.03);
  --bg-card-hover: rgba(0, 0, 0, 0.06);
  --text: #0a0a0a;
  --text-muted: #525252;
  --border: rgba(0, 0, 0, 0.08);
  --header-bg: rgba(250, 250, 250, 0.9);
}

[data-theme="light"] .noise {
  opacity: 0.02;
}

[data-theme="light"] .gradient-orb {
  opacity: 0.12;
}

:root {
  --orange: #f7931a;
  --orange-light: #ffa726;
  --orange-glow: rgba(247, 147, 26, 0.4);
  --gold: #ffd54f;
  --font-display: 'Syne', sans-serif;
  --font-mono: 'JetBrains Mono', monospace;
}

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

html {
  scroll-behavior: smooth;
}

body {
  font-family: var(--font-display);
  background: var(--bg);
  color: var(--text);
  line-height: 1.6;
  overflow-x: hidden;
  transition: background 0.3s ease, color 0.3s ease;
}

/* Noise overlay */
.noise {
  position: fixed;
  top: 0;
  left: 0;
  width: 100%;
  height: 100%;
  pointer-events: none;
  z-index: 9999;
  opacity: 0.04;
  background-image: url("data:image/svg+xml,%3Csvg viewBox='0 0 256 256' xmlns='http://www.w3.org/2000/svg'%3E%3Cfilter id='noise'%3E%3CfeTurbulence type='fractalNoise' baseFrequency='0.9' numOctaves='4' stitchTiles='stitch'/%3E%3C/filter%3E%3Crect width='100%25' height='100%25' filter='url(%23noise)'/%3E%3C/svg%3E");
}

/* Gradient orbs */
.gradient-orb {
  position: fixed;
  border-radius: 50%;
  filter: blur(120px);
  opacity: 0.25;
  pointer-events: none;
  z-index: 0;
}

.gradient-orb-1 {
  width: 600px;
  height: 600px;
  background: radial-gradient(circle, var(--orange-glow) 0%, transparent 70%);
  top: -200px;
  right: -200px;
}

.gradient-orb-2 {
  width: 400px;
  height: 400px;
  background: radial-gradient(circle, rgba(255, 213, 79, 0.15) 0%, transparent 70%);
  bottom: 20%;
  left: -100px;
}

.gradient-orb-3 {
  width: 300px;
  height: 300px;
  background: radial-gradient(circle, var(--orange-glow) 0%, transparent 70%);
  bottom: -100px;
  right: 20%;
}

/* Header */
.header {
  position: fixed;
  top: 0;
  left: 0;
  right: 0;
  display: flex;
  justify-content: space-between;
  align-items: center;
  padding: 1.25rem 2rem;
  z-index: 100;
  background: var(--header-bg);
  backdrop-filter: blur(12px);
  border-bottom: 1px solid var(--border);
  transition: background 0.3s ease, border-color 0.3s ease;
}

.logo {
  display: flex;
  align-items: center;
  gap: 0.5rem;
  text-decoration: none;
  color: var(--text);
  font-weight: 700;
  font-size: 1.25rem;
}

.logo-btc {
  color: var(--orange);
  font-size: 1.5rem;
}

.logo em {
  color: var(--orange);
  font-style: normal;
}

.header .nav {
  display: flex;
  gap: 2rem;
}

.header .nav a {
  color: var(--text-muted);
  text-decoration: none;
  font-weight: 500;
  transition: color 0.2s;
}

.header .nav a:hover {
  color: var(--orange);
}

.theme-toggle {
  display: flex;
  align-items: center;
  justify-content: center;
  width: 40px;
  height: 40px;
  padding: 0;
  background: var(--bg-card);
  border: 1px solid var(--border);
  border-radius: 10px;
  cursor: pointer;
  color: var(--text-muted);
  transition: all 0.2s ease;
}

.theme-toggle:hover {
  color: var(--orange);
  border-color: var(--orange);
}

.theme-toggle .icon-moon {
  display: none;
}

.theme-toggle .icon-sun {
  display: block;
}

[data-theme="light"] .theme-toggle .icon-moon {
  display: block;
}

[data-theme="light"] .theme-toggle .icon-sun {
  display: none;
}

/* Main content */
main {
  position: relative;
  z-index: 1;
}

/* Complete page (A4 design) */
.complete-page {
  min-height: 100vh;
  display: flex;
  align-items: center;
  justify-content: center;
  padding: 6rem 2rem 4rem;
  background: var(--bg);
}

.complete-page-inner {
  position: relative;
  max-width: 800px;
  width: 100%;
}

.complete-page-image {
  width: 100%;
  height: auto;
  display: block;
  border-radius: 12px;
  box-shadow: 0 24px 80px rgba(0, 0, 0, 0.4);
  border: 1px solid var(--border);
}

.complete-page-scroll {
  display: block;
  text-align: center;
  margin-top: 2rem;
  font-size: 1.5rem;
  color: var(--text-muted);
  text-decoration: none;
  animation: bounce 2s ease-in-out infinite;
  transition: color 0.2s;
}

.complete-page-scroll:hover {
  color: var(--orange);
}

@keyframes bounce {
  0%, 100% { transform: translateY(0); }
  50% { transform: translateY(8px); }
}

/* Hero */
.hero {
  min-height: 100vh;
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 4rem;
  align-items: center;
  padding: 8rem 4rem 4rem;
  max-width: 1400px;
  margin: 0 auto;
}

.hero-content {
  animation: fadeUp 0.8s ease-out;
}

.hero-eyebrow {
  font-size: 0.875rem;
  font-weight: 600;
  color: var(--orange);
  text-transform: uppercase;
  letter-spacing: 0.15em;
  margin-bottom: 1rem;
}

.hero-title {
  font-size: clamp(2rem, 5vw, 3.5rem);
  font-weight: 800;
  line-height: 1.15;
  letter-spacing: -0.02em;
  margin-bottom: 1.5rem;
}

.hero-highlight {
  display: block;
  color: var(--orange);
  margin-top: 0.25em;
}

.hero-subtitle {
  font-size: 1.125rem;
  color: var(--text-muted);
  max-width: 520px;
  margin-bottom: 2rem;
}

.hero-cta {
  display: flex;
  gap: 1rem;
  flex-wrap: wrap;
}

.hero-visual {
  position: relative;
  animation: fadeUp 0.8s ease-out 0.2s both;
}

.hero-image-wrapper {
  border-radius: 16px;
  overflow: hidden;
  border: 1px solid var(--border);
  box-shadow: 0 24px 80px rgba(0, 0, 0, 0.5);
}

.hero-image {
  width: 100%;
  height: auto;
  display: block;
}

/* Buttons */
.btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  padding: 0.875rem 1.75rem;
  font-family: var(--font-display);
  font-weight: 600;
  font-size: 1rem;
  text-decoration: none;
  border-radius: 12px;
  transition: all 0.25s ease;
  cursor: pointer;
  border: none;
}

.btn-primary {
  background: linear-gradient(135deg, var(--orange) 0%, var(--orange-light) 100%);
  color: #000;
  box-shadow: 0 4px 24px var(--orange-glow);
}

.btn-primary:hover {
  transform: translateY(-2px);
  box-shadow: 0 8px 32px var(--orange-glow);
}

.btn-secondary {
  background: var(--bg-card);
  color: var(--text);
  border: 1px solid var(--border);
}

.btn-secondary:hover {
  background: var(--bg-card-hover);
  border-color: var(--orange);
  color: var(--orange);
}

.btn-lg {
  padding: 1rem 2rem;
  font-size: 1.125rem;
}

/* Contract section */
.contract-section {
  padding: 2rem 2rem 4rem;
}

.contract-box {
  max-width: 800px;
  margin: 0 auto;
  background: var(--bg-card);
  border: 1px solid var(--border);
  border-radius: 16px;
  padding: 1.5rem 2rem;
  backdrop-filter: blur(8px);
  transition: background 0.3s ease, border-color 0.3s ease;
}

.contract-label {
  display: block;
  font-size: 0.75rem;
  font-weight: 600;
  color: var(--text-muted);
  text-transform: uppercase;
  letter-spacing: 0.1em;
  margin-bottom: 0.75rem;
}

.contract-row {
  display: flex;
  align-items: center;
  gap: 1rem;
  flex-wrap: wrap;
}

.contract-address {
  font-family: var(--font-mono);
  font-size: 0.875rem;
  color: var(--orange);
  word-break: break-all;
  flex: 1;
  min-width: 200px;
}

.btn-copy {
  display: inline-flex;
  align-items: center;
  gap: 0.5rem;
  padding: 0.5rem 1rem;
  background: var(--orange);
  color: #000;
  border: none;
  border-radius: 8px;
  font-family: var(--font-display);
  font-weight: 600;
  font-size: 0.875rem;
  cursor: pointer;
  transition: all 0.2s;
}

.btn-copy:hover {
  background: var(--orange-light);
  transform: translateY(-1px);
}

.btn-copy.copied {
  background: #22c55e;
}

.icon-copy {
  width: 16px;
  height: 16px;
}

/* Section base */
.section-title {
  font-size: clamp(1.75rem, 4vw, 2.5rem);
  font-weight: 800;
  letter-spacing: -0.02em;
  margin-bottom: 1rem;
}

/* Story */
.story {
  padding: 6rem 4rem;
  max-width: 900px;
  margin: 0 auto;
}

.story-inner {
  opacity: 0;
  transform: translateY(30px);
  transition: opacity 0.7s ease, transform 0.7s ease;
}

.story-inner.visible {
  opacity: 1;
  transform: translateY(0);
}

.story-lead {
  font-size: 1.25rem;
  color: var(--text-muted);
  margin-bottom: 2.5rem;
  line-height: 1.7;
}

.story-grid {
  display: grid;
  gap: 2rem;
  margin-bottom: 2rem;
}

.story-quote {
  padding: 2rem;
  background: var(--bg-card);
  border: 1px solid var(--border);
  border-left: 4px solid var(--orange);
  border-radius: 12px;
  transition: background 0.3s ease, border-color 0.3s ease;
}

.story-quote p {
  font-size: 1.25rem;
  font-style: italic;
  color: var(--text);
}

.story-points {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(140px, 1fr));
  gap: 1.5rem;
}

.story-point {
  display: flex;
  flex-direction: column;
  gap: 0.25rem;
}

.story-point-number {
  font-size: 1.5rem;
  font-weight: 800;
  color: var(--orange);
}

.story-point-label {
  font-size: 0.875rem;
  color: var(--text-muted);
}

.story-closing {
  font-size: 1.125rem;
  color: var(--text-muted);
}

/* Stats */
.stats {
  padding: 6rem 4rem;
}

.stats-inner {
  max-width: 1000px;
  margin: 0 auto;
}

.stats-subtitle {
  font-size: 1.125rem;
  color: var(--text-muted);
  margin-bottom: 3rem;
}

.stats-grid {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 2rem;
  margin-bottom: 2rem;
}

.stat-card {
  padding: 2rem;
  background: var(--bg-card);
  border: 1px solid var(--border);
  border-radius: 16px;
  text-align: center;
  backdrop-filter: blur(8px);
  transition: all 0.3s ease, background 0.3s ease, border-color 0.3s ease;
  opacity: 0;
  transform: translateY(30px);
}

.stat-card.visible {
  opacity: 1;
  transform: translateY(0);
}

.stat-card:hover {
  border-color: var(--orange);
  box-shadow: 0 0 40px var(--orange-glow);
}

.stat-value {
  display: block;
  font-size: clamp(2rem, 4vw, 3rem);
  font-weight: 800;
  color: var(--orange);
  margin-bottom: 0.5rem;
}

.stat-label {
  font-size: 0.9rem;
  color: var(--text-muted);
}

.stats-footer {
  text-align: center;
  color: var(--text-muted);
  font-size: 1rem;
}

/* Memes */
.memes {
  padding: 6rem 4rem;
}

.memes-inner {
  max-width: 1200px;
  margin: 0 auto;
}

.memes-subtitle {
  font-size: 1.125rem;
  color: var(--text-muted);
  margin-bottom: 3rem;
  text-align: center;
}

.memes-grid {
  display: grid;
  grid-template-columns: repeat(auto-fill, minmax(280px, 1fr));
  gap: 1.5rem;
}

.meme-card {
  border-radius: 16px;
  overflow: hidden;
  border: 1px solid var(--border);
  background: var(--bg-card);
  transition: border-color 0.3s ease, background 0.3s ease;
  opacity: 0;
  transform: translateY(24px);
  transition: opacity 0.6s ease, transform 0.6s ease, box-shadow 0.3s ease;
}

.meme-card.visible {
  opacity: 1;
  transform: translateY(0);
}

.meme-card:hover {
  border-color: var(--orange);
  box-shadow: 0 12px 40px var(--orange-glow);
}

.meme-card img {
  width: 100%;
  height: 280px;
  object-fit: cover;
  display: block;
}

/* CTA section */
.cta-section {
  padding: 6rem 4rem;
  text-align: center;
}

.cta-inner {
  max-width: 700px;
  margin: 0 auto;
}

.cta-title {
  font-size: clamp(1.5rem, 3vw, 2rem);
  font-weight: 700;
  line-height: 1.4;
  margin-bottom: 1rem;
}

.cta-subtitle {
  font-size: 2rem;
  font-weight: 800;
  color: var(--orange);
  margin-bottom: 2rem;
}

.cta-buttons {
  display: flex;
  justify-content: center;
  gap: 1rem;
  flex-wrap: wrap;
}

/* Links */
.links {
  padding: 6rem 4rem;
}

.links-inner {
  max-width: 800px;
  margin: 0 auto;
}

.links-grid {
  display: grid;
  grid-template-columns: repeat(2, 1fr);
  gap: 1.5rem;
}

.link-card {
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 0.75rem;
  padding: 2rem;
  background: var(--bg-card);
  border: 1px solid var(--border);
  border-radius: 16px;
  text-decoration: none;
  color: var(--text);
  transition: all 0.3s ease, background 0.3s ease, border-color 0.3s ease, color 0.3s ease;
}

.link-card:hover {
  border-color: var(--orange);
  transform: translateY(-4px);
  box-shadow: 0 12px 40px rgba(247, 147, 26, 0.15);
}

.link-icon {
  font-size: 2rem;
  color: var(--orange);
}

.link-title {
  font-weight: 700;
  font-size: 1.125rem;
}

.link-url {
  font-size: 0.875rem;
  color: var(--text-muted);
}

/* Footer */
.footer {
  padding: 2rem;
  text-align: center;
  border-top: 1px solid var(--border);
}

.footer p {
  font-size: 0.875rem;
  color: var(--text-muted);
}

/* Animations */
@keyframes fadeUp {
  from {
    opacity: 0;
    transform: translateY(24px);
  }
  to {
    opacity: 1;
    transform: translateY(0);
  }
}

/* Responsive */
@media (max-width: 1024px) {
  .hero {
    grid-template-columns: 1fr;
    text-align: center;
    padding: 7rem 2rem 4rem;
  }

  .hero-subtitle {
    margin-left: auto;
    margin-right: auto;
  }

  .hero-cta {
    justify-content: center;
  }

  .hero-visual {
    order: -1;
    max-width: 500px;
    margin: 0 auto;
  }

  .stats-grid {
    grid-template-columns: 1fr;
  }
}

@media (max-width: 640px) {
  .header {
    padding: 1rem;
  }

  .header .nav {
    gap: 1rem;
  }

  .hero {
    padding: 6rem 1.5rem 3rem;
  }

  .contract-box {
    margin: 0 1rem;
    padding: 1rem;
  }

  .contract-row {
    flex-direction: column;
    align-items: stretch;
  }

  .story,
  .stats,
  .memes,
  .cta-section,
  .links {
    padding: 4rem 1.5rem;
  }

  .memes-grid {
    grid-template-columns: 1fr;
  }

  .meme-card img {
    height: 240px;
  }

  .links-grid {
    grid-template-columns: 1fr;
  }
}
