/* ============================================
   FTMC Token — Modern Design System
   ============================================ */

:root {
  --bg-primary: #2a3f6e;
  --bg-secondary: #243862;
  --bg-card: rgba(255, 255, 255, 0.08);
  --bg-card-hover: rgba(255, 255, 255, 0.13);
  --border-color: rgba(255, 255, 255, 0.1);
  --border-color-hover: rgba(255, 255, 255, 0.2);
  --text-primary: #f0f4ff;
  --text-secondary: rgba(255, 255, 255, 0.75);
  --text-muted: rgba(255, 255, 255, 0.45);
  --accent-pink: #ff69c9;
  --accent-gold: #ffcb68;
  --accent-gradient: linear-gradient(135deg, #ff69c9, #ffcb68);
  --accent-gradient-reverse: linear-gradient(135deg, #ffcb68, #ff69c9);
  --section-padding: 100px 0;
  --section-padding-sm: 60px 0;
  --radius-sm: 8px;
  --radius-md: 16px;
  --radius-lg: 24px;
  --radius-full: 9999px;
  --shadow-glow: 0 0 40px rgba(255, 105, 201, 0.1);
  --shadow-card: 0 2px 20px rgba(0, 0, 0, 0.2);
  --transition: all 0.3s ease;
}

/* Reset & Base */
* { box-sizing: border-box; }

body {
  background: var(--bg-primary) !important;
  color: var(--text-secondary);
  font-family: 'Poppins', sans-serif;
  line-height: 1.7;
  overflow-x: hidden;
}

/* Animated gradient background — MacBook sleep style */
.bg-glow {
  position: fixed;
  top: 0;
  left: 0;
  width: 100%;
  height: 100%;
  z-index: -1;
  overflow: hidden;
  pointer-events: none;
}

.bg-glow .blob {
  position: absolute;
  border-radius: 50%;
  filter: blur(150px);
  opacity: 0.5;
  animation: blobFloat 20s ease-in-out infinite;
  will-change: transform;
}

.bg-glow .blob-1 {
  width: 700px;
  height: 700px;
  background: #4a6cf7;
  top: -15%;
  left: -10%;
  animation-delay: 0s;
}

.bg-glow .blob-2 {
  width: 600px;
  height: 600px;
  background: #ff69c9;
  top: 20%;
  right: -15%;
  animation-delay: -5s;
  animation-duration: 25s;
}

.bg-glow .blob-3 {
  width: 550px;
  height: 550px;
  background: #ffcb68;
  bottom: -10%;
  left: 15%;
  animation-delay: -10s;
  animation-duration: 22s;
}

.bg-glow .blob-4 {
  width: 500px;
  height: 500px;
  background: #7c6fff;
  top: 50%;
  left: 55%;
  animation-delay: -15s;
  animation-duration: 28s;
}

@keyframes blobFloat {
  0%, 100% {
    transform: translate(0, 0) scale(1);
  }
  20% {
    transform: translate(120px, -80px) scale(1.15);
  }
  40% {
    transform: translate(-60px, 120px) scale(0.9);
  }
  60% {
    transform: translate(80px, 60px) scale(1.1);
  }
  80% {
    transform: translate(-100px, -40px) scale(1.05);
  }
}

h1, h2, h3, h4, h5, h6 {
  color: var(--text-primary) !important;
  font-weight: 600;
}

.card-modern {
  box-shadow: var(--shadow-card);
}

a { transition: var(--transition); }
img { max-width: 100%; height: auto; }

/* Scrollbar */
::-webkit-scrollbar { width: 6px; }
::-webkit-scrollbar-track { background: var(--bg-primary); }
::-webkit-scrollbar-thumb { background: rgba(255, 255, 255, 0.15); border-radius: 3px; }

/* ============================================
   UTILITIES
   ============================================ */

.section-modern {
  padding: var(--section-padding);
  position: relative;
}

.section-modern.section-dark {
  background: var(--bg-secondary);
}

.section-title {
  text-align: center;
  margin-bottom: 60px;
}

.section-title h2 {
  font-size: 2.2rem;
  font-weight: 700;
  margin-bottom: 16px;
  letter-spacing: -0.5px;
}

.section-title p {
  color: var(--text-secondary);
  max-width: 600px;
  margin: 0 auto;
  font-size: 1rem;
}

.gradient-text {
  background: var(--accent-gradient);
  -webkit-background-clip: text;
  -webkit-text-fill-color: transparent;
  background-clip: text;
}

/* Modern Card */
.card-modern {
  background: var(--bg-card);
  border: 1px solid var(--border-color);
  border-radius: var(--radius-md);
  padding: 32px;
  transition: var(--transition);
}

.card-modern:hover {
  background: var(--bg-card-hover);
  border-color: var(--border-color-hover);
  transform: translateY(-2px);
}

/* Modern Button */
.btn-modern {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  padding: 12px 28px;
  border-radius: var(--radius-full);
  font-weight: 500;
  font-size: 0.9rem;
  text-decoration: none;
  transition: var(--transition);
  border: none;
  cursor: pointer;
}

.btn-gradient {
  background: var(--accent-gradient);
  color: #fff;
}

.btn-gradient:hover {
  transform: translateY(-2px);
  box-shadow: 0 8px 30px rgba(255, 105, 201, 0.3);
  color: #fff;
  text-decoration: none;
}

.btn-outline {
  background: transparent;
  border: 1px solid var(--border-color);
  color: var(--text-primary);
}

.btn-outline:hover {
  border-color: var(--accent-pink);
  color: var(--accent-pink);
  text-decoration: none;
}

/* Badge / Tag */
.badge-modern {
  display: inline-block;
  padding: 6px 16px;
  border-radius: var(--radius-full);
  font-size: 0.75rem;
  font-weight: 500;
  letter-spacing: 1px;
  text-transform: uppercase;
  background: rgba(255, 105, 201, 0.1);
  color: var(--accent-pink);
  border: 1px solid rgba(255, 105, 201, 0.2);
}

/* Divider */
.section-divider {
  width: 60px;
  height: 3px;
  background: var(--accent-gradient);
  border-radius: 2px;
  margin: 0 auto 20px;
}

/* ============================================
   HEADER / NAV
   ============================================ */

.header-modern {
  position: fixed;
  top: 0;
  left: 0;
  right: 0;
  z-index: 1000;
  padding: 16px 0;
  transition: var(--transition);
  background: transparent;
}

.header-modern.scrolled {
  background: rgba(42, 63, 110, 0.92);
  backdrop-filter: blur(20px);
  -webkit-backdrop-filter: blur(20px);
  border-bottom: 1px solid var(--border-color);
  padding: 10px 0;
  box-shadow: 0 2px 20px rgba(0, 0, 0, 0.2);
}

.header-modern .navbar {
  padding: 0;
}

.header-modern .nav-link {
  color: var(--text-secondary) !important;
  font-size: 0.88rem;
  font-weight: 500;
  padding: 8px 16px !important;
  transition: var(--transition);
}

.header-modern .nav-link:hover {
  color: var(--accent-pink) !important;
}

.header-modern .navbar-brand img {
  width: 36px;
}

/* ============================================
   HERO / BANNER
   ============================================ */

.hero-section {
  min-height: 100vh;
  display: flex;
  align-items: center;
  padding: 120px 0 80px;
  background: var(--bg-primary);
  position: relative;
  overflow: hidden;
}

.hero-section::before {
  content: '';
  position: absolute;
  top: -200px;
  right: -200px;
  width: 600px;
  height: 600px;
  background: radial-gradient(circle, rgba(255, 105, 201, 0.12) 0%, transparent 70%);
  pointer-events: none;
}

.hero-section::after {
  content: '';
  position: absolute;
  bottom: -200px;
  left: -200px;
  width: 500px;
  height: 500px;
  background: radial-gradient(circle, rgba(255, 203, 104, 0.1) 0%, transparent 70%);
  pointer-events: none;
}

.hero-title {
  font-size: 3.5rem;
  font-weight: 700;
  line-height: 1.15;
  margin-bottom: 20px;
  letter-spacing: -1px;
}

.hero-subtitle {
  font-size: 1.15rem;
  color: var(--text-secondary);
  margin-bottom: 36px;
  max-width: 500px;
}

.hero-stats {
  display: flex;
  gap: 40px;
  margin-top: 48px;
}

.hero-stat {
  text-align: left;
}

.hero-stat-value {
  font-size: 1.8rem;
  font-weight: 700;
  color: var(--text-primary);
}

.hero-stat-label {
  font-size: 0.8rem;
  color: var(--text-muted);
  text-transform: uppercase;
  letter-spacing: 1px;
}

/* Progress bar modern */
.progress-modern {
  background: rgba(255, 255, 255, 0.08);
  border-radius: var(--radius-full);
  height: 10px;
  overflow: hidden;
  margin-top: 12px;
}

.progress-modern-bar {
  height: 100%;
  background: var(--accent-gradient);
  border-radius: var(--radius-full);
  transition: width 1.5s ease;
}

/* ============================================
   ABOUT SECTION
   ============================================ */

.about-icon {
  width: 60px;
  height: 60px;
  border-radius: var(--radius-md);
  background: rgba(255, 105, 201, 0.08);
  display: flex;
  align-items: center;
  justify-content: center;
  margin-bottom: 20px;
}

.about-icon img {
  width: 36px;
}

/* ============================================
   ADVANTAGES / HOW IT WORKS
   ============================================ */

.advantage-card {
  text-align: center;
  padding: 40px 24px;
}

.advantage-icon {
  width: 64px;
  height: 64px;
  border-radius: 50%;
  background: var(--accent-gradient);
  display: flex;
  align-items: center;
  justify-content: center;
  margin: 0 auto 20px;
  font-size: 1.5rem;
  color: #fff;
}

.advantage-card h5 {
  font-size: 1.05rem;
  margin-bottom: 12px;
}

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

/* ============================================
   TOKEN SALE
   ============================================ */

.token-info-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(200px, 1fr));
  gap: 20px;
}

.token-info-item {
  padding: 24px;
  text-align: center;
}

.token-info-item .label {
  font-size: 0.75rem;
  color: var(--text-muted);
  text-transform: uppercase;
  letter-spacing: 1px;
  margin-bottom: 8px;
}

.token-info-item .value {
  font-size: 1.3rem;
  font-weight: 600;
  color: var(--text-primary);
}

/* ============================================
   DISTRIBUTION — SVG PIE CHARTS
   ============================================ */

.pie-chart-wrapper {
  position: relative;
  display: flex;
  align-items: center;
  justify-content: center;
}

.chart-legend {
  list-style: none;
  padding: 0;
  margin: 0;
}

.chart-legend li {
  display: flex;
  align-items: center;
  gap: 12px;
  padding: 10px 0;
  border-bottom: 1px solid var(--border-color);
  font-size: 0.95rem;
}

.chart-legend li:last-child {
  border-bottom: none;
}

.legend-dot {
  width: 12px;
  height: 12px;
  border-radius: 50%;
  flex-shrink: 0;
}

.legend-percent {
  font-weight: 600;
  color: var(--text-primary);
  margin-left: auto;
  min-width: 40px;
  text-align: right;
}

/* ============================================
   TIMELINE / ROADMAP
   ============================================ */

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

.timeline-modern::before {
  content: '';
  position: absolute;
  left: 50%;
  top: 0;
  bottom: 0;
  width: 2px;
  background: var(--border-color);
  transform: translateX(-50%);
}

.timeline-item {
  position: relative;
  padding: 20px 0;
  width: 50%;
}

.timeline-item:nth-child(odd) {
  padding-right: 50px;
  text-align: right;
}

.timeline-item:nth-child(even) {
  padding-left: 50px;
  margin-left: 50%;
}

.timeline-dot {
  position: absolute;
  width: 16px;
  height: 16px;
  border-radius: 50%;
  background: #fff;
  border: 3px solid var(--border-color);
  top: 28px;
}

.timeline-item:nth-child(odd) .timeline-dot {
  right: -8px;
}

.timeline-item:nth-child(even) .timeline-dot {
  left: -8px;
}

.timeline-item.completed .timeline-dot {
  border-color: var(--accent-pink);
  background: var(--accent-pink);
  box-shadow: 0 0 12px rgba(255, 105, 201, 0.4);
}

.timeline-item.current .timeline-dot {
  border-color: var(--accent-gold);
  background: var(--accent-gold);
  box-shadow: 0 0 12px rgba(255, 203, 104, 0.4);
}

.timeline-content {
  background: var(--bg-card);
  border: 1px solid var(--border-color);
  border-radius: var(--radius-md);
  padding: 24px;
}

.timeline-date {
  font-size: 0.8rem;
  color: var(--accent-pink);
  font-weight: 600;
  text-transform: uppercase;
  letter-spacing: 1px;
  margin-bottom: 8px;
}

.timeline-content h5 {
  font-size: 1rem;
  margin-bottom: 0;
}

/* ============================================
   TEAM
   ============================================ */

.team-card {
  text-align: center;
  padding: 32px 20px;
  height: 100%;
  display: flex;
  flex-direction: column;
  align-items: center;
}

.team-avatar {
  width: 140px;
  height: 140px;
  border-radius: 50%;
  overflow: hidden;
  margin: 0 auto 20px;
  border: 3px solid var(--border-color);
  position: relative;
  flex-shrink: 0;
}

.team-avatar img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  object-position: top center;
}

.team-card h5 {
  font-size: 1.05rem;
  margin-bottom: 4px;
}

.team-card .role {
  font-size: 0.82rem;
  color: var(--text-muted);
  margin-bottom: 12px;
  flex-grow: 1;
}

.team-social a {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  width: 36px;
  height: 36px;
  border-radius: 50%;
  background: var(--bg-card);
  border: 1px solid var(--border-color);
  color: var(--text-secondary);
  transition: var(--transition);
  text-decoration: none;
}

.team-social a:hover {
  border-color: var(--accent-pink);
  color: var(--accent-pink);
}

/* ============================================
   FAQ ACCORDION
   ============================================ */

.faq-tabs {
  display: flex;
  gap: 8px;
  justify-content: center;
  margin-bottom: 40px;
  flex-wrap: wrap;
}

.faq-tab {
  padding: 10px 24px;
  border-radius: var(--radius-full);
  background: var(--bg-card);
  border: 1px solid var(--border-color);
  color: var(--text-secondary);
  cursor: pointer;
  transition: var(--transition);
  font-size: 0.88rem;
}

.faq-tab:hover {
  border-color: var(--border-color-hover);
}

.faq-tab.active {
  background: var(--accent-gradient);
  color: #fff;
  border-color: transparent;
  font-weight: 500;
}

.faq-item {
  border: 1px solid var(--border-color);
  border-radius: var(--radius-md);
  margin-bottom: 12px;
  overflow: hidden;
  transition: var(--transition);
}

.faq-question {
  display: flex;
  justify-content: space-between;
  align-items: center;
  padding: 20px 24px;
  cursor: pointer;
  color: var(--text-primary);
  font-weight: 500;
  font-size: 0.95rem;
  background: transparent;
  border: none;
  width: 100%;
  text-align: left;
  transition: var(--transition);
}

.faq-question:hover {
  color: var(--accent-pink);
}

.faq-chevron {
  font-size: 1.2rem;
  transition: transform 0.3s ease;
  flex-shrink: 0;
  margin-left: 16px;
  color: var(--text-muted);
}

.faq-item.open .faq-chevron {
  transform: rotate(180deg);
}

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

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

.faq-answer-inner {
  padding: 0 24px 20px;
  color: var(--text-secondary);
  font-size: 0.9rem;
  line-height: 1.8;
}

/* ============================================
   CONTACT
   ============================================ */

.contact-form .form-control {
  background: var(--bg-card) !important;
  border: 1px solid var(--border-color) !important;
  border-radius: var(--radius-sm) !important;
  color: var(--text-primary) !important;
  padding: 14px 18px !important;
  font-size: 0.9rem;
  transition: var(--transition);
}

.contact-form .form-control::placeholder {
  color: var(--text-muted);
}

.contact-form .form-control:focus {
  border-color: var(--accent-pink) !important;
  box-shadow: 0 0 0 2px rgba(255, 105, 201, 0.1) !important;
  outline: none;
}

.contact-form label {
  color: var(--text-secondary);
  font-size: 0.85rem;
  margin-bottom: 6px;
  font-weight: 400;
}

.contact-info-item {
  display: flex;
  align-items: flex-start;
  gap: 16px;
  margin-bottom: 24px;
}

.contact-info-icon {
  width: 44px;
  height: 44px;
  border-radius: 50%;
  background: rgba(255, 105, 201, 0.08);
  display: flex;
  align-items: center;
  justify-content: center;
  flex-shrink: 0;
  color: var(--accent-pink);
}

.contact-info-item h6 {
  font-size: 0.85rem;
  margin-bottom: 2px;
}

.contact-info-item p {
  font-size: 0.9rem;
  color: var(--text-secondary);
  margin: 0;
}

/* ============================================
   FOOTER
   ============================================ */

.footer-modern {
  background: var(--bg-secondary);
  border-top: 1px solid var(--border-color);
  padding: 60px 0 0;
}

.footer-modern h5 {
  font-size: 1rem;
  margin-bottom: 20px;
}

.footer-links {
  list-style: none;
  padding: 0;
  margin: 0;
}

.footer-links li {
  margin-bottom: 10px;
}

.footer-links a {
  color: var(--text-secondary);
  text-decoration: none;
  font-size: 0.9rem;
  transition: var(--transition);
}

.footer-links a:hover {
  color: var(--accent-pink);
}

.footer-bottom {
  border-top: 1px solid var(--border-color);
  padding: 20px 0;
  margin-top: 40px;
}

.footer-bottom p {
  color: var(--text-muted);
  font-size: 0.8rem;
  margin: 0;
}

.footer-social a {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  width: 40px;
  height: 40px;
  border-radius: 50%;
  background: var(--bg-card);
  border: 1px solid var(--border-color);
  color: var(--text-secondary);
  margin-right: 8px;
  transition: var(--transition);
  text-decoration: none;
}

.footer-social a:hover {
  border-color: var(--accent-pink);
  color: var(--accent-pink);
}

/* ============================================
   PRODUCT SECTIONS (ETF, Custodial, SwapFTM)
   ============================================ */

.product-section .product-image {
  border-radius: var(--radius-lg);
  overflow: hidden;
  border: 1px solid var(--border-color);
}

.product-section .product-image img {
  width: 100%;
  display: block;
}

/* ============================================
   RESPONSIVE
   ============================================ */

@media (max-width: 991px) {
  .hero-title { font-size: 2.5rem; }
  .hero-stats { gap: 24px; flex-wrap: wrap; }
  .section-title h2 { font-size: 1.8rem; }
  .section-modern { padding: var(--section-padding-sm); }

  .timeline-modern::before { left: 20px; }
  .timeline-item { width: 100% !important; padding-left: 50px !important; padding-right: 0 !important; text-align: left !important; margin-left: 0 !important; }
  .timeline-item .timeline-dot { left: 12px !important; right: auto !important; }
}

@media (max-width: 575px) {
  .hero-title { font-size: 2rem; }
  .hero-stats { flex-direction: column; gap: 16px; }
  .card-modern { padding: 24px; }
  .faq-tabs { flex-direction: column; align-items: center; }
}

/* ============================================
   WALLET DASHBOARD
   ============================================ */

.wallet-page {
  padding: 100px 0 60px;
  min-height: 100vh;
}

.wallet-page h2 {
  margin-bottom: 8px;
}

.wallet-stat-card {
  background: var(--bg-card);
  border: 1px solid var(--border-color);
  border-radius: var(--radius-md);
  padding: 20px 24px;
  transition: var(--transition);
}

.wallet-stat-card:hover {
  background: var(--bg-card-hover);
  border-color: var(--border-color-hover);
}

.wallet-stat-label {
  font-size: 0.72rem;
  color: var(--text-muted);
  text-transform: uppercase;
  letter-spacing: 0.8px;
  margin-bottom: 4px;
}

.wallet-stat-value {
  font-size: 1.3rem;
  font-weight: 700;
  color: var(--text-primary);
  word-break: break-all;
}

.wallet-stat-unit {
  font-size: 0.8rem;
  color: var(--text-muted);
  font-weight: 400;
  margin-left: 4px;
}

.wallet-section-card {
  background: var(--bg-card);
  border: 1px solid var(--border-color);
  border-radius: var(--radius-lg);
  padding: 28px;
  margin-bottom: 24px;
}

.wallet-section-card h5 {
  font-size: 1rem;
  margin-bottom: 20px;
  padding-bottom: 12px;
  border-bottom: 1px solid var(--border-color);
}

.wallet-field {
  margin-bottom: 16px;
}

.wallet-field label {
  display: block;
  font-size: 0.78rem;
  color: var(--text-muted);
  text-transform: uppercase;
  letter-spacing: 0.5px;
  margin-bottom: 6px;
}

.wallet-field .form-control {
  background: rgba(255, 255, 255, 0.04) !important;
  border: 1px solid var(--border-color) !important;
  border-radius: var(--radius-sm) !important;
  color: var(--text-primary) !important;
  padding: 10px 14px !important;
  font-size: 0.92rem;
}

.wallet-field .input-group-text {
  background: rgba(255, 255, 255, 0.06) !important;
  border: 1px solid var(--border-color) !important;
  color: var(--text-muted) !important;
  font-size: 0.8rem;
}

.wallet-field .form-control:focus {
  border-color: var(--accent-pink) !important;
  box-shadow: 0 0 0 2px rgba(255, 105, 201, 0.1) !important;
}

.wallet-btn {
  display: inline-flex;
  align-items: center;
  gap: 6px;
  padding: 8px 20px;
  border-radius: var(--radius-full);
  font-weight: 500;
  font-size: 0.82rem;
  cursor: pointer;
  transition: var(--transition);
  border: none;
}

.wallet-btn-primary {
  background: var(--accent-gradient);
  color: #fff;
}

.wallet-btn-primary:hover {
  box-shadow: 0 4px 20px rgba(255, 105, 201, 0.3);
  transform: translateY(-1px);
}

.wallet-btn-secondary {
  background: var(--bg-card);
  border: 1px solid var(--border-color);
  color: var(--text-primary);
}

.wallet-btn-secondary:hover {
  border-color: var(--accent-pink);
  color: var(--accent-pink);
}

.swap-container {
  background: var(--bg-card);
  border: 1px solid var(--border-color);
  border-radius: var(--radius-lg);
  padding: 24px;
  margin-bottom: 24px;
}

.swap-container h5 {
  font-size: 1rem;
  margin-bottom: 16px;
}

/* ============================================
   OVERRIDES — remove old template artifacts
   ============================================ */

#loader-wrapper { display: none !important; }
.scrollup { display: none !important; }

section {
  background: transparent;
}
