/* Basic reset */
*,
*::before,
*::after { box-sizing: border-box; }
html, body { height: 100%; }
html, body { margin: 0; padding: 0; }

/* Theme: cyberpunk hacker vibe with gold low-poly backdrop and blue accents */
:root {
  --bg: #0a0f1a;
  --bg2: #091024;
  --blue: #1e90ff;
  --blue2: #4cc9f0;
  --glass: rgba(255, 255, 255, 0.08);
  --border: rgba(255, 255, 255, 0.25);
  --text: #eaf6ff;
  --gold: #d4af37;
  --gold2: #ffd96b;
  --shadow: 0 20px 60px rgba(0,0,0,0.45);
  --focus: 2px solid #4cc9f0;
}

/* Subtle glow for cyber aesthetic on body text */
body {
  font-family: Inter, ui-sans-serif, system-ui, -apple-system, "Segoe UI", Roboto;
  color: var(--text);
  background: var(--bg);
  min-height: 100vh;
  display: flex;
  flex-direction: column;
  /* Gold low-poly triangles background (light, responsive) */
  background-image: url("data:image/svg+xml;utf8,<svg xmlns='http://www.w3.org/2000/svg' width='800' height='600' viewBox='0 0 800 600'><polygon points='0,600 0,0 300,600' fill='%23d4af37' opacity='0.18'/><polygon points='300,600 600,200 800,600' fill='%23ffd24d' opacity='0.22'/><polygon points='0,600 350,250 800,600' fill='%23f6c85b' opacity='0.16'/></svg>");
  background-size: cover;
  background-attachment: fixed;
  text-shadow: 0 0 8px rgba(0, 170, 255, 0.25);
}

/* Layout containers */
main {
  flex: 1 1 auto;
  display: grid;
  place-items: center;
  padding: 28px 16px;
}

/* Frosted glass image frame (hero) */
.image-frame {
  width: min(94vw, 860px);
  aspect-ratio: 16 / 9;
  border-radius: 20px;
  overflow: hidden;
  border: 1px solid rgba(255,255,255,0.25);
  background: rgba(255, 255, 255, 0.08);
  backdrop-filter: saturate(1.3) blur(6px);
  -webkit-backdrop-filter: saturate(1.3) blur(6px);
  display: grid;
  box-shadow: var(--shadow);
  transition: transform 0.25s ease;
}
.image-frame:hover { transform: translateY(-2px); }

/* Image inside the frosted frame */
.image-frame img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  display: block;
  filter: saturate(1.05);
}

/* Footer with a glassy bar and CTA section */
footer {
  padding: 14px 12px;
  text-align: center;
  background: rgba(2, 6, 23, 0.65);
  border-top: 1px solid rgba(100, 180, 255, 0.4);
  backdrop-filter: blur(4px);
  -webkit-backdrop-filter: blur(4px);
  color: #d9eaff;
}

/* Product ad card (prominent CTA) */
.product-ad {
  display: inline-flex;
  align-items: center;
  gap: 12px;
  padding: 10px 14px;
  border-radius: 12px;
  background: rgba(5, 12, 30, 0.75);
  border: 1px solid rgba(100, 180, 255, 0.6);
  margin: 8px auto 12px;
  box-shadow: 0 6px 20px rgba(0,0,0,0.25);
  transition: transform 0.25s ease;
}
.product-ad:hover { transform: translateY(-1px); }

/* Title in the ad section */
.product-ad h3 {
  font-size: 1rem;
  margin: 0;
  color: #e7f0ff;
  line-height: 1;
  letter-spacing: .3px;
}

/* CTA link styled as a pill button */
.product-ad a {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  padding: 10px 16px;
  border-radius: 999px;
  color: #fff;
  text-decoration: none;
  font-weight: 700;
  font-size: 0.95rem;
  background: linear-gradient(135deg, rgba(0, 120, 255, 0.65), rgba(0, 200, 255, 0.65));
  border: 1px solid rgba(180, 230, 255, 0.8);
  box-shadow: 0 0 14px rgba(0, 170, 255, 0.6);
}
.product-ad a:hover { filter: brightness(1.05); transform: translateY(-1px); }

/* Ensure the nested paragraph inside the anchor remains legible */
.product-ad a > p {
  margin: 0;
  padding: 0;
  display: inline;
  color: #fff;
}

/* Small accessibility tweaks for focus visibility on focusable elements */
a:focus-visible {
  outline: var(--focus);
  outline-offset: 2px;
  border-radius: 6px;
}
.product-ad:focus-within {
  box-shadow: 0 0 0 3px rgba(76, 201, 240, 0.5);
}

/* Footer copy (copyright) */
footer p {
  margin: 6px 0 0;
  font-size: 12px;
  color: rgba(231, 244, 255, 0.85);
}

/* Responsive tweaks (mobile-first) */
@media (min-width: 768px) {
  main { padding: 40px 0; }
  .image-frame { width: min(80vw, 980px); }
  .product-ad { padding: 12px 16px; }
  .product-ad h3 { font-size: 1.05rem; }
}
@media (min-width: 1024px) {
  .image-frame { width: min(70vw, 1100px); }
  footer { padding: 18px 0; }
}