:root {
    --color-bg-dark: #0B132B;
    --color-bg-darker: #050914;
    --color-bg-card: #1C2541;
    --color-primary: #FF6B35;
    --color-primary-hover: #FF885C;
    --color-text-light: #F8F9FA;
    --color-text-dark: #2B2D42;
    --color-border: rgba(255, 255, 255, 0.1);
    
    --font-main: 'Outfit', sans-serif;
    --transition: all 0.3s ease;
}

* {
    margin: 0;
    padding: 0;
    box-sizing: border-box;
}

html {
    scroll-behavior: smooth;
}

body {
    font-family: var(--font-main);
    color: var(--color-text-dark);
    background-color: #F8F9FA;
    line-height: 1.6;
}

a {
    text-decoration: none;
    color: inherit;
}

ul {
    list-style: none;
}

.container {
    max-width: 1200px;
    margin: 0 auto;
    padding: 0 20px;
}

/* ==================================
   TYPOGRAPHY
   ================================== */
h1, h2, h3, h4 {
    line-height: 1.2;
    margin-bottom: 15px;
}

.highlight {
    color: var(--color-primary);
}

/* ==================================
   BUTTONS
   ================================== */
.btn-primary {
    background-color: var(--color-primary);
    color: #fff;
    padding: 15px 30px;
    border: none;
    border-radius: 8px;
    font-weight: 700;
    font-size: 1rem;
    cursor: pointer;
    transition: var(--transition);
    display: inline-flex;
    align-items: center;
    justify-content: center;
    gap: 8px;
    box-shadow: 0 4px 15px rgba(255, 107, 53, 0.4);
    font-family: var(--font-main);
}

.btn-primary:hover {
    background-color: var(--color-primary-hover);
    transform: translateY(-2px);
    box-shadow: 0 6px 20px rgba(255, 107, 53, 0.6);
}

.btn-outline {
    border: 1px solid var(--color-border);
    color: var(--color-text-light);
    padding: 10px 20px;
    border-radius: 8px;
    font-weight: 600;
    transition: var(--transition);
    display: inline-flex;
    align-items: center;
    gap: 6px;
    background: rgba(255, 255, 255, 0.05);
}

.btn-outline:hover {
    background: rgba(255, 255, 255, 0.1);
    border-color: rgba(255, 255, 255, 0.3);
}

.btn-large {
    font-size: 1.2rem;
    padding: 20px 40px;
}

/* ==================================
   BLOCO 1: NAVBAR
   ================================== */
.navbar {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    z-index: 100;
    padding: 20px 0;
}

.navbar-content {
    display: flex;
    justify-content: space-between;
    align-items: center;
}

.logo {
    display: flex;
    align-items: center;
}

.brand-logo {
    height: 45px;
    width: auto;
}

/* ==================================
   BLOCO 2: HERO SECTION
   ================================== */
.hero {
    position: relative;
    min-height: 100vh;
    background-color: var(--color-bg-dark);
    /* In a real project, replace background-image with a real solar panel image */
    background-image: url('https://images.unsplash.com/photo-1508514177221-188b1cf16e9d?q=80&w=2072&auto=format&fit=crop');
    background-size: cover;
    background-position: center;
    display: flex;
    align-items: center;
    color: var(--color-text-light);
    padding-top: 80px; /* Space for navbar */
}

.hero-overlay {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background: linear-gradient(135deg, rgba(11, 19, 43, 0.95) 0%, rgba(28, 37, 65, 0.8) 100%);
    z-index: 1;
}

.hero-container {
    position: relative;
    z-index: 2;
    display: flex;
    justify-content: space-between;
    align-items: center;
    gap: 50px;
    width: 100%;
}

.hero-content {
    flex: 0 0 55%;
}

.hero-content h1 {
    font-family: 'Swarsh Daisy', var(--font-main);
    font-size: 3.5rem;
    font-weight: 500; /* Medium */
    margin-bottom: 20px;
}

.hero-content h1 .highlight {
    font-style: italic;
    font-weight: 500;
}

.hero-content p {
    font-size: 1.2rem;
    margin-bottom: 30px;
    color: rgba(255, 255, 255, 0.8);
}

.hero-badges {
    display: flex;
    gap: 15px;
    flex-wrap: wrap;
}

.badge {
    background: rgba(255, 255, 255, 0.1);
    border: 1px solid rgba(255, 255, 255, 0.2);
    padding: 8px 16px;
    border-radius: 50px;
    font-size: 0.9rem;
    display: flex;
    align-items: center;
    gap: 8px;
}

.badge i {
    color: var(--color-primary);
}

/* Glassmorphism Form */
.hero-form-wrapper {
    flex: 0 0 40%;
}

.lead-form {
    background: rgba(255, 255, 255, 0.05);
    backdrop-filter: blur(12px);
    -webkit-backdrop-filter: blur(12px);
    border: 1px solid rgba(255, 255, 255, 0.1);
    border-radius: 16px;
    padding: 30px;
    box-shadow: 0 25px 50px rgba(0, 0, 0, 0.3);
}

.lead-form h3 {
    font-size: 1.5rem;
    margin-bottom: 5px;
}

.lead-form p {
    font-size: 0.9rem;
    color: rgba(255, 255, 255, 0.7);
    margin-bottom: 25px;
}

.input-group {
    margin-bottom: 15px;
}

.input-group label {
    display: block;
    font-size: 0.85rem;
    margin-bottom: 5px;
    color: rgba(255, 255, 255, 0.9);
}

.input-group input,
.input-group select {
    width: 100%;
    padding: 12px 15px;
    border-radius: 8px;
    border: 1px solid rgba(255, 255, 255, 0.2);
    background: rgba(255, 255, 255, 0.1);
    color: #fff;
    font-family: var(--font-main);
    font-size: 1rem;
    outline: none;
    transition: var(--transition);
}

.input-group input::placeholder {
    color: rgba(255, 255, 255, 0.5);
}

.input-group input:focus,
.input-group select:focus {
    border-color: var(--color-primary);
    background: rgba(255, 255, 255, 0.15);
}

.input-group select option {
    background-color: var(--color-bg-card);
    color: #fff;
}

.form-btn {
    width: 100%;
    margin-top: 10px;
    margin-bottom: 15px;
}

.lead-form small {
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 5px;
    font-size: 0.8rem;
    color: rgba(255, 255, 255, 0.5);
}

/* ==================================
   BLOCO 3: FAIXA DE AUTORIDADE
   ================================== */
.authority-strip {
    background-color: #ffffff;
    padding: 40px 0;
    box-shadow: 0 4px 20px rgba(0, 0, 0, 0.05);
    position: relative;
    z-index: 10;
}

.strip-grid {
    display: grid;
    grid-template-columns: repeat(4, 1fr);
    gap: 20px;
}

.strip-item {
    display: flex;
    align-items: center;
    gap: 15px;
}

.strip-item i {
    font-size: 2.5rem;
    color: var(--color-primary);
}

.strip-text {
    display: flex;
    flex-direction: column;
}

.strip-text strong {
    font-size: 1.2rem;
    color: var(--color-bg-dark);
    line-height: 1.1;
}

.strip-text span {
    font-size: 0.9rem;
    color: #6c757d;
}

/* ==================================
   BLOCO 4: SOLUÇÕES (CARDS)
   ================================== */
.solutions {
    padding: 100px 0;
    background-color: #F8F9FA;
}

.section-header {
    text-align: center;
    max-width: 600px;
    margin: 0 auto 60px;
}

.section-header h2 {
    font-size: 2.5rem;
    color: var(--color-bg-dark);
}

.section-header.light-text h2,
.section-header.light-text p {
    color: var(--color-text-light);
}

.solutions-grid {
    display: grid;
    grid-template-columns: repeat(3, 1fr);
    gap: 30px;
}

.solution-card {
    background: #fff;
    padding: 40px 30px;
    border-radius: 16px;
    box-shadow: 0 10px 30px rgba(0, 0, 0, 0.05);
    transition: var(--transition);
    position: relative;
    overflow: hidden;
}

.solution-card:hover {
    transform: translateY(-5px);
    box-shadow: 0 15px 40px rgba(0, 0, 0, 0.08);
}

.card-icon {
    width: 60px;
    height: 60px;
    background: rgba(11, 19, 43, 0.05);
    border-radius: 12px;
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 2rem;
    color: var(--color-bg-dark);
    margin-bottom: 25px;
}

.solution-card h3 {
    font-size: 1.5rem;
    color: var(--color-bg-dark);
    margin-bottom: 15px;
}

.solution-card p {
    color: #6c757d;
    margin-bottom: 25px;
}

.benefits-list li {
    display: flex;
    align-items: center;
    gap: 10px;
    margin-bottom: 10px;
    font-weight: 600;
    color: var(--color-text-dark);
}

.benefits-list i {
    color: var(--color-primary);
    font-weight: bold;
}

/* Destaque AGRO */
.card-featured {
    border: 2px solid var(--color-primary);
    transform: scale(1.05);
    z-index: 2;
}

.card-featured:hover {
    transform: scale(1.05) translateY(-5px);
}

.card-ribbon {
    position: absolute;
    top: 20px;
    right: -35px;
    background: var(--color-primary);
    color: #fff;
    padding: 5px 40px;
    font-size: 0.8rem;
    font-weight: bold;
    transform: rotate(45deg);
    box-shadow: 0 2px 4px rgba(0,0,0,0.1);
}

.featured-icon {
    background: rgba(255, 107, 53, 0.1);
    color: var(--color-primary);
}

/* ==================================
   BLOCO 5: TIMELINE
   ================================== */
.timeline-section {
    padding: 100px 0;
    background-color: var(--color-bg-dark);
}

.timeline {
    display: grid;
    grid-template-columns: repeat(4, 1fr);
    gap: 30px;
    position: relative;
}

/* Linha conectora desktop */
.timeline::before {
    content: '';
    position: absolute;
    top: 40px;
    left: 10%;
    right: 10%;
    height: 2px;
    background: rgba(255, 255, 255, 0.1);
    z-index: 1;
}

.timeline-step {
    position: relative;
    z-index: 2;
    text-align: center;
}

.step-icon {
    width: 80px;
    height: 80px;
    background: var(--color-bg-card);
    border: 2px solid rgba(255, 255, 255, 0.1);
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 2.5rem;
    color: var(--color-primary);
    margin: 0 auto 20px;
    transition: var(--transition);
}

.timeline-step:hover .step-icon {
    background: var(--color-primary);
    color: #fff;
    border-color: var(--color-primary);
}

.step-content h4 {
    color: #fff;
    font-size: 1.2rem;
    margin-bottom: 10px;
}

.step-content p {
    color: rgba(255, 255, 255, 0.7);
    font-size: 0.95rem;
}

/* ==================================
   BLOCO 6: FOOTER
   ================================== */
.footer {
    background-color: var(--color-bg-darker);
    padding: 80px 0 40px;
    color: var(--color-text-light);
}

.footer-cta {
    text-align: center;
    max-width: 800px;
    margin: 0 auto 80px;
}

.footer-cta h2 {
    font-size: 2.5rem;
    margin-bottom: 30px;
}

.footer-bottom {
    display: flex;
    justify-content: space-between;
    align-items: center;
    border-top: 1px solid rgba(255, 255, 255, 0.1);
    padding-top: 40px;
}

.footer-info p {
    color: rgba(255, 255, 255, 0.5);
    margin-top: 10px;
}

.footer-links {
    text-align: right;
    color: rgba(255, 255, 255, 0.5);
    font-size: 0.9rem;
}

/* ==================================
   ANIMAÇÕES GLOBAIS
   ================================== */
@keyframes fadeInUp {
    from { opacity: 0; transform: translateY(30px); }
    to   { opacity: 1; transform: translateY(0); }
}
@keyframes fadeInLeft {
    from { opacity: 0; transform: translateX(-30px); }
    to   { opacity: 1; transform: translateX(0); }
}
@keyframes fadeInRight {
    from { opacity: 0; transform: translateX(30px); }
    to   { opacity: 1; transform: translateX(0); }
}
@keyframes pulse-glow {
    0%, 100% { box-shadow: 0 0 0 0 rgba(255, 107, 53, 0.4); }
    50%       { box-shadow: 0 0 0 12px rgba(255, 107, 53, 0); }
}
@keyframes float {
    0%, 100% { transform: translateY(0px); }
    50%       { transform: translateY(-8px); }
}
@keyframes shimmer {
    0%   { background-position: -200% center; }
    100% { background-position: 200% center; }
}
@keyframes spin-slow {
    from { transform: rotate(0deg); }
    to   { transform: rotate(360deg); }
}
@keyframes slide-in-bottom {
    from { opacity: 0; transform: translateY(60px) scale(0.95); }
    to   { opacity: 1; transform: translateY(0) scale(1); }
}

/* Elementos que serão animados quando entrarem na viewport */
.animate-on-scroll {
    opacity: 0;
    transform: translateY(40px);
    transition: opacity 0.7s cubic-bezier(0.22, 1, 0.36, 1),
                transform 0.7s cubic-bezier(0.22, 1, 0.36, 1);
}
.animate-on-scroll.visible {
    opacity: 1;
    transform: translateY(0);
}
.animate-delay-1 { transition-delay: 0.1s; }
.animate-delay-2 { transition-delay: 0.2s; }
.animate-delay-3 { transition-delay: 0.3s; }
.animate-delay-4 { transition-delay: 0.4s; }

/* ==================================
   RESPONSIVIDADE (MOBILE FIRST)
   ================================== */
@media (max-width: 992px) {
    .hero-container {
        flex-direction: column;
        padding-top: 40px;
    }
    .hero-content { text-align: center; }
    .hero-badges  { justify-content: center; }
    .hero-form-wrapper { width: 100%; max-width: 500px; }
    .strip-grid        { grid-template-columns: repeat(2, 1fr); }
    .solutions-grid    { grid-template-columns: repeat(2, 1fr); }
    .card-featured     { transform: none; }
    .card-featured:hover { transform: translateY(-5px); }
}

/* ==================================
   TABLET / MOBILE  ≤768px
   ================================== */
@media (max-width: 768px) {

    /* --- HERO --- */
    .hero {
        min-height: 100svh;
        padding-top: 90px;
        padding-bottom: 60px;
        background-attachment: scroll;
    }
    .hero-overlay {
        background: linear-gradient(
            170deg,
            rgba(5, 9, 20, 0.97) 0%,
            rgba(11, 19, 43, 0.88) 60%,
            rgba(28, 37, 65, 0.75) 100%
        );
    }
    .hero-content {
        animation: fadeInUp 0.9s cubic-bezier(0.22, 1, 0.36, 1) both;
    }
    .hero-content h1 {
        font-size: 2.2rem;
        line-height: 1.25;
    }
    .hero-content p {
        font-size: 1rem;
        margin-bottom: 24px;
    }
    .hero-badges {
        gap: 10px;
        flex-wrap: wrap;
        justify-content: center;
    }
    .badge {
        font-size: 0.8rem;
        padding: 6px 14px;
        backdrop-filter: blur(8px);
        animation: pulse-glow 3s ease-in-out infinite;
    }

    /* Formulário mobile */
    .hero-form-wrapper {
        width: 100%;
        animation: slide-in-bottom 0.9s cubic-bezier(0.22, 1, 0.36, 1) 0.3s both;
    }
    .lead-form {
        border-radius: 20px;
        padding: 24px 20px;
        background: rgba(255,255,255,0.07);
        border: 1px solid rgba(255,255,255,0.15);
        box-shadow: 0 20px 60px rgba(0,0,0,0.5),
                    inset 0 1px 0 rgba(255,255,255,0.1);
    }
    .lead-form h3 { font-size: 1.3rem; }
    .lead-form p  { font-size: 0.85rem; margin-bottom: 20px; }
    .input-group  { margin-bottom: 12px; }
    .input-group input,
    .input-group select {
        padding: 14px 15px;
        font-size: 1rem;
        border-radius: 12px;
        -webkit-appearance: none;
    }
    .btn-primary.form-btn {
        padding: 16px;
        font-size: 1rem;
        border-radius: 12px;
        animation: pulse-glow 2.5s ease-in-out infinite;
        background: linear-gradient(135deg, var(--color-primary), #ff8c42);
        letter-spacing: 0.5px;
    }

    /* --- NAVBAR --- */
    .navbar { padding: 16px 0; }
    .navbar-content { justify-content: space-between; }
    .navbar .btn-outline {
        display: inline-flex;
        padding: 8px 14px;
        font-size: 0.78rem;
        border-radius: 50px;
        background: rgba(255,107,53,0.15);
        border-color: rgba(255,107,53,0.4);
        color: #fff;
    }
    .brand-logo { height: 36px; }

    /* --- AUTHORITY STRIP --- */
    .authority-strip { padding: 32px 0; }
    .strip-grid {
        grid-template-columns: repeat(2, 1fr);
        gap: 16px;
    }
    .strip-item {
        background: #fff;
        border-radius: 14px;
        padding: 16px;
        box-shadow: 0 4px 16px rgba(0,0,0,0.06);
        flex-direction: column;
        align-items: flex-start;
        gap: 8px;
        transition: transform 0.3s ease, box-shadow 0.3s ease;
    }
    .strip-item:active {
        transform: scale(0.97);
        box-shadow: 0 2px 8px rgba(0,0,0,0.08);
    }
    .strip-item i { font-size: 2rem; }
    .strip-text strong { font-size: 1.1rem; }
    .strip-text span   { font-size: 0.8rem; }

    /* --- SOLUTIONS --- */
    .solutions { padding: 70px 0; }
    .section-header { margin-bottom: 40px; }
    .section-header h2 { font-size: 2rem; }
    .solutions-grid {
        grid-template-columns: 1fr;
        gap: 20px;
    }
    .solution-card {
        padding: 28px 24px;
        border-radius: 20px;
        border-left: 4px solid transparent;
        transition: border-color 0.3s ease, transform 0.3s ease, box-shadow 0.3s ease;
    }
    .solution-card:active { transform: scale(0.98); }
    .solution-card.card-featured {
        border-left-color: var(--color-primary);
        background: linear-gradient(135deg, #fff 0%, rgba(255,107,53,0.04) 100%);
    }
    .card-icon {
        width: 52px; height: 52px;
        border-radius: 14px;
        margin-bottom: 18px;
        animation: float 4s ease-in-out infinite;
    }
    .solution-card h3 { font-size: 1.3rem; }
    .card-ribbon {
        font-size: 0.7rem;
        padding: 4px 36px;
        right: -32px;
        top: 18px;
    }

    /* --- TIMELINE --- */
    .timeline-section { padding: 70px 0; }
    .timeline {
        grid-template-columns: 1fr;
        gap: 0;
    }
    .timeline::before { display: none; }

    /* Linha vertical conectora mobile */
    .timeline-step {
        display: flex;
        align-items: flex-start;
        gap: 20px;
        text-align: left;
        position: relative;
        padding-bottom: 36px;
    }
    .timeline-step:last-child { padding-bottom: 0; }
    .timeline-step::after {
        content: '';
        position: absolute;
        left: 29px;
        top: 70px;
        bottom: 0;
        width: 2px;
        background: linear-gradient(to bottom, rgba(255,107,53,0.5), rgba(255,255,255,0.05));
    }
    .timeline-step:last-child::after { display: none; }

    .step-icon {
        margin: 0;
        flex-shrink: 0;
        width: 60px; height: 60px;
        font-size: 1.6rem;
        border-radius: 16px;
        border: 2px solid rgba(255,107,53,0.3);
        transition: background 0.3s ease, transform 0.3s ease;
    }
    .timeline-step:hover .step-icon {
        transform: scale(1.1);
    }
    .step-content h4 { font-size: 1.1rem; margin-bottom: 6px; }
    .step-content p  { font-size: 0.9rem; }

    /* --- FOOTER --- */
    .footer { padding: 60px 0 32px; }
    .footer-cta { margin-bottom: 50px; }
    .footer-cta h2 { font-size: 1.8rem; line-height: 1.3; }
    .btn-large {
        font-size: 1rem;
        padding: 16px 28px;
        border-radius: 50px;
        animation: pulse-glow 2.5s ease-in-out infinite;
        width: 100%;
        text-align: center;
        justify-content: center;
    }
    .footer-bottom {
        flex-direction: column;
        text-align: center;
        gap: 24px;
    }
    .footer-links { text-align: center; font-size: 0.82rem; }
    .footer-links p { margin-bottom: 4px; }
}

/* ==================================
   MOBILE PEQUENO  ≤480px
   ================================== */
@media (max-width: 480px) {
    .hero { padding-top: 80px; padding-bottom: 50px; }
    .hero-content h1 { font-size: 1.85rem; }
    .strip-grid { grid-template-columns: repeat(2, 1fr); gap: 12px; }
    .solutions { padding: 56px 0; }
    .timeline-section { padding: 56px 0; }
    .lead-form { padding: 20px 16px; }
    .section-header h2 { font-size: 1.75rem; }
    .footer-cta h2 { font-size: 1.5rem; }
}

/* ==================================
   FLOATING CTA (somente mobile)
   ================================== */
.floating-cta {
    display: none;
}
@media (max-width: 768px) {
    .floating-cta {
        display: flex;
        position: fixed;
        bottom: 20px;
        left: 50%;
        transform: translateX(-50%);
        z-index: 999;
        background: linear-gradient(135deg, #25D366, #128C7E);
        color: #fff;
        padding: 14px 28px;
        border-radius: 50px;
        font-weight: 700;
        font-size: 0.95rem;
        align-items: center;
        gap: 8px;
        box-shadow: 0 8px 32px rgba(37, 211, 102, 0.45);
        text-decoration: none;
        animation: float 3s ease-in-out infinite;
        transition: transform 0.3s ease, box-shadow 0.3s ease;
        white-space: nowrap;
    }
    .floating-cta i { font-size: 1.3rem; }
    .floating-cta:active {
        transform: translateX(-50%) scale(0.96);
        box-shadow: 0 4px 16px rgba(37,211,102,0.3);
    }
    /* Esconde o CTA flutuante quando o form estiver visível */
    .floating-cta.hidden { opacity: 0; pointer-events: none; }
}

