/* ============================================================
   Alliance AI — Main Stylesheet
   ============================================================ */

/* ----- Custom Properties ----- */
:root {
  --blue: #00C3FF;
  --blue-dark: #0066CC;
  --blue-glow: rgba(0, 195, 255, 0.35);
  --bg: #020B1A;
  --bg-surface: #051429;
  --bg-card: #071A34;
  --border: rgba(0, 195, 255, 0.12);
}

/* ----- Reset / Base ----- */
*,
*::before,
*::after {
  box-sizing: border-box;
}

html {
  scroll-behavior: smooth;
}

body {
  background-color: var(--bg);
  color: #fff;
  -webkit-font-smoothing: antialiased;
}

/* ----- Custom Scrollbar ----- */
::-webkit-scrollbar {
  width: 5px;
}

::-webkit-scrollbar-track {
  background: var(--bg);
}

::-webkit-scrollbar-thumb {
  background: var(--blue-dark);
  border-radius: 3px;
}

::-webkit-scrollbar-thumb:hover {
  background: var(--blue);
}

/* ----- Text Gradient ----- */
.text-gradient {
  background: linear-gradient(135deg, #00C3FF 0%, #0066FF 100%);
  -webkit-background-clip: text;
  -webkit-text-fill-color: transparent;
  background-clip: text;
}

/* ============================================================
   NAVBAR
   ============================================================ */
#navbar {
  background: transparent;
}

#navbar.scrolled {
  background: rgba(2, 11, 26, 0.92);
  backdrop-filter: blur(14px);
  -webkit-backdrop-filter: blur(14px);
  border-bottom: 1px solid rgba(0, 195, 255, 0.08);
}

.mobile-menu-panel {
  background: rgba(2, 11, 26, 0.97);
  backdrop-filter: blur(14px);
  -webkit-backdrop-filter: blur(14px);
  border-bottom: 1px solid rgba(0, 195, 255, 0.08);
}

/* Hamburger animation */
.menu-bar {
  transition: transform 0.28s ease, opacity 0.28s ease;
  transform-origin: center;
}

#mobile-menu-btn.open .menu-bar:nth-child(1) {
  transform: translateY(8px) rotate(45deg);
}

#mobile-menu-btn.open .menu-bar:nth-child(2) {
  opacity: 0;
  transform: scaleX(0);
}

#mobile-menu-btn.open .menu-bar:nth-child(3) {
  transform: translateY(-8px) rotate(-45deg);
}

/* Nav overlay */
#nav-overlay {
  position: fixed;
  inset: 0;
  z-index: 40;
  background: rgba(2, 11, 26, 0.6);
  backdrop-filter: blur(5px);
  -webkit-backdrop-filter: blur(5px);
  opacity: 0;
  pointer-events: none;
  transition: opacity 0.3s ease;
}

#nav-overlay.active {
  opacity: 1;
  pointer-events: auto;
}

/* ============================================================
   BUTTONS
   ============================================================ */
.btn-primary {
  background: linear-gradient(135deg, #00C3FF 0%, #0055BB 100%);
  color: #fff;
  box-shadow: 0 0 22px rgba(0, 195, 255, 0.28);
  transition: transform 0.25s ease, box-shadow 0.25s ease;
}

.btn-primary:hover {
  transform: translateY(-2px);
  box-shadow: 0 0 40px rgba(0, 195, 255, 0.5);
}

.btn-primary:active {
  transform: translateY(0);
}

.btn-secondary {
  background: rgba(0, 195, 255, 0.07);
  color: var(--blue);
  border: 1px solid rgba(0, 195, 255, 0.28);
  transition: background 0.25s ease, border-color 0.25s ease, transform 0.25s ease, box-shadow 0.25s ease;
}

.btn-secondary:hover {
  background: rgba(0, 195, 255, 0.14);
  border-color: rgba(0, 195, 255, 0.55);
  box-shadow: 0 0 22px rgba(0, 195, 255, 0.15);
  transform: translateY(-2px);
}

.btn-secondary:active {
  transform: translateY(0);
}

/* ============================================================
   HERO
   ============================================================ */
.hero-bg {
  background:
    radial-gradient(ellipse 80% 50% at 50% -5%, rgba(0, 102, 204, 0.32) 0%, transparent 70%),
    radial-gradient(ellipse 50% 40% at 90% 90%, rgba(0, 195, 255, 0.07) 0%, transparent 60%),
    var(--bg);
}

/* Glow orbs */
.glow-orb {
  border-radius: 50%;
  filter: blur(90px);
  pointer-events: none;
  will-change: transform;
}

.glow-orb-1 {
  width: 580px;
  height: 580px;
  background: radial-gradient(circle, rgba(0, 90, 200, 0.22) 0%, transparent 70%);
  top: -180px;
  left: -100px;
  animation: orb-float 9s ease-in-out infinite;
}

.glow-orb-2 {
  width: 380px;
  height: 380px;
  background: radial-gradient(circle, rgba(0, 195, 255, 0.12) 0%, transparent 70%);
  bottom: 0;
  right: -80px;
  animation: orb-float 12s ease-in-out infinite reverse;
}

@keyframes orb-float {

  0%,
  100% {
    transform: translateY(0);
  }

  50% {
    transform: translateY(-28px);
  }
}

/* Logo */
.hero-logo {
  filter: drop-shadow(0 0 18px rgba(0, 195, 255, 0.5));
  animation: logo-glow 3.5s ease-in-out infinite;
}

@keyframes logo-glow {

  0%,
  100% {
    filter: drop-shadow(0 0 14px rgba(0, 195, 255, 0.45));
  }

  50% {
    filter: drop-shadow(0 0 34px rgba(0, 195, 255, 0.8));
  }
}

/* Hero heading — fluid scale, never overflows */
.hero-heading {
  font-size: clamp(2rem, 11vw, 5rem);
  word-break: break-word;
  overflow-wrap: break-word;
}

@media (min-width: 1024px) {
  .hero-heading {
    font-size: 4.5rem;
  }
}

@media (min-width: 1280px) {
  .hero-heading {
    font-size: 5.5rem;
  }
}

/* Solana badge */
.solana-badge {
  background: rgba(20, 241, 149, 0.07);
  border: 1px solid rgba(20, 241, 149, 0.22);
  color: #14f195;
  letter-spacing: 0.06em;
}

/* Contract box */
.contract-box {
  background: rgba(0, 195, 255, 0.04);
  border: 1px solid rgba(0, 195, 255, 0.18);
}

.copy-btn {
  background: rgba(0, 195, 255, 0.1);
  color: var(--blue);
  border: 1px solid rgba(0, 195, 255, 0.25);
  transition: background 0.2s ease, border-color 0.2s ease, color 0.2s ease;
  cursor: pointer;
}

.copy-btn:hover {
  background: rgba(0, 195, 255, 0.2);
  border-color: rgba(0, 195, 255, 0.45);
}

.copy-btn.copied {
  background: rgba(20, 241, 149, 0.12);
  color: #14f195;
  border-color: rgba(20, 241, 149, 0.3);
}

/* Canvas */
#particles-canvas {
  pointer-events: none;
  opacity: 0.75;
}

/* Scroll cue */
.scroll-cue {
  text-decoration: none;
}

/* ============================================================
   SHARED SECTION UTILITIES
   ============================================================ */
.section-padding {
  padding: 5rem 0;
}

@media (min-width: 1024px) {
  .section-padding {
    padding: 7rem 0;
  }
}

.section-label {
  display: inline-block;
  font-size: 0.7rem;
  font-weight: 600;
  letter-spacing: 0.14em;
  text-transform: uppercase;
  color: var(--blue);
  background: rgba(0, 195, 255, 0.07);
  border: 1px solid rgba(0, 195, 255, 0.18);
  padding: 0.3rem 0.9rem;
  border-radius: 999px;
}

.section-title {
  font-family: 'Orbitron', monospace;
  font-weight: 800;
  line-height: 1.15;
  font-size: 1.875rem;
}

@media (min-width: 768px) {
  .section-title {
    font-size: 2.25rem;
  }
}

@media (min-width: 1024px) {
  .section-title {
    font-size: 2.75rem;
  }
}

.section-hr {
  height: 1px;
  background: linear-gradient(90deg, transparent, rgba(0, 195, 255, 0.25), transparent);
}

/* ============================================================
   ABOUT
   ============================================================ */
.stat-card {
  background: rgba(0, 195, 255, 0.04);
  border: 1px solid rgba(0, 195, 255, 0.12);
}

.about-img-wrap {
  max-width: 520px;
  width: 100%;
}

.img-glow-border {
  border: 1px solid rgba(0, 195, 255, 0.18);
  border-radius: 1rem;
  box-shadow: 0 0 40px rgba(0, 195, 255, 0.06);
}

/* ============================================================
   FEATURES
   ============================================================ */
.feature-card {
  background: rgba(5, 20, 41, 0.75);
  border: 1px solid var(--border);
  transition: transform 0.3s ease, border-color 0.3s ease, box-shadow 0.3s ease;
  position: relative;
  overflow: hidden;
}

.feature-card::after {
  content: '';
  position: absolute;
  inset: 0;
  top: auto;
  height: 1px;
  background: linear-gradient(90deg, transparent, rgba(0, 195, 255, 0.45), transparent);
  opacity: 0;
  transition: opacity 0.3s ease;
}

.feature-card:hover {
  transform: translateY(-5px);
  border-color: rgba(0, 195, 255, 0.28);
  box-shadow: 0 18px 45px rgba(0, 0, 0, 0.35), 0 0 22px rgba(0, 195, 255, 0.07);
}

.feature-card:hover::after {
  opacity: 1;
}

.feature-icon {
  width: 44px;
  height: 44px;
  background: rgba(0, 195, 255, 0.08);
  border: 1px solid rgba(0, 195, 255, 0.18);
  border-radius: 10px;
  display: flex;
  align-items: center;
  justify-content: center;
  color: var(--blue);
  flex-shrink: 0;
}

.feature-title {
  font-family: 'Orbitron', monospace;
  font-size: 0.9rem;
  font-weight: 700;
  color: #fff;
  line-height: 1.3;
}

/* ============================================================
   HOW TO BUY
   ============================================================ */
.htb-bg {
  background: radial-gradient(ellipse 60% 50% at 50% 5%, rgba(0, 80, 180, 0.08) 0%, transparent 70%);
}

.htb-grid {
  position: relative;
}

.htb-connector {
  position: absolute;
  top: 27px;
  /* half of step circle */
  left: calc(16.67% + 28px);
  right: calc(16.67% + 28px);
  height: 1px;
  background: linear-gradient(90deg, transparent 0%, rgba(0, 195, 255, 0.3) 15%, rgba(0, 195, 255, 0.3) 85%, transparent 100%);
  z-index: 0;
}

.htb-card {
  background: rgba(5, 20, 41, 0.75);
  border: 1px solid rgba(0, 195, 255, 0.1);
  transition: transform 0.3s ease, border-color 0.3s ease, box-shadow 0.3s ease;
}

.htb-card:hover {
  transform: translateY(-4px);
  border-color: rgba(0, 195, 255, 0.25);
  box-shadow: 0 16px 40px rgba(0, 0, 0, 0.3), 0 0 20px rgba(0, 195, 255, 0.06);
}

.htb-step-wrap {
  position: relative;
  z-index: 1;
}

.htb-step {
  width: 54px;
  height: 54px;
  background: rgba(5, 20, 50, 0.9);
  border: 1px solid rgba(0, 195, 255, 0.22);
  border-radius: 50%;
  display: flex;
  align-items: center;
  justify-content: center;
  position: relative;
  transition: border-color 0.3s ease, box-shadow 0.3s ease;
}

.htb-step::before {
  content: '';
  position: absolute;
  inset: -5px;
  border-radius: 50%;
  border: 1px solid rgba(0, 195, 255, 0.07);
  pointer-events: none;
}

.htb-card:hover .htb-step {
  border-color: rgba(0, 195, 255, 0.45);
  box-shadow: 0 0 18px rgba(0, 195, 255, 0.15);
}

.htb-step-active {
  border-color: rgba(0, 195, 255, 0.45);
  background: rgba(0, 70, 160, 0.25);
  box-shadow: 0 0 20px rgba(0, 195, 255, 0.18);
}

.htb-step-num {
  font-family: 'Orbitron', monospace;
  font-size: 0.8rem;
  font-weight: 700;
  color: var(--blue);
  letter-spacing: 0.04em;
}

.htb-icon {
  width: 58px;
  height: 58px;
  background: rgba(0, 195, 255, 0.05);
  border: 1px solid rgba(0, 195, 255, 0.1);
  border-radius: 14px;
  display: flex;
  align-items: center;
  justify-content: center;
  color: var(--blue);
  transition: background 0.3s ease, border-color 0.3s ease;
}

.htb-card:hover .htb-icon {
  background: rgba(0, 195, 255, 0.1);
  border-color: rgba(0, 195, 255, 0.22);
}

.htb-icon-active {
  background: rgba(0, 195, 255, 0.09);
  border-color: rgba(0, 195, 255, 0.2);
  box-shadow: 0 0 14px rgba(0, 195, 255, 0.1);
}

.htb-title {
  font-family: 'Orbitron', monospace;
  font-size: 0.9rem;
  font-weight: 700;
  color: #fff;
  line-height: 1.3;
}

/* ============================================================
   MISSION
   ============================================================ */
.mission-bg {
  background: radial-gradient(ellipse 70% 60% at 50% 50%, rgba(0, 80, 180, 0.09) 0%, transparent 70%);
}

.mission-card {
  background: rgba(5, 20, 41, 0.8);
  border: 1px solid rgba(0, 195, 255, 0.14);
  backdrop-filter: blur(10px);
  -webkit-backdrop-filter: blur(10px);
}

/* ============================================================
   COMMUNITY
   ============================================================ */
.social-card {
  background: rgba(5, 20, 41, 0.75);
  border: 1px solid var(--border);
  text-decoration: none;
  display: block;
  transition: transform 0.3s ease, background 0.3s ease, border-color 0.3s ease, box-shadow 0.3s ease;
}

.social-card:hover {
  background: rgba(0, 195, 255, 0.06);
  border-color: rgba(0, 195, 255, 0.3);
  transform: translateY(-5px);
  box-shadow: 0 14px 35px rgba(0, 0, 0, 0.3), 0 0 18px rgba(0, 195, 255, 0.08);
}

.social-icon {
  width: 52px;
  height: 52px;
  background: rgba(0, 195, 255, 0.08);
  border: 1px solid rgba(0, 195, 255, 0.18);
  border-radius: 12px;
  display: flex;
  align-items: center;
  justify-content: center;
  color: var(--blue);
  transition: background 0.3s ease, box-shadow 0.3s ease;
}

.social-card:hover .social-icon {
  background: rgba(0, 195, 255, 0.16);
  box-shadow: 0 0 18px rgba(0, 195, 255, 0.25);
}

/* ============================================================
   FOOTER
   ============================================================ */
.footer-surface {
  background: #010912;
}

.footer-icon {
  background: rgba(0, 195, 255, 0.04);
  border: 1px solid rgba(0, 195, 255, 0.1);
  color: #64748b;
  display: flex;
  align-items: center;
  justify-content: center;
  transition: background 0.25s ease, border-color 0.25s ease, color 0.25s ease;
}

.footer-icon:hover {
  background: rgba(0, 195, 255, 0.1);
  border-color: rgba(0, 195, 255, 0.3);
  color: var(--blue);
}

/* ============================================================
   TOAST
   ============================================================ */
.toast {
  background: rgba(20, 241, 149, 0.12);
  border: 1px solid rgba(20, 241, 149, 0.28);
  color: #14f195;
  backdrop-filter: blur(10px);
}

.toast.show {
  display: block !important;
  animation: toast-slide 0.3s ease forwards;
}

@keyframes toast-slide {
  from {
    opacity: 0;
    transform: translateY(8px);
  }

  to {
    opacity: 1;
    transform: translateY(0);
  }
}

/* ============================================================
   SCROLL REVEAL
   ============================================================ */
.reveal {
  opacity: 0;
  transform: translateY(28px);
  transition: opacity 0.65s ease, transform 0.65s ease;
}

.reveal.visible {
  opacity: 1;
  transform: translateY(0);
}

.reveal-delay-1 {
  transition-delay: 0.12s;
}

.reveal-delay-2 {
  transition-delay: 0.24s;
}