@import url('https://fonts.googleapis.com/css2?family=Montserrat:wght@400;500;600;700;800;900&display=swap');

*, *::before, *::after { box-sizing: border-box; margin: 0; padding: 0; }

:root {
  --dark-ocean: #10122F;
  --cta:        #E0166E;
  --accent:     #5176FB;
  --white:      #FFFFFF;
}

body {
  min-height: 100vh;
  font-family: Montserrat, sans-serif;
  color: var(--white);
  display: flex;
  flex-direction: column;
  align-items: center;
  overflow-x: hidden;
  background-color: var(--dark-ocean);
}

/* animated background image layer */
/* background layers overshoot the viewport so mobile URL-bar resize
   and overscroll never reveal their edge as a band */
body::after {
  content: '';
  position: fixed;
  inset: -120px 0;
  z-index: -1;
  background: url('pics/bg.webp') center 30% / cover no-repeat;
  transform-origin: center 30%;
  animation: bgZoom 14s ease forwards;
}

body::before {
  content: '';
  position: fixed;
  inset: -120px 0;
  background:
    linear-gradient(180deg,
      rgba(16,18,47,0.45)  0%,
      rgba(16,18,47,0.20) 30%,
      rgba(16,18,47,0.50) 65%,
      rgba(16,18,47,0.88) 100%
    );
  pointer-events: none;
  z-index: 0;
}

/* ── HEADER ── */
header {
  position: relative;
  z-index: 1;
  width: 100%;
  display: flex;
  justify-content: center;
  padding: 56px 24px 0;
  animation: fadeDown 0.8s ease both;
}

.logo {
  height: 42px;
  width: auto;
  filter: drop-shadow(0 2px 20px rgba(0,0,0,0.6));
}

/* ── TAGLINE ── */
.tagline {
  position: relative;
  z-index: 1;
  font-size: 11px;
  font-weight: 700;
  letter-spacing: 3.5px;
  text-transform: uppercase;
  color: rgba(255,255,255,0.6);
  margin-top: 20px;
  text-align: center;
  animation: fadeDown 0.8s 0.1s ease both;
  opacity: 0;
}

/* ── GRID ── */
.apps-grid {
  position: relative;
  z-index: 1;
  display: flex;
  gap: 20px;
  justify-content: center;
  flex-wrap: wrap;
  width: 100%;
  max-width: 680px;
  padding: 0 20px 80px;
  margin-top: 52px;
}

/* ── LIQUID GLASS CARD ── */
.app-card {
  width: 300px;
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 12px;
  padding: 32px 26px;
  position: relative;
  border-radius: 32px;
  overflow: hidden;
  background: rgba(255,255,255,0.08);
  backdrop-filter: blur(44px) saturate(160%) brightness(1.10);
  -webkit-backdrop-filter: blur(44px) saturate(160%) brightness(1.10);
  border: 1px solid rgba(255,255,255,0.18);
  box-shadow:
    inset 0 1.5px 0  rgba(255,255,255,0.50),
    inset 0 -1px  0  rgba(255,255,255,0.06),
    inset  1px 0  0  rgba(255,255,255,0.10),
    inset -1px 0  0  rgba(255,255,255,0.06),
    0  2px  8px rgba(0,0,0,0.20),
    0 16px 48px rgba(0,0,0,0.35),
    0 40px 80px rgba(0,0,0,0.20);
  transition: transform 0.30s ease, box-shadow 0.30s ease, background 0.30s ease;
  opacity: 0;
}

.app-card:nth-child(1) { animation: slideUp 0.7s 0.30s ease forwards; }
.app-card:nth-child(2) { animation: slideUp 0.7s 0.45s ease forwards; }

.app-card::before {
  content: '';
  position: absolute;
  inset: 0;
  border-radius: 32px;
  background: linear-gradient(
    135deg,
    rgba(255,255,255,0.14) 0%,
    rgba(255,255,255,0.05) 35%,
    transparent 60%
  );
  pointer-events: none;
}

.app-card:hover {
  transform: translateY(-8px) scale(1.01);
  background: rgba(255,255,255,0.12);
  box-shadow:
    inset 0 1.5px 0  rgba(255,255,255,0.60),
    inset 0 -1px  0  rgba(255,255,255,0.08),
    inset  1px 0  0  rgba(255,255,255,0.14),
    inset -1px 0  0  rgba(255,255,255,0.08),
    0  4px 12px rgba(0,0,0,0.25),
    0 24px 60px rgba(0,0,0,0.40),
    0 48px 96px rgba(0,0,0,0.25);
}

/* ── COMING SOON BADGE ── */
.badge-soon {
  display: inline-flex;
  align-items: center;
  padding: 6px 16px;
  border-radius: 20px;
  font-size: 9px;
  font-weight: 800;
  letter-spacing: 2.5px;
  text-transform: uppercase;
  color: #fff;
  /* gradient fill */
  background: var(--cta);
  box-shadow: inset 0 1px 0 rgba(255,255,255,0.25);
}

/* disabled badge buttons */
.badge-btn.soon {
  opacity: 0.28;
  pointer-events: none;
}

/* ── ICON ── */
.app-icon {
  width: 100px;
  height: 100px;
  border-radius: 24px;
  object-fit: contain;
  box-shadow: 0 8px 24px rgba(0,0,0,0.40), 0 2px 6px rgba(0,0,0,0.25);
  margin-bottom: 4px;
}

/* ── TEXT ── */
.app-name {
  font-size: 22px;
  font-weight: 900;
  letter-spacing: -0.4px;
  text-shadow: 0 1px 8px rgba(0,0,0,0.3);
}

.app-desc {
  font-size: 13px;
  font-weight: 400;
  color: rgba(255,255,255,0.70);
  text-align: center;
  line-height: 1.65;
}

/* ── BUTTONS ── */
.badge-buttons {
  display: flex;
  flex-direction: column;
  gap: 9px;
  width: 100%;
  margin-top: auto;
  padding-top: 16px;
}

.badge-btn {
  display: flex;
  align-items: center;
  gap: 12px;
  background: rgba(0,0,0,0.55);
  border: 1px solid rgba(255,255,255,0.15);
  border-radius: 14px;
  padding: 11px 18px;
  text-decoration: none;
  color: #fff;
  transition: background 0.18s, transform 0.18s;
  backdrop-filter: blur(8px);
  -webkit-backdrop-filter: blur(8px);
}
.badge-btn:hover  { background: rgba(0,0,0,0.75); transform: scale(1.02); }
.badge-btn:active { transform: scale(0.98); }

.badge-icon {
  width: 26px;
  height: 26px;
  flex-shrink: 0;
}

.badge-text {
  display: flex;
  flex-direction: column;
  text-align: left;
}

.badge-line1 {
  font-size: 10px;
  font-weight: 400;
  line-height: 1.2;
  opacity: 0.8;
  letter-spacing: 0.2px;
}

.badge-line2 {
  font-size: 18px;
  font-weight: 700;
  line-height: 1.1;
  letter-spacing: -0.3px;
}


/* ── MOBILE ── */
@media (max-width: 660px) {
  .apps-grid { flex-direction: column; align-items: center; }
  .app-card  { width: 100%; max-width: 340px; }
}

/* ── KEYFRAMES ── */
@keyframes bgZoom {
  from { transform: scale(1.14); }
  to   { transform: scale(1); }
}
@keyframes fadeDown {
  from { opacity: 0; transform: translateY(-14px); }
  to   { opacity: 1; transform: translateY(0); }
}
@keyframes slideUp {
  from { opacity: 0; transform: translateY(36px); }
  to   { opacity: 1; transform: translateY(0); }
}

/* ── SINGLE APP MODE (/gox, /goapp) ── */
body.single-app .tagline { display: none; }
body.single-app .apps-grid { margin-top: 64px; }
