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

html, body {
  height: 100%;
}

:root {
  --bg: #f7f7f7;
  --text: #1a1a1a;
  --muted: #555;
  --card: rgba(255, 255, 255, 0.72);
  --card-border: rgba(255, 255, 255, 0.85);
  --gold: #d4af37;
  --gold-dark: #b38900;
  --shadow: 0 8px 28px rgba(0, 0, 0, 0.12);
  --blur: 8px;
}

/* White carbon-fiber-esque background (subtle, accessible) */
body {
  font-family: ui-sans-serif, system-ui, -apple-system, "Segoe UI", Roboto, Inter, Arial;
  color: var(--text);
  background-color: var(--bg);
  /* faint diagonal weave to evoke carbon fiber on white */
  background-image:
    linear-gradient(135deg, rgba(0,0,0,.05) 25%, transparent 25%),
    linear-gradient(225deg, rgba(0,0,0,.05) 25%, transparent 25%),
    linear-gradient(135deg, transparent 75%, rgba(0,0,0,.05) 75%),
    linear-gradient(225deg, transparent 75%, rgba(0,0,0,.05) 75%);
  background-size: 20px 20px;
  background-position: 0 0, 0 0, 0 0, 0 0;
  background-repeat: repeat;
  -webkit-font-smoothing: antialiased;
  -moz-osx-font-smoothing: grayscale;
  margin: 0;
  padding: 0;
}

/* Layout wrapper for a mobile-first approach */
main {
  display: grid;
  place-items: center;
  padding: 2rem 1rem;
  min-height: calc(100vh - 140px);
}

/* Hero: frosted glass image frame with cyberpunk gold accents */
.image-frame {
  width: 92vw;
  max-width: 860px;
  aspect-ratio: 16 / 9;
  border-radius: 16px;
  overflow: hidden;
  background: rgba(255, 255, 255, 0.25);
  border: 1px solid rgba(255, 255, 255, 0.75);
  backdrop-filter: saturate(1.05) blur(var(--blur));
  -webkit-backdrop-filter: saturate(1.05) blur(var(--blur);
  box-shadow: 0 12px 40px rgba(0,0,0,.16);
  position: relative;
  isolation: isolate;
  /* subtle glow edge to feel like hacker glow */
}
.image-frame::after {
  content: "";
  position: absolute;
  inset: 0;
  border-radius: 16px;
  box-shadow: inset 0 0 0 1px rgba(255, 215, 0, 0.25), 0 0 0 0 rgba(0,0,0,0);
  pointer-events: none;
}
.image-frame img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  display: block;
  /* slight color lift for cyberpunk vibe when viewed on white pattern */
  mix-blend-mode: normal;
}
@media (min-width: 640px) {
  .image-frame { width: 76vw; }
}
@media (min-width: 1024px) {
  .image-frame { width: 720px; }
}

/* Footer area with frosted glass product ad and CTA buttons */
footer {
  width: 100%;
  display: grid;
  justify-items: center;
  padding: 1.75rem 1rem 2rem;
  margin-top: 1rem;
  background: rgba(255, 255, 255, 0.25);
  backdrop-filter: blur(6px);
  -webkit-backdrop-filter: blur(6px);
  border-top: 1px solid rgba(0,0,0,0.05);
}

.product-ad {
  width: min(92vw, 720px);
  padding: 1rem 1.25rem;
  border-radius: 14px;
  background: rgba(255, 255, 255, 0.44);
  border: 1px solid rgba(255, 255, 255, 0.75);
  box-shadow: var(--shadow);
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 1rem;
}
.product-ad h3 {
  font-size: 0.95rem;
  color: var(--gold);
  text-shadow: 0 0 6px rgba(212, 175, 55, 0.45);
  margin: 0;
  letter-spacing: .2px;
}
.product-ad a {
  text-decoration: none;
}
.product-ad a p {
  display: inline-block;
  padding: .72rem 1.1rem;
  border-radius: 999px;
  background: linear-gradient(135deg, #ffd34d 0%, #f6b800 100%);
  color: #2b1f00;
  font-weight: 700;
  border: 1px solid rgba(0,0,0,.08);
  box-shadow: 0 6px 14px rgba(0,0,0,.15);
  transition: transform .15s ease;
}
.product-ad a:hover p {
  transform: translateY(-1px);
}
.product-ad a:focus-visible p {
  outline: 3px solid #ffeb3b;
  outline-offset: 2px;
}
.product-ad p {
  margin: 0;
  user-select: none;
}
footer p {
  margin: 0.5rem 0 0;
  color: #444;
  font-size: 0.92rem;
  opacity: 0.9;
}

/* Accessibility: focus styles for all keyboard navigable elements */
a:focus-visible {
  outline: 3px solid var(--gold);
  outline-offset: 2px;
  border-radius: 6px;
}
button:focus-visible,
input:focus-visible,
textarea:focus-visible {
  outline: 3px solid var(--gold);
  outline-offset: 2px;
  border-radius: 6px;
}

/* Small helpers for legibility on light background */
h1, h2, h3, h4 {
  line-height: 1.25;
}
p {
  line-height: 1.6;
  color: var(--text);
}
@media (prefers-color-scheme: dark) {
  :root {
    --bg: #0b0b0f;
  }
  body {
    color: #e6e6e6;
    background: var(--bg);
    background-image:
      linear-gradient(135deg, rgba(255,255,255,.04) 25%, transparent 25%),
      linear-gradient(225deg, rgba(255,255,255,.04) 25%, transparent 25%),
      linear-gradient(135deg, transparent 75%, rgba(255,255,255,.04) 75%),
      linear-gradient(225deg, transparent 75%, rgba(255,255,255,.04) 75%);
    background-size: 20px 20px;
  }
  .image-frame {
    background: rgba(0,0,0,0.25);
    border: 1px solid rgba(255,255,255,.15);
  }
  .product-ad {
    background: rgba(0,0,0,0.35);
    border: 1px solid rgba(255,255,255,.15);
  }
}
