/* Reset & base */
*, *::before, *::after { box-sizing: border-box; }
html, body { height: 100%; }
body {
  margin: 0;
  padding: 0;
  color: #eaffff;
  font-family: ui-sans-serif, system-ui, -apple-system, "Segoe UI", Roboto, Arial;
  line-height: 1.4;

  /* Turquoise parchment vibe: navy core with parchment base + turquoise tint */
  background: 
    radial-gradient(circle at 20% -10%, rgba(46,214,212,.15), transparent 25%),
    radial-gradient(circle at 90% 0%, rgba(46,214,212,.15), transparent 25%),
    linear-gradient(135deg, rgba(234,226,196,.5), rgba(14,28,58,.85) 60%),
    #0b1020;
  /* Subtle texture hint */
  background-blend-mode: screen;
  min-height: 100vh;
  text-rendering: optimizeLegibility;
  -webkit-font-smoothing: antialiased;
  -moz-osx-font-smoothing: grayscale;
  /* Ensure good contrast for links/buttons on dark navy */
  color-scheme: dark light;
}

/* Accent tokens */
:root {
  --navy: #0b1020;
  --parchment: #e8e0c0;
  --turquoise: #2ee0d7;
  --turquoise-dark: #1aa2a8;
  --glass: rgba(12, 18, 42, 0.75);
  --glow: 0 0 12px rgba(46, 214, 212, 0.9);
}

a {
  color: var(--turquoise);
  text-decoration: none;
  outline: none;
}
a:hover { text-decoration: underline; }
a:focus-visible {
  outline: 3px solid #2ee0d7;
  outline-offset: 2px;
  border-radius: 4px;
}

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

/* Image hero frame with frosted glass vibe */
.image-frame {
  width: min(92vw, 720px);
  aspect-ratio: 16 / 9;
  border-radius: 18px;
  overflow: hidden;
  position: relative;
  background: rgba(9, 18, 38, 0.8);
  border: 1px solid rgba(0, 255, 255, 0.25);
  box-shadow: 0 20px 60px rgba(0, 0, 0, 0.5);
  display: grid;
  place-items: center;
  isolation: isolate;
}
.image-frame img {
  width: 100%; height: 100%; object-fit: cover;
  display: block;
  transform: scale(1);
  transition: transform .3s ease;
  filter: saturate(1.05);
}
.image-frame:hover img { transform: scale(1.03); }

/* Subtle glass overlay for frosted look behind the image (acts as hero accent) */
.image-frame::before {
  content: "";
  position: absolute;
  inset: 0;
  background: linear-gradient(to bottom, rgba(8, 20, 40, 0.0) 40%, rgba(8, 20, 40, 0.55) 100%);
  mix-blend-mode: normal;
  pointer-events: none;
}
.image-frame::after {
  content: "";
  position: absolute;
  inset: 0;
  /* a cool vignette to enhance hacker/cyberpunk vibe on the edges */
  background: radial-gradient(circle at 50% 50%, rgba(0,0,0,0) 40%, rgba(0,0,0,0.25) 100%);
  pointer-events: none;
  opacity: 0.6;
  mix-blend-mode: multiply;
}

/* Optional frosted-glass caption overlay (hero label) */
.image-frame::after,
.image-frame::before { border-radius: 18px; }

/* Frosted glass overlay panel design (for potential in-page notes) */
.frosted {
  background: rgba(12, 18, 40, 0.6);
  border-radius: 14px;
  padding: 1.25rem;
  backdrop-filter: blur(8px) saturate(1.2);
  -webkit-backdrop-filter: blur(8px) saturate(1.2);
  border: 1px solid rgba(0, 255, 255, 0.28);
  color: #eaffff;
  box-shadow: 0 6px 24px rgba(0,0,0,0.3);
}

/* Hero caption text added via CSS (non-intrusive) */
.image-frame::before {
  content: "Stormy Night Hitchhiker Haunts the Highway";
  position: absolute;
  left: 50%;
  bottom: 12px;
  transform: translateX(-50%);
  padding: 0.5rem 1rem;
  border-radius: 999px;
  font-size: 0.92rem;
  font-weight: 700;
  letter-spacing: .2px;
  color: #04131b;
  background: rgba(46, 214, 212, 0.92);
  border: 1px solid rgba(0, 0, 0, 0.15);
  text-shadow: 0 1px 2px rgba(0,0,0,.15);
  backdrop-filter: blur(2px);
  -webkit-backdrop-filter: blur(2px);
  box-shadow: 0 2px 10px rgba(0,0,0,.25);
  pointer-events: none;
}

/* Footer + CTA styling (prominent CTA button look) */
footer {
  margin-top: 2rem;
  padding: 1.25rem;
  text-align: center;
  color: #d6f7ff;
}
.product-ad {
  display: inline-block;
  padding: .75rem 1rem;
  border-radius: 12px;
  background: rgba(5, 14, 40, 0.75);
  border: 1px solid rgba(0, 255, 255, 0.28);
  backdrop-filter: blur(2px);
  margin: 0.5rem;
  box-shadow: 0 6px 18px rgba(0,0,0,0.25);
}
.product-ad h3 {
  margin: 0 0 0.5rem;
  font-size: 1.02rem;
  font-weight: 700;
  color: #eaffff;
  text-shadow: 0 0 6px rgba(46,214,212,0.8);
}
.product-ad a {
  display: inline-block;
  padding: .5rem .9rem;
  border-radius: 8px;
  background: rgba(46,214,212,.25);
  border: 1px solid rgba(46,214,212,.6);
  color: #eaffff;
  font-weight: 600;
  transition: transform .2s ease;
}
.product-ad a:hover { transform: translateY(-1px); background: rgba(46,214,212,.38); }

footer p {
  margin: 1rem 0 0;
  font-size: .92rem;
  color: #b7e4f0;
}

/* Focus style for keyboard users on CTA-like elements */
button:focus-visible, a:focus-visible {
  outline: 3px solid #2ee0d7;
  outline-offset: 2px;
  border-radius: 6px;
}

/* Responsive tweaks (desktop/tablet) */
@media (min-width: 768px) {
  main { padding: 3rem 2rem; }
  .image-frame { width: min(860px, 70vw); }
  footer { text-align: left; padding: 1rem 2rem; }
}
@media (min-width: 1024px) {
  body {
    /* slight parallax-like shift for depth on wide screens */
    background-position: 20% 0, 80% 20%;
  }
  .image-frame { transform: translateY(-2px); }
}