/* Purple hacker landing page - single stylesheet (mobile-first, responsive, accessible) */

:root {
  --bg-purple: #2a1746;
  --bg-purple-accent: #4a1f74;
  --glass: rgba(255, 255, 255, 0.08);
  --border: rgba(255, 255, 255, 0.18);
  --text: #eae6ff;
  --muted: rgba(234, 228, 255, 0.9);
  --brown: #8b5e3c;
  --brown-dark: #6b482b;
  --ring: rgba(255, 212, 66, 0.9);
  --shadow: 0 10px 28px rgba(0, 0, 0, 0.35);
}

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

html, body {
  height: 100%;
}

body {
  margin: 0;
  font-family: Inter, ui-sans-serif, system-ui, -apple-system, "Segoe UI", Roboto;
  color: var(--text);
  background: linear-gradient(135deg, #2a1746 0%, #4a1f74 50%, #2a1746 100%);
  min-height: 100vh;
  -webkit-font-smoothing: antialiased;
  -moz-osx-font-smoothing: grayscale;
}

/* Light reset for consistent rendering */
* { box-sizing: border-box; }

main {
  display: grid;
  place-items: center;
  width: 100%;
  padding: 2rem 1rem;
}

.image-frame {
  width: 100%;
  max-width: 860px;
  aspect-ratio: 16 / 9;
  border-radius: 22px;
  overflow: hidden;
  background: var(--glass);
  border: 1px solid var(--border);
  backdrop-filter: blur(8px);
  -webkit-backdrop-filter: blur(8px);
  box-shadow: inset 0 0 0 1px rgba(255, 255, 255, 0.12);
}

.image-frame img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  display: block;
}

/* Frosted glass footer card with CTA */
footer {
  width: 100%;
  display: flex;
  justify-content: center;
  padding: 1.5rem 0 2rem;
}

.product-ad {
  width: min(100%, 920px);
  padding: 1rem;
  border-radius: 14px;
  display: flex;
  gap: 1rem;
  align-items: center;
  justify-content: space-between;
  background: rgba(0, 0, 0, 0.25);
  border: 1px solid var(--border);
  backdrop-filter: blur(4px);
  -webkit-backdrop-filter: blur(4px);
  box-shadow: var(--shadow);
}

.product-ad h3 {
  font-size: 0.95rem;
  font-weight: 700;
  color: #ffdfff;
  margin: 0;
  display: inline-block;
  letter-spacing: 0.2px;
}

.product-ad a {
  display: inline-block;
  text-decoration: none;
  /* CTA button styling (brown hacker vibe) */
  padding: 0.75rem 1.4rem;
  border-radius: 999px;
  background: var(--brown);
  color: #fff;
  font-weight: 800;
  line-height: 1;
  box-shadow: 0 6px 14px rgba(0, 0, 0, 0.25);
}

.product-ad a:focus-visible {
  outline: 3px solid var(--ring);
  outline-offset: 2px;
}

.product-ad a p {
  margin: 0;
  padding: 0;
  color: #fff;
  display: inline;
}

/* Footer small text */
footer p {
  text-align: center;
  color: rgba(234, 228, 255, 0.8);
  font-size: 0.85rem;
  margin: 0.5rem 0 0;
}

/* Responsive tweaks */
@media (min-width: 600px) {
  main { padding: 3rem 1.5rem; }
  .image-frame { border-radius: 24px; }
}

@media (min-width: 900px) {
  .product-ad { align-items: center; justify-content: space-between; }
  .product-ad h3 { font-size: 1rem; }
}