/* Neon Hacker Landing: mobile-first, single stylesheet */

/* Reset & root vars */
*,
*::before,
*::after { box-sizing: border-box; }
:root {
  --maroon: #4a0f12;
  --crimson: #b60015;
  --blood: #a4001a;
  --neon: #ff2a2a;
  --glass: rgba(255, 255, 255, 0.14);
  --glass-border: rgba(255, 255, 255, 0.28);
  --text: #f7f7f7;
  --shadow: rgba(0,0,0,.45);
  --blur: 6px;
}

/* Light reset & base */
html, body { height: 100%; }
html { font-family: ui-sans-serif, system-ui, -apple-system, "Segoe UI", Roboto, Arial; }
body {
  margin: 0;
  color: var(--text);
  background-color: var(--maroon);
  /* red zigzag background (two layered chevron patterns) */
  background-image:
    linear-gradient(135deg, rgba(255,0,0,.18) 25%, transparent 25%),
    linear-gradient(315deg, rgba(255,0,0,.18) 25%, transparent 25%);
  background-size: 40px 40px;
  background-position: 0 0, 20px 20px;
  min-height: 100vh;
  display: grid;
  grid-template-rows: auto 1fr auto;
  -webkit-font-smoothing: antialiased;
  -moz-osx-font-smoothing: grayscale;
}

/* Layout containers (mobile-first) */
main {
  display: grid;
  place-items: center;
  padding: 2rem 1rem;
  width: 100%;
}

.image-frame {
  width: 100%;
  max-width: 720px;
  border-radius: 14px;
  overflow: hidden;
  background: rgba(255, 255, 255, 0.08);
  border: 1px solid rgba(255, 255, 255, 0.28);
  backdrop-filter: blur(var(--blur));
  -webkit-backdrop-filter: blur(var(--blur));
  box-shadow: 0 10px 30px rgba(0,0,0,.45);
  padding: 8px;
}

.image-frame img {
  display: block;
  width: 100%;
  height: auto;
  border-radius: 8px;
  image-rendering: auto;
  /* subtle glow to enhance hacker vibe */
  filter: saturate(1.05);
  box-shadow: 0 0 0 rgba(0,0,0,0);
}

/* Footer & product ad (CTA) */
footer {
  padding: 20px 16px;
  text-align: center;
  color: #eaeaea;
  background: rgba(0,0,0,.22);
  border-top: 1px solid rgba(255,255,255,.15);
}

.product-ad {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: .75rem;
  padding: .5rem 1rem;
  border-radius: 999px;
  background: rgba(0,0,0,.28);
  border: 1px solid rgba(255,255,255,.35);
  backdrop-filter: blur(4px);
  -webkit-backdrop-filter: blur(4px);
  box-shadow: 0 6px 14px rgba(0,0,0,.5);
  margin: 0 auto 10px;
  user-select: none;
}

.product-ad h3 { font-size: .95rem; margin: 0; line-height: 1; }

/* CTA button styled as prominent neon red */
.product-ad a {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  padding: .65rem 1.1rem;
  border-radius: 8px;
  text-decoration: none;
  color: #fff;
  background: linear-gradient(135deg, #7f0000 0%, #b30000 100%);
  border: 1px solid rgba(255,255,255,.6);
  box-shadow: 0 0 12px rgba(255,0,0,.65), inset 0 1px 3px rgba(255,255,255,.25);
  transition: transform .15s ease, filter .15s ease;
}
.product-ad a:focus-visible, .product-ad a:focus {
  outline: 3px solid #ffd166;
  outline-offset: 2px;
}
.product-ad a:hover {
  transform: translateY(-1px);
  filter: brightness(1.05);
}

/* Subtle helper text for small screens */
p { margin: 0; }

/* Accessibility: reduced motion */
@media (prefers-reduced-motion: reduce) {
  * { animation: none !important; transition: none !important; }
}

/* Responsive tweaks (tablet/desktop) */
@media (min-width: 640px) {
  main { padding: 3rem 0; min-height: 70vh; }
  .image-frame { padding: 0; }
  .product-ad { font-size: 1.02rem; }
}
