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

/* ===== BASE ===== */
html {
  scroll-behavior: smooth;
}

body {
  background: #000000;
  color: #ccc;
  font-family: 'Courier New', Courier, monospace;
  font-size: 17px;
  line-height: 1.8;
  overflow-x: hidden;
}

/* ===== SCANLINES ===== */
.scanlines {
  pointer-events: none;
  position: fixed;
  inset: 0;
  z-index: 9999;
  background: repeating-linear-gradient(
    0deg,
    rgba(0, 0, 0, 0.04) 0px,
    rgba(0, 0, 0, 0.04) 1px,
    transparent 1px,
    transparent 4px
  );
}

/* ===== ANIMATIONS ===== */
.anim {
  opacity: 0;
  transition: opacity 0.8s ease, transform 0.8s ease;
}

.anim[data-anim="fade"] {
  transform: none;
}

.anim[data-anim="up"] {
  transform: translateY(40px);
}

.anim[data-anim="width"] {
  transform: scaleX(0);
  transform-origin: left;
}

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

/* delay classes */
.anim[data-delay="1"] { transition-delay: 0.15s; }
.anim[data-delay="2"] { transition-delay: 0.3s; }
.anim[data-delay="3"] { transition-delay: 0.45s; }
.anim[data-delay="4"] { transition-delay: 0.6s; }

/* =========================================================
   HERO
   ========================================================= */
.hero {
  min-height: 100vh;
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  text-align: center;
  padding: 60px 24px 40px;
  position: relative;
  background: radial-gradient(ellipse at center, #080808 0%, #000000 70%);
}

.hero-inner {
  max-width: 100%;
}

.hero-badge {
  display: inline-block;
  border: 1px solid #333;
  padding: 6px 28px;
  font-size: 14px;
  letter-spacing: 8px;
  color: #666;
  margin-bottom: 32px;
}

.hero-logo {
  color: #fff;
  font-size: clamp(6px, 1.35vw, 15px);
  line-height: 1.2;
  display: inline-block;
  text-align: left;
}

.hero-sub {
  color: #555;
  font-size: clamp(15px, 1.8vw, 22px);
  letter-spacing: 5px;
  margin-top: 28px;
}

/* Hero buttons */
.hero-buttons {
  display: flex;
  gap: 14px;
  justify-content: center;
  flex-wrap: wrap;
  margin-top: 44px;
}

.btn {
  display: inline-block;
  padding: 14px 36px;
  font-family: 'Courier New', Courier, monospace;
  font-size: 15px;
  font-weight: bold;
  letter-spacing: 3px;
  text-decoration: none;
  color: #999;
  border: 1px solid #2a2a2a;
  background: transparent;
  cursor: pointer;
  transition: all 0.25s ease;
  position: relative;
  overflow: hidden;
}

.btn::before {
  content: '';
  position: absolute;
  top: 0;
  left: -100%;
  width: 100%;
  height: 100%;
  background: linear-gradient(90deg, transparent, rgba(255,255,255,0.04), transparent);
  transition: left 0.5s ease;
}

.btn:hover::before {
  left: 100%;
}

.btn:hover {
  color: #fff;
  border-color: #666;
  transform: translateY(-2px);
}

.btn-glow {
  color: #fff;
  border-color: #444;
  background: rgba(255,255,255,0.03);
}

.btn-glow:hover {
  border-color: #888;
  box-shadow: 0 0 20px rgba(255,255,255,0.06);
}

.btn-sm {
  padding: 10px 24px;
  font-size: 13px;
}

/* CA address */
.hero-ca {
  color: #fff;
  font-size: 13px;
  letter-spacing: 1px;
  margin-top: 24px;
  word-break: break-all;
  cursor: pointer;
  transition: opacity 0.2s ease;
  user-select: all;
}

.hero-ca:hover {
  opacity: 0.7;
}

.hero-ca.copied {
  color: #666;
}

/* Scroll hint */
.hero-scroll {
  position: absolute;
  bottom: 36px;
  left: 50%;
  transform: translateX(-50%);
}

.hero-scroll span {
  color: #2a2a2a;
  font-size: 24px;
  animation: bob 2s ease-in-out infinite;
}

@keyframes bob {
  0%, 100% { transform: translateY(0); opacity: 0.3; }
  50% { transform: translateY(8px); opacity: 0.7; }
}

/* =========================================================
   SECTIONS
   ========================================================= */
.section {
  padding: 100px 24px;
  width: 100%;
}

.section-dark {
  background: #000000;
}

.section-inner {
  max-width: 1100px;
  margin: 0 auto;
}

.section-heading {
  color: #fff;
  font-size: clamp(28px, 4vw, 48px);
  font-weight: bold;
  letter-spacing: 6px;
  margin-bottom: 12px;
}

.section-line {
  width: 80px;
  height: 2px;
  background: #333;
  margin-bottom: 48px;
}

/* =========================================================
   ABOUT
   ========================================================= */
.about-grid {
  display: grid;
  grid-template-columns: 1.4fr 1fr;
  gap: 40px;
  align-items: center;
  max-width: 900px;
}

.about-text p {
  color: #aaa;
  font-size: 17px;
  margin-bottom: 16px;
  line-height: 1.85;
}

.about-video {
  display: flex;
  align-items: center;
  justify-content: center;
}

.about-video video {
  width: 100%;
  max-width: 100%;
  border: none;
  display: block;
}

/* =========================================================
   TOKENOMICS CARDS
   ========================================================= */
.cards {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 20px;
  margin-bottom: 48px;
  max-width: 800px;
  margin-left: auto;
  margin-right: auto;
}

.card {
  border: 1px solid #151515;
  padding: 32px 20px;
  text-align: center;
  background: #050505;
  transition: all 0.35s ease;
  position: relative;
  overflow: hidden;
}

.card:hover {
  transform: translateY(-4px);
  border-color: #2a2a2a;
  background: #0a0a0a;
}

.card-icon {
  color: #333;
  font-size: 20px;
  margin-bottom: 16px;
  transition: color 0.3s ease;
}

.card:hover .card-icon {
  color: #666;
}

.card-label {
  color: #555;
  font-size: 11px;
  letter-spacing: 4px;
  margin-bottom: 12px;
}

.card-value {
  color: #fff;
  font-size: clamp(18px, 2vw, 26px);
  font-weight: bold;
  letter-spacing: 2px;
}

/* Supply bar */
.supply-bar-wrap {
  max-width: 600px;
  margin: 0 auto;
}

.supply-bar-label {
  display: flex;
  justify-content: space-between;
  color: #555;
  font-size: 12px;
  letter-spacing: 2px;
  margin-bottom: 10px;
}

.supply-bar {
  width: 100%;
  height: 6px;
  background: #1a1a1a;
  border-radius: 3px;
  overflow: hidden;
}

.supply-bar-fill {
  width: 0%;
  height: 100%;
  background: linear-gradient(90deg, #333, #888);
  border-radius: 3px;
  transition: width 1.5s ease;
}

.supply-bar-wrap.visible .supply-bar-fill {
  width: 100%;
}

/* =========================================================
   CHART EMBED
   ========================================================= */
.chart-wrap {
  width: 100%;
  border: 1px solid #151515;
  overflow: hidden;
}

.chart-wrap iframe {
  width: 100%;
  height: 600px;
  border: none;
  display: block;
}

/* =========================================================
   MANIFESTO
   ========================================================= */
.manifesto-grid {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 0;
}

.manifesto-item {
  display: flex;
  align-items: center;
  gap: 20px;
  padding: 24px 28px;
  border-bottom: 1px solid #141414;
  transition: all 0.3s ease;
  cursor: default;
}

.manifesto-item:hover {
  background: rgba(255,255,255,0.02);
  padding-left: 36px;
}

.m-num {
  color: #333;
  font-size: 32px;
  font-weight: bold;
  min-width: 56px;
  transition: color 0.3s ease;
}

.manifesto-item:hover .m-num {
  color: #666;
}

.m-text {
  color: #aaa;
  font-size: clamp(15px, 1.3vw, 18px);
}

.manifesto-item:hover .m-text {
  color: #fff;
}

/* =========================================================
   CULTURE GRID
   ========================================================= */
.culture-grid {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 24px;
}

.culture-card {
  padding: 36px 28px;
  border: 1px solid #141414;
  background: rgba(255,255,255,0.01);
  transition: all 0.35s ease;
}

.culture-card:hover {
  transform: translateY(-4px);
  border-color: #2a2a2a;
  background: rgba(255,255,255,0.025);
}

.culture-emoji {
  color: #333;
  font-size: 24px;
  margin-bottom: 18px;
  font-weight: bold;
  letter-spacing: 4px;
  transition: color 0.3s ease;
}

.culture-card:hover .culture-emoji {
  color: #777;
}

.culture-card h3 {
  color: #ddd;
  font-size: 16px;
  letter-spacing: 3px;
  margin-bottom: 12px;
}

.culture-card p {
  color: #777;
  font-size: 14px;
  line-height: 1.7;
}

.culture-card:hover p {
  color: #aaa;
}

/* =========================================================
   QUOTES
   ========================================================= */
.quotes-list {
  display: flex;
  flex-direction: column;
  gap: 0;
}

.quote-item {
  font-style: italic;
  font-size: clamp(17px, 1.5vw, 22px);
  color: #666;
  padding: 28px 0;
  border-bottom: 1px solid #111;
  transition: all 0.3s ease;
  cursor: default;
  position: relative;
  padding-left: 24px;
}

.quote-item::before {
  content: '>';
  position: absolute;
  left: 0;
  color: #2a2a2a;
  font-style: normal;
  transition: color 0.3s ease;
}

.quote-item:hover {
  color: #ccc;
  padding-left: 32px;
}

.quote-item:hover::before {
  color: #666;
}

.quote-item:last-child {
  border-bottom: none;
}

/* =========================================================
   ASCII GENERATOR
   ========================================================= */
.ascii-gen {
  max-width: 800px;
  margin: 0 auto;
}

/* Upload zone */
.ascii-upload {
  border: 1px dashed #2a2a2a;
  padding: 48px 24px;
  text-align: center;
  cursor: pointer;
  transition: all 0.3s ease;
  position: relative;
  min-height: 200px;
  display: flex;
  align-items: center;
  justify-content: center;
  background: #000;
}

.ascii-upload:hover,
.ascii-upload.dragover {
  border-color: #555;
  background: #050505;
}

.upload-icon {
  font-size: 32px;
  color: #333;
  margin-bottom: 16px;
  letter-spacing: 6px;
}

.upload-text {
  color: #777;
  font-size: 18px;
  letter-spacing: 4px;
  margin-bottom: 8px;
}

.upload-sub {
  color: #444;
  font-size: 13px;
  letter-spacing: 2px;
}

.ascii-preview {
  max-width: 100%;
  max-height: 300px;
  object-fit: contain;
}

/* Controls */
.ascii-controls {
  margin-top: 20px;
  padding: 16px 20px;
  border: 1px solid #151515;
  background: #000;
}

.control-row {
  display: flex;
  gap: 24px;
  align-items: center;
}

.control-group {
  flex: 1;
  display: flex;
  align-items: center;
  gap: 12px;
}

.control-group label {
  color: #555;
  font-size: 11px;
  letter-spacing: 3px;
  min-width: 80px;
}

.control-group input[type="range"] {
  flex: 1;
  -webkit-appearance: none;
  appearance: none;
  height: 4px;
  background: #1a1a1a;
  border-radius: 2px;
  outline: none;
}

.control-group input[type="range"]::-webkit-slider-thumb {
  -webkit-appearance: none;
  appearance: none;
  width: 14px;
  height: 14px;
  background: #888;
  border-radius: 50%;
  cursor: pointer;
  transition: background 0.2s ease;
}

.control-group input[type="range"]::-webkit-slider-thumb:hover {
  background: #fff;
}

.control-val {
  color: #666;
  font-size: 13px;
  min-width: 40px;
  text-align: right;
}

/* Toggle */
.toggle-label {
  display: flex;
  align-items: center;
  gap: 10px;
  color: #555;
  font-size: 12px;
  letter-spacing: 3px;
  cursor: pointer;
  user-select: none;
  white-space: nowrap;
}

.toggle-label input {
  display: none;
}

.toggle-box {
  width: 36px;
  height: 18px;
  background: #1a1a1a;
  border-radius: 9px;
  position: relative;
  transition: background 0.2s ease;
  flex-shrink: 0;
}

.toggle-box::after {
  content: '';
  position: absolute;
  top: 2px;
  left: 2px;
  width: 14px;
  height: 14px;
  background: #555;
  border-radius: 50%;
  transition: all 0.2s ease;
}

.toggle-label input:checked + .toggle-box {
  background: #333;
}

.toggle-label input:checked + .toggle-box::after {
  left: 20px;
  background: #fff;
}

/* Output */
.ascii-output-wrap {
  margin-top: 20px;
  border: 1px solid #151515;
  background: #000;
}

.ascii-output-bar {
  display: flex;
  gap: 10px;
  padding: 12px 16px;
  border-bottom: 1px solid #151515;
  background: #000;
}

.ascii-output {
  padding: 16px;
  font-family: 'Courier New', Courier, monospace;
  font-size: 7px;
  line-height: 1.05;
  letter-spacing: 0.5px;
  color: #ddd;
  background: #000;
  overflow-x: auto;
  white-space: pre;
  max-height: 600px;
  overflow-y: auto;
  text-align: center;
}

/* =========================================================
   FAQ
   ========================================================= */
.faq-list {
  display: flex;
  flex-direction: column;
}

.faq-item {
  padding: 28px 0;
  border-bottom: 1px solid #141414;
  transition: all 0.3s ease;
}

.faq-item:last-child {
  border-bottom: none;
}

.faq-item:hover {
  padding-left: 12px;
}

.faq-q {
  color: #ddd;
  font-size: clamp(17px, 1.4vw, 21px);
  font-weight: bold;
  margin-bottom: 8px;
}

.faq-a {
  color: #666;
  font-size: clamp(15px, 1.2vw, 18px);
}

.faq-item:hover .faq-a {
  color: #999;
}

/* =========================================================
   FOOTER
   ========================================================= */
.footer {
  padding: 80px 24px;
  text-align: center;
  border-top: 1px solid #111;
}

.footer-logo {
  color: #222;
  font-size: clamp(6px, 1vw, 12px);
  line-height: 1.2;
  display: inline-block;
  margin-bottom: 28px;
  transition: color 0.4s ease;
}

.footer:hover .footer-logo {
  color: #444;
}

.footer-tag {
  color: #333;
  font-size: 14px;
  letter-spacing: 4px;
  margin: 4px 0;
}

.footer-buttons {
  display: flex;
  gap: 12px;
  justify-content: center;
  margin: 28px 0;
}

.footer-copy {
  color: #1a1a1a;
  font-size: 12px;
  letter-spacing: 2px;
  margin-top: 20px;
}

/* =========================================================
   SCROLLBAR
   ========================================================= */
::-webkit-scrollbar { width: 6px; }
::-webkit-scrollbar-track { background: #000000; }
::-webkit-scrollbar-thumb { background: #1a1a1a; border-radius: 3px; }
::-webkit-scrollbar-thumb:hover { background: #333; }

/* ===== SELECTION ===== */
::selection {
  background: #333;
  color: #fff;
}

/* =========================================================
   RESPONSIVE
   ========================================================= */
@media (max-width: 900px) {
  .cards {
    grid-template-columns: 1fr;
  }

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

  .about-video video {
    margin-top: 24px;
  }

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

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

  .section {
    padding: 60px 16px;
  }

  .hero-buttons {
    flex-direction: column;
    align-items: center;
  }

  .btn {
    width: 100%;
    max-width: 260px;
    text-align: center;
  }
}
