/* Cyberpunk hacker theme - blue carbon fiber + turquoise accents, frosted glass, mobile-first */

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

/* 2) Theme variables */
:root {
  --turq: #2ff0dd;
  --turq-dark: #12b7ac;
  --bg: #0a1020;
  --card: rgba(6, 12, 28, 0.72);
  --glass: rgba(255, 255, 255, 0.08);
  --border: rgba(0, 255, 240, 0.45);
  --text: #e7fbff;
  --muted: #b8e8f5;
  --shadow: 0 8px 28px rgba(0,0,0,.45);
}

/* 3) Global background: blue carbon fiber feel (layered gradients) */
body {
  color: var(--text);
  font-family: ui-sans-serif, system-ui, -apple-system, "Segoe UI", Roboto, Arial;
  background-color: var(--bg);
  background-image:
    /* subtle diagonal weave */
    linear-gradient(135deg, rgba(0,0,0,0.22) 25%, rgba(0,0,0,0) 25%),
    linear-gradient(225deg, rgba(0,0,0,0.22) 25%, rgba(0,0,0,0) 25%),
    repeating-linear-gradient(0deg, rgba(0,0,0,0.22) 0 2px, transparent 2px 4px),
    repeating-linear-gradient(90deg, rgba(0,0,0,0.22) 0 2px, transparent 2px 4px),
    linear-gradient(to bottom right, rgba(0, 180, 210, 0.15), rgba(0, 180, 210, 0.25));
  background-blend-mode: multiply, multiply, overlay, overlay, normal;
  min-height: 100vh;
  -webkit-font-smoothing: antialiased;
  text-rendering: optimizeLegibility;
  line-height: 1.5;
  margin: 0;
}

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

.image-frame {
  width: min(92%, 860px);
  aspect-ratio: 16 / 9;
  border-radius: 16px;
  overflow: hidden;
  background: rgba(8, 12, 28, 0.6);
  border: 1px solid rgba(0, 255, 240, 0.5);
  backdrop-filter: blur(6px) saturate(1.2);
  -webkit-backdrop-filter: blur(6px) saturate(1.2);
  box-shadow: var(--shadow);
  display: grid;
  place-items: center;
}

.image-frame img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  display: block;
  filter: saturate(1.05) contrast(1.04);
}

/* 5) Footer / ad panel (frosted glass CTA) */
footer {
  padding: 1.75rem 1rem;
  text-align: center;
  color: var(--text);
}

.product-ad {
  display: inline-block;
  padding: 0.75rem 1rem;
  border-radius: 12px;
  background: rgba(2, 6, 34, 0.6);
  border: 1px solid rgba(0, 255, 240, 0.4);
  color: var(--text);
  text-align: left;
  margin: 0 auto 1rem;
  max-width: 90vw;
  backdrop-filter: blur(8px);
  -webkit-backdrop-filter: blur(8px);
}

.product-ad h3 {
  font-size: 1.05rem;
  margin: 0 0 6px;
}
.product-ad a { text-decoration: none; }
.product-ad a p {
  display: inline-block;
  margin: 0;
  padding: 0.55rem 0.95rem;
  border-radius: 8px;
  font-weight: 700;
  color: #00131a;
  background: linear-gradient(135deg, #25e3cf, #0bd0d0);
  box-shadow: 0 4px 12px rgba(0,0,0,.25);
  transition: transform .2s ease;
}
.product-ad a p:hover { transform: translateY(-1px); }

/* 6) CTA helpers (prominent buttons) */
a.cta {
  display: inline-block;
  padding: 0.75rem 1.25rem;
  border-radius: 999px;
  background: linear-gradient(135deg, #19e1d0 0%, #0bb6b0 100%);
  color: #04121a;
  font-weight: 800;
  text-decoration: none;
  box-shadow: 0 6px 16px rgba(0,0,0,.25);
}
a.cta:hover, a.cta:focus { transform: translateY(-1px); }

/* 7) Focus styles for accessibility */
:focus-visible {
  outline: 3px solid var(--turq);
  outline-offset: 2px;
}
a:focus-visible, button:focus-visible {
  outline: 3px solid var(--turq);
  outline-offset: 2px;
}

/* 8) Responsive tweaks (tablet/desktop) */
@media (min-width: 768px) {
  body { font-size: 16px; }
  .image-frame { width: min(78%, 860px); border-radius: 20px; }
  .product-ad { padding: 1rem 1.25rem; }
}
@media (min-width: 1024px) {
  main { padding: 3rem 1rem; }
  .image-frame { width: min(60%, 900px); }
}

/* 9) Small utility: visually-hidden helper (optional for accessibility) */
.sr-only {
  position: absolute !important;
  width: 1px; height: 1px;
  padding: 0; margin: -1px;
  overflow: hidden; clip: rect(0,0,0,0);
  white-space: nowrap; border: 0;
}