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

/* Theme & utility vars */
:root {
  --indigo: #4f46e5;
  --indigo-dark: #3730a3;
  --purple: #8b5cf6;
  --cyan: #5efcde;
  --bg-start: #0b0b1b;
  --text: #e8e6ff;
  --muted: #c9c6e6;
  --glass: rgba(255, 255, 255, 0.12);
  --border: rgba(255, 255, 255, 0.28);
  --shadow: 0 12px 40px rgba(0,0,0,.5);
}

/* Light reset + base */
html, body { height: 100%; }
html { scroll-behavior: smooth; }
body {
  margin: 0;
  padding: 0;
  color: var(--text);
  font-family: system-ui, -apple-system, "Segoe UI", Roboto, Inter, Arial, sans-serif;
  line-height: 1.4;
  min-height: 100vh;
  /* Purple striped background + indigo hacker vibe */
  background: 
    repeating-linear-gradient(135deg,
      rgba(99, 0, 196, 0.25) 0px,
      rgba(99, 0, 196, 0.25) 8px,
      rgba(20, 0, 60, 0.25) 8px,
      rgba(20, 0, 60, 0.25) 16px),
    linear-gradient(#0b0b1b, #0b0b1b 60%, #0a0b1b);
  background-attachment: fixed;
  -webkit-font-smoothing: antialiased;
  -moz-osx-font-smoothing: grayscale;
}

/* Layout */
main {
  display: flex;
  align-items: center;
  justify-content: center;
  padding: 2rem 1rem;
  width: 100%;
  min-height: calc(100vh - 120px);
}

.image-frame {
  width: min(680px, 92vw);
  padding: 1rem;
  border-radius: 20px;
  background: rgba(255, 255, 255, 0.08); /* frosted glass look */
  border: 1px solid rgba(255, 255, 255, 0.28);
  backdrop-filter: blur(8px) saturate(170%);
  -webkit-backdrop-filter: blur(8px) saturate(170%);
  box-shadow: var(--shadow);
  display: flex;
  align-items: center;
  justify-content: center;
}

.image-frame img {
  width: 100%; height: auto; display: block;
  border-radius: 14px;
  border: 1px solid rgba(255, 255, 255, 0.25);
  image-rendering: crisp-edges;
  filter: saturate(1.05);
}

/* Footer / Ad block (CTA) */
footer {
  padding: 1rem;
  text-align: center;
  color: rgba(232, 226, 255, 0.95);
  background: rgba(2, 0, 20, 0.55);
  border-top: 1px solid rgba(255, 255, 255, 0.15);
  backdrop-filter: blur(4px);
  -webkit-backdrop-filter: blur(4px);
}

/* Product Ad card (frosted glass) */
.product-ad {
  display: inline-flex;
  flex-direction: column;
  align-items: center;
  gap: 0.25rem;
  padding: 0.6rem 0.8rem;
  border-radius: 999px;
  background: rgba(255, 255, 255, 0.12);
  border: 1px solid rgba(255, 255, 255, 0.28);
  backdrop-filter: blur(6px);
  -webkit-backdrop-filter: blur(6px);
  margin: 0.25rem auto;
}

.product-ad h3 {
  font-size: 0.92rem;
  margin: 0;
  color: #efeaff;
  letter-spacing: .2px;
}

.product-ad a { text-decoration: none; }

/* CTA pill inside the ad */
.product-ad a p {
  margin: 0;
  padding: .55rem 1.05rem;
  border-radius: 999px;
  font-weight: 700;
  color: #fff;
  background: linear-gradient(135deg, var(--indigo), var(--purple));
  box-shadow: 0 6px 16px rgba(0, 0, 0, .35);
  transition: transform .15s ease;
}
.product-ad a:hover p { transform: translateY(-1px); }

/* Focus accessibility */
.product-ad a:focus-visible {
  outline: 3px solid var(--cyan);
  outline-offset: 2px;
}

/* Link defaults for accessibility */
a { color: inherit; text-decoration: none; }

/* Responsiveness (mobile-first) */
@media (min-width: 768px) {
  main { padding: 3rem 2rem; }
  .image-frame { width: min(800px, 60vw); }
}

@media (min-width: 1024px) {
  footer { padding: 1.5rem; }
  .image-frame { border-radius: 22px; padding: 1.25rem; }
}