/* Light reset and base styles */
*, *::before, *::after { box-sizing: border-box; }
html, body { height: 100%; }
:root {
  --bg: #000;
  --fg: #e6e6e6;
  --muted: #a6a6a6;
  --orange: #ff7a00;
  --orangeSoft: rgba(255,122,0,.25);
  --glass: rgba(255,255,255,.08);
}
html { scroll-behavior: smooth; }

/* Orange noise texture background (mobile-first, dark hacker theme) */
body {
  margin: 0;
  color: var(--fg);
  font-family: system-ui, -apple-system, "Segoe UI", Roboto, Arial, sans-serif;
  background-color: #000;
  /* subtle orange noise texture using layered gradients */
  background-image:
    radial-gradient(circle at 0 0, rgba(255,135,0,.25) 0 2px, transparent 2px),
    radial-gradient(circle at 20px 20px, rgba(255,120,0,.18) 0 2px, transparent 2px),
    linear-gradient(#000 0 0);
  background-size: 140px 140px, 140px 140px, 100% 100%;
  background-repeat: repeat;
  min-height: 100dvh;
  -webkit-font-smoothing: antialiased;
  -moz-osx-font-smoothing: grayscale;
  box-sizing: border-box;
  outline: none;
}

/* Layout */
main {
  display: grid;
  place-items: center;
  padding: 3rem 1rem;
}

/* Frosted glass card for the image area */
.image-frame {
  width: 100%;
  max-width: 720px;
  aspect-ratio: 16 / 9;
  border-radius: 14px;
  padding: 0.4rem;
  background: rgba(0,0,0,.55);
  border: 1px solid rgba(255,165,0,.5);
  box-shadow: 0 14px 40px rgba(0,0,0,.6);
  backdrop-filter: blur(4px) saturate(1.2);
  -webkit-backdrop-filter: blur(4px);
  display: grid;
  place-items: center;
  overflow: hidden;
}

/* Image styling inside the frame */
.image-frame img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  border-radius: 10px;
  display: block;
  filter: saturate(1.05) contrast(1.02);
}

/* Footer and product ad styling (prominent CTA) */
footer {
  padding: 2rem 1rem;
  display: grid;
  gap: 0.75rem;
  justify-items: center;
  color: var(--fg);
}

.product-ad {
  display: inline-flex;
  align-items: center;
  gap: 0.75rem;
  padding: 0.6rem 1rem;
  border-radius: 12px;
  background: rgba(0,0,0,.45); 
  border: 1px solid rgba(255,165,0,.55);
  backdrop-filter: blur(6px);
  -webkit-backdrop-filter: blur(6px);
  box-shadow: 0 6px 20px rgba(0,0,0,.6);
}

.product-ad h3 {
  font-size: 1rem;
  margin: 0;
  font-weight: 700;
}

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

/* CTA pill inside the ad (accessible, high contrast) */
.product-ad p {
  margin: 0;
  padding: 0.25rem 0.75rem;
  border-radius: 999px;
  background: linear-gradient(135deg, rgba(255,122,0,.95), rgba(255,140,0,.85));
  color: #000;
  font-weight: 800;
  display: inline-block;
  white-space: nowrap;
  transition: transform .2s ease;
}
.product-ad p:hover { transform: translateY(-1px); }

footer p {
  font-size: .9rem;
  color: var(--muted);
  margin: 0;
}

/* Focus styles for accessibility (visible on keyboard navigation) */
a:focus-visible, button:focus-visible {
  outline: 3px solid #00ffd5;
  outline-offset: 2px;
  border-radius: 4px;
}

/* Responsiveness (mobile-first) */
@media (min-width: 640px) {
  main { padding: 5rem 2rem; }
  .image-frame { border-radius: 18px; }
}
@media (min-width: 1024px) {
  main { padding: 6rem 3rem; }
}