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

/* Theme: beige hacker vibe with white crosshatch, frosted glass, cyberpunk accents */
:root{
  --beige: #f2e6cc;
  --beige-dark: #d9c29f;
  --ink: #2b221f;
  --glass: rgba(255,255,255,.14);
  --glass-border: rgba(255,255,255,.35);
  --accent: #2df0d6;
  --accent-dark: #0fb7a9;
  --bg-lines-1: rgba(255,255,255,.28);
  --bg-lines-2: rgba(255,255,255,.15);
}

body {
  font-family: system-ui, -apple-system, "Segoe UI", Roboto, Arial, sans-serif;
  color: var(--ink);
  min-height: 100vh;
  background-color: var(--beige);
  /* white crosshatch background */
  background-image:
    linear-gradient(45deg, var(--bg-lines-1) 25%, transparent 25%, transparent 75%, var(--bg-lines-1) 75%, var(--bg-lines-1)),
    linear-gradient(-45deg, var(--bg-lines-2) 25%, transparent 25%, transparent 75%, var(--bg-lines-2) 75%, var(--bg-lines-2));
  background-size: 12px 12px, 12px 12px;
  background-position: 0 0, -6px -6px;
  display: flex;
  flex-direction: column;
}

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

/* Frosted glass hero frame for the image */
.image-frame {
  width: 100%;
  max-width: 860px;
  aspect-ratio: 16 / 9;
  border-radius: 20px;
  background: rgba(255,255,255,.14);
  border: 1px solid rgba(255,255,255,.36);
  box-shadow: 0 20px 40px rgba(0,0,0,.25);
  overflow: hidden;
  display: block;
  /* Frosted glass effect */
  backdrop-filter: blur(6px);
  -webkit-backdrop-filter: blur(6px);
  position: relative;
}
.image-frame img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  display: block;
}
.image-frame::after {
  content: "";
  position: absolute;
  inset: 0;
  border-radius: 20px;
  pointer-events: none;
  box-shadow: inset 0 0 0 1px rgba(255,255,255,.25);
  /* subtle neon edge glow */
  box-shadow: 0 0 26px rgba(45,240,214,.25);
}

/* Subtle layout tweak on larger screens to feel "hero" centered */
@media (min-width: 900px) {
  main { padding: 3rem 2rem; }
  .image-frame { transform: translateZ(0); }
}

/* Footer with prominent CTA and product ad card */
footer {
  padding: 1.5rem 1rem;
  text-align: center;
  color: #5a4a37;
  background: linear-gradient(to top, rgba(255,255,255,.0), rgba(255,255,255,.06));
}

/* Feature card in footer */
.product-ad {
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: .75rem;
  padding: .75rem 1rem;
  width: min(92%, 720px);
  margin: 0 auto 1rem;
  border-radius: 14px;
  background: rgba(255,255,255,.15);
  border: 1px solid rgba(255,255,255,.35);
  backdrop-filter: blur(4px);
  -webkit-backdrop-filter: blur(4px);
}
.product-ad h3 {
  font-size: .95rem;
  margin: 0;
  color: #2b231e;
  display: flex;
  align-items: center;
  gap: .5rem;
}
.product-ad a { text-decoration: none; }
.product-ad a p {
  display: inline-block;
  margin: 0;
  padding: .65rem 1.1rem;
  border-radius: 999px;
  font-weight: 700;
  font-size: .92rem;
  color: #261308;
  background: linear-gradient(135deg, #f3e0c8 0%, #e0c59c 100%);
  border: 1px solid rgba(0,0,0,.15);
  transition: transform .15s ease, box-shadow .15s ease;
  cursor: pointer;
  user-select: none;
  box-shadow: 0 4px 10px rgba(0,0,0,.08);
}
.product-ad a:hover p {
  transform: translateY(-1px);
  box-shadow: 0 8px 14px rgba(0,0,0,.15);
}
.product-ad a:focus-visible {
  outline: 3px solid #2bd6d6;
  outline-offset: 2px;
}
.product-ad p { /* normalizes any browser default margin for the paragraph inside anchor if present elsewhere */ margin: 0; }

/* Small screens: ensure readability and comfortable tap targets */
@media (max-width: 420px) {
  .image-frame { aspect-ratio: 16 / 10; border-radius: 14px; }
  .product-ad a p { padding: .6rem 1rem; font-size: .9rem; }
}
