@import url("https://fonts.googleapis.com/css2?family=Inter:ital,opsz,wght@0,14..32,100..900;1,14..32,100..900&family=Montserrat:ital,wght@0,100..900;1,100..900&display=swap");

:root {
  --bg-dark: #0a0a0a;
  --bg-card: rgba(15, 15, 15, 0.8);
  --text-primary: #ffffff;
  --text-secondary: #8b8b8b;
  --accent-up: #10b981;
  --accent-down: #ef4444;
  --accent-muted: #6b7280;
  --border-subtle: rgba(255, 255, 255, 0.06);
  --border-strong: rgba(255, 255, 255, 0.12);
  --candle-color: #33ff77; /* Default green */
}

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

html {
  scroll-behavior: smooth;
}

body {
  background-color: var(--bg-dark);
  color: var(--text-primary);
  font-family: "Inter";
  font-size: 16px;
  line-height: 1.5;
  min-height: 100vh;
  display: flex;
  flex-direction: column;
}

/* Canvas background */
#bg-canvas {
  position: fixed;
  top: 0;
  left: 0;
  width: 100%;
  height: 100%;
  z-index: 0;
  display: block;
}

/* Main container */
.page-wrapper {
  position: relative;
  z-index: 10;
  flex: 1;
  display: flex;
  flex-direction: column;
  align-items: center;
  padding: 2rem 1rem;
  gap: 3rem;
  max-width: 100%;
}

/* Header / Profile */
.header {
  text-align: center;
  margin-top: 1rem;
  animation: fadeInDown 0.6s ease-out;
}

.header h1 {
  font-size: clamp(1.8rem, 5vw, 2.5rem);
  font-weight: 700;
  letter-spacing: -0.02em;
  margin-bottom: 0.5rem;
  background: linear-gradient(135deg, #9a58d8 0%, #a855f7 100%);
  -webkit-background-clip: text;
  -webkit-text-fill-color: transparent;
  background-clip: text;
}

.header p {
  color: var(--text-secondary);
  font-size: 0.95rem;
  letter-spacing: 0.02em;
  text-transform: uppercase;
  font-weight: 500;
}

.header .status {
  display: inline-flex;
  align-items: center;
  gap: 0.5rem;
  margin-top: 1rem;
  padding: 0.5rem 1rem;
  border-radius: 99px;
  font-size: 0.85rem;
  color: var(--accent-up);
}

@keyframes pulse {
  0%,
  100% {
    opacity: 1;
  }
  50% {
    opacity: 0.4;
  }
}

/* Content sections */
.section {
  width: 100%;
  max-width: 680px;
  display: flex;
  flex-direction: column;
  gap: 1rem;
}

.section-label {
  font-size: 0.75rem;
  font-weight: 700;
  text-transform: uppercase;
  letter-spacing: 0.15em;
  color: var(--text-secondary);
  opacity: 0.7;
  margin-bottom: 0.5rem;
}

/* Cards & Buttons */
.card,
.btn {
  padding: 1.25rem;
  background: var(--bg-card);
  border: 1px solid var(--border-subtle);
  border-radius: 12px;
  text-decoration: none;
  color: var(--text-primary);
  transition: all 0.25s cubic-bezier(0.16, 1, 0.3, 1);
  cursor: pointer;
  position: relative;
  overflow: hidden;
  font-size: 1rem;
}

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

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

.card:hover,
.btn:hover {
  background: rgba(15, 15, 15, 1);
  border-color: var(--border-strong);
  transform: translateY(-2px);
}

.card {
  text-align: center;
  display: flex;
  flex-direction: column;
  gap: 0.5rem;
}

.card h2 {
  font-size: 1.1rem;
  font-weight: 700;
  letter-spacing: -0.01em;
}

.card p {
  color: var(--text-secondary);
  font-size: 0.9rem;
}

.card .emoji {
  font-size: 2rem;
}

/* Two-column grid for tier-1 */
.grid-2 {
  display: grid;
  grid-template-columns: 1fr;
  gap: 1rem;
}

@media (min-width: 640px) {
  .grid-2 {
    grid-template-columns: 1fr 1fr;
  }
}

/* Button variants */
.btn {
  text-align: center;
  font-weight: 600;
  border: 1px solid var(--border-subtle);
}

.btn.primary {
  background: linear-gradient(135deg, #a855f7, rgba(168, 85, 247, 0.7));
  border-color: #a855f7;
  color: #fff;
  font-weight: 700;
}

.btn.primary:hover {
  background: linear-gradient(135deg, #a855f7, #a855f7);
  border-color: #a855f7;
  box-shadow: 0 0 20px rgba(168, 85, 247, 0.3);
}

/* NEWS TICKER STYLES */
.news-ticker-section {
  width: 100%;
  max-width: 680px;
  animation: staggerIn 0.6s ease-out forwards;
  animation-delay: 0.4s;
}

.news-ticker {
  background: rgba(15, 15, 15, 0.6);
  border: 1px solid var(--candle-color);
  border-radius: 12px;
  padding: 0.75rem 0;
  overflow: hidden;
  position: relative;
}

.ticker-label {
  font-size: 0.7rem;
  font-weight: 700;
  text-transform: uppercase;
  letter-spacing: 0.15em;
  padding: 0.5rem 1rem 0.25rem;
  opacity: 0.8;
}

.ticker-content {
  display: flex;
  padding: 0.75rem 0;
  gap: 3rem;
  /* No animation here - JS handles it */
}

.news-item {
  white-space: nowrap;
  padding: 0 1rem;
  color: #ffffff;
  font-size: 0.9rem;
  font-weight: 600;
  opacity: 0.85;
  flex-shrink: 0;
  transition:
    opacity 0.3s ease,
    color 0.2s ease;
  text-decoration: none;
  display: inline-block;
}

.news-item:hover {
  opacity: 1;
  cursor: pointer;
  color: #ffffff;
  text-decoration: underline;
}

.news-ticker:hover .ticker-content {
  animation-play-state: paused;
}

/* Social icons */
.socials {
  display: flex;
  justify-content: center;
  gap: 1rem;
  padding: 2rem 1rem;
  border-top: 1px solid var(--border-subtle);
}

.icon-btn {
  width: 48px;
  height: 48px;
  display: flex;
  align-items: center;
  justify-content: center;
  border-radius: 50%;
  border: 1px solid var(--border-subtle);
  background: var(--bg-card);
  color: var(--text-secondary);
  text-decoration: none;
  transition: all 0.25s ease;
}

.icon-btn:hover {
  background: var(--text-secondary);
  color: var(--bg-dark);
  border-color: var(--text-secondary);
  transform: scale(1.1);
}

.icon-btn svg {
  width: 20px;
  height: 20px;
}

/* BTC badge 

.btc-badge {
  position:absolute;
  top: 1rem;
  background: rgba(15, 15, 15, 0.8);
  border: 1px solid var(--candle-color);
  padding: 0.5rem 1rem;
  border-radius: 8px;
  font-size: 0.85rem;
  z-index: 20;
  cursor: pointer;
  transition: all 0.3s ease;
}

.btc-change {
  font-weight: 700;
  color: var(--candle-color);
}

.btc-time {
  display: none;
  font-size: 0.75rem;
  opacity: 0.6;
  margin-top: 0.25rem;
  white-space: nowrap;
}

.btc-badge:hover .btc-time {
  display: block;
}

.btc-badge:hover {
  background: rgba(15, 15, 15, 1);
  border-color: var(--candle-color);
}*/

/* Footer */
footer {
  width: 100%;
  padding: 2rem 1rem;
  text-align: center;
  font-size: 0.85rem;
  color: var(--text-secondary);
  border-top: 1px solid var(--border-subtle);
  flex-shrink: 0;
  position: relative;
  z-index: 10;
}

footer img {
  max-width: 45px;
  height: auto;
  margin-top: 1rem;
  opacity: 0.6;
  transition: opacity 0.3s ease;
}

footer img:hover {
  opacity: 1;
}

footer a {
  color: var(--accent-up);
  text-decoration: none;
}

footer a:hover {
  text-decoration: underline;
}

/* Animations */
@keyframes fadeInDown {
  from {
    opacity: 0;
    transform: translateY(-20px);
  }
  to {
    opacity: 1;
    transform: translateY(0);
  }
}

@keyframes staggerIn {
  from {
    opacity: 0;
    transform: translateY(20px);
  }
  to {
    opacity: 1;
    transform: translateY(0);
  }
}

.section {
  animation: staggerIn 0.6s ease-out forwards;
}

.section:nth-child(2) {
  animation-delay: 0.15s;
}
.section:nth-child(3) {
  animation-delay: 0.25s;
}
.section:nth-child(4) {
  animation-delay: 0.35s;
}

/* Responsive */
@media (max-width: 640px) {
  .page-wrapper {
    padding: 1.5rem 1rem;
    gap: 2rem;
  }

  .news-item {
    font-size: 0.85rem;
    padding: 0 0.75rem;
  }

  .ticker-label {
    padding: 0.4rem 0.75rem 0.15rem;
  }
}
