/* Mobile-first, single stylesheet for a hacker-style landing page with frosted glass, yellow noise texture, and accessible focus styles */

/* Light reset and box sizing */
*,
*::before,
*::after {
  box-sizing: border-box;
}
html, body {
  height: 100%;
}
body {
  margin: 0;
  padding: 0;
  color: #fff;
  font-family: ui-sans-serif, system-ui, -apple-system, "Segoe UI", Roboto;
  background-color: #0b0b0b;
  /* Yellow noise texture (subtle cross-hatch) */
  background-image:
    linear-gradient(45deg, rgba(255, 213, 0, 0.10) 25%, transparent 25%),
    linear-gradient(-45deg, rgba(255, 213, 0, 0.10) 25%, transparent 25%),
    linear-gradient(45deg, transparent 75%, rgba(255, 213, 0, 0.08) 75%),
    linear-gradient(-45deg, transparent 75%, rgba(255, 213, 0, 0.08) 75%);
  background-size: 24px 24px;
  background-position: 0 0, 0 12px, 12px -12px, -12px 0px;
  min-height: 100vh;
  -webkit-font-smoothing: antialiased;
  text-rendering: optimizeLegibility;
  /* place content above the texture overlay if needed */
  position: relative;
}

/* Frosted glass helper (applied to sections) */
.glass {
  backdrop-filter: blur(6px) saturate(120%);
  background: rgba(0, 0, 0, 0.28);
  border: 1px solid rgba(255, 255, 255, 0.25);
  border-radius: 12px;
  box-shadow: 0 8px 28px rgba(0,0,0,.45);
}

/* Page layout */
header {
  text-align: center;
  padding: 2rem 1rem 1rem;
  background: rgba(0, 0, 0, 0.25);
  border-bottom: 1px solid rgba(255, 255, 255, 0.15);
  position: sticky;
  top: 0;
  z-index: 4;
  backdrop-filter: blur(6px);
}

header h1 {
  margin: 0;
  font-size: clamp(1.6rem, 3.5vw + 1rem, 3rem);
  font-weight: 700;
  letter-spacing: .5px;
  text-shadow: 0 0 8px rgba(0, 255, 255, .55);
  line-height: 1.12;
}

/* Main area */
main {
  display: grid;
  place-items: center;
  padding: 1.5rem 1rem;
  position: relative;
  z-index: 1;
  flex: 1 0 auto;
}

.image-frame {
  width: min(92%, 720px);
  border: 1px solid rgba(255, 255, 255, 0.25);
  border-radius: 14px;
  overflow: hidden;
  background: rgba(0, 0, 0, 0.25);
  padding: 6px;
  backdrop-filter: blur(6px);
  box-shadow: 0 20px 40px rgba(0,0,0,0.5);
}
.image-frame img {
  display: block;
  width: 100%;
  height: auto;
  border-radius: 8px;
}

/* Footer with featured product card (CTA) */
footer {
  padding: 1rem;
  display: grid;
  place-items: center;
  width: 100%;
  margin-top: 1rem;
  z-index: 2;
  position: relative;
}

.product-ad {
  display: flex;
  flex-direction: column;
  gap: .5rem;
  padding: .9rem 1rem;
  width: min(92%, 680px);
  border-radius: 12px;
  border: 1px solid rgba(255, 255, 255, 0.25);
  background: rgba(0, 0, 0, 0.28);
  backdrop-filter: blur(8px) saturate(120%);
  box-shadow: 0 8px 28px rgba(0,0,0,0.4);
}
.product-ad h3 {
  margin: 0;
  font-size: 1.05rem;
}
.product-ad a {
  display: inline-block;
  padding: .65rem 1rem;
  border-radius: 999px;
  text-decoration: none;
  color: #fff;
  border: 1px solid rgba(255, 255, 255, 0.7);
  background: rgba(0, 0, 0, 0.25);
  transition: transform .2s ease, box-shadow .2s ease;
}
.product-ad a:hover {
  transform: translateY(-1px);
  box-shadow: 0 6px 14px rgba(0,0,0,0.25);
}
.product-ad a:focus-visible {
  outline: 3px solid #00e5ff;
  outline-offset: 2px;
  box-shadow: 0 0 0 6px rgba(0,0,0,.15);
}
footer p {
  text-align: center;
  margin: 0.75rem 0 0;
  color: rgba(255, 255, 255, 0.8);
  font-size: 0.95rem;
}

/* Keyboard focus for all interactive elements for accessibility */
a:focus-visible,
button:focus-visible,
input:focus-visible {
  outline: 3px solid #00e5ff;
  outline-offset: 2px;
  border-radius: 4px;
}

/* Responsive adjustments */
@media (min-width: 700px) {
  header {
    padding: 2.25rem 2rem 1.25rem;
  }
  main {
    padding: 2.5rem 2rem;
  }
  .product-ad {
    flex-direction: row;
    align-items: center;
    justify-content: space-between;
  }
}
