/* CSS Custom Properties (Variables) - Dark Mode */
:root {
    --primary-gradient: linear-gradient(135deg, #3b82f6 0%, #06b6d4 100%);
    --secondary-gradient: linear-gradient(135deg, #2563eb 0%, #0891b2 100%);
    --accent-color: #06b6d4;
    --accent-secondary: #3b82f6;
    --text-primary: #f1f5f9;
    --text-secondary: #cbd5e1;
    --text-muted: #94a3b8;
    --bg-primary: #0a0e27;
    --bg-secondary: #1a1f3a;
    --bg-tertiary: #252b45;
    --bg-card: #1a1f3a;
    --bg-card-hover: #252b45;
    --bg-gradient: linear-gradient(135deg, #1a1f3a 0%, #0a0e27 100%);
    --shadow-sm: 0 1px 3px rgba(0, 0, 0, 0.3);
    --shadow-md: 0 4px 6px rgba(0, 0, 0, 0.4);
    --shadow-lg: 0 10px 25px rgba(0, 0, 0, 0.5);
    --border-color: rgba(59, 130, 246, 0.15);
    --border-radius: 12px;
    --transition: all 0.3s ease;
}

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

html {
    scroll-behavior: smooth;
}

body {
    font-family: -apple-system, BlinkMacSystemFont, 'Segoe UI', 'Roboto', 'Oxygen', 'Ubuntu', 'Cantarell', 'Fira Sans', 'Droid Sans', 'Helvetica Neue', sans-serif;
    line-height: 1.6;
    color: var(--text-primary);
    background-color: var(--bg-primary);
    overflow-x: hidden;
}

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

/* Typography */
h1, h2, h3, h4 {
    font-weight: 700;
    line-height: 1.2;
    color: var(--text-primary);
}

h1 {
    font-size: 48px;
}

h2 {
    font-size: 36px;
}

h3 {
    font-size: 24px;
}

h4 {
    font-size: 20px;
}

p {
    color: var(--text-secondary);
    font-size: 16px;
}

/* Hero Section */
.hero {
    min-height: 90vh;
    display: flex;
    align-items: center;
    justify-content: center;
    background: var(--primary-gradient);
    color: white;
    text-align: center;
    position: relative;
    overflow: hidden;
}

.hero::before {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    bottom: 0;
    background: url('data:image/svg+xml,<svg width="100" height="100" xmlns="http://www.w3.org/2000/svg"><defs><pattern id="grid" width="100" height="100" patternUnits="userSpaceOnUse"><path d="M 100 0 L 0 0 0 100" fill="none" stroke="rgba(255,255,255,0.15)" stroke-width="1"/></pattern></defs><rect width="100" height="100" fill="url(%23grid)"/></svg>');
    opacity: 0.4;
}

.hero::after {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    bottom: 0;
    background: radial-gradient(circle at 20% 50%, rgba(59, 130, 246, 0.25) 0%, transparent 50%),
                radial-gradient(circle at 80% 80%, rgba(6, 182, 212, 0.25) 0%, transparent 50%);
    pointer-events: none;
}

.hero .container {
    position: relative;
    z-index: 1;
    padding: 80px 20px;
}

.hero-badge {
    display: inline-block;
    padding: 8px 20px;
    background: rgba(255, 255, 255, 0.2);
    backdrop-filter: blur(10px);
    border: 1px solid rgba(255, 255, 255, 0.3);
    border-radius: 50px;
    color: white;
    font-size: 14px;
    font-weight: 600;
    margin-bottom: 30px;
    animation: fadeInUp 0.8s ease;
}

.hero-headline {
    font-size: 48px;
    margin-bottom: 24px;
    color: white;
    animation: fadeInUp 0.8s ease 0.1s both;
}

.hero-subheadline {
    font-size: 24px;
    margin-bottom: 16px;
    color: rgba(255, 255, 255, 0.95);
    font-weight: 400;
    animation: fadeInUp 0.8s ease 0.2s both;
}

.hero-value {
    font-size: 18px;
    color: rgba(255, 255, 255, 0.9);
    max-width: 700px;
    margin: 0 auto 40px;
    animation: fadeInUp 0.8s ease 0.3s both;
}

/* CTA Buttons */
.cta-primary {
    padding: 16px 40px;
    font-size: 18px;
    font-weight: 600;
    color: white;
    background: rgba(255, 255, 255, 0.15);
    backdrop-filter: blur(10px);
    border: 2px solid rgba(255, 255, 255, 0.3);
    border-radius: 50px;
    cursor: pointer;
    transition: var(--transition);
    animation: fadeInUp 0.8s ease 0.4s both;
    font-family: inherit;
}

.cta-primary:hover {
    background: rgba(255, 255, 255, 0.25);
    border-color: rgba(255, 255, 255, 0.5);
    transform: translateY(-2px);
    box-shadow: 0 10px 30px rgba(0, 0, 0, 0.3);
}

.cta-secondary {
    display: block;
    margin: 50px auto 0;
    padding: 16px 40px;
    font-size: 18px;
    font-weight: 600;
    color: var(--text-primary);
    background: var(--primary-gradient);
    border: none;
    border-radius: 50px;
    cursor: pointer;
    transition: var(--transition);
    font-family: inherit;
    box-shadow: var(--shadow-md);
}

.cta-secondary:hover {
    transform: translateY(-2px);
    box-shadow: var(--shadow-lg);
    opacity: 0.9;
}

/* Value Prop Section */
.value-prop-section {
    padding: 100px 0;
    background-color: var(--bg-secondary);
}

.section-title {
    text-align: center;
    margin-bottom: 60px;
    font-size: 36px;
}

.section-subtitle {
    text-align: center;
    font-size: 18px;
    color: var(--text-muted);
    margin-bottom: 60px;
    max-width: 700px;
    margin-left: auto;
    margin-right: auto;
}

.section-title {
    color: var(--text-primary);
}

.value-prop-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(280px, 1fr));
    gap: 40px;
    margin-top: 60px;
    max-width: 1000px;
    margin-left: auto;
    margin-right: auto;
}

.value-item {
    background: var(--bg-card);
    padding: 40px;
    border-radius: var(--border-radius);
    box-shadow: var(--shadow-md);
    border: 1px solid var(--border-color);
    text-align: center;
    transition: var(--transition);
    opacity: 0;
    transform: translateY(30px);
}

.value-item.fade-in {
    opacity: 1;
    transform: translateY(0);
}

.value-item:hover {
    transform: translateY(-5px);
    box-shadow: var(--shadow-lg);
    background: var(--bg-card-hover);
    border-color: rgba(59, 130, 246, 0.4);
}

.value-icon {
    font-size: 48px;
    margin-bottom: 20px;
}

.value-item h3 {
    margin-bottom: 16px;
    color: var(--text-primary);
    font-size: 22px;
}

.value-item p {
    color: var(--text-secondary);
    line-height: 1.7;
    font-size: 16px;
}

/* Solution Section */
.solution-section {
    padding: 100px 0;
    background-color: var(--bg-primary);
}

.solution-intro {
    text-align: center;
    font-size: 20px;
    max-width: 800px;
    margin: 0 auto 50px;
    color: var(--text-secondary);
    line-height: 1.8;
}

.solution-benefits {
    display: flex;
    flex-direction: column;
    gap: 20px;
    max-width: 700px;
    margin: 0 auto;
}

.benefit-item {
    display: flex;
    align-items: center;
    gap: 16px;
    padding: 20px;
    background: var(--bg-card);
    border: 1px solid var(--border-color);
    border-radius: var(--border-radius);
    transition: var(--transition);
    opacity: 0;
    transform: translateX(-30px);
}

.benefit-item.fade-in {
    opacity: 1;
    transform: translateX(0);
}

.benefit-item:hover {
    background: var(--bg-card-hover);
    box-shadow: var(--shadow-md);
    border-color: rgba(59, 130, 246, 0.4);
}

.benefit-check {
    font-size: 24px;
    color: var(--accent-color);
    font-weight: bold;
    flex-shrink: 0;
}

.benefit-item span:last-child {
    font-size: 18px;
    color: var(--text-primary);
}

/* Features Section */
.features-section {
    padding: 100px 0;
    background: var(--bg-gradient);
}

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

.feature-card {
    background: var(--bg-card);
    padding: 40px;
    border-radius: var(--border-radius);
    box-shadow: var(--shadow-md);
    border: 1px solid var(--border-color);
    transition: var(--transition);
    opacity: 0;
    transform: translateY(30px);
}

.feature-card.fade-in {
    opacity: 1;
    transform: translateY(0);
}

.feature-card:hover {
    transform: translateY(-8px);
    box-shadow: var(--shadow-lg);
    background: var(--bg-card-hover);
    border-color: rgba(59, 130, 246, 0.5);
}

.feature-icon {
    font-size: 48px;
    margin-bottom: 20px;
}

.feature-card h3 {
    margin-bottom: 16px;
    color: var(--text-primary);
}

.feature-card p {
    color: var(--text-secondary);
    line-height: 1.7;
}

/* How It Works Section */
.how-it-works-section {
    padding: 100px 0;
    background-color: var(--bg-secondary);
}

.steps-container {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(300px, 1fr));
    gap: 40px;
    margin-top: 60px;
}

.step {
    text-align: center;
    position: relative;
    opacity: 0;
    transform: translateY(30px);
}

.step.fade-in {
    opacity: 1;
    transform: translateY(0);
}

.step-number {
    width: 60px;
    height: 60px;
    background: var(--primary-gradient);
    color: white;
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 28px;
    font-weight: bold;
    margin: 0 auto 24px;
    box-shadow: 0 0 20px rgba(59, 130, 246, 0.4), var(--shadow-md);
    transition: var(--transition);
}

.step:hover .step-number {
    box-shadow: 0 0 30px rgba(6, 182, 212, 0.6), var(--shadow-lg);
    transform: scale(1.05);
}

.step h3 {
    margin-bottom: 16px;
    color: var(--text-primary);
}

.step p {
    color: var(--text-secondary);
    line-height: 1.7;
}

/* Social Proof Section */
.social-proof-section {
    padding: 100px 0;
    background-color: var(--bg-primary);
}

.testimonials-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(300px, 1fr));
    gap: 30px;
    margin-top: 60px;
}

.testimonial-card {
    background: var(--bg-card);
    padding: 40px;
    border-radius: var(--border-radius);
    box-shadow: var(--shadow-md);
    border: 1px solid var(--border-color);
    transition: var(--transition);
    opacity: 0;
    transform: translateY(30px);
}

.testimonial-card.fade-in {
    opacity: 1;
    transform: translateY(0);
}

.testimonial-card:hover {
    transform: translateY(-5px);
    box-shadow: var(--shadow-lg);
    background: var(--bg-card-hover);
    border-color: rgba(59, 130, 246, 0.4);
}

.testimonial-text {
    font-size: 18px;
    font-style: italic;
    color: var(--text-primary);
    margin-bottom: 20px;
    line-height: 1.7;
}

.testimonial-author {
    color: var(--text-muted);
    font-size: 14px;
}

/* Footer */
.footer {
    background-color: var(--bg-secondary);
    color: var(--text-primary);
    padding: 60px 0 30px;
    border-top: 1px solid var(--border-color);
}

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

.footer-section h4 {
    color: var(--text-primary);
    margin-bottom: 20px;
    font-size: 20px;
}

.footer-section p {
    color: var(--text-secondary);
}

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

.footer-section ul li {
    margin-bottom: 12px;
}

.footer-section ul li a {
    color: var(--text-secondary);
    text-decoration: none;
    transition: var(--transition);
}

.footer-section ul li a:hover {
    color: var(--text-primary);
}

.footer-bottom {
    text-align: center;
    padding-top: 30px;
    border-top: 1px solid var(--border-color);
}

.footer-bottom p {
    color: var(--text-muted);
    font-size: 14px;
}

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

/* Responsive Design */
@media (max-width: 768px) {
    h1 {
        font-size: 36px;
    }

    h2 {
        font-size: 28px;
    }

    .hero-headline {
        font-size: 32px;
    }

    .hero-subheadline {
        font-size: 20px;
    }

    .hero-value {
        font-size: 16px;
    }

    .section-title {
        font-size: 28px;
    }

    .value-prop-grid {
        grid-template-columns: 1fr;
    }

    .hero {
        min-height: 70vh;
    }

    .hero .container {
        padding: 60px 20px;
    }

    .value-prop-section {
        padding: 60px 0;
    }

    .value-item {
        padding: 30px;
    }
}

@media (max-width: 480px) {
    .container {
        padding: 0 16px;
    }

    h1 {
        font-size: 28px;
    }

    h2 {
        font-size: 24px;
    }

    .hero-headline {
        font-size: 28px;
    }

    .hero-subheadline {
        font-size: 18px;
    }

    .section-title {
        font-size: 24px;
        margin-bottom: 40px;
    }
}

/* Modal Styles */
.modal {
    display: none;
    position: fixed;
    z-index: 1000;
    left: 0;
    top: 0;
    width: 100%;
    height: 100%;
    overflow: auto;
    background-color: rgba(0, 0, 0, 0.7);
    backdrop-filter: blur(5px);
    animation: fadeIn 0.3s ease;
}

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

.modal-content {
    background: var(--bg-card);
    border: 1px solid var(--border-color);
    border-radius: var(--border-radius);
    max-width: 600px;
    width: 100%;
    max-height: 90vh;
    overflow-y: auto;
    box-shadow: var(--shadow-lg);
    animation: slideUp 0.3s ease;
    position: relative;
}

.modal-header {
    display: flex;
    justify-content: space-between;
    align-items: center;
    padding: 24px 30px;
    border-bottom: 1px solid var(--border-color);
}

.modal-header h2 {
    margin: 0;
    color: var(--text-primary);
    font-size: 24px;
}

.modal-close {
    background: none;
    border: none;
    font-size: 32px;
    color: var(--text-muted);
    cursor: pointer;
    padding: 0;
    width: 32px;
    height: 32px;
    display: flex;
    align-items: center;
    justify-content: center;
    border-radius: 50%;
    transition: var(--transition);
}

.modal-close:hover {
    background: var(--bg-secondary);
    color: var(--text-primary);
    transform: rotate(90deg);
}

.modal-body {
    padding: 30px;
}

.modal-info {
    margin-bottom: 30px;
}

.modal-info h3 {
    color: var(--text-primary);
    margin-bottom: 12px;
    font-size: 20px;
}

.modal-info p {
    color: var(--text-secondary);
    margin-bottom: 16px;
    line-height: 1.6;
}

.info-list {
    list-style: none;
    padding: 0;
    margin: 16px 0;
}

.info-list li {
    padding: 8px 0;
    color: var(--text-secondary);
    padding-left: 24px;
    position: relative;
}

.info-list li::before {
    content: '';
    position: absolute;
    left: 0;
    top: 12px;
    width: 6px;
    height: 6px;
    background: var(--accent-color);
    border-radius: 50%;
}

.info-note {
    background: rgba(6, 182, 212, 0.1);
    border-left: 3px solid var(--accent-color);
    padding: 12px 16px;
    border-radius: 4px;
    margin-top: 16px;
}

.info-note strong {
    color: var(--text-primary);
}

.modal-form-section label {
    display: block;
    color: var(--text-primary);
    font-weight: 600;
    margin-bottom: 8px;
    font-size: 14px;
}

.modal-form-section input {
    width: 100%;
    padding: 12px 16px;
    background: var(--bg-secondary);
    border: 1px solid var(--border-color);
    border-radius: 8px;
    color: var(--text-primary);
    font-size: 16px;
    font-family: inherit;
    transition: var(--transition);
    margin-bottom: 8px;
}

.modal-form-section input:focus {
    outline: none;
    border-color: var(--accent-color);
    box-shadow: 0 0 0 3px rgba(6, 182, 212, 0.1);
}

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

.input-hint {
    display: block;
    color: var(--text-muted);
    font-size: 12px;
    margin-bottom: 20px;
}

.btn-submit {
    width: 100%;
    padding: 14px 24px;
    background: var(--primary-gradient);
    color: white;
    border: none;
    border-radius: 8px;
    font-size: 16px;
    font-weight: 600;
    cursor: pointer;
    transition: var(--transition);
    font-family: inherit;
}

.btn-submit:hover {
    transform: translateY(-2px);
    box-shadow: var(--shadow-md);
}

.btn-submit:disabled {
    opacity: 0.6;
    cursor: not-allowed;
    transform: none;
}

.modal-loading {
    text-align: center;
    padding: 40px 20px;
}

.loading-spinner {
    border: 4px solid var(--border-color);
    border-top: 4px solid var(--accent-color);
    border-radius: 50%;
    width: 50px;
    height: 50px;
    animation: spin 1s linear infinite;
    margin: 0 auto 20px;
}

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

.modal-loading p {
    color: var(--text-primary);
    margin-bottom: 8px;
    font-size: 16px;
}

.loading-hint {
    color: var(--text-muted);
    font-size: 14px;
}

.modal-success {
    text-align: center;
    padding: 40px 20px;
}

.success-icon {
    font-size: 64px;
    margin-bottom: 20px;
}

.modal-success h3 {
    color: var(--text-primary);
    margin-bottom: 12px;
    font-size: 24px;
}

.modal-success p {
    color: var(--text-secondary);
    margin-bottom: 24px;
    line-height: 1.6;
}

.btn-view-analysis {
    display: inline-block;
    padding: 14px 32px;
    background: var(--primary-gradient);
    color: white;
    text-decoration: none;
    border-radius: 8px;
    font-size: 16px;
    font-weight: 600;
    transition: var(--transition);
}

.btn-view-analysis:hover {
    transform: translateY(-2px);
    box-shadow: var(--shadow-md);
}

.modal-error {
    text-align: center;
    padding: 40px 20px;
}

.error-icon {
    font-size: 64px;
    margin-bottom: 20px;
}

.modal-error h3 {
    color: #ef4444;
    margin-bottom: 12px;
    font-size: 24px;
}

.modal-error p {
    color: var(--text-secondary);
    margin-bottom: 24px;
    line-height: 1.6;
}

.btn-retry {
    padding: 12px 24px;
    background: var(--bg-secondary);
    color: var(--text-primary);
    border: 1px solid var(--border-color);
    border-radius: 8px;
    font-size: 14px;
    font-weight: 600;
    cursor: pointer;
    transition: var(--transition);
    font-family: inherit;
}

.btn-retry:hover {
    background: var(--bg-card-hover);
    border-color: var(--accent-color);
}

@keyframes fadeIn {
    from { opacity: 0; }
    to { opacity: 1; }
}

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

/* Modal Responsive */
@media (max-width: 768px) {
    .modal.active {
        padding: 10px;
    }

    .modal-content {
        max-height: 95vh;
    }

    .modal-header {
        padding: 20px;
    }

    .modal-header h2 {
        font-size: 20px;
    }

    .modal-body {
        padding: 20px;
    }

    .modal-info h3 {
        font-size: 18px;
    }

    .success-icon,
    .error-icon {
        font-size: 48px;
    }
}

@media (max-width: 480px) {
    .modal-header {
        padding: 16px;
    }

    .modal-body {
        padding: 16px;
    }

    .modal-info p,
    .modal-success p,
    .modal-error p {
        font-size: 14px;
    }
}

