/* Layout Estrutural & Containers */
.container {
  width: 100%;
  max-width: var(--container-max);
  margin-left: auto;
  margin-right: auto;
  padding-left: 1.25rem;
  padding-right: 1.25rem;
}

@media (min-width: 768px) {
  .container {
    padding-left: 1.75rem;
    padding-right: 1.75rem;
  }
}

@media (min-width: 1024px) {
  .container {
    padding-left: 2.5rem;
    padding-right: 2.5rem;
  }
}

.section {
  padding: 5.5rem 0;
  position: relative;
  z-index: 2;
}

@media (min-width: 960px) {
  .section {
    padding: 8.5rem 0;
  }
}

.section-header {
  margin-bottom: 3.5rem;
}

.section-title {
  font-size: clamp(2.25rem, 4.5vw, 3.75rem);
  margin-top: 0.75rem;
  margin-bottom: 1.25rem;
  max-width: 22ch;
}

.section-desc {
  font-size: 1.125rem;
  max-width: 56ch;
  color: var(--text-secondary);
}

/* Header Arquitetural Fixo */
.header {
  position: fixed;
  top: 0;
  left: 0;
  right: 0;
  height: 64px;
  background-color: rgba(11, 10, 9, 0.85);
  backdrop-filter: blur(16px);
  -webkit-backdrop-filter: blur(16px);
  border-bottom: 1px solid var(--border-subtle);
  z-index: 100;
  transition: background-color var(--speed-normal), box-shadow var(--speed-normal);
}

@media (min-width: 992px) {
  .header {
    height: 72px;
  }
}

.header.header--scrolled {
  background-color: rgba(11, 10, 9, 0.96);
  box-shadow: 0 8px 30px rgba(0, 0, 0, 0.65);
  border-bottom-color: var(--border-accent);
}

.header__inner {
  display: flex;
  align-items: center;
  justify-content: space-between;
  height: 100%;
}

.header__brand {
  display: flex;
  align-items: center;
  gap: 0.5rem;
  text-decoration: none;
  flex-shrink: 0;
}

@media (min-width: 768px) {
  .header__brand {
    gap: 0.875rem;
  }
}

.header__logo-icon {
  width: 26px;
  height: 26px;
  flex-shrink: 0;
  display: block;
}

@media (min-width: 768px) {
  .header__logo-icon {
    width: 32px;
    height: 32px;
  }
}

.header__brand-text {
  display: flex;
  flex-direction: column;
  justify-content: center;
}

.header__brand-name {
  font-family: var(--font-display);
  font-size: 0.8125rem;
  font-weight: 600;
  color: var(--text-primary);
  letter-spacing: 0.03em;
  line-height: 1.1;
  white-space: normal;
}

.header__br-mobile {
  display: block;
}

@media (min-width: 768px) {
  .header__brand-name {
    font-size: 1.125rem;
    white-space: nowrap;
  }

  .header__br-mobile {
    display: none;
  }
}

.header__brand-tag {
  font-family: var(--font-mono);
  font-size: 0.5rem;
  color: var(--accent-gold);
  letter-spacing: 0.14em;
  text-transform: uppercase;
  line-height: 1.2;
  margin-top: 2px;
  display: block;
}

@media (min-width: 768px) {
  .header__brand-tag {
    font-size: 0.625rem;
    letter-spacing: 0.2em;
    margin-top: 3px;
  }
}

/* Navegação Desktop */
.nav__list {
  display: none;
  list-style: none;
  align-items: center;
  gap: 2.25rem;
}

@media (min-width: 992px) {
  .nav__list {
    display: flex;
  }
}

.nav__link {
  font-family: var(--font-sans);
  font-size: 0.875rem;
  font-weight: 500;
  color: var(--text-secondary);
  letter-spacing: 0.03em;
  position: relative;
  padding: 0.25rem 0;
  transition: color var(--speed-fast);
}

.nav__link::after {
  content: '';
  position: absolute;
  bottom: 0;
  left: 0;
  width: 100%;
  height: 1px;
  background-color: var(--accent-gold);
  transform: scaleX(0);
  transform-origin: left;
  transition: transform var(--speed-normal) var(--ease-out);
}

.nav__link:hover {
  color: var(--text-primary);
}

.nav__link:hover::after {
  transform: scaleX(1);
}

/* Painel de Ações do Header */
.header__actions {
  display: flex;
  align-items: center;
  gap: 0.625rem;
}

@media (min-width: 768px) {
  .header__actions {
    gap: 1rem;
  }
}

@media (min-width: 992px) {
  .header__actions {
    gap: 1.25rem;
  }
}

.header__cta-btn {
  padding: 0.45rem 0.85rem;
  font-size: 0.75rem;
  letter-spacing: 0.06em;
}

@media (min-width: 768px) {
  .header__cta-btn {
    padding: 0.55rem 1.25rem;
  }
}

@media (max-width: 360px) {
  .header__brand-name {
    font-size: 0.75rem;
  }
  .header__brand-tag {
    font-size: 0.46875rem;
    letter-spacing: 0.1em;
  }
  .header__cta-btn {
    padding: 0.35rem 0.65rem;
    font-size: 0.6875rem;
  }
}

/* Status do Ateliê em Tempo Real */
.status-pill {
  display: none;
  align-items: center;
  gap: 0.5rem;
  padding: 0.375rem 0.875rem;
  background-color: rgba(255, 255, 255, 0.04);
  border: 1px solid var(--border-subtle);
  border-radius: var(--radius-pill);
  font-family: var(--font-mono);
  font-size: 0.6875rem;
  color: var(--text-secondary);
  letter-spacing: 0.04em;
}

@media (min-width: 768px) {
  .status-pill {
    display: inline-flex;
  }
}

.status-dot {
  width: 7px;
  height: 7px;
  border-radius: 50%;
  background-color: var(--status-alive);
  box-shadow: 0 0 10px var(--status-alive);
  animation: pulse-dot 2.2s infinite ease-in-out;
}

@keyframes pulse-dot {
  0%, 100% { transform: scale(1); opacity: 1; }
  50% { transform: scale(1.35); opacity: 0.6; }
}

/* Áudio Lounge Web Audio API — Oculto no Mobile, exibido a partir de 992px */
.audio-toggle {
  display: none;
  align-items: center;
  gap: 0.375rem;
  background: transparent;
  border: 1px solid var(--border-subtle);
  padding: 0.375rem 0.75rem;
  border-radius: var(--radius);
  color: var(--text-secondary);
  font-family: var(--font-mono);
  font-size: 0.6875rem;
  letter-spacing: 0.08em;
  transition: border-color var(--speed-fast), color var(--speed-fast);
}

@media (min-width: 992px) {
  .audio-toggle {
    display: inline-flex;
  }
}

.audio-toggle:hover {
  border-color: var(--border-accent);
  color: var(--accent-gold);
}

.audio-bars {
  display: flex;
  align-items: flex-end;
  gap: 2px;
  height: 12px;
}

.audio-bar {
  width: 2px;
  height: 100%;
  background-color: currentColor;
  transform-origin: bottom;
  transform: scaleY(0.25);
  transition: transform var(--speed-fast);
}

.audio-toggle.is-playing .audio-bar:nth-child(1) { animation: bar-dance 0.7s infinite alternate ease-in-out; }
.audio-toggle.is-playing .audio-bar:nth-child(2) { animation: bar-dance 0.5s infinite alternate ease-in-out 0.2s; }
.audio-toggle.is-playing .audio-bar:nth-child(3) { animation: bar-dance 0.9s infinite alternate ease-in-out 0.4s; }

@keyframes bar-dance {
  0% { transform: scaleY(0.2); }
  100% { transform: scaleY(1); }
}

/* Menu Mobile Toggle */
.mobile-toggle {
  display: flex;
  flex-direction: column;
  justify-content: center;
  align-items: center;
  gap: 5px;
  width: 38px;
  height: 38px;
  padding: 8px;
  border-radius: var(--radius);
  background: rgba(255, 255, 255, 0.03);
  border: 1px solid var(--border-subtle);
  transition: background-color var(--speed-fast), border-color var(--speed-fast);
}

.mobile-toggle:hover,
.mobile-toggle:focus-visible {
  background: rgba(255, 255, 255, 0.07);
  border-color: var(--border-accent);
}

@media (min-width: 992px) {
  .mobile-toggle {
    display: none;
  }
}

.mobile-toggle span {
  display: block;
  height: 1.5px;
  width: 100%;
  background-color: var(--text-primary);
  transition: transform var(--speed-normal), opacity var(--speed-normal);
}

.mobile-nav {
  position: fixed;
  inset: 0;
  background-color: rgba(11, 10, 9, 0.97);
  backdrop-filter: blur(20px);
  z-index: 99;
  display: flex;
  flex-direction: column;
  justify-content: center;
  align-items: center;
  gap: 2rem;
  opacity: 0;
  pointer-events: none;
  transition: opacity var(--speed-normal) var(--ease-out);
}

.mobile-nav.is-open {
  opacity: 1;
  pointer-events: auto;
}

.mobile-nav__link {
  font-family: var(--font-display);
  font-size: 1.75rem;
  color: var(--text-primary);
  text-decoration: none;
  transition: color var(--speed-fast);
}

.mobile-nav__link:hover {
  color: var(--accent-gold);
}

.mobile-nav__cta {
  margin-top: 1.5rem;
  width: min(320px, 85vw);
  white-space: normal;
  text-align: center;
  line-height: 1.35;
  padding: 0.875rem 1.25rem;
  font-size: 0.8125rem;
  text-wrap: balance;
}

/* Hero Section */
.hero {
  min-height: 100dvh;
  position: relative;
  display: flex;
  align-items: center;
  padding-top: 5rem;
  padding-bottom: 3.5rem;
  overflow: hidden;
  z-index: 2;
}

.hero__grid {
  display: grid;
  grid-template-columns: 1fr;
  gap: 3.5rem;
  align-items: center;
}

@media (min-width: 1024px) {
  .hero__grid {
    grid-template-columns: 1.15fr 0.85fr;
    gap: 4.5rem;
  }
}

.hero__content {
  position: relative;
  z-index: 3;
}

.hero__title {
  font-size: clamp(2.75rem, 5.5vw, 4.75rem);
  line-height: 1.05;
  margin-top: 1rem;
  margin-bottom: 1.5rem;
  letter-spacing: -0.02em;
}

.hero__title em {
  font-family: var(--font-display);
  font-style: italic;
  font-weight: 500;
  color: var(--accent-gold);
}

.hero__desc {
  font-size: 1.1875rem;
  line-height: 1.7;
  max-width: 52ch;
  margin-bottom: 2.25rem;
  color: var(--text-secondary);
}

.hero__actions {
  display: flex;
  flex-wrap: wrap;
  gap: 1.25rem;
  align-items: center;
  margin-bottom: 2.75rem;
}

@media (max-width: 640px) {
  .hero__actions {
    flex-direction: column;
    align-items: stretch;
    width: 100%;
    gap: 0.875rem;
  }

  .hero__actions .btn {
    width: 100%;
    white-space: normal;
    text-align: center;
    line-height: 1.35;
  }
}

.hero__meta {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  gap: 1.5rem;
  padding-top: 1.75rem;
  border-top: 1px solid var(--border-subtle);
  font-family: var(--font-mono);
  font-size: 0.75rem;
  color: var(--text-muted);
}

.hero__meta-item {
  display: flex;
  align-items: center;
  gap: 0.5rem;
}

.hero__visual-wrap {
  position: relative;
}

.hero__visual-frame {
  position: relative;
  background-color: var(--bg-surface);
  border: 1px solid var(--border-accent);
  padding: 0.5rem;
  box-shadow: 0 25px 60px rgba(0, 0, 0, 0.75);
}

.hero__visual-img {
  width: 100%;
  height: 480px;
  object-fit: cover;
  filter: contrast(105%) brightness(95%);
}

@media (min-width: 1024px) {
  .hero__visual-img {
    height: 560px;
  }
}

/* Rodapé Institucional */
.footer {
  background-color: #070605;
  border-top: 1px solid var(--border-subtle);
  padding: 6rem 0 2.5rem;
  position: relative;
  z-index: 2;
}

.footer__grid {
  display: grid;
  grid-template-columns: 1fr;
  gap: 3.5rem;
  margin-bottom: 4.5rem;
}

@media (min-width: 768px) {
  .footer__grid {
    grid-template-columns: 2fr 1.2fr 1.2fr 1.6fr;
  }
}

.footer__brand-title {
  font-family: var(--font-display);
  font-size: 1.5rem;
  margin-bottom: 0.75rem;
  color: var(--text-primary);
}

.footer__brand-desc {
  font-size: 0.9375rem;
  line-height: 1.65;
  color: var(--text-secondary);
  max-width: 34ch;
  margin-bottom: 1.5rem;
}

.footer__col-title {
  font-family: var(--font-mono);
  font-size: 0.75rem;
  font-weight: 700;
  letter-spacing: 0.18em;
  text-transform: uppercase;
  color: var(--accent-gold);
  margin-bottom: 1.25rem;
}

.footer__links {
  list-style: none;
  display: flex;
  flex-direction: column;
  gap: 0.75rem;
}

.footer__link {
  font-size: 0.9375rem;
  color: var(--text-secondary);
  transition: color var(--speed-fast);
}

.footer__link:hover {
  color: var(--text-primary);
}

.footer__meta-line {
  font-family: var(--font-mono);
  font-size: 0.8125rem;
  color: var(--text-secondary);
  line-height: 1.7;
}

.footer__bottom {
  display: flex;
  flex-direction: column;
  gap: 1.25rem;
  align-items: center;
  justify-content: space-between;
  padding-top: 2rem;
  border-top: 1px solid var(--border-subtle);
  font-family: var(--font-mono);
  font-size: 0.75rem;
  color: var(--text-muted);
}

@media (min-width: 768px) {
  .footer__bottom {
    flex-direction: row;
  }
}
