/* EazyD Studio — mobile-first, dark pixel landing */

:root {
  --bg-deep: #0a0c10;
  --bg-panel: #12161f;
  --bg-panel-alt: #171c28;
  --border: #2a3344;
  --border-bright: #4a5f8a;
  --text: #e8ecf4;
  --text-muted: #9aa8c0;
  --accent: #6ee7b7;
  --accent-dim: #3d9a78;
  --magenta: #f472b6;
  --gold: #fbbf24;
  --focus: #fde68a;
  --font-pixel: "Press Start 2P", monospace;
  --font-body: "IBM Plex Sans", system-ui, sans-serif;
  --space-xs: 0.5rem;
  --space-sm: 0.75rem;
  --space-md: 1.25rem;
  --space-lg: 2rem;
  --space-xl: 3rem;
  --max-width: 40rem;
  --header-h: 3.25rem;
}

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

html {
  scroll-behavior: smooth;
}

@media (prefers-reduced-motion: reduce) {
  html {
    scroll-behavior: auto;
  }

  .scanlines {
    display: none;
  }
}

body {
  margin: 0;
  min-height: 100vh;
  font-family: var(--font-body);
  font-size: 1rem;
  line-height: 1.6;
  color: var(--text);
  background-color: var(--bg-deep);
  background-image:
    radial-gradient(ellipse 120% 80% at 50% -20%, #1a2540 0%, transparent 55%),
    linear-gradient(180deg, var(--bg-deep) 0%, #08090d 100%);
}

img {
  max-width: 100%;
  height: auto;
}

a {
  color: var(--accent);
  text-decoration-thickness: 2px;
  text-underline-offset: 3px;
}

a:hover {
  color: #a7f3d0;
}

a:focus-visible,
.btn:focus-visible {
  outline: 3px solid var(--focus);
  outline-offset: 3px;
}

.skip-link {
  position: absolute;
  left: var(--space-sm);
  top: -100%;
  z-index: 100;
  padding: var(--space-xs) var(--space-sm);
  background: var(--focus);
  color: #111;
  font-weight: 600;
  text-decoration: none;
}

.skip-link:focus {
  top: var(--space-sm);
}

.scanlines {
  pointer-events: none;
  position: fixed;
  inset: 0;
  z-index: 50;
  opacity: 0.04;
  background: repeating-linear-gradient(
    0deg,
    transparent,
    transparent 2px,
    rgba(0, 0, 0, 0.5) 2px,
    rgba(0, 0, 0, 0.5) 4px
  );
}

.site-header {
  position: sticky;
  top: 0;
  z-index: 40;
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  justify-content: space-between;
  gap: var(--space-sm);
  padding: var(--space-sm) var(--space-md);
  min-height: var(--header-h);
  background: rgba(10, 12, 16, 0.92);
  border-bottom: 4px solid var(--border);
  box-shadow: 0 4px 0 #000;
  backdrop-filter: blur(8px);
}

.site-header__brand {
  margin: 0;
  font-family: var(--font-pixel);
  font-size: 0.65rem;
  letter-spacing: 0.02em;
  color: var(--gold);
}

.site-header__nav {
  display: flex;
  flex-wrap: wrap;
  gap: var(--space-sm) var(--space-md);
  font-size: 0.875rem;
  font-weight: 600;
}

.site-header__nav a {
  color: var(--text-muted);
  text-decoration: none;
}

.site-header__nav a:hover {
  color: var(--text);
}

main {
  padding: var(--space-lg) var(--space-md) var(--space-xl);
  max-width: calc(var(--max-width) + 8rem);
  margin: 0 auto;
}

.hero {
  text-align: center;
  padding: var(--space-lg) 0 var(--space-xl);
}

.hero__badge {
  display: flex;
  justify-content: center;
  margin-bottom: var(--space-md);
}

.pixel-orb {
  display: block;
  width: 4rem;
  height: 4rem;
  image-rendering: pixelated;
  background:
    linear-gradient(135deg, var(--magenta) 25%, transparent 25%) 0 0 / 8px 8px,
    linear-gradient(225deg, var(--accent) 25%, transparent 25%) 0 0 / 8px 8px,
    var(--bg-panel);
  border: 4px solid var(--border-bright);
  box-shadow:
    4px 4px 0 #000,
    inset 0 0 0 4px var(--bg-deep);
  animation: float 4s ease-in-out infinite;
}

@keyframes float {
  0%,
  100% {
    transform: translateY(0);
  }
  50% {
    transform: translateY(-6px);
  }
}

@media (prefers-reduced-motion: reduce) {
  .pixel-orb {
    animation: none;
  }
}

.hero__title {
  margin: 0 0 var(--space-md);
  font-family: var(--font-pixel);
  font-size: clamp(1.25rem, 5vw, 1.75rem);
  line-height: 1.4;
  color: var(--text);
  text-shadow: 3px 3px 0 #000;
}

.hero__tagline {
  margin: 0 auto var(--space-lg);
  max-width: 34ch;
  font-size: 1.05rem;
  color: var(--text-muted);
}

.hero__tagline strong {
  color: var(--magenta);
  font-weight: 600;
}

.hero__actions {
  display: flex;
  flex-direction: column;
  align-items: stretch;
  gap: var(--space-sm);
  max-width: 18rem;
  margin: 0 auto;
}

.btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  padding: 0.85rem 1.25rem;
  font-family: var(--font-body);
  font-size: 0.95rem;
  font-weight: 600;
  text-decoration: none;
  border: 4px solid #000;
  box-shadow: 4px 4px 0 #000;
  transition: transform 0.1s ease, box-shadow 0.1s ease;
}

.btn:active {
  transform: translate(2px, 2px);
  box-shadow: 2px 2px 0 #000;
}

.btn--primary {
  background: var(--accent-dim);
  color: #04120c;
}

.btn--primary:hover {
  background: var(--accent);
  color: #04120c;
}

.btn--secondary {
  background: var(--bg-panel-alt);
  color: var(--text);
  border-color: var(--border-bright);
}

.btn--secondary:hover {
  background: #1f2636;
  color: var(--text);
}

.btn--ghost {
  background: transparent;
  color: var(--accent);
  border-color: var(--border-bright);
  margin-top: var(--space-md);
}

.btn--ghost:hover {
  background: var(--bg-panel);
  color: #a7f3d0;
}

.section {
  margin-bottom: var(--space-xl);
  padding-top: var(--space-md);
  border-top: 4px dashed var(--border);
}

.section__title {
  margin: 0 0 var(--space-sm);
  font-family: var(--font-pixel);
  font-size: clamp(0.75rem, 3.5vw, 0.9rem);
  line-height: 1.5;
  color: var(--gold);
}

.section__lead {
  margin: 0 0 var(--space-lg);
  color: var(--text-muted);
  max-width: 50ch;
}

.section__note {
  margin: var(--space-md) 0 0;
  font-size: 0.9rem;
  color: var(--text-muted);
}

.card-grid {
  list-style: none;
  margin: 0;
  padding: 0;
  display: grid;
  gap: var(--space-md);
}

.card {
  padding: var(--space-md);
  background: var(--bg-panel);
  border: 4px solid var(--border);
  box-shadow: 4px 4px 0 #000;
}

.card--muted {
  background: var(--bg-panel-alt);
}

.card__header {
  display: flex;
  flex-direction: column;
  align-items: flex-start;
  gap: var(--space-xs);
  margin-bottom: var(--space-xs);
}

.card__title {
  margin: 0;
  font-size: 1.1rem;
  font-weight: 600;
}

.card__text {
  margin: 0 0 var(--space-sm);
  font-size: 0.95rem;
  color: var(--text-muted);
}

.card__link {
  font-weight: 600;
  text-decoration: none;
}

.card__link:hover {
  text-decoration: underline;
}

.pill {
  display: inline-block;
  padding: 0.2rem 0.5rem;
  font-size: 0.7rem;
  font-weight: 600;
  text-transform: uppercase;
  letter-spacing: 0.04em;
  color: #1a1208;
  background: var(--gold);
  border: 2px solid #000;
}

.callout {
  padding: var(--space-md);
  background: linear-gradient(145deg, var(--bg-panel) 0%, var(--bg-panel-alt) 100%);
  border: 4px solid var(--border-bright);
  box-shadow: 4px 4px 0 #000;
}

.callout p {
  margin: 0;
  color: var(--text-muted);
}

.link-list {
  list-style: none;
  margin: 0;
  padding: 0;
}

.link-list li {
  display: flex;
  flex-wrap: wrap;
  align-items: baseline;
  gap: var(--space-xs) var(--space-md);
  padding: var(--space-sm) 0;
  border-bottom: 2px solid var(--border);
}

.link-list a {
  font-weight: 600;
  font-size: 1.05rem;
  text-decoration: none;
}

.link-list a:hover {
  text-decoration: underline;
}

.link-list__hint {
  font-size: 0.85rem;
  color: var(--text-muted);
}

.section--support .support-email {
  margin: 0;
  font-size: 1.1rem;
  font-weight: 600;
}

.section--support .support-email a {
  text-decoration: none;
  word-break: break-all;
}

.section--support .support-email a:hover {
  text-decoration: underline;
}

.site-footer {
  padding: var(--space-lg) var(--space-md);
  text-align: center;
  font-size: 0.85rem;
  color: var(--text-muted);
  border-top: 4px solid var(--border);
  background: #06070a;
}

.site-footer p {
  margin: 0.35rem 0;
}

@media (min-width: 640px) {
  .hero__actions {
    flex-direction: row;
    justify-content: center;
    max-width: none;
  }

  .card-grid {
    grid-template-columns: repeat(3, 1fr);
  }

  .card-grid--two {
    grid-template-columns: repeat(2, 1fr);
  }
}

@media (min-width: 900px) {
  :root {
    --max-width: 52rem;
  }

  main {
    padding-left: var(--space-xl);
    padding-right: var(--space-xl);
  }

  .hero {
    padding-top: var(--space-xl);
  }

  .hero__tagline {
    max-width: 42ch;
    font-size: 1.15rem;
  }

  .site-header__brand {
    font-size: 0.75rem;
  }
}
