/* Reset and base */

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

:root {
  --orange: #ffa500;
  --orange-dark: #ff7a00;
  --silver: #cbd5e1;
  --bg: #050507;
  --text: #e5e7eb;
}

html, body { height: 100%; }

/* Orange zigzag background (tiny tile, data URL) for hacker vibe */
body {
  font-family: Inter, ui-sans-serif, system-ui, -apple-system, "Segoe UI", Roboto, Arial, "Helvetica Neue";
  color: var(--text);
  background-color: var(--bg);
  /* zigzag tile pattern */
  background-image: url("data:image/svg+xml;utf8,<svg xmlns='http://www.w3.org/2000/svg' width='40' height='40' viewBox='0 0 40 40'><polygon points='0,0 20,20 0,40' fill='%23ffa500'/><polygon points='20,0 40,20 20,40' fill='%23ffa500'/></svg>");
  background-size: 40px 40px;
  background-repeat: repeat;
  -webkit-font-smoothing: antialiased;
  -moz-osx-font-smoothing: grayscale;
  min-height: 100vh;
  display: flex;
  flex-direction: column;
}

/* Layout */
main {
  width: 100%;
  display: flex;
  align-items: center;
  justify-content: center;
  padding: 2rem 1rem 1rem;
  flex: 1 1 auto;
}

.image-frame {
  width: min(92vw, 1000px);
  aspect-ratio: 16 / 9;
  border-radius: 20px;
  overflow: hidden;
  position: relative;
  background: rgba(255, 255, 255, 0.08);
  border: 1px solid rgba(255, 255, 255, 0.25);
  box-shadow: 0 25px 60px rgba(0, 0, 0, 0.45);
  backdrop-filter: blur(6px);
  -webkit-backdrop-filter: blur(6px);
}

/* Image fills frame with frosted glass vibe */
.image-frame img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  display: block;
  filter: saturate(1.05) contrast(1.05);
}

.image-frame::after {
  content: "";
  position: absolute;
  inset: 0;
  background: linear-gradient(135deg, rgba(255,255,255,.18), rgba(255,255,255,.02));
  mix-blend-mode: screen;
  pointer-events: none;
}

/* Frosted glass effect for footer area */
footer {
  padding: 1.5rem 1rem;
  text-align: center;
  color: var(--silver);
  width: 100%;
  margin-top: auto;
  background: rgba(2, 6, 23, 0.35);
  border-top: 1px solid rgba(255,255,255,.15);
  backdrop-filter: blur(5px);
  -webkit-backdrop-filter: blur(5px);
}

.product-ad {
  display: inline-block;
  padding: .6rem 1rem;
  border-radius: 12px;
  background: rgba(255, 255, 255, 0.08);
  border: 1px solid rgba(230, 230, 230, 0.30);
  backdrop-filter: blur(4px);
  -webkit-backdrop-filter: blur(4px);
  margin-bottom: .5rem;
}
.product-ad h3 {
  font-size: .95rem;
  color: #ffd9a3;
  margin-bottom: .25rem;
}
.product-ad a {
  text-decoration: none;
  color: #e9f0f7;
  display: inline-block;
  padding: .5rem 0.8rem;
  border-radius: 8px;
  background: linear-gradient(135deg, rgba(255,255,255,0.16), rgba(255,255,255,0.04));
  border: 1px solid rgba(255,255,255,0.30);
  font-weight: 700;
}
.product-ad a:hover {
  background: linear-gradient(135deg, rgba(255,255,255,0.24), rgba(255,255,255,0.06));
  color: #fff;
}
.product-ad a:focus-visible {
  outline: 3px solid #7dfbd5;
  outline-offset: 2px;
  border-radius: 8px;
}

/* Accessibility: focus styles for links and interactive elements */
a:focus-visible {
  outline: 3px solid #7dfbd5;
  outline-offset: 2px;
  border-radius: 6px;
}

/* Small screens (mobile-first) */
@media (max-width: 599px) {
  .image-frame { border-radius: 18px; }
  footer { padding: 1rem 1rem 1.5rem; }
  .product-ad { width: auto; }
}

/* Larger screens */
@media (min-width: 600px) {
  main { padding-top: 3rem; padding-bottom: 2rem; }
  .image-frame { width: min(92vw, 860px); }
  footer { padding: 2rem 1rem; }
}

/* Even larger screens for a sharper cyberpunk feel */
@media (min-width: 900px) {
  .image-frame { width: 70%; }
  .product-ad { font-size: 1rem; }
}