/* Minimal reset and CSS for a teals + orange hacker vibe with frosted glass */

/* Reset */
*, *::before, *::after { box-sizing: border-box; }
html, body { margin: 0; padding: 0; height: 100%; }
:root {
  --bg-teal: #0a2f2f;
  --bg-teal-dark: #062626;
  --surface: rgba(255,255,255,.08);
  --surface-strong: rgba(255,255,255,.14);
  --accent: #ff7a1a;
  --text: #e6fff7;
  --muted: rgba(230,255,247,.85);
  --glass: rgba(255,255,255,.12);
}
html, body { background: var(--bg-teal-dark); color: var(--text); font-family: ui-sans-serif, system-ui, -apple-system, "Segoe UI", Roboto; min-height: 100%; }

/* Teal carbon fiber background (subtle diagonal weave) */
body {
  background-image:
    linear-gradient(135deg, rgba(0,0,0,.25) 25%, transparent 25%) -2px 0,
    linear-gradient(225deg, rgba(0,0,0,.25) 25%, transparent 25%) -2px 0;
  background-size: 6px 6px;
  background-color: var(--bg-teal);
  display: flex;
  min-height: 100vh;
  flex-direction: column;
  line-height: 1.4;
  -webkit-font-smoothing: antialiased;
  -moz-osx-font-smoothing: grayscale;
}

/* Layout containers (mobile-first) */
main { width: 100%; display: flex; justify-content: center; padding: 1.5rem 1rem; flex: 1 0 auto; }
.image-frame { width: 100%; max-width: 900px; border-radius: 14px; overflow: hidden;
  border: 1px solid rgba(255,255,255,.25);
  background: rgba(255,255,255,.08);
  backdrop-filter: blur(8px);
  -webkit-backdrop-filter: blur(8px);
  box-shadow: 0 12px 40px rgba(0,0,0,.45);
}
.image-frame img { display: block; width: 100%; height: auto; }

/* Frosted glass footer-ad section */
footer { width: 100%; padding: 1rem 1rem 1.25rem; margin-top: auto; }
.product-ad {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: .75rem;
  padding: .75rem 1rem;
  border-radius: 12px;
  background: rgba(15, 26, 32, .66);
  border: 1px solid rgba(255,255,255,.15);
  backdrop-filter: blur(6px);
  -webkit-backdrop-filter: blur(6px);
}
.product-ad h3 { font-size: .95rem; font-weight: 700; color: #aaf2e9; margin: 0; }
.product-ad a { text-decoration: none; display: inline-block; }
.product-ad a p {
  margin: 0;
  padding: .5rem 1rem;
  border-radius: 999px;
  background: linear-gradient(135deg, var(--accent), #ff4d00);
  color: #041a08;
  font-weight: 700;
  transition: transform .15s ease, box-shadow .15s ease;
  box-shadow: 0 6px 12px rgba(255, 122, 26, 0.6);
}
.product-ad a p:hover { transform: translateY(-1px); }
.product-ad a p:focus { outline: 3px solid rgba(255, 140, 0, .8); outline-offset: 2px; }

/* Subtle caption under the ad */
footer p { text-align: center; margin: .5rem 0 0; color: rgba(230,255,247,.85); font-size: .9rem; }

/* Focus accessibility for all focusable elements if not using :focus-visible */
:focus { outline: 2px solid var(--accent); outline-offset: 2px; }

/* Responsive tweaks (desktop/tablet) */
@media (min-width: 768px) {
  main { padding: 2rem 2rem; }
  .image-frame { border-radius: 16px; }
}
@media (min-width: 1024px) {
  footer { padding: 1.25rem 2rem; }
  .product-ad { max-width: 860px; margin: 0 auto; }
}
