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

:root {
    --primary: #fca311;
    --primary-dark: #e69500;
    --secondary: #14213d;
    --dark: #0a0a0a;
    --gray-dark: #1a1a1a;
    --gray: #2d2d2d;
    --light: #f8f9fa;
    --text: #e0e0e0;
    --text-muted: #aaa;
    --success: #00c853;
    --danger: #ff4444;
    --info: #00bcd4;
}

body {
    font-family: 'Inter', 'Segoe UI', sans-serif;
    background: linear-gradient(135deg, var(--dark) 0%, #0f0f0f 100%);
    color: var(--text);
    line-height: 1.6;
    overflow-x: hidden;
}

.container {
    max-width: 1280px;
    margin: 0 auto;
    padding: 0 40px;
}

/* ===== ANIMATIONS ===== */
@keyframes fadeUp {
    from {
        opacity: 0;
        transform: translateY(30px);
    }
    to {
        opacity: 1;
        transform: translateY(0);
    }
}

@keyframes fadeIn {
    from { opacity: 0; }
    to { opacity: 1; }
}


@keyframes pulse {
    0%, 100% { opacity: 1; }
    50% { opacity: 0.5; }
}

/* ===== HEADER ===== */
header {
    position: fixed;
    top: 0;
    width: 100%;
    padding: 20px 0;
    background: rgba(10, 10, 10, 0.95);
    backdrop-filter: blur(10px);
    z-index: 1000;
    transition: all 0.3s ease;
    border-bottom: 1px solid rgba(255, 255, 255, 0.05);
}

header.scrolled {
    padding: 12px 0;
    box-shadow: 0 5px 20px rgba(0, 0, 0, 0.3);
}

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

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

.logo-image {
    display: block;
    height: auto;
    max-height: 62px;
    object-fit: contain;
    width: 150px;
}

.logo-sub {
    font-size: 12px;
    color: var(--text-muted);
    letter-spacing: 2px;
}

/* Navigation */
.nav-menu {
    display: flex;
    gap: 35px;
    list-style: none;
}

.nav-menu a {
    color: var(--text);
    text-decoration: none;
    font-weight: 500;
    transition: color 0.3s;
    position: relative;
}

.nav-menu a:hover {
    color: var(--primary);
}

.nav-menu a::after {
    content: '';
    position: absolute;
    bottom: -5px;
    left: 0;
    width: 0;
    height: 2px;
    background: var(--primary);
    transition: width 0.3s;
}

.nav-menu a:hover::after {
    width: 100%;
}

.btn-demo {
    background: linear-gradient(135deg, var(--primary), var(--primary-dark));
    color: var(--dark) !important;
    padding: 10px 24px !important;
    border-radius: 30px;
    font-weight: 600 !important;
}

.btn-demo::after {
    display: none;
}

.btn-demo:hover {
    transform: translateY(-2px);
    box-shadow: 0 5px 15px rgba(252, 163, 17, 0.4);
}

.hamburger {
    display: none;
    font-size: 28px;
    cursor: pointer;
    color: white;
}

/* ===== HERO ===== */
.hero {
    display: flex;
    align-items: center;
    padding: 120px 0 80px;
    position: relative;
    overflow: hidden;
}

.hero::before {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    bottom: 0;
    background: radial-gradient(circle at 20% 50%, rgba(252, 163, 17, 0.1), transparent 50%);
    pointer-events: none;
}

.hero-grid {
    display: grid;
    grid-template-columns: minmax(0, 0.85fr) minmax(0, 1.15fr);
    gap: 40px;
    align-items: center;
}

.hero-content h1 {
    font-size: 3.5rem;
    font-weight: 800;
    line-height: 1.2;
    margin-bottom: 20px;
    background: linear-gradient(135deg, #fff, var(--primary));
    -webkit-background-clip: text;
    background-clip: text;
    -webkit-text-fill-color: transparent;
}

.hero-content p {
    font-size: 1.2rem;
    color: var(--text-muted);
    margin-bottom: 30px;
}

.hero-eyebrow {
    display: block;
    color: var(--primary);
    font-size: 0.8rem;
    font-weight: 700;
    letter-spacing: 0.08em;
    margin-bottom: 18px;
}

.hero-content {
    min-width: 0;
}

.hero-buttons {
    display: flex;
    gap: 20px;
    flex-wrap: wrap;
}

.btn-primary {
    background: linear-gradient(135deg, var(--primary), var(--primary-dark));
    color: var(--dark);
    padding: 14px 35px;
    border-radius: 40px;
    text-decoration: none;
    font-weight: 700;
    transition: all 0.3s;
    display: inline-flex;
    align-items: center;
    gap: 10px;
    border: none;
    cursor: pointer;
}

.btn-primary:hover {
    transform: translateY(-3px);
    box-shadow: 0 10px 25px rgba(252, 163, 17, 0.3);
}

.btn-secondary {
    background: transparent;
    color: white;
    padding: 14px 35px;
    border-radius: 40px;
    text-decoration: none;
    font-weight: 700;
    transition: all 0.3s;
    border: 2px solid var(--primary);
    display: inline-flex;
    align-items: center;
    gap: 10px;
}

.btn-secondary:hover {
    background: rgba(252, 163, 17, 0.1);
    transform: translateY(-3px);
}

.hero-content .hero-slogan {
    color: var(--primary);
    font-size: 1rem;
    margin: 28px 0 0;
}

.hero-dashboard {
    position: relative;
    min-width: 0;
    aspect-ratio: 1440 / 830;
    overflow: hidden;
    border: 1px solid rgba(252, 163, 17, 0.35);
    border-radius: 16px;
    background: var(--dark);
    box-shadow: 0 16px 36px rgba(0, 0, 0, 0.3);
}

.hero-dashboard-image {
    display: block;
    width: 100%;
    height: auto;
}

@media (max-width: 768px) {
    .hero {
        padding: 120px 0 60px;
    }

    .hero-dashboard {
        aspect-ratio: 1080 / 204;
    }

    /* Região original: x=310..1390, y=118..322; primeira linha completa. */
    .hero-dashboard-image {
        position: absolute;
        width: 133.333333%;
        max-width: none;
        left: -28.703704%;
        top: 0;
        transform: translateY(-10.925926%);
    }

    .hero-buttons a {
        justify-content: center;
        max-width: 100%;
        padding-inline: 24px;
    }
}

@media (max-width: 480px) {
    /* Região original: x=310..850, y=118..322; dois cards sem cortes. */
    .hero-dashboard {
        aspect-ratio: 540 / 204;
    }

    .hero-dashboard-image {
        width: 266.666667%;
        left: -57.407407%;
    }
}

/* ===== FEATURES ===== */
.features {
    padding: 100px 0;
    background: rgba(0, 0, 0, 0.3);
}

.section-title {
    text-align: center;
    margin-bottom: 60px;
}

.section-title h2 {
    font-size: 2.5rem;
    margin-bottom: 15px;
}

.section-title p {
    color: var(--text-muted);
    max-width: 600px;
    margin: 0 auto;
}

.section-title span {
    color: var(--primary);
}

.features-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(300px, 1fr));
    gap: 30px;
}

.feature-card {
    background: rgba(255, 255, 255, 0.03);
    border: 1px solid rgba(255, 255, 255, 0.05);
    border-radius: 20px;
    padding: 35px 25px;
    transition: all 0.3s;
    text-align: center;
}

.feature-card:hover {
    transform: translateY(-10px);
    background: rgba(255, 255, 255, 0.05);
    border-color: rgba(252, 163, 17, 0.3);
}

.feature-icon {
    width: 70px;
    height: 70px;
    background: linear-gradient(135deg, rgba(252, 163, 17, 0.2), rgba(230, 149, 0, 0.1));
    border-radius: 20px;
    display: flex;
    align-items: center;
    justify-content: center;
    margin: 0 auto 25px;
    font-size: 30px;
    color: var(--primary);
}

.feature-card h3 {
    font-size: 1.3rem;
    margin-bottom: 15px;
}

.feature-card p {
    color: var(--text-muted);
    line-height: 1.7;
}

/* ===== FREE TRIAL SECTION ===== */
.demo-section {
    padding: 100px 0;
    background: linear-gradient(135deg, rgba(252, 163, 17, 0.05), transparent);
}

.demo-container {
    background: rgba(255, 255, 255, 0.03);
    border: 1px solid rgba(255, 255, 255, 0.1);
    border-radius: 20px;
    margin: 0 auto;
    max-width: 850px;
    padding: 60px 40px;
    text-align: center;
}

.demo-content h2 {
    font-size: 2.2rem;
    margin-bottom: 20px;
}

.demo-content p {
    color: var(--text-muted);
    line-height: 1.7;
    margin: 0 auto 30px;
    max-width: 680px;
}

.demo-trial-note {
    color: var(--text-muted);
    display: block;
    font-size: 0.9rem;
    margin-top: 18px;
}

/* ===== PRICING ===== */
.pricing {
    padding: 100px 0;
}

.pricing-grid {
    display: grid;
    gap: 30px;
    grid-template-columns: repeat(2, minmax(0, 1fr));
    justify-content: center;
    margin: 50px auto 0;
    max-width: 1050px;
    width: 100%;
}

.pricing-card {
    background: rgba(255, 255, 255, 0.03);
    border: 1px solid rgba(255, 255, 255, 0.05);
    border-radius: 24px;
    padding: 40px;
    transition: all 0.3s;
    position: relative;
}

.pricing-trial {
    background: var(--primary);
    border-radius: 20px;
    color: var(--dark);
    display: inline-block;
    font-size: 0.9rem;
    font-weight: bold;
    margin-bottom: 20px;
    padding: 7px 18px;
}

.pricing-card h3 {
    font-size: 1.8rem;
    margin-bottom: 8px;
}

.pricing-card-featured {
    border-color: rgba(252, 163, 17, 0.45);
    box-shadow: 0 18px 40px rgba(0, 0, 0, 0.25);
}

.pricing-price {
    color: var(--primary);
    font-size: 2rem;
    font-weight: 800;
    line-height: 1.2;
    margin: 18px 0 10px;
}

.pricing-price span {
    color: var(--text-muted);
    font-size: 1rem;
    font-weight: 500;
}

.pricing-subtitle,
.pricing-note {
    font-size: 1rem;
    color: var(--text-muted);
}

.pricing-card ul {
    display: grid;
    gap: 12px 30px;
    grid-template-columns: repeat(2, minmax(0, 1fr));
    list-style: none;
    margin: 30px 0;
}

.pricing-card li {
    display: flex;
    align-items: center;
    gap: 10px;
}

.pricing-card li i {
    color: var(--success);
    font-size: 14px;
}

.btn-pricing {
    width: 100%;
    padding: 12px;
    background: transparent;
    border: 2px solid var(--primary);
    border-radius: 30px;
    color: white;
    font-weight: 600;
    cursor: pointer;
    transition: all 0.3s;
    text-decoration: none;
    display: block;
    text-align: center;
}

.btn-pricing:hover {
    background: var(--primary);
    color: var(--dark);
}

.pricing-note {
    display: block;
    line-height: 1.6;
    margin-top: 18px;
    text-align: center;
}

.pricing-card-featured ul {
    grid-template-columns: 1fr;
}

/* ===== TESTIMONIALS ===== */
.testimonials {
    padding: 100px 0;
    background: rgba(0, 0, 0, 0.3);
}

.testimonials-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(350px, 1fr));
    gap: 30px;
}

.testimonial-card {
    background: rgba(255, 255, 255, 0.03);
    border: 1px solid rgba(255, 255, 255, 0.05);
    border-radius: 20px;
    padding: 30px;
}

.testimonial-text {
    font-size: 1rem;
    line-height: 1.7;
    margin-bottom: 20px;
    color: var(--text-muted);
}

.testimonial-author {
    display: flex;
    align-items: center;
    gap: 15px;
}

.author-avatar {
    width: 50px;
    height: 50px;
    background: linear-gradient(135deg, var(--primary), var(--primary-dark));
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 20px;
}

.author-info h4 {
    font-size: 1rem;
    margin-bottom: 5px;
}

.author-info p {
    font-size: 0.8rem;
    color: var(--text-muted);
}

.stars {
    color: var(--primary);
    margin-top: 5px;
}

/* ===== CTA ===== */
.cta {
    padding: 80px 0;
    text-align: center;
    background: linear-gradient(135deg, rgba(252, 163, 17, 0.1), transparent);
}

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

.cta p {
    color: var(--text-muted);
    margin-bottom: 30px;
    max-width: 600px;
    margin-left: auto;
    margin-right: auto;
}

/* ===== FOOTER ===== */
footer {
    background: #050505;
    padding: 60px 0 30px;
    border-top: 1px solid rgba(255, 255, 255, 0.05);
}

.footer-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(200px, 1fr));
    gap: 40px;
    margin-bottom: 50px;
}

.footer-col h4 {
    color: var(--primary);
    margin-bottom: 20px;
}

.footer-col ul {
    list-style: none;
}

.footer-col li {
    margin-bottom: 10px;
}

.footer-col a {
    color: var(--text-muted);
    text-decoration: none;
    transition: color 0.3s;
}

.footer-col a:hover {
    color: var(--primary);
}

.social-links {
    display: flex;
    gap: 15px;
    margin-top: 20px;
}

.social-links a {
    width: 40px;
    height: 40px;
    background: rgba(255, 255, 255, 0.05);
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    transition: all 0.3s;
}

.social-links a:hover {
    background: var(--primary);
    color: var(--dark);
    transform: translateY(-3px);
}

.copyright {
    text-align: center;
    padding-top: 30px;
    border-top: 1px solid rgba(255, 255, 255, 0.05);
    color: var(--text-muted);
    font-size: 0.9rem;
}

/* ===== RESPONSIVE ===== */
@media (max-width: 1024px) {
    .hero-grid {
        grid-template-columns: 1fr;
        text-align: center;
    }

    .hero-content h1 {
        font-size: 2.5rem;
    }

    .hero-buttons {
        justify-content: center;
    }

    .hero-stats {
        justify-content: center;
    }

}

@media (max-width: 768px) {
    .container {
        padding: 0 20px;
    }

    .hamburger {
        display: block;
    }

    .logo-image {
        max-height: 54px;
        width: 125px;
    }

    .nav-menu {
        position: fixed;
        top: 0;
        right: -100%;
        width: 80%;
        max-width: 300px;
        height: 100vh;
        background: var(--dark);
        flex-direction: column;
        padding: 80px 30px 30px;
        transition: right 0.3s;
        z-index: 999;
        gap: 20px;
    }

    .nav-menu.active {
        right: 0;
    }

    .menu-overlay {
        position: fixed;
        top: 0;
        left: 0;
        width: 100%;
        height: 100%;
        background: rgba(0,0,0,0.7);
        z-index: 998;
        opacity: 0;
        visibility: hidden;
        transition: all 0.3s;
    }

    .menu-overlay.active {
        opacity: 1;
        visibility: visible;
    }

    .features-grid, .pricing-grid, .testimonials-grid {
        grid-template-columns: 1fr;
    }

    .pricing-card {
        padding: 30px 24px;
    }

    .pricing-card ul {
        grid-template-columns: 1fr;
    }

    .section-title h2 {
        font-size: 1.8rem;
    }
}


/* Conexões institucionais da landing page ProtechCore */
.partners-section {
    padding: 80px 0;
    background: var(--gray-dark);
}

.partners-grid {
    display: grid;
    grid-template-columns: repeat(2, minmax(0, 1fr));
    gap: 30px;
}

.partner-card {
    display: flex;
    flex-direction: column;
    min-width: 0;
    padding: 32px;
    background: var(--dark);
    border: 1px solid rgba(252, 163, 17, 0.25);
    border-radius: 20px;
    overflow-wrap: anywhere;
}

.partner-badge {
    align-self: flex-start;
    padding: 6px 12px;
    border: 1px solid rgba(252, 163, 17, 0.4);
    border-radius: 20px;
    color: var(--primary);
    font-size: 0.75rem;
    font-weight: 700;
    letter-spacing: 0.06em;
    max-width: 100%;
}

.partner-identity {
    display: flex;
    flex-wrap: wrap;
    align-items: center;
    gap: 16px;
    min-height: 64px;
    margin: 24px 0 20px;
}

.partner-logo {
    display: block;
    width: 64px;
    height: auto;
    max-width: 100%;
}

.partner-name {
    min-width: 0;
    color: var(--light);
    font-size: 1.6rem;
    line-height: 1.3;
}

.partner-description {
    color: var(--text-muted);
    margin-bottom: 24px;
}

.partner-benefit {
    margin-top: auto;
    padding-top: 20px;
    border-top: 1px solid rgba(255, 255, 255, 0.12);
    color: var(--text);
}

.partner-benefit strong,
.partner-card--origin .partner-benefit {
    color: var(--primary);
}

@media (max-width: 768px) {
    .partners-section {
        padding: 60px 0;
    }

    .partners-grid {
        grid-template-columns: minmax(0, 1fr);
        gap: 24px;
    }

    .partner-card {
        padding: 24px;
    }
}


/* Navegação acessível da landing page */
.hamburger {
    background: transparent;
    border: 0;
    padding: 0;
    font: inherit;
    font-size: 28px;
    position: relative;
    z-index: 1001;
    flex-shrink: 0;
}

.hamburger:focus-visible,
.nav-menu a:focus-visible {
    outline: 2px solid var(--primary);
    outline-offset: 5px;
}

main section[id] {
    scroll-margin-top: 110px;
}

body.site-menu-open {
    overflow: hidden;
}

@media (max-width: 768px) {
    /* Evita que o backdrop-filter limite os elementos fixed ao header. */
    header {
        backdrop-filter: none;
    }

    .nav-menu {
        height: 100vh;
        height: 100dvh;
        overflow-y: auto;
        visibility: hidden;
        pointer-events: none;
    }

    .nav-menu.active {
        visibility: visible;
        pointer-events: auto;
    }

    .menu-overlay {
        height: 100vh;
        height: 100dvh;
    }
}

@media (prefers-reduced-motion: reduce) {
    *, *::before, *::after {
        animation: none !important;
        transition: none !important;
        scroll-behavior: auto !important;
    }
}
