/* Survival Landing: Cyberpunk Frosted Glass - single CSS (mobile-first) */

/* Global reset */
*, *::before, *::after { box-sizing: border-box; margin: 0; padding: 0; }

/* Color tokens for accessibility and hacker aesthetic */
:root {
  --gold: #ffd166;
  --gold-dark: #d4ad2d;
  --bg-red-1: #b3151a;
  --bg-red-2: #4a0000;
  --glass: rgba(255, 255, 255, 0.15);
  --glass-border: rgba(255, 255, 255, 0.35);
  --text: #f7f7f7;
  --shadow: 0 8px 24px rgba(0,0,0,.25);
  --focus: 0 0 0 3px rgba(255, 215, 0, 0.9);
}

/* Mobile-first base: red carbon fiber background with subtle glow */
html, body { height: 100%; }
body {
  min-height: 100vh;
  font-family: Inter, system-ui, -apple-system, "Segoe UI", Roboto, Arial, sans-serif;
  color: var(--text);
  line-height: 1.5;
  background-color: #000;
  /* Red carbon fiber vibe using layered gradients + weave-like pattern */
  background-image:
    linear-gradient(135deg, rgba(0,0,0,.25) 25%, transparent 25%),
    linear-gradient(45deg, rgba(0,0,0,.25) 25%, transparent 25%),
    linear-gradient(#b3151a, #4a0000);
  background-size: 32px 32px, 32px 32px, 100% 100%;
  background-position: 0 0, 16px 16px, 0 0;
  background-blend-mode: overlay;
  -webkit-font-smoothing: antialiased;
  -moz-osx-font-smoothing: grayscale;
  /* Subtle outer glow for hacker vibe */
  text-shadow: 0 0 0 transparent;
}

/* Page layout */
main {
  display: grid;
  place-items: center;
  padding: 2rem 1rem;
  min-height: calc(100vh - 160px);
}

/* Image frame with frosted glass overlay to evoke glassy hacker HUD */
.image-frame {
  width: min(100%, 860px);
  aspect-ratio: 16 / 9;
  border-radius: 18px;
  overflow: hidden;
  position: relative;
  background: rgba(255, 255, 255, 0.05);
  border: 1px solid rgba(255, 255, 255, 0.15);
  box-shadow: var(--shadow);
}
.image-frame img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  display: block;
  filter: saturate(1.05) contrast(1.05);
}

/* Frosted glass overlay on the frame to reinforce the theme */
.image-frame::after {
  content: "";
  position: absolute;
  inset: 0;
  background: rgba(255, 255, 255, 0.08);
  backdrop-filter: blur(6px) saturate(1.2);
  -webkit-backdrop-filter: blur(6px) saturate(1.2);
  pointer-events: none;
  border: 1px solid rgba(255, 255, 255, 0.25);
}

/* Footer with featured product (CTA) styled as prominent button */
footer {
  padding: 1.5rem;
  text-align: center;
  color: rgba(255, 255, 255, 0.9);
  background: transparent;
}

.product-ad {
  display: inline-block;
  padding: 0.9rem 1.25rem;
  border-radius: 12px;
  background: rgba(255, 255, 255, 0.08);
  border: 1px solid rgba(255, 255, 255, 0.25);
  backdrop-filter: blur(8px);
  -webkit-backdrop-filter: blur(8px);
  box-shadow: 0 6px 20px rgba(0,0,0,0.25);
  margin: 0.6rem 0;
}
.product-ad h3 {
  font-size: 1.05rem;
  color: var(--gold);
  text-shadow: 0 0 6px rgba(212, 175, 55, 0.6);
  margin-bottom: 0.4rem;
}
.product-ad a {
  display: inline-block;
  padding: 0.75rem 1.15rem;
  border-radius: 10px;
  background: linear-gradient(#ffd166, #e3a70a);
  color: #111;
  text-decoration: none;
  font-weight: 700;
  border: 1px solid rgba(0,0,0,.25);
  transition: transform .15s ease, box-shadow .15s ease;
}
.product-ad a:hover {
  transform: translateY(-1px);
  box-shadow: 0 6px 14px rgba(0,0,0,.25);
}
.product-ad a:focus-visible {
  outline: none;
  box-shadow: var(--focus);
}
.product-ad a p { margin: 0; }

/* Small footer text to hint copyright, accessible color */
footer p {
  font-size: .85rem;
  opacity: .9;
  margin-top: .6rem;
}

/* Accessibility: ensure focus styles for interactive elements beyond the CTA */
a:focus-visible {
  outline: none;
  box-shadow: var(--focus);
}

/* Responsive tweaks: larger screens get a bit more breathing room and rounded frame */
@media (min-width: 768px) {
  main { padding: 3rem; min-height: calc(100vh - 180px); }
  .image-frame { width: min(90%, 860px); border-radius: 20px; }
  .product-ad { padding: 1rem 1.5rem; }
}
