/* Light reset and color system */
* { box-sizing: border-box; }
html, body { margin: 0; padding: 0; }

/* Theme: indigo geometric hacker vibe with frosted glass */
:root {
  --bg: #0b0b1a;
  --indigo: #1b1f8a;
  --indigo-dark: #141a60;
  --violet: #7c3aed;
  --violet-soft: #8b5cf6;
  --glass: rgba(255, 255, 255, 0.08);
  --glass-border: rgba(255, 255, 255, 0.25);
  --text: #e9e5ff;
  --muted: #c7c0ff;
  --shadow: 0 12px 30px rgba(0,0,0,.38);
  --radius: 14px;
  --cta: #7c3aed;
}

/* Mobile-first, responsive background with indigo geometric shapes */
body {
  min-height: 100vh;
  color: var(--text);
  background-color: var(--bg);
  background-image:
    radial-gradient(circle at 20% 15%, rgba(124,58,237,.25) 0 180px, transparent 180px),
    radial-gradient(circle at 85% 25%, rgba(18, 94, 167, .20) 0 220px, transparent 220px),
    conic-gradient(from 180deg at 70% 0%, rgba(98,0,238,.25), rgba(98,0,238,0) 180deg),
    linear-gradient(#0b0b1a, #0b0b1a);
  /* readable focus outlines on keyboard navigation */
  font-family: Inter, system-ui, -apple-system, "Segoe UI", Roboto, Arial, sans-serif;
  -webkit-font-smoothing: antialiased;
  -moz-osx-font-smoothing: grayscale;
}

/* Structural layout */
main {
  display: grid;
  place-items: center;
  padding: 2rem 1rem;
  min-height: calc(100vh - 140px);
}

.image-frame {
  width: min(92vw, 720px);
  background: rgba(255,255,255,.08);
  border: 1px solid rgba(255,255,255,.25);
  border-radius: 18px;
  padding: 20px;
  backdrop-filter: blur(8px);
  -webkit-backdrop-filter: blur(8px);
  box-shadow: var(--shadow);
  display: grid;
  place-items: center;
}

/* Image styling inside the frosted frame */
.image-frame img {
  width: 100%;
  height: auto;
  border-radius: 12px;
  display: block;
  border: 0;
  outline: 0;
  object-fit: cover;
}

/* Footer with glassy product ad and copyright */
footer {
  padding: 1rem;
  text-align: center;
  background: rgba(8, 8, 20, .55);
  border-top: 1px solid rgba(255,255,255,.08);
  color: var(--muted);
  backdrop-filter: blur(4px);
  -webkit-backdrop-filter: blur(4px);
}

.product-ad {
  display: inline-block;
  margin-bottom: .75rem;
  padding: .5rem;
  background: rgba(124,58,237,.20);
  border: 1px solid rgba(124,58,237,.55);
  border-radius: 12px;
  box-shadow: inset 0 1px 0 rgba(255,255,255,.12);
}
.product-ad h3 {
  font-size: .95rem;
  margin: 0 0 .25rem;
  color: #e7dfff;
}
.product-ad a {
  text-decoration: none;
  display: inline-block;
  padding: .6rem 1.1rem;
  border-radius: 999px;
  border: 1px solid rgba(180,120,255,.8);
  background: rgba(124,58,237,.6);
  color: #fff;
  font-weight: 600;
}
.product-ad a:hover {
  filter: brightness(1.05);
  transform: translateY(-1px);
}
.product-ad a:focus-visible {
  outline: 3px solid #a5b4fc;
  outline-offset: 2px;
}
footer p {
  margin: 0;
  font-size: .9rem;
  color: #d5caff;
}

/* Accessibility: visible focus for interactive controls */
a:focus-visible, button:focus-visible {
  outline: 2px solid #8ab4ff;
  outline-offset: 2px;
  border-radius: 4px;
}

/* Responsive tweaks */
@media (min-width: 600px) {
  main { padding: 3rem 2rem; min-height: calc(100vh - 180px); }
  .image-frame { padding: 28px; }
}
@media (min-width: 900px) {
  .image-frame { padding: 34px; border-radius: 22px; }
  footer { padding: 1.25rem 0; }
  .product-ad { font-size: 1rem; }
}

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