/* ===== Fermenta Studio — Link in Bio ===== */

:root {
  --black: #000000;
  --near-black: #0a0a0a;
  --white: #f5f5f5;
  --silver: #c7c9cc;
  --silver-dim: #8b8d90;
  --orange: #c9611a;
  --orange-soft: rgba(201, 97, 26, 0.35);
  --glass-bg: rgba(10, 10, 10, 0.55);
  --glass-border: rgba(199, 201, 204, 0.28);
  --max-w: 480px;
  --radius: 14px;
}

* {
  box-sizing: border-box;
}

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

body {
  margin: 0;
  min-height: 100vh;
  background: var(--black);
  color: var(--white);
  font-family: "Helvetica Neue", Arial, "Segoe UI", sans-serif;
  letter-spacing: 0.01em;
  -webkit-font-smoothing: antialiased;
  overflow-x: hidden;
}

a {
  color: inherit;
  text-decoration: none;
}

ul {
  list-style: none;
  margin: 0;
  padding: 0;
}

/* ---------- Fundo em vídeo ---------- */

.bg-wrap {
  position: fixed;
  inset: 0;
  width: 100%;
  height: 100%;
  overflow: hidden;
  z-index: 0;
  background: var(--black);
  transform: translateZ(0);
}

.bg-fallback,
.bg-video {
  position: absolute;
  top: 50%;
  left: 50%;
  width: 100%;
  height: 100%;
  object-fit: cover;
  object-position: center 38%;
  transform: translate(-50%, -50%) scale(1);
  transform-origin: center;
}

.bg-fallback {
  z-index: 1;
}

.bg-video {
  z-index: 2;
  will-change: transform;
}

.bg-overlay {
  position: absolute;
  inset: 0;
  z-index: 3;
  background:
    linear-gradient(to bottom, rgba(0,0,0,0.72) 0%, rgba(0,0,0,0.45) 22%, rgba(0,0,0,0.55) 60%, rgba(0,0,0,0.88) 100%);
}

/* ---------- Conteúdo ---------- */

.content {
  position: relative;
  z-index: 4;
  width: 100%;
  max-width: var(--max-w);
  margin: 0 auto;
  padding: clamp(28px, 7vh, 56px) max(20px, env(safe-area-inset-right)) max(32px, calc(env(safe-area-inset-bottom) + 24px)) max(20px, env(safe-area-inset-left));
  display: flex;
  flex-direction: column;
  align-items: center;
}

.hero {
  display: flex;
  flex-direction: column;
  align-items: center;
  text-align: center;
  margin-bottom: 34px;
}

.logo {
  width: min(58vw, 240px);
  height: auto;
  margin-bottom: 22px;
  filter: drop-shadow(0 0 22px rgba(0, 0, 0, 0.6));
}

.headline {
  font-size: clamp(20px, 5.6vw, 26px);
  font-weight: 600;
  line-height: 1.35;
  letter-spacing: 0.03em;
  color: var(--white);
  margin: 0 0 12px;
  text-wrap: balance;
}

.subline {
  font-size: clamp(13.5px, 3.6vw, 15px);
  line-height: 1.55;
  color: var(--silver);
  max-width: 340px;
  margin: 0;
  font-weight: 300;
}

/* ---------- Botões ---------- */

.links {
  width: 100%;
  display: flex;
  flex-direction: column;
  gap: 13px;
  margin-bottom: 40px;
}

.btn {
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 10px;
  width: 100%;
  min-height: 52px;
  padding: 14px 18px;
  border-radius: var(--radius);
  background: var(--glass-bg);
  border: 1px solid var(--glass-border);
  backdrop-filter: blur(10px);
  -webkit-backdrop-filter: blur(10px);
  color: var(--white);
  font-size: 15px;
  font-weight: 500;
  letter-spacing: 0.02em;
  text-align: center;
  transition: transform 0.18s ease, box-shadow 0.25s ease, border-color 0.25s ease, background 0.25s ease;
  -webkit-tap-highlight-color: transparent;
  touch-action: manipulation;
}

.btn-icon {
  display: inline-flex;
  flex-shrink: 0;
  color: var(--silver);
  transition: color 0.25s ease;
}

.btn-text {
  line-height: 1.25;
}

.btn:hover,
.btn:focus-visible,
.btn:active {
  border-color: rgba(201, 97, 26, 0.6);
  box-shadow: 0 0 0 1px rgba(201, 97, 26, 0.15), 0 0 22px var(--orange-soft);
  transform: translateY(-1px);
}

.btn:hover .btn-icon,
.btn:focus-visible .btn-icon,
.btn:active .btn-icon {
  color: var(--orange);
}

.btn-primary {
  background: linear-gradient(180deg, rgba(30, 30, 30, 0.9), rgba(8, 8, 8, 0.9));
  border: 1px solid rgba(199, 201, 204, 0.45);
  font-weight: 700;
  font-size: 16px;
  padding: 18px 20px;
  box-shadow: 0 0 0 1px rgba(201, 97, 26, 0.12), 0 4px 26px rgba(0, 0, 0, 0.55);
}

.btn-primary .btn-icon {
  color: var(--orange);
}

.btn-primary:hover,
.btn-primary:focus-visible,
.btn-primary:active {
  box-shadow: 0 0 0 1px rgba(201, 97, 26, 0.4), 0 0 30px var(--orange-soft);
}

/* ---------- O que analisamos ---------- */

.analysis {
  width: 100%;
  text-align: center;
  margin-bottom: 36px;
}

.analysis-title {
  font-size: 13px;
  font-weight: 600;
  letter-spacing: 0.18em;
  text-transform: uppercase;
  color: var(--silver-dim);
  margin: 0 0 18px;
}

.analysis-grid {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 10px;
}

.analysis-grid li {
  font-size: 12.5px;
  line-height: 1.4;
  color: var(--silver);
  background: rgba(255, 255, 255, 0.03);
  border: 1px solid rgba(199, 201, 204, 0.14);
  border-radius: 10px;
  padding: 12px 10px;
}

/* ---------- Rodapé ---------- */

.site-footer {
  text-align: center;
  padding-top: 12px;
  border-top: 1px solid rgba(199, 201, 204, 0.14);
  width: 100%;
}

.footer-brand {
  font-size: 12px;
  color: var(--silver-dim);
  margin: 0 0 8px;
  letter-spacing: 0.03em;
}

.footer-links {
  font-size: 12px;
  color: var(--silver-dim);
  margin: 0;
}

.footer-links a {
  color: var(--silver);
  transition: color 0.2s ease;
}

.footer-links a:hover,
.footer-links a:focus-visible {
  color: var(--orange);
}

.footer-links span {
  margin: 0 6px;
  color: rgba(199, 201, 204, 0.3);
}

/* ---------- Animações ---------- */

.reveal-in,
.reveal-up,
.reveal {
  opacity: 0;
}

.reveal-in {
  animation: fadeScaleIn 0.9s cubic-bezier(0.16, 1, 0.3, 1) forwards;
}

.reveal-up {
  animation: fadeUp 0.7s cubic-bezier(0.16, 1, 0.3, 1) forwards;
}

.reveal.in-view {
  animation: fadeUp 0.7s cubic-bezier(0.16, 1, 0.3, 1) forwards;
}

.delay-1 { animation-delay: 0.15s; }
.delay-2 { animation-delay: 0.28s; }
.delay-3 { animation-delay: 0.38s; }
.delay-4 { animation-delay: 0.48s; }
.delay-5 { animation-delay: 0.58s; }

@keyframes fadeScaleIn {
  from { opacity: 0; transform: scale(0.92); }
  to { opacity: 1; transform: scale(1); }
}

@keyframes fadeUp {
  from { opacity: 0; transform: translateY(16px); }
  to { opacity: 1; transform: translateY(0); }
}

@media (prefers-reduced-motion: reduce) {
  .reveal-in, .reveal-up, .reveal {
    animation: none !important;
    opacity: 1 !important;
    transform: none !important;
  }
  .bg-video, .bg-fallback {
    transition: none !important;
  }
}

/* ---------- Responsivo ---------- */

@media (min-width: 560px) {
  .content {
    padding-top: clamp(40px, 9vh, 72px);
  }
}

/* Telas curtas (celulares em paisagem, barras de navegador expandidas) */
@media (max-height: 680px) {
  .content {
    padding-top: 20px;
  }
  .logo {
    margin-bottom: 14px;
  }
  .hero {
    margin-bottom: 20px;
  }
  .links {
    gap: 10px;
    margin-bottom: 28px;
  }
  .btn {
    min-height: 46px;
    padding: 11px 18px;
  }
}

/* Telas estreitas (iPhone SE e similares) — evita quebra feia de texto nos botões */
@media (max-width: 350px) {
  .logo {
    width: min(50vw, 200px);
    margin-bottom: 16px;
  }
  .btn {
    padding-left: 12px;
    padding-right: 12px;
    font-size: 14px;
  }
  .btn-primary {
    font-size: 15px;
  }
  .links {
    gap: 11px;
  }
  .analysis-grid li {
    font-size: 12px;
    padding: 11px 8px;
  }
}
