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

body {
    font-family: 'Inter', sans-serif;
    line-height: 1.6;
    color: #333;
    background-color: #f8fafc;
}

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

/* Utility Classes */
.hidden {
    display: none !important;
}

.btn {
    display: inline-flex;
    align-items: center;
    gap: 8px;
    padding: 12px 24px;
    border: none;
    border-radius: 8px;
    font-weight: 500;
    font-size: 14px;
    cursor: pointer;
    transition: all 0.2s ease;
    text-decoration: none;
    justify-content: center;
}

.btn:hover {
    transform: translateY(-1px);
    box-shadow: 0 4px 12px rgba(0, 0, 0, 0.15);
}

.btn-primary {
    background: linear-gradient(135deg, #8B5CF6 0%, #3B82F6 100%);
    color: white;
}

.btn-primary:hover {
    background: linear-gradient(135deg, #7C3AED 0%, #2563EB 100%);
}

.btn-secondary {
    background: white;
    color: #6B7280;
    border: 1px solid #E5E7EB;
}

.btn-secondary:hover {
    background: #F9FAFB;
    border-color: #D1D5DB;
}

.btn-ghost {
    background: transparent;
    color: #6B7280;
}

.btn-ghost:hover {
    background: #F3F4F6;
}

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

.btn-full {
    width: 100%;
}

.btn svg {
    width: 16px;
    height: 16px;
}

/* Navigation */
.navbar {
    background: rgba(255, 255, 255, 0.95);
    backdrop-filter: blur(10px);
    border-bottom: 1px solid #E5E7EB;
    position: fixed;
    top: 0;
    left: 0;
    right: 0;
    z-index: 1000;
    transition: all 0.3s ease;
}

.nav-container {
    max-width: 1200px;
    margin: 0 auto;
    padding: 0 24px;
    display: flex;
    align-items: center;
    justify-content: space-between;
    height: 72px;
}

.nav-brand {
    display: flex;
    align-items: center;
    gap: 12px;
    font-weight: 700;
    font-size: 20px;
    color: #1F2937;
}

.nav-logo {
    width: 32px;
    height: 32px;
    color: #8B5CF6;
}

.nav-menu {
    display: flex;
    align-items: center;
    gap: 32px;
}

.nav-link {
    color: #6B7280;
    text-decoration: none;
    font-weight: 500;
    transition: color 0.2s ease;
}

.nav-link:hover {
    color: #8B5CF6;
}

.mobile-menu-btn {
    display: none;
    flex-direction: column;
    gap: 4px;
    background: none;
    border: none;
    cursor: pointer;
}

.mobile-menu-btn span {
    width: 24px;
    height: 3px;
    background: #374151;
    border-radius: 2px;
    transition: all 0.3s ease;
}

/* Landing Section */
.landing-section {
    padding: 120px 0 80px;
    background: linear-gradient(135deg, #667eea 0%, #764ba2 100%);
    color: white;
    min-height: 100vh;
    display: flex;
    align-items: center;
}

.hero-content {
    flex: 1;
    max-width: 600px;
}

.hero-title {
    font-size: 3.5rem;
    font-weight: 700;
    line-height: 1.2;
    margin-bottom: 24px;
    background: linear-gradient(135deg, #ffffff 0%, #e0e7ff 100%);
    -webkit-background-clip: text;
    -webkit-text-fill-color: transparent;
    background-clip: text;
}

.hero-subtitle {
    font-size: 1.25rem;
    color: #E0E7FF;
    margin-bottom: 40px;
    line-height: 1.8;
}

.hero-buttons {
    display: flex;
    gap: 16px;
    flex-wrap: wrap;
}

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

.demo-card {
    background: white;
    border-radius: 16px;
    padding: 24px;
    box-shadow: 0 20px 40px rgba(0, 0, 0, 0.2);
    color: #333;
    max-width: 400px;
    transform: rotate(3deg);
    transition: transform 0.3s ease;
}

.demo-card:hover {
    transform: rotate(0deg) scale(1.05);
}

.demo-header {
    display: flex;
    align-items: center;
    justify-content: space-between;
    margin-bottom: 20px;
    padding-bottom: 16px;
    border-bottom: 1px solid #E5E7EB;
}

.demo-dots {
    display: flex;
    gap: 6px;
}

.demo-dots span {
    width: 8px;
    height: 8px;
    border-radius: 50%;
    background: #EF4444;
}

.demo-dots span:nth-child(2) {
    background: #F59E0B;
}

.demo-dots span:nth-child(3) {
    background: #10B981;
}

.demo-title {
    font-weight: 600;
    color: #6B7280;
}

.demo-question {
    font-weight: 600;
    margin-bottom: 16px;
    color: #1F2937;
}

.demo-option {
    padding: 12px;
    margin-bottom: 8px;
    background: #F9FAFB;
    border-radius: 8px;
    border: 1px solid #E5E7EB;
    transition: all 0.2s ease;
}

.demo-option:hover {
    background: #EEF2FF;
    border-color: #8B5CF6;
}

/* Features Section */
.features-section {
    padding: 80px 0;
    background: white;
}

.section-title {
    text-align: center;
    font-size: 2.5rem;
    font-weight: 700;
    color: #1F2937;
    margin-bottom: 60px;
}

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

.feature-card {
    background: white;
    padding: 32px;
    border-radius: 16px;
    border: 1px solid #E5E7EB;
    transition: all 0.3s ease;
    text-align: center;
}

.feature-card:hover {
    transform: translateY(-4px);
    box-shadow: 0 12px 40px rgba(0, 0, 0, 0.1);
    border-color: #8B5CF6;
}

.feature-icon {
    width: 64px;
    height: 64px;
    margin: 0 auto 24px;
    background: linear-gradient(135deg, #8B5CF6, #3B82F6);
    border-radius: 16px;
    display: flex;
    align-items: center;
    justify-content: center;
}

.feature-icon svg {
    width: 32px;
    height: 32px;
    color: white;
}

.feature-card h3 {
    font-size: 1.5rem;
    font-weight: 600;
    color: #1F2937;
    margin-bottom: 16px;
}

.feature-card p {
    color: #6B7280;
    line-height: 1.8;
}

/* Pricing Section */
.pricing-section {
    padding: 80px 0;
    background: #F9FAFB;
}

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

.pricing-card {
    background: white;
    padding: 40px 32px;
    border-radius: 16px;
    border: 1px solid #E5E7EB;
    position: relative;
    transition: all 0.3s ease;
    text-align: center;
}

.pricing-card:hover {
    transform: translateY(-4px);
    box-shadow: 0 12px 40px rgba(0, 0, 0, 0.1);
}

.pricing-card-featured {
    border: 2px solid #8B5CF6;
    transform: scale(1.05);
}

.pricing-badge {
    position: absolute;
    top: -12px;
    left: 50%;
    transform: translateX(-50%);
    background: linear-gradient(135deg, #8B5CF6, #3B82F6);
    color: white;
    padding: 8px 24px;
    border-radius: 20px;
    font-size: 14px;
    font-weight: 500;
}

.pricing-card h3 {
    font-size: 1.5rem;
    font-weight: 600;
    color: #1F2937;
    margin-bottom: 16px;
}

.price {
    font-size: 3rem;
    font-weight: 700;
    color: #8B5CF6;
    margin-bottom: 32px;
}

.price span {
    font-size: 1rem;
    color: #6B7280;
    font-weight: 400;
}

.pricing-features {
    list-style: none;
    margin-bottom: 32px;
}

.pricing-features li {
    padding: 12px 0;
    color: #6B7280;
    border-bottom: 1px solid #F3F4F6;
    position: relative;
    padding-left: 24px;
}

.pricing-features li:before {
    content: '✓';
    position: absolute;
    left: 0;
    color: #10B981;
    font-weight: 600;
}

/* Modal Styles */
.modal {
    display: none;
    position: fixed;
    z-index: 2000;
    left: 0;
    top: 0;
    width: 100%;
    height: 100%;
    background-color: rgba(0, 0, 0, 0.6);
    backdrop-filter: blur(4px);
}

.modal.active {
    display: flex;
    align-items: center;
    justify-content: center;
}

.modal-content {
    background: white;
    border-radius: 16px;
    padding: 40px;
    max-width: 500px;
    width: 90%;
    max-height: 90vh;
    overflow-y: auto;
    position: relative;
    animation: modalSlideIn 0.3s ease;
}

@keyframes modalSlideIn {
    from {
        opacity: 0;
        transform: scale(0.9) translateY(-20px);
    }
    to {
        opacity: 1;
        transform: scale(1) translateY(0);
    }
}

.modal-close {
    position: absolute;
    top: 20px;
    right: 24px;
    font-size: 28px;
    font-weight: 300;
    color: #9CA3AF;
    cursor: pointer;
    transition: color 0.2s ease;
}

.modal-close:hover {
    color: #374151;
}

/* Auth Forms */
.auth-container h2 {
    text-align: center;
    font-size: 2rem;
    font-weight: 700;
    color: #1F2937;
    margin-bottom: 8px;
}

.auth-subtitle {
    text-align: center;
    color: #6B7280;
    margin-bottom: 32px;
}

.auth-form {
    display: none;
}

.auth-form.active {
    display: block;
}

.form-group {
    margin-bottom: 24px;
}

.form-row {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 16px;
}

.form-group label {
    display: block;
    font-weight: 500;
    color: #374151;
    margin-bottom: 8px;
}

.form-group input,
.form-group select,
.form-group textarea {
    width: 100%;
    padding: 12px 16px;
    border: 1px solid #D1D5DB;
    border-radius: 8px;
    font-size: 16px;
    transition: all 0.2s ease;
    background: white;
}

.form-group input:focus,
.form-group select:focus,
.form-group textarea:focus {
    outline: none;
    border-color: #8B5CF6;
    box-shadow: 0 0 0 3px rgba(139, 92, 246, 0.1);
}

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

.auth-switch {
    text-align: center;
    margin-top: 24px;
    color: #6B7280;
}

.auth-switch a {
    color: #8B5CF6;
    text-decoration: none;
    font-weight: 500;
}

.auth-switch a:hover {
    text-decoration: underline;
}

/* Dashboard Styles */
.dashboard {
    display: grid;
    grid-template-columns: 280px 1fr;
    min-height: 100vh;
}

.sidebar {
    background: white;
    border-right: 1px solid #E5E7EB;
    display: flex;
    flex-direction: column;
}

.sidebar-header {
    display: flex;
    align-items: center;
    gap: 12px;
    padding: 24px;
    border-bottom: 1px solid #E5E7EB;
    font-weight: 700;
    font-size: 18px;
    color: #1F2937;
}

.sidebar-logo {
    width: 28px;
    height: 28px;
    color: #8B5CF6;
}

.sidebar-nav {
    flex: 1;
    padding: 24px 0;
}

.nav-item {
    display: flex;
    align-items: center;
    gap: 12px;
    padding: 12px 24px;
    color: #6B7280;
    text-decoration: none;
    font-weight: 500;
    transition: all 0.2s ease;
}

.nav-item:hover,
.nav-item.active {
    background: #F3F4F6;
    color: #8B5CF6;
    border-right: 3px solid #8B5CF6;
}

.nav-item svg {
    width: 20px;
    height: 20px;
}

.sidebar-footer {
    padding: 24px;
    border-top: 1px solid #E5E7EB;
}

.main-content {
    padding: 40px;
    overflow-y: auto;
}

.dashboard-section {
    display: none;
}

.dashboard-section.active {
    display: block;
}

.section-header {
    display: flex;
    align-items: center;
    justify-content: space-between;
    margin-bottom: 40px;
    padding-bottom: 20px;
    border-bottom: 1px solid #E5E7EB;
}

.section-header h1 {
    font-size: 2rem;
    font-weight: 700;
    color: #1F2937;
}

.section-header p {
    color: #6B7280;
    margin-top: 8px;
}

/* Stats Grid */
.stats-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(250px, 1fr));
    gap: 24px;
    margin-bottom: 40px;
}

.stat-card {
    background: white;
    padding: 24px;
    border-radius: 12px;
    border: 1px solid #E5E7EB;
    transition: all 0.2s ease;
}

.stat-card:hover {
    transform: translateY(-2px);
    box-shadow: 0 8px 25px rgba(0, 0, 0, 0.1);
}

.stat-card h3 {
    color: #6B7280;
    font-size: 14px;
    font-weight: 500;
    margin-bottom: 8px;
    text-transform: uppercase;
    letter-spacing: 0.5px;
}

.stat-value {
    font-size: 2.5rem;
    font-weight: 700;
    color: #1F2937;
    margin-bottom: 8px;
}

.stat-change {
    font-size: 14px;
    font-weight: 500;
}

.stat-change.positive {
    color: #10B981;
}

.stat-change.negative {
    color: #EF4444;
}

/* Recent Activity */
.recent-activity {
    background: white;
    border-radius: 12px;
    border: 1px solid #E5E7EB;
    padding: 32px;
}

.recent-activity h3 {
    font-size: 1.25rem;
    font-weight: 600;
    color: #1F2937;
    margin-bottom: 24px;
}

.activity-list {
    display: flex;
    flex-direction: column;
    gap: 16px;
}

.activity-item {
    display: flex;
    align-items: center;
    gap: 16px;
    padding: 16px;
    border-radius: 8px;
    transition: background 0.2s ease;
}

.activity-item:hover {
    background: #F9FAFB;
}

.activity-icon {
    width: 40px;
    height: 40px;
    background: #F3F4F6;
    border-radius: 8px;
    display: flex;
    align-items: center;
    justify-content: center;
}

.activity-icon svg {
    width: 20px;
    height: 20px;
    color: #6B7280;
}

.activity-content {
    flex: 1;
}

.activity-content h4 {
    font-weight: 600;
    color: #1F2937;
    margin-bottom: 4px;
}

.activity-content p {
    color: #6B7280;
    font-size: 14px;
}

.activity-actions {
    display: flex;
    gap: 8px;
}

/* Generate Form */
.generate-form {
    background: white;
    padding: 40px;
    border-radius: 16px;
    border: 1px solid #E5E7EB;
    max-width: 800px;
}

.question-types {
    margin-bottom: 32px;
}

.question-types label {
    display: block;
    font-weight: 500;
    color: #374151;
    margin-bottom: 16px;
}

.checkbox-group {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(200px, 1fr));
    gap: 12px;
}

.checkbox-item {
    display: flex;
    align-items: center;
    gap: 8px;
    padding: 12px;
    border-radius: 8px;
    border: 1px solid #E5E7EB;
    transition: all 0.2s ease;
    cursor: pointer;
}

.checkbox-item:hover {
    background: #F9FAFB;
    border-color: #8B5CF6;
}

.checkbox-item input {
    width: auto;
}

/* Payment Styles */
.payment-container h2 {
    text-align: center;
    font-size: 2rem;
    font-weight: 700;
    color: #1F2937;
    margin-bottom: 8px;
}

.payment-subtitle {
    text-align: center;
    color: #6B7280;
    margin-bottom: 32px;
}

.plan-summary {
    background: #F9FAFB;
    padding: 24px;
    border-radius: 12px;
    margin-bottom: 32px;
}

.plan-summary h3 {
    font-weight: 600;
    color: #1F2937;
    margin-bottom: 16px;
}

.plan-summary ul {
    list-style: none;
}

.plan-summary li {
    padding: 8px 0;
    color: #6B7280;
    position: relative;
    padding-left: 24px;
}

.plan-summary li:before {
    content: '✓';
    position: absolute;
    left: 0;
    color: #10B981;
    font-weight: 600;
}

.payment-methods h4 {
    font-weight: 600;
    color: #1F2937;
    margin-bottom: 16px;
}

.payment-options {
    display: flex;
    gap: 12px;
    margin-bottom: 24px;
}

.payment-option {
    flex: 1;
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 8px;
    padding: 16px;
    border: 1px solid #E5E7EB;
    border-radius: 8px;
    background: white;
    cursor: pointer;
    transition: all 0.2s ease;
}

.payment-option:hover,
.payment-option.active {
    border-color: #8B5CF6;
    background: #F3F4F6;
}

.payment-option svg {
    width: 20px;
    height: 20px;
}

/* Loading Overlay */
.loading-overlay {
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background: rgba(0, 0, 0, 0.8);
    display: flex;
    align-items: center;
    justify-content: center;
    z-index: 3000;
}

.loading-spinner {
    text-align: center;
    color: white;
}

.spinner {
    width: 60px;
    height: 60px;
    border: 4px solid rgba(255, 255, 255, 0.3);
    border-top: 4px solid white;
    border-radius: 50%;
    animation: spin 1s linear infinite;
    margin: 0 auto 20px;
}

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

/* Responsive Design */
@media (max-width: 1024px) {
    .dashboard {
        grid-template-columns: 1fr;
    }
    
    .sidebar {
        display: none;
    }
    
    .main-content {
        padding: 24px;
    }
}

@media (max-width: 768px) {
    .nav-menu {
        display: none;
    }
    
    .mobile-menu-btn {
        display: flex;
    }
    
    .hero-title {
        font-size: 2.5rem;
    }
    
    .hero-subtitle {
        font-size: 1.125rem;
    }
    
    .hero-buttons {
        flex-direction: column;
    }
    
    .features-grid {
        grid-template-columns: 1fr;
    }
    
    .pricing-grid {
        grid-template-columns: 1fr;
    }
    
    .pricing-card-featured {
        transform: none;
    }
    
    .form-row {
        grid-template-columns: 1fr;
    }
    
    .container {
        padding: 0 16px;
    }
    
    .modal-content {
        padding: 24px;
        margin: 16px;
    }
}

@media (max-width: 480px) {
    .hero-title {
        font-size: 2rem;
    }
    
    .section-title {
        font-size: 2rem;
    }
    
    .feature-card,
    .pricing-card {
        padding: 24px;
    }
    
    .stats-grid {
        grid-template-columns: 1fr;
    }
}

/* Smooth scrolling */
html {
    scroll-behavior: smooth;
}

/* Focus styles for accessibility */
.btn:focus,
input:focus,
select:focus,
textarea:focus {
    outline: 2px solid #8B5CF6;
    outline-offset: 2px;
}