/* Minimal reset and responsive, hacker/cyberpunk styling with frosted glass */
:root {
  --bg-deep: #0b0e21;
  --bg-mid:  #0a1020;
  --indigo:  #3e2a7a;
  --indigo-dark: #251347;
  --red:     #ff2a3a;
  --red-dark:#b71225;
  --text:    #e8eaff;
  --muted:   #cbd5e9;
  --glass: rgba(14, 0, 40, 0.6);
  --glass-border: rgba(255, 255, 255, 0.25);
  --shadow:  0 14px 34px rgba(0,0,0,.42);
  --radius:  14px;
}

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

html, body { height: 100%; }

body {
  margin: 0;
  font-family: ui-sans-serif, system-ui, -apple-system, "Segoe UI", Roboto;
  color: var(--text);
  background: linear-gradient(135deg, rgba(14,0,40,.95) 0%, rgba(8,8,34,.95) 60%, rgba(12,0,50,.95) 100%);
  /* Indigo metallic sheen: layered gradient + subtle sheen animation */
  background-size: 300% 300%;
  background-attachment: fixed;
  animation: sheen 12s linear infinite;
  min-height: 100vh;
  -webkit-font-smoothing: antialiased;
  -moz-osx-font-smoothing: grayscale;
  position: relative;
  overflow-x: hidden;
}

@keyframes sheen {
  0% { background-position: 0% 50%; }
  50% { background-position: 100% 50%; }
  100% { background-position: 0% 50%; }
}

@media (prefers-reduced-motion: reduce) {
  body { animation: none; }
}

/* Light reset for content sections */
main { width: 100%; display: block; padding: 1.25rem 1rem; flex: 1 0 auto; }

.image-frame {
  width: 100%;
  max-width: 720px;
  margin: 0 auto;
  border-radius: calc(var(--radius) + 6px);
  padding: 1rem;
  background: rgba(14, 0, 40, 0.55);
  border: 1px solid rgba(180, 0, 60, 0.55);
  backdrop-filter: saturate(120%) blur(6px);
  -webkit-backdrop-filter: saturate(120%) blur(6px);
  box-shadow: var(--shadow);
}

.image-frame img {
  width: 100%;
  height: auto;
  display: block;
  border-radius: 12px;
  filter: saturate(1.05) contrast(1.02);
  image-rendering: auto;
}

/* Footer / Ad area with frosted glass look */
footer {
  margin-top: 2rem;
  padding: 1.25rem;
  display: grid;
  justify-items: center;
  gap: .75rem;
  grid-template-columns: 1fr;
}

.product-ad {
  width: 100%;
  max-width: 720px;
  padding: 1rem;
  border-radius: var(--radius);
  background: rgba(14, 0, 40, 0.65);
  border: 1px solid rgba(180, 0, 80, 0.5);
  backdrop-filter: blur(6px);
  -webkit-backdrop-filter: blur(6px);
  text-align: center;
  box-shadow: var(--shadow);
}

.product-ad h3 {
  margin: 0 0 0.5rem 0;
  font-size: 1.05rem;
  letter-spacing: .2px;
  color: #ffd6d6;
}

.product-ad a {
  display: inline-block;
  padding: .75rem 1.25rem;
  border-radius: 999px;
  background: linear-gradient(135deg, #e11d3f 0%, #ff3b3b 60%, #b70f25 100%);
  color: white;
  text-decoration: none;
  font-weight: 700;
  border: 1px solid rgba(255,255,255,.25);
  transition: transform .2s ease, box-shadow .2s ease;
}
.product-ad a:hover {
  transform: translateY(-1px);
  box-shadow: 0 8px 18px rgba(0,0,0,.4);
}
.product-ad a:focus-visible {
  outline: 3px solid #fff;
  outline-offset: 2px;
}
.product-ad p {
  margin: 0;
  font-size: .95rem;
  color: #ffd6d6;
}

/* High-contrast text adjustments for body text if needed */
p { color: var(--text); }

/* Small screens: ensure generous touch targets and readability */
@media (min-width: 640px) {
  main { padding: 2.5rem 1.25rem; }
  .image-frame { margin-top: 2rem; padding: 1.25rem; }
  .product-ad { padding: 1.35rem; }
}

/* Medium screens: center the layout and give breathing room */
@media (min-width: 900px) {
  body { padding: 0 2.5rem; }
  footer { align-items: center; justify-items: center; }
}
