/* ================================
   GOOGLE FONTS
================================ */
@import url('https://fonts.googleapis.com/css2?family=Syne:wght@400;600;700;800&family=DM+Sans:ital,opsz,wght@0,9..40,300;0,9..40,400;0,9..40,500;1,9..40,300&display=swap');

/* ================================
   CSS VARIABLES
================================ */
:root {
  --sidebar-width: 260px;
  --header-height: 56px;
  --primary:       #3b82f6;
  --primary-glow:  rgba(59,130,246,0.3);
  --accent:        #60a5fa;
  --gold:          #f5c26b;
  --bg-base:       #070b14;
  --bg-surface:    #0d1424;
  --bg-card:       #111c30;
  --bg-card-hover: #18273f;
  --border:        rgba(255,255,255,0.07);
  --text-primary:  #e8eeff;
  --text-muted:    #6b7a99;
  --text-dim:      #9aa5c0;
  --overlay:       rgba(4,8,18,0.72);
  --radius-sm:     8px;
  --radius-md:     12px;
  --radius-lg:     18px;
  --transition:    0.22s ease;
}

/* ================================
   RESET & BASE
================================ */
*, *::before, *::after {
  box-sizing: border-box;
  -webkit-text-size-adjust: 100%;
  -ms-text-size-adjust: 100%;
}

html { scroll-behavior: smooth; }

body {
  font-family: 'DM Sans', system-ui, Arial, sans-serif;
  background: var(--bg-base);
  color: var(--text-primary);
  margin: 0;
  padding-left: var(--sidebar-width);
  padding-top: var(--header-height);
  transition: padding-left var(--transition);
  line-height: 1.6;
  overflow-x: hidden;
  font-size: 15px;
}
body.sidebar-collapsed { padding-left: 0; }

a { text-decoration: none; color: inherit; }

/* ================================
   FONT AWESOME OVERRIDES
================================ */
.fa, .fa-solid, .fa-regular {
  font-family: "Font Awesome 7 Free" !important;
}
.fa-brands { font-family: "Font Awesome 7 Brands" !important; }

/* ================================
   HEADER
================================ */
.fx-header {
  position: fixed;
  top: 0; left: 0;
  width: 100%;
  height: var(--header-height);
  background: rgba(7,11,20,0.88);
  backdrop-filter: blur(16px);
  -webkit-backdrop-filter: blur(16px);
  border-bottom: 1px solid var(--border);
  z-index: 9998;
  display: flex;
  align-items: center;
  padding-left: var(--sidebar-width);
  transition: padding-left var(--transition);
}
body.sidebar-collapsed .fx-header { padding-left: 0; }

.header-top {
  display: flex;
  align-items: center;
  width: 100%;
  padding: 0 18px;
  gap: 14px;
}
.status-wrapper { flex: 1; min-width: 0; }
.header-bottom  { display: none; }

/* ================================
   HAMBURGER
================================ */
.hamburger {
  width: 38px; height: 38px;
  display: flex; align-items: center; justify-content: center;
  background: var(--bg-card);
  border: 1px solid var(--border);
  border-radius: var(--radius-sm);
  color: var(--text-primary);
  font-size: 16px;
  cursor: pointer;
  flex-shrink: 0;
  transition: background var(--transition), border-color var(--transition);
}
.hamburger:hover {
  background: var(--bg-card-hover);
  border-color: var(--primary);
}

/* ================================
   SIDEBAR
================================ */
.fx-sidebar {
  position: fixed;
  top: 0; left: 0;
  width: var(--sidebar-width);
  height: 100vh;
  background: var(--bg-surface);
  border-right: 1px solid var(--border);
  padding-top: calc(var(--header-height) + 8px);
  z-index: 9999;
  overflow-y: auto;
  overflow-x: hidden;
  scrollbar-width: thin;
  scrollbar-color: var(--primary) transparent;
  transition: transform var(--transition);
}
.fx-sidebar::-webkit-scrollbar { width: 3px; }
.fx-sidebar::-webkit-scrollbar-thumb { background: var(--primary); border-radius: 3px; }

.fx-sidebar a {
  display: flex;
  align-items: center;
  gap: 10px;
  padding: 11px 20px;
  color: var(--text-dim);
  font-size: 13px;
  font-weight: 500;
  border-left: 3px solid transparent;
  transition: all var(--transition);
  white-space: nowrap;
  overflow: hidden;
}
.fx-sidebar a:hover,
.fx-sidebar a.active {
  background: linear-gradient(90deg, rgba(59,130,246,0.1), transparent);
  color: #fff;
  border-left-color: var(--primary);
}
.fx-sidebar a .img-icon {
  flex-shrink: 0;
  width: 18px; height: 18px;
}

.fx-sidebar.collapsed { transform: translateX(-100%); }

/* ================================
   BACK TO TOP BUTTON (in sidebar)
================================ */
#backToTopBtn {
  display: none;
  margin: 8px 16px 0;
  width: calc(100% - 32px);
  padding: 10px;
  background: var(--primary);
  color: #fff;
  border: none;
  border-radius: var(--radius-sm);
  cursor: pointer;
  font-size: 13px;
  font-weight: 600;
  font-family: inherit;
  transition: background var(--transition), transform var(--transition);
}
#backToTopBtn:hover {
  background: #2563eb;
  transform: translateY(-2px);
}

/* ================================
   PRELOADER
================================ */
#preloader {
  position: fixed; inset: 0;
  background: linear-gradient(rgba(0,0,0,0.7),rgba(0,0,0,0.7)),
    url("bg-hero.webp") center/cover no-repeat;
  display: flex;
  justify-content: center; align-items: center;
  z-index: 99999;
}
body.loaded #preloader {
  opacity: 0;
  visibility: hidden;
  transition: opacity 0.5s ease, visibility 0s 0.5s;
}
.spinner-wrapper { position: relative; width: 60px; height: 60px; }
.spinner {
  position: absolute; inset: 0;
  border: 3px solid rgba(59,130,246,0.15);
  border-top-color: var(--primary);
  border-radius: 50%;
  animation: spin 0.75s linear infinite;
}
.spinner-logo {
  position: absolute;
  top: 50%; left: 50%;
  transform: translate(-50%,-50%);
  width: 36px; height: 36px;
}
@keyframes spin { to { transform: rotate(360deg); } }

/* ================================
   MASCOT AVATAR
================================ */
.anime-right {
  position: fixed;
  right: 14px; bottom: 0;
  width: 100px; height: 100px;
  z-index: 1000;
}
.anime-right img {
  width: 100%; height: auto;
  display: block; cursor: pointer;
}
.tooltip-text {
  visibility: hidden;
  background: var(--bg-card);
  border: 1px solid var(--border);
  color: #fff;
  text-align: center;
  padding: 8px 12px;
  border-radius: var(--radius-sm);
  position: absolute;
  bottom: 110%; right: 0;
  opacity: 0;
  transition: opacity 0.3s;
  min-width: 180px;
  font-size: 11px;
  line-height: 1.5;
  pointer-events: none;
}
.anime-right:hover .tooltip-text { visibility: visible; opacity: 1; }

/* ================================
   SECTIONS
================================ */
section {
  min-height: calc(100vh + 30px);
  display: flex;
  flex-direction: column;
  justify-content: center;
  align-items: center;
  padding: 80px 40px;
  background-attachment: fixed;
  background-position: center;
  background-repeat: no-repeat;
  background-size: cover;
  color: #fff;
}
.section h2 {
  font-family: Tahoma, sans-serif;
  font-size: clamp(1.5rem, 3vw, 2.1rem);
  font-weight: 700;
  text-align: center;
  margin-bottom: 12px;
  color: var(--text-primary);
  letter-spacing: -0.2px;
}

/* ================================
   HERO
================================ */
.hero {
  background: linear-gradient(var(--overlay), var(--overlay)),
    url("bg-hero.webp") center/cover no-repeat fixed;
  text-align: center;
}
.hero h1 {
  font-family: Tahoma, sans-serif;
  font-size: clamp(1.8rem, 4vw, 2.9rem);
  font-weight: 800;
  margin-bottom: 8px;
  letter-spacing: -0.4px;
}
.hero .content { width: 100%; max-width: 960px; }

/* ================================
   SECTION BACKGROUNDS
================================ */
#timeline   { background: linear-gradient(var(--overlay),var(--overlay)), url("bg-timeline.webp") center/cover no-repeat fixed; }
#leo        { background: linear-gradient(var(--overlay),var(--overlay)), url("bg-leo.webp") center/cover no-repeat fixed; }
#leo-webapp { background: linear-gradient(var(--overlay),var(--overlay)), url("bg-leo-webapp.webp") center/cover no-repeat fixed; }
#libra      { background: linear-gradient(var(--overlay),var(--overlay)), url("bg-libra.webp") center/cover no-repeat fixed; }
#taurus     { background: linear-gradient(var(--overlay),var(--overlay)), url("bg-taurus.webp") center/cover no-repeat fixed; }
#say        { background: linear-gradient(var(--overlay),var(--overlay)), url("bg-say.webp") center/cover no-repeat fixed; }
#ecosystem  { background: linear-gradient(var(--overlay),var(--overlay)), url("bg-ecosystem.webp") center/cover no-repeat fixed; }
#mediasocial{ background: linear-gradient(var(--overlay),var(--overlay)), url("bg-mediasosial.webp") center/cover no-repeat fixed; }
#policy     { background: linear-gradient(var(--overlay),var(--overlay)), url("bg-policies.webp") center/cover no-repeat fixed; }

/* ================================
   ICONS
================================ */
.img-icon        { border: 0; display: inline-block; outline: none; vertical-align: middle; }
.img-icon-header { width: 44px; height: 44px; vertical-align: middle; }

/* ================================
   REVEAL ANIMATION
================================ */
.reveal {
  opacity: 0;
  transform: translateY(26px);
  transition: opacity 0.55s ease, transform 0.55s ease;
}
.reveal.active { opacity: 1; transform: translateY(0); }

/* ================================
   CARD LAYOUT (hero + ecosystem)
================================ */
.card-layout {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 14px;
  width: 100%;
  max-width: 880px;
}
.project-card {
  background: rgba(17,28,48,0.72);
  border: 1px solid var(--border);
  border-radius: var(--radius-md);
  padding: 22px 14px;
  text-align: center;
  cursor: pointer;
  backdrop-filter: blur(8px);
  transition: all var(--transition);
}
.project-card:hover {
  background: rgba(24,39,63,0.9);
  border-color: var(--primary);
  transform: translateY(-4px);
  box-shadow: 0 12px 32px var(--primary-glow);
}
.project-card .img-icon { width: 34px; height: 34px; margin-bottom: 6px; }
.project-card h3 {
  font-family: Tahoma, sans-serif;
  font-size: 13.5px;
  margin: 6px 0 4px;
  color: #fff;
}
.project-card p { font-size: 12px; color: var(--text-muted); margin: 0; }

/* ================================
   BUTTONS
================================ */
.btn-row {
  display: flex;
  justify-content: center;
  flex-wrap: wrap;
  gap: 10px;
  margin-top: 10px;
}
.btn-center { text-align: center; margin-top: 22px; }

.my-btn, .btn {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  padding: 11px 22px;
  border: none;
  border-radius: 50px;
  cursor: pointer;
  font-weight: 600;
  font-size: 13.5px;
  font-family: inherit;
  transition: all var(--transition);
  text-decoration: none;
  line-height: 1.3;
}
.my-btn {
  background: linear-gradient(135deg, var(--primary) 0%, #6366f1 100%);
  color: #fff;
  box-shadow: 0 4px 16px rgba(59,130,246,0.28);
}
.my-btn:hover {
  background: linear-gradient(135deg, #6366f1 0%, var(--primary) 100%);
  transform: translateY(-2px);
  box-shadow: 0 8px 24px rgba(59,130,246,0.38);
}
.btn { background: var(--primary); color: #fff; }
.btn.outline {
  background: transparent;
  border: 2px solid var(--primary);
  color: var(--primary);
}

/* ================================
   FEATURES GRID
================================ */
.features {
  display: grid;
  grid-template-columns: repeat(2, 1fr);
  gap: 14px;
  width: 100%;
  max-width: 840px;
  margin-bottom: 6px;
}
.features-single {
  display: grid;
  grid-template-columns: 1fr;
  gap: 14px;
  width: 100%;
  max-width: 540px;
}
.feature-box {
  background: rgba(13,20,36,0.78);
  border: 1px solid var(--border);
  border-radius: var(--radius-md);
  padding: 22px 18px;
  text-align: center;
  backdrop-filter: blur(8px);
  transition: all var(--transition);
}
.feature-box:hover {
  border-color: rgba(59,130,246,0.45);
  transform: translateY(-3px);
  box-shadow: 0 10px 28px rgba(59,130,246,0.12);
}
.feature-box h3 {
  font-family: Tahoma, sans-serif;
  font-size: 14.5px;
  color: #60d0ff;
  margin: 0 0 8px;
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 6px;
}
.feature-box p { font-size: 13px; color: var(--text-dim); margin: 0; line-height: 1.65; }

/* ================================
   TIMELINE / STEPS
================================ */
.steps {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 16px;
  width: 100%;
  max-width: 1080px;
  padding: 0;
}
.step-card {
  background: rgba(13,20,36,0.82);
  border: 1px solid var(--border);
  border-radius: var(--radius-md);
  padding: 20px 18px;
  backdrop-filter: blur(8px);
  transition: all var(--transition);
  display: flex;
  flex-direction: column;
}
.step-card:hover {
  border-color: rgba(59,130,246,0.38);
  transform: translateY(-4px);
  box-shadow: 0 14px 36px rgba(0,0,0,0.45);
}
.step-date  { font-size: 12px; color: var(--gold); margin-bottom: 5px; font-weight: 500; }
.step-title { font-family: Tahoma, sans-serif; font-size: 14px; color: var(--accent); margin-bottom: 10px; font-weight: 600; }
.step-content { font-size: 13px; color: var(--text-dim); line-height: 1.65; }
.step-content ul { padding-left: 16px; margin: 6px 0 0; }
.step-content li { margin-bottom: 5px; }

/* ================================
   TESTIMONIALS
================================ */
.testimonials {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(260px, 1fr));
  gap: 14px;
  width: 100%;
  max-width: 1000px;
}
.testimonial {
  background: rgba(13,20,36,0.78);
  border: 1px solid var(--border);
  border-radius: var(--radius-md);
  padding: 20px;
  font-style: italic;
  font-size: 13.5px;
  color: var(--text-dim);
  line-height: 1.65;
  backdrop-filter: blur(6px);
  transition: border-color var(--transition);
}
.testimonial:hover { border-color: rgba(59,130,246,0.32); }
.testimonial b { color: var(--text-primary); font-style: normal; display: block; margin-top: 8px; }

/* ================================
   ECOSYSTEM PROJECT DESC
================================ */
.project-desc {
  max-width: 680px;
  width: 100%;
  margin: 0 auto 22px;
  padding: 20px 24px;
  background: rgba(13,20,36,0.78);
  border: 1px solid var(--border);
  border-radius: var(--radius-md);
  backdrop-filter: blur(8px);
}
.project-desc p { margin: 0; font-size: 14px; line-height: 1.8; color: var(--text-dim); }
.project-desc strong { color: var(--gold); }
.project-desc .tagline { margin-top: 12px; font-size: 13px; color: var(--text-primary); opacity: 0.8; letter-spacing: 0.3px; }

/* ================================
   SOCIAL FIND CARDS
================================ */
.find-container {
  display: flex;
  justify-content: center;
  flex-wrap: wrap;
  gap: 16px;
  width: 100%;
  max-width: 900px;
}
.find-card {
  background: rgba(13,20,36,0.78);
  border: 1px solid var(--border);
  border-radius: var(--radius-md);
  width: 196px;
  padding: 24px 14px 18px;
  display: flex;
  flex-direction: column;
  align-items: center;
  text-align: center;
  backdrop-filter: blur(6px);
  transition: all var(--transition);
}
.find-card:hover {
  border-color: rgba(59,130,246,0.38);
  transform: translateY(-5px);
  box-shadow: 0 14px 32px rgba(0,0,0,0.35);
}
.find-card h3 { font-family: Tahoma, sans-serif; font-size: 15px; margin: 0 0 8px; }
.caption { font-size: 12px; color: var(--text-muted); margin-bottom: 14px; line-height: 1.5; flex: 1; }
.find-card a {
  display: inline-block;
  font-size: 12.5px;
  font-weight: 600;
  color: #fff;
  background: var(--primary);
  padding: 7px 18px;
  border-radius: 50px;
  transition: all var(--transition);
}
.find-card a:hover { background: #2563eb; transform: scale(1.04); }

.icon {
  width: 60px; height: 60px;
  margin-bottom: 12px;
  border-radius: 50%;
  display: flex; align-items: center; justify-content: center;
  color: #fff;
  font-size: 26px;
}
.facebook { background: #1877f2; }
.youtube  { background: #ff0000; }
.tiktok   { background: #111; }
.blogspot { background: #f57d00; }

/* ================================
   PRIVACY / T&C
================================ */
.container-tnc {
  background: rgba(13,20,36,0.82);
  border: 1px solid var(--border);
  border-radius: var(--radius-lg);
  padding: 24px;
  width: 100%;
  max-width: 820px;
  backdrop-filter: blur(10px);
}
.button-group { text-align: center; margin-bottom: 16px; }

/* override global button styles for T&C toggle */
.button-group button {
  background: var(--bg-card) !important;
  color: var(--text-dim) !important;
  border: 1px solid var(--border) !important;
  padding: 8px 22px !important;
  margin: 4px !important;
  border-radius: 50px !important;
  cursor: pointer;
  font-size: 13px;
  font-weight: 600;
  font-family: inherit;
  transition: all var(--transition);
}
.button-group button:hover {
  background: var(--bg-card-hover) !important;
  color: #fff !important;
}
.button-group button.active {
  background: var(--primary) !important;
  color: #fff !important;
  border-color: var(--primary) !important;
}

.content-box {
  background: rgba(7,11,20,0.55);
  border-radius: var(--radius-sm);
  border: 1px solid var(--border);
  padding: 18px 20px;
  max-height: 52vh;
  overflow-y: auto;
  font-size: 13px;
  color: var(--text-dim);
  line-height: 1.8;
  scrollbar-width: thin;
  scrollbar-color: var(--primary) transparent;
}
.content-box::-webkit-scrollbar { width: 4px; }
.content-box::-webkit-scrollbar-thumb { background: var(--primary); border-radius: 3px; }

h2.tnc-header {
  font-family: Tahoma, sans-serif;
  font-size: 13.5px !important;
  color: var(--accent);
  text-align: left;
  margin: 14px 0 5px;
}
.hidden { display: none; }

/* ================================
   FOOTER
================================ */
.custom-footer {
  width: 100%;
  padding: 22px 30px;
  text-align: center;
  font-size: 13px;
  background: var(--bg-surface);
  border-top: 1px solid var(--border);
  color: var(--text-muted);
}
.custom-footer .footer-content { margin-bottom: 10px; }
.custom-footer .footer-share   { margin-bottom: 10px; }
.custom-footer .footer-extra   { opacity: 0.6; font-size: 12px; }

/* ================================
   RESPONSIVE – TABLET (=1024px)
================================ */
@media (max-width: 1024px) {
  body { padding-left: 0; }
  .fx-header { padding-left: 0; }

  .fx-sidebar {
    transform: translateX(-100%);
    box-shadow: none;
  }
  .fx-sidebar.active {
    transform: translateX(0);
    box-shadow: 8px 0 40px rgba(0,0,0,0.55);
  }

  .steps        { grid-template-columns: repeat(2, 1fr); }
  .features     { grid-template-columns: 1fr; max-width: 600px; }
  .card-layout  { grid-template-columns: repeat(2, 1fr); }
}

/* ================================
   RESPONSIVE – MOBILE (=640px)
================================ */
@media (max-width: 640px) {
  body { font-size: 14px; }

  section {
    padding: 64px 16px 48px;
    min-height: auto;
    /* Disable parallax on mobile — fixes iOS rendering bug */
    background-attachment: scroll !important;
  }

  .section h2 { font-size: 1.4rem; }
  .hero h1    { font-size: 1.55rem; }

  /* Single-column grids */
  .steps    { grid-template-columns: 1fr; }
  .features { grid-template-columns: 1fr; }

  /* 2-col small cards */
  .card-layout {
    grid-template-columns: repeat(2, 1fr);
    gap: 10px;
  }

  /* Buttons stack */
  .btn-row {
    flex-direction: column;
    align-items: center;
  }
  .my-btn { width: 100%; max-width: 300px; justify-content: center; font-size: 13px; }

  /* Social find cards: 2 per row */
  .find-container { gap: 10px; }
  .find-card { width: calc(50% - 10px); min-width: 140px; padding: 18px 10px; }

  /* Mascot smaller */
  .anime-right { width: 72px; height: 72px; right: 8px; }

  /* T&C */
  .container-tnc { padding: 14px; }
  .content-box   { max-height: 48vh; padding: 12px; }
}

@media (max-width: 400px) {
  .card-layout  { grid-template-columns: 1fr; }
  .find-card    { width: 100%; max-width: 240px; }
}
