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

body {
    font-family: 'Inter', -apple-system, BlinkMacSystemFont, 'Segoe UI', sans-serif;
    line-height: 1.6;
    color: #e8eaed;
    background: linear-gradient(135deg, #0f172a 0%, #1e293b 50%, #334155 100%);
    min-height: 100vh;
    display: flex;
    flex-direction: column;
    -webkit-font-smoothing: antialiased;
    -moz-osx-font-smoothing: grayscale;
}

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

/* Main Content */
.main-content {
    flex: 1;
    display: flex;
    align-items: center;
    justify-content: center;
    padding: 80px 0;
}

/* Success Card */
.success-card {
    background: rgba(30, 41, 59, 0.8);
    backdrop-filter: blur(20px);
    -webkit-backdrop-filter: blur(20px);
    border: 1px solid rgba(148, 163, 184, 0.1);
    border-radius: 24px;
    padding: 80px 60px;
    text-align: center;
    box-shadow: 0 25px 50px -12px rgba(0, 0, 0, 0.25);
    max-width: 640px;
    /*width: 100%;*/
    position: relative;
    overflow: hidden;
    animation: fadeInUp 0.8s cubic-bezier(0.4, 0, 0.2, 1);
}

.success-card::before {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    height: 1px;
    background: linear-gradient(90deg, transparent, rgba(148, 163, 184, 0.3), transparent);
}

/* Success Icon */
.success-icon {
    width: 120px;
    height: 120px;
    background: linear-gradient(135deg, #1e40af, #3b82f6);
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    margin: 0 auto 40px;
    position: relative;
    box-shadow: 0 20px 40px rgba(30, 64, 175, 0.3);
}

.success-icon::after {
    content: '';
    position: absolute;
    width: 140px;
    height: 140px;
    border: 2px solid rgba(59, 130, 246, 0.2);
    border-radius: 50%;
    animation: pulse 3s infinite;
}

@keyframes pulse {
    0% {
        transform: scale(1);
        opacity: 1;
    }
    100% {
        transform: scale(1.1);
        opacity: 0;
    }
}

.checkmark {
    width: 60px;
    height: 60px;
    stroke: white;
    stroke-width: 2.5;
    fill: none;
    stroke-linecap: round;
    stroke-linejoin: round;
}

/* Typography */
.success-title {
    font-size: 2.75rem;
    font-weight: 700;
    color: #f1f5f9;
    margin-bottom: 24px;
    letter-spacing: -0.025em;
}

.success-message {
    font-size: 1.125rem;
    color: #94a3b8;
    margin-bottom: 48px;
    line-height: 1.7;
    font-weight: 400;
}

/* Manager Info */
.manager-info {
    background: rgba(15, 23, 42, 0.6);
    border: 1px solid rgba(59, 130, 246, 0.2);
    border-radius: 16px;
    padding: 32px;
    margin-bottom: 60px;
    position: relative;
}

.manager-info::before {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    width: 4px;
    height: 100%;
    background: linear-gradient(180deg, #3b82f6, #1e40af);
    border-radius: 2px;
}

.manager-info h3 {
    color: #f1f5f9;
    margin-bottom: 16px;
    font-size: 1.25rem;
    font-weight: 600;
}

.manager-info p {
    color: #cbd5e1;
    font-size: 1rem;
    line-height: 1.6;
    margin-bottom: 24px;
}

/* Action Buttons */
.action-buttons {
    display: flex;
    flex-direction: column;
    gap: 16px;
}

.action-btn {
    background: linear-gradient(135deg, #3b82f6, #1e40af);
    color: white;
    border: none;
    border-radius: 12px;
    padding: 14px 20px;
    font-size: 1rem;
    font-weight: 600;
    cursor: pointer;
    transition: all 0.3s ease;
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 8px;
    text-decoration: none;
    box-shadow: 0 4px 16px rgba(59, 130, 246, 0.3);
}

.action-btn:hover {
    transform: translateY(-2px);
    box-shadow: 0 6px 20px rgba(59, 130, 246, 0.4);
}

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

.btn-icon {
    width: 20px;
    height: 20px;
    stroke-width: 2;
}

/* Calendar Button */
.calendar-btn {
    background: linear-gradient(135deg, #8b5cf6, #7c3aed);
    box-shadow: 0 4px 16px rgba(139, 92, 246, 0.3);
}

.calendar-btn:hover {
    box-shadow: 0 6px 20px rgba(139, 92, 246, 0.4);
}

.whatsapp-btn {
    background: linear-gradient(135deg, #25d366, #20ba5a);
    box-shadow: 0 4px 16px rgba(37, 211, 102, 0.3);
}

.whatsapp-btn:hover {
    box-shadow: 0 6px 20px rgba(37, 211, 102, 0.4);
}

.phone-btn {
    width: 100%;
    margin-bottom: 15px;
    background: linear-gradient(135deg, #25d366, #20ba5a);
    box-shadow: 0 6px 20px rgba(37, 211, 102, 0.4);
}

.phone-btn:hover {
    box-shadow: 0 6px 20px rgba(37, 211, 102, 0.4);
}

/* Popup Styles */
.popup-overlay {
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background: rgba(0, 0, 0, 0.5);
    display: none;
    justify-content: center;
    align-items: center;
    z-index: 1000;
    backdrop-filter: blur(4px);
    -webkit-backdrop-filter: blur(4px);
}

.popup-content {
    background: rgba(30, 41, 59, 0.95);
    backdrop-filter: blur(20px);
    -webkit-backdrop-filter: blur(20px);
    border: 1px solid rgba(148, 163, 184, 0.2);
    border-radius: 20px;
    padding: 32px;
    max-width: 400px;
    width: 90%;
    text-align: center;
    box-shadow: 0 25px 50px rgba(0, 0, 0, 0.3);
    transform: scale(0.9);
    transition: transform 0.3s ease;
    position: relative;
}

.popup-close {
    position: absolute;
    top: 16px;
    right: 16px;
    background: rgba(148, 163, 184, 0.1);
    border: 1px solid rgba(148, 163, 184, 0.2);
    border-radius: 50%;
    width: 32px;
    height: 32px;
    display: flex;
    align-items: center;
    justify-content: center;
    cursor: pointer;
    transition: all 0.2s ease;
    color: #94a3b8;
}

.popup-close:hover {
    background: rgba(148, 163, 184, 0.2);
    color: #f1f5f9;
}

.popup-close-icon {
    width: 16px;
    height: 16px;
}

.popup-overlay.show {
    display: flex;
}

.popup-overlay.show .popup-content {
    transform: scale(1);
}

.popup-title {
    font-size: 1.5rem;
    font-weight: 600;
    color: #f1f5f9;
    margin-bottom: 12px;
    letter-spacing: -0.025em;
}

.popup-subtitle {
    color: #94a3b8;
    font-size: 1rem;
    margin-bottom: 24px;
    line-height: 1.5;
}

.popup-buttons {
    display: flex;
    gap: 12px;
    flex-direction: column;
}

.popup-btn {
    padding: 14px 20px;
    border: none;
    border-radius: 12px;
    font-size: 1rem;
    font-weight: 600;
    cursor: pointer;
    transition: all 0.3s ease;
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 8px;
}

.popup-btn-primary {
    background: linear-gradient(135deg, #3b82f6, #1e40af);
    color: white;
    box-shadow: 0 4px 12px rgba(59, 130, 246, 0.3);
}

.popup-btn-primary:hover {
    transform: translateY(-2px);
    box-shadow: 0 6px 16px rgba(59, 130, 246, 0.4);
}

.popup-btn-secondary {
    background: rgba(148, 163, 184, 0.1);
    color: #f1f5f9;
    border: 1px solid rgba(148, 163, 184, 0.2);
}

.popup-btn-secondary:hover {
    background: rgba(148, 163, 184, 0.2);
    border-color: rgba(148, 163, 184, 0.3);
}

.popup-btn-icon {
    width: 16px;
    height: 16px;
}

/* Products Section */
.products-section {
    background: rgba(15, 23, 42, 0.4);
    padding: 100px 0;
    border-top: 1px solid rgba(148, 163, 184, 0.1);
}

.products-title {
    text-align: center;
    font-size: 2.5rem;
    font-weight: 700;
    color: #f1f5f9;
    margin-bottom: 80px;
    letter-spacing: -0.025em;
    text-transform: uppercase;
}

.products-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(400px, 1fr));
    gap: 48px;
    max-width: 1000px;
    margin: 0 auto;
}

/* Product Cards */
.product-card {
    background: rgba(30, 41, 59, 0.6);
    backdrop-filter: blur(20px);
    -webkit-backdrop-filter: blur(20px);
    border: 1px solid rgba(148, 163, 184, 0.1);
    border-radius: 20px;
    padding: 48px 40px;
    text-align: center;
    transition: all 0.4s cubic-bezier(0.4, 0, 0.2, 1);
    position: relative;
    overflow: hidden;
    animation: fadeInUp 0.8s cubic-bezier(0.4, 0, 0.2, 1);
}

.product-card:nth-child(2) {
    animation-delay: 0.1s;
}

.product-card::before {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    height: 1px;
    background: linear-gradient(90deg, transparent, rgba(59, 130, 246, 0.3), transparent);
    opacity: 0;
    transition: opacity 0.4s ease;
}

.product-card:hover {
    transform: translateY(-8px);
    box-shadow: 0 32px 64px rgba(0, 0, 0, 0.3);
    border-color: rgba(59, 130, 246, 0.3);
}

.product-card:hover::before {
    opacity: 1;
}

.product-icon {
    width: 80px;
    height: 80px;
    background: linear-gradient(135deg, rgba(59, 130, 246, 0.2), rgba(30, 64, 175, 0.2));
    border: 1px solid rgba(59, 130, 246, 0.3);
    border-radius: 20px;
    display: flex;
    align-items: center;
    justify-content: center;
    margin: 0 auto 32px;
    transition: all 0.3s ease;
}

.product-card:hover .product-icon {
    background: linear-gradient(135deg, rgba(59, 130, 246, 0.3), rgba(30, 64, 175, 0.3));
    border-color: rgba(59, 130, 246, 0.5);
}

.product-title {
    font-size: 1.5rem;
    font-weight: 600;
    margin-bottom: 20px;
    color: #f1f5f9;
    letter-spacing: -0.025em;
}

/* Product Features */
.product-features {
    text-align: left;
    margin-top: 24px;
}

.feature-item {
    display: flex;
    justify-content: space-between;
    align-items: center;
    padding: 12px 0;
    border-bottom: 1px solid rgba(148, 163, 184, 0.1);
}

.feature-item:last-child {
    border-bottom: none;
}

.feature-item.highlight {
    background: rgba(59, 130, 246, 0.1);
    padding: 16px;
    margin: 8px -16px;
    border-radius: 12px;
    border: 1px solid rgba(59, 130, 246, 0.2);
}

.feature-label {
    color: #94a3b8;
    font-size: 0.9rem;
    font-weight: 400;
}

.feature-value {
    color: #f1f5f9;
    font-size: 1rem;
    font-weight: 600;
}

.feature-item.highlight .feature-value {
    color: #60a5fa;
    font-size: 1.1rem;
    font-weight: 700;
}

/* IRA Section */
.ira-section {
    margin-top: 60px;
    display: flex;
    justify-content: center;
}

.ira-card {
    background: rgba(30, 41, 59, 0.6);
    backdrop-filter: blur(20px);
    -webkit-backdrop-filter: blur(20px);
    border: 1px solid rgba(148, 163, 184, 0.1);
    border-radius: 20px;
    padding: 40px;
    text-align: center;
    max-width: 500px;
    width: 100%;
    position: relative;
    overflow: hidden;
    transition: all 0.4s cubic-bezier(0.4, 0, 0.2, 1);
}

.ira-card::before {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    height: 1px;
    background: linear-gradient(90deg, transparent, rgba(34, 197, 94, 0.3), transparent);
}

.ira-card:hover {
    transform: translateY(-4px);
    box-shadow: 0 20px 40px rgba(0, 0, 0, 0.2);
    border-color: rgba(34, 197, 94, 0.3);
}

.ira-icon {
    width: 80px;
    height: 80px;
    background: linear-gradient(135deg, rgba(34, 197, 94, 0.2), rgba(22, 163, 74, 0.2));
    border: 1px solid rgba(34, 197, 94, 0.3);
    border-radius: 20px;
    display: flex;
    align-items: center;
    justify-content: center;
    margin: 0 auto 24px;
    transition: all 0.3s ease;
}

.ira-card:hover .ira-icon {
    background: linear-gradient(135deg, rgba(34, 197, 94, 0.3), rgba(22, 163, 74, 0.3));
    border-color: rgba(34, 197, 94, 0.5);
}

.ira-icon svg {
    stroke: #22c55e;
}

.ira-title {
    font-size: 1.5rem;
    font-weight: 600;
    margin-bottom: 16px;
    color: #f1f5f9;
    letter-spacing: -0.025em;
}

.ira-description {
    font-size: 1.125rem;
    color: #22c55e;
    font-weight: 600;
    background: rgba(34, 197, 94, 0.1);
    padding: 16px;
    border-radius: 12px;
    border: 1px solid rgba(34, 197, 94, 0.2);
}

/* Footer */
.footer {
    background: rgba(15, 23, 42, 0.8);
    backdrop-filter: blur(20px);
    -webkit-backdrop-filter: blur(20px);
    border-top: 1px solid rgba(148, 163, 184, 0.1);
    color: #e2e8f0;
    padding: 60px 0 40px;
    margin-top: auto;
}

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

.footer-section h4 {
    font-size: 1.125rem;
    margin-bottom: 20px;
    color: #f1f5f9;
    font-weight: 600;
}

.footer-section p, 
.footer-section a {
    color: #94a3b8;
    text-decoration: none;
    line-height: 1.8;
    font-size: 0.9rem;
    transition: color 0.3s ease;
}

.footer-section a:hover {
    color: #60a5fa;
}

.footer-bottom {
    border-top: 1px solid rgba(148, 163, 184, 0.1);
    padding-top: 32px;
    text-align: center;
    color: #64748b;
    font-size: 0.875rem;
}

.person {
    text-transform: uppercase;
    font-weight: 900;
    font-size: larger;
    text-decoration: underline;
    margin-bottom: 15px;
}

/* Animations */
@keyframes fadeInUp {
    from {
        opacity: 0;
        transform: translateY(30px);
    }
    to {
        opacity: 1;
        transform: translateY(0);
    }
}

/* Mobile Responsive Design */
@media (max-width: 1024px) {
    .container {
        padding: 0 20px;
    }
    
    .products-grid {
        grid-template-columns: repeat(auto-fit, minmax(350px, 1fr));
        gap: 40px;
    }
}

@media (max-width: 768px) {
    /* Container adjustments */
    .container {
        padding: 0 16px;
    }
    
    /* Main content */
    .main-content {
        padding: 40px 0;
    }
    
    /* Success card mobile */
    .success-card {
        padding: 48px 24px;
        margin: 16px;
        border-radius: 20px;
    }
    
    .success-icon {
        width: 100px;
        height: 100px;
        margin-bottom: 32px;
    }
    
    .success-icon::after {
        width: 120px;
        height: 120px;
    }
    
    .checkmark {
        width: 50px;
        height: 50px;
    }
    
    .success-title {
        font-size: 2.25rem;
        margin-bottom: 10px;
    }
    
    .success-message {
        font-size: 1rem;
        margin-bottom: 10px;
    }
    
    .manager-info {
        padding: 24px;
        margin-bottom: 40px;
    }
    
    .manager-info h3 {
        font-size: 1.125rem;
        margin-bottom: 12px;
    }
    
    .manager-info p {
        font-size: 0.9rem;
        margin-bottom: 20px;
    }
    
    /* Action Buttons Mobile */
    .action-buttons {
        gap: 12px;
    }
    
    .action-btn {
        padding: 12px 16px;
        font-size: 0.9rem;
    }
    
    .btn-icon {
        width: 18px;
        height: 18px;
    }
    
    /* Popup Mobile */
    .popup-content {
        padding: 24px;
        margin: 20px;
    }
    
    .popup-title {
        font-size: 1.25rem;
    }
    
    .popup-subtitle {
        font-size: 0.9rem;
    }
    
    .popup-btn {
        padding: 12px 16px;
        font-size: 0.9rem;
    }
    
    /* Products section mobile */
    .products-section {
        padding: 60px 0;
    }
    
    .products-title {
        font-size: 2rem;
        margin-bottom: 48px;
    }
    
    .products-grid {
        grid-template-columns: 1fr;
        gap: 24px;
    }
    
    .product-card {
        padding: 32px 20px;
        border-radius: 16px;
    }
    
    .product-icon {
        width: 64px;
        height: 64px;
        margin-bottom: 24px;
        border-radius: 16px;
    }
    
    .product-title {
        font-size: 1.25rem;
        margin-bottom: 16px;
    }
    
    .feature-item {
        flex-direction: column;
        align-items: flex-start;
        gap: 4px;
        padding: 8px 0;
    }
    
    .feature-item.highlight {
        padding: 12px;
        margin: 8px -12px;
    }
    
    .feature-value {
        font-size: 0.95rem;
    }
    
    /* IRA Section Mobile */
    .ira-section {
        margin-top: 40px;
    }
    
    .ira-card {
        padding: 32px 20px;
        margin: 0 16px;
    }
    
    .ira-icon {
        width: 64px;
        height: 64px;
        margin-bottom: 20px;
    }
    
    .ira-title {
        font-size: 1.25rem;
        margin-bottom: 12px;
    }
    
    .ira-description {
        font-size: 1rem;
        padding: 12px;
    }
    
    /* Footer mobile */
    .footer {
        padding: 48px 0 32px;
    }
    
    .footer-content {
        grid-template-columns: 1fr;
        gap: 32px;
        margin-bottom: 32px;
        text-align: center;
    }
    
    .footer-section h4 {
        font-size: 1rem;
        margin-bottom: 16px;
    }
    
    .footer-section p,
    .footer-section a {
        font-size: 0.875rem;
        line-height: 1.6;
    }
    
    .footer-bottom {
        padding-top: 24px;
        font-size: 0.8rem;
    }
}

@media (max-width: 480px) {
    /* Extra small mobile adjustments */
    .success-card {
        padding: 40px 20px;
        margin: 12px;
    }
    
    .success-title {
        font-size: 1.5rem;
    }
    
    .success-icon {
        width: 90px;
        height: 90px;
    }
    
    .checkmark {
        width: 45px;
        height: 45px;
    }
    
    .products-title {
        font-size: 1.75rem;
    }
    
    .product-card {
        padding: 28px 16px;
    }
    
    .product-icon {
        width: 56px;
        height: 56px;
    }
    
    .ira-card {
        padding: 28px 16px;
    }
    
    .ira-icon {
        width: 56px;
        height: 56px;
    }
    
    .ira-title {
        font-size: 1.125rem;
    }
    
    .ira-description {
        font-size: 0.95rem;
    }
}

/* Accessibility and Performance */
@media (prefers-reduced-motion: reduce) {
    *,
    *::before,
    *::after {
        animation-duration: 0.01ms !important;
        animation-iteration-count: 1 !important;
        transition-duration: 0.01ms !important;
    }
}

/* High contrast mode support */
@media (prefers-contrast: high) {
    .success-card,
    .product-card {
        border-width: 2px;
    }
    
    .success-title,
    .product-title {
        color: #ffffff;
    }
}