:root{
  --bgSolid: #070b14;           /* clean base */
  --bgTop: #0b1020;
  --bgTop2:#060914;

  --cardA:rgba(255,255,255,.08);
  --cardB:rgba(255,255,255,.03);
  --border:rgba(255,255,255,.12);

  --text:#e7ecff;
  --muted:#aab5e6;

  --accentA: rgba(110,168,255,.18);
  --accentB: rgba(255,60,60,.14);
}

*{ 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);

  /* IMPORTANT: base is SOLID so no “banner band” appears at bottom */
  background: var(--bgSolid);
  position: relative;
  overflow-x: hidden;
}

/* IMPORTANT: gradient only on the TOP part of page (no footer band) */
body::before{
  content:"";
  position: fixed;
  inset: 0;
  z-index: -1;

  /* Put all gradients here */
  background:
    radial-gradient(900px 500px at 12% 12%, var(--accentA), transparent 60%),
    radial-gradient(900px 500px at 88% 18%, var(--accentB), transparent 60%),
    linear-gradient(180deg, var(--bgTop), var(--bgTop2));
}

/* Shared container so header/cards/footer align */
.container{
  max-width: 1060px;
  margin: 0 auto;
  padding: 0 18px;
}

/* Sticky Header */
.topbar{
  position: sticky;
  top: 0;
  z-index: 999;

  background: rgba(0,0,0,.58);
  border-bottom: 1px solid rgba(255,255,255,.08);
  backdrop-filter: blur(10px);
}

.headerRow{
  display:flex;
  align-items:center;
  justify-content:space-between;
  gap:16px;
  padding: 14px 0;
}

.brand{
  display:flex;
  align-items:center;
  gap:14px;
  min-width:0;
}

.brandLogo{ height:42px; width:auto; display:block; }

.brandTitle{
  font-weight:900;
  letter-spacing:.2px;
  font-size:18px;
  line-height:1.1;
}

.brandSub{
  color:var(--muted);
  font-size:13px;
  margin-top:4px;
  white-space:nowrap;
  overflow:hidden;
  text-overflow:ellipsis;
  max-width: 560px;
}

/* Button (inside container = not too far right) */
.brandLink{
  flex:0 0 auto;
  text-decoration:none;
  color:#d6ebff;
  font-weight:850;
  font-size:13px;
  padding:10px 12px;
  border-radius:12px;
  border:1px solid rgba(110,168,255,.26);
  background: rgba(0,0,0,.18);
}
.brandLink:hover{ border-color: rgba(110,168,255,.55); }

.main{
  padding-top: 18px;
  padding-bottom: 24px;
}

.sectionHeader h1{ margin:0; font-size:20px; }
.sectionHeader p{ margin:6px 0 0; color:var(--muted); }

/* Grid: reduce gap between card 1&2 and 3&4 (your request) */
.grid{
  margin-top:16px;
  display:grid;
  grid-template-columns: repeat(2, 1fr);

  /* smaller horizontal spacing than before */
  column-gap: 1px;    /* FIX: smaller gap between left/right cards */
  row-gap: 22px;       /* keep a bit more space between rows */
  align-items:start;
}

/* Cards (square-ish + not too wide) */
.card{
  justify-self:center;
  width:100%;
  max-width: 360px;
  min-height: 320px;

  text-decoration:none;
  color:inherit;

  border:1px solid var(--border);
  border-radius:16px;
  background: linear-gradient(180deg, var(--cardA), var(--cardB));
  padding:12px;

  box-shadow: 0 10px 22px rgba(0,0,0,.32);
  transition: transform .12s ease, border-color .12s ease, box-shadow .12s ease;

  display:flex;
  flex-direction:column;
}
.card:hover{
  transform: translateY(-2px);
  border-color: rgba(255,255,255,.20);
  box-shadow: 0 14px 28px rgba(0,0,0,.40);
}

.cardTitleTop{
  font-weight:700;
  font-size:15.5px;
  letter-spacing:.15px;
  margin:2px 4px 8px;
}

.mediaBox{
  width:100%;
  height: 150px;
  border-radius:14px;
  border:1px solid rgba(255,255,255,.10);
  background: rgba(0,0,0,.14);
  display:grid;
  place-items:center;
  overflow:hidden;
  padding:14px;
}

.mediaImg{
  width:100%;
  height:100%;
  object-fit: contain;
  display:block;
}

.cardSub{
  margin:8px 4px 0;
  color:var(--muted);
  line-height:1.4;
  font-size:15px;
  flex:1;
}

.cardBottom{
  margin-top:12px;
  display:flex;
  align-items:center;
  justify-content:space-between;
  gap:10px;
  padding:0 4px 2px;
}

.pill{
  font-size:14px;
  padding:7px 10px;
  border-radius:999px;
  border:1px solid rgba(255,255,255,.14);
  background: rgba(0,0,0,.18);
  color: rgba(255, 255, 255, 0.75);
}

.open{
  color: rgba(231,236,255,.98);
  font-weight:900;
}

/* Coming soon panel */
.panel{
  margin-top:18px;
  border-radius:16px;
  padding:14px;
  border:1px solid rgba(255,255,255,.08);
  background: rgba(255,255,255,.04);
}

.panelTitle{ font-weight:900; }
.panelSub{ color:var(--muted); margin-top:6px; font-size:13px; }

.featureGrid{
  margin-top:12px;
  display:grid;
  grid-template-columns: repeat(auto-fit, minmax(210px, 1fr));
  gap:12px;
}

.feature{
  border:1px solid rgba(255,255,255,.08);
  background: rgba(0,0,0,.14);
  border-radius:14px;
  padding:12px;
}
.featureName{ font-weight:900; }
.featureDesc{ color:var(--muted); margin-top:6px; font-size:12px; line-height:1.35; }

/* Footer (clean + sits on solid base; no banner) */
.footer{
  background: var(--bgSolid);
  border-top: 1px solid rgba(255,255,255,.08);
  padding: 18px 0 24px;
  margin-top: 18px;
}

.footerInner{
  display:flex;
  align-items:flex-start;
  justify-content:space-between;
  gap:14px;
  flex-wrap:wrap;
}

.footerBrand{ font-weight:900; }
.footerNote{
  margin-top:6px;
  color: rgba(231,236,255,.70);
  font-size:13px;
  max-width:560px;
  line-height:1.35;
}
.footerCopy{
  margin-top:10px;
  color: rgba(231,236,255,.55);
  font-size:12px;
}

.footerLinks{
  display:flex;
  gap:10px;
  flex-wrap:wrap;
  align-items:flex-start;
}

.footerLink{
  text-decoration:none;
  color:#d6ebff;
  font-weight:850;
  font-size:13px;
  padding:8px 10px;
  border-radius:12px;
  border:1px solid rgba(110,168,255,.22);
  background: rgba(0,0,0,.22);
}

/* Responsive */
@media (max-width: 900px){
  .brandSub{ max-width: 46vw; }
}

@media (max-width: 740px){
  .headerRow{
    flex-direction:column;
    align-items:flex-start;
  }
  .brandSub{
    white-space:normal;
    max-width: 100%;
  }
  .brandLink{
    width:100%;
    text-align:center;
  }

  .grid{
    grid-template-columns: 1fr;
    row-gap: 18px;
  }
  .card{
    max-width: 420px;
    min-height: auto;
  }
  .mediaBox{
    height: 160px;
  }
}
