/* Minimal reset */
*, *::before, *::after { box-sizing: border-box; }
html, body { height: 100%; }
body { margin: 0; padding: 0; color: #e9e0ff; font-family: ui-sans-serif, system-ui, -apple-system, "Segoe UI", Roboto, Inter, Arial; line-height: 1.4; }

/* Brown radial gradient background with purple hacker accents */
body {
  background:
    radial-gradient(circle at 20% 10%, rgba(102, 40, 0, 0.28) 0%, rgba(48, 22, 0, 0.28) 40%, rgba(8,6,12,0.9) 100%),
    radial-gradient(circle at 85% -5%, rgba(128,0,255,0.25) 0%, rgba(60,0,60,0.25) 50%, rgba(0,0,0,0.75) 100%);
  background-color: #050509;
  min-height: 100vh;
  text-rendering: optimizeLegibility;
  -webkit-font-smoothing: antialiased;
  -moz-osx-font-smoothing: grayscale;
  overflow-x: hidden;
}

/* Frosted glass helper */
.glass {
  background: rgba(15, 0, 40, 0.54);
  border: 1px solid rgba(170, 140, 255, 0.32);
  border-radius: 12px;
  backdrop-filter: blur(6px) saturate(120%);
  -webkit-backdrop-filter: blur(6px) saturate(120%);
  box-shadow: 0 8px 26px rgba(0,0,0,.35);
}

/* Layout structure (mobile-first) */
header {
  padding: 4rem 1rem 2rem;
  text-align: center;
  position: relative;
  /* hero frosted feel across the top */
  background: rgba(20, 0, 40, 0.40);
  border-bottom: 1px solid rgba(180, 150, 255, 0.25);
  backdrop-filter: blur(6px);
  -webkit-backdrop-filter: blur(6px);
}

header h1 {
  font-family: ui-sans-serif, system-ui;
  font-weight: 700;
  margin: 0 auto 0.75rem;
  color: #f0e6ff;
  font-size: clamp(1.6rem, 6vw, 2.8rem);
  line-height: 1.15;
  text-shadow: 0 0 12px rgba(140, 92, 246, 0.9);
  max-width: 900px;
}

main { padding: 0 1rem 2rem; }

/* Image frame with frosted glass look */
.image-frame {
  max-width: 860px;
  margin: 2rem auto;
  padding: 1rem;
  border-radius: 14px;
  border: 1px solid rgba(255,255,255,0.15);
  background: rgba(10, 0, 24, 0.5);
  backdrop-filter: blur(6px);
  -webkit-backdrop-filter: blur(6px);
}

.image-frame img {
  width: 100%;
  height: auto;
  display: block;
  border-radius: 10px;
  outline: 0;
}

/* Footer + product ad */
footer {
  padding: 1.5rem 1rem 3rem;
  text-align: center;
  color: #d8caff;
  background: linear-gradient(to top, rgba(5,5,12,0.9), rgba(5,5,12,0.25) 60%, rgba(5,5,12,0.9) 100%);
}

.product-ad {
  display: inline-flex;
  flex-direction: column;
  align-items: flex-start;
  gap: .5rem;
  padding: 1rem;
  width: max-content;
  margin: 0 auto 1rem;
  background: rgba(8, 0, 24, 0.58);
  border: 1px solid rgba(180, 140, 255, 0.35);
  border-radius: 12px;
  backdrop-filter: blur(6px);
  -webkit-backdrop-filter: blur(6px);
}
.product-ad h3 {
  margin: 0;
  font-size: 1rem;
  color: #f3e6ff;
}
.product-ad a {
  display: inline-flex;
  align-items: center;
  gap: .5rem;
  padding: .55rem .9rem;
  border-radius: 8px;
  background: rgba(124, 58, 237, 0.95);
  color: #fff;
  text-decoration: none;
  border: 1px solid rgba(255,255,255,.25);
  font-weight: 600;
  transition: transform 0.2s ease, box-shadow 0.2s ease;
}
.product-ad a:hover {
  transform: translateY(-1px);
  box-shadow: 0 8px 20px rgba(124,58,237,.6);
}
.product-ad a:focus-visible {
  outline: 3px solid #a78bfa;
  outline-offset: 2px;
}
footer p {
  margin: 0.25rem 0 0;
  color: #cdbaff;
}

/* Focus accessibility for all interactive elements */
:focus-visible {
  outline: 3px solid #a78bfa;
  outline-offset: 2px;
  border-radius: 6px;
}

/* Typography tweaks for better contrast on dark backgrounds */
h1, h2, h3, h4 {
  letter-spacing: .2px;
}
a { color: #e2d6ff; text-decoration: none; }
a:hover { text-decoration: underline; }

/* Responsive tweaks for larger screens (still mobile-first base) */
@media (min-width: 700px) {
  header { padding: 5rem 2rem 3rem; }
  .image-frame { margin: 3rem auto; padding: 1.25rem; }
  .product-ad { margin: 0.75rem auto 1.5rem; }
}
@media (min-width: 1024px) {
  /* Slightly larger hero feel on wide screens */
  header { padding: 6rem 2rem 2.5rem; text-align: left; }
  header h1 { text-align: left; }
  main { padding: 0 2rem 2rem; }
  .image-frame { margin: 3rem auto; width: 60%; }
  footer { text-align: center; }
}