/* Blue parchment hacker theme with frosted glass and cyberpunk vibe */
/* Light reset */
*,
*::before,
*::after { box-sizing: border-box; }

:root {
  --bg-deep: #0b1a2a;
  --bg-mid:  #17314e;
  --bg-soft: #0a1e33;
  --text-silver: #e6f0fa;
  --muted: #aab6c6;
  --glass: rgba(255, 255, 255, 0.08);
  --glass-stroke: rgba(255, 255, 255, 0.22);
  --shadow: 0 12px 28px rgba(0,0,0,.4);
  --cta: #5bd9ff;
  --cta-dark: #2a7bdc;
  --cta-text: #02131b;
  --ring: #9bd6ff;
}

html, body {
  height: 100%;
  margin: 0;
}

body {
  font-family: system-ui, -apple-system, "Segoe UI", Roboto, Arial, sans-serif;
  color: var(--text-silver);
  background: linear-gradient(135deg, var(--bg-deep) 0%, var(--bg-mid) 60%, var(--bg-soft) 100%), 
              linear-gradient(rgba(255,255,255,.04), rgba(255,255,255,.04)),
              repeating-linear-gradient(0deg, rgba(255,255,255,.04) 0 2px, transparent 2px 4px);
  min-height: 100vh;
  -webkit-font-smoothing: antialiased;
  -moz-osx-font-smoothing: grayscale;
  text-rendering: optimizeLegibility;
}

/* Layout: mobile-first, hero center with frosted glass frame for image */
main {
  display: flex;
  align-items: center;
  justify-content: center;
  padding: 2rem 1rem;
  min-height: calc(100vh - 140px);
}

.image-frame {
  width: min(92vw, 860px);
  aspect-ratio: 16 / 9;
  border-radius: 16px;
  overflow: hidden;
  display: flex;
  align-items: center;
  justify-content: center;
  background: var(--glass);
  border: 1px solid var(--glass-stroke);
  box-shadow: inset 0 1px 2px rgba(255,255,255,.22), 0 20px 60px rgba(0,0,0,.45);
  backdrop-filter: blur(8px);
  -webkit-backdrop-filter: blur(8px);
}

/* Image fills the frame nicely (frosted glass look remains) */
.image-frame img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  display: block;
  /* subtle silver edge on image for hacker vibe */
  filter: saturate(1.05);
}

/* Footer with a prominent product CTA styled as a frosted card */
footer {
  padding: 1.75rem 1rem;
  text-align: center;
  color: var(--muted);
  border-top: 1px solid rgba(255,255,255,.08);
  background: linear-gradient(to top, rgba(0,0,0,.0), rgba(255,255,255,.02));
}

.product-ad {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: .75rem;
  padding: .75rem;
  margin: .75rem auto;
  min-width: 260px;
  background: rgba(255,255,255,.07);
  border: 1px solid rgba(255,255,255,.18);
  border-radius: 12px;
  backdrop-filter: blur(4px);
  -webkit-backdrop-filter: blur(4px);
}

.product-ad h3 {
  margin: 0;
  font-size: .95rem;
  color: var(--text-silver);
  text-shadow: 0 1px 0 rgba(0,0,0,.15);
}

.product-ad a {
  text-decoration: none;
  display: inline-block;
  padding: .6rem .95rem;
  border-radius: 999px;
  background: linear-gradient(#5bd9ff, #2b7bdc);
  color: #02131b;
  font-weight: 700;
  border: 1px solid rgba(0,0,0,.15);
  transition: transform .15s ease, box-shadow .15s ease;
  box-shadow: 0 4px 8px rgba(0,0,0,.25);
}

/* CTA hover/focus for accessibility */
.product-ad a:hover {
  transform: translateY(-1px);
  box-shadow: 0 8px 14px rgba(0,0,0,.28);
}

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

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

/* Small screens: maintain legibility and spacing */
@media (min-width: 640px) {
  main { padding: 3rem 2rem; }
  .image-frame { border-radius: 20px; }
}

@media (min-width: 1024px) {
  main { padding: 4rem 3rem; }
  footer { padding-bottom: 2rem; }
  .product-ad { font-size: 1.02rem; }
}