/* Hacker-futuristic, violet circuitboard landing page styling (mobile-first) */

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

/* Theme vars (beige on violet cyberpunk) */
:root {
  --bg: #140b2a;
  --bg2: #2a0b4a;
  --beige: #e8d3b1;
  --beige-dark: #d4c39a;
  --text: #f5e6d0;
  --glass: rgba(255,255,255,.12);
  --accent: #8f6cff;
}

html, body { height: 100%; }

/* Global look: violet circuit-board vibe with frosted glass feel */
body {
  margin: 0;
  font-family: system-ui, -apple-system, "Segoe UI", Roboto, Arial;
  color: var(--text);
  background: var(--bg);
  background-image:
    /* subtle board grid lines */
    repeating-linear-gradient(0deg, rgba(255,255,255,.04) 0 1px, transparent 1px 22px),
    repeating-linear-gradient(90deg, rgba(255,255,255,.04) 0 1px, transparent 1px 22px),
    /* violet glow layer */
    linear-gradient(135deg, rgba(128,0,255,.25), rgba(0,0,0,.0) 60%),
    linear-gradient(#1a0a2a, #0b0a18);
  background-blend-mode: overlay, overlay, screen, normal;
  min-height: 100vh;
  display: flex;
  flex-direction: column;
}

/* Layout container (mobile-first) */
main {
  width: min(100%, 1100px);
  margin: 0 auto;
  padding: 2rem 1rem;
  display: block;
  position: relative;
  z-index: 1;
}

/* Hero image frame with frosted-glass overlay */
.image-frame {
  width: 100%;
  border-radius: 18px;
  overflow: hidden;
  position: relative;
  margin: 0 auto;
  isolation: isolate;
  background: rgba(255,255,255,.05);
  border: 1px solid rgba(255,255,255,.25);
}
.image-frame img {
  display: block;
  width: 100%;
  height: auto;
  filter: saturate(1.05);
}
.image-frame::after {
  content: "";
  position: absolute;
  inset: 0;
  background: rgba(255,255,255,.10);
  backdrop-filter: blur(6px);
  -webkit-backdrop-filter: blur(6px);
  border-radius: inherit;
  border: 1px solid rgba(255,255,255,.30);
  pointer-events: none;
  z-index: 0;
}

/* Ensure any foreground content sits above the frosted layer (if added later) */
.main-content { position: relative; z-index: 1; }

/* Footer with a frosted glass card for the ad and a simple copyright line */
footer {
  padding: 1.5rem 1rem;
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 0.75rem;
  margin-top: auto;
  background: linear-gradient(to top, rgba(10,7,20,.9), rgba(10,7,20,.6) 60%, rgba(10,7,20,.0));
}
.product-ad {
  background: rgba(234, 228, 210, .14);
  border: 1px solid rgba(255,255,255,.28);
  border-radius: 12px;
  padding: 1rem;
  text-align: center;
  width: 100%;
  max-width: 420px;
  backdrop-filter: blur(6px);
  -webkit-backdrop-filter: blur(6px);
  box-shadow: 0 8px 24px rgba(0,0,0,.25);
}
.product-ad h3 {
  font-size: 1rem;
  margin-bottom: .5rem;
  color: #fff;
  text-shadow: 0 1px 2px rgba(0,0,0,.25);
}
.product-ad a {
  display: inline-block;
  padding: .75rem 1.1rem;
  border-radius: 8px;
  background: #f0e0bf;
  color: #1a0b24;
  text-decoration: none;
  border: 1px solid rgba(0,0,0,.15);
  font-weight: 700;
}
.product-ad a:hover { transform: translateY(-1px); }
.product-ad a:focus-visible {
  outline: 3px solid #ffd27a;
  outline-offset: 2px;
}
footer p {
  text-align: center;
  color: #e8d0a8;
  font-size: .9rem;
  margin: .25rem 0 0;
}

/* Responsive tweaks */
@media (min-width: 700px) {
  main { padding: 3rem 1rem; }
  .image-frame { border-radius: 22px; }
}
@media (min-width: 900px) {
  footer { padding: 2rem 1rem; }
}
