*,
*::before,
*::after {
  box-sizing: border-box;
}
html, body {
  height: 100%;
}
:root{
  --bg: #0b0b0f;
  --card: rgba(255,255,255,.08);
  --card-border: rgba(255,255,255,.22);
  --text: #e9e9ff;
  --muted: #b9b9d6;
  --primary: #8b5cf6;
  --primary-dark: #7c3aed;
  --shadow: 0 12px 28px rgba(0,0,0,.5);
  --radius: 14px;
  --focus: 0 0 0 3px rgba(124,58,237,.75);
}
body {
  margin: 0;
  color: var(--text);
  background-color: var(--bg);
  font-family: Inter, ui-sans-serif, system-ui, -apple-system, "Segoe UI", Roboto;
  -webkit-font-smoothing: antialiased;
  -moz-osx-font-smoothing: grayscale;
  /* Purple low-poly triangles background (light reset) */
  background-image:
    linear-gradient(135deg, rgba(124,58,237,.20) 25%, transparent 25%),
    linear-gradient(225deg, rgba(99,102,241,.20) 25%, transparent 25%),
    linear-gradient(315deg, rgba(168,85,247,.20) 25%, transparent 25%);
  background-position: 0 0, 15px 0, 0 15px;
  background-size: 60px 60px;
  background-repeat: repeat;
}
a {
  color: inherit;
  text-decoration: none;
}
header {
  width: min(1100px, 92%);
  margin: 28px auto;
  padding: 18px 20px;
  border-radius: 16px;
  text-align: center;
  background: rgba(255,255,255,.08);
  border: 1px solid rgba(255,255,255,.22);
  backdrop-filter: blur(6px);
  -webkit-backdrop-filter: blur(6px);
  position: relative;
  overflow: hidden;
}
header::before {
  content: "";
  position: absolute;
  left: -40px;
  top: -40px;
  width: 160px;
  height: 160px;
  background: radial-gradient(circle at 40% 40%, rgba(139,92,246,.9), transparent 40%);
  filter: blur(28px);
  z-index: 0;
  opacity: .6;
  pointer-events: none;
}
header h1 {
  position: relative;
  z-index: 1;
  margin: 0;
  font-size: 1.6rem;
  line-height: 1.15;
  font-weight: 800;
  letter-spacing: .6px;
  color: transparent;
  background: linear-gradient(90deg, #e9e6ff 0%, #d9b8ff 60%, #c9a8ff 100%);
  -webkit-background-clip: text;
  background-clip: text;
  text-shadow: 0 0 14px rgba(124,58,237,.55);
}
main {
  display: grid;
  place-items: center;
  padding: 8px 16px 20px;
}
.image-frame {
  width: 100%;
  max-width: 720px;
  padding: 14px;
  margin: 0 auto;
  border-radius: 16px;
  background: rgba(255,255,255,.08);
  border: 1px solid rgba(255,255,255,.25);
  box-shadow: var(--shadow);
  backdrop-filter: blur(6px);
  -webkit-backdrop-filter: blur(6px);
}
.image-frame img {
  display: block;
  width: 100%;
  height: auto;
  border-radius: 12px;
  border: 1px solid rgba(255,255,255,.25);
  object-fit: cover;
}
footer {
  padding: 32px 16px 40px;
  text-align: center;
}
.product-ad {
  display: inline-block;
  text-align: left;
  padding: 16px;
  width: min(720px, 92%);
  border-radius: 12px;
  background: rgba(255,255,255,.08);
  border: 1px solid rgba(255,255,255,.22);
  backdrop-filter: blur(6px);
  -webkit-backdrop-filter: blur(6px);
  box-shadow: var(--shadow);
}
.product-ad h3 {
  margin: 0 0 8px;
  font-size: 1.05rem;
  color: #f6f6ff;
}
.product-ad a {
  display: inline-flex;
  align-items: center;
  gap: 10px;
  padding: 10px 14px;
  border-radius: 999px;
  background: linear-gradient(135deg, rgba(124,58,237,.95), rgba(80,0,160,.95));
  color: #fff;
  text-decoration: none;
  font-weight: 700;
  border: 1px solid rgba(255,255,255,.35);
  box-shadow: 0 6px 16px rgba(124,58,237,.6);
}
.product-ad a:hover {
  transform: translateY(-1px);
  box-shadow: 0 8px 20px rgba(124,58,237,.8);
}
.product-ad a:focus-visible {
  outline: none;
  box-shadow: 0 0 0 3px rgba(124,58,237,.85), 0 8px 20px rgba(124,58,237,.8);
}
footer p {
  margin: 10px 0 0;
  color: #b9b9d6;
  font-size: .9rem;
}

/* Focus styles for accessibility on focusable elements by keyboard */
:focus-visible {
  outline: none;
  box-shadow: var(--focus);
  border-radius: 6px;
}

/* Responsive: mobile-first, scale up for larger screens */
@media (min-width: 600px) {
  header { padding: 22px 24px; }
  header::before { width: 210px; height: 210px; left: -60px; top: -60px; }
  header h1 { font-size: 2rem; }
  .image-frame { padding: 18px; }
}
@media (min-width: 900px) {
  header { border-radius: 18px; padding: 28px 28px; }
  header h1 { font-size: 2.4rem; }
  main { padding: 16px 0 28px; }
  .image-frame { width: 70%; }
  .product-ad { width: 60%; }
}
@media (min-width: 1200px) {
  header { padding: 32px 32px; }
  header h1 { font-size: 2.8rem; }
}
