/* =========================================================
   Ola mundo 3 — Minimal Preto e Roxo
   Folha de estilo única compartilhada por todas as páginas
   ========================================================= */

:root {
  --color-primary: #7c3aed;
  --color-secondary: #a78bfa;
  --color-accent: #c084fc;
  --color-bg: #000000;
  --color-surface: #0b0b0b;
  --color-text: #ffffff;
  --color-muted: #9ca3af;

  --radius-md: 10px;
  --font-sans: "Inter", -apple-system, BlinkMacSystemFont, "Segoe UI", Roboto,
    "Helvetica Neue", Arial, sans-serif;

  --space-sm: 0.75rem;
  --space-md: 1.5rem;
  --space-lg: 3rem;
}

/* ---------- Reset básico ---------- */
*,
*::before,
*::after {
  box-sizing: border-box;
}

html {
  -webkit-text-size-adjust: 100%;
}

html,
body {
  margin: 0;
  padding: 0;
}

body.page {
  min-height: 100vh;
  min-height: 100svh;
  display: flex;
  flex-direction: column;
  background-color: var(--color-bg);
  color: var(--color-text);
  font-family: var(--font-sans);
  font-weight: 400;
  line-height: 1.5;
  -webkit-font-smoothing: antialiased;
  -moz-osx-font-smoothing: grayscale;
  overflow-x: hidden;
}

/* ---------- Acessibilidade ---------- */
.skip-link {
  position: absolute;
  left: -9999px;
  top: 0;
  z-index: 10;
  padding: 0.6rem 1rem;
  background: var(--color-primary);
  color: #ffffff;
  border-radius: 0 0 var(--radius-md) 0;
  font-size: 0.875rem;
  text-decoration: none;
}

.skip-link:focus {
  left: 0;
}

:focus-visible {
  outline: 2px solid var(--color-accent);
  outline-offset: 3px;
}

/* ---------- Estrutura ---------- */
.main {
  flex: 1 1 auto;
  display: flex;
  align-items: center;
  justify-content: center;
  width: 100%;
}

.hero {
  position: relative;
  width: 100%;
  display: flex;
  align-items: center;
  justify-content: center;
  padding: clamp(4rem, 14vh, 11rem) clamp(1.25rem, 5vw, 4rem);
  text-align: center;
  isolation: isolate;
}

/* Vinheta radial atrás do título para dar profundidade */
.hero__vignette {
  position: absolute;
  top: 50%;
  left: 50%;
  transform: translate(-50%, -50%);
  width: min(1200px, 130vw);
  height: min(700px, 90vh);
  pointer-events: none;
  z-index: -1;
  background:
    radial-gradient(
      ellipse at center,
      rgba(124, 58, 237, 0.22) 0%,
      rgba(124, 58, 237, 0.08) 35%,
      rgba(11, 11, 11, 0.6) 62%,
      rgba(0, 0, 0, 0) 78%
    );
  filter: blur(6px);
}

.hero__inner {
  position: relative;
  max-width: 60rem;
  margin: 0 auto;
}

/* ---------- Título com brilho neon ---------- */
.hero__title {
  margin: 0;
  font-size: clamp(3rem, 11.5vw, 9rem);
  font-weight: 800;
  letter-spacing: -0.035em;
  line-height: 1.02;
  color: var(--color-primary);
  background-image: linear-gradient(
    180deg,
    var(--color-accent) 0%,
    var(--color-secondary) 38%,
    var(--color-primary) 100%
  );
  -webkit-background-clip: text;
  background-clip: text;
  -webkit-text-fill-color: transparent;
  text-shadow:
    0 0 18px rgba(192, 132, 252, 0.55),
    0 0 48px rgba(124, 58, 237, 0.45),
    0 0 90px rgba(124, 58, 237, 0.3);
}

/* Fallback: navegadores sem suporte a background-clip: text */
@supports not ((-webkit-background-clip: text) or (background-clip: text)) {
  .hero__title {
    background-image: none;
    -webkit-text-fill-color: currentColor;
    color: var(--color-secondary);
  }
}

/* ---------- Subtítulo ---------- */
.hero__subtitle {
  margin: clamp(1rem, 2.5vh, 1.75rem) auto 0;
  max-width: 36rem;
  font-size: clamp(0.95rem, 1.6vw, 1.25rem);
  font-weight: 400;
  color: rgba(255, 255, 255, 0.62);
  letter-spacing: 0.005em;
}

/* ---------- Rodapé ---------- */
.footer {
  flex: 0 0 auto;
  width: 100%;
  padding: var(--space-md) var(--space-md) clamp(1.5rem, 4vh, 2.75rem);
  text-align: center;
}

.footer__text {
  margin: 0;
  font-size: 0.75rem;
  font-weight: 400;
  letter-spacing: 0.02em;
  color: var(--color-muted);
}

/* ---------- Ajustes responsivos finos ---------- */
@media (max-width: 480px) {
  .hero {
    padding-top: clamp(3rem, 10vh, 6rem);
    padding-bottom: clamp(3rem, 10vh, 6rem);
  }

  .hero__title {
    letter-spacing: -0.02em;
    text-shadow:
      0 0 14px rgba(192, 132, 252, 0.5),
      0 0 36px rgba(124, 58, 237, 0.38);
  }
}

@media (min-width: 1600px) {
  .hero__title {
    font-size: 9.5rem;
  }
}

/* ---------- Preferências do usuário ---------- */
@media (prefers-reduced-motion: reduce) {
  *,
  *::before,
  *::after {
    animation-duration: 0.001ms !important;
    animation-iteration-count: 1 !important;
    transition-duration: 0.001ms !important;
  }
}

@media (prefers-contrast: more) {
  .hero__subtitle {
    color: #ffffff;
  }

  .footer__text {
    color: #d1d5db;
  }
}

@media print {
  body.page {
    background: #ffffff;
    color: #000000;
  }

  .hero__vignette {
    display: none;
  }

  .hero__title {
    background-image: none;
    -webkit-text-fill-color: currentColor;
    color: #4c1d95;
    text-shadow: none;
  }
}
