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

html, body { height: 100%; }

:root {
  --bg: #041a0e;
  --text: #eafff0;
  --green: rgba(0,255,102,.25);
  --mag: #ff00ff;
  --glass: rgba(255,255,255,.14);
}

body {
  margin: 0;
  font-family: Inter, ui-sans-serif, system-ui, -apple-system, "Segoe UI",
               Roboto, "Helvetica Neue", Arial;
  color: var(--text);
  background-color: var(--bg);
  background-image:
    linear-gradient(45deg, rgba(0,255,102,.22) 25%, transparent 25%),
    linear-gradient(-45deg, rgba(0,255,102,.22) 25%, transparent 25%),
    linear-gradient(45deg, transparent 75%, rgba(0,255,102,.22) 75%),
    linear-gradient(-45deg, transparent 75%, rgba(0,255,102,.22) 75%);
  background-size: 14px 14px;
  background-position: 0 0, 0 0, 0 0, 0 0;
  background-color: #04170e;
  -webkit-font-smoothing: antialiased;
  -moz-osx-font-smoothing: grayscale;
  text-rendering: optimizeLegibility;
  outline: none;
}

/* Hero/header */
header {
  padding: 2rem 1rem;
  text-align: center;
  position: relative;
}

header h1 {
  font-family: ui-monospace, SFMono-Regular, Menlo, Consolas, monospace;
  font-weight: 800;
  font-size: 1.25rem;
  line-height: 1.2;
  margin: 0;
  color: transparent;
  background: linear-gradient(90deg, #ffffff, #a2ffdf 40%, #ff00ff 100%);
  -webkit-background-clip: text;
  background-clip: text;
  text-shadow: 0 0 12px rgba(255,0,255,.25);
  letter-spacing: .01em;
}

/* Focus accessibility */
:focus-visible {
  outline: 3px solid #00ff88;
  outline-offset: 2px;
  border-radius: 4px;
}

/* Layout: mobile-first scaling up */
main {
  display: grid;
  place-items: center;
  padding: 1rem;
}

article {
  width: 100%;
  max-width: 900px;
  padding: 1rem;
  margin: .5rem 0;
  background: rgba(255,255,255,.08);
  border: 1px solid rgba(255,255,255,.25);
  border-radius: 14px;
  backdrop-filter: blur(8px);
  -webkit-backdrop-filter: blur(8px);
  box-shadow: 0 10px 28px rgba(0,0,0,.25);
}

.image-frame { width: 100%; overflow: hidden; border-radius: 12px; }

.image-frame img {
  display: block;
  width: 100%;
  height: auto;
  border-radius: 12px;
}

/* Frosted glass accent for content blocks (subtle glow) */
.glass {
  background: rgba(255,255,255,.10);
  border: 1px solid rgba(255,255,255,.25);
  border-radius: 12px;
  padding: .75rem;
  backdrop-filter: blur(6px);
  -webkit-backdrop-filter: blur(6px);
}

/* Footer + ad block */
footer {
  padding: 1.5rem;
  text-align: center;
  color: #d1ffd9;
  border-top: 1px solid rgba(255,255,255,.15);
}

.product-ad {
  margin: 1rem auto;
  padding: .8rem;
  max-width: 720px;
  border-radius: 12px;
  background: rgba(0,0,0,.25);
  border: 1px solid rgba(255,255,255,.25);
  backdrop-filter: blur(6px);
  -webkit-backdrop-filter: blur(6px);
}

.product-ad h3 {
  margin: 0 0 .4rem;
  font-size: .95rem;
  color: #eafff0;
}
.product-ad a {
  color: #f8b6ff;
  text-decoration: none;
  font-weight: 700;
}
.product-ad a:hover,
.product-ad a:focus { text-decoration: underline; }

/* CTA helpers (ready to be used if HTML adds buttons/links) */
.btn,
.cta {
  display: inline-block;
  padding: .75rem 1.25rem;
  border-radius: 999px;
  font-weight: 700;
  text-decoration: none;
  border: 1px solid rgba(255,255,255,.6);
  background: var(--mag);
  color: #041b0a;
  box-shadow: 0 6px 16px rgba(255,0,255,.5);
  transition: transform .15s ease, box-shadow .15s ease;
}
.btn:hover,
.cta:hover { transform: translateY(-1px); box-shadow: 0 8px 20px rgba(255,0,255,.6); }
.btn:focus-visible,
.cta:focus-visible { outline: 3px solid #00ff88; outline-offset: 2px; }

/* Responsive tweaks */
@media (min-width: 600px) {
  header h1 { font-size: 1.75rem; }
  article { padding: 1.25rem; }
  .product-ad { padding: 1rem; }
}

@media (min-width: 1024px) {
  header { padding: 3rem 2rem; }
  header h1 { font-size: 2rem; }
  main { padding: 2rem; }
}