/* Reset and base */
*, *::before, *::after { box-sizing: border-box; }
html, body { height: 100%; }
body {
  margin: 0;
  color: #e9ffe9;
  font-family: ui-sans-serif, system-ui, -apple-system, "Segoe UI", Roboto, Arial;
  min-height: 100dvh;
  background: linear-gradient(135deg, #0b1020 0%, #1a1740 40%, #0b0f2b 100%);
  -webkit-font-smoothing: antialiased;
  -moz-osx-font-smoothing: grayscale;
  text-rendering: optimizeLegibility;
}

/* Tokens */
:root {
  --green: #39ff7b;
  --green-soft: #2affc2;
  --glass: rgba(255,255,255,.08);
  --border: rgba(255,255,255,.22);
  --shadow: 0 12px 28px rgba(0,0,0,.35);
  --blur: 8px;
  --radius: 16px;
}

/* Layout */
main {
  display: grid;
  place-items: center;
  padding: 2rem 1rem;
}

.image-frame {
  width: min(92vw, 720px);
  background: rgba(255,255,255,.08);
  border: 1px solid rgba(255,255,255,.22);
  border-radius: var(--radius);
  overflow: hidden;
  backdrop-filter: blur(var(--blur));
  -webkit-backdrop-filter: blur(var(--blur));
  box-shadow: var(--shadow);
}

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

/* Footer / glass card for product ad */
footer {
  width: 100%;
  display: grid;
  place-items: center;
  padding: 1.75rem 1rem;
  color: #d8ffd3;
}

.product-ad {
  width: min(92vw, 720px);
  padding: .9rem 1rem;
  border-radius: 12px;
  background: rgba(255,255,255,.08);
  border: 1px solid rgba(255,255,255,.18);
  backdrop-filter: blur( var(--blur) );
  -webkit-backdrop-filter: blur( var(--blur) );
  text-align: left;
}

.product-ad h3 {
  font-size: 1rem;
  margin: 0 0 .25rem;
}
.product-ad p {
  margin: 0;
  color: #c6ffd8;
}
.product-ad a {
  display: inline-block;
  margin-top: .4rem;
  color: #baffd0;
  text-decoration: none;
  padding: .35rem .6rem;
  border-radius: 6px;
  border: 1px solid rgba(0,0,0,.15);
  background: rgba(0,0,0,.04);
}
.product-ad a:hover,
.product-ad a:focus-visible {
  color: #041b0a;
  background: #9affc6;
  outline: none;
}
footer p {
  margin-top: .5rem;
  font-size: .85rem;
  color: #c8ffd9;
}

/* CTA helpers (for future use) */
.btn, .cta {
  display: inline-block;
  padding: .75rem 1.25rem;
  border-radius: 999px;
  border: 1px solid rgba(0,0,0,.15);
  color: #041b0a;
  text-decoration: none;
  font-weight: 600;
  background: linear-gradient(135deg, #2cff9b 0%, #0bdc7a 100%);
  box-shadow: 0 6px 14px rgba(0,0,0,.25);
}
.btn:hover, .cta:hover { transform: translateY(-1px); }
.btn:active, .cta:active { transform: translateY(0); }

/* Focus accessibility */
a:focus-visible, button:focus-visible, [tabindex]:focus-visible {
  outline: 3px solid var(--green);
  outline-offset: 2px;
  border-radius: 8px;
}

/* Responsive tweaks (mobile-first) */
@media (min-width: 768px) {
  main { padding: 3rem 0; }
  .image-frame { width: min(70vw, 820px); }
  footer { padding: 2.5rem 0; }
}
@media (min-width: 1024px) {
  .image-frame { width: min(60vw, 900px); }
}