
:root{
  --bg: #0b0f1a;
  --bg2:#0e1322;
  --surface:#121830;
  --card:#0f1630;
  --text:#e6e9f5;
  --muted:#9aa3b2;
  --accent:#7c5cff;
  --accent-2:#10e7ff;
  --green:#29f1a8;
  --yellow:#ffd34d;
  --danger:#ff5b79;
  --shadow:0 10px 30px rgba(0,0,0,.6);
  --radius:14px;
  --radius-sm:10px;
}

/* ===== Consistent link colors: blue base, green hover ===== */
:root{
  --link-blue: var(--accent-2); /* #10e7ff */
  --link-hover: var(--green);   /* #29f1a8 */
}

:root{
      --presale-accent: #FF1A1A;    /* red default */
      --presale-hover: #FF1A1A;     /* red on hover */
      --site-header-height:104px;   /* fallback header height; JS may overwrite this */
    }

*{box-sizing:border-box}
html,body{height:100%}
body{
  margin:0;
  font-family:Inter, system-ui, -apple-system, Segoe UI, Roboto, Ubuntu, Cantarell, Noto Sans, 'Helvetica Neue', Arial, 'Apple Color Emoji', 'Segoe UI Emoji', 'Segoe UI Symbol', sans-serif;
  color:var(--text);
  background: radial-gradient(1200px 600px at 70% -10%, rgba(124,92,255,.25), transparent 60%),
              radial-gradient(1200px 600px at -10% 20%, rgba(16,231,255,.18), transparent 60%),
              var(--bg);
  line-height:1.55;
}

img{max-width:100%; display:block}
.container{width:min(1160px, 92%); margin-inline:auto}

.topbar{
  background: linear-gradient(90deg, rgba(124,92,255,.25), rgba(16,231,255,.25));
  color:#00FF00;
  font-size:.9rem;
  border-bottom:1px solid rgba(255,255,255,.06);
}
.topbar .container{display:flex; gap:.75rem; align-items:center; padding:.55rem 0}
.pill{display:inline-block; padding:.2rem .5rem; border-radius:999px; background:rgba(124,92,255,.2); border:1px solid rgba(124,92,255,.35); color:#e9e3ff; font-weight:700; letter-spacing:.04em}
.topbar-link{color:#fff; font-weight:700; text-decoration:none; margin-left:auto}

.site-header{
  position:sticky; top:0; z-index:70;
  backdrop-filter: saturate(140%) blur(10px);
  background: linear-gradient(180deg, rgba(9,11,22,.85), rgba(9,11,22,.55));
  border-bottom:3px solid rgba(255,255,255,.06);
}

/* Header logo — move inline styles into CSS */
.site-header .logo {
  position: relative;
  display: inline-block;
  line-height: 1;
  padding-left: 56px;
  font-family: Outfit, Inter, sans-serif;
  font-weight: 900;
  font-size: 1.35rem;
  color: #00FF00;
  text-decoration: none;
}
.site-header .logo img {
  position: absolute;
  left: 0; top: 50%;
  transform: translateY(-50%);
  width: 70px; height: 70px; object-fit: contain;
}
.nav{
  display:flex; align-items:center; justify-content:space-between; gap:1rem;
  padding:.75rem 0;
}
.logo{font-family:Outfit, Inter, sans-serif; font-weight:900; font-size:1.35rem; color:#00FF00; text-decoration:none; letter-spacing:.5px}
.logo span{color:#BF00FF}

/* Shift main nav slightly left */
#primary-nav > ul {
  transform: translateX(-40px);   /* adjust value as needed */
}

/* Neon pulse overlay – inside your main CSS file */

/* Slide animation */
@keyframes pulse-slide {
  0% { left: -75%; opacity: 0; }
  50% { left: 125%; opacity: 1; }
  100% { left: 125%; opacity: 0; }
}

.section{padding: clamp(48px, 6vw, 88px) 0}
.section.alt{background: linear-gradient(180deg, rgba(11,15,26,.6), rgba(11,15,26,.9)); border-top:1px solid rgba(255,255,255,.06); border-bottom:1px solid rgba(255,255,255,.06)}

.center{text-align:center}
.muted{color:var(--muted)}
.accent{color:var(--accent-2); text-shadow:0 0 18px rgba(16,231,255,.28)}
.neon{color:var(--green); text-shadow:0 0 14px rgba(41,241,168,.35)}
.eyebrow{font-weight:800; letter-spacing:.06em; text-transform:uppercase; color:#b5fbe2; margin-bottom:.5rem}

.hero .hero-grid{display:grid; grid-template-columns: 1.1fr .9fr; gap:3rem; align-items:center}
.lede{color:#c7cde0; font-size:1.15rem; max-width:54ch}
.cta-row{display:flex; gap:1rem; flex-wrap:wrap; margin-top:1rem}

/* Hover effect */
.store-badge:hover {
  transform: scale(1.1) translateY(-5px);
  filter: drop-shadow(0 4px 15px rgba(0,255,255,0.5));
}

.store-badges{display:flex; gap:1rem; margin-top:1.25rem}
.store-badge{display:flex; gap:.7rem; align-items:center; padding:.55rem .85rem; border-radius:12px; background:linear-gradient(180deg, #0f1530, #0a1027); border:1px solid rgba(255,255,255,.12); color:#e6e9f5; text-decoration:none; box-shadow:0 4px 18px rgba(0,0,0,.35)}
.store-badge{border: 1px solid #00FFFF;}
.badge-icon{font-size:1.6rem}
.badge-text span{display:block; font-size:.7rem; color:#b9c3d9}
.badge-text strong{font-size:1.05rem}
.badge-row{display:flex; gap:.75rem; flex-wrap:wrap; margin:.5rem 0 1rem}
.audit-badge{background:rgba(124,92,255,.15); border:1px solid rgba(124,92,255,.35); color:#e0dcff; font-weight:700; padding:.4rem .6rem; border-radius:999px}
.audit-img{border:1px solid rgba(255,255,255,.07); border-radius:12px}
.audits-grid{display:grid; grid-template-columns: 1.2fr .8fr; gap:2rem; align-items:start}
.trust-row{display:flex; gap:1rem; list-style:none; padding:0; margin:1rem 0 0}
.trust-row li{display:flex; gap:.5rem; align-items:center; color:#bcd; background:rgba(255,255,255,.06); padding:.4rem .6rem; border-radius:999px; font-weight:600}

.hero-media{position:relative}
.device-slider{position:relative; background: radial-gradient(400px 160px at 50% -40px, rgba(124,92,255,.25), transparent 60%), linear-gradient(180deg, #0b0f1a, #0b0f1a); border-radius: 22px; padding:1.25rem; border:1px solid rgba(255,255,255,.08); box-shadow: var(--shadow)}
.slides{position:relative; overflow:hidden; border-radius: 14px}
.slide{width:100%; height:auto; display:none}
.slide.active{display:block}
.slider-btn{position:absolute; top:50%; transform:translateY(-50%); width:40px; height:40px; border-radius:999px; border:1px solid rgba(255,255,255,.18); background:rgba(11,15,26,.6); color:#fff; font-size:1.4rem}
.slider-btn.prev{left:10px}
.slider-btn.next{right:10px}
.dots{display:flex; gap:.45rem; justify-content:center; margin-top:.75rem}
.dots button{width:8px;height:8px;border-radius:999px;border:none;background:#2a3350}
.dots button.active{background: var(--accent)}

.raised{margin-top:1.25rem}
.raised-card {
  display:flex;
  gap:1rem;
  align-items:center;
  background: linear-gradient(180deg, #091022, #0a1326);
  border: 1px solid #00FFFF;
  border-radius: 18px;
  padding:.75rem 1rem;
  box-shadow: var(--shadow);
  height: 300px;          /* ✅ force same height as left block */
}
.raised-card {
  align-items: center;
  justify-content: center;   /* optional: centers text vertically + horizontally */
}
.raised-card .mascot{width:72px}
.raised-card .sub{color:#c3ffe7; font-weight:800; letter-spacing:.06em; text-transform:uppercase; margin:0}
.raised-card h3{margin:.2rem 0; font-size:1.6rem}
.raised-card .curr{color:#b7c2de; font-weight:700}
.next-price{color:#94a0bd; margin:0}

.split .split-grid{display:grid; grid-template-columns: 1fr 1fr; gap:2rem}
.panel{background: linear-gradient(180deg, #0d1330, #0b1226); border:1px solid rgba(255,255,255,.08); border-radius:18px; padding:1.25rem; box-shadow: var(--shadow)}
.panel h2{margin-top:0}
.stats-row{display:flex; gap:1rem; flex-wrap:wrap}
.stat{background:rgba(255,255,255,.06); padding:.5rem .75rem; border-radius:10px}
.stat .label{display:block; font-size:.7rem; color:#a8b2cc; letter-spacing:.06em}
.stat .value{font-weight:800; font-size:1.1rem}
.columns{display:grid; grid-template-columns: 1fr 1fr; gap:1rem; margin-top:.5rem}
.columns ul{margin:.2rem 0 0; padding-left:1.1rem}
.panel-illustration{margin-top:1rem; border-radius:14px; overflow:hidden; border:1px solid rgba(255,255,255,.06)}

.box-grid{display:grid; grid-template-columns: repeat(4, 1fr); gap:1rem; margin-top:.5rem}
.box{background:rgba(255,255,255,.06); padding:1rem; border-radius:12px; text-align:center}
.box h4{margin:.25rem 0 .5rem}
.odds{color:#b3c0db; font-weight:700}
.donut-play-btn {
  margin-left: 12px;
  background: rgba(0,212,255,0.08);
  border: 1px solid #00FFFF;
  color: #00d4ff;
  padding: 6px 10px;
  border-radius: 8px;
  cursor: pointer;
  font-size: 14px;
  backdrop-filter: blur(3px);
  transition: all 0.25s ease;
  box-shadow:
    0 0 8px rgba(0,212,255,0.20),
    inset 0 0 6px rgba(0,212,255,0.15);
}

/* Reset button styling — visible/fallback safe */
.donut-reset-btn {
  position: absolute;
  bottom: 16px;
  right: 16px;
  width: 42px;
  height: 42px;
  border-radius: 50%;
  border: 2px solid #00d4ff;      /* purple neon stroke */
  background: rgba(20,20,35,0.75);
  color: #8a63ff;
  font-size: 18px;
  font-weight: bold;
  display: flex;
  align-items: center;
  justify-content: center;
  cursor: pointer;
  transition: 0.25s ease;
  box-shadow: 0 0 8px #8a63ff50;
  z-index: 10;
}

/* Hover effect */
.donut-play-btn:hover {
  background: #20ff60;
  color: #20ff60;
  box-shadow: 0 0 16px #20ff60;
  transform: scale(1.08);
}

/* Screen-reader only helper */
.sr-only { position:absolute !important; width:1px; height:1px; padding:0; margin:-1px; overflow:hidden; clip:rect(0,0,0,0); white-space:nowrap; border:0; }

/* Security Section Cards */
.sec-card {
  position: relative;
  overflow: hidden;
  transition: transform 0.3s ease, box-shadow 0.3s ease, background-color 0.3s ease;
  cursor: pointer;
  background-color: rgba(255, 255, 255, 0.02);
  border-radius: 12px;
  padding: 20px;
}

/* Hover effect */
.sec-card:hover {
  transform: scale(1.1) translateY(-5px);
  filter: drop-shadow(0 4px 15px rgba(0,255,255,0.5));
}

.sec-card:hover {
  transform: translateY(-5px) scale(1.03);
  box-shadow: 0 10px 25px rgba(0, 0, 0, 0.25);
  background-color: rgba(255, 255, 255, 0.05);
}

/* Glimmer Effect */
.sec-card::before {
  content: "";
  position: absolute;
  top: -50%;
  left: -50%;
  width: 200%;
  height: 200%;
  background: linear-gradient(
    120deg,
    rgba(255, 255, 255, 0.0) 0%,
    rgba(255, 255, 255, 0.25) 50%,
    rgba(255, 255, 255, 0.0) 100%
  );
  transform: rotate(25deg) translateX(-100%);
  transition: transform 0.7s ease;
  pointer-events: none;
}

.sec-card:hover::before {
  transform: rotate(25deg) translateX(100%);
}

/* Glowing Title on Hover */
.sec-card h4 {
  transition: text-shadow 0.3s ease, color 0.3s ease;
}

.sec-card:hover h4 {
  color: #ffff77; /* soft yellow glow */
  text-shadow:
    0 0 5px #ffff77,
    0 0 10px #ffff77,
    0 0 15px #ffff77,
    0 0 20px #ffffaa;
}

.security-grid{display:grid; grid-template-columns: repeat(4, 1fr); gap:1rem; margin-top:1rem}
.sec-card{background:linear-gradient(180deg, #0e1433,#0c142a); border:1px solid rgba(255,255,255,.08); border-radius:16px; padding:1rem}
.sec-card.wide{grid-column: span 4}
.sec-card h4{margin:.25rem 0  .4rem}
.sec-card ul{margin:0; padding-left:1.15rem}
.sec-card .two-col{columns:2}
.sec-card{border: 1px solid #00FFFF;}
.token-grid{display:grid; grid-template-columns: 1fr 1fr; gap:2rem; align-items:center}
.legend{display:grid; grid-template-columns: repeat(2, minmax(0,1fr)); gap:.4rem 1rem; padding-left:0; list-style:none}
.legend .swatch{display:inline-block; width:22px;height:12px;border-radius:999px; margin-right:.5rem; vertical-align:middle}
.s1{background:#7c5cff}
.s2{background:#10e7ff}
.s3{background:#29f1a8}
.s4{background:#ffd34d}
.s5{background:#ff5b79}
.s6{background:#6fe0a8}

.donut{--size:min(360px, 70vw); width:var(--size); height:var(--size); border-radius:50%;
  background: conic-gradient(#7c5cff 0 20%, #10e7ff 20% 40%, #29f1a8 40% 55%, #ffd34d 55% 72%, #ff5b79 72% 86%, #6fe0a8 86% 100%);
  position:relative; margin-inline:auto; box-shadow:0 30px 80px rgba(124,92,255,.15), inset 0 0 0 10px rgba(255,255,255,.04);
}
.donut-hole{position:absolute; inset:10%; border-radius:50%; background:linear-gradient(180deg,#0c1226,#0a0f1f); box-shadow: inset 0 8px 16px rgba(0,0,0,.35)}
.token-mascot{width:140px; margin:1rem auto 0; filter: drop-shadow(0 10px 20px rgba(0,0,0,.5))}

.flow{display:grid; grid-template-columns:repeat(3,1fr); gap:.75rem}
.flow-full{margin-top:1rem; border:1px solid rgba(255,255,255,.06); border-radius:12px; overflow:hidden}
.flow-full img{width:100%}

.dash-grid{display:grid; grid-template-columns: 1fr 1fr; gap:2rem; align-items:center}
.dash-media img{border:1px solid rgba(255,255,255,.08); border-radius:16px; overflow:hidden}

.roadmap img{border:1px solid rgba(255,255,255,.08); border-radius:16px; box-shadow: var(--shadow)}

@media (max-width: 1024px){
  #primary-nav{display:none; position:absolute; left:0; right:0; top:100%; background:linear-gradient(180deg, #0b0f1a, #0b0f1a); border-bottom:1px solid rgba(255,255,255,.06)}
  #primary-nav.open{display:block}
  #primary-nav ul{flex-direction:column; padding:1rem; gap:.25rem}
  .hamburger{display:flex}
  .hero .hero-grid{grid-template-columns:1fr}
  .split .split-grid{grid-template-columns:1fr}
  .security-grid{grid-template-columns: repeat(2, 1fr)}
  .token-grid{grid-template-columns: 1fr}
  .audits-grid{grid-template-columns:1fr}
  .dash-grid{grid-template-columns:1fr}
}

@media (max-width: 640px){
  .store-badges{flex-direction:column; align-items:flex-start}
  .columns{grid-template-columns:1fr}
  .box-grid{grid-template-columns: repeat(2, 1fr)}
  .security-grid{grid-template-columns: 1fr}
}

  /* Equal columns for the hero (keeps the look you want) */
  #presale .hero-grid {
    display: grid;                /* in case old CSS didn’t set it */
    grid-template-columns: 1fr 1fr !important;
    column-gap: 3rem !important;
  }

  /* Left column cap (mirror this width on the right) */
  #presale .hero-copy {
    width: 100% !important;
    max-width: 440px !important;   /* tweak this number to match your “PRESALE LIVE” block */
  }

  /* Right column card: same cap whether it's a direct card or wrapped in .raised */
  #presale .hero-media > .raised-card,
  #presale .hero-media > .hero-video,
  #presale .hero-grid > .raised .raised-card {
    width: 100% !important;
    max-width: 440px !important;
    display: flex; flex-direction: column; align-items: center;
    margin: 0 !important;
  }

  /* Video itself scales inside the capped card */
  #presale .hero-media video {
    width: 100% !important;
    height: auto !important;
    border-radius: 12px;
    border: 1px solid #00FFFF;
  }

  /* Do NOT center the whole right column; keep it left-aligned in its grid cell */
  #presale .hero-media { display: block !important; }

/* ---- Audits & Compliance slider sizing + centering ---- */

/* 1) Let the single .audits block span both grid columns, so the slider can use full width */
.audits-grid > .audits {
  grid-column: 1 / -1;
}

/* 2) Center the slider block and choose how big it can get */
:root { --audit-slider-max: 1080px; }  /* tweak (e.g., 1000px, 1120px) */
.audits .hero-media {
  display: flex;
  justify-content: center;
}
.audits .hero-media .device-slider {
  width: min(100%, var(--audit-slider-max));
  margin: 0 auto;                 /* center within container */
}

/* 3) Make sure both arrows sit ABOVE the slides so they are clickable */
.audits .hero-media .slides { position: relative; z-index: 1; }
.audits .hero-media .slider-btn { z-index: 5; }



/* (nice-to-have) images fill the slider width cleanly */
.audits .hero-media .slide { width: 100%; height: auto; display: none; }
.audits .hero-media .slide.active { display: block; }

/* ===========================
   SAFE-AREA + RESPONSIVE STYLES
   (Drop this in after your existing .presale-floater / .back-to-top)
   =========================== */

/* Friendly variables */
:root{
  --presale-red-rgb: 255,26,26;
  --presale-text: #ff2b2b;
  --backtop-outline: rgba(255,26,26,0.10);
  --safe-gap: 16px;
}

/* Helper: read safe-area insets with fallbacks (env() preferred, constant() legacy) */
:root {
  --safe-top: env(safe-area-inset-top, 0px);
  --safe-right: env(safe-area-inset-right, 0px);
  --safe-bottom: env(safe-area-inset-bottom, 0px);
  --safe-left: env(safe-area-inset-left, 0px);
}

/* -------------------------
   PRESALE FLOATER (uses safe area)
   ------------------------- */
.presale-floater{
  position: fixed !important;

  /* base: use your default offset + any safe-area inset */
  top: calc(76px + var(--safe-top));
  right: calc(110px + var(--safe-right));
  z-index: 999999 !important;
  display: inline-flex;
  align-items: center;
  gap: 10px;
  padding: 10px 16px;
  border-radius: 999px;
  border: 2px solid rgba(var(--presale-red-rgb),0.95);
  background: transparent;
  color: var(--presale-text);
  font-weight: 700;
  font-size: 15px;
  line-height: 1;
  text-decoration: none;
  transform: scale(1.12);
  opacity: 1;
  pointer-events: auto;
  -webkit-tap-highlight-color: transparent;

  transition: transform 200ms ease, box-shadow 200ms ease;
  isolation: isolate;
}

/* soft background glow via pseudo element (keeps pill shape) */
.presale-floater::after{
  content: "";
  position: absolute;
  left: 50%;
  top: 50%;
  transform: translate(-50%, -50%) scale(0.98);
  width: 120%;
  height: 120%;
  border-radius: 999px;
  background: radial-gradient(circle, rgba(var(--presale-red-rgb),0.18) 0%, rgba(var(--presale-red-rgb),0.06) 35%, transparent 60%);
  filter: blur(8px);
  pointer-events: none;
  z-index: -1;
  transition: transform .24s ease, filter .18s ease, opacity .18s ease;
}

.presale-floater:hover,
.presale-floater:focus {
  transform: scale(1.24);
  box-shadow: 0 8px 20px
}
.presale-floater:hover::after,
.presale-floater:focus::after {
  transform: translate(-50%, -50%) scale(1.06);
  filter: blur(12px);
  
}
.presale-floater:focus {
  outline: none;
  box-shadow: 0 0 0 6px rgba(var(--presale-red-rgb),0.06);
}

/* -------------------------
   BACK-TO-TOP (uses safe area)
   ------------------------- */
.back-to-top {
  position: fixed;

  /* base: use your default offset + safe bottom/right */
  right: calc(220px + var(--safe-right));
  bottom: calc(80px + var(--safe-bottom));

  display: inline-flex;
  align-items: center;
  justify-content: center;

  width: 85px;
  height: 85px;
  padding: 0;
  border-radius: 50%;
  background: transparent;
  border: none;
  cursor: pointer;
  text-decoration: none;

  transition: transform 200ms ease, opacity 200ms ease, box-shadow 200ms ease;
  transform-origin: center center;
  isolation: isolate;
  z-index: 99999;
  overflow: visible;
}

/* ensure image inside is circular */
.back-to-top img,
.back-to-top svg {
  width: calc(100% - 8px);
  height: calc(100% - 8px);
  border-radius: 50%;
  display: block;
  object-fit: cover;
  pointer-events: none;
}

/* circular glow behind */
.back-to-top::after {
  content: "";
  position: absolute;
  left: 50%;
  top: 50%;
  transform: translate(-50%, -50%) scale(1);
  width: 120%;
  height: 120%;
  border-radius: 50%;
  background: radial-gradient(circle, rgba(var(--presale-red-rgb),0.20) 0%, rgba(var(--presale-red-rgb),0.06) 30%, transparent 65%);
  filter: blur(10px);
  pointer-events: none;
  z-index: -1;
  transition: transform .18s ease, filter .18s ease, opacity .18s ease;
}

.back-to-top:hover,
.back-to-top:focus {
  transform: scale(1.12);
  box-shadow: 0 8px 20px
}
.back-to-top:hover::after,
.back-to-top:focus::after {
  transform: translate(-50%, -50%) scale(1.18);
  filter: blur(14px);
  opacity: 1;
}
.back-to-top:focus {
  outline: none;
  box-shadow: 0 0 0 6px rgba(var(--presale-red-rgb),0.06);
}

/* -------------------------
   RESPONSIVE ADJUSTMENTS (respect safe area)
   ------------------------- */

/* Very small phones */
@media (max-width: 399px) {
  .presale-floater {
    top: calc(var(--safe-top) + 10px);
    right: calc(var(--safe-right) + 10px);
    padding: 8px 12px;
    font-size: 13px;
    transform: scale(1);
    border-width: 1.5px;
  }
  .presale-floater::after { width: 140%; height: 140%; filter: blur(6px); }

  .back-to-top {
    right: calc(var(--safe-right) + 12px);
    bottom: calc(var(--safe-bottom) + 12px);
    width: 56px;
    height: 56px;
    border-width: 1.5px;
  }
}

/* Small phones & large phones */
@media (min-width: 400px) and (max-width: 599px) {
  .presale-floater {
    top: calc(var(--safe-top) + 12px);
    right: calc(var(--safe-right) + 14px);
    padding: 9px 14px;
    font-size: 14px;
  }
  .presale-floater::after { width: 130%; height: 130%; }

  .back-to-top {
    right: calc(var(--safe-right) + 16px);
    bottom: calc(var(--safe-bottom) + 16px);
    width: 60px;
    height: 60px;
  }
}

/* Tablets */
@media (min-width: 600px) and (max-width: 899px) {
  .presale-floater {
    top: calc(var(--safe-top) + 22px);
    right: calc(var(--safe-right) + 20px);
    padding: 10px 14px;
    font-size: clamp(14px, 1.2vw, 15px);
    transform: scale(1.08);
  }
  .back-to-top {
    right: calc(var(--safe-right) + 22px);
    bottom: calc(var(--safe-bottom) + 20px);
    width: 64px;
    height: 64px;
  }
}

/* Small laptops */
@media (min-width: 900px) and (max-width: 1299px) {
  .presale-floater {
    top: calc(var(--safe-top) + 34px);
    right: calc(var(--safe-right) + 140px);
  }
  .back-to-top {
    right: calc(var(--safe-right) + 160px);
    bottom: calc(var(--safe-bottom) + 70px);
  }
}

/* Desktop / large */
@media (min-width: 1300px) {
  .presale-floater {
    top: calc(76px + var(--safe-top));
    right: calc(210px + var(--safe-right));
    font-size: 15px;
    transform: scale(1.12);
  }
  .back-to-top {
    right: calc(220px + var(--safe-right));
    bottom: calc(80px + var(--safe-bottom));
    width: 85px;
    height: 85px;
  }
}

/* Extra wide screens — keep floater from being too far out */
@media (min-width: 2000px) {
  .presale-floater { right: calc(140px + var(--safe-right)); }
  .back-to-top { right: calc(160px + var(--safe-right)); }
}

/* -------------------------
   NOTES
   - env() handles iOS safe area insets. `constant()` is not required here because env() is standard,
     but older WebKit can be supported with additional fallbacks if you need them.
   - Ensure your HTML elements are keyboard-accessible:
       <a class="presale-floater" href="/presale" aria-label="Presale">Presale</a>
       <button class="back-to-top" aria-label="Back to top">...</button>
   - If you use JS to toggle visibility, keep positions unchanged; safe area will still apply.
   ------------------------- */


/* Explicit placement */
/* Top row */
.partners-container {
  border: 1px solid #00FFFF;
  background: rgba(0,212,255,0.03);
  backdrop-filter: blur(4px);
  box-shadow:
    0 0 18px rgba(0,212,255,0.3),
    inset 0 0 12px rgba(0,212,255,0.15);
}
/* Partners section gradient background */
.partners-container {
  max-width: 1200px;
  margin: 0 auto;
  padding: 40px 20px;
  border-radius: 16px;
  background: linear-gradient(135deg, rgba(0,212,255,0.15), rgba(125,0,255,0.15));
  /* Optional: add glow overlay if desired */
  box-shadow: 0 0 18px rgba(0,212,255,0.3), inset 0 0 12px rgba(125,0,255,0.1);
}

.partners-logos {
  display: grid;               /* enable grid layout */
  grid-template-columns: repeat(5, 1fr); /* 5 equal columns */
  gap: 2rem;                   /* spacing between logos */
  justify-items: center;       /* center each logo in its column */
  align-items: center;
}

/* Top row */
.partners-logos .partner-logo:nth-child(1) { grid-column: 1; } /* Chainlink */
.partners-logos .partner-logo:nth-child(2) { grid-column: 3; } /* MEV Blocker */
.partners-logos .partner-logo:nth-child(3) { grid-column: 5; } /* Swarm */

/* Bottom row (staggered) */
.partners-logos .partner-logo:nth-child(4) { grid-column: 2; } /* Ethereum */
.partners-logos .partner-logo:nth-child(5) { grid-column: 4; } /* Cyberscope */

/* Logo sizing */
.partner-logo img {
  height: 85px;
  width: auto;
  opacity: 0.92;
  object-fit: contain;
  transition: transform 0.25s ease-out, opacity 0.25s ease-out;
}
/* Hover effect */
h2.partners-heading :hover {
  transform: scale(1.08);
  filter: drop-shadow(0 0 10px rgba(255,255,255,.35));
}

/* Hover effect */
.partner-logo img:hover {
  transform: scale(1.08);
  filter: drop-shadow(0 0 10px rgba(255,255,255,.35));
}

/* Mobile: fallback to 2-column grid */
@media (max-width: 768px) {
  .partners-logos {
    grid-template-columns: repeat(2, 1fr);
  }

  .partners-logos .partner-logo {
    grid-column: auto;        /* reset manual placement */
    justify-self: center;
  }

  .partner-logo img {
    height: 60px;
  }
}

.partners-section {
  text-align: center;
  padding: 4rem 2rem;
  background-color: #0a0a0a;
}

.partners-heading {
  font-size: 2rem;
  margin-bottom: 3rem;
  color: #fff;
}

/* Container for staggered logos */
/* Use grid for explicit column placement (restores old stagger) */
.partners-logos.staggered,
.partners-logos {
  display: grid;
  grid-template-columns: repeat(5, 1fr); /* 5 columns */
  gap: 2rem;                              /* gap between cells */
  justify-items: center;
  align-items: center;
  width: 100%;
  max-width: 1200px;
  margin: 0 auto;
}

/* Individual logos with staggered effect */
.partner-logo {
  flex: 0 1 120px; /* adjust base width */
  display: flex;
  align-items: center;
  justify-content: center;
  transition: transform 0.3s ease, filter 0.3s ease;
  position: relative;
}

/* Staggered vertical offset using nth-child */
.partner-logo:nth-child(odd) {
  top: 0;
}

.partner-logo:nth-child(even) {
  top: 20px; /* vertical stagger offset */
}

/* Hover effect */
.partner-logo:hover {
  transform: scale(1.1) translateY(-5px);
  filter: drop-shadow(0 4px 15px rgba(0,255,255,0.5));
}

.partner-logo img {
  max-width: 100%;
  height: auto;
  display: block;
}

/* Make section titles consistent aqua */
.section-title,
.partners-section h2,
.security-section h2 {
  color: var(--aqua) !important;
}

/* Adjust Security Section Spacing */
#security {
  padding-top: 50px;  /* reduce top padding */
  padding-bottom: 50px; /* reduce bottom padding */
}

.security-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(250px, 1fr));
  gap: 20px; /* reduce gap between cards */
}

.sec-card {
  padding: 15px 20px; /* slightly reduce padding inside each card */
}

/* ENLARGED LOGOS */
.partner-logo img {
  height: 85px;                     /* bigger logos */
  width: auto;
  opacity: 0.92;
  transition: transform 0.25s ease-out, opacity 0.25s ease-out;
}

/* Mobile adjustments */
@media (max-width: 768px) {
  .partner-logo img {
    height: 60px;
  }
}
/* --- Nudge the Connect card upward slightly (fine‑tune) --- */
:root { --footer-card-top-nudge: -50px; }   /* tweak: try -6px, -10px */
  
/* Footer layout */
.footer-grid {
  display: grid;
  grid-template-columns: 1fr auto;
  align-items: start;
  gap: 2rem;
}

/* Footer logo — move inline styles into CSS */
.site-footer .logo {
  position: relative;
  display: inline-block;
  line-height: 1;
  padding-left: 56px;
  font-family: Outfit, Inter, sans-serif;
  font-weight: 900;
  font-size: 1.35rem;
  color: #00FF00;
  text-decoration: none;
}
.site-footer .logo img {
  position: absolute;
  left: 0; top: 50%;
  transform: translateY(-50%);
  width: 70px; height: 70px; object-fit: contain;
}

/* Footer link base color */
.site-footer nav a {
  color: #10e7ff; /* aqua */
  text-decoration: none;
  font-weight: 600;
  opacity: 0.96;
  transition: 
    color .18s ease,
    text-shadow .18s ease,
    transform .18s ease,
    text-decoration .18s ease;
}

/* Hover + Focus */
.site-footer nav a:hover,
.site-footer nav a:focus {
  color: #20ff60; /* neon green hover */
  text-shadow: 0 0 10px #20ff60,
               0 0 18px #20ff60; /* glow */
  transform: scale(1.08); /* slight enlarge */
  text-decoration: underline; /* underline */
  text-underline-offset: 3px; /* cleaner spacing */
  outline: none;
}

/* Site-header link base color */
.site-header nav a {
  color: #10e7ff; /* aqua */
  text-decoration: none;
  font-weight: 600;
  opacity: 0.96;
  transition: 
    color .18s ease,
    text-shadow .18s ease,
    transform .18s ease,
    text-decoration .18s ease;
}

.site-header nav a:hover,
.site-header nav a:focus {
  color: #20ff60; /* neon green hover */
  text-shadow: 0 0 10px #20ff60,
               0 0 18px #20ff60; /* glow */
  transform: scale(1.08); /* slight enlarge */
  text-decoration: underline; /* underline */
  text-underline-offset: 3px; /* cleaner spacing */
  outline: none;
}

/* Legal row spacing */
.legal-row { margin-top: 8px; }
.copyright {
  text-align: left;
  opacity: .85;
  border-top: 1px solid rgba(255,255,255,.12);
  padding-top: 12px;
}

/* ===== Footer logo size = Header logo size ===== */

/* Vertical spacing so copyright/disclaimer sit off the bottom */
.site-footer { padding-bottom: 40px; }     /* space below */
.site-footer .legal-row { margin-top: 8px; }
.site-footer .disclaimer { margin-top: 14px; }

/* Mobile: reset nudges so it flows naturally */
@media (max-width: 768px) {
  .site-footer .foot-connect {
    margin-top: 0;
    margin-right: 0;
    justify-self: stretch;
  }

  /* Stack on small screens */
  .footer-grid { grid-template-columns: 1fr; }
  .copyright { text-align: center; }
}

:root{
  --breakpoint-xs: 0;
  --breakpoint-sm: 576px;
  --breakpoint-md: 720px;
  --breakpoint-lg: 968px;
  --breakpoint-xl: 1376px;
  --aqua: #10e7ff;
  --aqua-rgb: 16,231,255;
  --green-rgb: 32,255,96;
  --presale-red-rgb: 255,26,26;
  --nav-icon-size: clamp(34px, 3.6vw, 42px);
  --logo-size: clamp(48px, 6.5vw, 70px);
  --safe-gap: 16px;
}

/* -- Tokenomics / whitepaper small list spacing -- */
#tokenomics .legend li,
#whitepaper .checklist li {
  margin-bottom: 0.45rem;
}

#whitepaper .badge-row { margin-bottom: 0.75rem; }

/* -----------------------
   Nav & Footer Socials Unified
   ----------------------- */
.nav-social a,
.nav-actions-social a,
.site-footer .social a {
  display: inline-grid;
  place-items: center;
  width: var(--nav-icon-size);
  height: var(--nav-icon-size);
  border-radius: 10px;
  border: 2px solid #00FFFF;
  background: linear-gradient(180deg, rgba(255,255,255,.01), rgba(255,255,255,.005));
  text-decoration: none;
  transition: transform .12s ease, box-shadow .12s ease, border .12s ease;
  margin-left: 6px;
}

/* make first child align flush */
.nav-social a:first-child,
.site-footer .social a:first-child { margin-left: 0; }

.nav-social img,
.nav-actions-social img,
.site-footer .social img { width: 18px; height: 18px; display:block; }

.nav-social,
.nav-actions-social,
.site-footer .social { display:flex; gap:6px; align-items:center; }

/* hover/focus */
.nav-social a:hover,
.nav-actions-social a:hover,
.site-footer .social a:hover,
.nav-social a:focus-visible,
.nav-actions-social a:focus-visible,
.site-footer .social a:focus-visible {
  transform: translateY(-3px);
  box-shadow: 0 8px 20px #39FF14, .18);
  outline: none;
}

/* small focus ring */
.nav-social a:focus-visible,
.nav-actions-social a:focus-visible,
.site-footer .social a:focus-visible {
  box-shadow: 0 0 0 4px #39FF14, .18);
  border-radius: 10px;
}

/* -----------------------
   Logo sizing
   ----------------------- */
.site-header .logo img {
  width: var(--logo-size);
  height: var(--logo-size);
  object-fit: contain;
  display: block;
}

/* -----------------------
   Raised Card: image on top + spacing
   ----------------------- */
.raised-card {
  display: flex;
  flex-direction: column;
  align-items: center;
  text-align: center;
  gap: 1.25rem;
  padding: clamp(12px, 1.2vw, 24px);
  background: rgba(20,22,28,0.8);
  border-radius: 1rem;
  box-shadow: 0 6px 18px rgba(var(--aqua-rgb), .06);
  transition: transform .3s ease, box-shadow .3s ease;
}

.raised-card:hover { transform: translateY(-6px); box-shadow: 0 12px 24px rgba(var(--aqua-rgb), .12); }

.raised-card img {
  display:block;
  max-width: 80%;
  height:auto;
  margin:0 auto;
  border-radius: .5rem;
  transition: transform .15s ease;
}
.raised-card img:hover { transform: scale(1.04) rotate(-1deg); }

.raised-card .raised-copy { display:flex; flex-direction:column; gap:.6rem; align-items:center; }

/* tighter default split-grid spacing */
.container.split-grid { margin-bottom: 1.5rem !important; }

/* Partners / Security spacing */
.partners-section { margin: 1.5rem 0 !important; }
.security-section { margin-top: 1.5rem !important; }

/* ---------- Split grid responsive ---------- */
@media (min-width: 960px) {
  .split-grid {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 2.2rem;
    align-items: start;
  }
}
@media (max-width: 959px) {
  .split-grid { display:block; }
}

/* Game title + icon (consolidated, responsive) */
.split-grid .panel h2.game-title {
  display:flex;
  align-items:center;
  gap:.6rem;
  color:var(--aqua);
  font-weight:700;
  letter-spacing:-0.5px;
  margin-bottom:.5rem;
  transition: transform .18s ease, text-shadow .18s ease, filter .18s ease;
  will-change: transform, text-shadow;
  text-shadow: 0 6px 18px rgba(var(--aqua-rgb), .06);
}
.split-grid .panel .game-icon {
  width: 1.45em;
  height: 1.45em;
  display:inline-grid;
  place-items:center;
  border-radius:50%;
  flex:0 0 1.45em;
  background: transparent;
  box-shadow: 0 6px 18px rgba(var(--aqua-rgb), .06);
  transition: transform .18s ease, filter .18s ease;
}
.split-grid .panel .game-icon svg { width:100%; height:100%; display:block; }

/* gloss + hover */
.split-grid .panel .game-icon .gloss { fill: rgba(255,255,255,.55); mix-blend-mode: screen; transform-origin:center; transform: translateX(-160%) rotate(-18deg); opacity:0; filter: blur(6px); }
.split-grid .panel h2.game-title:hover { transform: scale(1.1) translateY(-5px); filter: drop-shadow(0 4px 15px rgba(0,255,255,.5)); }
.split-grid .panel h2.game-title:hover .game-icon { transform: scale(1.1) translateY(-5px); filter: drop-shadow(0 4px 15px rgba(0,255,255,.5)); }

/* strokes for svg balls */
.split-grid .panel .game-icon .ball-outer { stroke: rgba(0,0,0,.14); stroke-width: 0.9; vector-effect: non-scaling-stroke; filter: drop-shadow(0 6px 12px rgba(var(--aqua-rgb), .06)); }
.split-grid .panel .game-icon .ball-inner-stroke { stroke: rgba(0,0,0,.06); stroke-width: .6; vector-effect: non-scaling-stroke; }
.split-grid .panel .game-icon .num { paint-order: stroke fill; stroke: rgba(0,0,0,.38); stroke-width: .6px; font-weight:800; }

/* ---------- Token grid / donut (responsive) ---------- */
.container.token-grid {
  display:grid;
  grid-template-columns: minmax(220px, 360px) 1fr;
  gap: 28px;
  align-items:center;
}
@media (max-width:880px) {
  .container.token-grid { grid-template-columns: 1fr; }
  .token-graphic-left { margin-bottom: 18px; }
  .token-copy-right { padding-left: 0; }
}
/* donut sizing fluid */
#donut-wrapper-tk { cursor:pointer; width: clamp(180px, 32vw, 320px); height: clamp(180px, 32vw, 320px); }
.donut-slice { fill:none; stroke-linecap:butt; transition: stroke-width .28s ease, filter .28s ease, stroke .28s ease; stroke-width:18; filter: drop-shadow(0 2px 6px rgba(0,0,0,.12)); }
.donut-slice.highlight { stroke-width:28; filter: drop-shadow(0 6px 26px rgba(34,197,94,.32)); }
.donut-label { position:absolute; transform: translate(-50%,-50%); background: rgba(0,0,0,.75); color:#fff; padding:6px 10px; border-radius:8px; font-size:13px; white-space:nowrap; pointer-events:none; opacity:0; transition: opacity .25s ease, transform .25s ease; box-shadow: 0 8px 20px rgba(0,0,0,.35), 0 0 18px rgba(var(--aqua-rgb), .06); }
.donut-label.show { opacity:1; transform: translate(-50%,-50%) scale(1); }

/* accessibility focus for donut */
#donut-wrapper-tk:focus-visible { box-shadow: 0 0 0 6px rgba(var(--aqua-rgb), .12); border-radius: 8px; outline: none; }

/* ---------- Utility: reduced motion ---------- */
@media (prefers-reduced-motion: reduce) {
  * { transition: none !important; animation-duration: 0.001ms !important; animation-iteration-count: 1 !important; }
}

/* ---------- Small-screen helpers ---------- */
@media (max-width: 720px) {
  .raised-card { padding: 1rem; gap: .9rem; }
  .site-header .logo img { width: clamp(44px, 18vw, 56px); height: clamp(44px, 18vw, 56px); }
  .nav-social { display:none; } /* keep nav-actions-social available */
  .nav-actions-social { display:flex !important; gap:.5rem; align-items:center; }
}

/* ---------- Extra: prevent accidental overflow on very narrow screens ---------- */
body { min-width: 320px; }
.container, .site-header, .site-footer { max-width: 1600px; margin: 0 auto; padding-left: 16px; padding-right: 16px; box-sizing: border-box; }

/* =========================================
   RWD FIX PATCH – HERO, PARTNERS, SECURITY,
   LOTTO PANELS, HAMBURGER
   ========================================= */

/* 1. Hero layout + responsive typography */
@media (max-width: 900px) {
  #presale .hero-grid {
    grid-template-columns: 1fr !important;  /* stack hero left/right */
    row-gap: 2rem;
  }
}

.hero h1 {
  font-size: clamp(2.1rem, 4vw, 2.8rem);
  line-height: 1.15;
}

.hero .lede {
  font-size: clamp(1rem, 2.6vw, 1.15rem);
}

.raised-card h3 {
  font-size: clamp(1.1rem, 3vw, 1.6rem);
}

.raised-card .curr {
  display: inline-block;
  font-size: clamp(0.85rem, 2.5vw, 1rem);
}

/* =========================================
   Partners & Integrated Technologies
   - Mobile: vertical stack
   - Desktop: horizontal auto-scroll (right -> left)
   ========================================= */

/* Mobile-first: vertical list */
.partners-logos {
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 1.5rem;
  width: 100%;
  overflow: visible;
}

.partner-logo {
  display: flex;
  justify-content: center;
  flex: 0 0 auto;
}

.partner-logo img {
  max-width: 220px;
  width: 100%;
  height: auto;
  object-fit: contain;
}

/* Desktop / large screens: horizontal marquee-style scroll */
@media (min-width: 900px) {
  .partners-logos {
    flex-direction: row;
    gap: 3rem;
    justify-content: flex-start;
    overflow: hidden;                 /* hide outside area */
    animation: partners-marquee 30s linear infinite;
  }

  .partner-logo {
    flex: 0 0 auto;                   /* keep each logo’s width */
  }
}

/* simple right-to-left marquee animation */
@keyframes partners-marquee {
  0% {
    transform: translateX(0);
  }
  100% {
    transform: translateX(-60%);
  }
}



/* 3. Security-first section – responsive grid */
.security-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(260px, 1fr));
  gap: 1.25rem;
}

.sec-card.wide {
  grid-column: auto;  /* let it behave like a normal card on small screens */
}

/* 4. LottoETH / Win4ETH panels – stack on small screens */
@media (max-width: 900px) {
  #straight .split-grid {
    display: block !important;   /* override inline flex rule */
  }
}

/* 5. Hamburger – only show when main nav collapses */
.hamburger {
  display: none;                 /* hide by default */
}

@media (max-width: 1024px) {
  .hamburger {
    display: flex;               /* show on tablet/phone */
  }
}

/* 6. Extra safety: split grids on very small screens */
@media (max-width: 640px) {
  .split .split-grid {
    display: block;
  }
}

/* === Presale floater – desktop vs mobile positioning === */
.presale-floater {
  position: fixed;
  z-index: 900;                /* above content but below modals if any */
  top: 18px;
  right: 32px;
  padding: 0.35rem 1.35rem;
  border-radius: 999px;
  text-decoration: none;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  font-size: 0.95rem;
}

/* On tablet/phone: move away from header/hamburger */
@media (max-width: 1024px) {
  .presale-floater {
    top: auto;                 /* no longer near header */
    right: 16px;
    bottom: 20px;              /* classic floating action button spot */
  }
}

/* Optional: small-screen font tweak so it never feels cramped */
@media (max-width: 480px) {
  .presale-floater {
    font-size: 0.85rem;
    padding: 0.3rem 1.1rem;
  }
}
/* =========================================
   Partners & Integrated Technologies
   Desktop: horizontal looping marquee
   Mobile: vertical stack
   ========================================= */

/* Aqua card container stays as you already have it */

/* Viewport: clipped to aqua border */
.partners-logos {
  width: 100%;
  overflow: hidden;          /* nothing draws outside the aqua border */
  margin-top: 1.5rem;
}

/* Track: holds two copies of the logo set */
.partners-track {
  display: flex;
  align-items: center;
  gap: 3rem;
}

/* Individual logos */
.partner-logo {
  flex: 0 0 auto;
  display: flex;
  align-items: center;
  justify-content: center;
}

.partner-logo img {
  height: 80px;
  width: auto;
  object-fit: contain;
  display: block;
}

/* Desktop / large screens: horizontal loop */
@media (min-width: 900px) {
  .partners-track {
    animation: partners-loop 30s linear infinite;
  }
}

/* Mobile: vertical, no animation */
@media (max-width: 899px) {
  .partners-track {
    flex-direction: column;
    animation: none;
    gap: 1.5rem;
  }

  .partner-logo img {
    height: 60px;
  }
}

/* Loop moves exactly one "set width" (50%) so second set replaces first */
@keyframes partners-loop {
  0%   { transform: translateX(0); }
  100% { transform: translateX(-50%); }
}

/* ===========================================================
   Partners Section: Scrolling logos entirely CONTAINED
   inside the aqua bordered container
   =========================================================== */

/* viewport: the aqua container is now the clipping region */
.partners-viewport {
  width: 100%;
  overflow: hidden;        /* prevents logos from ever exiting the border */
  position: relative;
  margin-top: 2rem;
  padding: 0.5rem 0;       /* optional breathing room above/below logos */
}

/* track: holds duplicated logos for seamless loop */
.partners-track {
  display: flex;
  align-items: center;
  gap: 4rem;               /* equal spacing */
  width: max-content;      /* shrink-to-fit track width */
}

/* logos */
.partner-logo {
  flex: 0 0 auto;
}

.partner-logo img {
  height: 80px;
  width: auto;
  object-fit: contain;
  display: block;
}

/* DESKTOP SCROLLING WITH LOOP */
@media (min-width: 900px) {
  .partners-track {
    animation: partners-scroll 28s linear infinite;
  }
}

/* MOBILE: vertical stack, no scroll */
@media (max-width: 899px) {
  .partners-track {
    flex-direction: column;
    animation: none;
    gap: 1.25rem;
  }

  .partner-logo img {
    height: 60px;
  }
}

/* LOOP: move exactly half track width (-50%) so the second half replaces the first */
@keyframes partners-scroll {
  0%   { transform: translateX(0); }
  100% { transform: translateX(-50%); }
}

/* =========================================
   Hero Presale Card – clean, centered, RWD
   ========================================= */

/* wrapper so the card can center in its grid cell */
.hero-presale {
  display: flex;
  justify-content: center;
}

/* card inside the aqua border */
#presale .raised-card {
  width: 100%;
  max-width: 420px;
  padding: 1.75rem 1.5rem;
  border-radius: 18px;
  border: 1px solid #00FFFF;
  background: radial-gradient(220px 140px at 50% 0%, rgba(16,231,255,0.18), transparent 60%),
              linear-gradient(180deg, #091022, #0a1326);
  box-shadow: 0 10px 30px rgba(0,0,0,0.6);
  text-align: center;

  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 0.6rem;
}

/* image fully contained */
#presale .raised-card .presale-image {
  max-width: 100%;
  width: 100%;
  height: auto;
  border-radius: 14px;
  margin-bottom: 0.75rem;
  object-fit: contain;
  box-shadow:
    0 0 18px rgba(255,255,255,0.65),
    0 0 32px rgba(16,231,255,0.25);
}

/* typography stack */
#presale .raised-card .sub {
  margin: 0;
  text-transform: uppercase;
  font-size: 0.8rem;
  letter-spacing: 0.15em;
  color: #29f1a8;
  font-weight: 800;
}

#presale .raised-card .counter {
  margin: 0.2rem 0 0;
  font-size: 2rem;
  font-weight: 800;
  color: #ffffff;
}

#presale .raised-card .curr {
  margin: 0;
  font-size: 0.95rem;
  font-weight: 600;
  color: #c3d1ff;
}

#presale .raised-card .next-price {
  margin: 0.4rem 0 0;
  font-size: 0.9rem;
  color: #9aa4bd;
}

#presale .raised-card .next-price strong {
  font-weight: 700;
  color: #ffffff;
}

/* small hover lift on desktop */
@media (hover: hover) and (pointer: fine) {
  #presale .raised-card {
    transition: transform 0.25s ease, box-shadow 0.25s ease;
  }
  #presale .raised-card:hover {
    transform: translateY(-4px);
    box-shadow: 0 16px 36px rgba(0,0,0,0.7);
  }
}

/* RWD tweaks so card sits nicely when hero stacks */
@media (max-width: 900px) {
  .hero-presale {
    margin-top: 1.5rem;
  }
  #presale .raised-card {
    max-width: 100%;
  }
}

/* =========================================
   Hero Presale Card – final sizing fix
   ========================================= */

/* Aqua bordered box */
.hero-presale {
  display: flex;
  justify-content: center;
  width: 100%;
  max-width: 420px;
  margin: 0 auto;

  border: 1px solid #00FFFF;
  border-radius: 18px;
  padding: 1.25rem 1.5rem 1.5rem;

  background: radial-gradient(220px 140px at 50% 0%, rgba(16,231,255,0.18), transparent 60%),
              linear-gradient(180deg, #091022, #0a1326);
  box-shadow: 0 10px 30px rgba(0,0,0,0.6);
}

/* Inside the hero grid, keep the card centered in its column */
.hero .hero-grid > .hero-presale {
  justify-self: center;
}

/* Inner stack (remove old border/height from legacy .raised-card) */
#presale .raised-card {
  border: none !important;
  background: transparent !important;
  box-shadow: none !important;

  width: 100%;
  height: auto !important;

  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 0.4rem;
  text-align: center;
}

/* Image fully contained inside aqua box */
#presale .raised-card .presale-image {
  max-width: 100%;
  max-height: 170px;      /* key: keeps image from dominating card */
  height: auto;
  object-fit: contain;
  border-radius: 14px;
  margin-bottom: 0.5rem;

  box-shadow:
    0 0 16px rgba(255,255,255,0.55),
    0 0 26px rgba(16,231,255,0.2);
}

/* Typography refinements to fit neatly */
#presale .raised-card .sub {
  margin: 0;
  text-transform: uppercase;
  font-size: 0.8rem;
  letter-spacing: 0.15em;
  color: #29f1a8;
  font-weight: 800;
}

#presale .raised-card .counter {
  margin: 0.1rem 0 0;
  font-size: 1.8rem;
  font-weight: 800;
  color: #ffffff;
}

#presale .raised-card .curr {
  margin: 0;
  font-size: 0.95rem;
  font-weight: 600;
  color: #c3d1ff;
}

#presale .raised-card .next-price {
  margin: 0.35rem 0 0;
  font-size: 0.9rem;
  color: #9aa4bd;
}

#presale .raised-card .next-price strong {
  font-weight: 700;
  color: #ffffff;
}

/* RWD: on narrow screens the card uses full width but still respects border */
@media (max-width: 900px) {
  .hero-presale {
    max-width: 100%;
    margin-top: 1.5rem;
  }
}

/* extra-small phones: nudge fonts slightly down */
@media (max-width: 480px) {
  #presale .raised-card .counter { font-size: 1.6rem; }
  #presale .raised-card .curr,
  #presale .raised-card .next-price { font-size: 0.85rem; }
}

