/* CSS Variables */
:root {
    --navy: #1B365D;
    --teal: #2A9D8F;
    --white: #FFFFFF;
    --grey-light: #F8F9FA;
    --grey-medium: #E5E7EB;
    --grey-dark: #6B7280;
    --grey-darker: #374151;
    --success: #10B981;
    --warning: #F59E0B;
    --danger: #EF4444;
    --shadow-sm: 0 1px 3px rgba(0, 0, 0, 0.08);
    --shadow-md: 0 4px 12px rgba(0, 0, 0, 0.12);
    --shadow-lg: 0 20px 60px rgba(0, 0, 0, 0.3);
}

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

html {
    scroll-behavior: smooth;
}

body {
    font-family: 'Inter', -apple-system, BlinkMacSystemFont, 'Segoe UI', sans-serif;
    background-color: var(--grey-light);
    color: #1a1a1a;
    line-height: 1.6;
    overflow-x: hidden;
}

/* Typography */
h1, h2, h3, h4, h5, h6 {
    font-weight: 700;
    line-height: 1.3;
}

h1 {
    font-size: 3.5rem;
}

h2 {
    font-size: 2.5rem;
}

h3 {
    font-size: 1.5rem;
}

p {
    color: var(--grey-dark);
    margin-bottom: 1rem;
}

a {
    color: var(--teal);
    text-decoration: none;
    transition: color 0.2s;
}

a:hover {
    color: var(--navy);
}

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

/* Navigation */
.navbar {
    background: var(--white);
    border-bottom: 1px solid var(--grey-medium);
    padding: 16px 0;
    position: sticky;
    top: 0;
    z-index: 100;
    box-shadow: var(--shadow-sm);
}

.navbar-light {
    background: var(--white);
}

.navbar-container {
    max-width: 1200px;
    margin: 0 auto;
    padding: 0 20px;
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 32px;
}

.logo {
    display: flex;
    align-items: center;
    gap: 8px;
    font-size: 1.5rem;
    font-weight: 700;
    color: var(--navy);
    flex-shrink: 0;
}

.logo-icon {
    width: 36px;
    height: 36px;
    background: linear-gradient(135deg, var(--navy), var(--teal));
    border-radius: 8px;
    display: flex;
    align-items: center;
    justify-content: center;
    color: var(--white);
    font-weight: bold;
    font-size: 18px;
}

.nav-menu {
    display: flex;
    gap: 32px;
    flex: 1;
    justify-content: center;
}

.nav-link {
    color: var(--grey-dark);
    font-weight: 500;
    transition: color 0.2s;
}

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

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

.hamburger {
    display: none;
    flex-direction: column;
    background: none;
    border: none;
    cursor: pointer;
    gap: 4px;
    padding: 8px;
}

.hamburger span {
    width: 24px;
    height: 2px;
    background: var(--navy);
    border-radius: 2px;
    transition: all 0.3s;
}

.hamburger.active span:nth-child(1) {
    transform: rotate(45deg) translateY(10px);
}

.hamburger.active span:nth-child(2) {
    opacity: 0;
}

.hamburger.active span:nth-child(3) {
    transform: rotate(-45deg) translateY(-10px);
}

/* Buttons */
.btn {
    padding: 12px 24px;
    border: none;
    border-radius: 8px;
    font-size: 14px;
    font-weight: 600;
    cursor: pointer;
    transition: all 0.2s;
    font-family: 'Inter', sans-serif;
    text-transform: uppercase;
    letter-spacing: 0.3px;
    display: inline-flex;
    align-items: center;
    justify-content: center;
}

.btn-primary {
    background: linear-gradient(135deg, var(--navy), #1a3052);
    color: var(--white);
}

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

.btn-primary:active {
    transform: translateY(0);
}

.btn-secondary {
    background: var(--grey-light);
    color: var(--navy);
    border: 1px solid var(--grey-medium);
}

.btn-secondary:hover {
    background: var(--grey-medium);
}

.btn-text {
    background: none;
    color: var(--teal);
    padding: 8px 0;
    font-size: 13px;
    text-decoration: none;
    display: inline;
}

.btn-text:hover {
    text-decoration: underline;
}

.btn-large {
    padding: 16px 40px;
    font-size: 16px;
}

.btn-block {
    width: 100%;
}

.btn-small {
    padding: 8px 16px;
    font-size: 12px;
}

.btn-cta {
    white-space: nowrap;
}

/* Hero Section */
.hero {
    background: linear-gradient(135deg, rgba(27, 54, 93, 0.95), rgba(42, 157, 143, 0.85)), url('data:image/svg+xml,<svg xmlns="http://www.w3.org/2000/svg" width="60" height="60" viewBox="0 0 60 60"><g fill="%23ffffff" fill-opacity="0.05"><circle cx="30" cy="30" r="2"/><circle cx="0" cy="0" r="2"/><circle cx="60" cy="60" r="2"/></g></svg>');
    color: var(--white);
    padding: 120px 20px;
    text-align: center;
    position: relative;
    overflow: hidden;
}

.hero::before {
    content: '';
    position: absolute;
    top: -50%;
    right: -10%;
    width: 500px;
    height: 500px;
    background: radial-gradient(circle, rgba(42, 157, 143, 0.2), transparent);
    border-radius: 50%;
    pointer-events: none;
}

.hero::after {
    content: '';
    position: absolute;
    bottom: -30%;
    left: -10%;
    width: 400px;
    height: 400px;
    background: radial-gradient(circle, rgba(27, 54, 93, 0.2), transparent);
    border-radius: 50%;
    pointer-events: none;
}

.hero-content {
    position: relative;
    z-index: 1;
}

.hero-title {
    font-size: 4rem;
    font-weight: 800;
    margin-bottom: 24px;
    line-height: 1.2;
    max-width: 900px;
    margin-left: auto;
    margin-right: auto;
}

.hero-subtitle {
    font-size: 1.25rem;
    color: rgba(255, 255, 255, 0.9);
    margin-bottom: 48px;
    max-width: 700px;
    margin-left: auto;
    margin-right: auto;
}

.hero-metrics {
    display: flex;
    justify-content: center;
    gap: 40px;
    margin-bottom: 48px;
    flex-wrap: wrap;
}

.metric-box {
    background: rgba(255, 255, 255, 0.1);
    padding: 32px 40px;
    border-radius: 12px;
    backdrop-filter: blur(10px);
    border: 1px solid rgba(255, 255, 255, 0.2);
    min-width: 250px;
}

.metric-label {
    font-size: 12px;
    text-transform: uppercase;
    letter-spacing: 1px;
    opacity: 0.8;
    margin-bottom: 8px;
}

.metric-value {
    font-size: 3.5rem;
    font-weight: 800;
    line-height: 1;
    margin-bottom: 8px;
}

.metric-detail {
    font-size: 13px;
    opacity: 0.8;
}

.hero-buttons {
    display: flex;
    gap: 16px;
    justify-content: center;
    margin-bottom: 48px;
    flex-wrap: wrap;
}

.hero-buttons .btn-secondary {
    background: var(--white);
    color: var(--navy);
}

.hero-buttons .btn-secondary:hover {
    background: rgba(255, 255, 255, 0.9);
}

.social-proof {
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 20px;
    flex-wrap: wrap;
}

.proof-label {
    font-size: 14px;
    opacity: 0.9;
}

.proof-avatars {
    display: flex;
    align-items: center;
    gap: -8px;
}

.avatar {
    width: 40px;
    height: 40px;
    background: rgba(255, 255, 255, 0.2);
    border: 2px solid var(--white);
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 12px;
    font-weight: 600;
    margin-left: -8px;
}

.avatar:first-child {
    margin-left: 0;
}

/* Sections */
section {
    padding: 80px 20px;
}

.section-title {
    text-align: center;
    margin-bottom: 16px;
    color: var(--navy);
}

.section-subtitle {
    text-align: center;
    font-size: 1.1rem;
    color: var(--grey-dark);
    margin-bottom: 60px;
    max-width: 600px;
    margin-left: auto;
    margin-right: auto;
}

/* Features Section */
.features {
    background: var(--white);
}

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

.feature-card {
    background: var(--grey-light);
    padding: 40px 32px;
    border-radius: 12px;
    border-left: 4px solid var(--teal);
    transition: all 0.3s;
}

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

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

.feature-card h3 {
    margin-bottom: 12px;
    color: var(--navy);
}

.feature-list {
    list-style: none;
    margin-top: 20px;
    padding-top: 20px;
    border-top: 1px solid var(--grey-medium);
}

.feature-list li {
    padding: 8px 0;
    font-size: 14px;
    color: var(--grey-dark);
}

.feature-list li::before {
    content: '✓ ';
    color: var(--success);
    font-weight: 600;
    margin-right: 8px;
}

/* How It Works */
.how-it-works {
    background: var(--grey-light);
}

.steps-container {
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 20px;
    flex-wrap: wrap;
    margin-top: 60px;
}

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

.step-number {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    width: 50px;
    height: 50px;
    background: linear-gradient(135deg, var(--navy), var(--teal));
    color: var(--white);
    font-size: 24px;
    font-weight: 700;
    border-radius: 50%;
    margin-bottom: 20px;
}

.step h3 {
    margin-bottom: 12px;
    color: var(--navy);
}

.step-icon {
    font-size: 3rem;
    margin-top: 20px;
    opacity: 0.8;
}

.step-arrow {
    font-size: 32px;
    color: var(--teal);
    font-weight: bold;
}

@media (max-width: 768px) {
    .step-arrow {
        transform: rotate(90deg);
    }
}

/* Pricing Section */
.pricing {
    background: var(--white);
}

.pricing-toggle {
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 20px;
    margin-bottom: 60px;
}

.toggle-label {
    font-size: 14px;
    font-weight: 600;
    color: var(--grey-dark);
}

.discount {
    background: linear-gradient(135deg, var(--navy), var(--teal));
    color: var(--white);
    padding: 4px 8px;
    border-radius: 4px;
    font-size: 12px;
    margin-left: 8px;
}

.toggle-switch {
    display: flex;
    align-items: center;
    cursor: pointer;
}

.toggle-switch input {
    display: none;
}

.toggle-slider {
    width: 50px;
    height: 28px;
    background: var(--grey-medium);
    border-radius: 14px;
    position: relative;
    transition: background 0.3s;
}

.toggle-slider::before {
    content: '';
    position: absolute;
    width: 24px;
    height: 24px;
    background: var(--white);
    border-radius: 50%;
    top: 2px;
    left: 2px;
    transition: left 0.3s;
}

.toggle-switch input:checked + .toggle-slider {
    background: var(--teal);
}

.toggle-switch input:checked + .toggle-slider::before {
    left: 24px;
}

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

.pricing-card {
    background: var(--grey-light);
    border: 2px solid var(--grey-medium);
    border-radius: 12px;
    padding: 40px 32px;
    transition: all 0.3s;
    position: relative;
}

.pricing-card.featured {
    transform: scale(1.05);
    border-color: var(--teal);
    background: var(--white);
    box-shadow: var(--shadow-lg);
}

.pricing-card:hover:not(.featured) {
    border-color: var(--teal);
    box-shadow: var(--shadow-md);
}

.badge {
    position: absolute;
    top: -12px;
    right: 32px;
    background: linear-gradient(135deg, var(--navy), var(--teal));
    color: var(--white);
    padding: 6px 16px;
    border-radius: 20px;
    font-size: 12px;
    font-weight: 600;
    text-transform: uppercase;
    letter-spacing: 0.5px;
}

.plan-header {
    margin-bottom: 24px;
}

.plan-name {
    color: var(--navy);
    margin-bottom: 4px;
}

.plan-description {
    font-size: 14px;
    color: var(--grey-dark);
    margin: 0;
}

.plan-price {
    display: flex;
    align-items: baseline;
    gap: 4px;
    margin: 24px 0;
    justify-content: center;
}

.currency {
    font-size: 20px;
    color: var(--grey-dark);
}

.amount {
    font-size: 3rem;
    font-weight: 800;
    color: var(--navy);
}

.period {
    font-size: 14px;
    color: var(--grey-dark);
}

.plan-detail {
    text-align: center;
    font-size: 13px;
    color: var(--grey-dark);
    margin-bottom: 24px;
}

.divider-light {
    height: 1px;
    background: var(--grey-medium);
    margin: 24px 0;
}

.features-list {
    list-style: none;
    font-size: 13px;
}

.features-list li {
    padding: 10px 0;
    color: var(--grey-dark);
}

.features-list li::before {
    content: '';
    margin-right: 8px;
}

.pricing-footer {
    text-align: center;
    font-size: 13px;
    color: var(--grey-dark);
}

/* Testimonials */
.testimonials {
    background: var(--grey-light);
}

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

.testimonial-card {
    background: var(--white);
    padding: 32px;
    border-radius: 12px;
    box-shadow: var(--shadow-md);
    border-top: 4px solid var(--teal);
}

.stars {
    color: #F59E0B;
    font-size: 14px;
    margin-bottom: 12px;
}

.testimonial-text {
    font-size: 15px;
    font-style: italic;
    margin-bottom: 20px;
    color: #333;
}

.testimonial-author {
    padding-top: 20px;
    border-top: 1px solid var(--grey-medium);
}

.author-name {
    font-weight: 600;
    color: var(--navy);
    margin-bottom: 4px;
}

.author-title {
    font-size: 13px;
    color: var(--grey-dark);
    margin: 0;
}

/* FAQ */
.faq {
    background: var(--white);
}

.faq-container {
    max-width: 700px;
    margin: 0 auto;
}

.faq-item {
    margin-bottom: 12px;
    border: 1px solid var(--grey-medium);
    border-radius: 8px;
    overflow: hidden;
}

.faq-question {
    width: 100%;
    padding: 20px;
    background: var(--grey-light);
    border: none;
    cursor: pointer;
    display: flex;
    align-items: center;
    justify-content: space-between;
    font-weight: 600;
    color: var(--navy);
    font-family: 'Inter', sans-serif;
    font-size: 15px;
    transition: all 0.2s;
}

.faq-question:hover {
    background: var(--white);
}

.faq-icon {
    font-size: 20px;
    transition: transform 0.2s;
    display: flex;
    align-items: center;
    justify-content: center;
    width: 24px;
    height: 24px;
}

.faq-item.active .faq-icon {
    transform: rotate(45deg);
}

.faq-answer {
    padding: 0 20px;
    max-height: 0;
    overflow: hidden;
    transition: all 0.3s;
}

.faq-item.active .faq-answer {
    padding: 20px;
    max-height: 500px;
}

.faq-answer p {
    margin: 0;
    color: var(--grey-dark);
    font-size: 14px;
}

/* CTA Section */
.cta-section {
    background: linear-gradient(135deg, var(--navy), var(--teal));
    color: var(--white);
    text-align: center;
    padding: 100px 20px;
}

.cta-section h2 {
    color: var(--white);
    margin-bottom: 12px;
}

.cta-section p {
    color: rgba(255, 255, 255, 0.9);
    margin-bottom: 32px;
}

.cta-note {
    font-size: 13px;
    margin-top: 16px;
    color: rgba(255, 255, 255, 0.8);
}

/* Footer */
.footer {
    background: var(--navy);
    color: var(--white);
    padding: 60px 20px 20px;
}

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

.footer-column h4 {
    color: var(--white);
    margin-bottom: 16px;
}

.footer-column p {
    color: rgba(255, 255, 255, 0.8);
    font-size: 14px;
    margin: 0;
}

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

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

.footer-column a {
    color: rgba(255, 255, 255, 0.8);
    font-size: 14px;
}

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

.newsletter-form {
    display: flex;
    gap: 8px;
    margin-bottom: 12px;
}

.newsletter-form input {
    flex: 1;
    padding: 10px 12px;
    border: 1px solid rgba(255, 255, 255, 0.3);
    border-radius: 6px;
    font-size: 13px;
    background: rgba(255, 255, 255, 0.1);
    color: var(--white);
}

.newsletter-form input::placeholder {
    color: rgba(255, 255, 255, 0.6);
}

.newsletter-note {
    font-size: 12px;
    color: rgba(255, 255, 255, 0.7);
    margin: 0;
}

.footer-bottom {
    border-top: 1px solid rgba(255, 255, 255, 0.1);
    padding-top: 20px;
    text-align: center;
    font-size: 13px;
    color: rgba(255, 255, 255, 0.6);
}

/* Modals */
.modal {
    display: none;
    position: fixed;
    z-index: 1000;
    left: 0;
    top: 0;
    width: 100%;
    height: 100%;
    background: rgba(0, 0, 0, 0.5);
    align-items: center;
    justify-content: center;
}

.modal-content {
    background: var(--white);
    padding: 40px;
    border-radius: 12px;
    width: 90%;
    max-width: 450px;
    position: relative;
    box-shadow: var(--shadow-lg);
}

.modal-close {
    position: absolute;
    top: 16px;
    right: 16px;
    background: none;
    border: none;
    font-size: 28px;
    color: var(--grey-dark);
    cursor: pointer;
    width: 32px;
    height: 32px;
    display: flex;
    align-items: center;
    justify-content: center;
}

.modal-close:hover {
    color: var(--navy);
}

.modal h2 {
    color: var(--navy);
    margin-bottom: 8px;
    font-size: 24px;
}

.modal > div > p:nth-of-type(1) {
    font-size: 14px;
    margin-bottom: 24px;
}

/* Forms */
.form-group {
    margin-bottom: 20px;
}

.form-group.checkbox {
    display: flex;
    align-items: flex-start;
    gap: 8px;
}

.form-group.checkbox input {
    margin-top: 4px;
}

.form-group.checkbox label {
    font-size: 14px;
    color: var(--grey-dark);
}

.form-label {
    display: block;
    font-size: 13px;
    font-weight: 600;
    color: var(--grey-darker);
    margin-bottom: 8px;
    text-transform: uppercase;
    letter-spacing: 0.3px;
}

.form-input {
    width: 100%;
    padding: 12px 16px;
    border: 1px solid var(--grey-medium);
    border-radius: 6px;
    font-size: 14px;
    font-family: 'Inter', sans-serif;
    transition: all 0.2s;
}

.form-input:focus {
    outline: none;
    border-color: var(--teal);
    box-shadow: 0 0 0 3px rgba(42, 157, 143, 0.1);
}

.divider {
    text-align: center;
    margin: 20px 0;
    color: var(--grey-medium);
    font-size: 12px;
    position: relative;
}

.divider::before,
.divider::after {
    content: '';
    position: absolute;
    top: 50%;
    width: 40%;
    height: 1px;
    background: var(--grey-medium);
}

.divider::before {
    left: 0;
}

.divider::after {
    right: 0;
}

.form-note {
    font-size: 12px;
    color: var(--grey-dark);
    text-align: center;
    margin-top: 12px;
}

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

@keyframes slideUp {
    from {
        opacity: 0;
        transform: translateY(30px);
    }
    to {
        opacity: 1;
        transform: translateY(0);
    }
}

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

.fade-in {
    animation: fadeIn 0.6s ease-out forwards;
}

.slide-up {
    animation: slideUp 0.6s ease-out forwards;
    opacity: 0;
}

.slide-up:nth-child(1) { animation-delay: 0s; }
.slide-up:nth-child(2) { animation-delay: 0.1s; }
.slide-up:nth-child(3) { animation-delay: 0.2s; }
.slide-up:nth-child(4) { animation-delay: 0.3s; }

/* Responsive */
@media (max-width: 768px) {
    h1 {
        font-size: 2.5rem;
    }

    h2 {
        font-size: 1.8rem;
    }

    section {
        padding: 60px 20px;
    }

    .navbar-container {
        gap: 12px;
    }

    .nav-menu {
        display: none;
    }

    .nav-menu.active {
        display: flex;
        flex-direction: column;
        position: absolute;
        top: 72px;
        left: 0;
        right: 0;
        background: var(--white);
        border-bottom: 1px solid var(--grey-medium);
        padding: 16px;
        gap: 8px;
    }

    .hamburger {
        display: flex;
    }

    .hero-title {
        font-size: 2rem;
    }

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

    .hero-metrics {
        flex-direction: column;
        gap: 20px;
    }

    .metric-box {
        min-width: 100%;
    }

    .hero-buttons {
        flex-direction: column;
    }

    .hero-buttons .btn {
        width: 100%;
    }

    .pricing-card.featured {
        transform: scale(1);
    }

    .steps-container {
        flex-direction: column;
    }

    .step-arrow {
        transform: rotate(90deg);
    }

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

    .footer-grid {
        grid-template-columns: 1fr;
        gap: 30px;
    }

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

@media (max-width: 480px) {
    h1 {
        font-size: 1.75rem;
    }

    h2 {
        font-size: 1.5rem;
    }

    h3 {
        font-size: 1.2rem;
    }

    .navbar-container {
        padding: 0 12px;
    }

    .btn-large {
        padding: 12px 20px;
        font-size: 14px;
    }

    .metric-value {
        font-size: 2.5rem;
    }

    .plan-price {
        flex-direction: column;
    }

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

    .newsletter-form input {
        width: 100%;
    }

    .modal-content {
        width: 95%;
        padding: 32px 20px;
    }
}
