/* index.css - mobile-first, cyberpunk with frosted glass and gold circuit theme */

/* Reset and base styles */
*,
*::before,
*::after {
  box-sizing: border-box;
}
html, body {
  height: 100%;
}
body {
  margin: 0;
  color: #eae6d3;
  font-family: ui-sans-serif, system-ui, -apple-system, "Segoe UI", Roboto, Inter, Arial;
  background-color: #0a0a0a;
  line-height: 1.5;
  -webkit-font-smoothing: antialiased;
  -moz-osx-font-smoothing: grayscale;

  /* Gold circuit board grid background (no external images) */
  background-image:
    /* subtle glow from grid intersections */
    radial-gradient(circle at 20% 20%, rgba(212,175,55,.08), transparent 40%),
    radial-gradient(circle at 80% 60%, rgba(212,175,55,.05), transparent 40%),
    /* gold grid */
    linear-gradient(135deg, rgba(212,175,55,.08) 0 0),
    repeating-linear-gradient(0deg, rgba(212,175,55,.25) 0 1px, transparent 1px 40px),
    repeating-linear-gradient(90deg, rgba(212,175,55,.25) 0 1px, transparent 1px 40px);
  background-blend-mode: overlay, overlay, overlay, normal, normal;
  min-height: 100vh;
  position: relative;
}
body::before {
  /* soft frosted glow overlay to enhance glass effect */
  content: "";
  position: fixed;
  inset: 0;
  pointer-events: none;
  background: radial-gradient(circle at 60% 20%, rgba(255, 240, 200, .08), transparent 40%),
              radial-gradient(circle at 30% 70%, rgba(255, 215, 0, .06), transparent 40%);
  mix-blend-mode: screen;
  z-index: -1;
}

/* Layout containers (semantic) */
.site-header {
  padding: 1rem;
  text-align: center;
  color: #e5e5e5;
  opacity: .95;
}

main { padding: 0; }

/* Hero section: prominent, mobile-first, frosted glass look */
.hero {
  display: grid;
  grid-template-rows: auto auto auto auto;
  justify-items: center;
  align-items: center;
  text-align: center;
  gap: 1rem;
  padding: clamp(1.5rem, 6vw, 4rem) 1rem;
  margin: 2rem auto;
  max-width: 1000px;
  width: 100%;
  border-radius: 18px;
  background: rgba(8, 8, 12, 0.55); /* frosted appearance on dark backdrop */
  border: 1px solid rgba(255, 255, 255, 0.15);
  backdrop-filter: saturate(1.4) blur(10px);
  -webkit-backdrop-filter: saturate(1.4) blur(10px);
  box-shadow: 0 20px 50px rgba(0,0,0,.45);
  overflow: hidden;
  position: relative;
}

/* Headline and content styles */
.hero > h1 {
  font-size: clamp(1.8rem, 6vw, 3rem);
  font-weight: 800;
  letter-spacing: .4px;
  color: #fff;
  margin: 0.25rem 0;
  text-shadow: 0 2px 8px rgba(0,0,0,.5);
}
.hero-image {
  width: min(90%, 720px);
  height: auto;
  border-radius: 14px;
  display: block;
  margin: 0.5rem auto;
  box-shadow: 0 18px 40px rgba(0,0,0,.55);
  background: rgba(0,0,0,.25);
}
.subhead {
  font-size: clamp(1.05rem, 2.4vw, 1.4rem);
  color: #e8e8e8;
  opacity: .95;
  margin: 0.25rem 0;
}
.hero-cta {
  display: inline-block;
  padding: 1.2rem 2rem;
  font-size: clamp(1.25rem, 3vw, 1.75rem);
  font-weight: 800;
  color: #111;
  text-decoration: none;
  border-radius: 999px;
  background: linear-gradient(135deg, #ffd166 0%, #f4b400 60%, #e0a000 100%);
  border: 1px solid rgba(0,0,0,.25);
  box-shadow: 0 8px 22px rgba(212,175,55,.5);
  transition: transform .2s ease, box-shadow .2s ease, filter .2s ease;
}
.hero-cta:hover {
  transform: translateY(-2px);
  filter: brightness(1.05);
}
.hero-cta:focus-visible {
  outline: 3px solid #ffd700;
  outline-offset: 2px;
  border-radius: 999px;
}

/* Footer: small advertisement and closing note */
.site-footer {
  padding: 1.5rem 1rem;
  text-align: center;
  color: #cbd5e1;
  font-family: inherit;
}
.footer-ad a {
  color: #ffd700;
  text-decoration: none;
  font-weight: 700;
}
.footer-ad a:hover { text-decoration: underline; }

/* Accessibility: ensure focus styles for keyboard users on links */
a:focus-visible {
  outline: 3px solid #ffd700;
  outline-offset: 2px;
  border-radius: 6px;
}

/* Responsive refinements */
@media (min-width: 640px) {
  .hero {
    grid-template-columns: 1fr;
  }
  .hero-cta {
    padding: 1.25rem 2.2rem;
    font-size: 1.6rem;
  }
}
@media (min-width: 1024px) {
  .hero {
    padding: 5rem 1rem;
  }
  .hero-image {
    width: min(70%, 760px);
  }
  .hero > h1 { font-size: 3rem; }
}