/* index.css - turquoise gradient, silver accents, hacker/cyberpunk vibe with frosted glass */

/* Root tokens for a consistent theme */
:root {
  --turq-1: #1fe6d2;
  --turq-2: #14d1c7;
  --turq-3: #0fbab3;
  --silver-50: rgba(230, 240, 250, 0.50);
  --silver-60: rgba(210, 220, 230, 0.60);
  --glass: rgba(255, 255, 255, 0.12);
  --glass-border: rgba(255, 255, 255, 0.28);
  --text: #eaffff;
  --text-dim: rgba(234, 246, 251, 0.92);
  --focus: #7af4f2;
  --cta: linear-gradient(135deg, #2ffbd6 0%, #4bdde0 60%, #1ab6a2 100%);
  --shadow: 0 10px 28px rgba(0, 0, 0, 0.25);
}

/* Reset */
*, *::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, Arial, sans-serif;
  color: var(--text);
  background: linear-gradient(135deg, var(--turq-1) 0%, var(--turq-2) 40%, var(--turq-3) 100%);
  min-height: 100vh;
  -webkit-font-smoothing: antialiased;
  -moz-osx-font-smoothing: grayscale;
}

/* Header */
header { padding: 1rem; }
.brand {
  font-weight: 700;
  color: #eaffff;
  letter-spacing: .4px;
  font-size: 1.05rem;
  display: inline-block;
  padding: .35rem .6rem;
  border-radius: 8px;
  background: rgba(0,0,0,.15);
  border: 1px solid rgba(255,255,255,.25);
  box-shadow: var(--shadow);
}

/* Main container styling for accessibility */
main { width: 100%; }

/* HERO GRID - mobile-first */
.hero-grid {
  display: grid;
  grid-template-columns: 1fr;
  grid-template-areas:
    "media"
    "title"
    "subhead"
    "cta";
  justify-items: center;
  align-items: center;
  text-align: center;
  gap: 1.75rem;
  padding: 2rem 1rem 3rem;
  max-width: 1100px;
  margin: 0 auto;
  position: relative;
}

/* gruesome frosted glass panels for readability over the gradient */
.hero-grid > h1,
.hero-grid > .subhead,
.hero-grid > .cta {
  background: var(--glass);
  border: 1px solid var(--glass-border);
  border-radius: 12px;
  padding: 0.25rem 0.6rem;
  backdrop-filter: blur(6px);
  -webkit-backdrop-filter: blur(6px);
  color: var(--text);
}
.hero-media { grid-area: media; display: flex; justify-content: center; width: 100%; }

/* Centerpiece image */
.hero-media img {
  width: min(90%, 520px);
  height: auto;
  border-radius: 16px;
  box-shadow: 0 16px 40px rgba(0,0,0,.25);
  display: block;
}

/* Typography tweaks */
h1 { font-size: clamp(1.9rem, 4vw + 1rem, 3rem); line-height: 1.08; margin: 0; color: #eaffff; text-shadow: 0 1px 2px rgba(0,0,0,.25); }
.subhead { font-size: clamp(1rem, 2vw + .6rem, 1.25rem); color: var(--text-dim); margin: 0; }

/* CTA */
.cta {
  display: inline-block;
  padding: 0.9rem 1.6rem;
  font-weight: 800;
  color: #062d2d;
  text-decoration: none;
  border-radius: 999px;
  background: var(--cta);
  border: 1px solid rgba(255,255,255,.65);
  box-shadow: 0 8px 20px rgba(0,0,0,.25);
  transition: transform .18s ease, box-shadow .18s ease;
}
.cta:focus-visible { outline: 3px solid var(--focus); outline-offset: 2px; }
.cta:hover { transform: translateY(-2px); box-shadow: 0 14px 28px rgba(0,0,0,.32); }

/* Footer */
footer {
  padding: 1rem;
  text-align: center;
  color: #e9fbfb;
}
.footer-ad {
  display: inline-block;
  padding: 0.25rem 0.6rem;
  margin-bottom: 0.5rem;
  background: rgba(255,255,255,.08);
  border-radius: 8px;
  border: 1px solid rgba(255,255,255,.22);
}
.footer-ad a { color: #eaffff; font-weight: 700; text-decoration: none; }
.footer-ad a:hover { text-decoration: underline; }

/* Desktop layout: image left, text right, CTA prominent */
@media (min-width: 760px) {
  .hero-grid {
    grid-template-columns: 1.05fr 0.95fr;
    grid-template-areas: "media title" "media subhead" "media cta";
    text-align: left;
    gap: 2rem;
    padding: 3rem 2rem;
  }
  .hero-media { justify-content: flex-end; padding-right: 1rem; }
  h1 { font-size: clamp(2.5rem, 1.2rem + 4vw, 4rem); }
  .subhead { font-size: 1.25rem; }
  .cta { align-self: center; justify-self: start; }
}

/* Extra-large screens */
@media (min-width: 1100px) {
  .hero-media img { width: 580px; }
}

/* Small device adjustments */
@media (max-width: 420px) {
  .hero-grid { padding: 1.75rem 0.75rem 2.25rem; }
  .cta { width: max-content; padding: 0.9rem 1.4rem; }
}