:root {
  --bg: #f2f7ff;
  --bg-2: #e4efff;
  --surface: rgba(255, 255, 255, 0.86);
  --surface-strong: rgba(255, 255, 255, 0.95);
  --line: rgba(31, 88, 153, 0.2);
  --text: #10243c;
  --muted: #55708f;
  --brand: #0f87d8;
  --brand-2: #17a6de;
  --warm: #ff8a3d;
  --shadow: 0 14px 34px rgba(15, 47, 89, 0.14);
  --font-display: "Gill Sans", "Trebuchet MS", "Avenir Next", sans-serif;
  --font-body: "Avenir Next", "Noto Sans", "Segoe UI", sans-serif;
}

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

html,
body {
  margin: 0;
  width: 100%;
  min-height: 100%;
}

body {
  position: relative;
  font-family: var(--font-body);
  color: var(--text);
  background:
    radial-gradient(130% 115% at 0% 0%, #d6e8ff 0%, transparent 58%),
    radial-gradient(120% 120% at 100% 100%, #d7f9ff 0%, transparent 52%),
    linear-gradient(155deg, var(--bg), var(--bg-2));
  padding: clamp(14px, 3vw, 28px);
  overflow-x: hidden;
}

.bg-layer {
  position: fixed;
  width: min(42vw, 440px);
  height: min(42vw, 440px);
  border-radius: 48% 52% 60% 40% / 44% 56% 44% 56%;
  filter: blur(2px);
  pointer-events: none;
  z-index: 0;
}

.bg-layer-left {
  top: -130px;
  left: -120px;
  background: linear-gradient(130deg, rgba(85, 174, 255, 0.34), rgba(95, 234, 211, 0.2));
}

.bg-layer-right {
  right: -130px;
  bottom: -140px;
  background: linear-gradient(130deg, rgba(255, 177, 88, 0.26), rgba(255, 116, 132, 0.2));
}

.store-shell {
  position: relative;
  z-index: 1;
  width: min(980px, 100%);
  margin: 0 auto;
  display: grid;
  gap: 14px;
}

.store-header {
  background: var(--surface);
  border: 1px solid var(--line);
  border-radius: 22px;
  padding: clamp(16px, 3vw, 26px);
  backdrop-filter: blur(12px);
  box-shadow: var(--shadow);
  animation: rise-in 420ms ease-out both;
}

.kicker {
  margin: 0;
  font-size: 12px;
  letter-spacing: 0.14em;
  font-weight: 800;
  color: var(--brand);
}

.store-header h1 {
  margin: 6px 0;
  font-family: var(--font-display);
  font-size: clamp(32px, 5vw, 52px);
  line-height: 1.02;
  letter-spacing: 0.02em;
}

.subtitle {
  margin: 0;
  color: var(--muted);
  font-size: clamp(14px, 2vw, 18px);
}

.featured-card {
  background:
    radial-gradient(220px 110px at 85% 0%, rgba(38, 182, 255, 0.22), transparent 72%),
    var(--surface-strong);
  border: 1px solid var(--line);
  border-radius: 20px;
  padding: clamp(14px, 2.8vw, 22px);
  box-shadow: var(--shadow);
  display: grid;
  grid-template-columns: minmax(0, 1fr) auto;
  gap: 14px;
  align-items: center;
  animation: rise-in 480ms ease-out 80ms both;
}

.featured-tag {
  margin: 0 0 4px;
  display: inline-block;
  border-radius: 999px;
  padding: 4px 10px;
  font-size: 11px;
  font-weight: 800;
  letter-spacing: 0.08em;
  color: #0a5f95;
  background: rgba(26, 166, 227, 0.14);
}

.featured-copy h2 {
  margin: 0 0 4px;
  font-size: clamp(24px, 3.5vw, 34px);
  font-family: var(--font-display);
}

.featured-copy p {
  margin: 0;
  color: var(--muted);
}

.primary-action {
  border: 1px solid transparent;
  border-radius: 12px;
  padding: 12px 18px;
  text-decoration: none;
  color: #ffffff;
  font-weight: 800;
  background: linear-gradient(150deg, var(--brand), var(--brand-2));
  box-shadow: 0 12px 24px rgba(11, 135, 216, 0.28);
  transition: transform 140ms ease, box-shadow 140ms ease, filter 140ms ease;
}

.primary-action:hover {
  transform: translateY(-1px);
  filter: brightness(1.04);
  box-shadow: 0 14px 26px rgba(11, 135, 216, 0.33);
}

.primary-action:active {
  transform: translateY(1px);
}

.app-list {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(280px, 1fr));
  gap: 12px;
}

.app-card {
  position: relative;
  overflow: hidden;
  text-decoration: none;
  color: inherit;
  display: grid;
  grid-template-columns: auto minmax(0, 1fr) auto;
  align-items: center;
  gap: 14px;
  background: var(--surface-strong);
  border: 1px solid var(--line);
  border-radius: 18px;
  padding: 14px 16px;
  box-shadow: var(--shadow);
  transition: transform 160ms ease, box-shadow 160ms ease, border-color 160ms ease;
  animation: rise-in 540ms ease-out both;
}

.app-card:nth-child(1) {
  animation-delay: 160ms;
}

.app-card:nth-child(2) {
  animation-delay: 240ms;
}

.app-card::after {
  content: "";
  position: absolute;
  inset: auto 12px 0;
  height: 3px;
  border-radius: 999px;
  background: linear-gradient(90deg, rgba(19, 166, 222, 0.45), rgba(255, 138, 61, 0.3));
}

.app-card:hover {
  transform: translateY(-2px);
  border-color: rgba(20, 109, 181, 0.4);
  box-shadow: 0 18px 28px rgba(16, 56, 98, 0.18);
}

.app-icon {
  width: clamp(50px, 8vw, 60px);
  aspect-ratio: 1;
  border-radius: 15px;
  display: grid;
  place-items: center;
  font-weight: 900;
  letter-spacing: 0.04em;
  color: #ffffff;
  font-family: var(--font-display);
  box-shadow:
    inset 0 0 0 1px rgba(255, 255, 255, 0.34),
    0 8px 18px rgba(25, 80, 136, 0.28);
}

.app-run .app-icon {
  background: linear-gradient(145deg, #2d7bff, #12b8f6);
}

.app-jump .app-icon {
  background: linear-gradient(145deg, #ff8a3d, #ff5688);
}

.app-meta h3 {
  margin: 0 0 3px;
  font-size: clamp(18px, 2.3vw, 23px);
  font-family: var(--font-display);
}

.app-meta p {
  margin: 0;
  color: var(--muted);
  font-size: clamp(13px, 1.6vw, 15px);
}

.app-action {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  min-width: 68px;
  border-radius: 999px;
  border: 1px solid rgba(17, 136, 212, 0.28);
  padding: 6px 12px;
  font-weight: 800;
  color: #0765a2;
  background: rgba(18, 145, 219, 0.09);
}

@media (max-width: 680px) {
  .featured-card {
    grid-template-columns: 1fr;
  }

  .primary-action {
    width: 100%;
    text-align: center;
  }

  .app-card {
    grid-template-columns: auto 1fr;
  }

  .app-action {
    grid-column: 1 / -1;
    justify-self: start;
  }
}

@keyframes rise-in {
  from {
    opacity: 0;
    transform: translateY(14px);
  }
  to {
    opacity: 1;
    transform: translateY(0);
  }
}
