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

/* Theme and palette (dark hacker + indigo) */
:root {
  --bg: #0a0a0f;
  --text: #e6e6ff;
  --muted: #a3a3a3;
  --surface: rgba(255,255,255,0.08);
  --surface-2: rgba(255,255,255,0.12);
  --card: rgba(12,12,16,0.6);
  --radius: 14px;
  --accent: #00e5ff;
  --indigo: #4b3fbf;
  --shadow: 0 8px 28px rgba(0,0,0,.5);
}

/* Indigo striped hacker background — mobile-first, subtle glow */
body {
  margin: 0;
  color: var(--text);
  font-family: ui-sans-serif, system-ui, -apple-system, "Segoe UI", Roboto, Arial;
  background-color: var(--bg);
  background-image:
    linear-gradient(135deg, rgba(24,0,80,.75), rgba(6,0,40,.75)),
    repeating-linear-gradient(90deg,
      rgba(75,0,130,.6) 0px, rgba(75,0,130,.6) 16px,
      rgba(0,0,0,0) 16px, rgba(0,0,0,0) 32px);
  background-attachment: fixed;
  background-blend-mode: overlay;
  min-height: 100vh;
  -webkit-font-smoothing: antialiased;
  -moz-osx-font-smoothing: grayscale;
  text-rendering: optimizeLegibility;
}

/* Accessibility: focus styles */
:focus { outline: 2px solid transparent; outline-offset: 2px; }
:focus-visible { outline: 3px solid var(--accent); outline-offset: 2px; }

/* Frosted glass header (hero framing) */
header {
  position: sticky;
  top: 0;
  width: 100%;
  z-index: 10;
  display: flex;
  justify-content: center;
  align-items: center;
  padding: 0.6rem 1rem;
  background: rgba(6,6,12,0.6);
  border-bottom: 1px solid rgba(255,255,255,.15);
  backdrop-filter: saturate(1.2) blur(6px);
  -webkit-backdrop-filter: saturate(1.2) blur(6px);
}
header h1 {
  margin: 0;
  font-size: 1.05rem;
  color: #e9eaff;
  text-shadow: 0 0 6px rgba(0,255,255,.4);
  letter-spacing: .4px;
}
@media (min-width: 600px) {
  header h1 { font-size: 1.6rem; }
  header { padding: 0.8rem 1.2rem; }
}

/* Main content area */
main { padding: 1rem; }

/* Frosted glass image frame for product image */
.image-frame {
  margin: 1rem auto;
  width: min(92%, 640px);
  border-radius: 16px;
  padding: 0.75rem;
  background: rgba(255,255,255,.08);
  border: 1px solid rgba(255,255,255,.22);
  backdrop-filter: blur(8px) saturate(1.2);
  -webkit-backdrop-filter: blur(8px) saturate(1.2);
  box-shadow: 0 8px 28px rgba(0,0,0,.5);
}
.image-frame img {
  width: 100%; height: auto; display: block;
  border-radius: 12px;
  border: 1px solid rgba(255,255,255,.25);
}
@media (min-width: 768px) { .image-frame { width: 70%; } }
@media (min-width: 1024px) { .image-frame { width: 60%; } }

/* Footer and ad card styling (neon hacker CTA) */
footer { padding: 1.25rem; text-align: center; color: var(--muted); }
.product-ad {
  display: inline-block;
  margin: 0 auto 1rem;
  padding: .75rem 1rem;
  width: min(92%, 720px);
  background: rgba(0,0,0,.28);
  border-radius: 14px;
  border: 1px solid rgba(255,255,255,.25);
  backdrop-filter: blur(6px) saturate(1.2);
  -webkit-backdrop-filter: blur(6px) saturate(1.2);
}
.product-ad h3 { margin: 0 0 .5rem; font-size: 1.05rem; color: #e9eaff; }
.product-ad a {
  text-decoration: none;
  display: inline-block;
  padding: .65rem 1rem;
  border-radius: 999px;
  background: linear-gradient(135deg, #2e2a63, #1b174d);
  color: #eaf2ff;
  border: 1px solid rgba(255,255,255,.25);
  transition: transform .2s ease, box-shadow .2s ease;
}
.product-ad a:hover,
.product-ad a:focus { transform: translateY(-1px); outline: none; box-shadow: 0 6px 14px rgba(0,0,0,.6); }
footer p { margin: .5rem 0 0; color: #a7a7a7; }

/* Responsive tweaks */
@media (min-width: 600px) {
  footer { padding: 1.5rem; }
}
@media (prefers-reduced-motion: reduce) {
  * { animation: none !important; transition: none !important; }
}
a { color: #cfe0ff; text-decoration: none; }

/* Headings glow for cyberpunk vibe on headings */
h1, h2, h3 { text-shadow: 0 0 6px rgba(0,255,255,.4); }

/* Small device tweaks to keep layout clean */
@media (max-width: 420px) {
  header h1 { font-size: 1rem; }
  .product-ad { width: 94%; }
}