/* Minimal reset and cyberpunk styling for a hacker-themed landing */

:root{
  --bg-yellow: #f5d04a;
  --bg-yellow-dark: #e4b72f;
  --teal: #19d2c6;
  --teal-dark: #0a8b82;
  --text: #0b3232;
  --glass: rgba(255,255,255,.18);
  --glass-strong: rgba(255,255,255,.28);
  --shadow: 0 12px 32px rgba(0,0,0,.25);
}

*,
*::before,
*::after { box-sizing: border-box; }

html, body { height: 100%; }
html { font-size: 16px; }
body {
  margin: 0;
  font-family: system-ui, -apple-system, "Segoe UI", Roboto, Arial, sans-serif;
  color: var(--text);
  min-height: 100vh;
  /* Yellow circuit-board background with teal accents */
  background: 
    /* teal circuit grid overlay  */
    linear-gradient(135deg, rgba(0,0,0,.04), rgba(0,0,0,.04)),
    repeating-linear-gradient(0deg, rgba(25,210,198,.25) 0 1px, transparent 1px 32px),
    repeating-linear-gradient(90deg, rgba(25,210,198,.25) 0 1px, transparent 1px 32px),
    /* warm yellow base */
    linear-gradient(#f5d04a, #e6c042);
  background-blend-mode: overlay, overlay, overlay, normal;
  -webkit-font-smoothing: antialiased;
  -moz-osx-font-smoothing: grayscale;
}

/* Light reset for content flow */
*, *::before, *::after { box-sizing: border-box; }
main { display: grid; place-items: center; padding: 2rem 1rem; }

/* Frosted glass hero frame around the media */
.image-frame {
  width: min(92vw, 900px);
  aspect-ratio: 16 / 9;
  border-radius: 16px;
  padding: 0.75rem;
  background: rgba(255,255,255,.18);
  border: 1px solid rgba(255,255,255,.4);
  backdrop-filter: saturate(1.2) blur(8px);
  -webkit-backdrop-filter: saturate(1.2) blur(8px);
  box-shadow: var(--shadow);
  overflow: hidden;
  position: relative;
  isolation: isolate;
}
.image-frame::after {
  content: "";
  position: absolute;
  inset: 0;
  border-radius: inherit;
  /* subtle neon glow to reinforce hacker vibe */
  box-shadow: 0 0 40px 6px rgba(25,210,198,.25);
  pointer-events: none;
}
.image-frame img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  display: block;
  border-radius: 12px;
  filter: saturate(1.05);
}

/* Footer with a frosted ad pill and CTA */
footer {
  padding: 1.75rem 1rem 2rem;
  text-align: center;
  width: 100%;
}
.product-ad {
  display: inline-flex;
  align-items: center;
  gap: .5rem;
  padding: .35rem .6rem;
  border-radius: 999px;
  background: rgba(255,255,255,.25);
  border: 1px solid rgba(255,255,255,.45);
  backdrop-filter: blur(4px);
  -webkit-backdrop-filter: blur(4px);
}
.product-ad h3 {
  font-size: .95rem;
  margin: 0;
  color: var(--teal);
  font-weight: 700;
  letter-spacing: .2px;
}
.product-ad a { text-decoration: none; }
.product-ad a p {
  margin: 0;
  padding: .5rem 1rem;
  border-radius: 999px;
  background: var(--teal);
  color: white;
  font-weight: 700;
  line-height: 1;
  white-space: nowrap;
  transition: transform .15s ease;
}
.product-ad a:focus-visible p,
.product-ad a p:focus-visible {
  outline: 2px solid var(--teal);
  outline-offset: 2px;
}
.product-ad a:hover p { transform: translateY(-1px); }

/* Typography helpers (tiny skim-friendly scale) */
h1, h2, h3 { margin: 0 0 .5rem; }
p { margin: 0 0 1rem; }

/* Focus styles for accessibility on interactive elements */
:focus-visible {
  outline: 2px solid var(--teal);
  outline-offset: 3px;
  border-radius: 6px;
}

/* Responsive tweaks: mobile-first by default, scale up on larger viewports */
@media (min-width: 640px) {
  main { padding: 3rem 2rem; }
  .image-frame { width: min(860px, 88vw); border-radius: 20px; padding: 1rem; }
  .image-frame img { border-radius: 14px; }
  footer { padding: 2rem 0 2.5rem; }
}
@media (min-width: 1024px) {
  main { padding: 4rem 2rem; }
  .image-frame { transform: translateZ(0); }
}
