/* Light reset and grid paper background with hacker-silver aesthetics */
*, *::before, *::after { box-sizing: border-box; }

html, body { height: 100%; }

:root {
  --glass: rgba(255, 255, 255, 0.18);
  --glass-border: rgba(180, 190, 200, 0.6);
  --text: #e6f0fb;
  --muted: #a7bac6;
  --neon: #4df5ff;
}

html, body { margin: 0; }

/* Mobile-first, grid-paper background */
body {
  font-family: ui-sans-serif, system-ui, -apple-system, "Segoe UI", Roboto, "Inter", Arial;
  color: var(--text);
  background-color: #fff;
  background-image:
    linear-gradient(#e6eaf3 1px, transparent 1px),
    linear-gradient(90deg, #e6eaf3 1px, transparent 1px);
  background-size: 24px 24px;
  background-position: 0 0;
  display: flex;
  min-height: 100vh;
  flex-direction: column;
}

/* Layout */
main {
  width: 100%;
  display: grid;
  place-items: center;
  padding: 2rem 1rem;
  flex: 1;
}

.image-frame {
  width: min(92vw, 1100px);
  padding: 0.75rem;
  border-radius: 14px;
  background: var(--glass);
  border: 1px solid var(--glass-border);
  backdrop-filter: saturate(1.2) blur(8px);
  -webkit-backdrop-filter: saturate(1.2) blur(8px);
  box-shadow: 0 8px 28px rgba(0, 0, 0, 0.22);
  overflow: hidden;
}

.image-frame img {
  width: 100%;
  height: auto;
  display: block;
  border-radius: 10px;
}

/* Footer with a prominent CTA and subtle silver/tech vibe */
footer {
  width: 100%;
  padding: 1.25rem 1rem;
  margin-top: auto;
  display: grid;
  justify-items: center;
  gap: .6rem;
  background: rgba(255, 255, 255, 0.02);
  border-top: 1px solid rgba(0, 0, 0, 0.06);
}

.product-ad {
  display: flex;
  align-items: center;
  gap: 0.75rem;
  padding: 0.4rem 0;
}

/* Heading in ad (kept compact for hacker theme) */
.product-ad h3 {
  font-family: ui-monospace, SFMono-Regular, Consolas, "Liberation Mono", monospace;
  font-size: 0.95rem;
  color: #e9f5ff;
  margin: 0;
}

/* CTA button looker from the embedded <p> inside the link */
.product-ad a { text-decoration: none; }

.product-ad a p {
  display: inline-block;
  padding: 0.5rem 1rem;
  border-radius: 999px;
  background: linear-gradient(135deg, #1b2030, #2a2f47);
  color: #eaffff;
  font-weight: 700;
  border: 1px solid rgba(120, 150, 180, 0.9);
  box-shadow: 0 6px 14px rgba(0, 0, 0, 0.25);
  margin: 0;
  transition: transform 0.2s ease;
}
.product-ad a:hover p { transform: translateY(-1px); }

.product-ad a:focus-visible, .product-ad a:focus-visible p {
  outline: 2px solid var(--neon);
  outline-offset: 2px;
  border-radius: 999px;
}

/* Footer text (small, metallic feel) */
footer p {
  color: var(--muted);
  font-family: ui-monospace, SFMono-Regular, Consolas, "Liberation Mono";
  font-size: 0.85rem;
  text-align: center;
  margin: 0;
}

/* Small screens: stack naturally; larger screens use horizontal layout */
@media (min-width: 700px) {
  main { padding: 3rem 2rem; }
  .image-frame { padding: 1rem; }
  footer { grid-auto-flow: column; justify-items: center; }
}