/* Global reset (light) */
*,
*::before,
*::after { box-sizing: border-box; }
html, body { height: 100%; }
html { font-size: 16px; }
body {
  margin: 0;
  padding: 0;
  color: #e6d9bd; /* beige text for hacker vibe */
  font-family: ui-sans-serif, system-ui, -apple-system, "Segoe UI", Roboto, Arial;
  line-height: 1.6;
  background-color: #0a1f3a;
  /* Blue circuit board background (layered gradients) */
  background-image:
    radial-gradient(circle at 20% 0%, rgba(100, 210, 255, 0.22) 0 40%, transparent 42%),
    radial-gradient(circle at 60% 0%, rgba(0, 180, 220, 0.18) 0 40%, transparent 42%),
    linear-gradient(135deg, rgba(10,40,90,.95) 0%, rgba(5,20,60,.95) 60%, rgba(10,40,90,.95) 100%),
    repeating-linear-gradient(0deg, rgba(0,0,40,.65) 0 2px, transparent 2px 6px),
    repeating-linear-gradient(90deg, rgba(0,0,40,.65) 0 2px, transparent 2px 6px);
  background-blend-mode: overlay, overlay, normal, overlay, overlay;
}
@media (prefers-reduced-motion: reduce) {
  * { animation-duration: 0.01ms !important; animation-iteration-count: 1 !important; transition: none !important; }
}

/* Theme variables (beige + blue accents) */
:root {
  --beige: #e7d9bd;
  --beige-dark: #d4c29a;
  --glass: rgba(255, 255, 255, 0.14);
  --glass-strong: rgba(255, 255, 255, 0.22);
  --border: rgba(255, 255, 255, 0.28);
  --accent: #7bd2ff; /* neon blue for focus/frost/glow */
  --shadow: rgba(0,0,0,.25);
  --radius: 14px;
}

/* Layout structure (mobile-first) */
header, main, footer { width: 100%; display: block; }

/* Hero header (frosted glass) */
header {
  margin: 1rem auto;
  padding: 1.5rem 1rem;
  max-width: 1000px;
  text-align: center;
  border-radius: calc(var(--radius) + 2px);
  background: var(--glass);
  border: 1px solid var(--border);
  backdrop-filter: blur(8px);
  -webkit-backdrop-filter: blur(8px);
  box-shadow: 0 10px 24px rgba(0,0,0,.25);
}
header h1 {
  margin: 0;
  font-size: 1.6rem;
  font-weight: 800;
  letter-spacing: .2px;
  color: var(--beige);
  text-shadow: 0 0 6px rgba(123, 210, 255, 0.6);
}
@media (min-width: 768px) {
  header { padding: 2rem 1rem; }
  header h1 { font-size: 2rem; }
}

/* Main content (image frame) */
main {
  display: flex;
  flex-direction: column;
  align-items: center;
  padding: 0 1rem 1.5rem;
}
.image-frame {
  width: min(92%, 720px);
  margin: 0.75rem auto;
  padding: 1rem;
  border-radius: 18px;
  background: rgba(255, 255, 255, 0.16); /* frosted glass feel */
  border: 1px solid rgba(255, 255, 255, 0.28);
  backdrop-filter: blur(6px);
  -webkit-backdrop-filter: blur(6px);
  box-shadow: 0 12px 28px rgba(0,0,0,.25);
}
.image-frame img {
  width: 100%;
  height: auto;
  display: block;
  border-radius: 12px;
  border: 1px solid rgba(255, 255, 255, 0.4);
  background: rgba(255,255,255,0.25);
  box-shadow: 0 6px 16px rgba(0,0,0,.25);
}
@media (min-width: 768px) {
  .image-frame { padding: 1.25rem; }
}

/* Footer with CTA-style ad card */
footer {
  padding: 1.5rem 1rem 2rem;
  text-align: center;
  color: var(--beige);
}
.product-ad {
  display: inline-flex;
  flex-direction: column;
  align-items: center;
  gap: .5rem;
  padding: 1rem;
  border-radius: 12px;
  background: rgba(255, 255, 255, 0.10);
  border: 1px solid rgba(255, 255, 255, 0.25);
  box-shadow: 0 8px 22px rgba(0,0,0,.25);
}
.product-ad h3 {
  margin: 0;
  font-size: 1.05rem;
  color: var(--beige);
}
.product-ad p {
  margin: 0;
  font-size: 1rem;
}
.product-ad a {
  display: inline-block;
  padding: .7rem 1.1rem;
  border-radius: 999px;
  background: rgba(250, 230, 170, 0.95); /* beige-ish CTA */
  color: #1a1a1a;
  font-weight: 700;
  text-decoration: none;
  border: 1px solid rgba(255,255,255,0.9);
  box-shadow: 0 6px 14px rgba(0,0,0,.22);
}
.product-ad a:hover {
  transform: translateY(-1px);
  box-shadow: 0 10px 18px rgba(0,0,0,.25);
}
.product-ad a:focus-visible {
  outline: 3px solid var(--accent);
  outline-offset: 2px;
}
footer p {
  margin-top: .9rem;
  font-size: .95rem;
  opacity: .9;
}

/* Focus styles for accessibility on interactive elements beyond CTA */
a:focus-visible, button:focus-visible {
  outline: 3px solid var(--accent);
  outline-offset: 2px;
  border-radius: 6px;
}
a, button {
  color: inherit;
  text-decoration: none;
}
button { background: transparent; border: none; padding: 0; }

/* Minor utility for reduced motion */
@media (prefers-reduced-motion: reduce) {
  .image-frame { transition: none; }
  .product-ad a { transition: none; }
}
