/* Hacker-Cyberpunk Landing: CSS (single stylesheet) */

/* Lightweight reset */
*, *::before, *::after { box-sizing: border-box; }
html, body { margin: 0; padding: 0; height: 100%; }
:root {
  --bg: #0b0d10;
  --bg2: #1a1a1a;
  --card: rgba(255,255,255,.08);
  --card-border: rgba(255,255,255,.22);
  --text: #eaeaea;
  --muted: #bdbdbd;
  --accent: #ff8a00;
  --accent-soft: rgba(255,138,0,.25);
  --glow: 0 6px 20px rgba(255,138,0,.65);
}
html, body { font-family: system-ui, -apple-system, "Segoe UI", Roboto, Arial; background: #0f0f12; color: var(--text); }

/* Carbon fiber background (gray, subtle micro-weave) */
body {
  background-color: var(--bg);
  background-image:
    linear-gradient(135deg, rgba(0,0,0,.25) 25%, rgba(255,255,255,.04) 25%),
    linear-gradient(225deg, rgba(0,0,0,.25) 25%, rgba(255,255,255,.04) 25%),
    linear-gradient(45deg, rgba(0,0,0,.25) 25%, rgba(255,255,255,.04) 25%);
  background-size: 28px 28px, 28px 28px, 28px 28px;
  background-position: 0 0, 14px 7px, -7px -7px;
  background-repeat: repeat;
  min-height: 100%;
  color: var(--text);
  -webkit-font-smoothing: antialiased;
  -moz-osx-font-smoothing: grayscale;
}

/* Layout: mobile-first */
main {
  display: grid;
  place-items: center;
  padding: 4rem 1rem 2rem;
  min-height: calc(100vh - 140px);
}

.image-frame {
  width: min(680px, 92%);
  aspect-ratio: 16 / 9;
  border-radius: 20px;
  padding: 0;
  background: rgba(255,255,255,.08);
  border: 1px solid rgba(255,255,255,.22);
  backdrop-filter: blur(8px);
  -webkit-backdrop-filter: blur(8px);
  box-shadow: 0 16px 40px rgba(0,0,0,.5);
  overflow: hidden;
  display: block;
}
.image-frame img {
  width: 100%; height: 100%; object-fit: cover; display: block;
  filter: saturate(1.05);
  transform: scale(1);
  transition: transform .4s ease;
}
.image-frame:hover img { transform: scale(1.02); }

/* Subtle neon glow around the frame for cyberpunk vibe */
.image-frame::after {
  content: "";
  position: absolute;
  inset: -2px;
  border-radius: 22px;
  pointer-events: none;
  background: radial-gradient(circle at 50% 0%, rgba(255,138,0,.25), transparent 40%),
              radial-gradient(circle at 50% 100%, rgba(255,138,0,.15), transparent 40%);
  mix-blend-mode: screen;
  opacity: 0.8;
}
.image-frame { position: relative; }

/* Frosted glass card around image (soft lens effect) */
.image-frame {
  /* Ensure glass look sits nicely on dark background on all devices */
  background: rgba(255,255,255,.08);
  border: 1px solid rgba(255,255,255,.28);
  backdrop-filter: blur(6px);
  -webkit-backdrop-filter: blur(6px);
  padding: 0;
}

/* Footer + ad card styling (prominent CTA) */
footer {
  text-align: center;
  padding: 1.5rem 1rem;
  color: #d8d8d8;
  background: rgba(0,0,0,.25);
}
.product-ad {
  display: inline-block;
  padding: .6rem .95rem;
  border-radius: 12px;
  background: rgba(20,20,20,.5);
  border: 1px solid rgba(255,255,255,.18);
  margin-bottom: .75rem;
  backdrop-filter: blur(4px);
  -webkit-backdrop-filter: blur(4px);
}
.product-ad h3 {
  margin: 0 0 .35rem;
  font-size: 1.05rem;
  color: #ffbd4a;
  line-height: 1.2;
}
.product-ad a {
  text-decoration: none;
  display: inline-block;
  padding: .65rem 1rem;
  background: var(--accent);
  color: #111;
  border-radius: 8px;
  font-weight: 700;
  border: 1px solid rgba(0,0,0,.15);
  transition: transform .2s ease, box-shadow .2s ease;
}
.product-ad a:hover { transform: translateY(-1px); box-shadow: var(--glow); }
.product-ad a:focus-visible {
  outline: 3px solid #ffd79f;
  outline-offset: 2px;
}
.product-ad a p { margin: 0; color: #1b1b1b; }

/* Global link styling (accent color) */
a { color: var(--accent); text-decoration: none; }

/* Focus styles for accessibility on interactive elements */
a:focus-visible {
  outline: 3px solid #ffd29f;
  outline-offset: 2px;
  border-radius: 6px;
}

/* Small-screen tweaks and responsive adjustments */
@media (min-width: 768px) {
  main { padding: 6rem 2rem 3rem; }
  .image-frame { width: 64%; }
  footer { padding: 2rem 0; }
  .product-ad h3 { font-size: 1.15rem; }
}
@media (min-width: 1024px) {
  .image-frame { width: 56%; }
}
