/* ============================================================================
   COMPONENT STYLES & INTERACTIVE ELEMENTS
   ============================================================================ */

/* ---- HERO SECTION ---- */
.hero-section {
    position: relative;
    background: linear-gradient(135deg, var(--bg-dark-1) 0%, var(--bg-dark-2) 50%, rgba(131, 56, 236, 0.1) 100%);
    padding: var(--space-9) var(--space-4);
    border-bottom: 1px solid var(--border-light);
    overflow: hidden;
}

.hero-section::before {
    content: '';
    position: absolute;
    top: -50%;
    right: -50%;
    width: 100%;
    height: 100%;
    background: radial-gradient(circle, rgba(0, 217, 255, 0.05) 0%, transparent 70%);
    animation: float 6s ease-in-out infinite;
    z-index: 0;
}

@keyframes float {
    0%, 100% { transform: translate(0, 0); }
    50% { transform: translate(20px, -20px); }
}

.hero-content {
    position: relative;
    z-index: 1;
    max-width: 700px;
    margin: 0 auto;
    text-align: center;
}

.hero-title {
    font-size: var(--fs-4xl);
    font-weight: 900;
    margin-bottom: var(--space-3);
    background: linear-gradient(135deg, var(--brand-primary), var(--brand-secondary), var(--brand-tertiary));
    -webkit-background-clip: text;
    -webkit-text-fill-color: transparent;
    background-clip: text;
    animation: slideInUp 0.8s ease-out;
}

.hero-subtitle {
    font-size: var(--fs-lg);
    color: var(--text-secondary);
    margin-bottom: var(--space-5);
    animation: slideInUp 0.8s ease-out 0.2s both;
}

.hero-actions {
    display: flex;
    gap: var(--space-3);
    justify-content: center;
    flex-wrap: wrap;
    animation: slideInUp 0.8s ease-out 0.4s both;
}

.hero-button {
    padding: var(--space-3) var(--space-6);
    font-size: var(--fs-base);
    font-weight: 600;
}

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

/* ---- FEATURE CARDS ---- */
.features-section {
    padding: var(--space-9) var(--space-4);
}

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

.feature-card {
    background: linear-gradient(135deg, var(--bg-dark-2) 0%, var(--bg-dark-1) 100%);
    border: 1px solid var(--border-light);
    border-radius: var(--radius-xl);
    padding: var(--space-6);
    text-align: center;
    transition: all var(--transition-base);
    position: relative;
    overflow: hidden;
}

.feature-card::before {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    height: 2px;
    background: linear-gradient(90deg, transparent, var(--brand-primary), transparent);
    opacity: 0;
    transition: opacity var(--transition-base);
}

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

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

.feature-icon {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    width: 60px;
    height: 60px;
    background: linear-gradient(135deg, var(--brand-primary), var(--brand-tertiary));
    border-radius: var(--radius-lg);
    font-size: var(--fs-2xl);
    margin: 0 auto var(--space-3);
    color: var(--bg-dark-0);
}

.feature-title {
    font-size: var(--fs-lg);
    font-weight: 700;
    margin-bottom: var(--space-2);
}

.feature-description {
    color: var(--text-secondary);
    font-size: var(--fs-sm);
    line-height: 1.6;
}

/* ---- PRICING CARDS ---- */
.pricing-section {
    padding: var(--space-9) var(--space-4);
    background: linear-gradient(180deg, var(--bg-dark-0) 0%, var(--bg-dark-1) 100%);
}

.pricing-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(290px, 1fr));
    gap: var(--space-5);
    max-width: 1000px;
    margin: 0 auto;
}

.pricing-card {
    background: var(--bg-dark-2);
    border: 1px solid var(--border-light);
    border-radius: var(--radius-xl);
    padding: var(--space-5);
    position: relative;
    transition: all var(--transition-base);
    display: flex;
    flex-direction: column;
}

.pricing-card.featured {
    border: 2px solid var(--brand-primary);
    box-shadow: var(--glow-lg);
    transform: scale(1.05);
    margin: -20px 0;
}

.pricing-card.featured::after {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    height: 3px;
    background: linear-gradient(90deg, var(--brand-primary), var(--brand-secondary), transparent);
}

.pricing-badge {
    position: absolute;
    top: -12px;
    left: 20px;
    background: linear-gradient(135deg, var(--brand-secondary), var(--brand-tertiary));
    color: white;
    padding: var(--space-1) var(--space-3);
    border-radius: var(--radius-full);
    font-size: var(--fs-xs);
    font-weight: 700;
}

.pricing-name {
    font-size: var(--fs-lg);
    font-weight: 700;
    margin-bottom: var(--space-2);
}

.pricing-description {
    color: var(--text-secondary);
    font-size: var(--fs-sm);
    margin-bottom: var(--space-4);
}

.pricing-amount {
    font-size: var(--fs-3xl);
    font-weight: 900;
    color: var(--brand-primary);
    margin-bottom: var(--space-1);
}

.pricing-period {
    color: var(--text-tertiary);
    font-size: var(--fs-sm);
    margin-bottom: var(--space-4);
}

.pricing-features {
    list-style: none;
    margin-bottom: var(--space-4);
    flex-grow: 1;
}

.pricing-features li {
    display: flex;
    align-items: center;
    gap: var(--space-2);
    padding: var(--space-2) 0;
    color: var(--text-secondary);
    font-size: var(--fs-sm);
}

.pricing-features i {
    color: var(--brand-primary);
    width: 20px;
    text-align: center;
}

.pricing-button {
    width: 100%;
}

/* ---- SERVICE COMPARISON TABLE ---- */
.comparison-section {
    padding: var(--space-9) var(--space-4);
}

.comparison-table {
    width: 100%;
    border-collapse: collapse;
    background: var(--bg-dark-2);
    border-radius: var(--radius-lg);
    overflow: hidden;
}

.comparison-table th {
    background: linear-gradient(135deg, var(--bg-dark-1), var(--bg-dark-2));
    border-bottom: 2px solid var(--border-light);
    padding: var(--space-4);
    text-align: left;
    font-weight: 700;
    color: var(--brand-primary);
}

.comparison-table td {
    padding: var(--space-4);
    border-bottom: 1px solid var(--border-color);
}

.comparison-table tr:last-child td {
    border-bottom: none;
}

.comparison-table tbody tr:hover {
    background: var(--bg-dark-3);
}

.check-mark {
    color: var(--color-success);
    font-weight: 700;
}

.cross-mark {
    color: var(--color-error);
    font-weight: 700;
}

/* ---- CTA SECTION ---- */
.cta-section {
    padding: var(--space-9) var(--space-4);
    background: linear-gradient(135deg, rgba(0, 217, 255, 0.05) 0%, rgba(131, 56, 236, 0.05) 100%);
    border: 1px solid var(--border-light);
    border-radius: var(--radius-xl);
    text-align: center;
    margin: var(--space-9) auto;
    max-width: 600px;
}

.cta-title {
    font-size: var(--fs-2xl);
    font-weight: 800;
    margin-bottom: var(--space-3);
}

.cta-description {
    color: var(--text-secondary);
    margin-bottom: var(--space-5);
    font-size: var(--fs-base);
}

.cta-buttons {
    display: flex;
    gap: var(--space-3);
    justify-content: center;
    flex-wrap: wrap;
}

.cta-button {
    padding: var(--space-2) var(--space-5);
}

/* ---- TESTIMONIALS ---- */
.testimonial-section {
    padding: var(--space-9) var(--space-4);
}

.testimonial-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(300px, 1fr));
    gap: var(--space-4);
}

.testimonial-card {
    background: var(--bg-dark-2);
    border: 1px solid var(--border-light);
    border-radius: var(--radius-lg);
    padding: var(--space-5);
}

.testimonial-text {
    font-size: var(--fs-base);
    color: var(--text-secondary);
    margin-bottom: var(--space-4);
    font-style: italic;
}

.testimonial-author {
    display: flex;
    align-items: center;
    gap: var(--space-2);
}

.author-avatar {
    width: 44px;
    height: 44px;
    border-radius: 50%;
    background: linear-gradient(135deg, var(--brand-primary), var(--brand-secondary));
    display: flex;
    align-items: center;
    justify-content: center;
    color: var(--bg-dark-0);
    font-weight: 700;
    font-size: var(--fs-lg);
}

.author-info h4 {
    margin: 0 0 var(--space-1) 0;
    font-size: var(--fs-sm);
}

.author-title {
    font-size: var(--fs-xs);
    color: var(--text-tertiary);
}

/* ---- STATS SECTION ---- */
.stats-section {
    padding: var(--space-9) var(--space-4);
    background: linear-gradient(180deg, var(--bg-dark-1) 0%, var(--bg-dark-0) 100%);
}

.stats-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(200px, 1fr));
    gap: var(--space-6);
}

.stat-block {
    text-align: center;
}

.stat-number {
    font-size: var(--fs-4xl);
    font-weight: 900;
    background: linear-gradient(135deg, var(--brand-primary), var(--brand-secondary));
    -webkit-background-clip: text;
    -webkit-text-fill-color: transparent;
    background-clip: text;
    margin-bottom: var(--space-1);
}

.stat-label {
    color: var(--text-secondary);
    font-size: var(--fs-base);
}

/* ---- NAVIGATION ANIMATIONS ---- */
.nav-item:has(.dropdown-menu) {
    position: relative;
}

.nav-item:hover > .dropdown-menu {
    display: flex;
}

/* Dropdown arrow indicator */
.nav-link[aria-haspopup="true"]::before {
    content: '';
    display: inline-block;
    width: 6px;
    height: 6px;
    border-right: 2px solid currentColor;
    border-bottom: 2px solid currentColor;
    transform: rotate(45deg);
    margin-left: var(--space-1);
    transition: transform var(--transition-fast);
}

.nav-item:hover .nav-link[aria-haspopup="true"]::before {
    transform: rotate(-135deg);
}

/* ---- FORM INTERACTIONS ---- */
.form-group {
    margin-bottom: var(--space-4);
    position: relative;
}

.form-label {
    display: block;
    margin-bottom: var(--space-1);
    font-weight: 600;
    font-size: var(--fs-sm);
    color: var(--text-primary);
}

.form-input,
.form-textarea,
.form-select {
    width: 100%;
    padding: var(--space-2) var(--space-3);
    background: var(--bg-dark-2);
    border: 1px solid var(--border-light);
    color: var(--text-primary);
    border-radius: var(--radius-md);
    font-family: inherit;
    font-size: var(--fs-base);
    transition: all var(--transition-fast);
}

.form-input:focus,
.form-textarea:focus,
.form-select:focus {
    outline: none;
    border-color: var(--brand-primary);
    box-shadow: 0 0 0 3px rgba(0, 217, 255, 0.1);
}

.form-input::placeholder {
    color: var(--text-muted);
}

.form-textarea {
    resize: vertical;
    min-height: 120px;
}

.form-error {
    color: var(--color-error);
    font-size: var(--fs-xs);
    margin-top: var(--space-1);
}

.form-input.error,
.form-textarea.error {
    border-color: var(--color-error);
}

.form-checkbox,
.form-radio {
    margin-right: var(--space-2);
    cursor: pointer;
}

/* ---- MODAL ANIMATIONS ---- */
.modal {
    position: fixed;
    top: 0;
    left: 0;
    right: 0;
    bottom: 0;
    background: rgba(0, 0, 0, 0.5);
    display: flex;
    align-items: center;
    justify-content: center;
    opacity: 0;
    visibility: hidden;
    transition: opacity 0.3s ease, visibility 0.3s ease;
    z-index: var(--z-modal);
}

.modal.active {
    opacity: 1;
    visibility: visible;
}

.modal-content {
    background: var(--bg-dark-2);
    border: 1px solid var(--border-light);
    border-radius: var(--radius-lg);
    padding: var(--space-6);
    max-width: 500px;
    width: 90%;
    box-shadow: var(--shadow-xl);
    animation: slideDown 0.3s ease;
}

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

/* ---- LOADING STATES ---- */
.skeleton {
    background: linear-gradient(90deg, var(--bg-dark-2) 0%, var(--bg-dark-3) 50%, var(--bg-dark-2) 100%);
    background-size: 200% 100%;
    animation: loading 1.5s infinite;
}

@keyframes loading {
    0% { background-position: 200% 0; }
    100% { background-position: -200% 0; }
}

/* ---- TOOLTIPS ---- */
.tooltip {
    position: relative;
    cursor: help;
    border-bottom: 1px dotted var(--border-light);
}

.tooltip::after {
    content: attr(data-tooltip);
    position: absolute;
    bottom: 125%;
    left: 50%;
    transform: translateX(-50%);
    background: var(--bg-dark-0);
    color: var(--text-primary);
    padding: var(--space-2) var(--space-3);
    border-radius: var(--radius-md);
    font-size: var(--fs-xs);
    white-space: nowrap;
    border: 1px solid var(--border-light);
    box-shadow: var(--shadow-lg);
    opacity: 0;
    visibility: hidden;
    transition: opacity 0.3s ease, visibility 0.3s ease;
    z-index: var(--z-tooltip);
}

.tooltip:hover::after {
    opacity: 1;
    visibility: visible;
}

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

@keyframes pulse {
    0%, 100% { opacity: 1; }
    50% { opacity: 0.5; }
}

/* Responsive */
@media (max-width: 768px) {
    .hero-title {
        font-size: var(--fs-2xl);
    }
    
    .hero-subtitle {
        font-size: var(--fs-base);
    }
    
    .features-grid {
        grid-template-columns: 1fr;
    }
    
    .pricing-grid {
        grid-template-columns: 1fr;
    }
    
    .pricing-card.featured {
        margin: 0;
        transform: scale(1);
    }
    
    .comparison-table {
        font-size: var(--fs-sm);
    }
    
    .comparison-table th,
    .comparison-table td {
        padding: var(--space-2);
    }
    
    .cta-buttons {
        flex-direction: column;
    }
    
    .cta-button {
        width: 100%;
    }
    
    .hero-actions {
        flex-direction: column;
    }
    
    .hero-button {
        width: 100%;
    }
}

@media (max-width: 480px) {
    .hero-section {
        padding: var(--space-6) var(--space-3);
    }
    
    .hero-title {
        font-size: var(--fs-xl);
    }
    
    .feature-card {
        padding: var(--space-4);
    }
    
    .stats-grid {
        grid-template-columns: 1fr;
        gap: var(--space-4);
    }
}
