/* CSS for Cyberpunk-Hacker themed landing (mobile-first, single stylesheet) */

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

:root {
  --bg1: #0a0212;
  --bg2: #2e003a;
  --glass: rgba(255, 255, 255, 0.08);
  --glass-border: rgba(255, 255, 255, 0.25);
  --text: #e9e9e9;
  --muted: #cbd5e1;
  --red: #e50914;
  --red-dark: #b50e14;
  --shadow: 0 8px 28px rgba(0,0,0,0.32);
}

html, body {
  height: 100%;
}

body {
  margin: 0;
  font-family: ui-sans-serif, system-ui, -apple-system, "Segoe UI", Roboto, Inter, Arial;
  color: var(--text);
  line-height: 1.5;
  /* Purple diagonal lines + hacker-friendly glow */
  background-color: #120b1a;
  background-image:
    linear-gradient(135deg, rgba(60,0,90,.95), rgba(20,0,40,.95)),
    repeating-linear-gradient(-45deg, rgba(150,0,180,.25) 0 6px, rgba(0,0,0,0) 6px 12px);
  background-blend-mode: overlay;
  min-height: 100vh;
  -webkit-font-smoothing: antialiased;
  text-rendering: optimizeLegibility;
}

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

/* Image "hero" frame with frosted-glass vibes on the frame itself */
.image-frame {
  width: 100%;
  max-width: 700px;
  aspect-ratio: 16 / 9;
  border-radius: 20px;
  overflow: hidden;
  position: relative;
  border: 1px solid rgba(255,255,255,.25);
  background: rgba(255,255,255,.04);
  box-shadow: 0 8px 40px rgba(0,0,0,.35), inset 0 0 0 rgba(255,255,255,0);
  backdrop-filter: blur(2px);
  -webkit-backdrop-filter: blur(2px);
  transform: translateZ(0);
  /* Subtle neon glow around the frame */
  outline: 1px solid rgba(255, 0, 0, 0.15);
}
.image-frame img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  display: block;
}
.image-frame::after {
  content: "";
  position: absolute;
  inset: 0;
  border-radius: inherit;
  /* glossy overlay to emphasize frosted glass feel on the frame edge */
  background: linear-gradient(to bottom, rgba(0,0,0,0) 0%, rgba(0,0,0,.25) 100%);
  pointer-events: none;
  mix-blend-mode: overlay;
  /* slight inner glow for cyberpunk vibe */
  box-shadow: inset 0 0 40px rgba(255,0,0,.15);
}

/* Footer / product ad - frosted glass panel with red CTA */
footer {
  padding: 2rem 1rem;
  display: grid;
  justify-items: center;
  gap: 1.25rem;
  margin-top: 0.5rem;
}

.product-ad {
  background: var(--glass);
  border: 1px solid var(--glass-border);
  border-radius: 14px;
  padding: 0.75rem 1rem;
  text-align: center;
  max-width: 420px;
  width: 100%;
  backdrop-filter: blur(8px);
  -webkit-backdrop-filter: blur(8px);
  box-shadow: var(--shadow);
}
.product-ad h3 {
  font-size: 1.05rem;
  margin-bottom: .25rem;
}
.product-ad a {
  display: inline-block;
  padding: .6rem 1rem;
  border-radius: 8px;
  text-decoration: none;
  color: #fff;
  background: linear-gradient(135deg, #b31217 0%, #e11d48 60%, #ff3b3b 100%);
  border: 1px solid rgba(0,0,0,.25);
  cursor: pointer;
  transition: transform .2s ease, box-shadow .2s ease;
}
.product-ad a:hover {
  transform: translateY(-1px);
  box-shadow: 0 6px 16px rgba(0,0,0,.45);
}
.product-ad a:focus-visible {
  outline: 3px solid #ffd166;
  outline-offset: 2px;
}
footer p {
  color: var(--muted);
  font-size: .9rem;
  text-align: center;
}

/* Accessibility helpers for focusability on links */
a, button { outline: none; }
a:focus-visible, button:focus-visible {
  outline: 3px solid #ffd166;
  outline-offset: 2px;
  border-radius: 4px;
}

/* Responsive tweaks */
@media (min-width: 768px) {
  main { padding: 3rem 2rem; }
  .image-frame { max-width: 820px; border-radius: 22px; }
  footer { grid-auto-flow: column; justify-content: center; gap: 2rem; padding: 2rem 0; }
}
