/* Light reset */
*, *::before, *::after { box-sizing: border-box; }
html, body { height: 100%; margin: 0; padding: 0; }

/* Theme: magenta sunset gradient with gold hacker vibe, frosted glass accents */
:root {
  --magenta-1: #ff2d9f;
  --magenta-2: #8a00ff;
  --gold: #ffd700;
  --bg-gradient: linear-gradient(135deg, var(--magenta-1) 0%, var(--magenta-2) 40%, var(--gold) 100%);
  --text: #f9f7ff;
  --glass: rgba(255, 255, 255, 0.08);
  --glass-border: rgba(255, 255, 255, 0.25);
  --shadow: rgba(0, 0, 0, 0.25);
}

html { font-family: ui-sans-serif, system-ui, -apple-system, "Segoe UI", Roboto, Inter, Arial; line-height: 1.15; }
body {
  min-height: 100vh;
  background: var(--bg-gradient);
  color: var(--text);
  display: flex;
  flex-direction: column;
  -webkit-font-smoothing: antialiased;
  -moz-osx-font-smoothing: grayscale;
}

/* Layout container for hero feel */
main {
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  padding: 4rem 1rem;
  width: 100%;
  flex: 1 1 auto;
  gap: 1.5rem;
}

/* Frosted glass frame for the image area (hero visual) */
.image-frame {
  width: min(100%, 860px);
  border-radius: 16px;
  padding: 1rem;
  background: var(--glass);
  border: 1px solid var(--glass-border);
  backdrop-filter: saturate(1.25) blur(8px);
  -webkit-backdrop-filter: blur(8px);
  box-shadow: 0 20px 40px var(--shadow);
}

.image-frame img {
  width: 100%;
  height: auto;
  display: block;
  border-radius: 12px;
  filter: saturate(1.05);
  outline: 1px solid rgba(255,255,255,0.15);
}

/* Footer with a frosted ad panel to act as clear CTA area */
footer {
  padding: 1.75rem 1rem;
  width: 100%;
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 0.75rem;
  color: rgba(255,255,255,0.95);
  background: linear-gradient(to top, rgba(0,0,0,0.25), rgba(0,0,0,0.0) 60%);
}

.product-ad {
  display: flex;
  flex-direction: column;
  align-items: center;
  width: min(100%, 420px);
  padding: 0.75rem 1rem;
  border-radius: 14px;
  background: rgba(255, 255, 255, 0.08);
  border: 1px solid rgba(255,255,255,0.25);
  backdrop-filter: blur(6px);
  -webkit-backdrop-filter: blur(6px);
  box-shadow: 0 8px 22px rgba(0,0,0,0.25);
  text-align: center;
}

.product-ad h3 {
  font-size: 1rem;
  font-weight: 700;
  margin: 0.25rem 0 0.5rem;
  letter-spacing: .4px;
  color: #fff;
}

.product-ad a {
  text-decoration: none;
  display: inline-block;
  margin-top: 0.25rem;
  padding: 0.8rem 1.25rem;
  border-radius: 999px;
  background: linear-gradient(135deg, #ffd700 0%, #ffcc00 100%);
  color: #1a1a1a;
  font-weight: 800;
  border: 1px solid rgba(0,0,0,0.25);
  box-shadow: 0 6px 14px rgba(0,0,0,0.28);
  transition: transform .2s ease, box-shadow .2s ease;
}
.product-ad a:focus-visible {
  outline: 3px solid var(--gold);
  outline-offset: 2px;
}
.product-ad a:hover {
  transform: translateY(-1px);
  box-shadow: 0 8px 18px rgba(0,0,0,0.32);
}

footer p {
  margin: 0.25rem 0 0;
  font-size: 0.95rem;
  opacity: 0.95;
}

/* Accessibility: ensure high contrast for focus
   Ensure links in the main page are easily focusable by keyboard users */
a:focus-visible {
  outline: 3px solid #ffd700;
  outline-offset: 2px;
  border-radius: 6px;
}

/* Responsive adjustments (mobile-first) */
@media (min-width: 640px) {
  main { padding: 5rem 2rem; }
  .image-frame { padding: 1.25rem; }
}
@media (min-width: 900px) {
  footer { flex-direction: row; justify-content: center; gap: 2rem; }
  .product-ad { order: 0; margin: 0; }
}
