/* Minimal, mobile-first, cyberpunk-inspired styling with frosted glass and a maroon circuit board backdrop */

:root {
  --bg-maroon: #320a0a;
  --bg-dark: #1b0000;
  --gold: #d4af37;
  --gold-dark: #b88900;
  --text: #f5f0e0;
  --glass: rgba(255,255,255,.14);
  --glass-edge: rgba(255,255,255,.35);
}

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

html, body { height: 100%; }

body {
  margin: 0;
  color: var(--text);
  font-family: ui-sans-serif, system-ui, -apple-system, "Segoe UI", Roboto, Arial;
  line-height: 1.5;
  background-color: var(--bg-maroon);
  /* Subtle maroon circuit board pattern with gold accents */
  background-image:
    linear-gradient(0deg, rgba(212,175,55,.15) 1px, transparent 1px),
    linear-gradient(90deg, rgba(212,175,55,.15) 1px, transparent 1px),
    linear-gradient(#3a0e0e, #0b0b0b);
  background-size: 24px 24px, 24px 24px, 100% 100%;
  background-position: 0 0, 0 0, 0 0;
  background-blend-mode: overlay;
}

main {
  padding: 2rem 1rem 0;
  display: flex;
  flex-direction: column;
  align-items: center;
}

/* Hero image frame with frosted-glass feel */
.image-frame {
  width: min(92vw, 880px);
  border-radius: 20px;
  overflow: hidden;
  border: 1px solid rgba(255,255,255,.25);
  background: rgba(0,0,0,.25);
  box-shadow: 0 12px 40px rgba(0,0,0,.45);
  backdrop-filter: blur(2px);
  -webkit-backdrop-filter: blur(2px);
}

.image-frame img {
  display: block;
  width: 100%;
  height: auto;
  /* subtle glow for hacker vibe */
  filter: saturate(1.05) contrast(1.02);
}

/* Footer with frosted glass ad card and copyright */
footer {
  width: 100%;
  display: flex;
  flex-direction: column;
  align-items: center;
  padding: 1.25rem 1rem 2rem;
  gap: .75rem;
  background: rgba(0,0,0,.25);
  border-top: 1px solid rgba(255,255,255,.15);
  backdrop-filter: blur(2px);
  -webkit-backdrop-filter: blur(2px);
}

.product-ad {
  width: min(92vw, 520px);
  padding: .9rem;
  border-radius: 12px;
  background: rgba(255,255,255,.15);
  border: 1px solid rgba(255,255,255,.3);
  text-align: left;
  display: flex;
  flex-direction: column;
  gap: .4rem;
  backdrop-filter: blur(6px);
  -webkit-backdrop-filter: blur(6px);
}

.product-ad h3 {
  margin: 0;
  font-size: 1rem;
  letter-spacing: .04em;
  color: #ffe;
}

.product-ad a {
  display: inline-block;
  text-decoration: none;
  border-radius: 6px;
  padding: .5rem .75rem;
  background: var(--gold);
  color: #1a0a00;
  font-weight: 700;
  line-height: 1;
  transition: transform .2s ease;
}
.product-ad a:hover { transform: translateY(-1px); background: #e8c14a; }
.product-ad a:focus { outline: 3px solid #ffd54f; outline-offset: 2px; }

.product-ad a p { margin: 0; padding: 0; color: inherit; }

/* Fine text for the ad/copyright */
.product-ad p { margin: 0; font-size: .95rem; color: #e9e0c0; }

/* Accessibility: keep focus visible on keyboard navigation */
:focus-visible {
  outline: 3px solid #ffd54f;
  outline-offset: 2px;
  border-radius: 4px;
}

@media (min-width: 768px) {
  main { padding: 3rem 2rem 1rem; }
  .image-frame { width: 70%; }
  footer { padding: 1.5rem 2rem 2rem; flex-direction: row; justify-content: center; gap: 2rem; }
  .product-ad { width: 42%; min-width: 320px; }
}