/* Global reset (light-weight) */
*, *::before, *::after { box-sizing: border-box; margin: 0; padding: 0; }

/* Root palette for hacker, frost-glass, cyberpunk vibe */
:root {
  --bg: #0a0a0a;
  --fg: #f6f6f6;
  --glass: rgba(255, 255, 255, 0.08);
  --glass-edge: rgba(255, 255, 255, 0.25);
  --accent: #6af1ff;
  --accent2: #b36aff;
  --shadow: rgba(0, 0, 0, 0.6);
}

/* Base styling */
html, body { height: 100%; }
body {
  background: linear-gradient(#0a0a0a, #0a0a0a 60%, #0b0b0b);
  color: var(--fg);
  font-family: "JetBrains Mono", Consolas, Monaco, monospace;
  line-height: 1.4;
  -webkit-font-smoothing: antialiased;
  text-rendering: optimizeLegibility;
  min-height: 100vh;
}

/* Subtle parchment texture feel (lightweight) */
body {
  background-image:
    radial-gradient(circle at 20% 0%, rgba(255,255,255,0.04) 0 2px, transparent 2px),
    radial-gradient(circle at 80% 100%, rgba(255,255,255,0.03) 0 2px, transparent 2px);
  background-blend-mode: overlay;
  color-scheme: dark;
}

main {
  display: grid;
  place-items: center;
  padding: 1.25rem;
  gap: 1.5rem;
  min-height: calc(100vh - 120px);
}

/* Frosted glass image frame (hero) */
.image-frame {
  width: min(92vw, 860px);
  background: var(--glass);
  border: 1px solid var(--glass-edge);
  border-radius: 14px;
  padding: 1rem;
  backdrop-filter: blur(6px);
  -webkit-backdrop-filter: blur(6px);
  box-shadow: 0 6px 28px rgba(0,0,0,.5), inset 0 1px rgba(255,255,255,.15);
  transition: transform .25s ease, box-shadow .25s ease;
}
.image-frame:hover {
  transform: translateY(-2px);
  box-shadow: 0 14px 38px rgba(0,0,0,.6);
}
.image-frame img {
  width: 100%;
  height: auto;
  display: block;
  border-radius: 12px;
  /* subtle glow on the image for cyberpunk vibe */
  box-shadow: 0 0 0 rgba(0,0,0,0);
}
.image-frame::after {
  content: "";
  position: absolute;
  inset: 0;
  border-radius: 14px;
  pointer-events: none;
  box-shadow: inset 0 0 24px rgba(0,255,255,.08);
  mix-blend-mode: screen;
}

/* Footer / product ad (CTA style) */
footer {
  width: 100%;
  text-align: center;
  padding: 1.25rem;
  color: #e8e8e8;
}

.product-ad {
  display: inline-block;
  padding: .6rem .9rem;
  border-radius: 12px;
  background: rgba(255,255,255,.08);
  border: 1px solid rgba(255,255,255,.25);
  margin: 0 auto 0.75rem;
  backdrop-filter: blur(4px);
  -webkit-backdrop-filter: blur(4px);
}

.product-ad h3 {
  font-size: .95rem;
  font-weight: 600;
  letter-spacing: .3px;
  color: #eafaff;
  margin: 0 0 .25rem;
  text-shadow: 0 0 8px rgba(106, 241, 255, 0.8);
}
.product-ad a {
  text-decoration: none;
  display: inline-block;
}
.product-ad a p {
  margin: 0;
  padding: .38rem .75rem;
  border-radius: 8px;
  color: #fff;
  background: rgba(0,0,0,.28);
  border: 1px solid rgba(255,255,255,.28);
  display: inline-block;
  font-weight: 600;
  text-shadow: 0 0 6px rgba(106,241,255,.9);
}
.product-ad a:hover p {
  background: rgba(0,0,0,.42);
  transform: translateY(-1px);
}
.product-ad a:focus-visible {
  outline: 2px solid var(--accent);
  outline-offset: 2px;
  border-radius: 8px;
}
footer p {
  font-size: .85rem;
  color: #cfcfcf;
  opacity: .9;
  margin-top: .25rem;
}

/* Focus styles for accessibility on all focusable elements */
:focus-visible {
  outline: 2px solid var(--accent);
  outline-offset: 2px;
  border-radius: 6px;
}
a { color: #e9faff; text-decoration: none; }

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

/* Responsive tweaks (mobile-first) */
@media (min-width: 600px) {
  main { padding: 2rem 2rem; gap: 2rem; }
  .image-frame { padding: 1.25rem; border-radius: 16px; }
}
@media (min-width: 1024px) {
  footer { padding: 1.75rem 0; }
  .product-ad { margin-top: 0.75rem; }
}
