/* ========================================
   JDEX — DESIGN SYSTEM & GLOBAL STYLES
   ======================================== */

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

:root {
  --bg-0: #050507;
  --bg-1: #0a0a0f;
  --bg-2: #0f0f17;
  --bg-3: #141420;
  --bg-card: rgba(255,255,255,0.03);
  --bg-card-hover: rgba(0, 229, 255, 0.04);
  --border: rgba(255,255,255,0.07);
  --border-hover: rgba(0, 229, 255, 0.35);

  /* Accent — Electric Cyan & Blue */
  --accent: #00e5ff;
  --accent-2: #00a2ff;
  --accent-glow: rgba(0, 229, 255, 0.4);
  --accent-2-glow: rgba(0, 162, 255, 0.3);
  --accent-3: #00e5ff;

  --text-primary: #f8fafc;
  --text-secondary: #94a3b8;
  --text-muted: #475569;

  --gradient: linear-gradient(135deg, #ffffff 0%, #a1a1aa 100%);
  --gradient-subtle: linear-gradient(135deg, rgba(255,255,255,0.15) 0%, rgba(161,161,170,0.15) 100%);
  --accent-gradient: linear-gradient(135deg, #00e5ff 0%, #00a2ff 100%);

  --radius-sm: 8px;
  --radius-md: 12px;
  --radius-lg: 20px;
  --radius-xl: 28px;

  --font-sans: 'Inter', -apple-system, sans-serif;
  --font-display: 'Space Grotesk', 'Inter', sans-serif;

  --transition: 0.25s cubic-bezier(0.4,0,0.2,1);
  --transition-slow: 0.5s cubic-bezier(0.4,0,0.2,1);
}

html { scroll-behavior: smooth; }

body {
  background: var(--bg-0);
  color: var(--text-primary);
  font-family: var(--font-sans);
  line-height: 1.6;
  overflow-x: hidden;
  -webkit-font-smoothing: antialiased;
}

a { text-decoration: none; color: inherit; }
ul { list-style: none; }
img { max-width: 100%; }

/* ========== SCROLLBAR ========== */
::-webkit-scrollbar { width: 6px; }
::-webkit-scrollbar-track { background: var(--bg-0); }
::-webkit-scrollbar-thumb { background: var(--accent); border-radius: 3px; }

/* ========== CANVAS ========== */
#particleCanvas {
  position: fixed;
  top: 0; left: 0;
  width: 100%; height: 100%;
  pointer-events: none;
  z-index: 0;
  opacity: 0.4;
}

/* ========== CURSOR GLOW ========== */
.cursor-glow {
  position: fixed;
  width: 400px;
  height: 400px;
  border-radius: 50%;
  background: radial-gradient(circle, rgba(255,255,255,0.12) 0%, transparent 70%);
  pointer-events: none;
  z-index: 1;
  transform: translate(-50%, -50%);
  transition: opacity 0.3s;
}

/* ========== CONTAINER ========== */
.container {
  max-width: 1200px;
  margin: 0 auto;
  padding: 0 24px;
  position: relative;
  z-index: 2;
}

/* ========== TYPOGRAPHY ========== */
.gradient-text {
  background: var(--gradient);
  -webkit-background-clip: text;
  -webkit-text-fill-color: transparent;
  background-clip: text;
}

/* ========== BUTTONS ========== */
.btn-primary {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  padding: 14px 28px;
  background: var(--accent-gradient);
  color: #050507;
  border-radius: var(--radius-md);
  font-weight: 600;
  font-size: 15px;
  font-family: var(--font-sans);
  transition: var(--transition);
  position: relative;
  overflow: hidden;
  cursor: pointer;
  border: none;
}
.btn-primary::before {
  content: '';
  position: absolute;
  inset: 0;
  background: rgba(255,255,255,0.1);
  opacity: 0;
  transition: var(--transition);
}
.btn-primary:hover::before { opacity: 1; }
.btn-primary:hover { transform: translateY(-2px); box-shadow: 0 8px 32px var(--accent-glow); }
.btn-primary svg { width: 18px; height: 18px; transition: transform var(--transition); }
.btn-primary:hover svg { transform: translateX(3px); }
.btn-primary.btn-full { width: 100%; justify-content: center; }

.btn-ghost {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  padding: 14px 28px;
  background: transparent;
  color: var(--text-secondary);
  border: 1px solid var(--border);
  border-radius: var(--radius-md);
  font-weight: 500;
  font-size: 15px;
  transition: var(--transition);
}
.btn-ghost:hover {
  color: var(--text-primary);
  border-color: var(--border-hover);
  background: var(--bg-card);
}

.btn-nav {
  display: inline-flex;
  align-items: center;
  padding: 9px 20px;
  background: var(--accent-gradient);
  color: #050507;
  border-radius: var(--radius-sm);
  font-weight: 600;
  font-size: 14px;
  transition: var(--transition);
  white-space: nowrap;
}
.btn-nav:hover { opacity: 0.9; transform: translateY(-1px); }

/* ========== SECTION HEADERS ========== */
.section-header {
  text-align: center;
  max-width: 680px;
  margin: 0 auto 64px;
}

.section-tag {
  display: inline-block;
  padding: 5px 14px;
  background: var(--gradient-subtle);
  border: 1px solid rgba(255,255,255,0.3);
  border-radius: 100px;
  font-size: 12px;
  font-weight: 600;
  letter-spacing: 0.08em;
  text-transform: uppercase;
  color: var(--accent-3);
  margin-bottom: 16px;
}

.section-title {
  font-family: var(--font-display);
  font-size: clamp(2rem, 4vw, 3rem);
  font-weight: 700;
  line-height: 1.2;
  margin-bottom: 16px;
}

.section-desc {
  color: var(--text-secondary);
  font-size: 17px;
  line-height: 1.7;
}

/* ========================================
   NAVBAR
   ======================================== */
.navbar {
  position: fixed;
  top: 0;
  left: 0;
  right: 0;
  z-index: 100;
  padding: 0 24px;
  transition: var(--transition);
}

.navbar.scrolled {
  background: rgba(5,5,7,0.85);
  backdrop-filter: blur(20px);
  -webkit-backdrop-filter: blur(20px);
  border-bottom: 1px solid var(--border);
}

.nav-inner {
  max-width: 1200px;
  margin: 0 auto;
  display: flex;
  align-items: center;
  height: 72px;
  gap: 40px;
}

.nav-logo {
  display: flex;
  align-items: center;
  gap: 10px;
  flex-shrink: 0;
}

.logo-icon {
  width: 36px;
  height: 36px;
  flex-shrink: 0;
}
.logo-icon.logo-icon-large {
  width: 90px;
  height: 90px;
  transform: scale(1.2); /* Make it even larger without affecting layout height too much */
}
.logo-icon svg, .logo-icon img { width: 100%; height: 100%; }

.nav-links {
  display: flex;
  align-items: center;
  gap: 32px;
  margin-left: auto;
}

.nav-links a {
  font-size: 14px;
  font-weight: 500;
  color: var(--text-secondary);
  transition: var(--transition);
  position: relative;
}
.nav-links a::after {
  content: '';
  position: absolute;
  bottom: -4px;
  left: 0;
  right: 0;
  height: 1px;
  background: var(--accent-gradient);
  transform: scaleX(0);
  transition: var(--transition);
}
.nav-links a:hover { color: var(--text-primary); }
.nav-links a:hover::after { transform: scaleX(1); }

.hamburger {
  display: none;
  flex-direction: column;
  gap: 5px;
  background: none;
  border: none;
  cursor: pointer;
  padding: 4px;
  margin-left: auto;
}
.hamburger span {
  display: block;
  width: 22px;
  height: 2px;
  background: var(--text-primary);
  border-radius: 2px;
  transition: var(--transition);
}

/* ========================================
   HERO
   ======================================== */
.hero {
  min-height: 100vh;
  display: flex;
  align-items: center;
  position: relative;
  overflow: hidden;
  padding: 120px 0 80px;
}

.hero-bg-grid {
  position: absolute;
  inset: 0;
  background-image:
    linear-gradient(rgba(255,255,255,0.05) 1px, transparent 1px),
    linear-gradient(90deg, rgba(255,255,255,0.05) 1px, transparent 1px);
  background-size: 80px 80px;
  mask-image: radial-gradient(ellipse at center, black 30%, transparent 80%);
}

.hero-orb {
  position: absolute;
  border-radius: 50%;
  filter: blur(80px);
  pointer-events: none;
}
.hero-orb-1 {
  width: 600px; height: 600px;
  background: radial-gradient(circle, rgba(255,255,255,0.25) 0%, transparent 70%);
  top: -100px; right: -100px;
  animation: float 8s ease-in-out infinite;
}
.hero-orb-2 {
  width: 400px; height: 400px;
  background: radial-gradient(circle, rgba(161,161,170,0.15) 0%, transparent 70%);
  bottom: 0; left: 0;
  animation: float 10s ease-in-out infinite reverse;
}
.hero-orb-3 {
  width: 300px; height: 300px;
  background: radial-gradient(circle, rgba(255,255,255,0.1) 0%, transparent 70%);
  top: 50%; left: 30%;
  animation: float 12s ease-in-out infinite;
}

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

.hero-content {
  position: relative;
  z-index: 2;
  text-align: center;
}

.hero-badge {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  padding: 8px 16px;
  background: rgba(255,255,255,0.1);
  border: 1px solid rgba(255,255,255,0.3);
  border-radius: 100px;
  font-size: 13px;
  font-weight: 500;
  color: var(--accent-3);
  margin-bottom: 28px;
  animation: fadeInUp 0.7s ease both;
}

.badge-dot {
  width: 7px; height: 7px;
  background: #22c55e;
  border-radius: 50%;
  box-shadow: 0 0 8px #22c55e;
  animation: pulse-dot 2s ease-in-out infinite;
}
@keyframes pulse-dot {
  0%, 100% { opacity: 1; box-shadow: 0 0 8px #22c55e; }
  50% { opacity: 0.7; box-shadow: 0 0 16px #22c55e; }
}

.hero-title {
  font-family: var(--font-display);
  font-size: clamp(3rem, 8vw, 6.5rem);
  font-weight: 800;
  line-height: 1.05;
  letter-spacing: -0.03em;
  margin-bottom: 24px;
  animation: fadeInUp 0.7s 0.1s ease both;
}

.hero-subtitle {
  font-size: clamp(16px, 2vw, 19px);
  color: var(--text-secondary);
  max-width: 620px;
  margin: 0 auto 40px;
  line-height: 1.7;
  animation: fadeInUp 0.7s 0.2s ease both;
}

.hero-cta {
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 16px;
  flex-wrap: wrap;
  margin-bottom: 64px;
  animation: fadeInUp 0.7s 0.3s ease both;
}

.hero-stats {
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 40px;
  flex-wrap: wrap;
  animation: fadeInUp 0.7s 0.4s ease both;
  padding: 24px;
  background: var(--bg-card);
  border: 1px solid var(--border);
  border-radius: var(--radius-lg);
  backdrop-filter: blur(10px);
  max-width: 700px;
  margin: 0 auto;
}

.stat { text-align: center; }
.stat-value {
  display: block;
  font-family: var(--font-display);
  font-size: 24px;
  font-weight: 700;
  background: var(--gradient);
  -webkit-background-clip: text;
  -webkit-text-fill-color: transparent;
  background-clip: text;
}
.stat-label { font-size: 12px; color: var(--text-muted); font-weight: 500; margin-top: 2px; }
.stat-divider { width: 1px; height: 40px; background: var(--border); }

.hero-scroll-indicator {
  position: absolute;
  bottom: 30px;
  left: 50%;
  transform: translateX(-50%);
  z-index: 2;
}
.scroll-dot {
  width: 24px; height: 40px;
  border: 2px solid var(--border);
  border-radius: 12px;
  position: relative;
}
.scroll-dot::after {
  content: '';
  position: absolute;
  top: 5px;
  left: 50%;
  transform: translateX(-50%);
  width: 4px; height: 8px;
  background: var(--accent-3);
  border-radius: 2px;
  animation: scroll-bob 2s ease-in-out infinite;
}
@keyframes scroll-bob {
  0% { transform: translateX(-50%) translateY(0); opacity: 1; }
  100% { transform: translateX(-50%) translateY(14px); opacity: 0; }
}

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

/* ========================================
   MARQUEE
   ======================================== */
.marquee-wrapper {
  position: relative;
  z-index: 2;
  overflow: hidden;
  background: var(--bg-1);
  border-top: 1px solid var(--border);
  border-bottom: 1px solid var(--border);
  padding: 16px 0;
}

.marquee-track {
  display: flex;
  gap: 48px;
  width: max-content;
  animation: marquee 30s linear infinite;
}

.marquee-item {
  display: flex;
  align-items: center;
  gap: 10px;
  font-size: 13px;
  font-weight: 600;
  letter-spacing: 0.05em;
  text-transform: uppercase;
  color: var(--text-secondary);
  white-space: nowrap;
}
.m-icon { color: var(--accent-3); font-size: 8px; }

@keyframes marquee {
  from { transform: translateX(0); }
  to { transform: translateX(-50%); }
}

/* ========================================
   FEATURES
   ======================================== */
.features {
  padding: 120px 0;
  position: relative;
  z-index: 2;
}

/* HERO FEATURE CARD */
.features-hero-card {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 60px;
  align-items: center;
  background: var(--bg-card);
  border: 1px solid var(--border);
  border-radius: var(--radius-xl);
  padding: 48px;
  margin-bottom: 48px;
  transition: var(--transition);
  position: relative;
  overflow: hidden;
}
.features-hero-card::before {
  content: '';
  position: absolute;
  top: 0; right: 0;
  width: 300px; height: 300px;
  background: radial-gradient(circle, rgba(255,255,255,0.08) 0%, transparent 70%);
  pointer-events: none;
}
.features-hero-card:hover {
  border-color: var(--border-hover);
}

/* SWAP MOCKUP */
.swap-mockup {
  background: var(--bg-2);
  border: 1px solid var(--border);
  border-radius: var(--radius-lg);
  padding: 20px;
  max-width: 360px;
  margin: 0 auto;
}

.swap-header {
  display: flex;
  justify-content: space-between;
  align-items: center;
  margin-bottom: 16px;
  font-weight: 600;
  font-size: 16px;
}
.swap-settings { color: var(--text-muted); cursor: pointer; }
.swap-settings svg { width: 18px; height: 18px; }

.swap-box {
  background: var(--bg-3);
  border: 1px solid var(--border);
  border-radius: var(--radius-md);
  padding: 16px;
  margin-bottom: 4px;
}
.swap-label { font-size: 11px; color: var(--text-muted); font-weight: 500; margin-bottom: 10px; text-transform: uppercase; letter-spacing: 0.05em; }
.swap-row { display: flex; align-items: center; gap: 12px; margin-bottom: 8px; }
.swap-input { background: none; border: none; color: var(--text-primary); font-size: 24px; font-weight: 700; font-family: var(--font-display); width: 100%; outline: none; }
.swap-amount-loading { flex: 1; }
.swap-amount-val { font-size: 24px; font-weight: 700; font-family: var(--font-display); display: block; }
.swap-amount-badge { display: inline-block; font-size: 10px; padding: 2px 8px; background: rgba(34,197,94,0.15); color: #22c55e; border-radius: 4px; font-weight: 600; margin-top: 4px; }

.token-selector {
  display: flex;
  align-items: center;
  gap: 6px;
  background: var(--bg-card);
  border: 1px solid var(--border);
  border-radius: var(--radius-sm);
  padding: 8px 10px;
  cursor: pointer;
  white-space: nowrap;
  font-size: 13px;
  font-weight: 600;
  transition: var(--transition);
}
.token-selector:hover { border-color: var(--border-hover); }
.token-selector svg { width: 14px; height: 14px; color: var(--text-muted); }

.token-icon {
  width: 22px; height: 22px;
  border-radius: 50%;
}
.token-icon.sol { background: linear-gradient(135deg, #9945ff, #14f195); }
.token-icon.jdex { background: var(--accent-gradient); }

.swap-balance, .swap-rate {
  font-size: 11px;
  color: var(--text-muted);
}

.swap-arrow-btn {
  display: flex;
  align-items: center;
  justify-content: center;
  width: 36px; height: 36px;
  background: var(--bg-3);
  border: 1px solid var(--border);
  border-radius: 50%;
  margin: 6px auto;
  cursor: pointer;
  transition: var(--transition);
  color: var(--text-secondary);
}
.swap-arrow-btn:hover { border-color: var(--accent); color: var(--accent-3); transform: rotate(180deg); }
.swap-arrow-btn svg { width: 16px; height: 16px; }

.swap-info {
  margin: 12px 0;
  display: flex;
  flex-direction: column;
  gap: 6px;
}
.swap-info-row {
  display: flex;
  justify-content: space-between;
  font-size: 12px;
  color: var(--text-muted);
}
.swap-info-row .green { color: #22c55e; }

.swap-btn {
  width: 100%;
  padding: 14px;
  background: var(--accent-gradient);
  color: #050507;
  border: none;
  border-radius: var(--radius-md);
  font-size: 14px;
  font-weight: 600;
  cursor: pointer;
  transition: var(--transition);
  margin-top: 8px;
}
.swap-btn:hover { opacity: 0.9; transform: translateY(-1px); }

/* FEATURE RIGHT */
.fhc-right h3 {
  font-family: var(--font-display);
  font-size: clamp(1.5rem, 3vw, 2.2rem);
  font-weight: 700;
  line-height: 1.2;
  margin-bottom: 16px;
}
.fhc-right p {
  color: var(--text-secondary);
  font-size: 16px;
  line-height: 1.7;
  margin-bottom: 28px;
}

.feature-checklist {
  display: flex;
  flex-direction: column;
  gap: 12px;
}
.feature-checklist li {
  display: flex;
  align-items: center;
  gap: 10px;
  font-size: 15px;
  color: var(--text-secondary);
}
.check {
  display: flex;
  align-items: center;
  justify-content: center;
  width: 22px; height: 22px;
  background: rgba(255,255,255,0.15);
  border: 1px solid rgba(255,255,255,0.3);
  border-radius: 6px;
  font-size: 12px;
  color: var(--accent-3);
  flex-shrink: 0;
}

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

.feature-card {
  background: var(--bg-card);
  border: 1px solid var(--border);
  border-radius: var(--radius-lg);
  padding: 28px;
  transition: var(--transition);
  cursor: default;
  position: relative;
  overflow: hidden;
}
.feature-card::before {
  content: '';
  position: absolute;
  top: 0; left: 0;
  right: 0;
  height: 1px;
  background: var(--accent-gradient);
  opacity: 0;
  transition: var(--transition);
}
.feature-card:hover {
  background: var(--bg-card-hover);
  border-color: var(--border-hover);
  transform: translateY(-4px);
}
.feature-card:hover::before { opacity: 1; }

.feature-icon-wrap {
  width: 48px; height: 48px;
  background: rgba(255,255,255,0.1);
  border: 1px solid rgba(255,255,255,0.2);
  border-radius: var(--radius-sm);
  display: flex;
  align-items: center;
  justify-content: center;
  margin-bottom: 20px;
  color: var(--accent-3);
  transition: var(--transition);
}
.feature-icon-wrap svg { width: 22px; height: 22px; }
.feature-card:hover .feature-icon-wrap {
  background: rgba(255,255,255,0.2);
  border-color: var(--accent);
}

.feature-card h4 {
  font-family: var(--font-display);
  font-size: 17px;
  font-weight: 600;
  margin-bottom: 10px;
}
.feature-card p {
  font-size: 14px;
  color: var(--text-secondary);
  line-height: 1.65;
}

/* ========================================
   WALLETS
   ======================================== */
.wallets-section {
  padding: 80px 0;
  position: relative;
  z-index: 2;
  background: var(--bg-1);
  border-top: 1px solid var(--border);
  border-bottom: 1px solid var(--border);
}

.wallets-inner {
  display: flex;
  align-items: center;
  gap: 80px;
}

.wallets-text { flex: 1; }
.wallets-text h2 {
  font-family: var(--font-display);
  font-size: clamp(1.8rem, 3vw, 2.5rem);
  font-weight: 700;
  margin-bottom: 12px;
}
.wallets-text p { color: var(--text-secondary); font-size: 16px; }

.wallets-grid {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 16px;
  flex: 1;
}

.wallet-card {
  background: var(--bg-card);
  border: 1px solid var(--border);
  border-radius: var(--radius-md);
  padding: 20px;
  display: flex;
  align-items: center;
  gap: 14px;
  transition: var(--transition);
}
.wallet-card:hover {
  border-color: var(--border-hover);
  background: var(--bg-card-hover);
  transform: translateY(-2px);
}
.wallet-card span { font-weight: 600; font-size: 15px; }

.wallet-logo {
  flex-shrink: 0;
  display: flex;
  align-items: center;
  justify-content: center;
  width: 40px; height: 40px;
}
.wallet-logo svg {
  width: 40px; height: 40px;
  border-radius: 10px;
}

/* ========================================
   ECOSYSTEM
   ======================================== */
.ecosystem {
  padding: 120px 0;
  position: relative;
  z-index: 2;
}

.eco-grid {
  display: grid;
  grid-template-columns: 1.4fr 1fr 1fr 1fr;
  gap: 20px;
  align-items: stretch;
}

.eco-card {
  background: var(--bg-card);
  border: 1px solid var(--border);
  border-radius: var(--radius-lg);
  padding: 28px;
  transition: var(--transition);
  position: relative;
  overflow: hidden;
  display: flex;
  flex-direction: column;
}
.eco-card:hover {
  border-color: var(--border-hover);
  background: var(--bg-card-hover);
  transform: translateY(-4px);
}

.eco-card.eco-main {
  background: linear-gradient(135deg, rgba(255,255,255,0.08) 0%, rgba(161,161,170,0.05) 100%);
  border-color: rgba(255,255,255,0.2);
}

.eco-icon {
  width: 52px; height: 52px;
  background: rgba(255,255,255,0.1);
  border: 1px solid rgba(255,255,255,0.2);
  border-radius: var(--radius-sm);
  display: flex;
  align-items: center;
  justify-content: center;
  color: var(--accent-3);
  margin-bottom: 16px;
}
.eco-icon svg { width: 24px; height: 24px; }

.eco-tag-badge {
  display: inline-block;
  padding: 4px 10px;
  background: rgba(34,197,94,0.1);
  border: 1px solid rgba(34,197,94,0.2);
  border-radius: 100px;
  font-size: 11px;
  font-weight: 600;
  color: #22c55e;
  margin-bottom: 12px;
  width: fit-content;
}
.eco-tag-badge.eco-coming {
  background: rgba(255,255,255,0.1);
  border-color: rgba(255,255,255,0.2);
  color: var(--accent-3);
}

.eco-card h3 {
  font-family: var(--font-display);
  font-size: 20px;
  font-weight: 700;
  margin-bottom: 12px;
}
.eco-card p {
  font-size: 14px;
  color: var(--text-secondary);
  line-height: 1.65;
  flex: 1;
  margin-bottom: 20px;
}

.eco-features {
  display: flex;
  flex-wrap: wrap;
  gap: 6px;
  margin-top: auto;
}
.eco-features span {
  padding: 4px 10px;
  background: var(--bg-1);
  border: 1px solid var(--border);
  border-radius: 100px;
  font-size: 11px;
  font-weight: 500;
  color: var(--text-secondary);
}

/* ========================================
   PRESALE
   ======================================== */
.presale {
  padding: 120px 0;
  position: relative;
  z-index: 2;
}

.presale-bg {
  position: absolute;
  inset: 0;
  overflow: hidden;
}
.presale-orb {
  position: absolute;
  width: 700px; height: 700px;
  background: radial-gradient(circle, rgba(255,255,255,0.1) 0%, transparent 60%);
  top: 50%;
  left: 50%;
  transform: translate(-50%, -50%);
  filter: blur(40px);
}

.presale-grid {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 40px;
  align-items: start;
}

.presale-card {
  background: var(--bg-card);
  border: 1px solid var(--border);
  border-radius: var(--radius-xl);
  padding: 36px;
}
.presale-card.main-card {
  background: linear-gradient(135deg, rgba(255,255,255,0.06) 0%, rgba(161,161,170,0.04) 100%);
  border-color: rgba(255,255,255,0.25);
}

.presale-card-header { margin-bottom: 28px; }
.presale-status {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  padding: 8px 16px;
  background: rgba(255,255,255,0.1);
  border: 1px solid rgba(255,255,255,0.2);
  border-radius: 100px;
  font-size: 13px;
  font-weight: 500;
  color: var(--accent-3);
}
.status-dot {
  width: 7px; height: 7px;
  background: var(--accent-3);
  border-radius: 50%;
  box-shadow: 0 0 8px var(--accent);
  animation: pulse-dot 2s ease-in-out infinite;
}

.hardcap-display {
  text-align: center;
  margin-bottom: 28px;
  padding: 28px;
  background: var(--bg-1);
  border: 1px solid var(--border);
  border-radius: var(--radius-lg);
}
.hc-label {
  font-size: 12px;
  color: var(--text-muted);
  font-weight: 600;
  letter-spacing: 0.1em;
  text-transform: uppercase;
  margin-bottom: 8px;
}
.hc-value {
  font-family: var(--font-display);
  font-size: clamp(2.5rem, 5vw, 3.5rem);
  font-weight: 800;
  background: var(--gradient);
  -webkit-background-clip: text;
  -webkit-text-fill-color: transparent;
  background-clip: text;
}
.hc-value span { font-size: 1.8rem; }

.presale-progress { margin-bottom: 24px; }
.progress-header {
  display: flex;
  justify-content: space-between;
  font-size: 13px;
  font-weight: 500;
  color: var(--text-secondary);
  margin-bottom: 10px;
}
.progress-pct { color: var(--accent-3); }
.progress-bar {
  height: 8px;
  background: var(--bg-2);
  border-radius: 4px;
  overflow: hidden;
  border: 1px solid var(--border);
}
.progress-fill {
  height: 100%;
  background: var(--accent-gradient);
  border-radius: 4px;
  transition: width 1s ease;
}

.presale-details {
  display: flex;
  flex-direction: column;
  gap: 12px;
  margin-bottom: 28px;
  padding: 20px;
  background: var(--bg-1);
  border-radius: var(--radius-md);
  border: 1px solid var(--border);
}
.pd-row {
  display: flex;
  justify-content: space-between;
  align-items: center;
  font-size: 14px;
}
.pd-row span { color: var(--text-secondary); }
.pd-row strong { color: var(--text-primary); font-weight: 600; }

/* PRESALE INFO STACK */
.presale-info-stack {
  display: flex;
  flex-direction: column;
  gap: 20px;
}

.pi-card {
  display: flex;
  gap: 20px;
  align-items: flex-start;
  background: var(--bg-card);
  border: 1px solid var(--border);
  border-radius: var(--radius-lg);
  padding: 24px;
  transition: var(--transition);
}
.pi-card:hover { border-color: var(--border-hover); background: var(--bg-card-hover); }

.pi-icon {
  width: 44px; height: 44px;
  min-width: 44px;
  background: rgba(255,255,255,0.1);
  border: 1px solid rgba(255,255,255,0.2);
  border-radius: var(--radius-sm);
  display: flex;
  align-items: center;
  justify-content: center;
  color: var(--accent-3);
}
.pi-icon svg { width: 20px; height: 20px; }

.pi-card h4 {
  font-size: 15px;
  font-weight: 600;
  margin-bottom: 6px;
}
.pi-card p { font-size: 13px; color: var(--text-secondary); line-height: 1.6; }

/* ========================================
   ROADMAP / TIMELINE
   ======================================== */
.roadmap {
  padding: 120px 0;
  position: relative;
  z-index: 2;
  background: var(--bg-1);
  border-top: 1px solid var(--border);
  border-bottom: 1px solid var(--border);
}

.timeline {
  position: relative;
  padding: 20px 0;
}

.timeline-line {
  position: absolute;
  left: 50%;
  top: 0;
  bottom: 0;
  width: 1px;
  background: linear-gradient(to bottom, transparent, rgba(255,255,255,0.5), rgba(161,161,170,0.5), transparent);
  transform: translateX(-50%);
}

.timeline-item {
  display: flex;
  align-items: flex-start;
  margin-bottom: 48px;
  position: relative;
}
.timeline-item:last-child { margin-bottom: 0; }

.tl-left {
  flex-direction: row;
  padding-right: calc(50% + 40px);
}
.tl-right {
  flex-direction: row-reverse;
  padding-left: calc(50% + 40px);
}

.tl-dot {
  position: absolute;
  left: 50%;
  transform: translateX(-50%);
  width: 20px; height: 20px;
  border: 2px solid var(--border);
  border-radius: 50%;
  background: var(--bg-0);
  z-index: 2;
  display: flex;
  align-items: center;
  justify-content: center;
  top: 20px;
}
.tl-dot.active { border-color: var(--accent); }
.tl-dot-inner {
  width: 8px; height: 8px;
  border-radius: 50%;
  background: var(--border);
}
.tl-dot.active .tl-dot-inner { background: var(--accent); box-shadow: 0 0 10px var(--accent); }

.tl-card {
  background: var(--bg-card);
  border: 1px solid var(--border);
  border-radius: var(--radius-lg);
  padding: 24px 28px;
  flex: 1;
  transition: var(--transition);
}
.tl-card.active { border-color: rgba(255,255,255,0.3); background: rgba(255,255,255,0.04); }
.tl-card:hover { border-color: var(--border-hover); }

.tl-phase {
  font-size: 11px;
  font-weight: 700;
  letter-spacing: 0.1em;
  text-transform: uppercase;
  color: var(--accent-3);
  margin-bottom: 6px;
}
.tl-card h4 {
  font-family: var(--font-display);
  font-size: 18px;
  font-weight: 700;
  margin-bottom: 14px;
}
.tl-card ul { display: flex; flex-direction: column; gap: 8px; }
.tl-card ul li {
  font-size: 14px;
  color: var(--text-secondary);
  padding-left: 16px;
  position: relative;
}
.tl-card ul li::before {
  content: '→';
  position: absolute;
  left: 0;
  color: var(--accent-3);
  font-size: 12px;
}
.tl-date {
  margin-top: 16px;
  font-size: 12px;
  font-weight: 600;
  color: var(--text-muted);
  letter-spacing: 0.05em;
}

/* ========================================
   COMMUNITY
   ======================================== */
.community {
  padding: 120px 0;
  position: relative;
  overflow: hidden;
  z-index: 2;
}
.community-bg { position: absolute; inset: 0; overflow: hidden; }
.comm-orb-1 {
  position: absolute;
  width: 500px; height: 500px;
  background: radial-gradient(circle, rgba(255,255,255,0.12) 0%, transparent 70%);
  top: -100px; left: -100px;
  filter: blur(60px);
}
.comm-orb-2 {
  position: absolute;
  width: 400px; height: 400px;
  background: radial-gradient(circle, rgba(161,161,170,0.1) 0%, transparent 70%);
  bottom: -80px; right: -80px;
  filter: blur(60px);
}

.community-cards {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 20px;
  margin-bottom: 48px;
}

.comm-card {
  display: flex;
  align-items: center;
  gap: 20px;
  padding: 28px;
  background: var(--bg-card);
  border: 1px solid var(--border);
  border-radius: var(--radius-lg);
  transition: var(--transition);
  cursor: pointer;
}
.comm-card:hover {
  border-color: var(--border-hover);
  background: var(--bg-card-hover);
  transform: translateY(-2px);
}

.comm-card-icon {
  width: 52px; height: 52px;
  border-radius: var(--radius-md);
  display: flex;
  align-items: center;
  justify-content: center;
  flex-shrink: 0;
}
.comm-card-icon svg { width: 26px; height: 26px; }
.twitter .comm-card-icon { background: rgba(0,0,0,0.4); color: #fff; border: 1px solid rgba(255,255,255,0.1); }
.telegram .comm-card-icon { background: rgba(0,136,204,0.15); color: #0088cc; border: 1px solid rgba(0,136,204,0.3); }

.comm-card-text h4 { font-size: 17px; font-weight: 600; margin-bottom: 5px; flex: 1; }
.comm-card-text p { font-size: 13px; color: var(--text-secondary); }

.comm-arrow {
  margin-left: auto;
  font-size: 20px;
  color: var(--text-muted);
  transition: var(--transition);
}
.comm-card:hover .comm-arrow { color: var(--accent-3); transform: translateX(4px); }

/* CTA BANNER */
.cta-banner {
  background: var(--gradient-subtle);
  border: 1px solid rgba(255,255,255,0.2);
  border-radius: var(--radius-xl);
  padding: 48px;
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 40px;
  position: relative;
  overflow: hidden;
}

.cta-banner-content h3 {
  font-family: var(--font-display);
  font-size: clamp(1.5rem, 3vw, 2.2rem);
  font-weight: 700;
  margin-bottom: 10px;
}
.cta-banner-content p {
  font-size: 15px;
  color: var(--text-secondary);
  margin-bottom: 24px;
  max-width: 500px;
}

.cta-banner-deco {
  position: relative;
  width: 120px;
  height: 120px;
  flex-shrink: 0;
}
.deco-ring {
  position: absolute;
  top: 50%;
  left: 50%;
  transform: translate(-50%, -50%);
  border-radius: 50%;
  border: 1px solid rgba(255,255,255,0.2);
  animation: ring-pulse 3s ease-in-out infinite;
}
.deco-ring-1 { width: 80px; height: 80px; animation-delay: 0s; }
.deco-ring-2 { width: 110px; height: 110px; animation-delay: 0.5s; }
.deco-ring-3 { width: 140px; height: 140px; animation-delay: 1s; }
@keyframes ring-pulse {
  0%, 100% { opacity: 0.2; transform: translate(-50%, -50%) scale(1); }
  50% { opacity: 0.6; transform: translate(-50%, -50%) scale(1.05); }
}

.deco-logo {
  position: absolute;
  top: 50%;
  left: 50%;
  transform: translate(-50%, -50%);
  width: 50px; height: 50px;
}
.deco-logo svg { width: 100%; height: 100%; }

/* ========================================
   FOOTER
   ======================================== */
.footer {
  padding: 80px 0 32px;
  position: relative;
  z-index: 2;
  border-top: 1px solid var(--border);
  background: var(--bg-1);
}

.footer-top {
  display: grid;
  grid-template-columns: 2fr 1fr 1fr 1fr;
  gap: 60px;
  margin-bottom: 60px;
}

.footer-brand p {
  font-size: 14px;
  color: var(--text-muted);
  margin: 14px 0 20px;
  max-width: 240px;
  line-height: 1.65;
}

.footer-socials {
  display: flex;
  gap: 12px;
}
.social-link {
  width: 38px; height: 38px;
  background: var(--bg-card);
  border: 1px solid var(--border);
  border-radius: var(--radius-sm);
  display: flex;
  align-items: center;
  justify-content: center;
  color: var(--text-secondary);
  transition: var(--transition);
}
.social-link svg { width: 16px; height: 16px; }
.social-link:hover { border-color: var(--accent); color: var(--accent-3); background: rgba(255,255,255,0.1); }

.footer-links-group h5 {
  font-size: 12px;
  font-weight: 700;
  letter-spacing: 0.08em;
  text-transform: uppercase;
  color: var(--text-secondary);
  margin-bottom: 16px;
}
.footer-links-group ul { display: flex; flex-direction: column; gap: 10px; }
.footer-links-group a {
  font-size: 14px;
  color: var(--text-muted);
  transition: var(--transition);
}
.footer-links-group a:hover { color: var(--text-primary); }

.footer-bottom {
  display: flex;
  justify-content: space-between;
  align-items: center;
  flex-wrap: wrap;
  gap: 12px;
  padding-top: 28px;
  border-top: 1px solid var(--border);
  font-size: 13px;
  color: var(--text-muted);
}

.footer-disclaimer {
  font-size: 12px;
  color: var(--text-muted);
  opacity: 0.7;
}

/* ========================================
   RESPONSIVE
   ======================================== */
@media (max-width: 1024px) {
  .eco-grid { grid-template-columns: 1fr 1fr; }
  .features-grid { grid-template-columns: 1fr 1fr; }
  .footer-top { grid-template-columns: 1fr 1fr; gap: 40px; }
}

@media (max-width: 768px) {
  .nav-links { display: none; }
  .btn-nav { display: none; }
  .hamburger { display: flex; }

  .nav-links.open {
    display: flex;
    flex-direction: column;
    position: fixed;
    inset: 0;
    top: 72px;
    background: rgba(5,5,7,0.97);
    backdrop-filter: blur(20px);
    padding: 40px 24px;
    gap: 28px;
    z-index: 99;
    align-items: flex-start;
  }
  .nav-links.open a { font-size: 20px; }
  .nav-links.open li:last-child { margin-top: 16px; }

  .hero-title { font-size: clamp(2.5rem, 10vw, 4rem); }
  .hero-stats { gap: 20px; padding: 16px; }
  .stat-divider { display: none; }

  .features-hero-card {
    grid-template-columns: 1fr;
    gap: 32px;
  }

  .wallets-inner { flex-direction: column; gap: 40px; }

  .eco-grid { grid-template-columns: 1fr; }
  .eco-card.eco-main { grid-column: 1; }

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

  .timeline-line { left: 20px; }
  .tl-left, .tl-right {
    flex-direction: column;
    padding: 0 0 0 52px;
  }
  .tl-dot { left: 20px; transform: none; }
  .tl-card { width: 100%; }

  .community-cards { grid-template-columns: 1fr; }

  .cta-banner { flex-direction: column; text-align: center; }
  .cta-banner-deco { display: none; }

  .footer-top { grid-template-columns: 1fr; gap: 32px; }
  .footer-bottom { flex-direction: column; text-align: center; }

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

@media (max-width: 480px) {
  .container { padding: 0 16px; }
  .hero-cta { flex-direction: column; align-items: stretch; }
  .btn-primary, .btn-ghost { justify-content: center; }
}

/* ========================================
   COUNTDOWN TIMER
   ======================================== */
.countdown-wrapper {
  margin-top: 32px;
  animation: fadeInUp 0.7s 0.5s ease both;
}
.countdown-label {
  font-size: 12px;
  font-weight: 600;
  letter-spacing: 0.1em;
  text-transform: uppercase;
  color: var(--text-muted);
  text-align: center;
  margin-bottom: 14px;
}
.countdown-timer {
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 8px;
  flex-wrap: wrap;
}
.cd-block {
  display: flex;
  flex-direction: column;
  align-items: center;
  background: var(--bg-card);
  border: 1px solid var(--border);
  border-radius: var(--radius-md);
  padding: 16px 20px;
  min-width: 80px;
  position: relative;
  overflow: hidden;
  backdrop-filter: blur(10px);
}
.cd-block::before {
  content: '';
  position: absolute;
  top: 0; left: 0; right: 0;
  height: 1px;
  background: var(--accent-gradient);
}
.cd-num {
  font-family: var(--font-display);
  font-size: 2.2rem;
  font-weight: 800;
  line-height: 1;
  background: var(--gradient);
  -webkit-background-clip: text;
  -webkit-text-fill-color: transparent;
  background-clip: text;
  transition: transform 0.3s cubic-bezier(0.4,0,0.2,1);
}
.cd-num.flip {
  transform: translateY(-6px);
}
.cd-unit {
  font-size: 10px;
  font-weight: 600;
  letter-spacing: 0.08em;
  text-transform: uppercase;
  color: var(--text-muted);
  margin-top: 4px;
}
.cd-sep {
  font-size: 2rem;
  font-weight: 700;
  color: var(--text-muted);
  line-height: 1;
  margin-bottom: 18px;
}

/* Launched state */
.cd-launched {
  font-family: var(--font-display);
  font-size: 1.6rem;
  font-weight: 700;
  background: linear-gradient(135deg, #22c55e, #a1a1aa);
  -webkit-background-clip: text;
  -webkit-text-fill-color: transparent;
  background-clip: text;
  padding: 16px 32px;
  border: 1px solid rgba(34,197,94,0.3);
  border-radius: var(--radius-lg);
  background-color: rgba(34,197,94,0.05);
}

/* ========================================
   CONTRACT ADDRESS BOX
   ======================================== */
.ca-box {
  background: var(--bg-1);
  border: 1px solid var(--border);
  border-radius: var(--radius-md);
  padding: 14px 16px;
  margin-bottom: 20px;
  display: flex;
  align-items: center;
  gap: 12px;
  flex-wrap: wrap;
}
.ca-label {
  display: flex;
  align-items: center;
  gap: 6px;
  font-size: 11px;
  font-weight: 700;
  letter-spacing: 0.06em;
  text-transform: uppercase;
  color: var(--text-muted);
  white-space: nowrap;
}
.ca-value {
  flex: 1;
  font-family: 'Courier New', monospace;
  font-size: 13px;
  color: var(--text-secondary);
  word-break: break-all;
  min-width: 0;
}
.ca-copy {
  display: flex;
  align-items: center;
  gap: 5px;
  padding: 6px 12px;
  background: var(--accent-gradient);
  color: #050507;
  border: none;
  border-radius: 6px;
  font-size: 12px;
  font-weight: 600;
  cursor: pointer;
  transition: var(--transition);
  white-space: nowrap;
  flex-shrink: 0;
}
.ca-copy:hover { opacity: 0.85; transform: translateY(-1px); }
.ca-copy.copied { background: linear-gradient(135deg, #22c55e, #16a34a); }

/* ========================================
   HOW TO BUY
   ======================================== */
.howtobuy {
  padding: 120px 0;
  position: relative;
  z-index: 2;
  background: var(--bg-1);
  border-top: 1px solid var(--border);
  border-bottom: 1px solid var(--border);
}

.htb-grid {
  display: flex;
  align-items: stretch;
  gap: 0;
  margin-bottom: 32px;
}

.htb-card {
  flex: 1;
  background: var(--bg-card);
  border: 1px solid var(--border);
  border-radius: var(--radius-lg);
  padding: 32px 28px;
  position: relative;
  overflow: hidden;
  transition: var(--transition);
  display: flex;
  flex-direction: column;
  gap: 12px;
}
.htb-card::before {
  content: '';
  position: absolute;
  top: 0; left: 0; right: 0;
  height: 2px;
  background: var(--accent-gradient);
  opacity: 0;
  transition: var(--transition);
}
.htb-card:hover {
  border-color: var(--border-hover);
  background: var(--bg-card-hover);
  transform: translateY(-4px);
}
.htb-card:hover::before { opacity: 1; }

.htb-num {
  font-family: var(--font-display);
  font-size: 3.5rem;
  font-weight: 900;
  line-height: 1;
  color: rgba(255,255,255,0.12);
  position: absolute;
  top: 16px;
  right: 20px;
  letter-spacing: -0.04em;
  pointer-events: none;
  transition: var(--transition);
}
.htb-card:hover .htb-num { color: rgba(255,255,255,0.2); }

.htb-icon {
  width: 52px; height: 52px;
  background: rgba(255,255,255,0.1);
  border: 1px solid rgba(255,255,255,0.2);
  border-radius: var(--radius-sm);
  display: flex;
  align-items: center;
  justify-content: center;
  color: var(--accent-3);
  transition: var(--transition);
}
.htb-icon svg { width: 24px; height: 24px; }
.htb-card:hover .htb-icon {
  background: rgba(255,255,255,0.2);
  border-color: var(--accent);
}

.htb-card h4 {
  font-family: var(--font-display);
  font-size: 18px;
  font-weight: 700;
  margin-top: 4px;
}
.htb-card p {
  font-size: 14px;
  color: var(--text-secondary);
  line-height: 1.65;
  flex: 1;
}
.htb-card strong { color: var(--text-primary); }

.htb-wallets {
  display: flex;
  flex-wrap: wrap;
  gap: 6px;
  margin-top: 4px;
}
.htb-wallet-tag {
  padding: 4px 10px;
  background: var(--bg-1);
  border: 1px solid var(--border);
  border-radius: 100px;
  font-size: 11px;
  font-weight: 600;
  color: var(--text-secondary);
}
.htb-tag-accent {
  background: rgba(34,197,94,0.08);
  border-color: rgba(34,197,94,0.25);
  color: #22c55e;
}

/* Connector arrows between steps */
.htb-connector {
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  padding: 0 16px;
  flex-shrink: 0;
  gap: 6px;
}
.htb-connector-line {
  width: 1px;
  height: 40px;
  background: linear-gradient(to bottom, transparent, rgba(255,255,255,0.4), transparent);
}
.htb-connector-arrow {
  font-size: 20px;
  color: var(--accent-3);
  opacity: 0.6;
}

.htb-note {
  display: flex;
  align-items: flex-start;
  gap: 10px;
  padding: 16px 20px;
  background: rgba(255,255,255,0.05);
  border: 1px solid rgba(255,255,255,0.15);
  border-radius: var(--radius-md);
  font-size: 14px;
  color: var(--text-secondary);
  line-height: 1.6;
}
.htb-note svg { color: var(--accent-3); flex-shrink: 0; margin-top: 2px; }
.htb-note a { color: var(--accent-3); text-decoration: underline; text-underline-offset: 3px; }
.htb-note a:hover { color: var(--text-primary); }

/* Responsive */
@media (max-width: 768px) {
  .htb-grid {
    flex-direction: column;
  }
  .htb-connector {
    flex-direction: row;
    padding: 12px 0;
  }
  .htb-connector-line {
    width: 40px;
    height: 1px;
    background: linear-gradient(to right, transparent, rgba(255,255,255,0.4), transparent);
  }
  .countdown-timer { gap: 6px; }
  .cd-block { min-width: 64px; padding: 12px; }
  .cd-num { font-size: 1.6rem; }
}

