/* Reset & base */
*, *::before, *::after { box-sizing: border-box; }
html, body { margin: 0; padding: 0; }

/* Palette & texture (indigo paper texture with hacker-yellow accents) */
:root {
  --bg-deep: #0b1030;
  --bg-deeper: #070821;
  --ink: #111;
  --yellow: #ffd400;
  --yellow-soft: #fff08a;
  --glass: rgba(255, 255, 255, 0.08);
  --glass-border: rgba(255, 255, 255, 0.18);
  --text: #e8e27a;
}

body {
  min-height: 100vh;
  color: #f8f8d0;
  background-color: var(--bg-deep);
  /* Indigo paper texture: layered gradients + subtle grain */
  background-image:
    radial-gradient(circle at 20px 20px, rgba(255,255,255,0.08) 2px, transparent 2px),
    radial-gradient(circle at 60px 80px, rgba(255, 214, 0, 0.06) 2px, transparent 2px),
    linear-gradient(180deg, rgba(14,12,40,0.95), rgba(5,6,18,0.98) 60%, rgba(3,4,12,1) 100%);
  background-size: 120px 120px, 180px 120px, auto;
  background-blend-mode: overlay;
  font-family: system-ui, -apple-system, "Segoe UI", Roboto, Arial, sans-serif;
  display: grid;
  grid-template-rows: auto 1fr auto;
}

/* Subtle glow overlay for cyberpunk vibe */
body::after {
  content: "";
  position: fixed; inset: 0;
  pointer-events: none;
  background: radial-gradient(circle at 50% 0%, rgba(255, 212, 0, 0.15), transparent 40%),
              radial-gradient(circle at 50% 100%, rgba(0,0,0,0.25), transparent 40%);
  mix-blend-mode: screen;
  opacity: 0.6;
}

/* Layout container (mobile-first) */
main {
  width: min(1100px, 92vw);
  margin: 0 auto;
  padding: 1rem 0.5rem;
}

/* Frosted glass image frame (hero) */
.image-frame {
  position: relative;
  border-radius: 20px;
  overflow: hidden;
  border: 1px solid rgba(255, 255, 255, 0.25);
  background: rgba(0,0,0,0.25);
  box-shadow: 0 20px 60px rgba(0,0,0,0.55);
  backdrop-filter: saturate(0.95) blur(2px);
  -webkit-backdrop-filter: saturate(0.95) blur(2px);
}

/* Image fills frame */
.image-frame img {
  display: block;
  width: 100%;
  height: auto;
  max-height: 60vh;
  object-fit: cover;
  vertical-align: middle;
  filter: saturate(0.95);
}

/* Subtle foreground fade for added depth */
.image-frame::before {
  content: "";
  position: absolute; inset: 0;
  background: linear-gradient(to bottom, rgba(0,0,0,0) 0%, rgba(0,0,0,0.28) 60%, rgba(0,0,0,0.56) 100%);
  pointer-events: none;
}

/* Floating frosted caption (optional if text is added) */
.hero-caption {
  position: absolute; left: 1rem; right: 1rem; bottom: 1rem;
  padding: 1rem;
  border-radius: 12px;
  background: rgba(10, 10, 22, 0.66);
  backdrop-filter: blur(6px);
  -webkit-backdrop-filter: blur(6px);
  border: 1px solid rgba(255,255,255,0.25);
  color: #f6f0a8;
  display: flex; flex-direction: column; gap: .5rem;
}

/* Trendy heading styling (optional without HTML) */
h1, h2, h3 { margin: 0 0 .5rem; color: #fff; text-shadow: 0 0 8px rgba(255, 212, 0, 0.8); }

/* CTA styling (prominent) */
.btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  padding: .85rem 1.25rem;
  border-radius: 8px;
  border: none;
  cursor: pointer;
  font-weight: 700;
  font-size: 1rem;
  color: #111;
  background: linear-gradient(135deg, #ffe24d 0%, #ffd000 60%, #f4c300 100%);
  box-shadow: 0 4px 0 rgba(0,0,0,0.25), inset 0 1px 0 rgba(255,255,255,0.8);
  transition: transform .15s ease, box-shadow .15s ease;
}
.btn:hover { transform: translateY(-1px); box-shadow: 0 6px 12px rgba(0,0,0,0.35); }
.btn:focus-visible {
  outline: 3px solid var(--yellow);
  outline-offset: 2px;
}
.btn.secondary {
  background: rgba(255,255,255,0.14);
  color: var(--yellow);
  border: 1px solid rgba(255,255,255,0.25);
  box-shadow: inset 0 1px 0 rgba(255,255,255,0.3);
}
a.btn { text-decoration: none; }

/* Footer with frosted glass feel and neon-yellow accents */
footer {
  padding: 1.25rem 1rem;
  color: #d9d16b;
  background: rgba(5, 8, 20, 0.65);
  border-top: 1px solid rgba(255,255,255,0.15);
  backdrop-filter: blur(6px);
  -webkit-backdrop-filter: blur(6px);
}
.product-ad {
  display: flex; align-items: center; gap: .75rem;
  padding: .6rem 0.75rem; border-radius: 10px;
  background: rgba(8,8,28,0.6);
  border: 1px solid rgba(255,255,255,0.18);
}
.product-ad h3 { font-size: .95rem; color: var(--yellow); margin: 0; }
.product-ad p { margin: 0; color: var(--yellow); font-weight: 700; }

/* Tiny helper for accessibility: ensure high contrast in small viewports */
@media (prefers-reduced-motion: reduce) {
  .btn { transition: none; }
  body::after { display: none; }
}

/* Responsive tweaks (mobile-first) */
@media (min-width: 720px) {
  main { padding: 1.5rem 0; }
  .image-frame { border-radius: 22px; }
  .image-frame img { max-height: 70vh; }
  .hero-caption { bottom: 1.25rem; left: 1.25rem; right: 1.25rem; padding: 1rem; }
}
@media (min-width: 1024px) {
  main { width: 1100px; }
}