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

html, body { height: 100%; }
html, body { margin: 0; padding: 0; }

:root {
  --bg-lime: #a2f24b;
  --bg-dark: #0b0f14;
  --turq: #1bd9cb;
  --turq-dark: #0aa49a;
  --text: #eaffff;
  --glass: rgba(255,255,255,.12);
  --glass-border: rgba(180,255,255,.25);
}

body {
  font-family: ui-sans-serif, system-ui, -apple-system, "Segoe UI", Roboto, Inter, Arial;
  color: var(--text);
  background-color: var(--bg-lime);
  /* Lime checkerboard background */
  background-image:
    linear-gradient(45deg, rgba(0,0,0,.15) 25%, transparent 25%),
    linear-gradient(-45deg, rgba(0,0,0,.15) 25%, transparent 25%),
    linear-gradient(45deg, transparent 75%, rgba(0,0,0,.15) 75%),
    linear-gradient(-45deg, transparent 75%, rgba(0,0,0,.15) 75%);
  background-size: 40px 40px;
  background-position: 0 0, 0 0, 20px 20px, 20px 20px;
  min-height: 100vh;
  display: flex;
  flex-direction: column;
  line-height: 1.5;
  text-rendering: optimizeLegibility;
  -webkit-font-smoothing: antialiased;
  -moz-osx-font-smoothing: grayscale;
}

a { color: inherit; text-decoration: none; }

/* Layout: mobile-first, centered hero image, frosted glass frame */
main {
  flex: 1 1 auto;
  display: grid;
  place-items: center;
  padding: 2rem 1rem;
}

.image-frame {
  width: min(92vw, 1000px);
  border-radius: 18px;
  padding: 1rem;
  background: rgba(255,255,255,.08);
  border: 1px solid rgba(180,255,255,.25);
  backdrop-filter: blur(8px) saturate(120%);
  -webkit-backdrop-filter: blur(8px) saturate(120%);
  box-shadow: 0 20px 40px rgba(0,0,0,.4);
}

.image-frame img {
  width: 100%;
  height: auto;
  display: block;
  border-radius: 12px;
  outline: 2px solid rgba(0,0,0,.05);
}

/* Footer with frosted glass CTA panel */
footer {
  padding: 1rem;
  width: 100%;
  box-sizing: border-box;
}

/* Featured product CTA – prominent turquoise button on a frosted card */
.product-ad {
  display: grid;
  grid-template-columns: 1fr auto;
  align-items: center;
  gap: 1rem;
  padding: .75rem;
  border-radius: 14px;
  background: rgba(8, 24, 40, .55);
  border: 1px solid rgba(0, 255, 240, .35);
  backdrop-filter: blur(6px);
  -webkit-backdrop-filter: blur(6px);
  margin: .5rem auto;
  max-width: 720px;
}

.product-ad h3 {
  margin: 0;
  font-size: 1rem;
  color: #d6fff3;
  display: flex;
  align-items: center;
  gap: .5rem;
}

.product-ad a { display: inline-block; text-decoration: none; }
.product-ad a > p {
  margin: 0;
  padding: .55rem 1rem;
  border-radius: 999px;
  background: linear-gradient(135deg, #1ef0d6, #0bb8a0);
  color: #002318;
  font-weight: 700;
  letter-spacing: .4px;
  border: 1px solid rgba(255,255,255,.6);
  box-shadow: 0 4px 12px rgba(0,0,0,.25);
}
.product-ad a:focus-visible > p,
.product-ad a:hover > p {
  outline: 2px solid #fff;
  outline-offset: 2px;
}

footer p {
  text-align: center;
  font-size: 0.85rem;
  color: rgba(230,255,245,.9);
  margin: 0.75rem 0 0;
}

/* Focus styles for accessibility on all focusable elements */
:focus-visible {
  outline: 3px solid #7af;
  outline-offset: 2px;
  border-radius: 4px;
}

/* Responsive tweaks */
@media (min-width: 600px) {
  .image-frame {
    padding: 1.25rem;
    border-radius: 22px;
  }
  .product-ad {
    grid-template-columns: auto 180px;
  }
  .product-ad h3 { font-size: 1.05rem; }
}
@media (min-width: 1024px) {
  .image-frame { transform: translateY(-6px); }
  footer { padding: 1.25rem 0; }
}