:root {
  --bg: #0b0b14;
  --grid: rgba(255, 0, 170, 0.25);
  --text: #e9e2f7;
  --card: rgba(255, 255, 255, 0.08);
  --glass: rgba(255, 255, 255, 0.08);
  --acc: #ff2bd6;
  --acc-dark: #a700c9;
}

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

html, body {
  height: 100%;
}

body {
  margin: 0;
  color: var(--text);
  font-family: Inter, ui-sans-serif, system-ui, -apple-system, "Segoe UI", Roboto;
  line-height: 1.4;
  background-color: var(--bg);
  background-image:
    linear-gradient(to right, rgba(255,0,170,0.28) 1px, transparent 1px),
    linear-gradient(to bottom, rgba(255,0,170,0.28) 1px, transparent 1px);
  background-size: 40px 40px;
  min-height: 100vh;
  display: flex;
  flex-direction: column;
  -webkit-font-smoothing: antialiased;
  -moz-osx-font-smoothing: grayscale;
}

main {
  width: 100%;
  display: flex;
  justify-content: center;
  padding: 28px 16px;
}

.image-frame {
  width: min(92%, 1100px);
  aspect-ratio: 16 / 9;
  border-radius: 16px;
  overflow: hidden;
  position: relative;
  background: rgba(255,255,255,0.05);
  border: 1px solid rgba(255,255,255,0.15);
  box-shadow: 0 8px 40px rgba(0,0,0,0.5);
  backdrop-filter: blur(2px);
  -webkit-backdrop-filter: blur(2px);
}

.image-frame img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  display: block;
  filter: saturate(1.05) contrast(1.05);
  transition: transform 0.4s ease;
}
.image-frame:hover img { transform: scale(1.02); }

.image-frame::after {
  content: "";
  position: absolute;
  inset: 0;
  background: linear-gradient(to bottom, rgba(0,0,0,0.0), rgba(0,0,0,0.25));
  pointer-events: none;
  mix-blend-mode: multiply;
}

footer {
  margin-top: auto;
  padding: 16px;
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 8px;
  width: 100%;
}

.product-ad {
  width: min(92%, 760px);
  padding: 16px 20px;
  border-radius: 12px;
  background: rgba(255,255,255,0.08);
  border: 1px solid rgba(255,255,255,0.22);
  backdrop-filter: blur(8px);
  -webkit-backdrop-filter: blur(8px);
  text-align: center;
  box-shadow: 0 6px 22px rgba(0,0,0,0.4);
}

.product-ad h3 {
  margin: 0 0 8px;
  font-size: 1rem;
  font-weight: 700;
  letter-spacing: 0.4px;
  color: #ffd3f7;
}

.product-ad a {
  text-decoration: none;
}

.product-ad a p {
  margin: 0;
  display: inline-block;
  padding: 12px 16px;
  border-radius: 10px;
  color: #0a0410;
  font-weight: 700;
  background: linear-gradient(135deg, #ff2bd6 0%, #a700c9 100%);
  border: 1px solid rgba(255,255,255,0.8);
  cursor: pointer;
  transition: transform 0.15s ease;
}
.product-ad a p:hover { transform: translateY(-1px); }

.product-ad a:focus-visible {
  outline: 3px solid #ffd8f2;
  outline-offset: 2px;
}
.product-ad a:focus { text-decoration: none; }

footer p {
  color: rgba(230,230,255,0.75);
  font-size: 0.95rem;
}

@media (min-width: 768px) {
  main { padding: 40px; }
  .image-frame { border-radius: 20px; }
  .product-ad { padding: 18px 22px; }
  .product-ad h3 { font-size: 1.05rem; }
}

@media (min-width: 1024px) {
  .image-frame { width: min(80%, 1000px); }
  footer { align-items: center; padding: 24px; }
  .product-ad a p { padding: 14px 20px; font-size: 1.02rem; }
}