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

:root {
    --primary-color: #4F46E5;
    --secondary-color: #10B981;
    --dark-color: #1F2937;
    --light-color: #F9FAFB;
    --text-color: #374151;
    --border-color: #E5E7EB;
    --success-color: #10B981;
    --warning-color: #F59E0B;
    --danger-color: #EF4444;
}

body {
    font-family: 'Segoe UI', Tahoma, Geneva, Verdana, sans-serif;
    line-height: 1.6;
    color: var(--text-color);
    background-color: #fff;
}

.notification-stack {
    position: fixed;
    top: 24px;
    right: 24px;
    display: flex;
    flex-direction: column;
    gap: 12px;
    width: min(360px, calc(100vw - 32px));
    z-index: 2000;
    pointer-events: none;
}

.notification-toast {
    display: grid;
    grid-template-columns: auto 1fr auto;
    align-items: start;
    gap: 14px;
    padding: 16px 18px;
    border-radius: 18px;
    border: 1px solid rgba(255,255,255,0.55);
    background: rgba(255,255,255,0.92);
    box-shadow: 0 18px 36px rgba(31, 41, 55, 0.16);
    backdrop-filter: blur(14px);
    transform: translateY(-12px) scale(0.96);
    opacity: 0;
    transition: opacity 0.2s ease, transform 0.2s ease;
    pointer-events: auto;
}

.notification-toast.is-visible {
    transform: translateY(0) scale(1);
    opacity: 1;
}

.notification-toast.is-leaving {
    transform: translateY(-10px) scale(0.97);
    opacity: 0;
}

.notification-icon {
    width: 40px;
    height: 40px;
    display: inline-flex;
    align-items: center;
    justify-content: center;
    border-radius: 14px;
    font-size: 1.1rem;
    font-weight: 700;
    color: #fff;
    box-shadow: inset 0 -6px 12px rgba(0,0,0,0.12);
}

.notification-copy strong {
    display: block;
    margin-bottom: 2px;
    color: var(--dark-color);
    font-size: 0.95rem;
}

.notification-copy p {
    margin: 0;
    color: #4b5563;
    font-size: 0.92rem;
}

.notification-close {
    border: 0;
    background: transparent;
    color: #9ca3af;
    font-size: 1.35rem;
    line-height: 1;
    cursor: pointer;
    padding: 2px;
}

.notification-close:hover {
    color: var(--dark-color);
}

.notification-success .notification-icon {
    background: linear-gradient(135deg, #34d399, #10b981);
}

.notification-error .notification-icon {
    background: linear-gradient(135deg, #fb7185, #ef4444);
}

.notification-info .notification-icon {
    background: linear-gradient(135deg, #60a5fa, #4f46e5);
}

body.pricing-pending #heroOldPrice,
body.pricing-pending #heroNewPrice,
body.pricing-pending #starterOldPrice,
body.pricing-pending #starterCurrentPrice,
body.pricing-pending #starterPriceNote,
body.pricing-pending #professionalOldPrice,
body.pricing-pending #professionalCurrentPrice,
body.pricing-pending #professionalPriceNote,
body.pricing-pending #enterpriseOldPrice,
body.pricing-pending #enterpriseCurrentPrice,
body.pricing-pending #enterprisePriceNote {
    visibility: hidden;
}

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

/* Navigation */
.navbar {
    background: #fff;
    box-shadow: 0 2px 10px rgba(0,0,0,0.1);
    position: sticky;
    top: 0;
    z-index: 1000;
    padding: 1rem 0;
}

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

.logo {
    display: flex;
    align-items: center;
    gap: 10px;
    font-size: 1.5rem;
    font-weight: bold;
    color: var(--primary-color);
}

.logo i {
    font-size: 2rem;
}

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

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

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

.nav-buttons {
    display: flex;
    gap: 1rem;
}

.btn-login {
    padding: 0.5rem 1.5rem;
    text-decoration: none;
    color: var(--text-color);
    border-radius: 6px;
    transition: all 0.3s;
}

.btn-primary {
    padding: 0.5rem 1.5rem;
    background: var(--primary-color);
    color: #fff;
    text-decoration: none;
    border-radius: 6px;
    transition: all 0.3s;
}

.btn-primary:hover {
    background: #4338CA;
    transform: translateY(-2px);
}

.hamburger {
    display: none;
    flex-direction: column;
    cursor: pointer;
}

.hamburger span {
    width: 25px;
    height: 3px;
    background: var(--text-color);
    margin: 3px 0;
    transition: 0.3s;
}

/* Hero Section */
.hero {
    background: linear-gradient(135deg, #667eea 0%, #764ba2 100%);
    color: #fff;
    padding: 80px 0;
}

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

.badge {
    display: inline-block;
    background: rgba(255,255,255,0.2);
    padding: 0.5rem 1rem;
    border-radius: 50px;
    margin-bottom: 1.5rem;
    font-size: 0.9rem;
}

.hero h1 {
    font-size: 3rem;
    margin-bottom: 1rem;
    line-height: 1.2;
}

.hero-subtitle {
    font-size: 1.2rem;
    margin-bottom: 2rem;
    opacity: 0.9;
}

.hero-features {
    display: flex;
    flex-direction: column;
    gap: 1rem;
    margin-bottom: 2rem;
}

.feature-item {
    display: flex;
    align-items: center;
    gap: 0.5rem;
}

.feature-item i {
    color: var(--success-color);
    font-size: 1.2rem;
}

.hero-cta {
    display: flex;
    align-items: center;
    gap: 2rem;
    margin-bottom: 1.5rem;
}

.price-box {
    display: flex;
    align-items: center;
    gap: 0.5rem;
}

.old-price {
    text-decoration: line-through;
    opacity: 0.7;
    font-size: 1.2rem;
}

.new-price {
    font-size: 3rem;
    font-weight: bold;
}

.price-period {
    font-size: 1.2rem;
    opacity: 0.8;
}

.btn-hero {
    padding: 1rem 2rem;
    background: #fff;
    color: var(--primary-color);
    text-decoration: none;
    border-radius: 6px;
    font-weight: bold;
    transition: all 0.3s;
}

.btn-hero:hover {
    transform: translateY(-2px);
    box-shadow: 0 10px 20px rgba(0,0,0,0.2);
}

.trust-badge {
    display: flex;
    align-items: center;
    gap: 0.5rem;
    font-size: 0.9rem;
}

.hero-illustration {
    text-align: center;
    opacity: 0.3;
}

.rating-box {
    background: rgba(255,255,255,0.1);
    padding: 1.5rem;
    border-radius: 10px;
    text-align: center;
    margin-top: 2rem;
}

.stars {
    color: #FCD34D;
    font-size: 1.5rem;
    margin-bottom: 0.5rem;
}

/* Features Section */
.features {
    padding: 80px 0;
    background: var(--light-color);
}

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

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

.section-header p {
    font-size: 1.1rem;
    color: var(--text-color);
}

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

.feature-card {
    background: #fff;
    padding: 2rem;
    border-radius: 10px;
    box-shadow: 0 4px 6px rgba(0,0,0,0.1);
    transition: all 0.3s;
}

.feature-card:hover {
    transform: translateY(-5px);
    box-shadow: 0 10px 20px rgba(0,0,0,0.15);
}

.feature-icon {
    width: 60px;
    height: 60px;
    background: linear-gradient(135deg, var(--primary-color), var(--secondary-color));
    border-radius: 10px;
    display: flex;
    align-items: center;
    justify-content: center;
    margin-bottom: 1.5rem;
}

.feature-icon i {
    color: #fff;
    font-size: 1.8rem;
}

.feature-card h3 {
    font-size: 1.3rem;
    margin-bottom: 1rem;
    color: var(--dark-color);
}

.feature-card p {
    color: var(--text-color);
}

/* Pricing Section */
.pricing {
    padding: 80px 0;
}

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

.pricing-card {
    background: #fff;
    border: 2px solid var(--border-color);
    border-radius: 10px;
    padding: 2rem;
    position: relative;
    transition: all 0.3s;
}

.pricing-card:hover {
    transform: translateY(-5px);
    box-shadow: 0 10px 30px rgba(0,0,0,0.15);
}

.pricing-card.featured {
    border-color: var(--primary-color);
    box-shadow: 0 10px 30px rgba(79, 70, 229, 0.2);
}

.best-deal {
    position: absolute;
    top: -15px;
    left: 50%;
    transform: translateX(-50%);
    background: var(--success-color);
    color: #fff;
    padding: 0.5rem 1.5rem;
    border-radius: 20px;
    font-weight: bold;
    font-size: 0.9rem;
}

.pricing-header {
    margin-bottom: 1.5rem;
}

.pricing-header h3 {
    font-size: 1.8rem;
    color: var(--dark-color);
    margin-bottom: 0.5rem;
}

.pricing-header p {
    color: var(--text-color);
}

.discount-badge {
    display: inline-block;
    background: var(--danger-color);
    color: #fff;
    padding: 0.3rem 1rem;
    border-radius: 20px;
    font-weight: bold;
    margin-bottom: 1rem;
}

.price {
    margin-bottom: 1rem;
}

.price .old-price {
    text-decoration: line-through;
    color: #999;
    font-size: 1.2rem;
    margin-right: 0.5rem;
}

.price .current-price {
    font-size: 3rem;
    font-weight: bold;
    color: var(--primary-color);
}

.price .period {
    font-size: 1.2rem;
    color: var(--text-color);
}

.price-note {
    font-size: 0.9rem;
    color: var(--text-color);
    margin-bottom: 1.5rem;
}

.btn-pricing {
    width: 100%;
    padding: 1rem;
    background: var(--primary-color);
    color: #fff;
    border: none;
    border-radius: 6px;
    font-size: 1.1rem;
    font-weight: bold;
    cursor: pointer;
    transition: all 0.3s;
}

.btn-pricing:hover {
    background: #4338CA;
    transform: translateY(-2px);
}

.price-guarantee {
    text-align: center;
    margin: 1rem 0;
    padding: 0.5rem;
    background: var(--light-color);
    border-radius: 6px;
    font-weight: bold;
    font-size: 0.9rem;
    color: var(--success-color);
}

.features-list {
    list-style: none;
    margin-top: 1.5rem;
}

.features-list li {
    padding: 0.5rem 0;
    display: flex;
    align-items: center;
    gap: 0.5rem;
    border-bottom: 1px solid var(--border-color);
}

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

.features-list i {
    color: var(--success-color);
}

.money-back {
    display: flex;
    align-items: center;
    gap: 2rem;
    background: var(--light-color);
    padding: 2rem;
    border-radius: 10px;
    max-width: 800px;
    margin: 0 auto;
}

.guarantee-icon {
    width: 80px;
    height: 80px;
}

.money-back h3 {
    font-size: 1.5rem;
    color: var(--dark-color);
    margin-bottom: 0.5rem;
}

/* Testimonials Section */
.testimonials {
    padding: 80px 0;
    background: var(--light-color);
}

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

.testimonial-card {
    background: #fff;
    padding: 2rem;
    border-radius: 10px;
    box-shadow: 0 4px 6px rgba(0,0,0,0.1);
    position: relative;
}

.testimonial-card .stars {
    color: #FCD34D;
    margin-bottom: 1rem;
}

.testimonial-card h4 {
    font-size: 1.2rem;
    color: var(--dark-color);
    margin-bottom: 1rem;
}

.testimonial-card p {
    color: var(--text-color);
    margin-bottom: 1.5rem;
    line-height: 1.6;
}

.testimonial-author {
    display: flex;
    align-items: center;
    gap: 1rem;
}

.author-avatar {
    width: 50px;
    height: 50px;
    background: var(--primary-color);
    color: #fff;
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    font-weight: bold;
}

.author-info strong {
    display: block;
    color: var(--dark-color);
}

.author-info span {
    font-size: 0.9rem;
    color: var(--text-color);
}

.review-date {
    margin-top: 1rem;
    font-size: 0.9rem;
    color: #999;
}

/* Contact Section */
.contact {
    padding: 80px 0;
}

.contact-content {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 4rem;
}

.contact-info {
    display: flex;
    flex-direction: column;
    gap: 2rem;
}

.contact-item {
    display: flex;
    align-items: start;
    gap: 1.5rem;
}

.contact-item i {
    font-size: 2rem;
    color: var(--primary-color);
    width: 50px;
    height: 50px;
    background: var(--light-color);
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
}

.contact-item h4 {
    font-size: 1.2rem;
    color: var(--dark-color);
    margin-bottom: 0.5rem;
}

.contact-form {
    background: var(--light-color);
    padding: 2rem;
    border-radius: 10px;
}

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

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

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

.btn-submit {
    width: 100%;
    padding: 1rem;
    background: var(--primary-color);
    color: #fff;
    border: none;
    border-radius: 6px;
    font-size: 1.1rem;
    font-weight: bold;
    cursor: pointer;
    transition: all 0.3s;
}

.btn-submit:hover {
    background: #4338CA;
    transform: translateY(-2px);
}

/* Footer */
.footer {
    background: var(--dark-color);
    color: #fff;
    padding: 60px 0 20px;
}

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

.footer-logo {
    display: flex;
    align-items: center;
    gap: 10px;
    font-size: 1.5rem;
    font-weight: bold;
    margin-bottom: 1rem;
}

.footer-logo i {
    font-size: 2rem;
}

.footer-section p {
    margin-bottom: 1.5rem;
    opacity: 0.8;
}

.social-links {
    display: flex;
    gap: 1rem;
}

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

.social-links a:hover {
    background: var(--primary-color);
}

.footer-section h4 {
    margin-bottom: 1.5rem;
    font-size: 1.2rem;
}

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

.footer-section ul li {
    margin-bottom: 0.8rem;
}

.footer-section ul li a {
    color: #fff;
    text-decoration: none;
    opacity: 0.8;
    transition: opacity 0.3s;
}

.footer-section ul li a:hover {
    opacity: 1;
}

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

.payment-methods {
    display: flex;
    gap: 1rem;
    font-size: 2rem;
}

/* Modal */
.modal {
    display: none;
    position: fixed;
    z-index: 2000;
    left: 0;
    top: 0;
    width: 100%;
    height: 100%;
    padding: 24px 16px;
    background: rgba(0,0,0,0.7);
    overflow: hidden;
}

.modal-content {
    background: #fff;
    margin: 0 auto;
    padding: 1.5rem;
    width: 90%;
    max-width: 500px;
    max-height: calc(100vh - 48px);
    border-radius: 10px;
    position: relative;
    overflow: hidden;
    box-shadow: 0 24px 60px rgba(0,0,0,0.25);
}

.modal-content h2 {
    margin-bottom: 1rem;
    padding-right: 2rem;
    font-size: 1.75rem;
}

.close {
    position: absolute;
    right: 1.5rem;
    top: 1.5rem;
    font-size: 2rem;
    cursor: pointer;
    color: #999;
}

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

.selected-plan {
    background: var(--light-color);
    padding: 1rem;
    border-radius: 6px;
    margin-bottom: 1rem;
    border: 1px solid var(--border-color);
}

.selected-plan h3 {
    font-size: 1.2rem;
    margin-bottom: 0.5rem;
}

.selected-plan p {
    font-size: 0.95rem;
    line-height: 1.45;
}

.selected-plan-price {
    font-size: 1.6rem;
    color: var(--primary-color);
    font-weight: 700;
    margin: 0.5rem 0;
}

.selected-plan-period {
    font-size: 0.95rem;
    color: var(--text-color);
    font-weight: 400;
}

.selected-plan-total {
    margin-top: 0.75rem;
    font-weight: bold;
}

#paymentForm {
    display: flex;
    flex-direction: column;
    gap: 0.85rem;
}

#paymentForm .form-group {
    margin-bottom: 0;
}

#paymentForm label {
    display: block;
    margin-bottom: 0.35rem;
    font-size: 0.95rem;
    font-weight: 600;
    color: var(--dark-color);
}

#paymentForm .form-group input {
    padding: 0.85rem 1rem;
}

#card-errors {
    color: var(--danger-color);
    margin-top: 0.4rem;
    font-size: 0.9rem;
    min-height: 1.2em;
}

#submitPayment {
    margin-top: 0.25rem;
    padding: 0.9rem 1rem;
}

.spinner {
    border: 3px solid rgba(255,255,255,0.3);
    border-top: 3px solid #fff;
    border-radius: 50%;
    width: 20px;
    height: 20px;
    animation: spin 0.8s linear infinite;
    display: inline-block;
    margin-left: 10px;
}

.hidden {
    display: none;
}

@keyframes spin {
    0% { transform: rotate(0deg); }
    100% { transform: rotate(360deg); }
}

/* Responsive Design */
@media (max-width: 768px) {
    .hamburger {
        display: flex;
    }

    .nav-menu {
        display: none;
    }

    .nav-buttons {
        display: none;
    }

    .hero-content {
        grid-template-columns: 1fr;
    }

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

    .hero-cta {
        flex-direction: column;
        align-items: start;
    }

    .contact-content {
        grid-template-columns: 1fr;
    }

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

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

    .modal {
        padding: 12px;
    }

    .modal-content {
        width: 100%;
        max-height: calc(100vh - 24px);
        padding: 1rem;
        border-radius: 12px;
    }

    .modal-content h2 {
        font-size: 1.35rem;
        margin-bottom: 0.85rem;
    }

    .selected-plan {
        padding: 0.85rem;
        margin-bottom: 0.85rem;
    }

    .selected-plan-price {
        font-size: 1.35rem;
    }

    #paymentForm {
        gap: 0.75rem;
    }

    #paymentForm .form-group input,
    #submitPayment {
        padding-top: 0.8rem;
        padding-bottom: 0.8rem;
    }
}
