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

body {
  background-color: #0d0d0d;
}

::selection {
  background: #ff8a1e;
  color: #1a1005;
}

.bg-noise {
  background-image: radial-gradient(circle at 20% 20%, rgba(255, 138, 30, 0.08), transparent 40%),
    radial-gradient(circle at 85% 10%, rgba(255, 197, 77, 0.07), transparent 45%),
    radial-gradient(circle at 50% 90%, rgba(244, 101, 15, 0.08), transparent 50%);
}

.grain-overlay {
  position: fixed;
  inset: 0;
  z-index: 40;
  pointer-events: none;
  opacity: 0.035;
  mix-blend-mode: overlay;
  background-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' width='120' height='120'%3E%3Cfilter id='n'%3E%3CfeTurbulence type='fractalNoise' baseFrequency='0.9' numOctaves='2' stitchTiles='stitch'/%3E%3C/filter%3E%3Crect width='100%25' height='100%25' filter='url(%23n)'/%3E%3C/svg%3E");
}

/* ===== Typography helpers ===== */
.eyebrow {
  @apply text-amber-400 text-xs md:text-sm font-bold uppercase tracking-[0.2em] mb-3;
}

.section-title {
  @apply font-display font-800 text-3xl md:text-5xl text-amber-50 mb-4;
}

/* ===== Navbar ===== */
#navInner {
  background: transparent;
}

#navInner.scrolled {
  background: rgba(15, 12, 10, 0.72);
  backdrop-filter: blur(18px) saturate(140%);
  -webkit-backdrop-filter: blur(18px) saturate(140%);
  border: 1px solid rgba(255, 158, 30, 0.14);
  box-shadow: 0 10px 40px -18px rgba(0, 0, 0, 0.6);
}

.nav-link {
  @apply relative px-3.5 py-2 rounded-full transition-colors duration-200 hover:text-amber-300;
}

.nav-link.active {
  @apply text-amber-300;
}

.nav-link::after {
  content: "";
  position: absolute;
  left: 14px;
  right: 14px;
  bottom: 4px;
  height: 2px;
  border-radius: 2px;
  background: linear-gradient(90deg, #ffc04d, #ff8a1e);
  transform: scaleX(0);
  transform-origin: left;
  transition: transform 0.25s ease;
}

.nav-link:hover::after,
.nav-link.active::after {
  transform: scaleX(1);
}

.mobile-link {
  @apply block py-1.5 transition-colors hover:text-amber-300;
}

/* ===== Glass surfaces ===== */
.glass-panel {
  background: linear-gradient(160deg, rgba(255, 197, 77, 0.06), rgba(21, 18, 16, 0.55));
  border: 1px solid rgba(255, 158, 30, 0.14);
  backdrop-filter: blur(16px) saturate(130%);
  -webkit-backdrop-filter: blur(16px) saturate(130%);
}

.glass-badge {
  background: rgba(255, 158, 30, 0.08);
  border: 1px solid rgba(255, 158, 30, 0.28);
  backdrop-filter: blur(10px);
}

/* ===== Buttons ===== */
.btn-primary {
  @apply inline-flex items-center justify-center gap-2 rounded-full font-display font-700 text-ink px-7 py-3.5 transition-all duration-300;
  background: linear-gradient(135deg, #ffd98a, #ff8a1e 55%, #f4650f);
  box-shadow: 0 8px 30px -8px rgba(255, 138, 30, 0.55);
}

.btn-primary:hover:not(:disabled) {
  transform: translateY(-2px);
  box-shadow: 0 14px 40px -8px rgba(255, 138, 30, 0.75);
}

.btn-primary:active:not(:disabled) {
  transform: translateY(0);
}

.btn-secondary {
  @apply inline-flex items-center justify-center gap-2 rounded-full font-display font-700 text-amber-200 px-7 py-3.5 transition-all duration-300;
  background: rgba(255, 158, 30, 0.08);
  border: 1px solid rgba(255, 158, 30, 0.3);
}

.btn-secondary:hover {
  background: rgba(255, 158, 30, 0.16);
  border-color: rgba(255, 197, 77, 0.5);
  transform: translateY(-2px);
}

.btn-icon {
  @apply flex items-center justify-center w-11 h-11 rounded-full text-amber-300 transition-all duration-300;
  background: rgba(255, 158, 30, 0.08);
  border: 1px solid rgba(255, 158, 30, 0.24);
}

.btn-icon:hover {
  background: rgba(255, 158, 30, 0.2);
  color: #ffd98a;
  transform: translateY(-2px) scale(1.05);
  box-shadow: 0 8px 24px -8px rgba(255, 138, 30, 0.6);
}

/* ===== Hero glows ===== */
.hero-glow-a {
  position: absolute;
  top: -10%;
  left: -10%;
  width: 50vw;
  height: 50vw;
  max-width: 640px;
  max-height: 640px;
  background: radial-gradient(circle, rgba(255, 138, 30, 0.28), transparent 65%);
  filter: blur(20px);
  pointer-events: none;
}

.hero-glow-b {
  position: absolute;
  bottom: -15%;
  right: -10%;
  width: 45vw;
  height: 45vw;
  max-width: 560px;
  max-height: 560px;
  background: radial-gradient(circle, rgba(255, 197, 77, 0.22), transparent 65%);
  filter: blur(20px);
  pointer-events: none;
}

.mascot-glow,
.mascot-glow-sm {
  position: absolute;
  inset: 10%;
  border-radius: 50%;
  background: radial-gradient(circle, rgba(255, 158, 30, 0.45), transparent 70%);
  filter: blur(40px);
  z-index: 0;
}

.float-anim {
  animation: float 5.5s ease-in-out infinite;
}

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

.animate-pulse-dot {
  animation: pulseDot 1.6s ease-in-out infinite;
}

@keyframes pulseDot {
  0%, 100% { opacity: 1; box-shadow: 0 0 0 0 rgba(255, 158, 30, 0.5); }
  50% { opacity: 0.6; box-shadow: 0 0 0 6px rgba(255, 158, 30, 0); }
}

/* ===== Status cards (contract section) ===== */
.status-card {
  @apply glass-panel rounded-2xl px-4 py-4 flex flex-col items-center justify-center gap-2 text-sm font-semibold text-stone-200 text-center;
  transition: transform 0.3s ease, border-color 0.3s ease;
}

.status-card:hover {
  transform: translateY(-4px);
  border-color: rgba(255, 197, 77, 0.4);
}

.status-check {
  @apply flex items-center justify-center w-8 h-8 rounded-full text-ink font-bold;
  background: linear-gradient(135deg, #ffd98a, #ff8a1e);
}

/* ===== Tokenomics rows ===== */
.tokenomics-row {
  @apply glass-panel rounded-xl px-5 py-4 flex items-center gap-4 transition-transform duration-300;
}

.tokenomics-row:hover {
  transform: translateX(6px);
}

.tokenomics-row .dot {
  width: 14px;
  height: 14px;
  border-radius: 50%;
  background: var(--dot);
  box-shadow: 0 0 12px var(--dot);
  flex-shrink: 0;
}

.row-title {
  @apply text-stone-100 font-semibold;
}

.row-sub {
  @apply text-stone-500 text-xs;
}

.row-pct {
  @apply ml-auto font-display font-700 text-amber-300 text-lg;
}

.lock-tag {
  @apply ml-2 text-[10px] uppercase tracking-wider text-amber-400 border border-amber-500/30 rounded-full px-2 py-0.5;
}

/* ===== Presale stats ===== */
.presale-stat {
  @apply flex flex-col gap-1;
}

.stat-val {
  @apply font-display font-700 text-lg md:text-xl text-amber-100;
}

/* ===== Timeline ===== */
.timeline-line {
  position: absolute;
  left: 50%;
  top: 0;
  bottom: 0;
  width: 2px;
  background: linear-gradient(180deg, transparent, rgba(255, 158, 30, 0.35), transparent);
  transform: translateX(-50%);
}

.timeline-card {
  @apply glass-panel rounded-2xl p-6 flex items-start gap-4 relative;
}

.timeline-num {
  @apply flex items-center justify-center w-11 h-11 rounded-full font-display font-800 text-ink shrink-0;
  background: linear-gradient(135deg, #ffd98a, #ff8a1e);
  box-shadow: 0 0 20px -4px rgba(255, 138, 30, 0.7);
}

/* ===== Feature / Why cards ===== */
.feature-card {
  @apply glass-panel rounded-2xl p-7 transition-all duration-300;
}

.feature-card:hover {
  transform: translateY(-6px);
  border-color: rgba(255, 197, 77, 0.4);
  box-shadow: 0 20px 50px -20px rgba(255, 138, 30, 0.4);
}

.feature-icon {
  @apply flex items-center justify-center w-12 h-12 rounded-xl text-amber-300 mb-5;
  background: rgba(255, 158, 30, 0.12);
  border: 1px solid rgba(255, 158, 30, 0.25);
}

.feature-icon svg {
  width: 22px;
  height: 22px;
}

.feature-title {
  @apply font-display font-700 text-lg text-amber-50 mb-2;
}

.feature-desc {
  @apply text-stone-400 text-sm leading-relaxed;
}

/* ===== Roadmap ===== */
.roadmap-card {
  @apply glass-panel rounded-2xl p-6 transition-all duration-300;
}

.roadmap-card:hover {
  transform: translateY(-6px);
  border-color: rgba(255, 197, 77, 0.4);
}

.roadmap-phase {
  @apply inline-block text-xs font-bold uppercase tracking-widest text-ink rounded-full px-3 py-1 mb-4;
  background: linear-gradient(135deg, #ffd98a, #ff8a1e);
}

.roadmap-list {
  @apply space-y-2 text-sm text-stone-400;
}

.roadmap-list li {
  @apply flex items-center gap-2;
}

.roadmap-list li::before {
  content: "";
  width: 6px;
  height: 6px;
  border-radius: 50%;
  background: #ff8a1e;
  flex-shrink: 0;
}

/* ===== FAQ ===== */
.faq-item {
  @apply glass-panel rounded-2xl overflow-hidden;
}

.faq-question {
  @apply w-full flex items-center justify-between gap-4 px-6 py-5 text-left font-display font-600 text-amber-50 text-base md:text-lg transition-colors;
}

.faq-question:hover {
  color: #ffc04d;
}

.faq-icon {
  @apply flex items-center justify-center w-8 h-8 rounded-full text-amber-300 shrink-0 transition-transform duration-300;
  background: rgba(255, 158, 30, 0.12);
}

.faq-item.open .faq-icon {
  transform: rotate(45deg);
}

.faq-answer {
  max-height: 0;
  overflow: hidden;
  transition: max-height 0.35s ease, padding 0.35s ease;
}

.faq-item.open .faq-answer {
  max-height: 220px;
}

.faq-answer p {
  @apply px-6 pb-6 text-stone-400 text-sm md:text-base leading-relaxed;
}

/* ===== Scroll reveal ===== */
.reveal-up,
.reveal-pop {
  opacity: 0;
  transform: translateY(28px);
  transition: opacity 0.7s cubic-bezier(0.16, 1, 0.3, 1), transform 0.7s cubic-bezier(0.16, 1, 0.3, 1);
}

.reveal-pop {
  transform: translateY(20px) scale(0.94);
}

.reveal-up.in-view,
.reveal-pop.in-view {
  opacity: 1;
  transform: translateY(0) scale(1);
}

.delay-1.in-view { transition-delay: 0.08s; }
.delay-2.in-view { transition-delay: 0.16s; }
.delay-3.in-view { transition-delay: 0.24s; }
.delay-4.in-view { transition-delay: 0.32s; }

/* ===== Misc ===== */
#backToTop.visible {
  opacity: 1;
  pointer-events: auto;
}

@media (prefers-reduced-motion: reduce) {
  .float-anim,
  .animate-pulse-dot {
    animation: none !important;
  }
  .reveal-up,
  .reveal-pop {
    transition: none !important;
    opacity: 1 !important;
    transform: none !important;
  }
}
