/* Layout e componentes — landing Jukeeo (tema Ultravioleta) */

/* Reset e base */
*,
*::before,
*::after {
  box-sizing: border-box;
  margin: 0;
  padding: 0;
}

html {
  scroll-behavior: smooth;
  -webkit-text-size-adjust: 100%;
}

body {
  font-family: var(--font-sans);
  font-size: 1rem;
  line-height: 1.6;
  color: var(--foreground);
  background-color: var(--background);
  overflow-x: hidden;
}

img,
svg {
  display: block;
  max-width: 100%;
}

a {
  color: inherit;
  text-decoration: none;
}

ul,
ol {
  list-style: none;
}

/* Skip link */
.skip-link {
  position: absolute;
  top: -100%;
  left: var(--space-md);
  z-index: 1000;
  padding: var(--space-sm) var(--space-md);
  background: var(--primary);
  color: var(--primary-foreground);
  border-radius: var(--radius-md);
  font-weight: 600;
  transition: top var(--transition-fast);
}

.skip-link:focus {
  top: var(--space-md);
}

/* Container */
.container {
  width: 100%;
  max-width: var(--max-width);
  margin-inline: auto;
  padding-inline: var(--space-lg);
}

/* Botões */
.btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: var(--space-sm);
  padding: 0.75rem 1.5rem;
  font-family: inherit;
  font-size: 0.9375rem;
  font-weight: 600;
  line-height: 1.4;
  border-radius: var(--radius-full);
  border: 2px solid transparent;
  cursor: pointer;
  transition:
    transform var(--transition-fast),
    box-shadow var(--transition-base),
    opacity var(--transition-fast);
}

.btn:hover {
  transform: translateY(-2px);
}

.btn:active {
  transform: translateY(0);
}

.btn--primary {
  background: var(--gradient-brand);
  color: var(--primary-foreground);
  box-shadow: var(--shadow-glow);
}

.btn--primary:hover {
  box-shadow: 0 0 60px rgba(233, 30, 140, 0.45);
}

.btn--ghost {
  background: transparent;
  color: var(--foreground);
  border-color: var(--border);
}

.btn--ghost:hover {
  border-color: var(--primary);
  color: var(--primary);
}

.btn--lg {
  padding: 1rem 2rem;
  font-size: 1.0625rem;
}

/* Cabeçalho */
.header {
  position: fixed;
  top: 0;
  left: 0;
  right: 0;
  z-index: 100;
  height: var(--header-height);
  background: rgba(5, 5, 8, 0.85);
  backdrop-filter: blur(12px);
  -webkit-backdrop-filter: blur(12px);
  border-bottom: 1px solid rgba(74, 58, 122, 0.3);
}

.header__inner {
  display: flex;
  align-items: center;
  justify-content: space-between;
  height: 100%;
}

.header__logo img {
  height: 2rem;
  width: auto;
}

.header__toggle {
  display: flex;
  flex-direction: column;
  justify-content: center;
  gap: 5px;
  width: 2.5rem;
  height: 2.5rem;
  padding: 0.5rem;
  background: none;
  border: none;
  cursor: pointer;
  z-index: 110;
}

.header__toggle-bar {
  display: block;
  width: 100%;
  height: 2px;
  background: var(--foreground);
  border-radius: 2px;
  transition: transform var(--transition-base), opacity var(--transition-base);
}

.header__toggle[aria-expanded="true"] .header__toggle-bar:nth-child(1) {
  transform: translateY(7px) rotate(45deg);
}

.header__toggle[aria-expanded="true"] .header__toggle-bar:nth-child(2) {
  opacity: 0;
}

.header__toggle[aria-expanded="true"] .header__toggle-bar:nth-child(3) {
  transform: translateY(-7px) rotate(-45deg);
}

.header__nav-list {
  display: flex;
  align-items: center;
  gap: var(--space-xl);
}

.header__nav-link {
  font-size: 0.9375rem;
  font-weight: 500;
  color: var(--muted-foreground);
  transition: color var(--transition-fast);
}

.header__nav-link:hover,
.header__nav-link:focus-visible {
  color: var(--foreground);
}

.header__nav-link--cta {
  padding: 0.5rem 1.25rem;
  background: var(--gradient-brand);
  color: var(--primary-foreground) !important;
  border-radius: var(--radius-full);
  font-weight: 600;
}

.header__nav-link--cta:hover {
  box-shadow: var(--shadow-glow);
}

/* Hero */
.hero {
  position: relative;
  min-height: 100vh;
  display: flex;
  align-items: center;
  padding-top: var(--header-height);
  overflow: hidden;
}

.hero__bg {
  position: absolute;
  inset: 0;
  z-index: 0;
}

.hero__stage-lights {
  position: absolute;
  inset: 0;
  background:
    radial-gradient(ellipse 80% 50% at 20% 0%, rgba(233, 30, 140, 0.15) 0%, transparent 60%),
    radial-gradient(ellipse 60% 40% at 80% 10%, rgba(79, 124, 255, 0.12) 0%, transparent 55%),
    radial-gradient(ellipse 50% 30% at 50% 0%, rgba(124, 58, 237, 0.18) 0%, transparent 50%);
}

.hero__glow {
  position: absolute;
  bottom: 0;
  left: 50%;
  transform: translateX(-50%);
  width: 120%;
  height: 60%;
  background: var(--gradient-glow);
  pointer-events: none;
}

.hero__bg::after {
  content: "";
  position: absolute;
  inset: 0;
  background: var(--gradient-hero-overlay);
}

.hero__content {
  position: relative;
  z-index: 1;
  padding-block: var(--space-4xl) var(--space-3xl);
  text-align: center;
}

.hero__tagline {
  display: inline-block;
  margin-bottom: var(--space-lg);
  padding: 0.375rem 1rem;
  font-size: 0.8125rem;
  font-weight: 700;
  letter-spacing: 0.15em;
  text-transform: uppercase;
  background: var(--gradient-brand);
  -webkit-background-clip: text;
  background-clip: text;
  -webkit-text-fill-color: transparent;
  border: 1px solid var(--border);
  border-radius: var(--radius-full);
}

.hero__title {
  font-size: clamp(2.25rem, 5vw, 3.75rem);
  font-weight: 800;
  line-height: 1.1;
  letter-spacing: -0.02em;
  margin-bottom: var(--space-lg);
  max-width: 18ch;
  margin-inline: auto;
}

.hero__subtitle {
  font-size: clamp(1rem, 2vw, 1.25rem);
  color: var(--muted-foreground);
  max-width: 42ch;
  margin-inline: auto;
  margin-bottom: var(--space-2xl);
}

.hero__actions {
  display: flex;
  flex-wrap: wrap;
  gap: var(--space-md);
  justify-content: center;
}

/* Seções */
.section {
  padding-block: var(--space-4xl);
}

.section--alt {
  background: linear-gradient(180deg, transparent 0%, rgba(26, 16, 48, 0.4) 50%, transparent 100%);
}

.section__header {
  text-align: center;
  margin-bottom: var(--space-3xl);
}

.section__title {
  font-size: clamp(1.75rem, 3.5vw, 2.5rem);
  font-weight: 700;
  letter-spacing: -0.02em;
  margin-bottom: var(--space-md);
}

.section__subtitle {
  font-size: 1.0625rem;
  color: var(--muted-foreground);
  max-width: 40ch;
  margin-inline: auto;
}

/* Passos */
.steps {
  display: grid;
  gap: var(--space-xl);
  counter-reset: steps;
}

.step-card {
  position: relative;
  padding: var(--space-2xl);
  background: var(--card);
  border: 1px solid var(--border);
  border-radius: var(--radius-xl);
  transition: border-color var(--transition-base), box-shadow var(--transition-base);
}

.step-card:hover {
  border-color: var(--primary);
  box-shadow: var(--shadow-glow);
}

.step-card__number {
  position: absolute;
  top: var(--space-lg);
  right: var(--space-lg);
  font-size: 3rem;
  font-weight: 800;
  line-height: 1;
  opacity: 0.08;
  background: var(--gradient-brand);
  -webkit-background-clip: text;
  background-clip: text;
  -webkit-text-fill-color: transparent;
}

.step-card__icon {
  width: 3rem;
  height: 3rem;
  margin-bottom: var(--space-lg);
  color: var(--accent);
}

.step-card__icon svg {
  width: 100%;
  height: 100%;
}

.step-card__title {
  font-size: 1.25rem;
  font-weight: 700;
  margin-bottom: var(--space-sm);
}

.step-card__text {
  color: var(--muted-foreground);
  font-size: 0.9375rem;
}

/* Features */
.features {
  display: grid;
  gap: var(--space-lg);
  grid-template-columns: 1fr;
}

.feature-card {
  padding: var(--space-xl);
  background: var(--card);
  border: 1px solid var(--border);
  border-radius: var(--radius-lg);
  transition: border-color var(--transition-base), transform var(--transition-base);
}

.feature-card:hover {
  border-color: rgba(124, 58, 237, 0.6);
  transform: translateY(-4px);
}

.feature-card__icon {
  width: 2.5rem;
  height: 2.5rem;
  margin-bottom: var(--space-md);
}

.feature-card__icon svg {
  width: 100%;
  height: 100%;
}

.feature-card__title {
  font-size: 1.0625rem;
  font-weight: 600;
  margin-bottom: var(--space-xs);
}

.feature-card__text {
  font-size: 0.875rem;
  color: var(--muted-foreground);
}

/* CTA */
.cta__card {
  text-align: center;
  padding: var(--space-3xl) var(--space-xl);
  background: var(--card);
  border: 1px solid var(--border);
  border-radius: var(--radius-xl);
  position: relative;
  overflow: hidden;
}

.cta__card::before {
  content: "";
  position: absolute;
  inset: 0;
  background: var(--gradient-glow);
  pointer-events: none;
}

.cta__title {
  position: relative;
  font-size: clamp(1.5rem, 3vw, 2rem);
  font-weight: 700;
  margin-bottom: var(--space-md);
}

.cta__text {
  position: relative;
  color: var(--muted-foreground);
  margin-bottom: var(--space-xl);
  max-width: 40ch;
  margin-inline: auto;
}

.cta .btn {
  position: relative;
}

/* Rodapé */
.footer {
  padding-block: var(--space-2xl);
  border-top: 1px solid var(--border);
}

.footer__inner {
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: var(--space-md);
  text-align: center;
}

.footer__logo img {
  height: 1.75rem;
  width: auto;
  opacity: 0.8;
}

.footer__copy {
  font-size: 0.8125rem;
  color: var(--muted-foreground);
}

.footer__tagline {
  font-size: 0.75rem;
  font-weight: 700;
  letter-spacing: 0.12em;
  text-transform: uppercase;
  background: var(--gradient-brand);
  -webkit-background-clip: text;
  background-clip: text;
  -webkit-text-fill-color: transparent;
}

/* Reveal animation */
.reveal {
  opacity: 0;
  transform: translateY(24px);
  transition:
    opacity var(--transition-slow),
    transform var(--transition-slow);
}

.reveal.is-visible {
  opacity: 1;
  transform: translateY(0);
}

/* Responsivo — tablet */
@media (min-width: 640px) {
  .features {
    grid-template-columns: repeat(2, 1fr);
  }
}

/* Responsivo — desktop */
@media (min-width: 768px) {
  .header__toggle {
    display: none;
  }

  .header__nav {
    display: block !important;
    position: static;
    background: none;
    padding: 0;
    border: none;
  }

  .steps {
    grid-template-columns: repeat(3, 1fr);
  }

  .features {
    grid-template-columns: repeat(3, 1fr);
  }
}

/* Menu mobile */
@media (max-width: 767px) {
  .header__nav {
    display: none;
    position: fixed;
    inset: 0;
    top: var(--header-height);
    background: rgba(5, 5, 8, 0.97);
    backdrop-filter: blur(16px);
    -webkit-backdrop-filter: blur(16px);
    padding: var(--space-2xl) var(--space-lg);
    border-top: 1px solid var(--border);
  }

  .header__nav.is-open {
    display: block;
  }

  .header__nav-list {
    flex-direction: column;
    align-items: stretch;
    gap: var(--space-md);
  }

  .header__nav-link {
    display: block;
    padding: var(--space-md);
    font-size: 1.125rem;
    text-align: center;
    border-radius: var(--radius-md);
  }

  .header__nav-link:hover {
    background: var(--muted);
  }

  .header__nav-link--cta {
    margin-top: var(--space-md);
  }
}

/* prefers-reduced-motion */
@media (prefers-reduced-motion: reduce) {
  html {
    scroll-behavior: auto;
  }

  *,
  *::before,
  *::after {
    animation-duration: 0.01ms !important;
    animation-iteration-count: 1 !important;
    transition-duration: 0.01ms !important;
  }

  .reveal {
    opacity: 1;
    transform: none;
  }
}
