/* Global reset & base */
*, *::before, *::after { box-sizing: border-box; margin: 0; padding: 0; }

:root {
  /* color tokens for hacker/cyberpunk vibe */
  --bg0: #0a2f12;
  --bg1: #0a3a18;
  --card: rgba(255, 255, 255, 0.08);
  --card-border: rgba(255, 255, 255, 0.18);
  --text: #e8f0ff;
  --muted: #cbd5e1;
  --purple: #8e43f0;
  --purple-dark: #6a26d9;
  --green: #1bd17a;
  --glow: 0 0 14px rgba(139,0,255,.6);
}

html, body { height: 100%; }

body {
  font-family: system-ui, -apple-system, "Segoe UI", Roboto, Arial, sans-serif;
  color: var(--text);
  background-color: var(--bg0);
  /* green carbon-fiber vibe with subtle glow */
  background-image:
    linear-gradient(135deg, rgba(0,0,0,.25) 25%, transparent 25%),
    linear-gradient(315deg, rgba(0,0,0,.25) 25%, transparent 25%);
  background-size: 40px 40px;
  background-position: 0 0, 0 0;
  min-height: 100%;
  line-height: 1.55;
  -webkit-font-smoothing: antialiased;
  -moz-osx-font-smoothing: grayscale;
}

/* Frosted glass containers feel */
.frost { 
  background: rgba(255, 255, 255, 0.08);
  border: 1px solid rgba(255, 255, 255, 0.18);
  backdrop-filter: blur(6px);
  -webkit-backdrop-filter: blur(6px);
  border-radius: 14px;
  box-shadow: 0 10px 40px rgba(0,0,0,.4);
}

/* Layout */
header {
  position: sticky;
  top: 0;
  z-index: 10;
  padding: 1.5rem 1rem;
  display: grid;
  place-items: center;
  text-align: center;
  background: rgba(10, 12, 20, 0.25);
  border-bottom: 1px solid rgba(140, 120, 240, 0.25);
  backdrop-filter: blur(6px);
  -webkit-backdrop-filter: blur(6px);
  /* subtle glow to emphasize the hacker vibe */
  box-shadow: inset 0 1px 0 rgba(255,255,255,.04), 0 6px 30px rgba(0,0,0,.5);
}

header h1 {
  font-size: clamp(1.6rem, 4vw + 1rem, 2.8rem);
  line-height: 1.15;
  margin: 0.25rem 0;
  letter-spacing: .4px;
  /* purple gradient text on frosted bg */
  background: linear-gradient(90deg, #c090ff, #9a5cff, #8e43f0);
  -webkit-background-clip: text;
  background-clip: text;
  color: transparent;
  text-shadow: 0 0 14px rgba(142,67,240,.45);
}

/* Main content */
main {
  padding: 2.5rem 1rem 4rem;
  display: grid;
  place-items: center;
}

article {
  width: min(100%, 720px);
}

.image-frame {
  overflow: hidden;
  border-radius: 20px;
  padding: 1rem;
  background: rgba(255, 255, 255, 0.04);
  border: 1px solid rgba(255, 255, 255, 0.15);
  box-shadow: 0 14px 50px rgba(0,0,0,.5);
}

.image-frame img {
  width: 100%;
  height: auto;
  display: block;
  border-radius: 14px;
  border: 1px solid rgba(255,255,255,.14);
  /* tiny glow to emphasize cyber look around image */
  box-shadow: 0 0 18px rgba(139,0,255,.25);
}

/* Footer with product ad CTA */
footer {
  padding: 2rem 1rem 3rem;
  text-align: center;
  color: var(--muted);
  background: linear-gradient(to top, rgba(2,6,15,.0), rgba(2,6,15,.15) 60%, rgba(2,6,15,.0));
}

.product-ad {
  display: inline-block;
  padding: .75rem;
  border-radius: 12px;
  margin: 0 auto 1rem;
  background: rgba(8, 0, 25, 0.42);
  border: 1px solid rgba(130, 90, 200, 0.6);
  backdrop-filter: blur(6px);
  -webkit-backdrop-filter: blur(6px);
  text-align: left;
}

.product-ad h3 {
  font-size: 1.05rem;
  margin-bottom: .5rem;
  color: #e6d9ff;
}

.product-ad a {
  display: inline-flex;
  align-items: center;
  gap: .5rem;
  padding: .65rem 1rem;
  border-radius: 999px;
  text-decoration: none;
  font-weight: 700;
  color: #fff;
  background: linear-gradient(90deg, #8e43f0, #6a26d9);
  border: 1px solid rgba(140, 90, 200, 0.9);
  box-shadow: 0 0 12px rgba(140,90,200,.8);
  transition: transform .15s ease, box-shadow .15s ease;
}
.product-ad a:hover { transform: translateY(-1px); box-shadow: 0 0 18px rgba(140,90,200,.95); }
.product-ad a:focus-visible { outline: 3px solid #a2f; outline-offset: 2px; }

/* Small helper text color for the copyright line */
footer p {
  margin-top: .5rem;
  font-size: .92rem;
  color: #a7b3cc;
}

/* Focus visibility for keyboard users on all focusable elements */
:focus-visible {
  outline: 3px solid #7b5cff;
  outline-offset: 2px;
  border-radius: 6px;
}

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

/* Responsive adjustments */
@media (min-width: 768px) {
  main { padding: 3.5rem 1rem 5rem; }
  header { padding: 2rem 1rem; }
  .image-frame { padding: 1.25rem; }
}
