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

:root {
    --color-orange: #ff9e00;
    --color-orange-dark: #fe7c02;
    --color-gray: #575756;
    --color-gray-light: #eeeeee;
    --color-white: #ffffff;
}

html {
    scroll-behavior: smooth;
}

body {
    font-family: -apple-system, BlinkMacSystemFont, 'Segoe UI', Roboto, Oxygen, Ubuntu, Cantarell, sans-serif;
    color: var(--color-gray);
    line-height: 1.6;
    background-color: var(--color-gray-light);
}

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

/* Header Simples */
#header {
    background-color: var(--color-white);
    box-shadow: 0 1px 3px rgba(0, 0, 0, 0.08);
    padding: 0.75rem 0;
    position: sticky;
    top: 0;
    z-index: 100;
}

#header nav {
    display: flex;
    justify-content: space-between;
    align-items: center;
}

.logo {
    font-size: 1.75rem;
    font-weight: bold;
    color: var(--color-orange);
}

.social-nav {
    display: flex;
    gap: 1rem;
    align-items: center;
}

.social-nav-link {
    color: var(--color-gray);
    transition: color 0.3s ease;
    display: flex;
    align-items: center;
}

.social-nav-link:hover {
    color: var(--color-orange);
}

.back-button {
    display: inline-flex;
    align-items: center;
    gap: 0.5rem;
    color: var(--color-gray);
    text-decoration: none;
    font-weight: 500;
    transition: all 0.3s ease;
    margin-bottom: 2rem;
}

.back-button:hover {
    color: var(--color-orange);
    transform: translateX(-5px);
}

.back-button svg {
    transition: transform 0.3s ease;
}

.back-button:hover svg {
    transform: translateX(-3px);
}

/* Hero Section */
.hero {
    background: linear-gradient(135deg, var(--color-orange) 0%, var(--color-orange-dark) 100%);
    color: var(--color-white);
    padding: 4rem 1.5rem;
    text-align: center;
}

.hero .back-button {
    color: var(--color-white);
    text-align: left;
    display: inline-flex;
    opacity: 0.9;
}

.hero .back-button:hover {
    color: var(--color-white);
    opacity: 1;
    transform: translateX(-5px);
}

.hero-title {
    font-size: 2.5rem;
    font-weight: bold;
    margin-bottom: 1rem;
    line-height: 1.2;
}

.hero-subtitle {
    font-size: 1.25rem;
    opacity: 0.95;
}

/* Produtos Grid Principal */
.products-main {
    padding: 4rem 1.5rem;
}

.products-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(280px, 1fr));
    gap: 2rem;
    max-width: 1200px;
    margin: 0 auto;
}

.product-link {
    text-decoration: none;
    color: inherit;
    display: block;
}

.product-card {
    background-color: var(--color-white);
    border-radius: 1.5rem;
    padding: 3rem 2rem;
    text-align: center;
    box-shadow: 0 4px 12px rgba(0, 0, 0, 0.08);
    transition: all 0.3s ease;
    cursor: pointer;
    position: relative;
    overflow: hidden;
    height: 100%;
    display: flex;
    flex-direction: column;
    justify-content: space-between;
}

.product-card::before {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 4px;
    background: linear-gradient(90deg, var(--color-orange) 0%, var(--color-orange-dark) 100%);
    transform: scaleX(0);
    transition: transform 0.3s ease;
}

.product-card:hover::before {
    transform: scaleX(1);
}

.product-card:hover {
    transform: translateY(-10px);
    box-shadow: 0 12px 24px rgba(255, 158, 0, 0.2);
}

.product-icon {
    color: var(--color-orange);
    margin-bottom: 1.5rem;
    transition: transform 0.3s ease;
}

.product-card:hover .product-icon {
    transform: scale(1.1);
}

.product-title {
    font-size: 1.75rem;
    font-weight: bold;
    margin-bottom: 1rem;
    color: var(--color-gray);
}

.product-desc {
    color: var(--color-gray);
    opacity: 0.8;
    margin-bottom: 1.5rem;
    line-height: 1.6;
}

.product-badge {
    display: inline-block;
    padding: 0.75rem 1.5rem;
    background-color: var(--color-orange);
    color: var(--color-white);
    border-radius: 50px;
    font-weight: 600;
    transition: background-color 0.3s ease;
}

.product-card:hover .product-badge {
    background-color: var(--color-orange-dark);
}

/* Free Ebook Card Styles */
.free-card {
    border: 2px solid rgba(87, 87, 86, 0.2);
    background: linear-gradient(135deg, rgba(87, 87, 86, 0.03) 0%, rgba(255, 255, 255, 1) 100%);
}

.free-card::before {
    background: linear-gradient(90deg, #575756 0%, #3d3d3c 100%);
}

.free-card:hover {
    box-shadow: 0 12px 24px rgba(87, 87, 86, 0.15);
    border-color: rgba(87, 87, 86, 0.4);
}

.free-card .product-icon {
    color: #575756;
}

.free-card .product-badge {
    background-color: #575756;
}

.free-card:hover .product-badge {
    background-color: #3d3d3c;
}

.free-badge {
    position: absolute;
    top: 0.75rem;
    right: 0.75rem;
    display: inline-flex;
    align-items: center;
    gap: 0.3rem;
    padding: 0.25rem 0.6rem;
    background: #575756;
    color: #fff;
    font-size: 0.65rem;
    font-weight: 600;
    text-transform: uppercase;
    letter-spacing: 0.5px;
    border-radius: 3px;
    transition: all 0.3s ease;
}

.product-card:hover .free-badge {
    background: #3d3d3c;
}

/* Premium Ebook Card Styles */
.premium-card {
    border: 2px solid rgba(255, 158, 0, 0.3);
    background: linear-gradient(135deg, rgba(255, 158, 0, 0.03) 0%, rgba(255, 255, 255, 1) 100%);
}

.premium-card::before {
    background: linear-gradient(90deg, #ff9e00 0%, #fe7c02 100%);
}

.premium-card:hover {
    box-shadow: 0 12px 24px rgba(255, 158, 0, 0.25);
    border-color: rgba(255, 158, 0, 0.5);
}

.premium-card .product-icon {
    color: #ff9e00;
}

.premium-card .product-badge {
    background: linear-gradient(135deg, #ff9e00 0%, #fe7c02 100%);
}

.premium-card:hover .product-badge {
    background: linear-gradient(135deg, #fe7c02 0%, #e66e00 100%);
}

.premium-badge {
    position: absolute;
    top: 0.75rem;
    right: 0.75rem;
    display: inline-flex;
    align-items: center;
    gap: 0.3rem;
    padding: 0.25rem 0.6rem;
    background: #ff9e00;
    color: #fff;
    font-size: 0.65rem;
    font-weight: 600;
    text-transform: uppercase;
    letter-spacing: 0.5px;
    border-radius: 3px;
    transition: all 0.3s ease;
}

.product-card:hover .premium-badge {
    background: #fe7c02;
}

/* Benefícios */
.benefits {
    background-color: var(--color-white);
    padding: 3rem 1.5rem;
    border-top: 1px solid var(--color-gray-light);
}

.benefits-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(200px, 1fr));
    gap: 2rem;
    max-width: 1000px;
    margin: 0 auto;
}

.benefit-item {
    display: flex;
    flex-direction: column;
    align-items: center;
    gap: 0.75rem;
    text-align: center;
}

.benefit-item svg {
    color: var(--color-orange);
}

.benefit-item span {
    font-weight: 600;
    color: var(--color-gray);
}

/* Footer */
.footer {
    background-color: var(--color-gray);
    color: var(--color-white);
    padding: 3rem 1.5rem 2rem;
    text-align: center;
}

.footer-content {
    display: flex;
    flex-direction: column;
    gap: 1.5rem;
    align-items: center;
}

.footer-social {
    display: flex;
    gap: 2rem;
    flex-wrap: wrap;
    justify-content: center;
}

.footer-social-link {
    display: flex;
    align-items: center;
    gap: 0.5rem;
    color: var(--color-white);
    text-decoration: none;
    transition: color 0.3s ease;
}

.footer-social-link:hover {
    color: var(--color-orange);
}

.footer-copy {
    opacity: 0.9;
    margin: 0;
}

/* Portal Link na Navbar */
.portal-link {
    display: flex;
    align-items: center;
    gap: 0.5rem;
    padding: 0.5rem 1rem;
    background: linear-gradient(135deg, var(--color-orange), var(--color-orange-dark));
    color: var(--color-white) !important;
    text-decoration: none;
    border-radius: 50px;
    font-weight: 600;
    font-size: 0.9rem;
    transition: all 0.3s ease;
    margin-right: 0.5rem;
}

.portal-link:hover {
    transform: translateY(-2px);
    box-shadow: 0 4px 12px rgba(255, 158, 0, 0.4);
}

.portal-link span {
    display: inline;
}

/* Footer Links */
.footer-links {
    margin-top: 0.5rem;
}

.footer-portal-link {
    display: inline-flex;
    align-items: center;
    gap: 0.5rem;
    padding: 0.75rem 1.5rem;
    background: linear-gradient(135deg, var(--color-orange), var(--color-orange-dark));
    color: var(--color-white);
    text-decoration: none;
    border-radius: 50px;
    font-weight: 600;
    transition: all 0.3s ease;
}

.footer-portal-link:hover {
    transform: translateY(-2px);
    box-shadow: 0 4px 15px rgba(255, 158, 0, 0.4);
}

/* Portal CTA Section */
.portal-cta-section {
    background: linear-gradient(135deg, var(--color-orange) 0%, var(--color-orange-dark) 100%);
    padding: 3rem 1.5rem;
}

.portal-cta-wrapper {
    max-width: 600px;
    margin: 0 auto;
    text-align: center;
    color: var(--color-white);
}

.portal-cta-icon {
    margin-bottom: 1rem;
    opacity: 0.9;
}

.portal-cta-title {
    font-size: 1.75rem;
    font-weight: bold;
    margin-bottom: 0.75rem;
}

.portal-cta-text {
    font-size: 1.1rem;
    opacity: 0.95;
    margin-bottom: 1.5rem;
}

.portal-cta-button {
    display: inline-block;
    padding: 1rem 2rem;
    background-color: var(--color-white);
    color: var(--color-orange-dark);
    text-decoration: none;
    border-radius: 50px;
    font-weight: 600;
    font-size: 1.1rem;
    transition: all 0.3s ease;
}

.portal-cta-button:hover {
    transform: translateY(-3px);
    box-shadow: 0 8px 20px rgba(0, 0, 0, 0.2);
}

.coming-soon-card {
    opacity: 0.6;
    pointer-events: none;
}

/* Newsletter Section */
.newsletter-section {
    background-color: var(--color-white);
    padding: 4rem 1.5rem;
    border-top: 1px solid var(--color-gray-light);
}

.newsletter-wrapper {
    max-width: 600px;
    margin: 0 auto;
    text-align: center;
}

.newsletter-title {
    font-size: 2rem;
    font-weight: bold;
    color: var(--color-gray);
    margin-bottom: 1rem;
}

.newsletter-subtitle {
    color: var(--color-gray);
    opacity: 0.8;
    margin-bottom: 2rem;
    font-size: 1.1rem;
}

.newsletter-form {
    display: flex;
    flex-direction: column;
    gap: 1rem;
    align-items: center;
}

.substack-form {
    display: flex;
    gap: 0.5rem;
    width: 100%;
    max-width: 500px;
}

.newsletter-input {
    flex: 1;
    padding: 0.875rem 1.25rem;
    border: 2px solid var(--color-gray-light);
    border-radius: 50px;
    font-size: 1rem;
    outline: none;
    transition: border-color 0.3s ease;
}

.newsletter-input:focus {
    border-color: var(--color-orange);
}

.newsletter-button {
    padding: 0.875rem 2rem;
    background-color: var(--color-orange);
    color: var(--color-white);
    border: none;
    border-radius: 50px;
    font-size: 1rem;
    font-weight: 600;
    cursor: pointer;
    transition: background-color 0.3s ease;
    white-space: nowrap;
}

.newsletter-button:hover {
    background-color: var(--color-orange-dark);
}

.substack-link {
    color: var(--color-orange);
    text-decoration: none;
    font-weight: 500;
    transition: color 0.3s ease;
}

.substack-link:hover {
    color: var(--color-orange-dark);
    text-decoration: underline;
}

/* Responsive */
@media (max-width: 768px) {
    .hero-title {
        font-size: 2rem;
    }

    .hero-subtitle {
        font-size: 1.1rem;
    }

    .products-grid {
        grid-template-columns: 1fr;
        gap: 1.5rem;
    }

    .product-card {
        padding: 2rem 1.5rem;
    }

    .benefits-grid {
        grid-template-columns: repeat(2, 1fr);
        gap: 1.5rem;
    }

    .substack-form {
        flex-direction: column;
    }

    .newsletter-button {
        width: 100%;
    }

    .social-nav {
        gap: 0.75rem;
    }

    .portal-link span {
        display: none;
    }

    .portal-link {
        padding: 0.5rem;
        margin-right: 0;
    }

    .portal-cta-title {
        font-size: 1.4rem;
    }

    .portal-cta-text {
        font-size: 1rem;
    }

    .footer-social {
        flex-direction: column;
        gap: 1rem;
    }
}

@media (min-width: 769px) and (max-width: 1024px) {
    .products-grid {
        grid-template-columns: repeat(2, 1fr);
    }
}

@media (min-width: 1025px) {
    .hero-title {
        font-size: 3rem;
    }

    .hero-subtitle {
        font-size: 1.4rem;
    }

    .products-grid {
        grid-template-columns: repeat(4, 1fr);
    }
}