/* Minimal, mobile-first, hacker-teal CSS with frosted glass and circuit vibes */

/* Light reset */
*, *::before, *::after { box-sizing: border-box; }
html, body { margin: 0; padding: 0; }

/* Global theme */
:root{
  --bg-deep: #07261f;
  --bg-teal: #0b3b38;
  --panel: rgba(0, 60, 60, 0.6);
  --glass: rgba(0, 0, 0, 0.25);
  --green: #2ef0a5;
  --green-dark: #15a57d;
  --text: #eafff5;
  --text-soft: #bdeed8;
  --focus: #00ffd1;
}
html, body { height: 100%; color: var(--text); background: var(--bg-deep); }

/* Teal circuit-board-inspired background (lightweight, data-safe) */
body {
  background-color: #082a22;
  background-image:
    linear-gradient(rgba(0,0,0,0.25), rgba(0,0,0,0.25)),
    radial-gradient(circle at 20% 10%, rgba(0, 200, 180, 0.15) 0 40px, transparent 40px),
    linear-gradient(135deg, rgba(0,0,0,.25) 0, rgba(0,0,0,.0) 60%),
    linear-gradient(#0b2f2a, #0b2f2a);
  background-size: 40px 40px, 40px 40px, 100% 100%, 100% 100%;
  font-family: system-ui, -apple-system, "Segoe UI", Roboto, Arial, sans-serif;
  line-height: 1.4;
  -webkit-font-smoothing: antialiased;
  -moz-osx-font-smoothing: grayscale;
}

/* Layout scaffolding (mobile-first) */
main {
  display: grid;
  place-items: center;
  padding: 2rem 1rem;
  min-height: calc(100vh - 120px);
}

.image-frame {
  width: min(92%, 760px);
  aspect-ratio: 16 / 9;
  border-radius: 20px;
  overflow: hidden;
  position: relative;
  background: rgba(0,0,0,0.25);
  border: 1px solid rgba(0, 255, 180, 0.6);
  box-shadow: 0 14px 40px rgba(0,0,0,.45);
  isolation: isolate;
}
.image-frame img {
  width: 100%; height: 100%; object-fit: cover; display: block;
  /* slight color punch for hacker vibe */
  filter: saturate(1.05);
}
.image-frame::after {
  /* frosted-glass overlay to evoke glass panel over tech image */
  content: "";
  position: absolute; inset: 0;
  background: rgba(2, 12, 12, 0.32);
  backdrop-filter: blur(6px) saturate(1.2);
  -webkit-backdrop-filter: blur(6px) saturate(1.2);
  pointer-events: none;
}
.image-frame::before {
  content: "";
  position: absolute; inset: 0;
  box-shadow: inset 0 0 60px rgba(0, 255, 180, 0.25);
  pointer-events: none;
  mix-blend-mode: screen;
}

/* Footer with featured product CTA */
footer {
  padding: 1.75rem 1rem;
  text-align: center;
  color: var(--text-soft);
}
.product-ad {
  display: inline-block;
  padding: 0.5rem;
  margin: 0 auto 0.75rem;
  border-radius: 12px;
  background: rgba(0,60,60,0.55);
  border: 1px solid rgba(0, 255, 180, 0.6);
  backdrop-filter: blur(2px);
}
.product-ad h3 {
  font-size: 1rem;
  margin: 0 0 0.4rem;
  color: #c9ffe9;
}
.product-ad a {
  text-decoration: none;
}
.product-ad a p {
  display: inline-block;
  padding: .65rem 1.05rem;
  border-radius: 999px;
  font-weight: 700;
  background: #0b3f2e;
  color: #eafff5;
  border: 1px solid rgba(0,255,180,.65);
  transition: transform .2s ease, background .2s;
}
.product-ad a p:hover {
  transform: translateY(-1px);
  background: #1a5a46;
}
a:focus-visible {
  outline: 3px solid var(--focus);
  outline-offset: 2px;
  border-radius: 999px;
}
*:focus-visible { outline: none; }

/* Typography tweaks for accessibility on small screens */
@media (min-width: 420px) {
  .product-ad h3 { font-size: 1.05rem; }
}

/* Responsive refinements (tablet/desktop) */
@media (min-width: 768px) {
  main { padding: 3rem 2rem; }
  .image-frame { width: min(70%, 900px); }
  footer { padding: 2rem 1rem; }
}
@media (min-width: 1024px) {
  .image-frame { width: min(60%, 1000px); }
}
