/* Cosmic hacker CSS: coral carbon fiber + gold accents, frosted glass, mobile-first */

/* Reset (light) */
*, *::before, *::after { box-sizing: border-box; margin: 0; padding: 0; }

/* Tokens */
:root {
  --bg-dark: #0a0a0f;
  --bg-dark2: #14161d;
  --card: rgba(255, 255, 255, 0.08);
  --border: rgba(255, 255, 255, 0.22);
  --text: #e9d7a8;
  --muted: #c9b27a;
  --gold: #ffd36b;
  --coral: #ff6f61;
}

html, body { height: 100%; }
body {
  min-height: 100vh;
  font-family: system-ui, -apple-system, "Segoe UI", Roboto, Inter, Arial;
  color: var(--text);
  background-color: var(--bg-dark);
  /* Coral + carbon fiber texture (soft, responsive) */
  background-image:
    linear-gradient(135deg, rgba(255, 111, 97, 0.08) 0%, rgba(255, 111, 97, 0.08) 25%, rgba(0,0,0,0) 25%, rgba(0,0,0,0) 50%),
    repeating-linear-gradient(135deg, rgba(0,0,0,0.60) 0 8px, rgba(0,0,0,0.25) 8px 16px);
  background-blend-mode: overlay;
  /* Subtle coral glow edge for hacker vibe */
  position: relative;
  overflow-x: hidden;
}

/* Subtle glow strip (purely decorative) */
body::before {
  content: "";
  position: fixed;
  left: -20vw;
  right: -20vw;
  bottom: -20vh;
  height: 40vh;
  background: radial-gradient(circle at 20% 20%, rgba(255, 111, 97, 0.25), transparent 40%),
              radial-gradient(circle at 80% 60%, rgba(255, 111, 97, 0.18), transparent 35%);
  filter: blur(2px);
  pointer-events: none;
  z-index: 0;
  mix-blend-mode: screen;
}

/* Layout helpers */
main {
  position: relative;
  z-index: 1;
  display: grid;
  place-items: center;
  min-height: 70vh;
  padding: 1.5rem;
}

/* Frosted glass frame around the image (hero) */
.image-frame {
  width: min(92vw, 720px);
  aspect-ratio: 16 / 9;
  display: flex;
  align-items: center;
  justify-content: center;
  border-radius: 20px;
  padding: 1rem;
  background: rgba(20, 20, 20, 0.55);
  border: 1px solid rgba(255, 255, 255, 0.25);
  box-shadow: 0 10px 40px rgba(0,0,0,0.6), inset 0 2px 6px rgba(255,255,255,.12);
  backdrop-filter: blur(8px);
  -webkit-backdrop-filter: blur(8px);
  overflow: hidden;
}

.image-frame img {
  width: 100%;
  height: auto;
  border-radius: 12px;
  display: block;
  object-fit: cover;
  /* Subtle gold inner glow for hacker vibe on the image edge */
  box-shadow: inset 0 0 0 1px rgba(212, 171, 55, 0.25);
}

/* Footer / product ad (frosted card feel) */
footer {
  width: 100%;
  padding: 2rem 1rem 3rem;
  display: grid;
  place-items: center;
  background: linear-gradient(to top, rgba(0,0,0,0.45), rgba(0,0,0,0.25));
  color: var(--text);
  margin-top: 2rem;
  position: relative;
  z-index: 1;
}

.product-ad {
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: .6rem;
  width: min(100%, 520px);
  padding: .75rem;
  border-radius: 14px;
  background: rgba(255, 255, 255, 0.08);
  border: 1px solid rgba(255, 255, 255, 0.22);
  backdrop-filter: blur(6px);
  -webkit-backdrop-filter: blur(6px);
  text-align: center;
}

.product-ad h3 {
  font-size: 1.05rem;
  color: var(--gold);
  font-weight: 600;
  letter-spacing: .5px;
}

.product-ad a {
  display: inline;            /* keep HTML's <p> inside valid; render inline button-like */
  padding: .55rem .95rem;
  border-radius: 6px;
  color: #111;
  text-decoration: none;
  background: linear-gradient(#ffd36b, #f5c85a);
  border: 1px solid rgba(0,0,0,.25);
  transition: transform .2s ease;
}
.product-ad a:hover { transform: translateY(-1px); }
.product-ad a:focus { outline: 3px solid var(--gold); outline-offset: 2px; }

/* Ensure the inside <p> of the anchor remains inline (HTML quirk) */
.product-ad a p { display: inline; margin: 0; color: #111; font-weight: 600; }

/* Footer text */
footer p {
  margin-top: .75rem;
  font-size: .85rem;
  color: var(--muted);
  opacity: .95;
}

/* Responsive tweaks (mobile-first) */
@media (min-width: 768px) {
  main { padding: 2.5rem 2rem; }
  .image-frame { width: min(70vw, 980px); }
  footer { padding: 2.5rem 0 3rem; }
}
