/* Minimal reset and a beige polka-dot backdrop with purple hacker styling */

*, *::before, *::after { box-sizing: border-box; }

:root {
  --bg-beige: #f2e6cc;
  --dot: rgba(0,0,0,.08);
  --panel: rgba(124,58,237,.18);
  --accent: #7c3aed;
  --accent-dark: #5b21b6;
  --text: #2b1740;
  --muted: #6b5f7a;
  --shadow: 0 8px 20px rgba(0,0,0,.15);
  --glow: 0 0 12px rgba(124,58,237,.75);
  --ring: rgba(255, 209, 0, 0.95);
}

html, body { height: 100%; }

body {
  margin: 0;
  font-family: system-ui, -apple-system, "Segoe UI", Roboto, Inter, Arial, sans-serif;
  color: var(--text);
  background-color: var(--bg-beige);
  /* Beige polka dots */
  background-image:
    radial-gradient(circle at 12px 12px, rgba(0,0,0,.08) 2px, transparent 2px),
    radial-gradient(circle at 32px 32px, rgba(0,0,0,.04) 2px, transparent 2px);
  background-size: 40px 40px;
  background-position: 0 0, 20px 20px;
  -webkit-font-smoothing: antialiased;
  -moz-osx-font-smoothing: grayscale;
  min-height: 100%;
  display: flex;
  flex-direction: column;
  gap: 0;
}

/* Hero area and layout (mobile-first) */
main {
  flex: 1 1 auto;
  display: flex;
  align-items: center;
  justify-content: center;
  padding: 2rem 1rem;
}

.image-frame {
  width: min(92vw, 860px);
  border-radius: 16px;
  overflow: hidden;
  border: 1px solid rgba(255,255,255,.65);
  background: rgba(255,255,255,.15);
  backdrop-filter: blur(6px);
  -webkit-backdrop-filter: blur(6px);
  box-shadow: var(--shadow);
  position: relative;
  isolation: isolate;
}

/* Subtle neon halo for cyberpunk vibe */
.image-frame::before {
  content: "";
  position: absolute;
  inset: -2px;
  border-radius: inherit;
  background: radial-gradient(circle at 50% 0%, rgba(124,58,237,.25), transparent 40%);
  pointer-events: none;
  filter: saturate(1.1);
  z-index: 0;
}

.image-frame::after {
  content: "";
  position: absolute;
  inset: 0;
  border-radius: inherit;
  box-shadow: inset 0 0 0 2px rgba(124,58,237,.25);
  pointer-events: none;
  z-index: 1;
}

.image-frame img {
  width: 100%;
  height: auto;
  display: block;
  position: relative;
  z-index: 2;
}

/* Frosted glass overlay effect for content behind image (subtle) */
.image-frame > img { display: block; }

/* Footer with a prominent CTA styled as a hacker-button */
footer {
  text-align: center;
  padding: 1.5rem 1rem;
  color: var(--muted);
  background: linear-gradient(to top, rgba(0,0,0,0.02), rgba(255, 255, 255, 0.15));
  border-top: 1px solid rgba(0,0,0,.08);
  width: 100%;
}

/* Product Ad block styled as a glossy hacker panel */
.product-ad {
  display: inline-block;
  padding: 0.25rem;
  border-radius: 12px;
  background: var(--panel);
  border: 1px solid rgba(124,58,237,.4);
  margin-bottom: 0.75rem;
  position: relative;
  z-index: 2;
  backdrop-filter: blur(2px);
  -webkit-backdrop-filter: blur(2px);
}
.product-ad h3 {
  font-size: 1rem;
  margin: 0.25rem 0 0.25rem;
  color: #3a0a56;
}
.product-ad a { text-decoration: none; display: inline-block; }

/* CTA button look (prominent) */
.product-ad a p {
  margin: 0;
  padding: 0.9rem 1.4rem;
  border-radius: 10px;
  background: var(--accent);
  color: #fff;
  font-weight: 700;
  display: inline-block;
  box-shadow: 0 6px 14px rgba(0,0,0,.25);
  transition: transform .2s ease;
}
.product-ad a:hover p { transform: translateY(-1px); }

/* Focus styles for accessibility */
.product-ad a:focus-visible, .product-ad a:focus {
  outline: 3px solid var(--ring);
  outline-offset: 2px;
  border-radius: 10px;
}

/* Footer text color and spacing for accessibility */
footer p { margin: .5rem 0 0; color: var(--muted); }

/* Responsive tweaks */
@media (min-width: 768px) {
  main { padding: 3rem 2rem; }
  .image-frame { border-radius: 20px; }
  .product-ad h3 { font-size: 1.05rem; }
}
@media (min-width: 1024px) {
  main { padding: 4rem; }
}
