/* CSS for hacker-themed, mobile-first landing page with frosted glass and circuit aesthetic */

/* Light reset */
*, *::before, *::after { box-sizing: border-box; }
html, body { margin: 0; padding: 0; }

/* Color system and background (white circuit-board on purple) */
:root {
  --bg: #1b0a2e;
  --bg-deep: #140726;
  --text: #e9e0ff;
  --muted: #c8baff;
  --surface: rgba(255, 255, 255, 0.08);
  --surface-strong: rgba(255, 255, 255, 0.14);
  --accent: #8a5cff;
  --accent-dark: #5c2bd6;
  --shadow: 0 12px 28px rgba(0, 0, 0, 0.35);
  --focus: 0 0 0 3px rgba(138, 92, 255, 0.65);
  --ring: rgba(138, 92, 255, 0.9);
}

html, body {
  height: 100%;
  color: var(--text);
  background-color: var(--bg);
  /* White circuit-board look: subtle grid + glow lines over purple */
  background-image:
    repeating-linear-gradient(0deg, rgba(255,255,255,0.08) 0 1px, transparent 1px 60px),
    repeating-linear-gradient(90deg, rgba(255,255,255,0.08) 0 1px, transparent 1px 60px),
    radial-gradient(circle at 20px 20px, rgba(255,255,255,0.05), transparent 40px);
  background-size: 60px 60px, 60px 60px, 120px 120px;
  background-position: 0 0, 0 0, 0 0;
  -webkit-font-smoothing: antialiased;
  -moz-osx-font-smoothing: grayscale;
  line-height: 1.5;
}

body { font-family: ui-sans-serif, system-ui, -apple-system, "Segoe UI", Roboto, Arial; }

/* Main layout (mobile-first) */
main {
  display: grid;
  place-items: center;
  padding: 2rem 1rem;
  min-height: calc(100vh - 120px);
}

/* Frosted glass frame around the hero image */
.image-frame {
  width: min(92vw, 720px);
  padding: 0.75rem;
  border-radius: 20px;
  background: var(--surface);
  backdrop-filter: blur(8px);
  -webkit-backdrop-filter: blur(8px);
  border: 1px solid rgba(255, 255, 255, 0.25);
  box-shadow: var(--shadow);
  display: flex;
  align-items: center;
  justify-content: center;
  overflow: hidden;
}

/* The image itself inside the frosted frame */
.image-frame img {
  width: 100%;
  height: auto;
  display: block;
  border-radius: 12px;
  object-fit: cover;
}

/* Footer area with a subtle cyberpunk panel and CTA button */
footer {
  padding: 1.75rem 1rem;
  text-align: center;
  color: var(--text);
  background: rgba(13, 0, 40, 0.3);
  border-top: 1px solid rgba(255,255,255,0.15);
}

/* Ad card styled as a CTA container */
.product-ad {
  display: inline-flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  gap: .6rem;
  padding: .75rem;
  border-radius: 14px;
  width: min(92vw, 640px);
  margin: 0 auto 1rem;
  background: rgba(255, 255, 255, 0.08);
  border: 1px solid rgba(255, 255, 255, 0.25);
}

.product-ad h3 {
  margin: 0;
  font-size: 1.05rem;
  color: #f3e9ff;
  letter-spacing: .3px;
}

.product-ad a {
  text-decoration: none;
  display: inline-block;
  border-radius: 999px;
  padding: .6rem 1rem;
  color: #fff;
  font-weight: 600;
  background: linear-gradient(135deg, #8a5cff 0%, #5c2bd6 100%);
  box-shadow: 0 6px 16px rgba(0,0,0,0.25);
  border: 0;
}
.product-ad a:hover {
  transform: translateY(-1px);
  box-shadow: 0 10px 22px rgba(0,0,0,0.3);
}
.product-ad a:focus-visible {
  outline: none;
  box-shadow: 0 0 0 3px rgba(138, 92, 255, 0.9);
  outline-offset: 2px;
}

/* Footer note styling */
footer p {
  margin: .5rem 0 0;
  color: #d8caff;
  font-size: .9rem;
  opacity: .95;
}

/* Responsive tweaks */
@media (min-width: 768px) {
  main { padding: 4rem 2rem; }
  .image-frame { width: 60%; }
  .product-ad { width: 50%; }
}

@media (min-width: 1024px) {
  :root { --accent: #a28cff; }
  .product-ad a { padding: .8rem 1.25rem; font-size: 1rem; }
  footer { padding-bottom: 2rem; }
}

/* Focus styles for accessibility on interactive elements */
a:focus-visible, button:focus-visible {
  outline: none;
  box-shadow: 0 0 0 3px rgba(138, 92, 255, 0.9);
  border-radius: 6px;
}