:root{
  --brand:#99dfff;
  --brand2:#d6f2ff;

  --bg:#070b10;

  /* text */
  --text:rgba(255,255,255,.92);
  --muted:rgba(255,255,255,.70);

  /* accents */
  --ice:#60d0f0;
  --ice2:#d0f8ff;
  --ink:#041018;
  --slate:#204050;
  /* footer-glass system (NEW baseline) */
  --glass: rgba(10, 14, 20, .55);
  --glass2: rgba(12, 18, 26, .62);
  --glassStroke: rgba(255,255,255,.08);
  --glassStroke2: rgba(255,255,255,.12);
  --glassHi: rgba(255,255,255,.04);

  --shadow: 0 20px 60px rgba(0,0,0,.45);
  --shadowSoft: 0 18px 50px rgba(0,0,0,.35);
}

*{ box-sizing:border-box; }
html,body{ height:100%; }

body{
  margin:0;
  font-family: ui-sans-serif,system-ui,-apple-system,Segoe UI,Roboto,Arial;
  color: var(--text);
  background: var(--bg);
}

/* background glow */
.bg{
  position:fixed;
  inset:-40vh -40vw;
  background:
    radial-gradient(700px 500px at 22% 22%, rgba(96,208,240,.22), transparent 58%),
    radial-gradient(700px 500px at 78% 28%, rgba(208,240,240,.16), transparent 58%),
    radial-gradient(900px 700px at 50% 90%, rgba(32,64,80,.14), transparent 62%);
  pointer-events:none;
}

/* layout wrapper */
.wrap{
  max-width: 980px;
  margin: 0 auto;
  padding: 28px 18px 22px;
  position: relative;
}

/* top bar */
.top{
  display:flex;
  gap:14px;
  align-items:center;
  justify-content:space-between;
  flex-wrap:wrap;
  padding: 14px 14px 18px;
}

.brand{
  display:flex;
  align-items:center;
  gap:12px;
}

.logoimg{
  width:54px;
  height:54px;
  border-radius:16px;
  display:grid;
  place-items:center;
  background: rgba(0,0,0,.22);
  border: 1px solid rgba(255,255,255,.12);
  overflow:hidden;
}

.logoimg img{
  width:100%;
  height:100%;
  object-fit:contain;
  padding:6px;
  image-rendering:auto;
}

.logo{
  width:44px;
  height:44px;
  border-radius:14px;
  display:grid;
  place-items:center;
  font-weight:800;
  letter-spacing:.5px;
  background: linear-gradient(135deg, rgba(124,92,255,.95), rgba(0,215,255,.85));
  color:#07101a;
}

.brandtext h1{
  margin:0;
  font-size:22px;
  line-height:1.1;
}

.brandtext p{
  margin:3px 0 0;
  color: var(--muted);
  font-size:13px;
}

/* buttons (footer-glass style) */
.btn{
  display:inline-flex;
  align-items:center;
  justify-content:center;
  padding:10px 12px;
  border-radius:14px;
  border: 1px solid var(--glassStroke2);
  background: rgba(255,255,255,.04);
  color: var(--text);
  text-decoration:none;
  font-weight:650;
  font-size:13px;
  transition: transform .12s ease, background .12s ease, border-color .12s ease, filter .12s ease;
  backdrop-filter: blur(10px);
}

.btn:hover{
  transform: translateY(-1px);
  background: rgba(255,255,255,.06);
  border-color: rgba(255,255,255,.18);
}

.btn.primary{
  border-color: transparent;
  background: linear-gradient(135deg, var(--brand), var(--brand2));
  color: #031018;
}


.btn.primary:hover{
  filter: brightness(1.03);
}

/* platforms grid */
.platforms{
  display:grid;
  grid-template-columns:1fr;
  gap:12px;
  margin-top:10px;
}

@media (min-width:780px){
  .platforms{ grid-template-columns: repeat(4, 1fr); }
}

/* OS cards: now use the same footer-glass surface */
.osbtn{
  width:100%;
  border: 1px solid var(--glassStroke);
  background: var(--glass);
  border-radius: 18px;
  padding: 14px;
  color: var(--text);
  cursor:pointer;
  text-align:left;
  display:flex;
  flex-direction:column;
  gap:10px;
  transition: transform .14s ease, background .14s ease, border-color .14s ease, box-shadow .14s ease;
  backdrop-filter: blur(12px);
  box-shadow: var(--shadowSoft);
}

.osbtn:hover{
  transform: translateY(-2px);
  background: var(--glass2);
  border-color: rgba(255,255,255,.14);
  box-shadow: var(--shadow);
}

.osicon{
  width:38px;
  height:38px;
  border-radius:14px;
  display:grid;
  place-items:center;
  background: rgba(255,255,255,.04);
  border: 1px solid var(--glassStroke);
}

.osicon svg{
  width:22px;
  height:22px;
  color: rgba(255,255,255,.92);
}

.osname{
  font-weight:800;
  font-size:15px;
  letter-spacing:.2px;
}

.oshint{
  font-size:12.5px;
  color: rgba(255,255,255,.66);
}

/* overlay + modal (match footer-glass) */
.overlay{
  position: fixed;
  inset: 0;
  display: none;
  justify-content: center;
  align-items: flex-start;
  padding:
    max(16px, env(safe-area-inset-top))
    12px
    max(16px, env(safe-area-inset-bottom));
  pointer-events: none;
}

.overlay.show{
  display:flex;
  pointer-events:auto;
}

.modal{
  width: min(860px, 100%);
  display:flex;
  flex-direction: column;
  border-radius: 22px;
  border: 1px solid var(--glassStroke);
  background: rgba(10, 14, 20, .72);
  backdrop-filter: blur(18px);
  box-shadow: 0 30px 80px rgba(0,0,0,.55);
  transform: translateY(16px) scale(.98);
  opacity:0;
  transition: transform .18s ease, opacity .18s ease;
  max-height: calc(100dvh - max(16px, env(safe-area-inset-top)) - max(16px, env(safe-area-inset-bottom)));
}

.overlay.show .modal{
  transform: translateY(0) scale(1);
  opacity:1;
}

.modalhead{
  display:flex;
  align-items:center;
  justify-content:space-between;
  gap:12px;
  padding:14px 14px 10px;
  border-bottom: 1px solid rgba(255,255,255,.08);
}

.modaltitle{
  font-weight:850;
  letter-spacing:.2px;
  font-size:15px;
}

.close{
  width:40px;
  height:40px;
  border-radius:14px;
  border: 1px solid var(--glassStroke2);
  background: rgba(255,255,255,.04);
  color: rgba(255,255,255,.85);
  cursor:pointer;
  display:grid;
  place-items:center;
  transition: transform .12s ease, background .12s ease, border-color .12s ease;
}

.close:hover{
  transform: translateY(-1px);
  background: rgba(255,255,255,.06);
  border-color: rgba(255,255,255,.18);
}

.close svg{ width:18px; height:18px; }

.modalbody{
  padding: 10px 14px 16px;
  overflow-y: auto;
  flex: 1;
  -webkit-overflow-scrolling: touch;
  padding-bottom: max(16px, env(safe-area-inset-bottom));
  scrollbar-gutter: stable;
  scrollbar-width: thin;
  scrollbar-color: rgba(255,255,255,.18) transparent;
}

.modalbody::-webkit-scrollbar{ width: 10px; }
.modalbody::-webkit-scrollbar-track{ background: transparent; }
.modalbody::-webkit-scrollbar-thumb{
  background: rgba(255,255,255,.14);
  border-radius: 999px;
  border: 3px solid transparent;
  background-clip: padding-box;
}
.modalbody::-webkit-scrollbar-thumb:hover{
  background: rgba(255,255,255,.22);
  border: 3px solid transparent;
  background-clip: padding-box;
}

/* sections: use footer-glass */
.section{
  background: var(--glass);
  border: 1px solid var(--glassStroke);
  border-radius: 18px;
  padding: 14px;
  margin-top: 12px;
  backdrop-filter: blur(12px);
  box-shadow: var(--shadowSoft);
}

.section h3{
  margin:0 0 10px;
  font-size:13px;
  letter-spacing:.3px;
  text-transform:uppercase;
  color: rgba(255,255,255,.86);
}

/* steps */
.steps{ display:grid; gap:10px; }

.step{
  display:grid;
  grid-template-columns:34px 1fr;
  gap:10px;
  align-items:flex-start;
  padding:10px 10px;
  border-radius:16px;
  border: 1px solid var(--glassStroke);
  background: rgba(255,255,255,.04);
}

.num{
  width:34px;
  height:34px;
  border-radius:14px;
  display:grid;
  place-items:center;
  font-weight:850;
  color:#031018;
  background: linear-gradient(135deg, var(--brand), var(--brand2));
  }

.step > div > b{
  display:block;
  font-size:13px;
  margin-bottom:2px;
}

/* keep inline emphasis inside step text */
.step span b{ display:inline; margin:0; font-size:inherit; }
.step span strong{ font-weight:800; }


.step span{
  display:block;
  font-size:13px;
  color: rgba(255,255,255,.80);
  line-height:1.45;
}

.mono{
  font-family: ui-monospace,SFMono-Regular,Menlo,Consolas,monospace;
}

.code{
  margin:10px 0 0;
  padding:12px;
  border-radius:16px;
  border: 1px solid var(--glassStroke);
  background: rgba(0,0,0,.28);
  overflow:auto;
  font-family: ui-monospace,SFMono-Regular,Menlo,Consolas,monospace;
  font-size:12.5px;
  line-height:1.5;
  color: rgba(255,255,255,.92);
}

.note{
  margin-top:12px;
  padding:10px 12px;
  border-radius:16px;
  border: 1px solid var(--glassStroke);
  background: rgba(255,255,255,.04);
  color: rgba(255,255,255,.82);
  font-size:13px;
  line-height:1.5;
}

.linkrow{
  display:flex;
  flex-wrap:wrap;
  gap:10px;
  margin-top:10px;
}

.smallbtn{
  display:inline-flex;
  align-items:center;
  justify-content:center;
  padding:10px 12px;
  border-radius:14px;
  border: 1px solid var(--glassStroke2);
  background: rgba(255,255,255,.04);
  color: rgba(255,255,255,.90);
  text-decoration:none;
  font-weight:700;
  font-size:13px;
  transition: transform .12s ease, background .12s ease, border-color .12s ease;
  backdrop-filter: blur(10px);
}

.smallbtn:hover{
  transform: translateY(-1px);
  background: rgba(255,255,255,.06);
  border-color: rgba(255,255,255,.18);
}

/* floating showcase zone: footer-glass surface */
.floatzone{
  width:100%;
  margin-top:18px;
  border: 1px solid var(--glassStroke);
  background: var(--glass);
  border-radius: 22px;
  padding: 16px;
  overflow:hidden;
  backdrop-filter: blur(12px);
  box-shadow: var(--shadowSoft);
}

.floatzone-head{
  width:100%;
  display:flex;
  align-items:flex-end;
  justify-content:space-between;
  gap:12px;
  padding:6px 6px 12px;
}

.floatzone-head h2{
  margin:0;
  font-size:14px;
  letter-spacing:.35px;
  text-transform:uppercase;
  color: rgba(255,255,255,.86);
}

.floatzone-head p{
  margin:0;
  font-size:12.5px;
  color: rgba(255,255,255,.60);
}

/* floatzone same width as 4 OS cards */
@media (min-width:780px){
  .floatzone{
    display: grid;
    grid-template-columns: repeat(4, 1fr);
    gap: 12px;
    width: 100%;
  }
  .floatzone-head,
  .floatfield{
    grid-column: 1 / -1;
  }
}

.floatfield{
  width:100%;
  position:relative;
  height:520px;
  border-radius:18px;
  border: 1px solid rgba(255,255,255,.08);
  background:
    radial-gradient(900px 400px at 50% 30%, rgba(255,255,255,.05), transparent 60%),
    radial-gradient(700px 500px at 20% 80%, rgba(96,208,240,.10), transparent 60%),
    radial-gradient(700px 500px at 80% 80%, rgba(208,240,240,.08), transparent 60%),
    rgba(0,0,0,.22);
  overflow:hidden;
}

/* Growtopia-ish item slot */
.gt-slot{
  width: 84px;
  height: 84px;
  border-radius: 12px;
  position: absolute;
  display: grid;
  place-items: center;
  background: linear-gradient(180deg, rgba(255,255,255,.12), rgba(255,255,255,.03));
  border: 1px solid rgba(255,255,255,.18);
  box-shadow:
    0 18px 40px rgba(0,0,0,.35),
    inset 0 1px 0 rgba(255,255,255,.20),
    inset 0 -1px 0 rgba(0,0,0,.35);
}

.gt-slot::before{
  content:"";
  position:absolute;
  inset: 7px;
  border-radius: 10px;
  border: 1px solid rgba(255,255,255,.14);
  background: rgba(0,0,0,.18);
  box-shadow:
    inset 0 1px 0 rgba(255,255,255,.10),
    inset 0 -1px 0 rgba(0,0,0,.35);
}

.gt-slot::after{
  content:"";
  position:absolute;
  inset: 0;
  border-radius: 12px;
  background:
    linear-gradient(135deg, rgba(255,255,255,.18), transparent 40%),
    linear-gradient(315deg, rgba(0,0,0,.25), transparent 45%);
  pointer-events:none;
  mix-blend-mode: normal;
}

.gt-slot img{
  position: relative;
  z-index: 1;
  width: 70px;
  height: 70px;
  object-fit: contain;
  image-rendering: pixelated;
  filter: drop-shadow(0 6px 10px rgba(0,0,0,.35));
  pointer-events: none;
}

/* floating behavior */
.floatfield, .floatfield *{
  user-select: none;
  -webkit-user-select: none;
  -webkit-user-drag: none;
}

.floatfield{ position: relative; }
.floatfield .gt-slot.float-item{
  position: absolute !important;
  left: 0 !important;
  top: 0 !important;
}

.float-item{
  position: absolute;
  will-change: transform;
}

/* Float effect on the image so it doesn’t override JS transform */
.float-item img{
  animation: imgFloat 5.5s ease-in-out infinite;
  will-change: transform;
}

@keyframes imgFloat{
  0%,100%{ transform: translate3d(0,0,0); }
  50%{ transform: translate3d(0,-10px,0); }
}

/* responsive float sizing */
@media (max-width: 520px){
  .floatfield{ height: 560px; }
  .gt-slot{ width: 76px; height: 76px; }
  .gt-slot img{ width: 64px; height: 64px; }
}

/* FOOTER (keep your preferred footer style) */
.site-footer{
  padding: 28px 16px 60px;
}

.footer-card{
  max-width: 1100px;
  margin: 0 auto;
  border-radius: 18px;
  padding: 22px;
  background: var(--glass);
  border: 1px solid var(--glassStroke);
  box-shadow: var(--shadow);
  backdrop-filter: blur(10px);
}

.footer-top{
  display:flex;
  align-items:center;
  justify-content:space-between;
  gap: 14px;
  padding-bottom: 16px;
  border-bottom: 1px solid rgba(255,255,255,.08);
}

.footer-brand{
  display:flex;
  align-items:center;
  gap: 10px;
  min-width: 240px;
}

.footer-logo{
  width: 38px;
  height: 38px;
  border-radius: 12px;
  overflow: hidden;
  border: 1px solid rgba(255,255,255,.10);
  background: rgba(255,255,255,.04);
  display:flex;
  align-items:center;
  justify-content:center;
}

.footer-logo img{
  width: 28px;
  height: 28px;
  display:block;
}

.footer-title{
  font-weight: 800;
  letter-spacing: .2px;
  color: #fff;
  line-height: 1.1;
}

.footer-sub{
  margin-top: 2px;
  font-size: 12px;
  opacity: .7;
}

.footer-badges{
  display:flex;
  flex-wrap: wrap;
  gap: 8px;
  justify-content:flex-end;
}

.footer-badge{
  font-size: 12px;
  padding: 6px 10px;
  border-radius: 999px;
  border: 1px solid rgba(255,255,255,.10);
  background: rgba(255,255,255,.04);
  color: rgba(255,255,255,.85);
}

.footer-grid{
  display:grid;
  grid-template-columns: 1.3fr 0.8fr 0.9fr;
  gap: 18px;
  padding-top: 18px;
}

.footer-h{
  font-size: 12px;
  letter-spacing: .14em;
  text-transform: uppercase;
  opacity: .75;
  margin: 0 0 10px;
}

.footer-p{
  margin: 0;
  font-size: 14px;
  line-height: 1.7;
  color: rgba(255,255,255,.82);
}

.footer-links{
  display:flex;
  flex-direction: column;
  gap: 10px;
}

.footer-links a{
  color: rgba(255,255,255,.82);
  text-decoration: none;
  padding: 8px 10px;
  border-radius: 12px;
  border: 1px solid rgba(255,255,255,.06);
  background: rgba(255,255,255,.02);
}

.footer-links a:hover{
  border-color: rgba(255,255,255,.14);
  background: rgba(255,255,255,.04);
}

.footer-cta{
  display:inline-flex;
  align-items:center;
  justify-content:center;
  margin-top: 12px;
  padding: 10px 12px;
  border-radius: 14px;
  text-decoration:none;
  font-weight: 700;
  color: #031018;
  background: linear-gradient(135deg, var(--brand), var(--brand2));
  border: 1px solid rgba(255,255,255,.10);
}


.footer-cta:hover{
  filter: brightness(1.03);
}

.footer-bottom{
  margin-top: 18px;
  padding-top: 14px;
  border-top: 1px solid rgba(255,255,255,.08);
  display:flex;
  gap: 10px;
  flex-wrap: wrap;
  align-items:center;
  justify-content:space-between;
  font-size: 12px;
  opacity: .7;
}

.footer-dot{ opacity: .55; }

@media (max-width: 860px){
  .footer-top{
    flex-direction: column;
    align-items:flex-start;
  }
  .footer-badges{
    justify-content:flex-start;
  }
  .footer-grid{
    grid-template-columns: 1fr;
  }
  .footer-bottom{
    justify-content:flex-start;
  }
}
