/* =========================================================
   Crypgo — static HTML + Bootstrap 5 conversion
   Dark theme only. Colors/spacing ported 1:1 from the
   original Tailwind config (tailwind.config.ts).
   ========================================================= */

:root {
  --primary: #99E39E;
  --secondary: #1DC8CD;
  --midnight-text: #263238;
  --muted: #d8dbdb;
  --error: #CF3127;
  --warning: #F7931A;
  --light-grey: #505050;
  --grey: #F5F7FA;
  --dark-grey: #1E2229;
  --border-c: #E1E1E1;
  --success: #3cd278;
  --section-c: #737373;
  --darkmode: #000510;
  --darklight: #0c372a;
  --dark-border: #959595;
  --teal-green: #477E70;
  --charcoal-gray: #666C78;
  --deep-slate: #282C36;
  --slate-gray: #2F3543;
}

html { scroll-behavior: smooth; }

body {
  background-color: var(--darkmode);
  color: var(--muted);
  font-family: "Inter", -apple-system, BlinkMacSystemFont, "Segoe UI", Roboto, Helvetica, Arial, sans-serif;
  overflow-x: hidden;
}

section { background-color: var(--darkmode); }

a { text-decoration: none; }

img { max-width: 100%; height: auto; }

.container-xl-custom {
  max-width: 1200px;
  margin-left: auto;
  margin-right: auto;
}

/* Text utilities matching the Tailwind custom color/size scale */
.text-primary-c { color: var(--primary) !important; }
.text-secondary-c { color: var(--secondary) !important; }
.text-muted-c { color: var(--muted) !important; }
.text-muted-c-60 { color: rgba(216, 219, 219, 0.6) !important; }
.text-white-c { color: #fff !important; }
.text-error-c { color: var(--error) !important; }
.text-darkmode-c { color: var(--darkmode) !important; }

.bg-primary-c { background-color: var(--primary) !important; }
.bg-darkmode-c { background-color: var(--darkmode) !important; }
.bg-darklight-c { background-color: var(--darklight) !important; }
.bg-dark-grey-c { background-color: var(--dark-grey) !important; }

.btn-primary-c {
  background-color: var(--primary);
  border: 1px solid var(--primary);
  color: var(--darkmode);
  border-radius: 0.5rem;
  padding: 0.6rem 1.6rem;
  font-weight: 500;
  transition: all .25s ease;
  display: inline-block;
}
.btn-primary-c:hover {
  background-color: transparent;
  color: var(--primary);
}

.btn-outline-primary-c {
  background-color: transparent;
  border: 1px solid var(--primary);
  color: var(--primary);
  border-radius: 0.5rem;
  padding: 0.6rem 1.6rem;
  font-weight: 500;
  transition: all .25s ease;
  display: inline-block;
}
.btn-outline-primary-c:hover {
  background-color: var(--primary);
  color: var(--darkmode);
}

/* Fluid type scale approximating the Tailwind fontSize scale */
.fs-86 { font-size: clamp(2.6rem, 2rem + 3vw, 5.375rem); line-height: 1.2; }
.fs-76 { font-size: clamp(2.4rem, 1.9rem + 2.6vw, 4.75rem); line-height: 1.2; }
.fs-70 { font-size: clamp(2.3rem, 1.8rem + 2.4vw, 4.375rem); line-height: 1.2; }
.fs-54 { font-size: clamp(2.1rem, 1.7rem + 1.8vw, 3.375rem); line-height: 1.2; }
.fs-44 { font-size: clamp(1.9rem, 1.6rem + 1.3vw, 2.75rem); line-height: 1.3; }
.fs-40 { font-size: clamp(1.7rem, 1.4rem + 1.3vw, 2.5rem); line-height: 1.3; }
.fs-30 { font-size: clamp(1.4rem, 1.2rem + 0.8vw, 1.875rem); line-height: 1.3; }
.fs-28 { font-size: 1.75rem; line-height: 2.25rem; }
.fs-24 { font-size: 1.5rem; line-height: 2rem; }
.fs-22 { font-size: 1.375rem; line-height: 2rem; }
.fs-21 { font-size: 1.3125rem; }
.fs-18 { font-size: 1.125rem; }
.fs-17 { font-size: 1.0625rem; }

.fw-medium { font-weight: 500; }

/* ---------- Header ---------- */
.site-header {
  position: fixed;
  top: 0;
  left: 0;
  width: 100%;
  z-index: 1030;
  padding-bottom: 1.25rem;
  padding-top: 3.5rem;
  transition: all .3s ease;
}
.site-header.is-sticky {
  background-color: var(--darkmode);
  box-shadow: 0 4px 20px rgba(0,0,0,.35);
  padding-top: 1.25rem;
}
@media (max-width: 991.98px) {
  .site-header { padding-top: 1.25rem; }
}

.nav-link-c {
  color: var(--muted);
  font-size: 1.0625rem;
  font-weight: 500;
  padding: 0.4rem 0;
}
.nav-link-c:hover,
.nav-link-c.active { color: var(--primary); }

.mobile-offcanvas {
  background-color: var(--darkmode) !important;
}
.mobile-offcanvas .nav-link-c { padding: .75rem 0; width: 100%; }

.hamburger span {
  display: block;
  width: 24px;
  height: 2px;
  background-color: #fff;
  margin-top: 6px;
}
.hamburger span:first-child { margin-top: 0; }

/* ---------- Hero ---------- */
.hero-section {
  position: relative;
  padding-top: 10rem;
  padding-bottom: 7rem;
  overflow: hidden;
  z-index: 1;
}
@media (max-width: 767.98px) {
  .hero-section { padding-top: 5rem; padding-bottom: 5rem; }
}
.hero-glow {
  position: absolute;
  width: 50rem;
  height: 50rem;
  max-width: 90vw;
  max-height: 90vw;
  background: radial-gradient(circle at 30% 30%, var(--teal-green), var(--charcoal-gray) 60%);
  filter: blur(220px);
  border-radius: 50%;
  top: -16rem;
  right: -3.5rem;
  z-index: -1;
}

/* Price ticker (replaces react-slick carousel) */
.ticker-wrap {
  overflow: hidden;
  margin-top: -4rem;
  position: relative;
}
@media (max-width: 767.98px) { .ticker-wrap { margin-top: 3rem; } }
.ticker-track {
  display: flex;
  width: max-content;
  animation: ticker-scroll 22s linear infinite;
}
.ticker-track:hover { animation-play-state: paused; }
@keyframes ticker-scroll {
  from { transform: translateX(0); }
  to { transform: translateX(-50%); }
}
.ticker-card {
  width: 270px;
  flex: 0 0 auto;
  margin-right: 1.5rem;
  background-color: rgba(30, 34, 41, .8);
  border-radius: 0.75rem;
  padding: 1.5rem 1.25rem;
}
.ticker-icon-wrap {
  border-radius: 50%;
  display: inline-flex;
  align-items: center;
  justify-content: center;
}

/* ---------- Generic section spacing helpers ---------- */
.section-pt-lg { padding-top: 7rem; }
.section-pt-xl { padding-top: 10rem; }
.section-pb-lg { padding-bottom: 7rem; }
.section-py-xl { padding-top: 10rem; padding-bottom: 10rem; }
@media (max-width: 767.98px) {
  .section-pt-lg, .section-pt-xl { padding-top: 3rem; }
  .section-pb-lg { padding-bottom: 3rem; }
  .section-py-xl { padding-top: 5rem; padding-bottom: 5rem; }
}

.icon-pill {
  background-color: rgba(80, 80, 80, .3);
  border-radius: 50%;
  padding: 1.1rem;
  display: inline-flex;
}

/* ---------- Platform CTA panel ---------- */
.platform-panel {
  background-color: rgba(115, 115, 115, .1);
  border: 2px solid rgba(115, 115, 115, .2);
  border-radius: 1.5rem;
  padding: 3.5rem 2.5rem;
  position: relative;
  overflow: hidden;
  z-index: 1;
}
@media (max-width: 767.98px) {
  .platform-panel { padding: 2rem 1.25rem; }
}

/* ---------- Timeline ---------- */
.timeline-node {
  position: absolute;
  width: 18rem;
  display: flex;
  align-items: center;
  gap: 1.5rem;
}
.timeline-icon-wrap {
  background-color: rgba(80, 80, 80, .45);
  backdrop-filter: blur(4px);
  border-radius: 50%;
  padding: 1rem 1.5rem;
  flex-shrink: 0;
}

/* ---------- Portfolio ---------- */
.portfolio-row td { border-bottom: 1px solid rgba(149, 149, 149, .1); padding: 1.25rem 0; }
.portfolio-icon {
  background-color: rgba(153, 227, 158, .2);
  border-radius: 50%;
  padding: 1rem;
  display: inline-flex;
}

/* ---------- Perks ---------- */
.perks-panel {
  border: 1px solid rgba(225, 225, 225, .2);
  border-radius: 1.5rem;
  padding: 4rem 2.5rem;
  background-color: rgba(30, 34, 41, .35);
  background-image: url('../images/perks/perk-bg.png');
  background-repeat: no-repeat;
  background-position: bottom center;
  background-size: cover;
}
@media (max-width: 991.98px) { .perks-panel { background-image: none; } }
.perk-icon {
  background-color: rgba(153, 227, 158, .25);
  backdrop-filter: blur(4px);
  border-radius: 50%;
  padding: 1rem;
  display: inline-flex;
}
.perks-eyebrow {
  position: relative;
  padding-bottom: 1.5rem;
}
.perks-eyebrow::after {
  content: "";
  position: absolute;
  bottom: 0;
  left: 50%;
  transform: translateX(-50%);
  width: 2rem;
  height: 2px;
  background-color: var(--primary);
}

/* ---------- Footer ---------- */
.site-footer { padding-top: 4rem; background-color: var(--darkmode); }
.footer-social {
  color: #fff;
  width: 40px;
  height: 40px;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  border: 1px solid rgba(255,255,255,.15);
  border-radius: 50%;
  transition: all .2s ease;
}
.footer-social:hover { color: var(--primary); border-color: var(--primary); }
.footer-links a { color: #fff; }
.footer-links a:hover { color: var(--primary); }
.footer-subscribe input {
  background-color: transparent;
  border: 1px solid rgba(149, 149, 149, .6);
  color: #fff;
  border-radius: 0.5rem;
  padding: 1rem 3rem 1rem 1.5rem;
  width: 100%;
}
.footer-subscribe input::placeholder { color: var(--muted); }
.footer-subscribe { position: relative; }
.footer-subscribe .send-icon {
  position: absolute;
  right: 1.6rem;
  top: 50%;
  transform: translateY(-50%);
  color: var(--primary);
}

/* ---------- Modals (Buy/Sell crypto, custom look on top of Bootstrap) ---------- */
.modal-content-c {
  background-color: rgba(30, 34, 41, .95);
  backdrop-filter: blur(6px);
  border-radius: 0.75rem;
  border: none;
  padding: 3.5rem 2rem 2rem;
  position: relative;
}
.modal-close-c {
  position: absolute;
  top: 1.25rem;
  right: 1.5rem;
  background: none;
  border: none;
  color: #fff;
  font-size: 1.5rem;
  line-height: 1;
}
.modal-close-c:hover { color: var(--primary); }
.form-control-c {
  background-color: transparent;
  border: 1px solid rgba(149, 149, 149, .6);
  color: #fff;
  border-radius: 0.5rem;
  padding: 0.75rem 1.25rem;
  width: 100%;
}
.form-control-c::placeholder { color: var(--grey); }
.form-control-c:focus {
  border-color: var(--primary);
  outline: none;
  color: #fff;
  background-color: transparent;
  box-shadow: none;
}
.dropdown-select-c {
  cursor: pointer;
  border: 1px solid rgba(149, 149, 149, .6);
  border-radius: 0.5rem;
  padding: 0.6rem 1rem;
  color: #fff;
}
.dropdown-list-c {
  position: absolute;
  z-index: 10;
  background-color: var(--dark-grey);
  border: 1px solid rgba(149, 149, 149, .6);
  border-radius: 0.5rem;
  width: 100%;
  margin-top: .25rem;
  max-height: 220px;
  overflow-y: auto;
}
.dropdown-list-c div {
  padding: 0.6rem 1rem;
  cursor: pointer;
}
.dropdown-list-c div:hover { background-color: var(--primary); color: var(--darkmode); }

/* ---------- Auth pages ---------- */
.auth-hero {
  padding-top: 8rem;
  padding-bottom: 3rem;
  text-align: center;
}
.auth-card {
  max-width: 460px;
  margin: 0 auto;
  background-color: rgba(30, 34, 41, .5);
  border-radius: 0.75rem;
  padding: 2.5rem 2rem;
}
.social-btn {
  background-color: var(--deep-slate);
  color: #fff;
  border-radius: 0.5rem;
  padding: 0.85rem;
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 0.6rem;
  width: 100%;
  border: none;
}
.social-btn:hover { background-color: var(--slate-gray); color: #fff; }
.divider-c {
  position: relative;
  text-align: center;
  margin: 2rem 0;
}
.divider-c::before, .divider-c::after {
  content: "";
  position: absolute;
  top: 50%;
  width: 40%;
  height: 1px;
  background-color: rgba(149, 149, 149, .6);
}
.divider-c::before { left: 0; }
.divider-c::after { right: 0; }

/* AOS-lite fade-up */
[data-fade] {
  opacity: 0;
  transform: translateY(24px);
  transition: opacity .6s ease, transform .6s ease;
}
[data-fade].in-view {
  opacity: 1;
  transform: translateY(0);
}

.no-underline-list { list-style: none; padding-left: 0; margin-bottom: 0; }
