/* Página do Bantuu — identidade do site institucional (www.afrikatec.com.br). */

@font-face {
  font-family: 'D-DIN';
  src: url('/assets/fonts/D-DIN-Bold.woff') format('woff');
  font-weight: 700;
  font-style: normal;
  font-display: swap;
}

@font-face {
  font-family: 'Poppins';
  src: url('/assets/fonts/poppins-300.woff2') format('woff2');
  font-weight: 300;
  font-style: normal;
  font-display: swap;
}

@font-face {
  font-family: 'Poppins';
  src: url('/assets/fonts/poppins-400.woff2') format('woff2');
  font-weight: 400;
  font-style: normal;
  font-display: swap;
}

@font-face {
  font-family: 'Poppins';
  src: url('/assets/fonts/poppins-600.woff2') format('woff2');
  font-weight: 600;
  font-style: normal;
  font-display: swap;
}

:root {
  --purple-1000: #12061f;
  --purple-950: #1a0930;
  --purple-900: #280f44;
  --purple-800: #36165c;
  --purple-700: #4e2379;
  --lilac-400: #c169ff;
  --lilac-300: #d29bff;
  --red-500: #ff3136;
  --red-600: #e22026;
  --white: #ffffff;
  --text-soft: rgba(255, 255, 255, 0.76);
  --text-muted: rgba(255, 255, 255, 0.56);
  --line-soft: rgba(255, 255, 255, 0.14);
  --grad-deep: radial-gradient(120% 140% at 100% 0%, #3b1766 0%, var(--purple-950) 52%, var(--purple-1000) 100%);
  --font-body: 'Poppins', system-ui, -apple-system, 'Segoe UI', sans-serif;
  --font-display: 'D-DIN', 'Poppins', system-ui, sans-serif;
  --radius-sm: 6px;
  --container: 1240px;
  --gutter: clamp(1.25rem, 4vw, 2.75rem);
  --ease-out: cubic-bezier(0.16, 1, 0.3, 1);
}

*,
*::before,
*::after {
  box-sizing: border-box;
}

html {
  -webkit-text-size-adjust: 100%;
  background-color: var(--purple-950);
}

body {
  position: relative;
  display: flex;
  flex-direction: column;
  min-height: 100vh;
  min-height: 100dvh;
  margin: 0;
  overflow-x: hidden;
  background: var(--grad-deep);
  background-color: var(--purple-950);
  color: var(--white);
  font-family: var(--font-body);
  font-size: 1rem;
  line-height: 1.6;
  -webkit-font-smoothing: antialiased;
}

/* Leão em traço — mesmo padrão decorativo do institucional */
body::before {
  content: '';
  position: fixed;
  right: -8vw;
  bottom: -12vh;
  z-index: 0;
  width: min(72vw, 780px);
  aspect-ratio: 889 / 893;
  background: url('/assets/bg-leao.webp') no-repeat center / contain;
  /* O traço do leão é escuro: 0.1 (valor do institucional em seções claras) some neste fundo */
  opacity: 0.35;
  pointer-events: none;
}

.grain {
  position: fixed;
  inset: -50%;
  z-index: 1;
  opacity: 0.07;
  pointer-events: none;
  background-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' width='180' height='180'%3E%3Cfilter id='n'%3E%3CfeTurbulence type='fractalNoise' baseFrequency='.85' numOctaves='3' stitchTiles='stitch'/%3E%3C/filter%3E%3Crect width='100%25' height='100%25' filter='url(%23n)'/%3E%3C/svg%3E");
  animation: grain 7s steps(8) infinite;
}

@keyframes grain {
  0%,
  100% {
    transform: translate(0, 0);
  }
  20% {
    transform: translate(-4%, 3%);
  }
  40% {
    transform: translate(3%, -5%);
  }
  60% {
    transform: translate(-2%, 6%);
  }
  80% {
    transform: translate(5%, -2%);
  }
}

.container {
  position: relative;
  z-index: 2;
  width: min(var(--container), 100% - 2 * var(--gutter));
  margin-inline: auto;
}

.topbar {
  padding-block: clamp(1.5rem, 4vw, 2.5rem);
}

.brand {
  display: inline-block;
}

.brand img {
  display: block;
  width: clamp(128px, 12vw, 154px);
  height: auto;
}

.hero {
  display: flex;
  flex: 1;
  flex-direction: column;
  justify-content: center;
  padding-block: clamp(2.5rem, 8vw, 6rem);
}

.eyebrow {
  display: inline-flex;
  align-items: center;
  gap: 0.85rem;
  margin: 0 0 1.5rem;
  color: var(--lilac-300);
  font-size: 0.78rem;
  font-weight: 600;
  letter-spacing: 0.24em;
  text-transform: uppercase;
}

.eyebrow::before {
  content: '';
  width: 34px;
  height: 3px;
  border-radius: 2px;
  background: var(--red-500);
}

.display {
  max-width: 14ch;
  margin: 0 0 1.5rem;
  font-family: var(--font-display);
  font-size: clamp(2.5rem, 6.5vw, 5.2rem);
  font-weight: 700;
  line-height: 0.98;
  letter-spacing: 0.005em;
  text-transform: uppercase;
}

.lead {
  max-width: 52ch;
  margin: 0 0 2.5rem;
  color: var(--text-soft);
  font-size: clamp(1rem, 1.25vw, 1.125rem);
  font-weight: 300;
  line-height: 1.75;
}

.lead a {
  color: var(--white);
  font-weight: 600;
  text-decoration: underline;
  text-decoration-color: rgba(255, 49, 54, 0.7);
  text-decoration-thickness: 2px;
  text-underline-offset: 4px;
  transition: color 0.35s var(--ease-out);
}

.lead a:hover {
  color: var(--red-500);
}

.actions {
  display: flex;
  flex-wrap: wrap;
  gap: 1rem;
}

.btn {
  position: relative;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 0.65rem;
  min-height: 52px;
  padding: 1rem 1.85rem;
  border: 2px solid transparent;
  border-radius: var(--radius-sm);
  color: var(--white);
  font-size: 0.82rem;
  font-weight: 600;
  letter-spacing: 0.12em;
  line-height: 1;
  text-decoration: none;
  text-transform: uppercase;
  white-space: nowrap;
  transition:
    background-color 0.35s var(--ease-out),
    border-color 0.35s var(--ease-out),
    color 0.35s var(--ease-out),
    box-shadow 0.35s var(--ease-out);
}

.btn svg {
  flex: none;
  width: 1.05em;
  height: 1.05em;
  transition: transform 0.35s var(--ease-out);
}

.btn:hover svg {
  transform: translateX(4px);
}

.btn-red {
  background: var(--red-600);
  box-shadow: 0 12px 32px rgba(226, 32, 38, 0.32);
}

.btn-red:hover {
  background: var(--red-500);
  box-shadow: 0 16px 40px rgba(255, 49, 54, 0.42);
}

.btn-outline-light {
  border-color: rgba(255, 255, 255, 0.5);
  text-transform: none;
  letter-spacing: 0.04em;
}

.btn-outline-light:hover {
  border-color: var(--white);
  background: rgba(255, 255, 255, 0.08);
}

.footer {
  position: relative;
  z-index: 2;
  overflow: hidden;
}

.wordmark {
  margin: 0;
  color: transparent;
  font-family: var(--font-display);
  font-size: clamp(5rem, 22vw, 20rem);
  font-weight: 700;
  line-height: 0.8;
  text-align: center;
  -webkit-text-stroke: 1px rgba(255, 255, 255, 0.16);
  user-select: none;
}

.legal {
  display: flex;
  flex-wrap: wrap;
  justify-content: space-between;
  gap: 0.75rem 2rem;
  padding-block: 1.5rem 2rem;
  border-top: 1px solid var(--line-soft);
  color: var(--text-muted);
  font-size: 0.8rem;
}

.legal a {
  color: var(--text-soft);
  text-decoration: none;
  transition: color 0.35s var(--ease-out);
}

.legal a:hover {
  color: var(--white);
}

:focus-visible {
  outline: 3px solid var(--lilac-400);
  outline-offset: 3px;
}

::selection {
  background: var(--lilac-400);
  color: var(--purple-950);
}

@media (max-width: 520px) {
  .actions .btn {
    width: 100%;
  }
}

@media (prefers-reduced-motion: reduce) {
  .grain {
    animation: none;
  }

  .btn,
  .btn svg,
  .lead a,
  .legal a {
    transition: none;
  }
}
