/* CSS - Endless Hallway Night hack aesthetic (mobile-first, single stylesheet) */

/* Reset & base */
*, *::before, *::after { box-sizing: border-box; margin: 0; padding: 0; }

:root {
  --bg-top: #ffffff;
  --bg-mid: #f4f6fb;
  --bg-bot: #e9eef6;
  --silver: #cbd5e1;
  --silver-dark: #98a2b3;
  --text: #0b1320;
  --accent: #5bd3ff;
  --glass: rgba(255, 255, 255, 0.65);
  --shadow: 0 8px 28px rgba(0,0,0,.08);
}

html, body { height: 100%; }

body {
  font-family: ui-sans-serif, system-ui, -apple-system, "Segoe UI", Roboto;
  color: var(--text);
  background: linear-gradient(135deg, var(--bg-top) 0%, var(--bg-mid) 40%, var(--bg-bot) 100%);
  min-height: 100vh;
  -webkit-font-smoothing: antialiased;
  text-rendering: optimizeLegibility;
}

/* Layout: mobile-first hero feel */
main {
  position: relative;
  display: flex;
  align-items: center;
  justify-content: center;
  padding: 48px 16px 12px;
  min-height: 60vh;
  z-index: 0;
}
main::before {
  content: "";
  position: absolute;
  left: 50%;
  top: 12%;
  width: 60%;
  height: 60%;
  transform: translateX(-50%);
  border-radius: 50%;
  background: radial-gradient(circle at center, rgba(91,211,255,.25), transparent 60%);
  filter: blur(44px);
  pointer-events: none;
  z-index: 0;
}

/* Frosted glass frame around the image (hero) */
.image-frame {
  position: relative;
  z-index: 1;
  width: min(720px, 92vw);
  aspect-ratio: 16 / 9;
  border-radius: 20px;
  overflow: hidden;
  background: rgba(255, 255, 255, 0.65);
  border: 1px solid rgba(214, 226, 240, 0.95);
  backdrop-filter: blur(8px);
  -webkit-backdrop-filter: blur(8px);
  box-shadow: var(--shadow);
  display: flex;
  align-items: center;
  justify-content: center;
}
.image-frame img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  display: block;
  /* subtle silver tint to reinforce hacker vibe */
  filter: hue-rotate(-2deg) saturate(0.98);
}

/* Footer with featured product CTA (prominent CTA buttons) */
footer {
  padding: 18px 16px;
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 14px;
  color: #495267;
  margin-top: 6px;
}

.product-ad {
  width: min(720px, 92%);
  background: rgba(255, 255, 255, 0.66);
  border: 1px solid rgba(214, 226, 240, 0.95);
  border-radius: 12px;
  padding: 14px 16px;
  text-align: center;
  backdrop-filter: blur(4px);
  -webkit-backdrop-filter: blur(4px);
  box-shadow: var(--shadow);
}

.product-ad h3 {
  font-size: 1.05rem;
  margin-bottom: 6px;
  color: #1f2a44;
}
.product-ad a {
  text-decoration: none;
}
.product-ad a:focus-visible { outline: none; }

/* CTA style (prominent, accessible) */
.product-ad a { display: inline-flex; align-items: center; justify-content: center; padding: 0; }
.product-ad p {
  margin: 0;
  padding: 12px 20px;
  border-radius: 999px;
  border: 1px solid #cbd5e1;
  background: linear-gradient(#f7f9fb, #e3eaf5);
  color: #0b1020;
  font-weight: 700;
  letter-spacing: .2px;
  transition: transform .15s ease, box-shadow .15s ease;
}
.product-ad a:focus-visible p {
  outline: 3px solid #93c5fd;
  outline-offset: 2px;
}
.product-ad a:hover p {
  transform: translateY(-1px);
  box-shadow: 0 6px 14px rgba(0,0,0,.08);
}

/* Text inside footer (copyright) */
footer > p {
  font-size: .95rem;
  opacity: .9;
}

/* Accessibility improvements: reduced motion */
@media (prefers-reduced-motion: reduce) {
  * { animation: none !important; transition: none !important; }
  .image-frame { box-shadow: none; }
  main::before { display: none; }
}
  
/* Responsive tweaks: larger screens get a bit more air and a stronger glow */
@media (min-width: 768px) {
  main { padding: 64px 28px; }
  .image-frame { width: min(860px, 88vw); border-radius: 24px; }
  footer { padding: 22px 16px; }
}