/* ============================================
   PERIFA MÍDIA — Landing Artesanal
   CSS puro · BEM · Mobile-first
   ============================================ */

/* ---------- Reset ---------- */
*, *::before, *::after { box-sizing: border-box; }
* { margin: 0; padding: 0; }

html {
  scroll-behavior: smooth;
  -webkit-font-smoothing: antialiased;
  -moz-osx-font-smoothing: grayscale;
}

body {
  font-family: 'Inter', -apple-system, BlinkMacSystemFont, sans-serif;
  background: #0A0A0A;
  color: #EDE9DF;
  font-size: 16px;
  line-height: 1.5;
  font-weight: 400;
  overflow-x: hidden;
}

img { max-width: 100%; display: block; }
a { color: inherit; text-decoration: none; }
button { font: inherit; cursor: pointer; border: 0; background: none; color: inherit; }
input { font: inherit; color: inherit; }

em { font-style: italic; }

/* ---------- Variables ---------- */
:root {
  --preto: #0A0A0A;
  --bone: #EDE9DF;
  --roxo: #6C2EF5;
  --stone: #9A9A82;
  --lime: #D7FF4B;

  --f-display: 'Anton', sans-serif;
  --f-body: 'Inter', sans-serif;
  --f-mono: 'JetBrains Mono', monospace;
}

/* ---------- Typography utilities ---------- */

/* ---------- Buttons ---------- */
.btn {
  display: inline-flex;
  align-items: center;
  gap: 12px;
  font-family: var(--f-body);
  font-weight: 500;
  font-size: 15px;
  padding: 16px 28px;
  border: 1px solid transparent;
  transition: all .25s cubic-bezier(.4,0,.2,1);
  cursor: pointer;
  letter-spacing: -0.01em;
  white-space: nowrap;
}
.btn__arrow {
  display: inline-block;
  transition: transform .25s cubic-bezier(.4,0,.2,1);
}
.btn:hover .btn__arrow { transform: translate(4px, -4px); }

.btn--primary {
  background: var(--roxo);
  color: var(--bone);
}
.btn--primary:hover {
  background: #4B1AC9;
  transform: translateY(-2px);
}

.btn--ghost {
  background: transparent;
  color: var(--bone);
  border-color: rgba(237,233,223,0.3);
}
.btn--ghost:hover {
  border-color: var(--bone);
  background: rgba(237,233,223,0.05);
}

.btn--inverse {
  background: var(--preto);
  color: var(--bone);
}
.btn--inverse:hover {
  background: #1a1a1a;
  transform: translateY(-2px);
}

.btn--block {
  width: 100%;
  justify-content: center;
}

/* ============================================
   HERO
   ============================================ */
.hero {
  min-height: 100vh;
  background-color: var(--preto);
  padding: 0 0 64px;
  position: relative;
  display: flex;
  flex-direction: column;
  overflow: hidden;
}

.nav {
  display: flex;
  justify-content: space-between;
  align-items: center;
  padding: 32px 28px 60px;
  position: relative;
  z-index: 10;
}

.nav__logo {
  display: inline-block;
  line-height: 1;
}
.nav__logo-img {
  height: 32px;
  width: auto;
  display: block;
}

.nav__link {
  font-size: 13px;
  color: var(--bone);
  display: inline-flex;
  align-items: center;
  gap: 8px;
  padding: 8px 0;
  border-bottom: 1px solid transparent;
  transition: border-color .2s ease;
}
.nav__link:hover { border-bottom-color: var(--roxo); }
.nav__link-arrow { transition: transform .2s ease; }
.nav__link:hover .nav__link-arrow { transform: translateX(4px); }

.hero__inner {
  max-width: none;
  width: 100%;
  margin: 0 auto;
  flex: 1;
  display: grid;
  grid-template-columns: minmax(420px, 50%) 1fr;
  gap: 60px;
  align-items: stretch;
  position: relative;
  padding-left: 28px;
}

.hero__content {
  display: flex;
  flex-direction: column;
  justify-content: center;
  max-width: 620px;
  position: relative;
  z-index: 5;
  padding: 24px 0;
}

.hero__media {
  position: absolute;
  top: 0;
  right: 0;
  width: 60%;
  height: 100vh;
  overflow: hidden;
  z-index: 1;
}

.hero__media::before {
  content: '';
  position: absolute;
  top: 0;
  left: 0;
  bottom: 0;
  right: 0;
  background: linear-gradient(
    90deg,
    #0A0A0A 0%,
    rgba(10, 10, 10, 0.85) 30%,
    rgba(10, 10, 10, 0.4) 70%,
    rgba(10, 10, 10, 0) 100%
  );
  z-index: 2;
  pointer-events: none;
}

.hero__video {
  position: absolute;
  top: 0;
  left: 0;
  width: 100%;
  height: 100%;
  display: block;
  object-fit: cover;
  object-position: center center;
}

.hero__kicker {
  font-family: var(--f-mono);
  font-size: 12px;
  letter-spacing: 0.15em;
  text-transform: uppercase;
  color: var(--stone);
  margin-bottom: 24px;
  display: flex;
  align-items: center;
  gap: 10px;
}
.hero__kicker-dot {
  display: inline-block;
  width: 8px;
  height: 8px;
  background: var(--lime);
  border-radius: 50%;
  animation: pulse 2s ease-in-out infinite;
}
@keyframes pulse {
  0%, 100% { opacity: 1; }
  50% { opacity: 0.4; }
}

.hero__title {
  font-family: var(--f-display);
  font-weight: 400;
  font-size: clamp(40px, 8.5vw, 120px);
  line-height: 0.9;
  letter-spacing: -0.02em;
  color: var(--bone);
  margin-bottom: 32px;
}
.hero__line {
  display: block;
}
.hero__line--indent {
  padding-left: clamp(20px, 6vw, 90px);
}
.hero__line em {
  color: var(--roxo);
  font-family: 'Inter', sans-serif;
  font-weight: 300;
  font-style: italic;
  font-size: 0.7em;
  letter-spacing: -0.04em;
}
.hero__italic {
  color: var(--roxo);
  font-family: 'Inter', sans-serif;
  font-weight: 300;
  font-style: italic;
  font-size: 0.7em;
  letter-spacing: -0.04em;
}
.hero__line--shift {
  padding-left: clamp(40px, 12vw, 180px);
}

.hero__lede {
  font-size: clamp(14px, 1.3vw, 17px);
  line-height: 1.5;
  max-width: 500px;
  color: rgba(237,233,223,0.7);
  margin-bottom: 28px;
  font-weight: 300;
}
.hero__lede strong {
  color: var(--bone);
  font-weight: 500;
  border-bottom: 2px solid var(--roxo);
  padding-bottom: 1px;
}

.hero__actions {
  display: flex;
  gap: 16px;
  flex-wrap: wrap;
  margin-bottom: 32px;
}

.hero__corner-tag {
  position: absolute;
  bottom: 32px;
  right: 28px;
  font-family: var(--f-mono);
  font-size: 10px;
  color: var(--stone);
  letter-spacing: 0.15em;
  writing-mode: vertical-rl;
  transform: rotate(180deg);
}

/* ============================================
   CONTATO
   ============================================ */
.contato {
  background: var(--preto);
  color: var(--bone);
  padding: 140px 28px 0;
}

.contato__inner {
  max-width: 1280px;
  margin: 0 auto;
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 80px;
  align-items: start;
  padding-bottom: 140px;
}

.contato__left {
  position: sticky;
  top: 60px;
}

.contato__title {
  font-family: var(--f-display);
  font-weight: 400;
  font-size: clamp(40px, 5.5vw, 80px);
  line-height: 0.95;
  letter-spacing: -0.02em;
  margin-bottom: 64px;
}
.contato__title em {
  font-family: 'Inter', sans-serif;
  font-style: italic;
  font-weight: 200;
  color: var(--roxo);
}

.contato__list {
  list-style: none;
  border-top: 1px solid rgba(237,233,223,0.15);
}
.contato__list li {
  display: flex;
  justify-content: space-between;
  align-items: baseline;
  padding: 20px 0;
  border-bottom: 1px solid rgba(237,233,223,0.15);
  font-size: 14px;
}
.contato__list-key {
  font-family: var(--f-mono);
  font-size: 11px;
  color: var(--stone);
  text-transform: uppercase;
  letter-spacing: 0.1em;
}
.contato__list-val {
  text-align: right;
  color: var(--bone);
}

/* ----- Form ----- */
.form {
  display: flex;
  flex-direction: column;
  gap: 32px;
  padding: 48px;
  background: var(--bone);
  color: var(--preto);
  position: relative;
}
.form::before {
  content: 'Contato';
  position: absolute;
  top: -10px;
  left: 32px;
  background: var(--preto);
  color: var(--bone);
  padding: 4px 12px;
  font-family: var(--f-mono);
  font-size: 11px;
  letter-spacing: 0.15em;
  text-transform: uppercase;
}

.form__row {
  display: flex;
  flex-direction: column;
  gap: 8px;
  border-bottom: 1px solid rgba(10,10,10,0.15);
  padding-bottom: 12px;
}

.form__label {
  font-family: var(--f-mono);
  font-size: 11px;
  letter-spacing: 0.1em;
  text-transform: uppercase;
  color: rgba(10,10,10,0.5);
}

.form__input {
  background: transparent;
  border: 0;
  outline: none;
  padding: 4px 0;
  font-size: 18px;
  font-weight: 400;
  color: var(--preto);
  width: 100%;
  font-family: var(--f-body);
}
.form__input:focus {
  border-color: var(--roxo);
}

.form__row:focus-within {
  border-color: var(--roxo);
}

.form__small {
  font-size: 12px;
  color: rgba(10,10,10,0.5);
  text-align: center;
  margin-top: -16px;
}

.form__success {
  background: var(--roxo);
  color: var(--bone);
  padding: 24px;
  text-align: center;
  font-size: 16px;
  font-weight: 500;
}

/* ----- Footer ----- */
.footer {
  border-top: 1px solid rgba(237,233,223,0.15);
  padding: 32px 0;
  display: flex;
  justify-content: space-between;
  align-items: center;
  flex-wrap: wrap;
  gap: 24px;
  font-size: 13px;
}
.footer__brand {
  font-family: var(--f-display);
  letter-spacing: -0.02em;
  font-size: 15px;
}
.footer__sep { color: var(--stone); margin: 0 12px; }
.footer__left { color: var(--stone); }
.footer__right { display: flex; gap: 24px; }
.footer__right a {
  color: var(--bone);
  border-bottom: 1px solid transparent;
  transition: border-color .2s ease;
}
.footer__right a:hover { border-bottom-color: var(--roxo); }

/* ============================================
   RESPONSIVE — Mobile
   ============================================ */
@media (max-width: 900px) {
  .hero {
    padding: 24px 20px 48px;
    min-height: 90vh;
  }
  .hero__corner-tag { display: none; }

  .hero__inner {
    grid-template-columns: 1fr;
    gap: 40px;
    text-align: left;
  }

  .hero__content {
    padding-left: 0;
    max-width: 100%;
    position: relative;
    z-index: 5;
  }

  .hero__media {
    position: absolute;
    top: 0;
    right: 0;
    bottom: 0;
    width: 100%;
    height: 100%;
    opacity: 0.4;
  }

  .hero__media::before {
    background: linear-gradient(
      180deg,
      rgba(10, 10, 10, 0.6) 0%,
      rgba(10, 10, 10, 0.4) 50%,
      rgba(10, 10, 10, 0.95) 100%
    );
    width: 100%;
  }

  .contato {
    padding: 80px 20px 0;
  }
  .contato__inner {
    grid-template-columns: 1fr;
    gap: 48px;
    padding-bottom: 80px;
  }
  .contato__left { position: static; }

  .form {
    padding: 32px 24px;
  }
  .form::before {
    left: 20px;
  }

  .footer {
    flex-direction: column;
    align-items: flex-start;
  }
}

/* ============================================
   ANIMATIONS — Sutil no scroll
   ============================================ */

@keyframes rise {
  to { opacity: 1; transform: translateY(0); }
}

@media (prefers-reduced-motion: reduce) {
  *, *::before, *::after {
    animation: none !important;
    transition: none !important;
  }
}
