/* ===================================
   NUTRIXE - MODERN SAAS DESIGN
   =================================== */

/* RESET & BASE */
* {
    margin: 0;
    padding: 0;
    box-sizing: border-box;
}

:root {
    --primary-green: #2BB673;
    --primary-dark: #1F8F5F;
    --primary-light: #E8F8F0;
    --blue-accent: #2D6CDF;
    --gray-100: #F7FAF9;
    --gray-200: #E9ECEF;
    --gray-300: #DEE2E6;
    --gray-600: #6C757D;
    --gray-800: #2E2E2E;
    --gray-900: #1F2937;
    --white: #FFFFFF;
    --shadow-sm: 0 2px 8px rgba(0, 0, 0, 0.05);
    --shadow-md: 0 4px 16px rgba(0, 0, 0, 0.08);
    --shadow-lg: 0 8px 32px rgba(0, 0, 0, 0.12);
}

body {
    font-family: 'Inter', -apple-system, BlinkMacSystemFont, 'Segoe UI', sans-serif;
    line-height: 1.6;
    color: var(--gray-800);
    background: var(--gray-100);
    font-size: 16px;
    -webkit-font-smoothing: antialiased;
    -moz-osx-font-smoothing: grayscale;
    overflow-x: hidden;
}

html,
body {
    max-width: 100%;
    overflow-x: hidden;
    overflow-x: clip;
}

img {
    max-width: 100%;
    height: auto;
}

body.menu-open {
    overflow: hidden;
}

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

/* ===================================
   HEADER & NAVIGATION
   =================================== */

.main-header {
    background: var(--white);
    border-bottom: 1px solid var(--gray-200);
    position: sticky;
    top: 0;
    z-index: 1000;
    box-shadow: var(--shadow-sm);
}

.navbar {
    display: flex;
    align-items: center;
    justify-content: space-between;
    padding: 1rem 0;
    gap: 2rem;
}

.nav-brand {
    display: flex;
    align-items: center;
    justify-content: center;
    width: 68px;
    height: 68px;
    border-radius: 18px;
    background: linear-gradient(140deg, #F4FCF8 0%, #EAF3FF 100%);
    border: 1px solid #DDE8E1;
    box-shadow: var(--shadow-sm);
    text-decoration: none;
    flex-shrink: 0;
    transition: transform 0.2s ease, box-shadow 0.2s ease;
}

.nav-logo {
    width: 50px;
    height: 50px;
    object-fit: contain;
    display: block;
}

.nav-brand:hover {
    transform: translateY(-1px);
    box-shadow: var(--shadow-md);
}

.brand-name {
    font-size: 1.5rem;
    font-weight: 700;
    color: var(--primary-green);
}

.nav-menu {
    display: flex;
    list-style: none;
    gap: 2rem;
    margin: 0;
}

.nav-panel {
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 2rem;
    flex: 1;
    min-width: 0;
}

.nav-menu a {
    color: var(--gray-800);
    text-decoration: none;
    font-weight: 500;
    font-size: 0.95rem;
    transition: color 0.2s;
}

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

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

.nav-toggle {
    display: none;
    width: 46px;
    height: 46px;
    border: 1px solid var(--gray-300);
    border-radius: 12px;
    background: var(--white);
    cursor: pointer;
    align-items: center;
    justify-content: center;
    flex-direction: column;
    gap: 5px;
    transition: all 0.2s ease;
}

.nav-toggle span {
    width: 20px;
    height: 2px;
    border-radius: 999px;
    background: var(--gray-900);
    transition: transform 0.2s ease, opacity 0.2s ease;
}

.nav-toggle:hover {
    border-color: #b7d8c7;
    background: #f7faf9;
}

.navbar.menu-open .nav-toggle span:nth-child(1) {
    transform: translateY(7px) rotate(45deg);
}

.navbar.menu-open .nav-toggle span:nth-child(2) {
    opacity: 0;
}

.navbar.menu-open .nav-toggle span:nth-child(3) {
    transform: translateY(-7px) rotate(-45deg);
}

/* ===================================
   BUTTONS
   =================================== */

.btn-primary,
.btn-secondary,
.btn-outline {
    padding: 0.75rem 1.5rem;
    border-radius: 8px;
    text-decoration: none;
    font-weight: 600;
    font-size: 0.95rem;
    transition: all 0.2s;
    display: inline-block;
    cursor: pointer;
    border: 2px solid transparent;
}

.btn-primary {
    background: var(--primary-green);
    color: var(--white);
    border-color: var(--primary-green);
}

.btn-primary:hover {
    background: var(--primary-dark);
    border-color: var(--primary-dark);
    transform: translateY(-2px);
    box-shadow: var(--shadow-md);
}

.btn-secondary {
    background: transparent;
    color: var(--gray-800);
    border: none;
}

.btn-secondary:hover {
    color: var(--primary-green);
}

.btn-outline {
    background: transparent;
    color: var(--primary-green);
    border-color: var(--primary-green);
}

.btn-outline:hover {
    background: var(--primary-green);
    color: var(--white);
    transform: translateY(-2px);
    box-shadow: var(--shadow-md);
}

.btn-large {
    padding: 1rem 2rem;
    font-size: 1.1rem;
}

.btn-block {
    width: 100%;
    text-align: center;
}

/* ===================================
   HERO SECTION
   =================================== */

.hero-section {
    background: linear-gradient(135deg, var(--primary-light) 0%, var(--white) 100%);
    padding: 5rem 0;
}

.hero-content {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 4rem;
    align-items: center;
}

.hero-text {
    max-width: 600px;
}

.hero-title {
    font-size: 3.5rem;
    font-weight: 800;
    line-height: 1.1;
    color: var(--gray-900);
    margin-bottom: 1.5rem;
}

.hero-subtitle {
    font-size: 1.25rem;
    color: var(--gray-600);
    margin-bottom: 2rem;
    line-height: 1.6;
}

.hero-buttons {
    display: flex;
    gap: 1rem;
    margin-bottom: 1.5rem;
}

.hero-note {
    font-size: 0.9rem;
    color: var(--gray-600);
}

.hero-image {
    display: flex;
    justify-content: center;
    align-items: center;
}

.hero-photo-card {
    width: 100%;
    max-width: 540px;
    background: var(--white);
    border-radius: 16px;
    box-shadow: var(--shadow-lg);
    border: 1px solid var(--gray-200);
    overflow: hidden;
}

.hero-photo-card img {
    display: block;
    width: 100%;
    height: auto;
    aspect-ratio: 3 / 2;
    object-fit: cover;
    object-position: center;
}

/* ===================================
   SECTION HEADERS
   =================================== */

.section-header {
    text-align: center;
    margin-bottom: 4rem;
}

.section-header h2 {
    font-size: 2.5rem;
    font-weight: 700;
    color: var(--gray-900);
    margin-bottom: 1rem;
}

.section-header p {
    font-size: 1.15rem;
    color: var(--gray-600);
    max-width: 700px;
    margin: 0 auto;
}

/* ===================================
   FEATURES SECTION
   =================================== */

.features-section {
    padding: 6rem 0;
    background: var(--white);
}

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

.feature-card {
    background: var(--white);
    border: 1px solid var(--gray-200);
    border-radius: 12px;
    padding: 2rem;
    transition: all 0.3s;
}

.feature-card:hover {
    transform: translateY(-5px);
    box-shadow: var(--shadow-lg);
    border-color: var(--primary-green);
}

.feature-icon {
    font-size: 3rem;
    margin-bottom: 1rem;
}

.feature-card h3 {
    font-size: 1.4rem;
    font-weight: 600;
    color: var(--gray-900);
    margin-bottom: 0.75rem;
}

.feature-card p {
    color: var(--gray-600);
    line-height: 1.6;
}

/* ===================================
   HOW IT WORKS SECTION
   =================================== */

.how-it-works-section {
    padding: 6rem 0;
    background: var(--gray-100);
}

.steps-container {
    display: flex;
    justify-content: center;
    align-items: center;
    gap: 2rem;
    flex-wrap: wrap;
}

.step-card {
    background: var(--white);
    border-radius: 12px;
    padding: 2rem;
    max-width: 300px;
    text-align: center;
    box-shadow: var(--shadow-md);
    flex: 1;
    min-width: 250px;
}

.step-number {
    width: 60px;
    height: 60px;
    border-radius: 50%;
    background: var(--primary-green);
    color: var(--white);
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 1.8rem;
    font-weight: 700;
    margin: 0 auto 1.5rem;
}

.step-card h3 {
    font-size: 1.3rem;
    font-weight: 600;
    color: var(--gray-900);
    margin-bottom: 0.75rem;
}

.step-card p {
    color: var(--gray-600);
    line-height: 1.6;
}

.step-connector {
    font-size: 2rem;
    color: var(--primary-green);
    font-weight: 700;
}

/* ===================================
   DIFFERENTIAL SECTION
   =================================== */

.differential-section {
    padding: 6rem 0;
    background: var(--white);
}

.differential-content {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 4rem;
    align-items: center;
}

.differential-text h2 {
    font-size: 2.5rem;
    font-weight: 700;
    color: var(--gray-900);
    margin-bottom: 1.5rem;
}

.large-text {
    font-size: 1.15rem;
    color: var(--gray-600);
    line-height: 1.7;
    margin-bottom: 2rem;
}

.benefits-list {
    list-style: none;
    margin-bottom: 2rem;
}

.benefits-list li {
    font-size: 1.1rem;
    color: var(--gray-700);
    margin-bottom: 0.75rem;
    padding-left: 0;
}

.system-mockup {
    background: var(--white);
    border-radius: 16px;
    border: 1px solid var(--gray-200);
    box-shadow: var(--shadow-lg);
    overflow: hidden;
}

.mockup-header {
    background: var(--gray-200);
    padding: 0.75rem;
    display: flex;
    gap: 0.5rem;
}

.dot {
    width: 12px;
    height: 12px;
    border-radius: 50%;
    background: var(--gray-400);
}

.mockup-content {
    padding: 3rem 2rem;
    text-align: center;
}

.mockup-content p {
    font-size: 1.5rem;
    margin: 1rem 0;
}

/* ===================================
   PRICING SECTION
   =================================== */

.pricing-section {
    padding: 6rem 0;
    background: var(--gray-100);
}

.pricing-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(300px, 1fr));
    gap: 2rem;
    max-width: 1100px;
    margin: 0 auto;
    width: 100%;
}

.pricing-card {
    background: var(--white);
    border: 2px solid var(--gray-200);
    border-radius: 16px;
    padding: 2.5rem;
    position: relative;
    transition: all 0.3s;
}

.pricing-card:hover {
    transform: translateY(-5px);
    box-shadow: var(--shadow-lg);
}

.pricing-card.featured {
    border-color: var(--primary-green);
    box-shadow: var(--shadow-lg);
}

.badge {
    position: absolute;
    top: -15px;
    left: 50%;
    transform: translateX(-50%);
    background: var(--primary-green);
    color: var(--white);
    padding: 0.4rem 1.5rem;
    border-radius: 20px;
    font-size: 0.85rem;
    font-weight: 600;
}

.pricing-card h3 {
    font-size: 1.5rem;
    font-weight: 700;
    color: var(--gray-900);
    margin-bottom: 1.5rem;
    text-align: center;
}

.price {
    text-align: center;
    margin-bottom: 2rem;
}

.currency {
    font-size: 1.5rem;
    vertical-align: top;
    color: var(--gray-600);
}

.amount {
    font-size: 3.5rem;
    font-weight: 800;
    color: var(--gray-900);
}

.period {
    font-size: 1.2rem;
    color: var(--gray-600);
}

.features-list {
    list-style: none;
    margin-bottom: 2rem;
}

.features-list li {
    padding: 0.75rem 0;
    color: var(--gray-700);
    font-size: 1rem;
    border-bottom: 1px solid var(--gray-200);
}

.features-list li:last-child {
    border-bottom: none;
}

/* ===================================
   TESTIMONIALS SECTION
   =================================== */

.testimonials-section {
    padding: 6rem 0;
    background: var(--white);
}

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

.testimonial-card {
    background: var(--gray-100);
    border-radius: 12px;
    padding: 2rem;
    text-align: center;
}

.testimonial-avatar {
    width: 80px;
    height: 80px;
    border-radius: 50%;
    margin: 0 auto 1.5rem;
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 3rem;
    background: var(--white);
}

.testimonial-text {
    font-size: 1.05rem;
    color: var(--gray-700);
    line-height: 1.7;
    margin-bottom: 1.5rem;
    font-style: italic;
}

.testimonial-author strong {
    display: block;
    color: var(--gray-900);
    font-weight: 600;
    margin-bottom: 0.25rem;
}

.testimonial-author span {
    color: var(--gray-600);
    font-size: 0.9rem;
}

/* ===================================
   CTA SECTION
   =================================== */

.cta-section {
    padding: 6rem 0;
    background: linear-gradient(135deg, var(--primary-green) 0%, var(--primary-dark) 100%);
    color: var(--white);
}

.cta-content {
    text-align: center;
    max-width: 700px;
    margin: 0 auto;
}

.cta-content h2 {
    font-size: 2.8rem;
    font-weight: 700;
    margin-bottom: 1rem;
    color: var(--white);
}

.cta-content p {
    font-size: 1.15rem;
    margin-bottom: 2rem;
    opacity: 0.95;
}

.cta-content .btn-primary {
    background: var(--white);
    color: var(--primary-green);
    border-color: var(--white);
}

.cta-content .btn-primary:hover {
    background: var(--gray-100);
    border-color: var(--gray-100);
}

.cta-note {
    margin-top: 1rem;
    font-size: 0.9rem;
    opacity: 0.9;
}

/* ===================================
   FOOTER
   =================================== */

.main-footer {
    background: var(--gray-900);
    color: var(--gray-300);
    padding: 4rem 0 2rem;
}

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

.footer-column h4 {
    color: var(--white);
    font-weight: 600;
    margin-bottom: 1rem;
}

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

.footer-column ul li {
    margin-bottom: 0.5rem;
}

.footer-column a {
    color: var(--gray-300);
    text-decoration: none;
    transition: color 0.2s;
}

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

.footer-brand {
    display: flex;
    align-items: center;
    gap: 0.75rem;
    margin-bottom: 1rem;
}

.footer-logo {
    width: 40px;
    height: 40px;
}

.social-links {
    display: flex;
    flex-direction: column;
    gap: 0.5rem;
}

.social-link {
    color: var(--gray-300);
    text-decoration: none;
    transition: color 0.2s;
}

.social-link:hover {
    color: var(--primary-green);
}

.footer-notice {
    margin: 0 auto 1.35rem;
    max-width: 880px;
    padding: 0.95rem 1.1rem;
    border: 1px solid rgba(43, 182, 115, 0.35);
    background: rgba(43, 182, 115, 0.08);
    border-radius: 12px;
    text-align: center;
    color: #c3f4dd;
    font-size: 0.92rem;
    line-height: 1.5;
}

.footer-notice strong {
    color: #7dffbf;
}

.footer-bottom {
    text-align: center;
    padding-top: 2rem;
    border-top: 1px solid var(--gray-800);
    color: var(--gray-600);
}

/* ===================================
   RESPONSIVE DESIGN
   =================================== */

@media (max-width: 1024px) {
    .nav-panel {
        gap: 1rem;
    }

    .nav-menu {
        gap: 1rem;
    }

    .nav-actions {
        gap: .5rem;
    }

    .hero-title {
        font-size: 2.8rem;
    }
    
    .hero-content,
    .differential-content {
        grid-template-columns: 1fr;
        gap: 3rem;
    }
    
    .hero-image {
        order: -1;
    }
}

@media (max-width: 768px) {
    .main-header {
        z-index: 1300;
    }

    body::before {
        content: '';
        position: fixed;
        inset: 0;
        background: rgba(15, 23, 42, 0.42);
        opacity: 0;
        pointer-events: none;
        transition: opacity .25s ease;
        z-index: 1090;
    }

    body.menu-open::before {
        opacity: 1;
        pointer-events: auto;
    }

    .navbar {
        flex-wrap: nowrap;
        gap: .75rem;
    }

    .nav-toggle {
        display: inline-flex;
        margin-left: auto;
        position: relative;
        z-index: 1205;
    }

    .nav-panel {
        display: flex;
        position: fixed;
        top: 0;
        left: 0;
        bottom: 0;
        width: min(86vw, 320px);
        flex-direction: column;
        align-items: stretch;
        justify-content: flex-start;
        gap: 1rem;
        background: var(--white);
        border-right: 1px solid var(--gray-200);
        border-radius: 0 18px 18px 0;
        padding: 1.25rem 1rem 1.1rem;
        box-shadow: var(--shadow-lg);
        transform: translateX(-110%);
        opacity: 0;
        visibility: hidden;
        pointer-events: none;
        transition: transform .32s cubic-bezier(.22, 1, .36, 1), opacity .2s ease, visibility 0s linear .32s;
        overflow-y: auto;
        z-index: 1200;
    }

    .navbar.menu-open .nav-panel {
        transform: translateX(0);
        opacity: 1;
        visibility: visible;
        pointer-events: auto;
        transition: transform .32s cubic-bezier(.22, 1, .36, 1), opacity .2s ease;
    }

    .nav-menu {
        flex-direction: column;
        gap: 0.35rem;
        width: 100%;
        text-align: left;
        padding-top: .25rem;
    }

    .nav-menu li {
        opacity: 0;
        transform: translateX(-12px);
        transition: transform .22s ease, opacity .22s ease;
    }

    .navbar.menu-open .nav-menu li {
        opacity: 1;
        transform: translateX(0);
    }
    .navbar.menu-open .nav-menu li:nth-child(1) { transition-delay: .05s; }
    .navbar.menu-open .nav-menu li:nth-child(2) { transition-delay: .09s; }
    .navbar.menu-open .nav-menu li:nth-child(3) { transition-delay: .13s; }
    .navbar.menu-open .nav-menu li:nth-child(4) { transition-delay: .17s; }
    .navbar.menu-open .nav-menu li:nth-child(5) { transition-delay: .21s; }

    .nav-menu a {
        display: block;
        padding: .65rem .8rem;
        border-radius: 10px;
        font-weight: 600;
    }

    .nav-menu a:hover {
        background: var(--gray-100);
    }

    .nav-actions {
        margin-top: auto;
        width: 100%;
        justify-content: stretch;
        flex-direction: column;
        gap: .65rem;
        padding-top: .75rem;
        border-top: 1px solid var(--gray-200);
    }

    .nav-actions .btn-primary,
    .nav-actions .btn-secondary {
        width: 100%;
        text-align: center;
        margin: 0;
    }

    .nav-actions .btn-secondary {
        background: var(--gray-100);
        border: 1px solid var(--gray-200);
        border-radius: 8px;
    }
    
    .hero-section {
        padding: 3rem 0;
    }

    .features-section,
    .how-it-works-section,
    .differential-section,
    .pricing-section,
    .testimonials-section,
    .cta-section {
        padding: 4rem 0;
    }

    .nav-brand {
        width: 60px;
        height: 60px;
        border-radius: 16px;
    }

    .nav-logo {
        width: 44px;
        height: 44px;
    }
    
    .hero-title {
        font-size: 2.2rem;
    }
    
    .hero-subtitle {
        font-size: 1.1rem;
    }
    
    .hero-buttons {
        flex-direction: column;
    }

    .hero-buttons .btn-large {
        width: 100%;
        text-align: center;
    }

    .hero-photo-card {
        max-width: 100%;
        border-radius: 14px;
    }

    .hero-photo-card img {
        aspect-ratio: 4 / 3;
    }

    .section-header h2 {
        font-size: 2rem;
    }
    
    .features-grid,
    .pricing-grid,
    .testimonials-grid {
        grid-template-columns: 1fr;
    }

    .pricing-grid {
        max-width: 100%;
        gap: 1rem;
    }
    
    .steps-container {
        flex-direction: column;
    }

    .step-card {
        min-width: 0;
        max-width: 100%;
        width: 100%;
    }
    
    .step-connector {
        transform: rotate(90deg);
    }
    
    .footer-content {
        grid-template-columns: 1fr;
        text-align: center;
    }
    
    .footer-brand {
        justify-content: center;
    }
    
    .social-links {
        align-items: center;
    }
}

@media (max-width: 480px) {
    .container {
        padding: 0 1rem;
    }
    
    .hero-title {
        font-size: 1.8rem;
    }

    .nav-brand {
        width: 56px;
        height: 56px;
        border-radius: 14px;
    }

    .nav-logo {
        width: 40px;
        height: 40px;
    }
    
    .btn-large {
        padding: 0.875rem 1.5rem;
        font-size: 1rem;
    }

    .section-header h2 {
        font-size: 1.75rem;
    }

    .section-header p {
        font-size: 1rem;
    }

    .pricing-section .billing-toggle {
        width: 100%;
        max-width: 340px;
    }

    .pricing-section .billing-toggle button {
        flex: 1;
        min-width: 0;
        padding: .5rem .5rem !important;
        font-size: .85rem !important;
    }

    .cta-content h2 {
        font-size: 2rem;
    }

    .cta-content p {
        font-size: 1rem;
    }

    .hero-photo-card {
        border-radius: 12px;
    }

    .hero-photo-card img {
        aspect-ratio: 5 / 4;
        object-position: center top;
    }
}

.card p {
    margin-bottom: 1rem;
}

footer {
    background: var(--gray-900);
    color: white;
    text-align: center;
    padding: 2rem 0;
    margin-top: 3rem;
}

.btn {
    display: inline-block;
    background: var(--primary-green);
    color: white;
    padding: 0.8rem 2rem;
    text-decoration: none;
    border: none;
    border-radius: 5px;
    margin-top: 1rem;
    cursor: pointer;
    transition: background 0.3s;
    font-size: 1rem;
}

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

.form-group {
    margin-bottom: 1.5rem;
}

.form-group label {
    display: block;
    margin-bottom: 0.5rem;
    font-weight: 500;
}

.form-group input,
.form-group textarea {
    width: 100%;
    padding: 0.8rem;
    border: 1px solid var(--gray-300);
    border-radius: 5px;
    font-family: inherit;
    font-size: 1rem;
}

.form-group input:focus,
.form-group textarea:focus {
    outline: none;
    border-color: var(--blue-accent);
}
