/* =========================================================
   AgroIdeas — Clean Design System
   ========================================================= */

/* --- Reset & Base --- */
*, *::before, *::after {
    box-sizing: border-box;
    margin: 0;
    padding: 0;
}

:root {
    --bg-deep: #0A1A12;
    --bg-card: rgba(255,255,255,0.04);
    --bg-card-accent: rgba(0, 230, 118, 0.04);
    --border-subtle: rgba(255,255,255,0.08);
    --border-neon: rgba(0, 230, 118, 0.25);
    --border-gold: rgba(255, 179, 0, 0.25);
    --neon: #00E676;
    --gold: #FFB300;
    --text-primary: #FFFFFF;
    --text-secondary: rgba(255,255,255,0.65);
    --text-muted: rgba(255,255,255,0.4);
    --radius-lg: 20px;
    --radius-md: 14px;
    --radius-sm: 10px;
    --font: 'Outfit', -apple-system, BlinkMacSystemFont, "Segoe UI", sans-serif;
}

html {
    scroll-behavior: smooth;
}

body {
    font-family: var(--font);
    background-color: var(--bg-deep);
    color: var(--text-primary);
    min-height: 100vh;
    -webkit-font-smoothing: antialiased;
}

/* --- Utility --- */
.text-accent { color: var(--neon); }
.mt-4 { margin-top: 20px; }
.w-full { width: 100%; }

/* =========================================================
   LANDING PAGE
   ========================================================= */
.lp-container {
    width: 100%;
    min-height: 100vh;
    background-color: var(--bg-deep);
    background-image:
        radial-gradient(ellipse at 20% 50%, rgba(0, 230, 118, 0.06) 0%, transparent 60%),
        radial-gradient(ellipse at 80% 20%, rgba(255, 179, 0, 0.04) 0%, transparent 50%);
    display: flex;
    justify-content: center;
    align-items: center;
    padding: 60px 20px;
}

.container-auto {
    width: 100%;
    max-width: 1200px;
    margin: 0 auto;
}

.lp-grid {
    display: grid;
    grid-template-columns: 1.2fr 1fr;
    gap: 60px;
    align-items: center;
}

@media (max-width: 900px) {
    .lp-grid { grid-template-columns: 1fr; gap: 40px; }
}

.lp-copy { display: flex; flex-direction: column; }

.lp-logo {
    width: 200px;
    height: 60px;
    background-image: url('https://venda-rapida.agroideas.com.br/images/logo_agro_ideas.png');
    background-size: contain;
    background-repeat: no-repeat;
    background-position: left;
    margin-bottom: 24px;
}

.lp-h1 {
    font-size: clamp(2.2rem, 5vw, 3.5rem);
    font-weight: 800;
    line-height: 1.1;
    margin-bottom: 16px;
    color: var(--text-primary);
}

.lp-h2 {
    font-size: clamp(1.2rem, 2.5vw, 1.6rem);
    font-weight: 500;
    line-height: 1.4;
    margin-bottom: 16px;
    color: var(--text-secondary);
}

.lp-p {
    font-size: 1.1rem;
    color: var(--text-muted);
    line-height: 1.6;
    margin-bottom: 30px;
    max-width: 90%;
}

.lp-feature-box {
    background: var(--bg-card);
    backdrop-filter: blur(8px);
    border-radius: var(--radius-md);
    padding: 18px 20px;
    display: flex;
    align-items: center;
    gap: 15px;
    max-width: 500px;
    border: 1px solid var(--border-subtle);
}

.feature-icon {
    background: var(--gold);
    width: 48px;
    height: 48px;
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 22px;
    flex-shrink: 0;
}

.feature-text { font-size: 1rem; font-weight: 500; color: var(--text-secondary); }

/* Form Card */
.lp-form-wrapper { display: flex; justify-content: flex-end; }
@media (max-width: 900px) { .lp-form-wrapper { justify-content: center; } }

.white-card {
    background: #FFFFFF;
    border-radius: var(--radius-lg);
    padding: 40px;
    width: 100%;
    max-width: 520px;
    box-shadow: 0 30px 60px rgba(0,0,0,0.4);
    color: #111;
}

.form-title { font-size: 1.8rem; font-weight: 800; color: #1B5E20; margin-bottom: 8px; line-height: 1.2; }
.form-subtitle { font-size: 1.05rem; color: #777; margin-bottom: 28px; }
.clean-form { display: flex; flex-direction: column; gap: 18px; }
.input-wrap { display: flex; flex-direction: column; gap: 6px; }
.input-wrap label { font-size: 0.9rem; font-weight: 600; color: #444; }
.input-wrap input {
    width: 100%;
    padding: 13px 16px;
    border-radius: var(--radius-sm);
    border: 1.5px solid #E0E0E0;
    font-size: 1rem;
    outline: none;
    transition: border-color 0.2s, box-shadow 0.2s;
    background: #FAFAFA;
    font-family: var(--font);
}
.input-wrap input:focus {
    border-color: #1B5E20;
    box-shadow: 0 0 0 3px rgba(27, 94, 32, 0.1);
    background: #FFF;
}

/* --- Buttons --- */
.btn-primary {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    width: 100%;
    padding: 16px 24px;
    background: linear-gradient(135deg, var(--gold), #F39C12);
    color: #111;
    border: none;
    border-radius: var(--radius-sm);
    font-size: 1.1rem;
    font-weight: 700;
    cursor: pointer;
    transition: transform 0.2s, box-shadow 0.2s;
    box-shadow: 0 4px 20px rgba(255, 179, 0, 0.3);
    font-family: var(--font);
}
.btn-primary:hover {
    transform: translateY(-2px);
    box-shadow: 0 8px 30px rgba(255, 179, 0, 0.45);
}
.btn-primary.btn-lg { padding: 20px 32px; font-size: 1.2rem; border-radius: var(--radius-md); }

.btn-outline {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    width: 100%;
    padding: 16px 24px;
    background: transparent;
    color: var(--text-secondary);
    border: 1.5px solid var(--border-subtle);
    border-radius: var(--radius-sm);
    font-size: 1rem;
    font-weight: 600;
    cursor: pointer;
    transition: all 0.2s;
    font-family: var(--font);
}
.btn-outline:hover { background: rgba(255,255,255,0.05); color: #FFF; border-color: rgba(255,255,255,0.2); }

/* =========================================================
   STEPPER
   ========================================================= */
.stepper-container {
    width: 100vw;
    min-height: 100vh;
    background-color: var(--bg-deep);
    background-image:
        radial-gradient(ellipse at 30% 80%, rgba(0, 230, 118, 0.05) 0%, transparent 50%),
        radial-gradient(ellipse at 70% 20%, rgba(255, 179, 0, 0.03) 0%, transparent 50%);
    display: flex;
    flex-direction: column;
    justify-content: flex-start;
    align-items: center;
    padding: 60px 20px;
    box-sizing: border-box;
    overflow-y: auto;
    position: relative;
}

.stepper-progress {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 4px;
    background: rgba(255,255,255,0.06);
}

.stepper-bar {
    height: 100%;
    background: linear-gradient(90deg, var(--neon), var(--gold));
    transition: width 0.5s cubic-bezier(0.22, 1, 0.36, 1);
}

.stepper-content {
    width: 100%;
    max-width: 600px;
    padding: 20px;
    position: relative;
    min-height: 600px;
    margin: auto;
}

.step-card {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    padding: 0 20px;
    opacity: 0;
    pointer-events: none;
    transform: translateY(30px);
    transition: opacity 0.45s ease, transform 0.45s ease;
}

.step-card.active {
    opacity: 1;
    pointer-events: auto;
    transform: translateY(0);
}

.step-card h2 {
    color: var(--text-primary);
    font-size: clamp(1.6rem, 3vw, 2.2rem);
    font-weight: 700;
    margin-bottom: 30px;
    line-height: 1.3;
    text-align: center;
}

.stepper-options { display: flex; flex-direction: column; gap: 12px; }

.step-opt {
    background: var(--bg-card);
    border: 1.5px solid var(--border-subtle);
    color: var(--text-primary);
    padding: 18px 24px;
    border-radius: var(--radius-md);
    font-size: 1.15rem;
    font-weight: 500;
    cursor: pointer;
    text-align: left;
    transition: all 0.25s;
    font-family: var(--font);
}

.step-opt:hover {
    background: rgba(0, 230, 118, 0.06);
    border-color: rgba(0, 230, 118, 0.3);
    transform: translateX(8px);
}

.step-opt.selected {
    background: rgba(0, 230, 118, 0.1);
    border-color: var(--neon);
    box-shadow: 0 0 20px rgba(0, 230, 118, 0.1);
}

.step-input {
    width: 100%;
    background: transparent;
    border: none;
    border-bottom: 3px solid rgba(255,255,255,0.15);
    color: var(--text-primary);
    font-size: 3rem;
    font-weight: 800;
    text-align: center;
    padding: 10px;
    outline: none;
    transition: border-color 0.3s;
    font-family: var(--font);
}

.step-input-text {
    font-size: 1.5rem;
    font-weight: 500;
    margin-bottom: 20px;
}

.step-input:focus { border-bottom-color: var(--neon); }
.step-input::placeholder { color: rgba(255,255,255,0.15); }

.step-sub {
    color: var(--text-muted);
    text-align: center;
    margin-top: -20px;
    margin-bottom: 30px;
    font-size: 1.05rem;
}

/* Loader */
.step-loader {
    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: center;
    height: 100%;
}

.spinner {
    width: 56px;
    height: 56px;
    border: 4px solid rgba(255,255,255,0.08);
    border-top-color: var(--neon);
    border-radius: 50%;
    animation: spin 0.9s linear infinite;
    margin-bottom: 24px;
}

@keyframes spin { 100% { transform: rotate(360deg); } }

/* =========================================================
   RESULTS PAGE
   ========================================================= */

/* Navbar */
.results-nav {
    position: sticky;
    top: 0;
    z-index: 100;
    display: flex;
    align-items: center;
    justify-content: space-between;
    padding: 14px 24px;
    background: rgba(10, 26, 18, 0.85);
    backdrop-filter: blur(16px);
    -webkit-backdrop-filter: blur(16px);
    border-bottom: 1px solid var(--border-subtle);
}

.nav-brand { display: flex; align-items: center; gap: 10px; }
.nav-logo-img { height: 32px; object-fit: contain; }
.nav-badge {
    font-size: 0.8rem;
    font-weight: 600;
    text-transform: uppercase;
    letter-spacing: 1.5px;
    color: var(--neon);
    background: rgba(0, 230, 118, 0.08);
    padding: 6px 14px;
    border-radius: 20px;
    border: 1px solid rgba(0, 230, 118, 0.15);
}

/* Results Container */
.results-container {
    width: 100%;
    max-width: 720px;
    margin: 0 auto;
    padding: 0 24px;
}

/* Section Headlines — used across all sections */
.section-headline {
    font-size: clamp(1.6rem, 4vw, 2.4rem);
    font-weight: 700;
    color: var(--text-primary);
    line-height: 1.25;
    margin-bottom: 24px;
}

/* Standalone Metric — big number outside cards */
.standalone-metric {
    display: flex;
    flex-direction: column;
    align-items: center;
    gap: 8px;
    margin-bottom: 32px;
}

.standalone-number {
    font-size: clamp(4rem, 10vw, 6.5rem);
    font-weight: 800;
    line-height: 1;
    letter-spacing: -2px;
}

.neon-glow {
    color: var(--neon);
    text-shadow: 0 0 60px rgba(0, 230, 118, 0.25), 0 0 120px rgba(0, 230, 118, 0.08);
}

.gold-glow {
    color: var(--gold);
    text-shadow: 0 0 60px rgba(255, 179, 0, 0.25), 0 0 120px rgba(255, 179, 0, 0.08);
}

.standalone-label {
    font-size: 1.15rem;
    color: var(--text-muted);
    font-weight: 400;
}

/* Hero Section */
.results-hero {
    padding: 70px 0 50px;
    text-align: center;
    background:
        radial-gradient(ellipse at 50% 0%, rgba(0, 230, 118, 0.06) 0%, transparent 60%);
}

.hero-pill {
    display: inline-block;
    font-size: 0.82rem;
    font-weight: 600;
    text-transform: uppercase;
    letter-spacing: 2px;
    color: var(--neon);
    background: rgba(0, 230, 118, 0.08);
    padding: 8px 20px;
    border-radius: 24px;
    border: 1px solid rgba(0, 230, 118, 0.15);
    margin-bottom: 12px;
}

.hero-segment {
    font-size: 1.05rem;
    color: var(--text-muted);
    margin-bottom: 28px;
}

.hero-kpis {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 14px;
}

.kpi-box {
    background: var(--bg-card);
    border: 1px solid var(--border-subtle);
    border-radius: var(--radius-md);
    padding: 22px 18px;
    text-align: center;
}

.kpi-label {
    font-size: 0.82rem;
    color: var(--text-muted);
    margin-bottom: 10px;
    text-transform: uppercase;
    letter-spacing: 0.5px;
    line-height: 1.3;
}
.kpi-value { font-size: 1.6rem; font-weight: 700; color: var(--text-primary); }
.kpi-neon { color: var(--neon) !important; }

/* Standalone Impact Sections — prejuízo e oportunidade */
.standalone-impact-section {
    padding: 70px 0;
    text-align: center;
    border-top: 1px solid var(--border-subtle);
}

.standalone-impact-section.impact-danger {
    background:
        radial-gradient(ellipse at 50% 50%, rgba(255, 179, 0, 0.04) 0%, transparent 60%);
}

.standalone-impact-section.impact-positive {
    background:
        radial-gradient(ellipse at 50% 50%, rgba(0, 230, 118, 0.04) 0%, transparent 60%);
}

.impact-eyebrow {
    font-size: 0.9rem;
    font-weight: 600;
    text-transform: uppercase;
    letter-spacing: 2px;
    color: var(--text-muted);
    margin-bottom: 12px;
}

.impact-explain {
    font-size: 1.1rem;
    color: var(--text-secondary);
    line-height: 1.7;
    max-width: 560px;
    margin: 0 auto;
}

.impact-explain strong {
    color: var(--text-primary);
    font-weight: 700;
}

/* Data Section */
.results-data {
    padding: 40px 0;
    border-top: 1px solid var(--border-subtle);
}

.data-card {
    background: var(--bg-card);
    border: 1px solid var(--border-subtle);
    border-radius: var(--radius-lg);
    margin-bottom: 20px;
    overflow: hidden;
}

.data-card.card-accent {
    border-color: var(--border-neon);
}

.data-card-header {
    display: flex;
    align-items: center;
    gap: 12px;
    padding: 22px 28px;
    border-bottom: 1px solid var(--border-subtle);
}

.card-icon { font-size: 1.4rem; }

.data-card-header h3 {
    font-size: 1.15rem;
    font-weight: 700;
    color: var(--text-primary);
}

.data-rows { padding: 0; }

.data-row {
    display: flex;
    justify-content: space-between;
    align-items: center;
    padding: 18px 28px;
    border-bottom: 1px solid rgba(255,255,255,0.03);
}

.data-row:last-child { border-bottom: none; }

.row-label {
    font-size: 1.02rem;
    color: var(--text-secondary);
    font-weight: 400;
}

.row-value {
    font-size: 1.15rem;
    font-weight: 700;
    color: var(--text-primary);
    text-align: right;
}

.value-neon { color: var(--neon) !important; }
.value-gold { color: var(--gold) !important; }
.value-big { font-size: 1.5rem !important; }

.row-highlight-neon {
    background: rgba(0, 230, 118, 0.05);
    border-bottom: none !important;
}

.row-highlight-gold {
    background: rgba(255, 179, 0, 0.05);
    border-bottom: none !important;
}

/* CTA / Conclusion */
.results-conclusion {
    padding: 50px 0 60px;
    text-align: center;
    border-top: 1px solid var(--border-subtle);
}

.conclusion-actions {
    display: flex;
    flex-direction: column;
    gap: 14px;
    max-width: 440px;
    margin: 0 auto 30px;
}

.results-footer {
    font-size: 0.8rem;
    color: var(--text-muted);
}

.cta-inline {
    margin-top: 32px;
    max-width: 440px;
    margin-left: auto;
    margin-right: auto;
}

/* =========================================================
   RESPONSIVE
   ========================================================= */
@media (max-width: 600px) {
    .hero-kpis { grid-template-columns: 1fr; }
    .standalone-number { font-size: 3.5rem; }
    .section-headline { font-size: 1.4rem; }
    .data-row { padding: 14px 20px; }
    .row-label { font-size: 0.92rem; }
    .row-value { font-size: 1.02rem; }
    .results-hero { padding: 50px 0 30px; }
    .standalone-impact-section { padding: 50px 0; }
    .impact-explain { font-size: 1rem; }
}
