:root {
    --primary: #4ade80;
    --primary-dark: #22c55e;
    --secondary: #38bdf8;
    --accent: #8b5cf6;
    --dark: #0f0f1b;
    --card-bg: #1a1a2e;
    --text: #e2e8f0;
    --text-secondary: #94a3b8;
    --border: rgba(74, 222, 128, 0.2);
    --success: #22c55e;
    --warning: #f59e0b;
    --error: #ef4444;
    --shadow: 0 10px 25px rgba(0, 0, 0, 0.3);
    --transition: all 0.3s ease;
}

* {
    margin: 0;
    padding: 0;
    box-sizing: border-box;
}

body {
    font-family: 'Inter', -apple-system, BlinkMacSystemFont, 'Segoe UI', Roboto, Oxygen, Ubuntu, Cantarell, 'Open Sans', 'Helvetica Neue', sans-serif;
    background-color: var(--dark);
    color: var(--text);
    line-height: 1.6;
    overflow-x: hidden;
}

.container {
    width: 100%;
    max-width: 1200px;
    margin: 0 auto;
    padding: 0 20px;
}

/* Header styles */
.header {
    background: rgba(15, 15, 27, 0.95);
    backdrop-filter: blur(10px);
    padding: 15px 0;
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    z-index: 1000;
    border-bottom: 1px solid var(--border);
}

.header .container {
    display: flex;
    justify-content: space-between;
    align-items: center;
}

.logo {
    font-size: 1.8rem;
    font-weight: bold;
    color: var(--text);
}

.logo span {
    background: linear-gradient(90deg, var(--primary), var(--secondary));
    -webkit-background-clip: text;
    -webkit-text-fill-color: transparent;
}

.nav {
    display: flex;
    gap: 25px;
}

.nav-link {
    color: var(--text);
    text-decoration: none;
    font-weight: 500;
    font-size: 1.05rem;
    padding: 8px 12px;
    border-radius: 8px;
    transition: var(--transition);
    position: relative;
}

.nav-link:hover, .nav-link.active {
    color: var(--primary);
}

.nav-link.active::after {
    content: '';
    position: absolute;
    bottom: -5px;
    left: 0;
    width: 100%;
    height: 3px;
    background: var(--primary);
    border-radius: 3px;
}

.auth-buttons {
    display: flex;
    gap: 15px;
    align-items: center;
}

.btn {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    gap: 8px;
    background: linear-gradient(90deg, var(--primary), var(--secondary));
    color: #0f0f1b;
    font-weight: bold;
    padding: 12px 24px;
    border-radius: 12px;
    text-decoration: none;
    border: none;
    cursor: pointer;
    transition: var(--transition);
    font-size: 16px;
    box-shadow: 0 4px 15px rgba(74, 222, 128, 0.3);
}

.btn:hover {
    transform: translateY(-2px);
    box-shadow: 0 6px 20px rgba(74, 222, 128, 0.5);
}

.btn-primary {
    background: linear-gradient(90deg, var(--primary), var(--secondary));
}

.btn-secondary {
    background: rgba(26, 26, 46, 0.7);
    color: var(--text);
    border: 1px solid var(--border);
}

.btn-secondary:hover {
    background: rgba(74, 222, 128, 0.1);
    color: var(--primary);
    border-color: var(--primary);
}

.btn-outline {
    background: transparent;
    border: 1px solid var(--primary);
    color: var(--primary);
}

.btn-outline:hover {
    background: rgba(74, 222, 128, 0.1);
}

.btn-block {
    width: 100%;
}

.btn-large {
    padding: 16px 32px;
    font-size: 1.1rem;
}

.btn-provider {
    flex: 1;
    padding: 12px;
    border-radius: 10px;
    border: 1px solid #333;
    background: rgba(26, 26, 46, 0.7);
    color: white;
    font-weight: 500;
    cursor: pointer;
    transition: var(--transition);
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 10px;
}

.btn-provider:hover {
    transform: translateY(-2px);
    border-color: #4ade80;
}

.btn-provider.google {
    background: #db4437;
    color: white;
    border-color: #db4437;
}

.btn-provider.apple {
    background: #000;
    color: white;
    border-color: #666;
}

/* Hero section */
.hero {
    padding: 180px 0 100px;
    background: linear-gradient(135deg, rgba(15, 15, 27, 0.9) 0%, rgba(26, 26, 46, 0.95) 100%), url('https://images.unsplash.com/photo-1540747913790-2c78516b5203?ixlib=rb-4.0.3') center/cover no-repeat;
    text-align: center;
}

.hero-content {
    max-width: 800px;
    margin: 0 auto;
}

.hero-title {
    font-size: 4rem;
    margin-bottom: 20px;
    line-height: 1.2;
}

.hero-title span {
    display: block;
    background: linear-gradient(90deg, var(--primary), var(--secondary));
    -webkit-background-clip: text;
    -webkit-text-fill-color: transparent;
    font-size: 2.5rem;
    margin-top: 10px;
}

.hero-subtitle {
    font-size: 1.5rem;
    color: var(--text-secondary);
    margin-bottom: 40px;
    max-width: 700px;
    margin-left: auto;
    margin-right: auto;
}

.hero-cta {
    display: flex;
    gap: 20px;
    justify-content: center;
    margin-bottom: 50px;
}

.hero-stats {
    display: flex;
    justify-content: center;
    gap: 40px;
    margin-top: 30px;
}

.stat-item {
    text-align: center;
}

.stat-number {
    font-size: 2.5rem;
    font-weight: bold;
    background: linear-gradient(90deg, var(--primary), var(--secondary));
    -webkit-background-clip: text;
    -webkit-text-fill-color: transparent;
}

.stat-label {
    font-size: 1.1rem;
    color: var(--text-secondary);
}

/* App preview */
.app-preview {
    max-width: 800px;
    margin: 50px auto 0;
}

.app-frame {
    background: #1a1a2e;
    border-radius: 24px;
    overflow: hidden;
    box-shadow: 0 20px 50px rgba(0, 0, 0, 0.5);
    border: 1px solid var(--border);
}

.app-header {
    background: rgba(15, 15, 27, 0.9);
    padding: 15px 25px;
    display: flex;
    justify-content: space-between;
    align-items: center;
    border-bottom: 1px solid var(--border);
}

.app-title {
    font-size: 1.2rem;
    font-weight: bold;
    background: linear-gradient(90deg, var(--primary), var(--secondary));
    -webkit-background-clip: text;
    -webkit-text-fill-color: transparent;
}

.app-controls {
    display: flex;
    gap: 8px;
}

.control-dot {
    width: 12px;
    height: 12px;
    border-radius: 50%;
    display: inline-block;
}

.red { background: #ff5f57; }
.yellow { background: #ffbd2e; }
.green { background: #28c940; }

.app-content {
    padding: 30px;
    min-height: 500px;
}

.dashboard-preview {
    background: rgba(26, 26, 46, 0.7);
    border-radius: 16px;
    padding: 25px;
    border: 1px solid rgba(56, 189, 248, 0.2);
}

.preview-title {
    color: var(--primary);
    margin-bottom: 20px;
    font-size: 1.5rem;
}

.position-grid {
    display: grid;
    grid-template-columns: repeat(2, 1fr);
    gap: 15px;
    margin-bottom: 30px;
}

.position-card {
    background: rgba(15, 15, 27, 0.7);
    border-radius: 12px;
    padding: 20px;
    text-align: center;
    border: 1px solid #333;
    transition: var(--transition);
}

.position-card:hover {
    border-color: var(--secondary);
    transform: translateY(-3px);
}

.position-icon {
    font-size: 30px;
    margin-bottom: 10px;
    color: var(--primary);
}

.position-name {
    font-weight: 500;
    font-size: 1.1rem;
}

.report-preview {
    background: rgba(15, 15, 27, 0.7);
    border-radius: 12px;
    padding: 20px;
    margin-top: 20px;
    border: 1px solid #333;
}

/* Features section */
.features {
    padding: 100px 0;
    background: #111120;
}

.section-header {
    text-align: center;
    margin-bottom: 60px;
}

.section-title {
    font-size: 3rem;
    margin-bottom: 15px;
}

.section-title span {
    background: linear-gradient(90deg, var(--primary), var(--secondary));
    -webkit-background-clip: text;
    -webkit-text-fill-color: transparent;
}

.section-subtitle {
    color: var(--text-secondary);
    font-size: 1.3rem;
    max-width: 700px;
    margin: 0 auto;
}

.features-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(280px, 1fr));
    gap: 30px;
}

.feature-card {
    background: var(--card-bg);
    border-radius: 20px;
    padding: 35px;
    text-align: center;
    border: 1px solid var(--border);
    box-shadow: var(--shadow);
    transition: var(--transition);
}

.feature-card:hover {
    transform: translateY(-10px);
    border-color: var(--primary);
    box-shadow: 0 15px 35px rgba(74, 222, 128, 0.3);
}

.feature-icon {
    width: 80px;
    height: 80px;
    background: rgba(74, 222, 128, 0.15);
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    margin: 0 auto 25px;
    color: var(--primary);
    font-size: 2.5rem;
}

.feature-title {
    font-size: 1.8rem;
    margin-bottom: 15px;
    color: white;
}

.feature-description {
    color: var(--text-secondary);
    margin-bottom: 25px;
    min-height: 70px;
}

.feature-list {
    list-style: none;
    text-align: left;
    padding: 0 20px;
}

.feature-list li {
    padding: 8px 0;
    position: relative;
    padding-left: 25px;
}

.feature-list li::before {
    content: '✓';
    position: absolute;
    left: 0;
    color: var(--primary);
    font-weight: bold;
}

.feature-list li.not-included {
    color: #64748b;
}

.feature-list li.not-included::before {
    content: '✗';
    color: var(--error);
}

.feature-list li.included::before {
    content: '✓';
    color: var(--success);
}

/* Pricing section */
.pricing {
    padding: 100px 0;
    background: linear-gradient(135deg, #0f0f1b 0%, #1a1a2e 100%);
}

.pricing-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(300px, 1fr));
    gap: 30px;
    margin-top: 50px;
}

.pricing-card {
    background: rgba(26, 26, 46, 0.8);
    border-radius: 24px;
    overflow: hidden;
    border: 1px solid var(--border);
    box-shadow: var(--shadow);
    transition: var(--transition);
    display: flex;
    flex-direction: column;
}

.pricing-card:hover {
    transform: translateY(-10px);
    border-color: var(--primary);
    box-shadow: 0 20px 40px rgba(74, 222, 128, 0.4);
}

.pricing-card.featured {
    position: relative;
    border: 2px solid var(--primary);
    background: linear-gradient(120deg, rgba(26, 26, 46, 0.9), rgba(30, 30, 50, 0.95));
}

.popular-badge {
    position: absolute;
    top: 15px;
    right: -30px;
    background: var(--primary);
    color: #0f0f1b;
    font-weight: bold;
    padding: 5px 40px;
    transform: rotate(45deg);
    font-size: 0.9rem;
    box-shadow: 0 5px 15px rgba(0, 0, 0, 0.3);
}

.pricing-header {
    padding: 30px 25px 20px;
    text-align: center;
    border-bottom: 1px solid var(--border);
}

.plan-name {
    font-size: 2rem;
    margin-bottom: 15px;
    color: white;
}

.price {
    font-size: 3.5rem;
    font-weight: bold;
    margin: 15px 0;
}

.price .amount {
    background: linear-gradient(90deg, var(--primary), var(--secondary));
    -webkit-background-clip: text;
    -webkit-text-fill-color: transparent;
}

.price .currency {
    font-size: 1.8rem;
    vertical-align: super;
    margin-right: 2px;
}

.price .period {
    font-size: 1.2rem;
    color: var(--text-secondary);
    margin-left: 5px;
}

.pricing-features {
    flex: 1;
    padding: 30px 25px;
}

.pricing-features ul {
    list-style: none;
    padding: 0;
}

.pricing-features li {
    padding: 12px 0;
    border-bottom: 1px solid #2d2d44;
    display: flex;
    align-items: center;
    gap: 10px;
}

.pricing-features li:last-child {
    border-bottom: none;
}

.pricing-footer {
    padding: 0 25px 25px;
    border-top: 1px solid var(--border);
}

/* Testimonials section */
.testimonials {
    padding: 100px 0;
    background: #111120;
}

.testimonials-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(300px, 1fr));
    gap: 30px;
    margin-top: 50px;
}

.testimonial-card {
    background: var(--card-bg);
    border-radius: 20px;
    padding: 30px;
    border: 1px solid var(--border);
    box-shadow: var(--shadow);
    transition: var(--transition);
}

.testimonial-card:hover {
    transform: translateY(-5px);
    border-color: var(--secondary);
}

.testimonial-header {
    display: flex;
    align-items: center;
    margin-bottom: 20px;
}

.testimonial-avatar {
    width: 60px;
    height: 60px;
    border-radius: 50%;
    overflow: hidden;
    margin-right: 15px;
    border: 2px solid var(--primary);
}

.testimonial-avatar img {
    width: 100%;
    height: 100%;
    object-fit: cover;
}

.testimonial-info {
    flex: 1;
}

.testimonial-name {
    font-size: 1.3rem;
    font-weight: bold;
    color: white;
}

.testimonial-role {
    color: var(--text-secondary);
    font-size: 0.95rem;
}

.testimonial-rating {
    color: #f59e0b;
    font-size: 1.2rem;
}

.testimonial-content {
    font-style: italic;
    color: var(--text-secondary);
    line-height: 1.7;
    position: relative;
    padding-left: 20px;
}

.testimonial-content::before {
    content: '"';
    position: absolute;
    left: 0;
    top: -5px;
    font-size: 3rem;
    color: var(--primary);
    opacity: 0.3;
    font-family: Georgia, serif;
}

/* Contact section */
.contact {
    padding: 100px 0;
    background: linear-gradient(135deg, #0f0f1b 0%, #1a1a2e 100%);
}

.contact-container {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(300px, 1fr));
    gap: 50px;
    margin-top: 50px;
}

.contact-info {
    display: flex;
    flex-direction: column;
    gap: 30px;
}

.contact-item {
    display: flex;
    gap: 20px;
}

.contact-icon {
    width: 60px;
    height: 60px;
    background: rgba(74, 222, 128, 0.15);
    border-radius: 15px;
    display: flex;
    align-items: center;
    justify-content: center;
    color: var(--primary);
    font-size: 1.8rem;
}

.contact-text h4 {
    font-size: 1.3rem;
    margin-bottom: 5px;
    color: white;
}

.contact-text p {
    color: var(--text-secondary);
    line-height: 1.6;
}

.contact-form {
    background: var(--card-bg);
    border-radius: 20px;
    padding: 35px;
    border: 1px solid var(--border);
    box-shadow: var(--shadow);
}

/* Form styles */
.form-group {
    margin-bottom: 25px;
}

.form-group label {
    display: block;
    margin-bottom: 8px;
    font-weight: 500;
    font-size: 1.05rem;
}

.form-control, .form-select, input, textarea, select {
    width: 100%;
    padding: 14px;
    background: rgba(15, 15, 27, 0.7);
    border: 1px solid #333;
    border-radius: 10px;
    color: white;
    font-size: 1rem;
    transition: var(--transition);
}

.form-control:focus, input:focus, textarea:focus, select:focus {
    outline: none;
    border-color: var(--primary);
    box-shadow: 0 0 0 3px rgba(74, 222, 128, 0.2);
}

textarea {
    min-height: 150px;
    resize: vertical;
}

.form-hint {
    font-size: 0.9rem;
    color: var(--text-secondary);
    margin-top: 5px;
    display: block;
}

.checkbox-label {
    display: flex;
    align-items: center;
    gap: 10px;
    cursor: pointer;
}

.checkbox-label input {
    width: 18px;
    height: 18px;
    cursor: pointer;
}

.link {
    color: var(--primary);
    text-decoration: none;
    font-weight: 500;
}

.link:hover {
    text-decoration: underline;
}

/* Auth page */
.auth-page {
    background: linear-gradient(135deg, #0f0f1b 0%, #1a1a2e 100%);
    min-height: 100vh;
    display: flex;
    align-items: center;
    justify-content: center;
    padding: 20px;
}

.auth-container {
    width: 100%;
    max-width: 450px;
}

.auth-card {
    background: var(--card-bg);
    border-radius: 24px;
    overflow: hidden;
    border: 1px solid var(--border);
    box-shadow: var(--shadow);
}

.auth-header {
    text-align: center;
    padding: 40px 30px 30px;
}

.auth-title {
    font-size: 2.5rem;
    margin-bottom: 10px;
}

.auth-subtitle {
    color: var(--text-secondary);
    font-size: 1.1rem;
}

.auth-form {
    padding: 0 30px 30px;
}

.auth-footer {
    text-align: center;
    padding: 20px 30px 30px;
    border-top: 1px solid var(--border);
}

.auth-footer p {
    color: var(--text-secondary);
    margin-bottom: 15px;
}

.auth-providers {
    display: flex;
    gap: 15px;
    margin-top: 20px;
}

.auth-divider {
    text-align: center;
    position: relative;
    margin: 25px 0;
}

.auth-divider::before {
    content: '';
    position: absolute;
    top: 50%;
    left: 0;
    right: 0;
    height: 1px;
    background: var(--border);
    transform: translateY(-50%);
}

.auth-divider span {
    background: var(--card-bg);
    padding: 0 15px;
    position: relative;
    color: var(--text-secondary);
    font-size: 0.95rem;
}

/* Alert messages */
.alert {
    padding: 15px;
    border-radius: 10px;
    margin-bottom: 20px;
    display: flex;
    align-items: center;
    gap: 10px;
}

.alert-error {
    background: rgba(239, 68, 68, 0.15);
    border: 1px solid rgba(239, 68, 68, 0.3);
    color: #f87171;
}

.alert-warning {
    background: rgba(245, 158, 11, 0.15);
    border: 1px solid rgba(245, 158, 11, 0.3);
    color: #f59e0b;
}

/* Card element for Stripe */
.card-element {
    background: rgba(15, 15, 27, 0.7);
    border: 1px solid #333;
    border-radius: 10px;
    padding: 15px;
    color: white;
    font-size: 1rem;
    height: 50px;
    width: 100%;
}

.card-errors {
    color: var(--error);
    margin-top: 5px;
    font-size: 0.9rem;
}

/* Toast notification */
.toast {
    position: fixed;
    bottom: 30px;
    right: 30px;
    background: var(--card-bg);
    border-left: 4px solid var(--success);
    padding: 15px 25px;
    border-radius: 0 10px 10px 0;
    box-shadow: 0 5px 20px rgba(0, 0, 0, 0.3);
    transform: translateX(150%);
    transition: transform 0.3s ease-out;
    z-index: 10000;
    display: flex;
    align-items: center;
    gap: 10px;
}

.toast.show {
    transform: translateX(0);
}

.toast-icon {
    color: var(--success);
    font-size: 1.2rem;
}

.toast-message {
    color: white;
}

/* Footer */
.footer {
    background: rgba(15, 15, 27, 0.95);
    padding: 70px 0 30px;
    border-top: 1px solid var(--border);
    margin-top: 100px;
}

.footer-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(250px, 1fr));
    gap: 40px;
    margin-bottom: 50px;
}

.footer-col h4 {
    font-size: 1.3rem;
    margin-bottom: 25px;
    color: white;
    position: relative;
    padding-bottom: 10px;
}

.footer-col h4::after {
    content: '';
    position: absolute;
    bottom: 0;
    left: 0;
    width: 40px;
    height: 3px;
    background: var(--primary);
    border-radius: 3px;
}

.footer-description {
    color: var(--text-secondary);
    margin: 15px 0 25px;
    line-height: 1.7;
}

.social-links {
    display: flex;
    gap: 15px;
    margin-top: 20px;
}

.social-link {
    width: 40px;
    height: 40px;
    border-radius: 50%;
    background: rgba(74, 222, 128, 0.15);
    display: flex;
    align-items: center;
    justify-content: center;
    color: var(--primary);
    font-size: 1.2rem;
    transition: var(--transition);
}

.social-link:hover {
    transform: translateY(-3px);
    background: rgba(74, 222, 128, 0.25);
}

.footer-links {
    list-style: none;
}

.footer-links li {
    margin-bottom: 12px;
}

.footer-links a {
    color: var(--text-secondary);
    text-decoration: none;
    transition: var(--transition);
    display: block;
}

.footer-links a:hover {
    color: var(--primary);
    transform: translateX(5px);
}

.newsletter-form {
    display: flex;
    flex-direction: column;
    gap: 15px;
    margin-top: 20px;
}

.newsletter-form input {
    padding: 12px 15px;
    border-radius: 8px;
    border: 1px solid #333;
    background: rgba(15, 15, 27, 0.7);
    color: white;
}

.footer-bottom {
    text-align: center;
    padding-top: 30px;
    border-top: 1px solid var(--border);
    color: var(--text-secondary);
    font-size: 0.95rem;
}

.footer-legal {
    display: flex;
    justify-content: center;
    gap: 25px;
    margin-top: 10px;
}

.footer-legal a {
    color: var(--text-secondary);
    text-decoration: none;
    transition: var(--transition);
}

.footer-legal a:hover {
    color: var(--primary);
}

/* Responsive */
@media (max-width: 768px) {
    .header .container {
        flex-direction: column;
        gap: 15px;
    }
    
    .nav {
        flex-wrap: wrap;
        justify-content: center;
    }
    
    .auth-buttons {
        width: 100%;
        justify-content: center;
    }
    
    .hero {
        padding: 140px 0 60px;
    }
    
    .hero-title {
        font-size: 2.8rem;
    }
    
    .hero-title span {
        font-size: 2rem;
    }
    
    .hero-subtitle {
        font-size: 1.3rem;
    }
    
    .hero-cta {
        flex-direction: column;
    }
    
    .hero-stats {
        flex-direction: column;
        gap: 20px;
        align-items: center;
    }
    
    .testimonials-grid, .pricing-grid, .features-grid {
        grid-template-columns: 1fr;
    }
}

@media (max-width: 480px) {
    .hero-title {
        font-size: 2.3rem;
    }
    
    .hero-title span {
        font-size: 1.8rem;
    }
    
    .section-title {
        font-size: 2.3rem;
    }
    
    .price {
        font-size: 2.8rem;
    }
    
    .auth-container {
        max-width: 100%;
        padding: 0 15px;
    }
    
    .auth-card {
        border-radius: 20px;
    }
    
    .btn-provider {
        flex-direction: column;
        gap: 5px;
    }
}