/* =========================================================================
   JOVEM DEV — Home pública (tema CLARO, tons azulados, degradês suaves)
   PHP + HTML + CSS puro. Animações com anime.js (home.js / visual-effects.js).
   ========================================================================= */
:root {
    --bg: #ffffff;
    --bg-soft: #eef4ff;
    --surface: #ffffff;
    --primary: #2563eb;   /* azul */
    --primary-d: #1e40af;
    --secondary: #06b6d4; /* ciano */
    --accent: #6366f1;    /* índigo — uso raro */
    --ink: #15243d;       /* texto */
    --muted: #5d6e85;
    --line: rgba(20, 40, 80, 0.10);
    --grad: linear-gradient(135deg, #2563eb 0%, #06b6d4 100%);
    --shadow: 0 18px 44px rgba(30, 58, 138, 0.12);
    --shadow-soft: 0 10px 26px rgba(30, 58, 138, 0.08);
    --font: 'Manrope', system-ui, -apple-system, 'Segoe UI', Roboto, Arial, sans-serif;
    --mono: 'JetBrains Mono', 'Fira Code', Consolas, monospace;
}
* { box-sizing: border-box; margin: 0; padding: 0; }
.home {
    font-family: var(--font); color: var(--ink); line-height: 1.6; background: var(--bg);
    background-image: radial-gradient(circle at 12% -5%, rgba(37,99,235,.08), transparent 40%),
                      radial-gradient(circle at 100% 0%, rgba(6,182,212,.08), transparent 38%);
    -webkit-font-smoothing: antialiased;
}
a { text-decoration: none; color: inherit; }
img { max-width: 100%; display: block; }
.hp-container { max-width: 1160px; margin: 0 auto; padding: 0 24px; }
.hp-grad { background: var(--grad); -webkit-background-clip: text; background-clip: text; color: transparent; }
.hp-skip { position: absolute; left: -999px; top: 0; background: var(--primary); color: #fff; padding: 10px 16px; border-radius: 0 0 10px 0; z-index: 100; }
.hp-skip:focus { left: 0; }
::selection { background: rgba(37, 99, 235, .18); }

/* ---------- Buttons ---------- */
.hp-btn { display: inline-flex; align-items: center; gap: 8px; padding: 12px 22px; border-radius: 30px; font-weight: 700; font-family: var(--font); cursor: pointer; border: 1px solid transparent; transition: transform .18s, box-shadow .18s, background .18s, color .18s; }
.hp-btn--sm { padding: 9px 16px; font-size: .9rem; }
.hp-btn--lg { padding: 14px 28px; font-size: 1.05rem; }
.hp-btn--primary { background: var(--grad); color: #fff; box-shadow: 0 10px 22px rgba(37, 99, 235, .28); }
.hp-btn--primary:hover { transform: translateY(-2px); box-shadow: 0 16px 30px rgba(37, 99, 235, .34); }
.hp-btn--ghost { background: #fff; color: var(--primary); border-color: var(--line); }
.hp-btn--ghost:hover { border-color: var(--primary); transform: translateY(-2px); }
.hp-btn--light { background: #fff; color: var(--primary); }
.hp-btn--light:hover { transform: translateY(-2px); box-shadow: var(--shadow); }

/* ---------- Header ---------- */
.hp-header { position: sticky; top: 0; z-index: 50; background: rgba(255, 255, 255, .72); backdrop-filter: blur(10px); border-bottom: 1px solid transparent; transition: border-color .2s, box-shadow .2s, background .2s; }
.hp-header.is-scrolled { border-bottom-color: var(--line); box-shadow: 0 6px 20px rgba(30, 58, 138, .06); background: rgba(255, 255, 255, .9); }
.hp-nav { display: flex; align-items: center; justify-content: space-between; height: 72px; }
.hp-logo { font-weight: 800; font-size: 1.25rem; display: flex; align-items: center; gap: 9px; color: var(--ink); }
.hp-logo__mark { font-family: var(--mono); background: var(--grad); color: #fff; padding: 3px 9px; border-radius: 9px; font-size: .95rem; }
.hp-menu { display: flex; align-items: center; gap: 26px; }
.hp-menu a { font-weight: 600; color: #3a4a61; transition: color .15s; }
.hp-menu a:hover { color: var(--primary); }
.hp-menu a.hp-btn--primary { color: #fff; }
/* burger mobile (CSS-only) */
.hp-burger { display: none; flex-direction: column; gap: 5px; cursor: pointer; padding: 8px; }
.hp-burger span { width: 24px; height: 2px; background: var(--ink); border-radius: 2px; transition: .2s; }

/* ---------- Hero ---------- */
.hp-hero { position: relative; overflow: hidden; padding: 78px 0 84px; background: linear-gradient(180deg, var(--bg-soft) 0%, #ffffff 100%); }
.hp-blob { position: absolute; border-radius: 50%; filter: blur(70px); opacity: .5; pointer-events: none; }
.hp-blob--1 { width: 420px; height: 420px; background: rgba(37, 99, 235, .30); top: -120px; right: -80px; }
.hp-blob--2 { width: 360px; height: 360px; background: rgba(6, 182, 212, .28); bottom: -140px; left: -100px; }
.hp-hero__grid { position: relative; display: grid; grid-template-columns: 1.1fr .9fr; gap: 48px; align-items: center; }
.hp-eyebrow { display: inline-block; font-family: var(--mono); font-size: .82rem; font-weight: 600; color: var(--primary); background: rgba(37, 99, 235, .10); border: 1px solid rgba(37, 99, 235, .18); padding: 6px 14px; border-radius: 20px; margin-bottom: 20px; }
.hp-hero__text h1 { font-size: clamp(2.2rem, 5vw, 3.4rem); line-height: 1.08; font-weight: 800; letter-spacing: -.5px; margin-bottom: 18px; }
.hp-hero__sub { font-size: 1.12rem; color: var(--muted); max-width: 520px; margin-bottom: 30px; }
.hp-hero__cta { display: flex; gap: 14px; flex-wrap: wrap; margin-bottom: 36px; }
.hp-hero__stats { display: flex; gap: 38px; }
.hp-hero__stats strong { font-size: 1.9rem; font-family: var(--mono); color: var(--primary-d); display: block; }
.hp-hero__stats span { color: var(--muted); font-size: .9rem; }

/* hero "janela de código" */
.hp-window { background: #0f1b30; border-radius: 16px; box-shadow: 0 30px 60px rgba(15, 27, 48, .28); overflow: hidden; border: 1px solid rgba(255,255,255,.08); }
.hp-window__bar { display: flex; align-items: center; gap: 7px; padding: 12px 16px; background: #0b1424; }
.hp-window__bar i { width: 11px; height: 11px; border-radius: 50%; background: #38465f; }
.hp-window__bar i:nth-child(1) { background: #ff5f57; } .hp-window__bar i:nth-child(2) { background: #febc2e; } .hp-window__bar i:nth-child(3) { background: #28c840; }
.hp-window__title { margin-left: auto; font-family: var(--mono); font-size: .78rem; color: #6b7c98; }
.hp-window__code { padding: 22px 24px; font-family: var(--mono); font-size: .95rem; line-height: 1.85; color: #cdd9ee; overflow-x: auto; }
.hp-c-kw { color: #7dd3fc; } .hp-c-str { color: #86efac; } .hp-c-fn { color: #c4b5fd; } .hp-c-cm { color: #5b6b86; }

/* ---------- Sections ---------- */
.hp-section { padding: 84px 0; }
.hp-section--alt { background: var(--bg-soft); }
.hp-tag { display: inline-block; font-family: var(--mono); font-size: .8rem; font-weight: 600; color: var(--secondary); letter-spacing: .5px; text-transform: uppercase; margin-bottom: 12px; }
.hp-h2 { font-size: clamp(1.7rem, 3.4vw, 2.3rem); font-weight: 800; letter-spacing: -.4px; margin-bottom: 14px; }
.hp-lead { color: var(--muted); max-width: 620px; font-size: 1.08rem; margin-bottom: 12px; }

/* Cards de destaque */
.hp-cards { display: grid; grid-template-columns: repeat(auto-fit, minmax(230px, 1fr)); gap: 22px; margin-top: 34px; }
.hp-card { background: #fff; border: 1px solid var(--line); border-radius: 18px; padding: 28px; box-shadow: var(--shadow-soft); transition: transform .2s, box-shadow .2s, border-color .2s; }
.hp-card:hover { transform: translateY(-5px); box-shadow: var(--shadow); border-color: rgba(37, 99, 235, .25); }
.hp-card__ic { font-size: 2rem; display: block; margin-bottom: 12px; }
.hp-card h3 { margin-bottom: 8px; font-size: 1.12rem; }
.hp-card p { color: var(--muted); font-size: .95rem; }

/* Trilhas */
.hp-trilhas { display: grid; grid-template-columns: repeat(auto-fill, minmax(330px, 1fr)); gap: 18px; margin-top: 34px; }
.hp-trilha { display: flex; align-items: center; gap: 16px; background: #fff; border: 1px solid var(--line); border-radius: 16px; padding: 18px 20px; box-shadow: var(--shadow-soft); transition: transform .2s, box-shadow .2s, border-color .2s; }
.hp-trilha:hover { transform: translateY(-3px); border-color: rgba(37, 99, 235, .25); box-shadow: var(--shadow); }
.hp-trilha__ic { font-size: 1.7rem; width: 52px; height: 52px; flex: none; display: grid; place-items: center; background: var(--bg-soft); border-radius: 13px; }
.hp-trilha__body { flex: 1; }
.hp-trilha__body h3 { font-size: 1.02rem; }
.hp-trilha__body p { color: var(--muted); font-size: .88rem; }
.hp-level { font-family: var(--mono); font-size: .7rem; font-weight: 700; color: var(--primary); background: rgba(37, 99, 235, .10); padding: 4px 10px; border-radius: 20px; flex: none; }

/* ---------- Carrossel ---------- */
.hp-carousel { position: relative; margin-top: 36px; }
.hp-carousel__viewport { overflow: hidden; border-radius: 22px; }
.hp-carousel__track { display: flex; will-change: transform; }
.hp-slide { min-width: 100%; }
.hp-slide__media { position: relative; height: 340px; display: grid; place-items: center; }
.hp-slide__ic { font-size: 4.4rem; filter: drop-shadow(0 8px 16px rgba(0,0,0,.18)); }
.hp-slide__ph { position: absolute; bottom: 14px; right: 16px; font-family: var(--mono); font-size: .72rem; color: rgba(255,255,255,.75); background: rgba(0,0,0,.18); padding: 4px 10px; border-radius: 20px; }
.hp-slide__caption { background: #fff; padding: 22px 26px; border: 1px solid var(--line); border-top: none; }
.hp-slide__caption h3 { font-size: 1.2rem; margin-bottom: 4px; }
.hp-slide__caption p { color: var(--muted); }
.hp-carousel__nav { position: absolute; top: 170px; transform: translateY(-50%); width: 46px; height: 46px; border-radius: 50%; border: 1px solid var(--line); background: rgba(255,255,255,.92); color: var(--primary); font-size: 1.6rem; line-height: 1; cursor: pointer; box-shadow: var(--shadow-soft); transition: .18s; display: grid; place-items: center; }
.hp-carousel__nav:hover { background: var(--primary); color: #fff; }
.hp-carousel__nav--prev { left: 14px; } .hp-carousel__nav--next { right: 14px; }
.hp-carousel__dots { display: flex; justify-content: center; gap: 9px; margin-top: 18px; }
.hp-dot { width: 10px; height: 10px; border-radius: 50%; border: none; background: var(--line); cursor: pointer; transition: .2s; }
.hp-dot.is-active { background: var(--grad); width: 26px; border-radius: 6px; }

/* Jornada */
.hp-journey { list-style: none; display: grid; grid-template-columns: repeat(auto-fit, minmax(300px, 1fr)); gap: 18px; margin-top: 34px; }
.hp-step { display: flex; gap: 16px; align-items: flex-start; background: #fff; border: 1px solid var(--line); border-radius: 16px; padding: 22px; box-shadow: var(--shadow-soft); }
.hp-step__num { font-family: var(--mono); font-weight: 800; font-size: 1.1rem; color: #fff; background: var(--grad); width: 46px; height: 46px; flex: none; border-radius: 13px; display: grid; place-items: center; }
.hp-step h3 { font-size: 1.05rem; margin-bottom: 4px; }
.hp-step p { color: var(--muted); font-size: .92rem; }

/* Parceiros */
.hp-partners { display: grid; grid-template-columns: repeat(auto-fit, minmax(180px, 1fr)); gap: 20px; margin-top: 34px; }
.hp-partner { background: #fff; border: 1px solid var(--line); border-radius: 16px; padding: 22px; display: grid; place-items: center; box-shadow: var(--shadow-soft); transition: transform .2s, box-shadow .2s; }
.hp-partner:hover { transform: translateY(-4px); box-shadow: var(--shadow); }
.hp-partner img { max-height: 70px; width: auto; }

/* CTA */
.hp-cta { padding: 20px 0 90px; }
.hp-cta__box { background: var(--grad); border-radius: 26px; padding: 58px 32px; text-align: center; color: #fff; box-shadow: var(--shadow); position: relative; overflow: hidden; }
.hp-cta__box::after { content: ''; position: absolute; inset: 0; background: radial-gradient(300px 160px at 85% -20%, rgba(255,255,255,.25), transparent 70%); pointer-events: none; }
.hp-cta__box h2 { font-size: clamp(1.6rem, 3.4vw, 2.2rem); margin-bottom: 12px; position: relative; }
.hp-cta__box p { opacity: .94; margin-bottom: 26px; position: relative; }
.hp-cta__box .hp-btn { position: relative; }

/* Footer */
.hp-footer { background: #0c1729; color: #aebed5; padding: 56px 0 0; }
.hp-footer__grid { display: grid; grid-template-columns: 2fr 1fr 1fr 1fr; gap: 30px; padding-bottom: 40px; }
.hp-logo--light { color: #fff; margin-bottom: 12px; }
.hp-footer__brand p { max-width: 320px; font-size: .92rem; }
.hp-footer__col h4 { color: #fff; margin-bottom: 12px; font-size: 1rem; }
.hp-footer__col a { display: block; padding: 5px 0; color: #aebed5; font-size: .92rem; transition: color .15s; }
.hp-footer__col a:hover { color: var(--secondary); }
.hp-footer__bottom { border-top: 1px solid rgba(255,255,255,.08); padding: 22px; text-align: center; font-size: .88rem; color: #7e90ac; }

/* ---------- Reveal ---------- */
.reveal { opacity: 0; transform: translateY(20px); transition: opacity .6s ease, transform .6s ease; }
.reveal.is-visible { opacity: 1; transform: none; }

/* ---------- Responsive ---------- */
@media (max-width: 920px) {
    .hp-hero__grid { grid-template-columns: 1fr; gap: 36px; }
    .hp-footer__grid { grid-template-columns: 1fr 1fr; }
}
@media (max-width: 760px) {
    .hp-burger { display: flex; }
    .hp-menu { position: fixed; inset: 72px 0 auto 0; flex-direction: column; gap: 0; background: #fff; border-bottom: 1px solid var(--line); padding: 8px 0; box-shadow: var(--shadow); transform: translateY(-130%); transition: transform .25s ease; }
    .hp-burger-cb:checked ~ .hp-menu { transform: none; }
    .hp-menu a { width: 100%; padding: 14px 24px; }
    .hp-menu a.hp-btn--primary { margin: 8px 24px; justify-content: center; border-radius: 12px; }
    .hp-hero__stats { gap: 26px; }
    .hp-footer__grid { grid-template-columns: 1fr; }
    .hp-section { padding: 60px 0; }
}
@media (prefers-reduced-motion: reduce) {
    .reveal { opacity: 1 !important; transform: none !important; }
    .hp-blob { display: none; }
    * { animation-duration: .01ms !important; transition-duration: .01ms !important; }
}
