/* Base Reset */
* {
  margin: 0;
  padding: 0;
  box-sizing: border-box;
  scroll-behavior: smooth;
}
html, body {
  height: 100%;
  -webkit-font-smoothing: antialiased;
  -moz-osx-font-smoothing: grayscale;
}

/* Body Styling */
body {
  font-family: 'Segoe UI', Tahoma, Geneva, Verdana, sans-serif;
  background-color: #0a0a23;
  background-image: url("ps2.png");
  background-position: center;
  background-repeat: no-repeat;
  background-size: cover;
  background-attachment: scroll;
  color: #e0f7fa;
  font-size: 18px;
  line-height: 1.6;
  overflow-x: hidden;
  display: flex;
  flex-direction: column;
  min-height: 100vh;
  position: relative;
}


/* Overlay */
body::before {
  content: "";
  position: fixed;
  inset: 0;
  background: linear-gradient(180deg, rgba(10,10,30,0.6), rgba(20,20,60,0.8));
  pointer-events: none;
  z-index: 0;
}

/* Container */
.container {
  flex: 1;
  max-width: 1000px;
  margin: 40px auto;
  padding: 100px 20px 50px;
  text-align: center;
  background: rgba(20, 20, 60, 0.6);
  border-radius: 12px;
  position: relative;
  z-index: 1;
  box-shadow: 0 10px 30px rgba(0,0,0,0.7);
  backdrop-filter: blur(8px);
  border: 1px solid rgba(255,255,255,0.05);
}

/* Logo */
.logo-container {
  position: fixed;
  top: 20px;
  left: 20px;
  z-index: 30;
}
.logo-container img {
  height: 60px;
  transition: transform 180ms ease;
  cursor: pointer;
}
.logo-container img:hover,
.logo-container img:focus {
  transform: scale(1.08);
}
.logo-container img:focus-visible {
  outline: 2px dashed #00e5ff;
  outline-offset: 4px;
  border-radius: 6px;
}

/* Typography */
.intro,
li {
  font-size: 18px;
  color: #e0f7fa;
  line-height: 1.7;
  margin-bottom: 15px;
}

/* Lists */
ul, ol {
  list-style-type: disc;
  padding: 20px 30px;
  max-width: 700px;
  margin: 20px auto;
  background: rgba(0, 255, 255, 0.08);
  border-radius: 12px;
}
li {
  text-align: left;
  margin-bottom: 10px;
}

/* Screenshots */
/* fadeIn keyframes added and staggered for nicer entrance */
@keyframes fadeIn {
  from { opacity: 0; transform: translateY(8px) scale(0.995); }
  to   { opacity: 1; transform: translateY(0) scale(1); }
}

.screenshots {
  display: flex;
  flex-wrap: wrap;
  gap: 12px;
  justify-content: center;
  align-items: stretch;
  margin: 20px auto;
  max-width: 1000px;
  padding: 0 10px;
  z-index: 1;
}
.screenshot {
  flex: 1 1 calc(33.333% - 12px);
  max-width: 320px;
  width: 100%;
  aspect-ratio: 16 / 9;
  object-fit: cover;
  display: block;
  border-radius: 12px;
  box-shadow: 0 5px 18px rgba(0,0,0,0.55);
  transition: transform 240ms ease, box-shadow 240ms ease;
  opacity: 0;
  animation: fadeIn 0.6s ease forwards;
}
.screenshot:nth-child(1) { animation-delay: 0.05s; }
.screenshot:nth-child(2) { animation-delay: 0.12s; }
.screenshot:nth-child(3) { animation-delay: 0.18s; }
.screenshot img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  border-radius: 12px;
  display: block;
}
.screenshot:hover,
.screenshot:focus-within {
  transform: translateY(-6px) scale(1.02);
  box-shadow: 0 12px 30px rgba(0,0,0,0.65);
}

/* Buttons */
.download-btn,
.mini-btn {
  display: inline-block;
  margin: 30px auto 0;
  padding: 14px 28px;
  border-radius: 30px;
  font-weight: 700;
  text-decoration: none;
  transition: transform 180ms ease, box-shadow 180ms ease, background 180ms ease;
  box-shadow: 0 6px 18px rgba(0, 0, 0, 0.45);
  -webkit-tap-highlight-color: transparent;
  cursor: pointer;
  text-align: center;
}

/* Make anchors keyboard-focusable and visible */
.download-btn:focus-visible,
.mini-btn:focus-visible {
  outline: 3px solid rgba(255,255,255,0.12);
  outline-offset: 4px;
  border-radius: 18px;
}

/* Primary */
.download-btn {
  background: linear-gradient(90deg, #00e5ff, #6200ea);
  color: #fff;
  font-size: 1.15rem;
  border: 1px solid rgba(255,255,255,0.06);
}
.download-btn:hover,
.download-btn:focus {
  transform: translateY(-4px) scale(1.03);
  box-shadow: 0 14px 36px rgba(0,0,0,0.6);
}
.download-btn:active {
  transform: scale(0.98);
}

/* Secondary */
.mini-btn {
  background: linear-gradient(90deg, #7c4dff, #00bcd4);
  color: #fff;
  font-size: 1rem;
}
.mini-btn:hover,
.mini-btn:focus {
  transform: scale(1.03);
  background: linear-gradient(90deg, #651fff, #00acc1);
}
.mini-btn:active {
  transform: scale(0.98);
}

/* Notes & Footer */
.size-note {
  font-size: 1.1rem;
  color: #80deea;
  margin-top: 15px;
}
.footer {
  margin-top: 60px;
  font-size: 0.9rem;
  color: #b2ebf2;
  text-shadow: 1px 1px 6px rgba(0,0,0,0.6);
}
footer {
  text-align: center;
  padding: 20px 10px;
  margin-top: auto;
  background: rgba(0,0,0,0.35);
}

/* Accessibility: prefer focus-visible over removing outlines globally */
a, button {
  /* do not remove keyboard focus outlines globally */
}
a:focus-visible, button:focus-visible {
  outline: 3px solid rgba(255,255,255,0.12);
  outline-offset: 3px;
  border-radius: 8px;
}

/* Reduced Motion */
@media (prefers-reduced-motion: reduce) {
  * {
    transition: none !important;
    animation: none !important;
  }
}

/* Responsive */
@media (max-width: 900px) {
  .screenshot {
    flex: 1 1 calc(50% - 12px);
    max-width: 46%;
    height: auto;
    aspect-ratio: 16/9;
  }
}
@media (max-width: 700px) {
  h1 { font-size: 2rem; }
  h2 { font-size: 1.2rem; }
  .intro, li { font-size: 1rem; }
  .download-btn, .mini-btn {
    width: 90%;
    padding: 14px 18px;
    font-size: 1rem;
  }
  .container {
    padding: 80px 12px;
    margin: 20px auto;
  }
  .screenshot {
    aspect-ratio: 4/3;
  }
}
@media (max-width: 500px) {
  .screenshot {
    flex: 1 1 100%;
    max-width: 100%;
    aspect-ratio: 4/3;
  }
  .logo-container img {
    height: 50px;
  }
}