/* ==========================================================================
   PRAGSENSE · DIREÇÃO DE ARTE v3 — "A LAVOURA LIDA PELA IA"
   Camada carregada depois do style.css: redefine a paleta (solo escuro,
   clorofila, creme), tipografia editorial e o hero com o campo ao vivo.
   ========================================================================== */

:root {
    /* Solo: pretos esverdeados no lugar do azul-marinho */
    --bg-dark: #050b08;
    --bg-dark-secondary: #0a1410;
    --bg-card: #0e1a15;
    --bg-card-hover: #13241c;
    --bg-glass: rgba(10, 20, 16, 0.78);
    --border-glass: rgba(236, 240, 226, 0.08);
    --border-glow: rgba(195, 245, 107, 0.28);

    /* Texto creme, menos "tela", mais papel */
    --text-heading: #f2efe6;
    --text-bright: #e7e4da;
    --text-body: #a0ada4;

    /* Clorofila e os tons do índice NDVI */
    --lima: #c3f56b;
    --lima-glow: rgba(195, 245, 107, 0.35);
    --creme: #f2efe6;
    --ferrugem: #ff6b3d;
    --ambar: #ffb547;
    --accent-emerald-neon: #c3f56b;

    --fonte-serif: 'Instrument Serif', Georgia, 'Times New Roman', serif;
    --fonte-mono: 'JetBrains Mono', ui-monospace, 'Cascadia Mono', Consolas, monospace;
    --curva: cubic-bezier(0.77, 0, 0.18, 1);
}

.mono {
    font-family: var(--fonte-mono);
    font-feature-settings: 'tnum' 1, 'zero' 1;
}

::selection {
    background: var(--lima);
    color: #07130d;
}

/* Grão de filme sobre a página inteira: tira o aspecto "chapado" de template */
body::after {
    content: '';
    position: fixed;
    inset: 0;
    z-index: 9990;
    pointer-events: none;
    opacity: 0.045;
    background-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' width='160' height='160'%3E%3Cfilter id='g'%3E%3CfeTurbulence type='fractalNoise' baseFrequency='0.85' numOctaves='3' stitchTiles='stitch'/%3E%3C/filter%3E%3Crect width='100%25' height='100%25' filter='url(%23g)'/%3E%3C/svg%3E");
}

.text-gradient {
    background: linear-gradient(115deg, #d9f88a 0%, var(--lima) 30%, #34d399 75%, #10b981 100%);
    -webkit-background-clip: text;
    background-clip: text;
    -webkit-text-fill-color: transparent;
}

/* --------------------------------------------------------------------------
   Botões
   -------------------------------------------------------------------------- */
.btn-primary {
    background: linear-gradient(135deg, #d9f88a 0%, var(--lima) 45%, #7be495 100%);
    color: #07130d;
    font-weight: 700;
    box-shadow: 0 0 0 1px rgba(195, 245, 107, 0.4), 0 10px 40px -10px var(--lima-glow);
}
.btn-primary:hover {
    background: linear-gradient(135deg, #e6fca6 0%, #d0f985 45%, #8af0a4 100%);
    color: #07130d;
    transform: translateY(-2px);
    box-shadow: 0 0 0 1px rgba(195, 245, 107, 0.6), 0 16px 50px -10px rgba(195, 245, 107, 0.55);
}

.btn-secondary {
    background: rgba(242, 239, 230, 0.04);
    border: 1px solid rgba(242, 239, 230, 0.14);
    color: var(--creme);
}
.btn-secondary:hover {
    background: rgba(242, 239, 230, 0.09);
    border-color: rgba(195, 245, 107, 0.45);
    color: var(--creme);
}

.btn-ghost {
    display: inline-flex;
    align-items: center;
    gap: 0.6rem;
    padding: 0.9rem 0.4rem;
    background: none;
    color: var(--creme);
    font-weight: 600;
    position: relative;
}
.btn-ghost::after {
    content: '';
    position: absolute;
    left: 0.4rem;
    right: 0.4rem;
    bottom: 0.55rem;
    height: 1px;
    background: currentColor;
    transform-origin: right;
    transform: scaleX(0.35);
    opacity: 0.5;
    transition: transform 0.45s var(--curva), opacity 0.3s;
}
.btn-ghost:hover { color: var(--lima); }
.btn-ghost:hover::after { transform: scaleX(1); transform-origin: left; opacity: 1; }
.btn-ghost i { transition: transform 0.3s var(--curva); }
.btn-ghost:hover i { transform: translateX(4px); }

/* --------------------------------------------------------------------------
   Menu: transparente sobre o hero, vira uma pílula de vidro ao rolar
   -------------------------------------------------------------------------- */
.header,
.header.scrolled {
    background: transparent;
    border-bottom: none;
    box-shadow: none;
    backdrop-filter: none;
    -webkit-backdrop-filter: none;
    padding: 1.1rem 0;
}

.header .nav-wrapper {
    padding: 0.55rem 0.6rem 0.55rem 1.1rem;
    border-radius: 999px;
    border: 1px solid transparent;
    transition: background 0.45s var(--curva), border-color 0.45s, padding 0.45s var(--curva), box-shadow 0.45s;
}

.header.scrolled .nav-wrapper {
    background: rgba(8, 16, 12, 0.72);
    backdrop-filter: blur(18px) saturate(150%);
    -webkit-backdrop-filter: blur(18px) saturate(150%);
    border-color: rgba(242, 239, 230, 0.09);
    box-shadow: 0 20px 60px -20px rgba(0, 0, 0, 0.7);
}

.logo { font-size: 1.45rem; letter-spacing: -0.02em; }
.logo-icon {
    width: 38px;
    height: 38px;
    border-radius: 12px;
    font-size: 1.05rem;
    color: #07130d;
    background: linear-gradient(135deg, #d9f88a, var(--lima) 50%, #34d399);
    box-shadow: 0 0 24px var(--lima-glow);
}

.nav-menu { gap: 1.6rem; }
.nav-link {
    font-size: 0.9rem;
    color: rgba(242, 239, 230, 0.68);
    position: relative;
}
.nav-link:hover { color: var(--creme); }
.nav-link::after {
    content: '';
    position: absolute;
    left: 50%;
    bottom: -6px;
    width: 4px;
    height: 4px;
    border-radius: 50%;
    background: var(--lima);
    transform: translateX(-50%) scale(0);
    transition: transform 0.3s var(--curva);
}
.nav-link:hover::after { transform: translateX(-50%) scale(1); }
.nav-actions .btn { padding: 0.62rem 1.15rem; font-size: 0.88rem; }

@media (max-width: 1150px) {
    .header .nav-wrapper { padding: 0.45rem 0.5rem 0.45rem 0.9rem; }
    .nav-menu { top: 84px; border-radius: 20px; left: 12px; right: 12px; border: 1px solid var(--border-glass); }
    .nav-link::after { display: none; }
    .nav-toggle { position: relative; z-index: 10001; } /* o X de fechar fica acima do fundo escuro */
}

/* --------------------------------------------------------------------------
   Preloader: linhas de plantio traçadas até o horizonte + feixe de leitura
   -------------------------------------------------------------------------- */
.preloader {
    position: fixed;
    inset: 0;
    z-index: 10000;
    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: center;
    gap: 1.4rem;
    background: radial-gradient(ellipse at 50% 70%, #0d1d15 0%, #050b08 65%);
    cursor: pointer;
    clip-path: inset(0 0 0 0);
    transition: clip-path 0.95s var(--curva);
}
.preloader.fade-out { clip-path: inset(0 0 100% 0); }

.pl-campo { width: min(560px, 86vw); height: auto; overflow: visible; }
.pl-horizonte { stroke: rgba(242, 239, 230, 0.18); stroke-width: 1; }
.pl-linhas line {
    stroke: var(--lima);
    stroke-width: 1.1;
    stroke-linecap: round;
    stroke-dasharray: 1;
    stroke-dashoffset: 1;
    opacity: 0.75;
    animation: pl-traca 0.9s var(--curva) forwards;
    animation-delay: calc(var(--i) * 45ms);
}
.pl-feixe {
    stroke: var(--lima);
    stroke-width: 2;
    filter: drop-shadow(0 0 6px var(--lima)) drop-shadow(0 0 18px var(--lima));
    animation: pl-varre 1.25s var(--curva) 0.35s infinite;
}
@keyframes pl-traca { to { stroke-dashoffset: 0; } }
@keyframes pl-varre {
    0% { transform: translateX(0); opacity: 0; }
    15% { opacity: 1; }
    85% { opacity: 1; }
    100% { transform: translateX(480px); opacity: 0; }
}

.pl-marca {
    font-family: 'Outfit', sans-serif;
    font-weight: 700;
    font-size: 2.1rem;
    letter-spacing: -0.03em;
    color: var(--creme);
}
.pl-marca em {
    font-family: var(--fonte-serif);
    font-style: italic;
    font-weight: 400;
    color: var(--lima);
}
.pl-contador {
    display: flex;
    align-items: baseline;
    gap: 0.9rem;
    color: var(--creme);
}
.pl-contador span { font-size: 0.95rem; color: var(--lima); letter-spacing: 0.08em; }
.pl-contador small {
    font-size: 0.72rem;
    letter-spacing: 0.24em;
    text-transform: uppercase;
    color: rgba(242, 239, 230, 0.5);
}

/* --------------------------------------------------------------------------
   HERO · A lavoura ao vivo
   -------------------------------------------------------------------------- */
.campo {
    position: relative;
    min-height: max(100svh, 760px);
    display: flex;
    flex-direction: column;
    justify-content: flex-end;
    padding: 9rem 0 2.2rem;
    overflow: hidden;
    isolation: isolate;
    background:
        radial-gradient(ellipse 80% 55% at 70% 100%, rgba(52, 211, 153, 0.10), transparent 70%),
        linear-gradient(180deg, #040907 0%, #050b08 40%, #07110c 100%);
}

.campo-canvas {
    position: absolute;
    inset: 0;
    width: 100%;
    height: 100%;
    z-index: -2;
    cursor: crosshair;
}

/* Legibilidade do texto sem matar o campo: escurece só à esquerda e nas bordas */
.campo-vinheta {
    position: absolute;
    inset: 0;
    z-index: -1;
    pointer-events: none;
    background:
        linear-gradient(90deg, rgba(5, 11, 8, 0.9) 0%, rgba(5, 11, 8, 0.55) 34%, rgba(5, 11, 8, 0) 62%),
        linear-gradient(180deg, rgba(5, 11, 8, 0.85) 0%, rgba(5, 11, 8, 0) 26%, rgba(5, 11, 8, 0) 70%, rgba(5, 11, 8, 0.95) 100%);
}

.campo-grid {
    display: grid;
    grid-template-columns: minmax(0, 1.35fr) minmax(280px, 0.65fr);
    align-items: end;
    gap: 3rem;
    pointer-events: none; /* deixa o cursor "chegar" na lavoura entre os blocos */
}
.campo-grid > * { pointer-events: auto; }

.campo-eyebrow {
    display: inline-flex;
    align-items: center;
    gap: 0.65rem;
    font-size: 0.74rem;
    letter-spacing: 0.22em;
    text-transform: uppercase;
    color: var(--lima);
    margin-bottom: 1.6rem;
}
.ponto-vivo {
    width: 8px;
    height: 8px;
    border-radius: 50%;
    background: var(--lima);
    box-shadow: 0 0 0 0 var(--lima-glow);
    animation: ponto-vivo 1.8s ease-out infinite;
}
@keyframes ponto-vivo {
    0% { box-shadow: 0 0 0 0 rgba(195, 245, 107, 0.6); }
    100% { box-shadow: 0 0 0 12px rgba(195, 245, 107, 0); }
}

.campo-titulo {
    font-family: 'Outfit', sans-serif;
    font-weight: 700;
    font-size: clamp(3rem, 7vw, 6.4rem);
    line-height: 0.94;
    letter-spacing: -0.045em;
    color: var(--creme);
    margin-bottom: 1.8rem;
    text-wrap: balance;
}
.campo-titulo em {
    font-family: var(--fonte-serif);
    font-style: italic;
    font-weight: 400;
    letter-spacing: -0.01em;
    color: var(--lima);
    padding-right: 0.06em;
    text-shadow: 0 0 60px rgba(195, 245, 107, 0.35);
}

.campo-descricao {
    max-width: 33rem;
    font-size: 1.1rem;
    line-height: 1.65;
    color: rgba(231, 228, 218, 0.72);
    margin-bottom: 2.4rem;
}

.campo-botoes {
    display: flex;
    flex-wrap: wrap;
    align-items: center;
    gap: 1.1rem;
}

/* Entrada do hero depois do preloader */
.campo-texto > *,
.hud,
.campo-metricas > * {
    opacity: 0;
    transform: translateY(26px);
    transition: opacity 0.9s var(--curva), transform 0.9s var(--curva);
}
.campo.pronto .campo-texto > *,
.campo.pronto .hud,
.campo.pronto .campo-metricas > * {
    opacity: 1;
    transform: none;
}
.campo.pronto .campo-texto > :nth-child(2) { transition-delay: 0.08s; }
.campo.pronto .campo-texto > :nth-child(3) { transition-delay: 0.16s; }
.campo.pronto .campo-texto > :nth-child(4) { transition-delay: 0.24s; }
.campo.pronto .hud { transition-delay: 0.32s; }
.campo.pronto .campo-metricas > :nth-child(1) { transition-delay: 0.4s; }
.campo.pronto .campo-metricas > :nth-child(2) { transition-delay: 0.46s; }
.campo.pronto .campo-metricas > :nth-child(3) { transition-delay: 0.52s; }
.campo.pronto .campo-metricas > :nth-child(4) { transition-delay: 0.58s; }

/* HUD de telemetria da varredura */
.hud {
    position: relative;
    padding: 1.15rem 1.2rem 1rem;
    border-radius: 16px;
    background: rgba(7, 14, 10, 0.62);
    border: 1px solid rgba(195, 245, 107, 0.14);
    backdrop-filter: blur(14px) saturate(140%);
    -webkit-backdrop-filter: blur(14px) saturate(140%);
    box-shadow: 0 30px 80px -30px rgba(0, 0, 0, 0.8);
}
/* Marcas de corte nos cantos, como num visor */
.hud::before,
.hud::after {
    content: '';
    position: absolute;
    width: 14px;
    height: 14px;
    border: 1.5px solid var(--lima);
    opacity: 0.8;
}
.hud::before { top: -1px; left: -1px; border-right: none; border-bottom: none; border-top-left-radius: 16px; }
.hud::after { bottom: -1px; right: -1px; border-left: none; border-top: none; border-bottom-right-radius: 16px; }

.hud-topo {
    display: flex;
    justify-content: space-between;
    gap: 1rem;
    font-size: 0.66rem;
    letter-spacing: 0.14em;
    color: rgba(242, 239, 230, 0.5);
    padding-bottom: 0.85rem;
    border-bottom: 1px dashed rgba(242, 239, 230, 0.1);
}
.hud-topo i { color: var(--lima); margin-right: 0.35rem; }

.hud-medida { padding: 0.95rem 0 0.8rem; }
.hud-medida > span,
.hud-pares span {
    display: block;
    font-size: 0.7rem;
    letter-spacing: 0.12em;
    text-transform: uppercase;
    color: rgba(242, 239, 230, 0.5);
}
.hud-medida strong {
    display: block;
    font-size: 2.6rem;
    font-weight: 500;
    line-height: 1.1;
    color: var(--lima);
    letter-spacing: -0.02em;
}
.hud-barra {
    position: relative;
    height: 4px;
    margin-top: 0.6rem;
    border-radius: 4px;
    background: linear-gradient(90deg, var(--ferrugem), var(--ambar) 35%, var(--lima) 70%, #10b981);
    opacity: 0.85;
}
.hud-barra i {
    position: absolute;
    top: -4px;
    left: 0%;
    width: 2px;
    height: 12px;
    background: var(--creme);
    box-shadow: 0 0 8px var(--creme);
    transition: left 0.6s var(--curva);
}

.hud-pares {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 0.8rem;
    padding: 0.8rem 0;
    border-top: 1px dashed rgba(242, 239, 230, 0.1);
}
.hud-pares strong { font-size: 1.35rem; font-weight: 500; color: var(--creme); }
.hud-pares strong.alerta { color: var(--ferrugem); }

.hud-log {
    list-style: none;
    margin: 0;
    padding: 0.7rem 0 0;
    border-top: 1px dashed rgba(242, 239, 230, 0.1);
    min-height: 4.6rem;
    font-size: 0.68rem;
    line-height: 1.65;
    color: rgba(242, 239, 230, 0.42);
}
.hud-log li { white-space: nowrap; overflow: hidden; text-overflow: ellipsis; animation: hud-entra 0.4s var(--curva); }
.hud-log li:first-child { color: rgba(242, 239, 230, 0.85); }
.hud-log li.alerta { color: var(--ferrugem); }
@keyframes hud-entra { from { opacity: 0; transform: translateX(-8px); } }

/* Números-chave no rodapé do hero */
.campo-metricas {
    display: grid;
    grid-template-columns: repeat(4, 1fr);
    margin-top: 4rem;
    border-top: 1px solid rgba(242, 239, 230, 0.1);
    pointer-events: none;
}
.campo-metricas > div {
    padding: 1.3rem 1.2rem 0.4rem 0;
    border-right: 1px solid rgba(242, 239, 230, 0.07);
}
.campo-metricas > div + div { padding-left: 1.4rem; }
.campo-metricas > div:last-child { border-right: none; }
.campo-metricas strong {
    display: block;
    font-family: 'Outfit', sans-serif;
    font-size: clamp(1.6rem, 2.6vw, 2.3rem);
    font-weight: 600;
    letter-spacing: -0.03em;
    color: var(--creme);
    line-height: 1.1;
}
.campo-metricas span {
    font-family: var(--fonte-mono);
    font-size: 0.7rem;
    letter-spacing: 0.12em;
    text-transform: uppercase;
    color: rgba(242, 239, 230, 0.45);
}

.campo-dica {
    position: absolute;
    right: 2rem;
    top: 7.2rem;
    font-size: 0.68rem;
    letter-spacing: 0.18em;
    text-transform: uppercase;
    color: rgba(242, 239, 230, 0.4);
    pointer-events: none;
    transition: opacity 0.6s;
}
.campo-dica i { color: var(--lima); margin-right: 0.4rem; }
.campo.tocado .campo-dica { opacity: 0; }

/* --------------------------------------------------------------------------
   Faixa de telemetria (marquee)
   -------------------------------------------------------------------------- */
.ticker-strip {
    margin-top: 0;
    padding: 0.9rem 0;
    background: #07110c;
    border-top: 1px solid rgba(242, 239, 230, 0.06);
    border-bottom: 1px solid rgba(242, 239, 230, 0.06);
}
.ticker-content { animation-duration: 60s; gap: 3.5rem; }
.ticker-item {
    font-family: var(--fonte-mono);
    font-size: 0.74rem;
    letter-spacing: 0.04em;
    color: rgba(242, 239, 230, 0.55);
}
.ticker-item strong {
    color: var(--lima);
    font-weight: 500;
    text-transform: uppercase;
    letter-spacing: 0.12em;
    margin-right: 0.3rem;
}
.ticker-item i { color: rgba(195, 245, 107, 0.6); }

/* --------------------------------------------------------------------------
   Seções: cabeçalhos editoriais numerados
   -------------------------------------------------------------------------- */
body { counter-reset: secao; }

.section-header { counter-increment: secao; }
.section-header h2 {
    font-size: clamp(2.1rem, 4.2vw, 3.4rem);
    line-height: 1.04;
    letter-spacing: -0.035em;
    color: var(--creme);
    text-wrap: balance;
}
.section-header p { color: rgba(231, 228, 218, 0.62); }

.section-header .badge {
    background: none;
    border: none;
    box-shadow: none;
    padding: 0;
    font-family: var(--fonte-mono);
    font-size: 0.72rem;
    font-weight: 500;
    letter-spacing: 0.22em;
    color: var(--lima);
}
.section-header .badge::before {
    content: counter(secao, decimal-leading-zero) ' —';
    color: rgba(242, 239, 230, 0.35);
    margin-right: 0.2rem;
}
.section-header .badge i { display: none; }

/* Revelação ao rolar (só quando o JS liga; sem JS tudo fica visível) */
.js-revela .revela {
    opacity: 0;
    transform: translateY(32px);
    transition: opacity 0.9s var(--curva), transform 0.9s var(--curva);
}
.js-revela .revela.visivel { opacity: 1; transform: none; }

/* --------------------------------------------------------------------------
   Responsivo
   -------------------------------------------------------------------------- */
@media (max-width: 991.98px) {
    .campo { padding-top: 7.5rem; min-height: auto; }
    .campo-grid { grid-template-columns: 1fr; gap: 2.2rem; }
    .campo-vinheta {
        background: linear-gradient(180deg, rgba(5, 11, 8, 0.75) 0%, rgba(5, 11, 8, 0.45) 40%, rgba(5, 11, 8, 0.92) 100%);
    }
    .hud { max-width: 460px; }
    .campo-dica { display: none; }
}

@media (max-width: 640px) {
    .campo { padding-top: 6.8rem; }
    .campo-titulo { font-size: clamp(2.6rem, 12vw, 3.4rem); }
    .campo-descricao { font-size: 1rem; }
    .campo-botoes .btn { width: 100%; justify-content: center; }
    .campo-metricas { grid-template-columns: 1fr 1fr; margin-top: 2.6rem; }
    .campo-metricas > div,
    .campo-metricas > div + div { padding: 1rem 0.8rem 0.6rem 0; border-right: none; }
    .campo-metricas > div:nth-child(odd) { border-right: 1px solid rgba(242, 239, 230, 0.07); }
    .campo-metricas > div:nth-child(even) { padding-left: 1rem; }
    .hud-log { display: none; }
    .pl-marca { font-size: 1.7rem; }
}

@media (hover: none) {
    .campo-dica { display: none; }
}

@media (prefers-reduced-motion: reduce) {
    .preloader { display: none; }
    .ponto-vivo,
    .ticker-content { animation: none; }
    .campo-texto > *,
    .hud,
    .campo-metricas > *,
    .js-revela .revela {
        opacity: 1;
        transform: none;
        transition: none;
    }
}

/* --------------------------------------------------------------------------
   CTA final: mesmas fileiras em perspectiva do hero, em CSS puro
   -------------------------------------------------------------------------- */
.cta-banner {
    position: relative;
    overflow: hidden;
    isolation: isolate;
    padding: 6rem 2rem 5rem;
    background: radial-gradient(ellipse 70% 90% at 50% 120%, rgba(195, 245, 107, 0.16), transparent 70%), #07110c;
    border: 1px solid rgba(195, 245, 107, 0.18);
    box-shadow: 0 40px 120px -40px rgba(0, 0, 0, 0.9);
}
.cta-banner::before {
    content: '';
    position: absolute;
    left: -60%;
    right: -60%;
    bottom: 0;
    height: 75%;
    z-index: -1;
    background: repeating-linear-gradient(90deg, rgba(195, 245, 107, 0.3) 0 1px, transparent 1px 56px);
    transform: perspective(520px) rotateX(58deg);
    transform-origin: bottom;
    mask-image: linear-gradient(0deg, #000 10%, transparent 85%);
    -webkit-mask-image: linear-gradient(0deg, #000 10%, transparent 85%);
}
.cta-banner h2 {
    font-size: clamp(2.2rem, 5vw, 4rem);
    line-height: 1.02;
    letter-spacing: -0.04em;
    color: var(--creme);
    max-width: 16ch;
    margin: 0 auto 1.2rem;
    text-wrap: balance;
}
.cta-banner h2 em {
    font-family: var(--fonte-serif);
    font-style: italic;
    font-weight: 400;
    color: var(--lima);
}
.cta-banner p {
    color: rgba(231, 228, 218, 0.65);
    max-width: 36rem;
    margin: 0 auto 2.2rem;
}
