/* Site institucional da Yofi. Visual escuro da marca: azul-marinho, ondas e ciano no destaque. */

@font-face { font-family: "Poppins"; font-weight: 400; font-display: swap; src: url("/assets/fonts/poppins-400.woff2") format("woff2"); }
@font-face { font-family: "Poppins"; font-weight: 500; font-display: swap; src: url("/assets/fonts/poppins-500.woff2") format("woff2"); }
@font-face { font-family: "Poppins"; font-weight: 600; font-display: swap; src: url("/assets/fonts/poppins-600.woff2") format("woff2"); }
@font-face { font-family: "Poppins"; font-weight: 700; font-display: swap; src: url("/assets/fonts/poppins-700.woff2") format("woff2"); }

:root {
  --fundo: #050F2C;
  --fundo-claro: #07143A;
  --cartao: #0C1D4D;
  --borda: rgba(159, 216, 255, .14);
  --texto: #F4F8FF;
  --texto-suave: #B4C3E3;
  --azul: #1565D8;
  --ciano: #29C5F6;
  --degrade: linear-gradient(90deg, #4F8DE6, #29C5F6);
  --violeta: #A78BFA;
  --amarelo: #FBBF24;
  --raio: 18px;
}

*, *::before, *::after { box-sizing: border-box; }

html { scroll-behavior: smooth; scroll-padding-top: 84px; -webkit-text-size-adjust: 100%; }

body {
  margin: 0;
  background: var(--fundo);
  color: var(--texto);
  font-family: "Poppins", system-ui, -apple-system, "Segoe UI", sans-serif;
  font-size: 1rem;
  line-height: 1.65;
  -webkit-font-smoothing: antialiased;
}

img { max-width: 100%; height: auto; display: block; }
a { color: inherit; }
h1, h2, h3, p { margin: 0; }
h1, h2, h3 { line-height: 1.2; font-weight: 600; text-wrap: balance; }
h1 em, h2 em { font-style: normal; background: var(--degrade); -webkit-background-clip: text; background-clip: text; color: transparent; }

.largura { width: min(1160px, 100% - 40px); margin-inline: auto; }

.pular { position: absolute; left: -999px; top: 8px; background: #fff; color: #050F2C; padding: 8px 14px; border-radius: 8px; z-index: 20; }
.pular:focus { left: 8px; }

:focus-visible { outline: 2px solid var(--ciano); outline-offset: 3px; border-radius: 6px; }

/* Topo */
.topo { position: sticky; top: 0; z-index: 10; background: rgba(5, 15, 44, .86); backdrop-filter: blur(12px); -webkit-backdrop-filter: blur(12px); border-bottom: 1px solid var(--borda); }
.topo-linha { display: flex; align-items: center; gap: 28px; min-height: 68px; }
.marca img { width: 108px; }
.menu { display: flex; gap: 28px; margin-left: auto; }
.menu a, .rodape nav a { text-decoration: none; color: var(--texto-suave); font-size: .95rem; font-weight: 500; transition: color .15s; }
.menu a:hover, .rodape nav a:hover { color: #fff; }

/* Botões */
.botao { display: inline-flex; align-items: center; justify-content: center; padding: 13px 26px; border-radius: 999px; font-weight: 600; font-size: 1rem; text-decoration: none; border: 1.5px solid transparent; transition: transform .15s, box-shadow .15s, background .15s, border-color .15s; white-space: nowrap; }
.botao:hover { transform: translateY(-1px); }
.botao-cheio { background: linear-gradient(90deg, #1565D8, #29C5F6); color: #fff; box-shadow: 0 10px 28px rgba(21, 101, 216, .38); }
.botao-cheio:hover { box-shadow: 0 14px 34px rgba(41, 197, 246, .4); }
.botao-contorno { border-color: rgba(159, 216, 255, .4); color: #fff; }
.botao-contorno:hover { border-color: var(--ciano); background: rgba(41, 197, 246, .08); }
.botao-pequeno { padding: 9px 18px; font-size: .9rem; }
.botao-grande { padding: 16px 34px; font-size: 1.1rem; }

.sobretitulo { color: var(--ciano); font-weight: 600; font-size: .82rem; letter-spacing: .16em; text-transform: uppercase; margin-bottom: 14px; }

/* Abertura */
.abertura { position: relative; overflow: hidden; padding: 88px 0 190px; background: radial-gradient(1100px 620px at 82% 18%, rgba(21, 101, 216, .34), transparent 62%), linear-gradient(160deg, #050F2C 0%, #081A4A 100%); }
.abertura-grade { position: relative; z-index: 1; display: grid; grid-template-columns: 1.15fr .85fr; gap: 48px; align-items: center; }
h1 { font-size: clamp(2.2rem, 5.2vw, 3.7rem); font-weight: 700; letter-spacing: -.02em; }
.abertura-texto { margin-top: 22px; max-width: 34em; color: var(--texto-suave); font-size: 1.12rem; }
.acoes { display: flex; flex-wrap: wrap; gap: 14px; margin-top: 34px; }
.abertura-arte { position: relative; display: grid; place-items: center; }
.abertura-arte img { position: relative; width: min(380px, 100%); filter: drop-shadow(0 30px 50px rgba(3, 8, 28, .6)); }
.brilho { position: absolute; width: 78%; aspect-ratio: 1; border-radius: 50%; background: radial-gradient(circle, rgba(41, 197, 246, .34), transparent 66%); filter: blur(12px); }
.ondas { position: absolute; left: 0; bottom: -1px; width: 100%; height: 220px; }

/* Seções */
.secao { padding: 92px 0; }
.secao-clara { background: var(--fundo-claro); }
.cabeca { max-width: 760px; margin-bottom: 52px; }
.cabeca h2, .contato h2 { font-size: clamp(1.7rem, 3.6vw, 2.5rem); letter-spacing: -.01em; }
.cabeca p:not(.sobretitulo) { margin-top: 18px; color: var(--texto-suave); font-size: 1.06rem; }

/* Pilares */
.pilares { display: grid; grid-template-columns: repeat(4, 1fr); gap: 20px; }
.pilar { background: var(--cartao); border: 1px solid var(--borda); border-radius: var(--raio); padding: 28px 24px; }
.pilar-icone { display: grid; place-items: center; width: 48px; height: 48px; border-radius: 14px; background: linear-gradient(135deg, rgba(21, 101, 216, .5), rgba(41, 197, 246, .28)); margin-bottom: 20px; }
.pilar-icone svg { width: 24px; height: 24px; fill: none; stroke: #DDF4FF; stroke-width: 1.7; stroke-linecap: round; stroke-linejoin: round; }
.pilar h3 { font-size: 1.1rem; margin-bottom: 10px; }
.pilar p { color: var(--texto-suave); font-size: .96rem; }

/* Produtos */
.produtos { display: grid; grid-template-columns: 1fr 1fr; gap: 24px; }
.produto { position: relative; display: flex; flex-direction: column; background: var(--cartao); border: 1px solid var(--borda); border-radius: 22px; padding: 34px 32px 30px; overflow: hidden; }
.produto::before { content: ""; position: absolute; inset: 0 0 auto 0; height: 4px; background: var(--degrade); }
.produto-school::before { background: linear-gradient(90deg, var(--violeta), var(--amarelo)); }
.produto-topo { display: flex; align-items: center; justify-content: space-between; gap: 16px; flex-wrap: wrap; margin-bottom: 26px; }
.produto-topo img { width: 230px; }
.selo { font-size: .78rem; font-weight: 600; padding: 5px 12px; border-radius: 999px; background: rgba(41, 197, 246, .12); color: #9FDFFB; border: 1px solid rgba(41, 197, 246, .3); white-space: nowrap; }
.selo-ativo { background: rgba(52, 211, 153, .12); color: #7CE7BF; border-color: rgba(52, 211, 153, .32); }
.produto h3 { font-size: 1.35rem; margin-bottom: 12px; }
.produto > p { color: var(--texto-suave); }
.lista { list-style: none; padding: 0; margin: 22px 0 28px; display: grid; gap: 11px; }
.lista li { position: relative; padding-left: 30px; font-size: .98rem; }
.lista li::before { content: ""; position: absolute; left: 0; top: .32em; width: 18px; height: 18px; border-radius: 50%; background: rgba(41, 197, 246, .18) url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 18 18'%3E%3Cpath d='M5 9.300l2.600 2.600L13 6.500' fill='none' stroke='%2329C5F6' stroke-width='1.800' stroke-linecap='round' stroke-linejoin='round'/%3E%3C/svg%3E") center / 18px no-repeat; }
.produto-school .lista li::before { background-color: rgba(167, 139, 250, .2); background-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 18 18'%3E%3Cpath d='M5 9.300l2.600 2.600L13 6.500' fill='none' stroke='%23C4B5FD' stroke-width='1.800' stroke-linecap='round' stroke-linejoin='round'/%3E%3C/svg%3E"); }
.produto-link { margin-top: auto; font-weight: 600; text-decoration: none; color: var(--ciano); }
.produto-school .produto-link { color: #C4B5FD; }
.produto-link span { display: inline-block; transition: transform .15s; }
.produto-link:hover span { transform: translateX(4px); }

.futuro { margin-top: 24px; display: flex; align-items: center; justify-content: space-between; gap: 32px; padding: 34px 36px; border-radius: 22px; border: 1px dashed rgba(159, 216, 255, .34); background: linear-gradient(120deg, rgba(21, 101, 216, .2), rgba(41, 197, 246, .06)); }
.futuro h3 { font-size: 1.35rem; margin-bottom: 10px; }
.futuro p { color: var(--texto-suave); max-width: 46em; }

/* Passos */
.passos { list-style: none; margin: 0; padding: 0; display: grid; grid-template-columns: repeat(4, 1fr); gap: 20px; }
.passos li { position: relative; padding-top: 4px; }
.passo-numero { display: grid; place-items: center; width: 44px; height: 44px; border-radius: 50%; background: linear-gradient(135deg, #1565D8, #29C5F6); font-weight: 700; font-size: 1.1rem; margin-bottom: 18px; }
.passos li:not(:last-child)::after { content: ""; position: absolute; top: 26px; left: 58px; right: -6px; height: 1px; background: linear-gradient(90deg, rgba(41, 197, 246, .5), rgba(41, 197, 246, 0)); }
.passos h3 { font-size: 1.1rem; margin-bottom: 8px; }
.passos p { color: var(--texto-suave); font-size: .96rem; }

/* Contato */
.contato { background: radial-gradient(800px 380px at 50% 100%, rgba(21, 101, 216, .34), transparent 70%); text-align: center; }
.contato-caixa { max-width: 720px; }
.contato p:not(.sobretitulo) { margin: 18px auto 34px; color: var(--texto-suave); font-size: 1.06rem; }

/* Rodapé */
.rodape { border-top: 1px solid var(--borda); padding: 34px 0; background: #040B22; }
.rodape-linha { display: flex; align-items: center; gap: 28px; flex-wrap: wrap; }
.rodape img { width: 92px; }
.rodape nav { display: flex; gap: 24px; flex-wrap: wrap; }
.rodape p { margin-left: auto; color: #8696BC; font-size: .88rem; }

/* Telas menores */
@media (max-width: 980px) {
  .pilares, .passos { grid-template-columns: repeat(2, 1fr); }
  .passos li::after { display: none; }
  .passos { gap: 32px 20px; }
  .produtos { grid-template-columns: 1fr; }
  .futuro { flex-direction: column; align-items: flex-start; }
}

@media (max-width: 760px) {
  .menu { display: none; }
  .topo-linha { justify-content: space-between; }
  .abertura { padding: 56px 0 150px; }
  .abertura-grade { grid-template-columns: 1fr; gap: 36px; }
  .abertura-arte { order: -1; }
  .abertura-arte img { width: 190px; }
  .secao { padding: 68px 0; }
  .cabeca { margin-bottom: 38px; }
  .produto { padding: 30px 24px 26px; }
  .produto-topo img { width: 200px; }
  .futuro { padding: 28px 24px; }
  .rodape-linha { flex-direction: column; align-items: flex-start; gap: 18px; }
  .rodape p { margin-left: 0; }
}

@media (max-width: 520px) {
  .pilares, .passos { grid-template-columns: 1fr; }
  .acoes .botao, .futuro .botao { width: 100%; }
  .botao-grande { font-size: 1rem; padding: 15px 22px; width: 100%; }
}

@media (prefers-reduced-motion: reduce) {
  html { scroll-behavior: auto; }
  .botao, .produto-link span { transition: none; }
}
