/* HelixAI Landing Page - Apple-like Design System */

* {
    margin: 0;
    padding: 0;
    box-sizing: border-box;
}

:root {
    /* Primary Colors */
    --white: #FFFFFF;
    --charcoal: #333333;
    --text-light: #666666;
    --text-lighter: #999999;

    /* Accent Colors */
    --purple: #7C3AED;
    --purple-light: #8B5CF6;
    --purple-dark: #6D28D9;
    --cyan: #06B6D4;
    --cyan-light: #22D3EE;
    --cyan-dark: #0891B2;

    /* Gradient */
    --gradient: linear-gradient(135deg, var(--purple) 0%, var(--cyan) 100%);

    /* Section Gradients - Alternating left-to-right */
    --section-gradient-purple: linear-gradient(to right, rgba(124, 58, 237, 0.15) 0%, rgba(255, 255, 255, 1) 100%);
    --section-gradient-white: linear-gradient(to right, rgba(255, 255, 255, 1) 0%, rgba(124, 58, 237, 0.15) 100%);

    /* Borders & Backgrounds */
    --border: #E5E5E5;
    --border-light: #F3F4F6;
    --bg-gray: #F9FAFB;

    /* Shadows */
    --shadow-sm: 0 1px 2px 0 rgba(0, 0, 0, 0.05);
    --shadow-md: 0 4px 6px -1px rgba(0, 0, 0, 0.1), 0 2px 4px -1px rgba(0, 0, 0, 0.06);
    --shadow-lg: 0 10px 15px -3px rgba(0, 0, 0, 0.1), 0 4px 6px -2px rgba(0, 0, 0, 0.05);
    --shadow-xl: 0 20px 25px -5px rgba(0, 0, 0, 0.1), 0 10px 10px -5px rgba(0, 0, 0, 0.04);

    /* 3D Border Effect */
    --shadow-3d:
        0 1px 1px rgba(0, 0, 0, 0.08),
        0 2px 2px rgba(0, 0, 0, 0.08),
        0 4px 4px rgba(0, 0, 0, 0.08),
        0 8px 8px rgba(0, 0, 0, 0.08),
        0 16px 16px rgba(0, 0, 0, 0.08);
    --shadow-3d-hover:
        0 2px 2px rgba(124, 58, 237, 0.1),
        0 4px 4px rgba(124, 58, 237, 0.1),
        0 8px 8px rgba(124, 58, 237, 0.1),
        0 16px 16px rgba(124, 58, 237, 0.1),
        0 32px 32px rgba(124, 58, 237, 0.1);
}

body {
    font-family: -apple-system, BlinkMacSystemFont, 'SF Pro Display', 'Segoe UI', sans-serif;
    background: var(--white);
    color: var(--charcoal);
    min-height: 100vh;
    overflow-x: hidden;
    -webkit-font-smoothing: antialiased;
    -moz-osx-font-smoothing: grayscale;
    position: relative;
}

/* Faded Background Logo */
body::before {
    content: '';
    position: fixed;
    top: 50%;
    left: 50%;
    transform: translate(-50%, -50%);
    width: 800px;
    height: 800px;
    background-image: url('/static/images/helixainoBG.png');
    background-size: contain;
    background-repeat: no-repeat;
    background-position: center;
    opacity: 0.03;
    z-index: 0;
    pointer-events: none;
}

/* Container */
.container {
    position: relative;
    z-index: 1;
    max-width: 1400px;
    margin: 0 auto;
    padding: 2rem;
}

/* Top Logo */
.top-logo {
    text-align: center;
    margin-bottom: 2rem;
    padding-top: 2rem;
}

.top-logo img {
    max-width: 400px;
    width: 100%;
    height: auto;
    object-fit: contain;
}

/* Header/Navigation */
.header {
    display: flex;
    justify-content: space-between;
    align-items: center;
    padding: 1.5rem 0;
    margin-bottom: 3rem;
    border-bottom: 1px solid var(--border);
}

.logo {
    display: flex;
    align-items: center;
    gap: 0.75rem;
    font-size: 1.5rem;
    font-weight: 600;
    color: var(--charcoal);
    text-decoration: none;
    letter-spacing: -0.02em;
}

.logo img {
    height: 36px;
    width: 36px;
    object-fit: contain;
    border-radius: 8px;
}

.nav {
    display: flex;
    gap: 2rem;
    align-items: center;
}

.nav-link {
    color: var(--text-light);
    text-decoration: none;
    font-weight: 500;
    font-size: 0.9375rem;
    transition: all 0.2s ease;
    position: relative;
    padding: 0.5rem 0;
}

.nav-link:hover {
    color: var(--purple);
}

/* Buttons */
.btn {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    gap: 0.5rem;
    padding: 0.625rem 1.25rem;
    border-radius: 8px;
    font-weight: 500;
    font-size: 0.9375rem;
    cursor: pointer;
    border: none;
    transition: all 0.2s ease;
    text-decoration: none;
    font-family: inherit;
}

.btn-primary {
    background: var(--gradient);
    color: var(--white);
    box-shadow: var(--shadow-sm);
}

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

.btn-secondary {
    background: var(--white);
    color: var(--charcoal);
    border: 1px solid var(--border);
}

.btn-secondary:hover {
    background: var(--bg-gray);
    border-color: var(--purple);
    color: var(--purple);
}

.btn-large {
    padding: 0.875rem 1.75rem;
    font-size: 1rem;
}

/* Hero Section */
.hero {
    text-align: center;
    margin-bottom: 4rem;
    padding: 4rem 0 3rem;
}

.hero-badge {
    margin-bottom: 1.5rem;
    animation: fadeInDown 0.6s ease-out;
}

.hero h1 {
    font-size: 3.5rem;
    font-weight: 700;
    line-height: 1.1;
    margin-bottom: 1.5rem;
    color: var(--charcoal);
    letter-spacing: -0.02em;
    animation: fadeInUp 0.6s ease-out 0.2s both;
}

.hero .subtitle {
    font-size: 1.25rem;
    color: var(--text-light);
    max-width: 700px;
    margin: 0 auto 2.5rem;
    line-height: 1.6;
    animation: fadeInUp 0.6s ease-out 0.4s both;
}

/* Badge */
.badge {
    display: inline-flex;
    align-items: center;
    padding: 0.25rem 0.75rem;
    border-radius: 12px;
    font-size: 0.75rem;
    font-weight: 600;
    text-transform: uppercase;
    letter-spacing: 0.05em;
}

.badge-purple {
    background: rgba(124, 58, 237, 0.1);
    color: var(--purple);
}

.badge-cyan {
    background: rgba(6, 182, 212, 0.1);
    color: var(--cyan);
}

/* Stats Bar */
.stats {
    display: flex;
    justify-content: center;
    gap: 4rem;
    padding: 2rem;
    margin-bottom: 4rem;
    background: var(--white);
    border-radius: 16px;
    border: 1px solid var(--border);
    animation: fadeInUp 0.6s ease-out 0.6s both;
    box-shadow: var(--shadow-3d);
}

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

.stat-number {
    font-size: 2.5rem;
    font-weight: 700;
    background: var(--gradient);
    -webkit-background-clip: text;
    -webkit-text-fill-color: transparent;
    background-clip: text;
    margin-bottom: 0.5rem;
}

.stat-label {
    font-size: 0.875rem;
    color: var(--text-light);
    font-weight: 500;
}

/* Cards Grid */
.cards-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(300px, 1fr));
    gap: 1.5rem;
    margin-bottom: 4rem;
}

.card {
    background: var(--white);
    border: 1px solid var(--border);
    border-radius: 12px;
    padding: 2rem;
    color: inherit;
    transition: all 0.3s ease;
    position: relative;
    overflow: hidden;
    animation: fadeInUp 0.6s ease-out both;
    box-shadow: var(--shadow-3d);
}

.card:nth-child(1) { animation-delay: 0.1s; }
.card:nth-child(2) { animation-delay: 0.2s; }
.card:nth-child(3) { animation-delay: 0.3s; }
.card:nth-child(4) { animation-delay: 0.4s; }
.card:nth-child(5) { animation-delay: 0.5s; }
.card:nth-child(6) { animation-delay: 0.6s; }

.card:hover {
    transform: translateY(-8px);
    box-shadow: var(--shadow-3d-hover);
    border-color: var(--purple);
}

.card-icon {
    width: 56px;
    height: 56px;
    background: var(--bg-gray);
    border-radius: 12px;
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 1.75rem;
    margin-bottom: 1.25rem;
    transition: all 0.2s ease;
}

.card:hover .card-icon {
    background: var(--gradient);
    transform: scale(1.05);
}

.card h2 {
    font-size: 1.25rem;
    font-weight: 600;
    margin-bottom: 0.75rem;
    color: var(--charcoal);
}

.card p {
    color: var(--text-light);
    line-height: 1.6;
    font-size: 0.9375rem;
}

/* Featured Card */
.card.featured {
    background: linear-gradient(135deg, rgba(124, 58, 237, 0.05) 0%, rgba(6, 182, 212, 0.05) 100%);
    border: 2px solid var(--purple);
    position: relative;
}

.card.featured::after {
    content: 'FEATURED';
    position: absolute;
    top: 1rem;
    right: 1rem;
    background: var(--gradient);
    color: var(--white);
    padding: 0.25rem 0.75rem;
    border-radius: 6px;
    font-size: 0.625rem;
    font-weight: 700;
    letter-spacing: 0.05em;
}

.card.featured .card-icon {
    background: var(--gradient);
}

.card.featured:hover {
    transform: translateY(-6px);
    box-shadow: var(--shadow-xl);
}

/* Section Styling */
.why-section,
.how-section {
    margin-bottom: 0;
    padding: 4rem 2rem;
    margin-left: -2rem;
    margin-right: -2rem;
}

/* Alternating Section Gradients */
.hero {
    background: var(--section-gradient-purple);
    margin-left: -2rem;
    margin-right: -2rem;
    padding-left: 2rem;
    padding-right: 2rem;
}

.stats {
    background: var(--section-gradient-white);
}

.cards-grid {
    background: transparent;
}

/* Why section - purple to white */
.why-section {
    background: var(--section-gradient-purple);
}

/* How section - white to purple */
.how-section {
    background: var(--section-gradient-white);
}

/* Benefits section (second why-section) - purple to white */
.why-section:nth-of-type(even) {
    background: var(--section-gradient-white);
}

.why-section:nth-of-type(odd) {
    background: var(--section-gradient-purple);
}

/* Features intro section */
.features-intro-section {
    background: var(--section-gradient-white);
    margin-left: -2rem;
    margin-right: -2rem;
    padding: 3rem 2rem 1rem;
}

/* Cards section */
.cards-section {
    background: var(--section-gradient-purple);
    margin-left: -2rem;
    margin-right: -2rem;
    padding: 2rem;
}

.cards-section .cards-grid {
    margin-bottom: 0;
}

/* Contact section */
.contact-section {
    background: var(--section-gradient-white);
    margin-left: -2rem;
    margin-right: -2rem;
    padding: 4rem 2rem;
}

.section-header {
    text-align: center;
    margin-bottom: 3rem;
}

.section-header h2 {
    font-size: 2.5rem;
    font-weight: 700;
    margin: 1rem 0;
    color: var(--charcoal);
    letter-spacing: -0.02em;
}

.section-header .subtitle {
    font-size: 1.125rem;
    color: var(--text-light);
    max-width: 600px;
    margin: 0 auto;
    line-height: 1.6;
}

/* Features List */
.features-list {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(320px, 1fr));
    gap: 2rem;
    max-width: 1200px;
    margin: 0 auto;
}

.feature-item {
    display: flex;
    gap: 1.25rem;
    padding: 1.5rem;
    background: var(--white);
    border: 1px solid var(--border);
    border-radius: 12px;
    transition: all 0.3s ease;
    box-shadow: var(--shadow-3d);
}

.feature-item:hover {
    transform: translateY(-6px);
    box-shadow: var(--shadow-3d-hover);
    border-color: var(--purple);
}

.feature-icon {
    font-size: 2rem;
    flex-shrink: 0;
    width: 48px;
    height: 48px;
    display: flex;
    align-items: center;
    justify-content: center;
    background: var(--bg-gray);
    border-radius: 10px;
}

.feature-item:hover .feature-icon {
    background: var(--gradient);
}

.feature-content h3 {
    font-size: 1.125rem;
    font-weight: 600;
    margin-bottom: 0.5rem;
    color: var(--charcoal);
}

.feature-content p {
    color: var(--text-light);
    line-height: 1.6;
    font-size: 0.9375rem;
}

/* Steps Grid */
.steps-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(250px, 1fr));
    gap: 2rem;
    max-width: 1200px;
    margin: 0 auto;
}

.step-card {
    text-align: center;
    padding: 2rem 1.5rem;
    background: var(--white);
    border: 1px solid var(--border);
    border-radius: 12px;
    transition: all 0.3s ease;
    box-shadow: var(--shadow-3d);
}

.step-card:hover {
    transform: translateY(-8px);
    box-shadow: var(--shadow-3d-hover);
    border-color: var(--purple);
}

.step-number {
    width: 64px;
    height: 64px;
    background: var(--gradient);
    color: var(--white);
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 1.75rem;
    font-weight: 700;
    margin: 0 auto 1.5rem;
}

.step-card h3 {
    font-size: 1.25rem;
    font-weight: 600;
    margin-bottom: 0.75rem;
    color: var(--charcoal);
}

.step-card p {
    color: var(--text-light);
    line-height: 1.6;
    font-size: 0.9375rem;
}

/* CTA Section */
.cta-section {
    margin-bottom: 4rem;
}

.cta-card {
    text-align: center;
    padding: 4rem 2rem;
    background: linear-gradient(135deg, rgba(124, 58, 237, 0.05) 0%, rgba(6, 182, 212, 0.05) 100%);
    border: 2px solid var(--purple);
    border-radius: 16px;
    box-shadow: var(--shadow-3d);
}

.cta-card h2 {
    font-size: 2.5rem;
    font-weight: 700;
    margin-bottom: 1rem;
    color: var(--charcoal);
    letter-spacing: -0.02em;
}

.cta-card > p {
    font-size: 1.125rem;
    color: var(--text-light);
    margin-bottom: 2rem;
}

.cta-buttons {
    display: flex;
    gap: 1rem;
    justify-content: center;
    margin-bottom: 1.5rem;
    flex-wrap: wrap;
}

.cta-note {
    font-size: 0.875rem;
    color: var(--text-lighter);
}

/* Footer */
.footer {
    text-align: center;
    padding: 3rem 0;
    margin-top: 4rem;
    border-top: 1px solid var(--border);
    color: var(--text-light);
    font-size: 0.875rem;
}

.footer a {
    color: var(--purple);
    text-decoration: none;
    transition: color 0.2s ease;
}

.footer a:hover {
    color: var(--purple-light);
}

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

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

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

/* Comparison Section */
.comparison-section {
    margin-bottom: 0;
    padding: 4rem 2rem;
    margin-left: -2rem;
    margin-right: -2rem;
    background: var(--section-gradient-purple);
}

.comparison-table-wrapper {
    overflow-x: auto;
    margin-top: 2rem;
    border-radius: 12px;
    box-shadow: var(--shadow-3d);
}

.comparison-table {
    width: 100%;
    border-collapse: collapse;
    background: var(--white);
    min-width: 800px;
}

.comparison-table thead {
    background: var(--gradient);
    color: var(--white);
}

.comparison-table th {
    padding: 1.25rem 1rem;
    text-align: left;
    font-weight: 600;
    font-size: 0.9375rem;
    border-right: 1px solid rgba(255, 255, 255, 0.1);
}

.comparison-table th:last-child {
    border-right: none;
}

.comparison-table th.helixai-column {
    background: var(--purple-dark);
}

.comparison-table tbody tr {
    border-bottom: 1px solid var(--border);
    transition: background-color 0.2s ease;
}

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

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

.comparison-table td {
    padding: 1.5rem 1rem;
    vertical-align: top;
    font-size: 0.875rem;
    border-right: 1px solid var(--border-light);
}

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

.comparison-table .feature-name {
    font-weight: 600;
    color: var(--charcoal);
    min-width: 150px;
}

.comparison-table .helixai-cell {
    background: linear-gradient(135deg, rgba(124, 58, 237, 0.03) 0%, rgba(6, 182, 212, 0.03) 100%);
}

.comparison-table .feature-highlight {
    font-weight: 600;
    color: var(--purple);
    margin-bottom: 0.5rem;
}

.comparison-table .feature-missing {
    font-weight: 500;
    color: #e74c3c;
    margin-bottom: 0.5rem;
}

.comparison-table ul {
    list-style: none;
    padding: 0;
    margin: 0.5rem 0 0 0;
}

.comparison-table ul li {
    padding: 0.25rem 0;
    color: var(--text-light);
    font-size: 0.8125rem;
    position: relative;
    padding-left: 1rem;
}

.comparison-table ul li:before {
    content: "•";
    position: absolute;
    left: 0;
    color: var(--purple);
}

.comparison-table .helixai-cell ul li:before {
    color: var(--cyan);
}

/* Responsive */
@media (max-width: 768px) {
    .container {
        padding: 1rem;
    }

    .top-logo {
        padding-top: 1rem;
        margin-bottom: 1.5rem;
    }

    .top-logo img {
        max-width: 250px;
    }

    .header {
        flex-direction: column;
        gap: 1rem;
        margin-bottom: 2rem;
    }

    .nav {
        gap: 1rem;
        flex-wrap: wrap;
        justify-content: center;
    }

    .hero h1 {
        font-size: 2.5rem;
    }

    .hero .subtitle {
        font-size: 1.125rem;
    }

    .stats {
        gap: 2rem;
        flex-wrap: wrap;
        padding: 1.5rem;
    }

    .stat-number {
        font-size: 2rem;
    }

    .cards-grid {
        grid-template-columns: 1fr;
        gap: 1rem;
    }

    .card {
        padding: 1.5rem;
    }

    .section-header h2 {
        font-size: 2rem;
    }

    .features-list {
        grid-template-columns: 1fr;
    }

    .steps-grid {
        grid-template-columns: 1fr;
    }

    .cta-card {
        padding: 3rem 1.5rem;
    }

    .cta-card h2 {
        font-size: 2rem;
    }

    .cta-buttons {
        flex-direction: column;
    }

    .comparison-section {
        padding: 0 1rem;
    }

    .comparison-table-wrapper {
        margin: 1rem -1rem;
        border-radius: 0;
    }

    .comparison-table {
        font-size: 0.75rem;
    }

    .comparison-table th,
    .comparison-table td {
        padding: 0.75rem 0.5rem;
    }
}
