@font-face {
  font-family: "FGKlara";
  src: url("FGKlara.ttf") format("truetype");
  font-display: swap;
}

:root {
  --color-primary: #f7931a;
  --color-primary-dark: #e8850f;
  --color-btc: #f7931a;
  --color-white: #ffffff;
  --color-white-dark: #e9e9e9;
  --color-accent: #ff4d00;
  --color-black: #0a0a0a;
  --color-silver: #c0c0c0;
  --glow: rgba(247, 147, 26, 0.45);
}

* {
  box-sizing: border-box;
  margin: 0;
  padding: 0;
  font-family: "FGKlara", "Segoe UI", system-ui, sans-serif;
}

html {
  scroll-behavior: smooth;
}

body {
  overflow-x: hidden;
  scroll-padding-top: 90px;
  background: var(--color-black);
  color: var(--color-white);
}

/* Animated background layers */
#btc-canvas {
  position: fixed;
  inset: 0;
  width: 100%;
  height: 100%;
  z-index: 0;
  pointer-events: none;
  opacity: 0.35;
}

.bg-grid {
  position: fixed;
  inset: 0;
  z-index: 0;
  pointer-events: none;
  background-image: linear-gradient(
      rgba(247, 147, 26, 0.04) 1px,
      transparent 1px
    ),
    linear-gradient(90deg, rgba(247, 147, 26, 0.04) 1px, transparent 1px);
  background-size: 48px 48px;
  animation: gridDrift 20s linear infinite;
}

.bg-glow {
  position: fixed;
  inset: 0;
  z-index: 0;
  pointer-events: none;
  background: radial-gradient(
      ellipse 80% 50% at 50% -20%,
      rgba(247, 147, 26, 0.25),
      transparent 60%
    ),
    radial-gradient(
      ellipse 60% 40% at 100% 80%,
      rgba(255, 77, 0, 0.12),
      transparent 50%
    );
}

@keyframes gridDrift {
  0% {
    transform: translate(0, 0);
  }
  100% {
    transform: translate(48px, 48px);
  }
}

/* Ticker */
.ticker-wrap {
  position: fixed;
  top: 0;
  left: 0;
  right: 0;
  z-index: 1001;
  background: linear-gradient(90deg, #000, #1a1208, #000);
  border-bottom: 1px solid rgba(247, 147, 26, 0.35);
  overflow: hidden;
  height: 28px;
}

.ticker {
  display: flex;
  white-space: nowrap;
  animation: ticker 35s linear infinite;
}

.ticker span {
  padding: 4px 0;
  font-size: 0.75rem;
  letter-spacing: 0.12em;
  color: var(--color-primary);
}

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

/* Header */
header {
  position: fixed;
  top: 28px;
  z-index: 1000;
  display: flex;
  justify-content: center;
  align-items: center;
  width: 100%;
  padding: 16px 0;
  transition: all 0.3s ease;
}

header.scrolled {
  padding: 8px 0;
}

header.scrolled .full-header {
  box-shadow: 0 4px 24px var(--glow);
  background-color: rgba(0, 0, 0, 0.92);
}

.full-header {
  display: flex;
  justify-content: space-between;
  align-items: center;
  padding: 8px 20px;
  color: var(--color-white);
  background: rgba(255, 255, 255, 0.08);
  backdrop-filter: blur(12px);
  -webkit-backdrop-filter: blur(12px);
  border: 1px solid rgba(247, 147, 26, 0.25);
  border-radius: 30px;
  width: max-content;
  max-width: calc(100% - 24px);
  transform: translateY(0);
  transition: all 0.3s ease;
}

.full-header .logo-container {
  display: flex;
  align-items: center;
  gap: 10px;
  padding-right: 24px;
}

.full-header .logo-container h2 {
  margin-top: 6px;
  color: var(--color-primary);
  text-shadow: 0 0 20px var(--glow);
}

.full-header .logo-container img {
  max-width: 48px;
  border-radius: 50%;
  border: 2px solid var(--color-primary);
  animation: logoPulse 3s ease-in-out infinite;
}

@keyframes logoPulse {
  0%,
  100% {
    box-shadow: 0 0 0 0 var(--glow);
  }
  50% {
    box-shadow: 0 0 20px 4px var(--glow);
  }
}

.links-container {
  display: flex;
  flex-wrap: wrap;
  justify-content: center;
  gap: 6px;
}

.links-container a {
  color: var(--color-white-dark);
  text-decoration: none;
  font-size: 0.88rem;
  padding: 4px 10px;
  position: relative;
  transition: color 0.3s ease;
}

.links-container a::after {
  content: "";
  position: absolute;
  bottom: -4px;
  left: 0;
  width: 0;
  height: 2px;
  background: var(--color-primary);
  transition: width 0.3s ease;
}

.links-container a:hover,
.links-container a.active {
  color: var(--color-primary);
}

.links-container a:hover::after,
.links-container a.active::after {
  width: 100%;
}

/* Hero */
.hero {
  position: relative;
  z-index: 1;
  width: 100%;
  min-height: 100vh;
  overflow: hidden;
  display: flex;
  align-items: center;
  justify-content: center;
  padding: 120px 5% 60px;
  background: linear-gradient(
      180deg,
      rgba(10, 10, 10, 0.75) 0%,
      rgba(20, 12, 0, 0.85) 50%,
      rgba(10, 10, 10, 0.9) 100%
    ),
    radial-gradient(circle at 30% 40%, rgba(247, 147, 26, 0.15), transparent 50%),
    radial-gradient(circle at 70% 60%, rgba(255, 77, 0, 0.08), transparent 40%);
}

.hero-container {
  display: flex;
  justify-content: center;
  align-items: center;
  gap: 80px;
  width: 100%;
  max-width: 1400px;
  margin: 0 auto;
}

.hero-left {
  position: relative;
  flex: 1;
  display: flex;
  justify-content: center;
  align-items: center;
}

.hero-ca-container {
  flex: 0 0 420px;
  position: relative;
  z-index: 3;
  display: flex;
  flex-direction: column;
  gap: 18px;
  padding: 28px;
  background: rgba(0, 0, 0, 0.55);
  backdrop-filter: blur(14px);
  border-radius: 20px;
  border: 1px solid rgba(247, 147, 26, 0.35);
  box-shadow: 0 8px 40px rgba(0, 0, 0, 0.5), 0 0 60px rgba(247, 147, 26, 0.08);
  animation: cardFloat 6s ease-in-out infinite;
}

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

.hero-tagline {
  font-size: 1rem;
  color: var(--color-primary);
  text-align: center;
  line-height: 1.4;
}

.ca-input-wrapper {
  display: flex;
  gap: 10px;
  width: 100%;
}

.ca-input {
  flex: 1;
  padding: 12px 18px;
  border: 2px solid var(--color-primary);
  border-radius: 25px;
  background: rgba(255, 255, 255, 0.06);
  color: var(--color-white);
  font-size: 0.95rem;
}

.copy-button,
.dex-button {
  padding: 12px 22px;
  border: none;
  border-radius: 25px;
  background: var(--color-primary);
  color: #000;
  font-weight: bold;
  font-size: 1rem;
  cursor: pointer;
  text-decoration: none;
  text-align: center;
  transition: all 0.25s ease;
  position: relative;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 8px;
}

.copy-button:hover,
.dex-button:hover {
  transform: scale(1.05);
  background: #ffb347;
  box-shadow: 0 6px 24px var(--glow);
}

.dex-button-lg {
  padding: 16px 36px;
  font-size: 1.1rem;
}

.tooltip {
  position: absolute;
  top: -40px;
  left: 50%;
  transform: translateX(-50%);
  background: rgba(0, 0, 0, 0.9);
  color: white;
  padding: 6px 12px;
  border-radius: 6px;
  font-size: 0.85rem;
  opacity: 0;
  visibility: hidden;
  transition: all 0.3s ease;
  white-space: nowrap;
}

.copy-button.copied .tooltip {
  opacity: 1;
  visibility: visible;
  top: -45px;
}

.hero-social-links {
  display: flex;
  gap: 10px;
}

.social-button {
  flex: 1;
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 8px;
  padding: 12px 16px;
  background: rgba(255, 255, 255, 0.06);
  border: 1px solid rgba(247, 147, 26, 0.3);
  border-radius: 25px;
  color: var(--color-white);
  text-decoration: none;
  font-size: 0.9rem;
  transition: all 0.25s ease;
}

.social-button:hover {
  background: var(--color-primary);
  color: #000;
  transform: translateY(-2px);
}

.image-with-text-container {
  position: relative;
  width: min(520px, 90vw);
  height: min(520px, 90vw);
  display: flex;
  justify-content: center;
  align-items: center;
}

.ye-img {
  position: relative;
  max-width: 280px;
  z-index: 2;
  filter: drop-shadow(0 0 30px var(--glow));
  animation: heroLogoSpin 25s linear infinite;
}

@keyframes heroLogoSpin {
  0% {
    transform: rotate(0deg) scale(1);
  }
  50% {
    transform: rotate(3deg) scale(1.03);
  }
  100% {
    transform: rotate(0deg) scale(1);
  }
}

.circular-text {
  position: absolute;
  width: 100%;
  height: 100%;
  animation: rotate 22s linear infinite;
}

.circular-text span {
  position: absolute;
  left: 50%;
  font-size: 1.4em;
  color: var(--color-primary);
  transform-origin: 0 260px;
  transform: rotate(calc(30deg * var(--i)));
  text-shadow: 0 0 12px var(--glow);
  opacity: 0.85;
}

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

.floating-elements {
  position: absolute;
  inset: 0;
  pointer-events: none;
  z-index: 1;
}

.float-item {
  position: absolute;
  font-size: var(--size);
  color: var(--color-primary);
  opacity: 0.55;
  font-weight: bold;
  animation: float 14s linear infinite;
  animation-delay: var(--delay);
  text-shadow: 0 0 12px var(--glow);
}

.float-item.special {
  font-size: calc(var(--size) * 1.4);
  opacity: 0.35;
}

.float-item:nth-child(1) { left: 8%; top: -80px; }
.float-item:nth-child(2) { left: 28%; top: -80px; }
.float-item:nth-child(3) { left: 48%; top: -80px; }
.float-item:nth-child(4) { left: 68%; top: -80px; }
.float-item:nth-child(5) { left: 88%; top: -80px; }
.float-item:nth-child(6) { left: 18%; top: -80px; }
.float-item:nth-child(7) { left: 58%; top: -80px; }
.float-item:nth-child(8) { left: 78%; top: -80px; }

@keyframes float {
  0% {
    transform: translateY(-80px) rotate(0deg);
    opacity: 0;
  }
  15% {
    opacity: 0.6;
  }
  85% {
    opacity: 0.6;
  }
  100% {
    transform: translateY(100vh) rotate(360deg);
    opacity: 0;
  }
}

/* About */
.intro-section {
  position: relative;
  z-index: 1;
  background: linear-gradient(180deg, var(--color-silver) 0%, #a8a8a8 100%);
  padding: 80px 20px;
  color: var(--color-white);
}

.intro-card {
  max-width: 860px;
  margin: 0 auto;
  background: rgba(20, 12, 0, 0.75);
  border-radius: 20px;
  padding: 48px 40px;
  backdrop-filter: blur(12px);
  border: 2px solid rgba(247, 147, 26, 0.35);
  box-shadow: 0 20px 60px rgba(0, 0, 0, 0.35);
}

.intro-text h2 {
  font-size: 2.4em;
  margin-bottom: 24px;
  color: #fff;
}

.highlight {
  color: var(--color-primary);
  text-shadow: 0 0 20px var(--glow);
}

.reveal-text {
  font-size: 1.15em;
  line-height: 1.65;
  margin-bottom: 18px;
  color: #d6d6d6;
  opacity: 0;
  transform: translateY(24px);
}

.reveal-text.visible {
  animation: revealText 0.7s ease forwards;
}

.reveal-delay-1.visible { animation-delay: 0.1s; }
.reveal-delay-2.visible { animation-delay: 0.25s; }
.reveal-delay-3.visible { animation-delay: 0.4s; }
.reveal-delay-4.visible { animation-delay: 0.55s; }

@keyframes revealText {
  to {
    opacity: 1;
    transform: translateY(0);
  }
}

.stats-container {
  margin-top: 36px;
}

.stat-title {
  display: block;
  margin-bottom: 10px;
  color: var(--color-primary);
  font-size: 1.05em;
}

.progress-bar {
  width: 100%;
  height: 36px;
  background: rgba(255, 255, 255, 0.08);
  border-radius: 18px;
  overflow: hidden;
  margin-bottom: 16px;
}

.progress {
  height: 100%;
  background: linear-gradient(90deg, var(--color-primary), #ffb347);
  display: flex;
  align-items: center;
  justify-content: center;
  color: #000;
  font-weight: bold;
  text-decoration: none;
  transition: filter 0.3s ease, transform 0.3s ease;
}

.progress:hover {
  filter: brightness(1.15);
  transform: scale(1.02);
}

.progress-accent {
  background: linear-gradient(90deg, var(--color-accent), var(--color-primary));
}

/* How to buy */
.how-to-buy-section {
  position: relative;
  z-index: 1;
  padding: 90px 20px 100px;
  background: linear-gradient(rgba(0, 0, 0, 0.82), rgba(0, 0, 0, 0.88)),
    radial-gradient(circle at 50% 0%, rgba(247, 147, 26, 0.2), transparent 55%);
  color: var(--color-white);
}

.section-title {
  text-align: center;
  font-size: 2.6em;
  margin-bottom: 12px;
  color: var(--color-primary);
  text-shadow: 0 0 30px var(--glow);
}

.section-subtitle {
  text-align: center;
  color: var(--color-white-dark);
  margin-bottom: 32px;
  opacity: 0.8;
}

.steps-container {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(240px, 1fr));
  gap: 28px;
  max-width: 1200px;
  margin: 0 auto 48px;
}

.step-card {
  background: rgba(247, 147, 26, 0.08);
  border-radius: 20px;
  padding: 32px 24px;
  text-align: center;
  border: 1px solid rgba(247, 147, 26, 0.25);
  backdrop-filter: blur(10px);
  transition: transform 0.35s ease, box-shadow 0.35s ease;
  opacity: 0;
  transform: translateY(40px);
}

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

.step-card:hover {
  transform: translateY(-12px);
  box-shadow: 0 16px 40px var(--glow);
}

.step-number {
  width: 44px;
  height: 44px;
  background: var(--color-primary);
  color: #000;
  border-radius: 50%;
  display: flex;
  align-items: center;
  justify-content: center;
  font-weight: bold;
  margin: 0 auto 18px;
  font-size: 1.2rem;
}

.step-card h3 {
  margin-bottom: 12px;
  color: var(--color-primary);
}

.step-card p {
  line-height: 1.55;
  color: var(--color-white-dark);
  font-size: 0.95rem;
}

.how-cta-wrap {
  text-align: center;
}

/* Chart */
.chart-section {
  position: relative;
  z-index: 1;
  padding: 80px 20px 100px;
  background: var(--color-silver);
}

.chart-embed-wrap {
  position: relative;
  max-width: 1100px;
  margin: 0 auto;
  border-radius: 16px;
  overflow: hidden;
  border: 3px solid var(--color-primary);
  box-shadow: 0 12px 50px rgba(0, 0, 0, 0.35), 0 0 40px var(--glow);
  min-height: 480px;
  background: #0d0d0d;
}

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

.chart-embed-wrap iframe.hidden {
  display: none;
}

.chart-placeholder {
  position: absolute;
  inset: 0;
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  gap: 20px;
  padding: 40px;
  text-align: center;
  background: #111;
  color: #aaa;
}

.chart-placeholder.hidden {
  display: none;
}

.chart-placeholder-logo {
  width: 100px;
  border-radius: 50%;
  animation: logoPulse 2s ease-in-out infinite;
}

.chart-placeholder code {
  color: var(--color-primary);
}

/* Join Us */
.joinus-section {
  position: relative;
  z-index: 1;
  padding: 0 0 80px;
  background: linear-gradient(180deg, #1a1a1a 0%, #0a0a0a 100%);
  overflow: hidden;
}

.joinus-banner-wrap {
  width: 100%;
  max-height: 320px;
  overflow: hidden;
  border-bottom: 4px solid var(--color-primary);
  box-shadow: 0 8px 40px var(--glow);
}

.joinus-banner {
  width: 100%;
  height: auto;
  display: block;
  object-fit: cover;
  object-position: center;
  animation: bannerShine 8s ease-in-out infinite;
}

@keyframes bannerShine {
  0%,
  100% {
    filter: brightness(1);
  }
  50% {
    filter: brightness(1.08);
  }
}

.joinus-content {
  max-width: 720px;
  margin: 0 auto;
  padding: 48px 24px 0;
  text-align: center;
}

.joinus-lead {
  font-size: 1.15rem;
  line-height: 1.6;
  color: var(--color-white-dark);
  margin-bottom: 32px;
}

.joinus-actions {
  display: flex;
  flex-wrap: wrap;
  gap: 16px;
  justify-content: center;
  align-items: center;
}

.social-link {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  color: var(--color-white);
  text-decoration: none;
  padding: 12px 20px;
  border-radius: 25px;
  background: rgba(247, 147, 26, 0.12);
  border: 1px solid rgba(247, 147, 26, 0.35);
  transition: all 0.3s ease;
}

.social-link:hover {
  background: var(--color-primary);
  color: #000;
  transform: translateY(-3px);
}

/* Footer */
.footer {
  position: relative;
  z-index: 1;
  background: #000;
  padding: 48px 20px;
  border-top: 1px solid rgba(247, 147, 26, 0.3);
}

.footer-content {
  max-width: 900px;
  margin: 0 auto;
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 24px;
}

.footer-logo {
  display: flex;
  align-items: center;
  gap: 12px;
}

.footer-logo img {
  width: 44px;
  border-radius: 50%;
  border: 2px solid var(--color-primary);
}

.footer-logo h3 {
  color: var(--color-primary);
}

.social-links {
  display: flex;
  flex-wrap: wrap;
  gap: 16px;
  justify-content: center;
}

.footer-disclaimer {
  text-align: center;
  color: #888;
  font-size: 0.88rem;
  max-width: 560px;
  line-height: 1.5;
}

/* Cursor effects */
.cursor-effects {
  position: fixed;
  inset: 0;
  pointer-events: none;
  z-index: 9998;
}

.cursor-particle {
  position: absolute;
  font-size: 18px;
  color: var(--color-primary);
  animation: particleFade 1s forwards;
  text-shadow: 0 0 10px var(--glow);
  font-weight: bold;
}

.mouse-trail {
  position: absolute;
  width: 8px;
  height: 8px;
  background: var(--color-primary);
  border-radius: 50%;
  opacity: 0.5;
  animation: trailFade 0.5s linear forwards;
}

@keyframes particleFade {
  to {
    transform: translate(-50%, -120%) scale(0) rotate(360deg);
    opacity: 0;
  }
}

@keyframes trailFade {
  to {
    opacity: 0;
    transform: scale(0.2);
  }
}

.scroll-progress {
  position: fixed;
  top: 28px;
  left: 0;
  height: 3px;
  width: 0;
  background: linear-gradient(90deg, var(--color-primary), var(--color-accent));
  z-index: 10002;
  transition: width 0.1s ease;
}

/* Loader */
.loader-wrapper {
  position: fixed;
  inset: 0;
  background: #000;
  display: flex;
  justify-content: center;
  align-items: center;
  z-index: 10000;
  transition: opacity 0.5s ease;
}

.loader-content {
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 28px;
}

.loader-circle {
  position: relative;
  width: 120px;
  height: 120px;
  display: flex;
  justify-content: center;
  align-items: center;
}

.loader-logo {
  width: 76px;
  border-radius: 50%;
  z-index: 2;
  animation: logoFloat 2s ease-in-out infinite;
}

.loader-orbit {
  position: absolute;
  inset: 0;
  border: 2px solid rgba(247, 147, 26, 0.35);
  border-radius: 50%;
  animation: orbit 2s linear infinite;
}

.orbit-dot {
  position: absolute;
  top: -4px;
  left: 50%;
  width: 8px;
  height: 8px;
  background: var(--color-primary);
  border-radius: 50%;
  box-shadow: 0 0 12px var(--color-primary);
}

.loader-text {
  display: flex;
  gap: 4px;
  font-size: 2rem;
  font-weight: bold;
  color: var(--color-white);
}

.loader-text span {
  animation: textPop 0.45s ease-out forwards;
  opacity: 0;
  transform: translateY(16px);
}

.loader-text span:nth-child(1) { animation-delay: 0.1s; color: var(--color-primary); }
.loader-text span:nth-child(2) { animation-delay: 0.15s; }
.loader-text span:nth-child(3) { animation-delay: 0.2s; }
.loader-text span:nth-child(4) { animation-delay: 0.25s; }
.loader-text span:nth-child(5) { animation-delay: 0.3s; }
.loader-text span:nth-child(6) { animation-delay: 0.35s; }
.loader-text span:nth-child(7) { animation-delay: 0.4s; }
.loader-text span:nth-child(8) { animation-delay: 0.45s; }
.loader-text span:nth-child(9) { animation-delay: 0.5s; }
.loader-text span:nth-child(10) { animation-delay: 0.55s; }

.loader-subtitle {
  color: var(--color-white-dark);
  font-size: 0.95rem;
  animation: subtitlePulse 2s ease-in-out infinite;
}

.loader-wrapper.fade-out {
  opacity: 0;
  pointer-events: none;
}

body.loading {
  overflow: hidden;
}

@keyframes logoFloat {
  50% {
    transform: translateY(-10px);
  }
}

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

@keyframes textPop {
  to {
    opacity: 1;
    transform: translateY(0);
  }
}

@keyframes subtitlePulse {
  50% {
    opacity: 0.45;
  }
}

/* Responsive */
@media (max-width: 1200px) {
  .hero-container {
    flex-direction: column;
    gap: 48px;
    padding-top: 40px;
  }

  .hero-ca-container {
    flex: none;
    width: 100%;
    max-width: 480px;
  }

  .circular-text span {
    transform-origin: 0 200px;
    font-size: 1.1em;
  }
}

@media (max-width: 768px) {
  header {
    top: 28px;
  }

  .full-header {
    flex-direction: column;
    gap: 12px;
    padding: 12px 16px;
  }

  .full-header .logo-container {
    padding-right: 0;
  }

  .links-container {
    justify-content: center;
  }

  .hero {
    padding-top: 160px;
  }

  .image-with-text-container {
    height: 360px;
  }

  .ye-img {
    max-width: 180px;
  }

  .circular-text span {
    transform-origin: 0 150px;
    font-size: 0.95em;
  }

  .ca-input-wrapper {
    flex-direction: column;
  }

  .intro-card {
    padding: 28px 20px;
  }

  .intro-text h2 {
    font-size: 1.8em;
  }

  .chart-embed-wrap iframe {
    height: 400px;
  }

  .joinus-banner-wrap {
    max-height: 200px;
  }
}

@media (max-width: 480px) {
  .loader-text {
    font-size: 1.4rem;
    flex-wrap: wrap;
    justify-content: center;
    max-width: 280px;
  }

  .section-title {
    font-size: 2rem;
  }
}
