/* Reset & base */
*, *::before, *::after { box-sizing: border-box; }
html, body { height: 100%; }
:root{
  --bg-brown: #5c3a1a;
  --bg-brown-dark: #2b170e;
  --glass: rgba(255,255,255,.12);
  --text: #f1e5d2;
  --muted: #d9c7ae;
  --cta1: #b0641e;
  --cta2: #7a2f0b;
}
html { color-scheme: dark; }
body {
  margin: 0;
  font-family: Inter, ui-sans-serif, system-ui, -apple-system, "Segoe UI", Roboto;
  color: var(--text);
  background: #0b0b0b;
  /* orange radial gradient background (cyberpunk vibe) */
  background-image:
    radial-gradient(circle at 15% -10%, rgba(255,140,0,.75) 0, rgba(255,120,0,.55) 28%, rgba(255,120,0,.25) 55%, rgba(255,120,0,0) 70%),
    radial-gradient(circle at 85% 0%, rgba(150,70,20,.25) 0, rgba(0,0,0,.0) 60%);
  min-height: 100dvh;
  -webkit-font-smoothing: antialiased;
  -moz-osx-font-smoothing: grayscale;
}

/* Layout: mobile-first hero with frosted glass frame */
main {
  display: grid;
  place-items: center;
  padding: 2rem 1rem;
  min-height: 60dvh;
  position: relative;
  z-index: 0;
  overflow: hidden;
}

.main-glow {
  content: "";
  position: absolute;
  width: 180%;
  height: 60%;
  left: -40px;
  top: -20px;
  background: radial-gradient(circle at 50% 50%, rgba(255,160,0,.55) 0%, rgba(255,160,0,.25) 40%, rgba(255,160,0,0) 70%);
  filter: blur(40px);
  z-index: 0;
  pointer-events: none;
  opacity: 0.9;
}

.image-frame {
  position: relative;
  width: min(680px, 92%);
  aspect-ratio: 16 / 9;
  border-radius: 16px;
  overflow: hidden;
  background: rgba(20,12,9,.6);
  border: 1px solid rgba(255,255,255,.15);
  box-shadow: 0 18px 50px rgba(0,0,0,.6);
  display: grid;
  align-items: stretch;
  justify-items: stretch;
  z-index: 1;
}
.image-frame img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  display: block;
}

/* Frosted glass overlay to simulate hacker/glass UI */
.image-frame::after {
  content: "";
  position: absolute;
  inset: 0;
  background: linear-gradient(to bottom right, rgba(255,255,255,.10), rgba(255,255,255,.04));
  backdrop-filter: blur(6px);
  -webkit-backdrop-filter: blur(6px);
  pointer-events: none;
  mix-blend-mode: overlay;
}
.image-frame::before {
  content: "";
  position: absolute;
  inset: 0;
  border: 1px solid rgba(255,255,255,.15);
  border-radius: 16px;
  pointer-events: none;
  box-shadow: inset 0 0 0 1px rgba(0,0,0,.25);
  mix-blend-mode: overlay;
}

/* Subtle circuit/grid accents (very light) */
.image-frame > * { position: relative; z-index: 1; }

/* Foreground grid lines for cyberpunk vibe (soft) */
.image-frame::after,
.image-frame::before { will-change: transform; }

/* Footer with CTA styled as prominent button and accessible focus */
footer {
  padding: 1.5rem;
  text-align: center;
  color: var(--muted);
  background: rgba(0,0,0,.25);
}

.product-ad {
  display: inline-block;
  padding: .75rem 1rem;
  border-radius: 12px;
  background: rgba(255,255,255,.08);
  border: 1px solid rgba(255,255,255,.18);
  backdrop-filter: blur(6px);
  -webkit-backdrop-filter: blur(6px);
  margin-bottom: .75rem;
}

.product-ad h3 {
  margin: 0 0 .25rem;
  font-size: .95rem;
  color: #f6e4cf;
  font-weight: 700;
}

.product-ad p {
  margin: 0;
  font-size: .95rem;
  color: #ffd9b5;
}

.product-ad a {
  text-decoration: none;
  display: inline-block;
  padding: .65rem 1rem;
  border-radius: 8px;
  background: linear-gradient(135deg, var(--cta1), var(--cta2));
  color: #fff;
  font-weight: 700;
  border: 1px solid rgba(0,0,0,.25);
  box-shadow: inset 0 1px 0 rgba(255,255,255,.25);
  transition: transform .2s ease;
}
.product-ad a:focus-visible {
  outline: 3px solid #ffd166;
  outline-offset: 2px;
}
.product-ad a:hover { transform: translateY(-1px) scale(1.02); }

/* Small screens: tighten visuals for mobile */
@media (max-width: 767.98px) {
  .image-frame { border-radius: 14px; }
  .product-ad { width: auto; }
  .product-ad h3 { font-size: .9rem; }
  .product-ad a { padding: .6rem 0.95rem; }
  main { padding: 1.75rem 0.75rem; }
}

/* Larger screens: emphasize hero feel and breathing room */
@media (min-width: 768px) {
  main { padding: 3rem 2rem; min-height: 70dvh; }
  .image-frame { width: min(860px, 78%); border-radius: 18px; }
  footer { padding-top: 2rem; }
  .product-ad h3 { font-size: 1rem; }
}