/* ═══════════════════════════════════════════════════
   $SIRIUS — The Cat Who Built Bitcoin
   BitcoinTalk Forum-Inspired White Theme
   ═══════════════════════════════════════════════════ */

:root {
  --btc-orange: #f7931a;
  --btc-gold: #d4a017;
  --forum-blue: #345b82;
  --forum-blue-dark: #1a3a5c;
  --forum-border: #d0d7de;
  --forum-post-bg: #fafbfc;
  --forum-post-header: #eef2f6;
  --text-primary: #1f2328;
  --text-secondary: #636c76;
  --text-gold: #9a6700;
  --green-online: #1a7f37;
  --red-accent: #cf222e;
  --link-blue: #0969da;
}

* { margin: 0; padding: 0; box-sizing: border-box; }
html { scroll-behavior: smooth; }

body {
  font-family: 'Inter', -apple-system, BlinkMacSystemFont, sans-serif;
  background: #ffffff;
  color: var(--text-primary);
  overflow-x: hidden;
  line-height: 1.65;
}

/* ═══ Forum Header ═══ */
.forum-header {
  position: fixed;
  top: 0;
  left: 0;
  right: 0;
  z-index: 1000;
  background: #ffffff;
  border-bottom: 2px solid var(--forum-border);
  box-shadow: 0 1px 4px rgba(0,0,0,0.06);
}

.header-inner {
  max-width: 1200px;
  margin: 0 auto;
  padding: 14px 30px;
  display: flex;
  align-items: center;
  justify-content: space-between;
}

.header-logo {
  display: flex;
  align-items: center;
  gap: 14px;
}

.bitcoin-icon {
  font-family: 'VT323', monospace;
  font-size: 34px;
  color: var(--btc-orange);
}

.header-text h1 {
  font-family: 'VT323', monospace;
  font-size: 30px;
  color: var(--btc-orange);
  letter-spacing: 3px;
  line-height: 1;
}

.header-text .tagline {
  font-size: 10px;
  color: var(--text-secondary);
  letter-spacing: 2px;
  text-transform: uppercase;
}

.header-nav {
  display: flex;
  gap: 4px;
}

.header-nav a {
  color: var(--text-secondary);
  text-decoration: none;
  padding: 7px 16px;
  font-size: 12px;
  font-weight: 600;
  border-radius: 4px;
  transition: all 0.2s ease;
  text-transform: uppercase;
  letter-spacing: 1px;
}

.header-nav a:hover {
  color: var(--btc-orange);
  background: rgba(247, 147, 26, 0.06);
}

.header-ticker {
  background: #f6f8fa;
  overflow: hidden;
  border-top: 1px solid var(--forum-border);
}

.ticker-content {
  display: flex;
  gap: 60px;
  padding: 4px 0;
  animation: ticker-scroll 35s linear infinite;
  white-space: nowrap;
  font-family: 'VT323', monospace;
  font-size: 13px;
  color: var(--text-secondary);
  letter-spacing: 1px;
}

@keyframes ticker-scroll {
  0% { transform: translateX(0); }
  100% { transform: translateX(-50%); }
}

/* ═══ Hero Section ═══ */
.hero {
  position: relative;
  min-height: 100vh;
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  padding: 120px 30px 60px;
  background: linear-gradient(180deg, #f8f9fa 0%, #ffffff 40%);
}

.hero-content {
  position: relative;
  display: flex;
  align-items: center;
  gap: 70px;
  max-width: 1100px;
}

.hero-image-container {
  position: relative;
  flex-shrink: 0;
}

.hero-cat-image {
  width: 260px;
  height: 260px;
  border-radius: 50%;
  object-fit: cover;
  border: 4px solid var(--btc-orange);
  box-shadow: 0 8px 30px rgba(0,0,0,0.08);
}

.user-badge {
  position: absolute;
  bottom: -8px;
  left: 50%;
  transform: translateX(-50%);
  background: var(--btc-orange);
  padding: 5px 18px;
  border-radius: 16px;
  z-index: 3;
  text-align: center;
}

.badge-rank {
  display: block;
  font-size: 10px;
  font-weight: 700;
  color: #fff;
  text-transform: uppercase;
  letter-spacing: 1px;
}

.hero-text { flex: 1; }

.glitch-wrapper { margin-bottom: 6px; }

.glitch {
  font-family: 'VT323', monospace;
  font-size: 88px;
  color: var(--btc-orange);
  position: relative;
  letter-spacing: 6px;
  line-height: 1;
}

.glitch::before,
.glitch::after {
  content: attr(data-text);
  position: absolute;
  top: 0;
  left: 0;
  width: 100%;
  height: 100%;
  pointer-events: none;
}

.glitch::before {
  animation: glitch-1 4s infinite linear alternate-reverse;
  clip-path: polygon(0 0, 100% 0, 100% 40%, 0 40%);
  color: #2863a5;
  opacity: 0.6;
}

.glitch::after {
  animation: glitch-2 3s infinite linear alternate-reverse;
  clip-path: polygon(0 65%, 100% 65%, 100% 100%, 0 100%);
  color: var(--red-accent);
  opacity: 0.6;
}

@keyframes glitch-1 {
  0%, 85%, 100% { transform: translate(0); }
  90% { transform: translate(-2px, 2px); }
  95% { transform: translate(2px, -1px); }
}

@keyframes glitch-2 {
  0%, 85%, 100% { transform: translate(0); }
  88% { transform: translate(2px, -2px); }
  92% { transform: translate(-2px, 1px); }
}

.hero-subtitle {
  font-size: 20px;
  color: var(--text-secondary);
  margin-bottom: 28px;
  font-weight: 500;
  letter-spacing: 1px;
}

/* Stats */
.hero-stats {
  display: flex;
  gap: 14px;
  margin-bottom: 24px;
}

.stat-box {
  background: #f6f8fa;
  border: 1px solid var(--forum-border);
  border-radius: 10px;
  padding: 16px 24px;
  text-align: center;
  transition: all 0.25s ease;
}

.stat-box:hover {
  border-color: var(--btc-orange);
  box-shadow: 0 4px 16px rgba(247, 147, 26, 0.08);
  transform: translateY(-2px);
}

.stat-number {
  display: block;
  font-family: 'VT323', monospace;
  font-size: 38px;
  color: var(--btc-orange);
  line-height: 1;
}

.stat-label {
  font-size: 10px;
  color: var(--text-secondary);
  text-transform: uppercase;
  letter-spacing: 1px;
  margin-top: 4px;
  display: block;
}

/* Hero Buttons */
.hero-buttons {
  display: flex;
  gap: 10px;
  flex-wrap: wrap;
  margin-top: 4px;
}

.hero-btn {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  padding: 10px 22px;
  font-size: 13px;
  font-weight: 600;
  font-family: 'Inter', sans-serif;
  border-radius: 8px;
  cursor: pointer;
  transition: all 0.2s ease;
  text-decoration: none;
  border: none;
  letter-spacing: 0.3px;
}

.btn-x {
  background: var(--text-primary);
  color: #fff;
}

.btn-x:hover {
  background: #333;
  transform: translateY(-1px);
  box-shadow: 0 4px 12px rgba(0,0,0,0.15);
}

.btn-ca {
  background: #f6f8fa;
  color: var(--text-primary);
  border: 1px solid var(--forum-border);
}

.btn-ca:hover {
  border-color: var(--btc-orange);
  background: #fff;
  transform: translateY(-1px);
  box-shadow: 0 4px 12px rgba(247, 147, 26, 0.1);
}

.btn-buy {
  background: var(--btc-orange);
  color: #fff;
}

.btn-buy:hover {
  background: #e6850e;
  transform: translateY(-1px);
  box-shadow: 0 4px 12px rgba(247, 147, 26, 0.25);
}

/* Scroll Indicator */
.scroll-indicator {
  position: absolute;
  bottom: 30px;
  left: 50%;
  transform: translateX(-50%);
  text-align: center;
  animation: bounce 2.5s infinite;
}

.scroll-indicator span {
  display: block;
  font-size: 11px;
  color: var(--text-secondary);
  text-transform: uppercase;
  letter-spacing: 2px;
  margin-top: 8px;
}

.scroll-arrow {
  width: 20px;
  height: 20px;
  border-right: 2px solid var(--btc-orange);
  border-bottom: 2px solid var(--btc-orange);
  transform: rotate(45deg);
  margin: 0 auto;
}

@keyframes bounce {
  0%, 20%, 50%, 80%, 100% { transform: translateX(-50%) translateY(0); }
  40% { transform: translateX(-50%) translateY(-8px); }
  60% { transform: translateX(-50%) translateY(-4px); }
}

/* ═══ Section Headers ═══ */
.section-header {
  text-align: center;
  margin-bottom: 50px;
}

.section-header h2 {
  font-family: 'VT323', monospace;
  font-size: 46px;
  color: var(--btc-orange);
  letter-spacing: 3px;
}

.section-subtitle {
  color: var(--text-secondary);
  font-size: 15px;
  margin-top: 8px;
}

.section-line {
  width: 60px;
  height: 3px;
  background: var(--btc-orange);
  margin: 14px auto 0;
  border-radius: 2px;
}

/* ═══ Story Sections ═══ */
.story-section {
  max-width: 860px;
  margin: 0 auto;
  padding: 70px 30px;
}

/* ═══ Forum Posts ═══ */
.forum-post {
  background: #fff;
  border: 1px solid var(--forum-border);
  border-radius: 10px;
  overflow: hidden;
  margin-bottom: 36px;
  box-shadow: 0 1px 4px rgba(0,0,0,0.04);
  transition: box-shadow 0.3s ease, border-color 0.3s ease;
}

.forum-post:hover {
  border-color: #b0b8c0;
  box-shadow: 0 4px 16px rgba(0,0,0,0.06);
}

.post-header {
  background: var(--forum-post-header);
  padding: 14px 20px;
  display: flex;
  justify-content: space-between;
  align-items: center;
  border-bottom: 1px solid var(--forum-border);
}

.post-user {
  display: flex;
  align-items: center;
  gap: 14px;
}

.post-avatar {
  width: 52px;
  height: 52px;
  border-radius: 8px;
  object-fit: cover;
  border: 2px solid var(--btc-orange);
}

.satoshi-avatar {
  width: 52px;
  height: 52px;
  border-radius: 8px;
  background: var(--forum-post-header);
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 26px;
  color: var(--btc-orange);
  font-family: 'VT323', monospace;
  border: 2px solid var(--btc-orange);
}

.post-user-info {
  display: flex;
  flex-direction: column;
  gap: 1px;
}

.username {
  font-weight: 700;
  font-size: 15px;
  color: var(--forum-blue);
}

.satoshi-name {
  color: var(--btc-gold);
}

.rank {
  font-size: 11px;
  color: var(--text-gold);
  font-weight: 500;
}

.activity {
  font-size: 11px;
  color: var(--text-secondary);
}

.post-meta { text-align: right; }

.post-date {
  display: block;
  font-size: 11px;
  color: var(--text-secondary);
}

.post-number {
  font-family: 'VT323', monospace;
  font-size: 16px;
  color: var(--btc-orange);
}

.post-body { padding: 24px; }

.post-body p {
  margin-bottom: 16px;
  font-size: 15px;
  line-height: 1.8;
}

.post-intro {
  font-size: 17px !important;
  font-weight: 500;
  color: var(--text-gold) !important;
}

.post-emphasis {
  font-size: 16px !important;
  font-style: italic;
  color: var(--text-gold) !important;
  border-left: 3px solid var(--btc-orange);
  padding-left: 18px;
}

/* Quotes */
.post-quote {
  background: #fef9f0;
  border-left: 4px solid var(--btc-orange);
  padding: 18px 20px;
  margin: 18px 0;
  border-radius: 0 8px 8px 0;
}

.satoshi-quote {
  border-left-color: var(--btc-gold);
  background: #fefbf0;
}

.quote-header {
  font-size: 11px;
  color: var(--text-secondary);
  margin-bottom: 8px;
  text-transform: uppercase;
  letter-spacing: 1px;
  font-weight: 600;
}

.post-quote p {
  font-style: italic;
  font-size: 14px !important;
}

/* Code block */
.code-block {
  background: #f6f8fa;
  border: 1px solid var(--forum-border);
  border-radius: 8px;
  overflow: hidden;
  margin: 18px 0;
}

.code-header {
  background: #ebeef1;
  padding: 8px 14px;
  display: flex;
  align-items: center;
  gap: 7px;
  font-size: 11px;
  color: var(--text-secondary);
  border-bottom: 1px solid var(--forum-border);
}

.code-dot {
  width: 10px;
  height: 10px;
  border-radius: 50%;
}

.code-dot.red { background: #ff5f56; }
.code-dot.yellow { background: #ffbd2e; }
.code-dot.green { background: #27c93f; }

.code-block pre {
  padding: 18px;
  font-family: 'Source Code Pro', monospace;
  font-size: 13px;
  color: var(--text-primary);
  line-height: 1.6;
  overflow-x: auto;
}

/* ═══ Emails Section ═══ */
.emails-section {
  max-width: 1100px;
  margin: 0 auto;
  padding: 70px 30px;
}

.email-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(320px, 1fr));
  gap: 20px;
}

.email-card {
  background: #fff;
  border: 1px solid var(--forum-border);
  border-radius: 10px;
  padding: 22px;
  position: relative;
  overflow: hidden;
  transition: all 0.3s ease;
}

.email-card:hover {
  border-color: #b0b8c0;
  transform: translateY(-3px);
  box-shadow: 0 8px 24px rgba(0,0,0,0.06);
}

.email-header {
  display: flex;
  justify-content: space-between;
  align-items: center;
  margin-bottom: 8px;
}

.email-from {
  font-size: 11px;
  color: var(--text-secondary);
}

.email-from strong {
  color: var(--forum-blue);
}

.email-date {
  font-family: 'Source Code Pro', monospace;
  font-size: 11px;
  color: var(--text-secondary);
}

.email-subject {
  font-weight: 700;
  font-size: 15px;
  color: var(--text-primary);
  margin-bottom: 10px;
  padding-bottom: 10px;
  border-bottom: 1px solid #f0f0f0;
}

.email-body p {
  font-size: 14px;
  line-height: 1.7;
  color: var(--text-secondary);
}

.email-body em {
  color: var(--text-gold);
  font-style: italic;
}

.email-stamp {
  position: absolute;
  top: 12px;
  right: -28px;
  background: rgba(207, 34, 46, 0.08);
  color: var(--red-accent);
  font-family: 'VT323', monospace;
  font-size: 11px;
  padding: 2px 36px;
  transform: rotate(30deg);
  letter-spacing: 2px;
  border: 1px solid rgba(207, 34, 46, 0.15);
}

/* ═══ Legend Section ═══ */
.legend-section {
  max-width: 1100px;
  margin: 0 auto;
  padding: 70px 30px;
}

.legend-content {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(310px, 1fr));
  gap: 20px;
}

.legend-card {
  background: #fff;
  border: 1px solid var(--forum-border);
  border-radius: 10px;
  padding: 28px;
  position: relative;
  overflow: hidden;
  transition: all 0.3s ease;
}

.legend-card::before {
  content: '';
  position: absolute;
  top: 0;
  left: 0;
  right: 0;
  height: 3px;
  background: var(--btc-orange);
  transform: scaleX(0);
  transform-origin: left;
  transition: transform 0.35s ease;
}

.legend-card:hover::before {
  transform: scaleX(1);
}

.legend-card:hover {
  border-color: #b0b8c0;
  transform: translateY(-3px);
  box-shadow: 0 8px 24px rgba(0,0,0,0.06);
}

.legend-number {
  font-family: 'VT323', monospace;
  font-size: 44px;
  color: rgba(247, 147, 26, 0.12);
  position: absolute;
  top: 12px;
  right: 18px;
}

.legend-card h3 {
  font-size: 18px;
  color: var(--forum-blue);
  margin-bottom: 10px;
}

.legend-card p {
  font-size: 14px;
  color: var(--text-secondary);
  line-height: 1.7;
}

/* ═══ Forum Thread Footer ═══ */
.forum-thread-section {
  max-width: 860px;
  margin: 0 auto;
  padding: 30px 30px 70px;
}

.final-post {
  border-color: var(--btc-orange);
}

.final-message {
  font-size: 18px !important;
  font-weight: 600;
  line-height: 1.8 !important;
  text-align: center;
  color: var(--text-gold) !important;
}

.final-signature {
  margin-top: 24px;
  padding-top: 18px;
  border-top: 1px dashed var(--forum-border);
  text-align: center;
}

.sig-image {
  width: 64px;
  height: 64px;
  border-radius: 50%;
  object-fit: cover;
  border: 3px solid var(--btc-orange);
  margin-bottom: 8px;
}

.final-signature p {
  margin-bottom: 4px !important;
  font-size: 14px !important;
  color: var(--forum-blue) !important;
  font-weight: 600;
}

.sig-note {
  font-size: 11px !important;
  color: var(--text-secondary) !important;
  font-weight: 400 !important;
}

/* ═══ Footer ═══ */
.site-footer {
  background: #f6f8fa;
  border-top: 1px solid var(--forum-border);
  padding: 36px 30px;
  text-align: center;
}

.footer-links {
  display: flex;
  justify-content: center;
  gap: 24px;
  margin-bottom: 16px;
  flex-wrap: wrap;
}

.footer-links a {
  color: var(--text-secondary);
  text-decoration: none;
  font-size: 12px;
  transition: color 0.2s ease;
}

.footer-links a:hover {
  color: var(--btc-orange);
}

.footer-powered {
  font-size: 10px;
  color: #aaa;
  margin-bottom: 6px;
  font-family: 'Source Code Pro', monospace;
}

.footer-copy {
  font-family: 'VT323', monospace;
  font-size: 15px;
  color: var(--btc-orange);
  letter-spacing: 2px;
}

/* ═══ How to Buy Modal ═══ */
.modal-overlay {
  position: fixed;
  inset: 0;
  background: rgba(0,0,0,0.5);
  backdrop-filter: blur(4px);
  z-index: 2000;
  display: flex;
  align-items: center;
  justify-content: center;
  opacity: 0;
  pointer-events: none;
  transition: opacity 0.25s ease;
}

.modal-overlay.active {
  opacity: 1;
  pointer-events: all;
}

.modal-card {
  background: #fff;
  border-radius: 14px;
  padding: 36px;
  max-width: 520px;
  width: 90%;
  position: relative;
  box-shadow: 0 20px 60px rgba(0,0,0,0.15);
  transform: translateY(20px) scale(0.97);
  transition: transform 0.3s ease;
}

.modal-overlay.active .modal-card {
  transform: translateY(0) scale(1);
}

.modal-close {
  position: absolute;
  top: 14px;
  right: 18px;
  background: none;
  border: none;
  font-size: 28px;
  color: var(--text-secondary);
  cursor: pointer;
  line-height: 1;
  transition: color 0.2s;
}

.modal-close:hover {
  color: var(--text-primary);
}

.modal-card h3 {
  font-family: 'VT323', monospace;
  font-size: 32px;
  color: var(--btc-orange);
  margin-bottom: 24px;
  letter-spacing: 2px;
}

.modal-steps {
  display: flex;
  flex-direction: column;
  gap: 18px;
}

.modal-step {
  display: flex;
  gap: 16px;
  align-items: flex-start;
}

.step-num {
  width: 32px;
  height: 32px;
  background: var(--btc-orange);
  color: #fff;
  border-radius: 50%;
  display: flex;
  align-items: center;
  justify-content: center;
  font-weight: 700;
  font-size: 14px;
  flex-shrink: 0;
  margin-top: 2px;
}

.step-content h4 {
  font-size: 15px;
  color: var(--text-primary);
  margin-bottom: 4px;
}

.step-content p {
  font-size: 13px;
  color: var(--text-secondary);
  line-height: 1.6;
}

.step-content a {
  color: var(--link-blue);
  text-decoration: none;
  font-weight: 600;
}

.step-content a:hover {
  text-decoration: underline;
}

.modal-ca {
  display: flex;
  align-items: center;
  gap: 10px;
  margin-top: 10px;
  background: #f6f8fa;
  border: 1px solid var(--forum-border);
  border-radius: 8px;
  padding: 8px 14px;
}

.modal-ca code {
  font-family: 'Source Code Pro', monospace;
  font-size: 13px;
  color: var(--text-primary);
  flex: 1;
  letter-spacing: 1px;
}

.modal-copy-btn {
  background: var(--btc-orange);
  color: #fff;
  border: none;
  padding: 5px 14px;
  border-radius: 6px;
  font-size: 12px;
  font-weight: 600;
  cursor: pointer;
  font-family: 'Inter', sans-serif;
  transition: background 0.2s;
}

.modal-copy-btn:hover {
  background: #e6850e;
}

/* ═══ Toast ═══ */
.toast {
  position: fixed;
  bottom: 30px;
  left: 50%;
  transform: translateX(-50%) translateY(20px);
  background: var(--text-primary);
  color: #fff;
  padding: 10px 24px;
  border-radius: 8px;
  font-size: 13px;
  font-weight: 600;
  opacity: 0;
  pointer-events: none;
  transition: all 0.3s ease;
  z-index: 3000;
}

.toast.show {
  opacity: 1;
  transform: translateX(-50%) translateY(0);
}

/* ═══ Reveal Animations ═══ */
.reveal {
  opacity: 0;
  transform: translateY(30px);
  transition: opacity 0.6s ease, transform 0.6s cubic-bezier(0.16, 1, 0.3, 1);
}

.reveal.visible {
  opacity: 1;
  transform: translateY(0);
}

.reveal:nth-child(2) { transition-delay: 0.08s; }
.reveal:nth-child(3) { transition-delay: 0.16s; }
.reveal:nth-child(4) { transition-delay: 0.24s; }
.reveal:nth-child(5) { transition-delay: 0.32s; }
.reveal:nth-child(6) { transition-delay: 0.40s; }

/* ═══ Typing Effect ═══ */
.typing-effect {
  overflow: hidden;
  border-right: 2px solid var(--btc-orange);
  white-space: nowrap;
  animation: typing 2.5s steps(25, end), blink-caret 0.8s step-end infinite;
  width: fit-content;
}

@keyframes typing {
  from { width: 0; }
  to { width: fit-content; }
}

@keyframes blink-caret {
  from, to { border-color: transparent; }
  50% { border-color: var(--btc-orange); }
}

/* ═══ Responsive ═══ */
@media (max-width: 900px) {
  .hero-content {
    flex-direction: column;
    text-align: center;
    gap: 36px;
  }

  .hero-stats {
    justify-content: center;
    flex-wrap: wrap;
  }

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

  .glitch { font-size: 52px; }

  .email-grid { grid-template-columns: 1fr; }
  .legend-content { grid-template-columns: 1fr; }
  .header-nav { display: none; }

  .typing-effect {
    white-space: normal;
    animation: none;
    border-right: none;
  }
}

@media (max-width: 500px) {
  .glitch { font-size: 38px; }
  .hero-cat-image { width: 180px; height: 180px; }
  .section-header h2 { font-size: 34px; }
  .stat-box { padding: 12px 16px; }
  .stat-number { font-size: 30px; }
  .hero-btn { padding: 8px 16px; font-size: 12px; }
}
