/* Reset and base */
*, *::before, *::after { box-sizing: border-box; }
html, body { margin: 0; padding: 0; }
html { font-family: system-ui, -apple-system, "Segoe UI", Roboto, Inter, Arial; }
body {
  min-height: 100dvh;
  color: #e9e9f0;
  background-color: #0a0a12;
  /* violet circuit-board background (layered gradients to feel hacker-y) */
  background-image:
    linear-gradient(135deg, rgba(124,58,237,.22) 0 1px, transparent 1px),
    linear-gradient(45deg, rgba(124,58,237,.20) 0 1px, transparent 1px),
    radial-gradient(circle at 20% 0%, rgba(124,58,237,.25), transparent 40%),
    radial-gradient(circle at 80% 100%, rgba(80,80,140,.15), transparent 40%);
  background-size: 20px 20px, 20px 20px, 100% 100%, 100% 100%;
  background-blend-mode: overlay, overlay, normal, normal;
  -webkit-font-smoothing: antialiased;
  text-rendering: optimizeLegibility;
}

/* Theme tokens (silver and violet/cyberpunk) */
:root {
  --violet: #7f3aff;
  --violet-dark: #4b1f7a;
  --silver: #cbd5e1;
  --glass: rgba(255, 255, 255, 0.15);
  --glass-border: rgba(255, 255, 255, 0.32);
  --edge: rgba(255, 255, 255, 0.45);
  --shadow: 0 12px 28px rgba(0,0,0,.5);
  --radius: 14px;
  --radius-sm: 10px;
  --txt: #eaeaf0;
}

*,
*::before,
*::after { box-sizing: border-box; }

a { color: inherit; text-decoration: none; }

/* Layout */
main {
  display: grid;
  justify-items: center;
  padding: 4rem 1rem;
}

/* Frosted glass card around the image (hero) */
.image-frame {
  width: min(92vw, 860px);
  aspect-ratio: 16 / 9;
  border-radius: var(--radius);
  overflow: hidden;
  border: 1px solid rgba(255,255,255,.28);
  background: rgba(255,255,255,.08);
  box-shadow: inset 0 1px 0 rgba(255,255,255,.25),
              0 20px 40px rgba(0,0,0,.55);
  backdrop-filter: saturate(1.2) blur(2px);
  position: relative;
}

/* Image inside frame */
.image-frame img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  display: block;
  filter: saturate(1.05);
}

/* Subtle circuit glow overlay on the frame */
.image-frame::before {
  content: "";
  position: absolute;
  inset: 0;
  background: radial-gradient(circle at 20% 0%, rgba(124,58,237,.25), transparent 40%),
              radial-gradient(circle at 80% 100%, rgba(0,0,0,.25), transparent 40%);
  mix-blend-mode: overlay;
  pointer-events: none;
}

/* Hero CTA area (prominent, accessible) - kept generic for page flow */
.hero-cta {
  display: flex;
  gap: 12px;
  justify-content: center;
  align-items: center;
  margin-top: 14px;
  flex-wrap: wrap;
}

/* Primary CTA button (vibrant, hacker-style) */
.btn {
  appearance: none;
  border: 1px solid rgba(255,255,255,.42);
  color: #fff;
  padding: 12px 18px;
  border-radius: 999px;
  font-weight: 700;
  text-transform: uppercase;
  letter-spacing: .4px;
  background: linear-gradient(135deg, rgba(124,58,237,.55), rgba(72,62,133,.65));
  box-shadow: 0 6px 16px rgba(0,0,0,.35);
  cursor: pointer;
  transition: transform .15s ease, box-shadow .2s ease;
}
.btn:focus-visible {
  outline: 3px solid #fff;
  outline-offset: 2px;
}
.btn:hover { transform: translateY(-1px); box-shadow: 0 8px 20px rgba(0,0,0,.4); }

.btn.secondary {
  background: rgba(255,255,255,.18);
  border: 1px solid rgba(255,255,255,.38);
  color: #f7f7fb;
}
.btn.secondary:hover { background: rgba(255,255,255,.28); }

/* Ad/footer style with frosted glass feel */
footer {
  width: 100%;
  margin-top: 28px;
  padding: 14px 0;
  color: var(--silver);
  text-align: center;
  background: linear-gradient(to bottom, rgba(0,0,0,.18), rgba(0,0,0,.28));
  border-top: 1px solid rgba(255,255,255,.15);
  backdrop-filter: blur(4px);
}

.product-ad {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 12px;
  width: min(100%, 860px);
  margin: 0 auto;
  padding: 12px 16px;
  border-radius: 12px;
  background: rgba(255,255,255,.08);
  border: 1px solid rgba(255,255,255,.25);
  backdrop-filter: blur(8px);
}
.product-ad h3 {
  margin: 0;
  font-size: 0.95rem;
  display: inline-flex;
  align-items: center;
  gap: 8px;
  color: #ffffff;
}
.product-ad a {
  display: inline-block;
  padding: 10px 14px;
  border-radius: 999px;
  background: linear-gradient(135deg, #1a1030, #2b1740);
  color: #fff;
  font-weight: 700;
  letter-spacing: .4px;
  border: 1px solid rgba(255,255,255,.4);
  transition: transform .2s ease;
}
.product-ad a:hover { transform: translateY(-1px); }

/* Footer text tweaks for accessibility in dark hackerscape */
footer p { margin: 6px 0 0; font-size: .9rem; color: #cfd3de; }

/* Responsive tweaks (mobile-first) */
@media (min-width: 768px) {
  main { padding: 6rem 2rem; }
  .image-frame { width: 860px; }
  .product-ad { margin-top: 16px; }
}
@media (min-width: 1024px) {
  main { padding: 8rem 3rem; }
  .image-frame { width: 1000px; }
}

/* Respect user motion preferences */
@media (prefers-reduced-motion: reduce) {
  * { animation: none !important; transition: none !important; }
}