/* Reset & theme variables */
:root {
  --paper-light: #f7e6d1;
  --paper: #d6b089;
  --paper-dark: #8a5a2a;
  --fg: #f7f7f7;
  --muted: #cfcfcf;
  --glass: rgba(255,255,255,.14);
  --glass-border: rgba(255,255,255,.28);
  --shadow: 0 10px 22px rgba(0,0,0,.25);
  --accent: #4bd7ff;
}

/* Lightweight reset for box sizing */
*, *::before, *::after { box-sizing: border-box; }

/* Global layout (mobile-first) */
html, body { height: 100%; }
body {
  margin: 0;
  padding: 0;
  font-family: ui-sans-serif, system-ui, -apple-system, "Segoe UI", Roboto, Arial;
  color: var(--fg);
  /* Brown parchment background with depth */
  background: linear-gradient(135deg, #f0e2cc 0%, #d6b089 40%, #7a4f2b 100%);
  min-height: 100vh;
  display: flex;
  flex-direction: column;
}

/* Main hero area (image framed in frosted glass) */
main {
  width: min(100%, 1100px);
  margin: 0 auto;
  padding: 2rem 1rem 1.5rem;
  flex: 1;
  display: grid;
  place-items: center;
}

.image-frame {
  width: min(92vw, 1000px);
  aspect-ratio: 16 / 9;
  border-radius: 20px;
  overflow: hidden;
  background: rgba(255,255,255,.08);
  border: 1px solid rgba(255,255,255,.28);
  box-shadow: var(--shadow);
  backdrop-filter: blur(6px);
  -webkit-backdrop-filter: blur(6px);
  display: grid;
  place-items: center;
}

.image-frame img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  display: block;
  filter: saturate(105%) contrast(105%);
}

/* Footer / CTA section (prominent button) */
footer {
  width: 100%;
  padding: 1.25rem 0 2rem;
}

.product-ad {
  width: min(92vw, 860px);
  margin: 0 auto;
  padding: 14px 20px;
  border-radius: 14px;
  background: rgba(255,255,255,.08);
  border: 1px solid rgba(255,255,255,.28);
  box-shadow: 0 8px 20px rgba(0,0,0,.25);
  display: grid;
  gap: 8px;
  align-items: center;
  justify-items: start;
  backdrop-filter: blur(4px);
  -webkit-backdrop-filter: blur(4px);
}

.product-ad h3 {
  margin: 0;
  font-size: 1rem;
  color: #f6f6f6;
  display: flex;
  align-items: center;
  gap: 8px;
  text-shadow: 0 0 6px rgba(0,255,223,.35);
}

.product-ad a { text-decoration: none; width: 100%; }

.product-ad a p {
  margin: 0;
  padding: 14px 18px;
  text-align: center;
  border-radius: 999px;
  font-weight: 700;
  color: #111;
  background: linear-gradient(#f0f0f0, #d8d8d8);
  border: 1px solid rgba(0,0,0,.25);
  transition: transform .15s ease, background .15s ease;
  width: 100%;
  display: inline-block;
  box-shadow: inset 0 1px 0 rgba(255,255,255,.5);
}

/* CTA hover / focus for hacker-cyber vibe */
.product-ad a:hover p {
  transform: translateY(-1px);
  background: linear-gradient(#ffffff, #d7d7d7);
}

.product-ad a:focus-visible {
  outline: 3px solid var(--accent);
  outline-offset: 2px;
}

/* Respect user motion preferences */
@media (prefers-reduced-motion: reduce) {
  * { animation: none !important; transition: none !important; }
}

/* Responsive tweaks */
@media (min-width: 600px) {
  .image-frame { aspect-ratio: 21 / 9; }
}

@media (min-width: 900px) {
  main { padding: 3rem 2rem 2rem; }
  .product-ad { padding: 18px 22px; }
  .product-ad h3 { font-size: 1.15rem; }
}