/* Hacker cyberpunk landing—single stylesheet (mobile-first, accessible, frosted glass) */

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

:root {
  --bg: #0b0f12;
  --panel: rgba(255, 255, 255, 0.08);
  --panel-border: rgba(255, 255, 255, 0.22);
  --green: #39ff14;
  --green-soft: rgba(57, 255, 20, 0.9);
  --text: #e9fbe9;
  --muted: #a6b8a5;
  --shadow: 0 20px 60px rgba(0,0,0,.55);
}

html, body { height: 100%; }

/* Silver low-poly triangles background pattern (SVG data-URI) */
body {
  font-family: Inter, ui-sans-serif, system-ui, -apple-system, "Segoe UI", Roboto, Arial;
  color: var(--text);
  background-color: var(--bg);
  background-image:
    url("data:image/svg+xml;utf8,<svg xmlns='http://www.w3.org/2000/svg' width='100' height='100' viewBox='0,0,100,100'><polygon points='0,0 50,0 0,50' fill='%23cbd2d9'/><polygon points='50,0 100,0 100,50' fill='%23d2d6dd'/><polygon points='0,50 0,100 50,100' fill='%239fb3bd'/><polygon points='100,50 100,100 50,100' fill='%23cbd2d9'/><polygon points='50,0 100,50 50,50' fill='%23aeb6be'/><polygon points='0,0 50,50 0,100' fill='%23d0d6df'/><polygon points='0,50 50,0 50,50' fill='%23b8bec6'/></svg>");
  background-size: 100px 100px;
  background-repeat: repeat;
  line-height: 1.4;
  min-height: 100%;
}

/* Layout: mobile-first hero area + frosted glass framing for image */
main {
  display: grid;
  place-items: center;
  padding: 2rem 1rem;
  min-height: calc(100vh - 180px);
}

.image-frame {
  width: min(92vw, 900px);
  aspect-ratio: 16 / 9;
  border-radius: 20px;
  overflow: hidden;
  background: rgba(255, 255, 255, 0.08);
  border: 1px solid rgba(255, 255, 255, 0.22);
  box-shadow: var(--shadow), inset 0 0 40px rgba(0,0,0,0.15);
  position: relative;
  backdrop-filter: blur(2px) saturate(125%);
}

.image-frame img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  display: block;
  filter: saturate(0.95) brightness(0.98);
}

.image-frame::after {
  content: "";
  position: absolute;
  inset: 0;
  background: linear-gradient(135deg, rgba(0,255,140,0.08), rgba(0,0,0,0.25));
  mix-blend-mode: overlay;
  pointer-events: none;
}

/* Footer / CTA area (prominent CTA buttons) */
footer {
  padding: 1.5rem 1rem;
  text-align: center;
  background: rgba(8,8,12,0.72);
  border-top: 1px solid rgba(255,255,255,0.15);
}

.product-ad {
  display: inline-block;
  padding: 0.5rem;
  border-radius: 12px;
  background: rgba(0,0,0,0.4);
  backdrop-filter: blur(6px);
  border: 1px solid rgba(255,255,255,0.22);
  margin-bottom: 0.75rem;
}

.product-ad h3 {
  font-size: 0.95rem;
  margin-bottom: 0.25rem;
  color: #d7f5d3;
  letter-spacing: .5px;
}

.product-ad a { text-decoration: none; }

.product-ad a p {
  margin: 0;
  padding: 0.75rem 1.1rem;
  border-radius: 8px;
  background: linear-gradient(135deg, rgba(45,255,150,0.95), rgba(0,180,90,0.95));
  color: #041b0f;
  font-weight: 700;
  display: inline-block;
  border: 1px solid rgba(0,0,0,0.2);
}

/* Footer text color */
footer p {
  color: #cbdccf;
  font-size: 0.85rem;
  margin-top: 0.75rem;
}

/* Focus styles for accessibility */
a:focus-visible, button:focus-visible {
  outline: 3px solid rgba(57, 255, 20, 0.95);
  outline-offset: 2px;
}

/* Hover states for CTA */
.product-ad a p:hover {
  transform: translateY(-1px);
  box-shadow: 0 6px 14px rgba(0,0,0,.25);
}

/* Ensure keyboard navigation consistency */
a, button { -webkit-tap-highlight-color: transparent; }

/* Responsive tweaks */
@media (min-width: 640px) {
  main { padding: 3rem 2rem; }
  .image-frame { width: min(78vw, 1000px); border-radius: 22px; }
  .product-ad h3 { font-size: 1.0rem; }
}

@media (min-width: 1024px) {
  main { padding: 4rem 3rem; }
  .image-frame { width: min(70vw, 1100px); }
  footer { padding: 2rem 0; }
}