/* Mobile-first, single stylesheet for hacker-cyberpunk landing */

/* Light reset and global vars */
:root {
  --indigo: #4b6fff;
  --indigo-dark: #3248d1;
  --text: #e9eaff;
  --glass: rgba(255, 255, 255, 0.08);
  --glass-border: rgba(255, 255, 255, 0.25);
  --brown-1: #4b2c0e;
  --brown-2: #7a4f2b;
  --brown-3: #3e2a12;
  --shadow: 0 8px 28px rgba(0,0,0,.4);
}
*,
*::before,
*::after { box-sizing: border-box; }

html, body { height: 100%; }
body {
  margin: 0;
  padding: 0;
  color: var(--text);
  font-family: system-ui, -apple-system, "Segoe UI", Roboto, "Helvetica Neue", Arial;
  line-height: 1.4;
  background-color: #1b120c;
  /* brown crosshatch background */
  background-image:
    linear-gradient(45deg, rgba(0,0,0,.25) 25%, transparent 25%),
    linear-gradient(-45deg, rgba(0,0,0,.25) 25%, transparent 25%),
    repeating-linear-gradient(45deg, rgba(123, 69, 0, .5) 0 8px, transparent 8px 16px),
    repeating-linear-gradient(-45deg, rgba(93, 71, 0, .5) 0 8px, transparent 8px 16px);
  background-size: 60px 60px, 60px 60px, 120px 120px, 120px 120px;
  background-attachment: fixed;
  -webkit-font-smoothing: antialiased;
  -moz-osx-font-smoothing: grayscale;
  text-rendering: optimizeLegibility;
  min-height: 100vh;
  display: grid;
  grid-template-rows: 1fr auto;
  scroll-behavior: smooth;
}

/* Layout */
main {
  width: 100%;
  display: grid;
  place-items: center;
  padding: 2rem 1rem;
}
.image-frame {
  width: 100%;
  max-width: 900px;
  aspect-ratio: 16 / 9;
  display: grid;
  align-items: center;
  justify-items: center;
  padding: 1rem;
  border-radius: 18px;
  background: rgba(255,255,255,0.08);
  border: 1px solid rgba(255,255,255,0.25);
  backdrop-filter: blur(6px);
  -webkit-backdrop-filter: blur(6px);
  box-shadow: var(--shadow);
  overflow: hidden;
}
.image-frame img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  display: block;
  border-radius: 12px;
}

/* Footer with glassy CTA */
footer {
  padding: 1.5rem 1rem;
  text-align: center;
  color: #e9eaff;
  background: transparent;
}

/* Glassy product ad CTA */
.product-ad {
  display: inline-block;
  padding: 0.6rem 0.9rem;
  border-radius: 999px;
  background: rgba(26, 12, 0, 0.65);
  border: 1px solid rgba(255,255,255,.25);
  backdrop-filter: blur(4px);
  -webkit-backdrop-filter: blur(4px);
  margin-bottom: 0.75rem;
}
.product-ad h3 {
  font-size: 0.95rem;
  font-weight: 700;
  margin: 0 0 0.25rem 0;
  color: #eae8ff;
  display: inline-flex;
  align-items: center;
  gap: 0.5rem;
}
.product-ad p { margin: 0; }

.product-ad a {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  padding: 0.75rem 1.25rem;
  border-radius: 8px;
  background: var(--indigo);
  color: #fff;
  text-decoration: none;
  font-weight: 700;
  border: 1px solid rgba(255,255,255,.25);
  box-shadow: 0 6px 14px rgba(0,0,0,.25);
}
.product-ad a:hover { background: var(--indigo-dark); transform: translateY(-1px); }
.product-ad a:focus { outline: none; }
.product-ad a:focus-visible {
  outline: 2px solid #a6b4ff;
  outline-offset: 2px;
}
.product-ad a:active { transform: translateY(0); }

/* Ensure anchor text inside <a><p> stays tidy if used as button label */
.product-ad a p { margin: 0; padding: 0; }

/* Accessibility: high-contrast defaults for focusable elements */
a, button {
  color: inherit;
  outline: none;
}
a:focus-visible, button:focus-visible {
  outline: 2px solid #a6b4ff;
  outline-offset: 2px;
  border-radius: 4px;
}

/* Responsive: larger viewports brighten and widen the hero slightly */
@media (min-width: 768px) {
  main { padding: 3rem 2rem; }
  .image-frame { padding: 1.25rem; border-radius: 20px; }
  .image-frame img { border-radius: 14px; }
  footer { padding: 2rem 1rem; }
  .product-ad { font-size: 1rem; }
}

/* Subtle dim on small screens for focus context (optional aesthetic) */
@media (hover: hover) {
  .image-frame:hover { filter: saturate(1.05); }
}