:root {
  --bg: #0a0a0a;
  --fg: #e9e9e9;
  --red: #ff2a2a;
  --red-dark: #d01818;
  --glass: rgba(255,255,255,.08);
  --dot: #ffd54f;
}

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

html, body { height: 100%; }
html, body { padding: 0; margin: 0; }

body {
  font-family: Inter, system-ui, -apple-system, "Segoe UI", Roboto, Arial, sans-serif;
  color: var(--fg);
  background-color: var(--bg);
  /* yellow dots pattern background */
  background-image: radial-gradient(circle at 1px 1px, var(--dot) 1px, transparent 1px);
  background-size: 24px 24px;
  -webkit-font-smoothing: antialiased;
  -moz-osx-font-smoothing: grayscale;
  min-height: 100%;
}

a { color: inherit; text-decoration: none; }

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

.image-frame {
  width: min(94%, 1024px);
  margin: 1.5rem auto;
  border-radius: 16px;
  overflow: hidden;
  position: relative;
  border: 1px solid rgba(255,255,255,.15);
  background: rgba(255,255,255,.05);
  box-shadow: 0 20px 60px rgba(0,0,0,.6);
}

.image-frame img {
  display: block;
  width: 100%;
  height: auto;
  object-fit: cover;
  filter: saturate(0.95) contrast(1.05);
}

.image-frame::after {
  content: "";
  position: absolute;
  inset: 0;
  background: linear-gradient(to bottom right, rgba(0,0,0,.25), rgba(0,0,0,.0) 60%);
  backdrop-filter: blur(6px);
  -webkit-backdrop-filter: blur(6px);
  pointer-events: none;
  border: 1px solid rgba(255,255,255,.15);
  box-shadow: inset 0 0 0 1px rgba(255,255,255,.04);
}

footer {
  width: 100%;
  padding: 1rem;
  display: flex;
  justify-content: center;
}

.product-ad {
  width: min(94%, 1000px);
  display: flex;
  flex-direction: column;
  gap: .5rem;
  padding: .9rem;
  border-radius: 12px;
  background: rgba(10,0,0,.42);
  border: 1px solid rgba(255,0,0,.5);
  color: #f6f6f6;
  backdrop-filter: blur(6px);
  -webkit-backdrop-filter: blur(6px);
  box-shadow: 0 10px 40px rgba(0,0,0,.5);
}

.product-ad h3 {
  margin: 0;
  font-weight: 700;
  font-size: 1.05rem;
  color: #ffd166;
  display: flex;
  align-items: center;
  gap: .5rem;
}

.product-ad a {
  display: inline-block;
  padding: .72rem 1rem;
  border-radius: 8px;
  background: var(--red);
  color: #fff;
  font-weight: 700;
  text-decoration: none;
  border: 1px solid rgba(0,0,0,.25);
  transition: transform .15s ease, box-shadow .15s ease;
  box-shadow: 0 6px 14px rgba(0,0,0,.4);
}
.product-ad a:hover {
  transform: translateY(-1px);
  box-shadow: 0 8px 18px rgba(0,0,0,.5);
}
.product-ad a:focus-visible {
  outline: 3px solid #ffd54f;
  outline-offset: 2px;
}

.footer-text {
  width: min(94%, 1000px);
  text-align: center;
  color: #bbb;
  font-size: 0.85rem;
  margin: .75rem auto 0;
  opacity: .9;
}

@media (min-width: 640px) {
  .image-frame { width: 86%; }
  .product-ad { width: 86%; }
}

@media (min-width: 1024px) {
  body { background-attachment: fixed; }
  .image-frame { width: 70%; }
  .footer-text { font-size: 0.95rem; }
}

@media (prefers-reduced-motion: reduce) {
  * { animation: none !important; transition: none !important; }
}