/* Landing Page Styles */
body {
    display: block !important;
    align-items: unset !important;
    justify-content: unset !important;
}

.landing-container {
    min-height: 100vh;
    width: 100%;
    background: var(--bg-dark);
    color: var(--text);
    background-image: 
        radial-gradient(ellipse at 20% 20%, rgba(0, 212, 170, 0.08) 0%, transparent 50%),
        radial-gradient(ellipse at 80% 80%, rgba(0, 168, 138, 0.05) 0%, transparent 50%);
}

/* Header */
.landing-header {
    position: sticky;
    top: 0;
    z-index: 100;
    background: rgba(10, 10, 15, 0.8);
    backdrop-filter: blur(10px);
    border-bottom: 1px solid var(--border);
    padding: 20px 0;
}

.header-content {
    width: 100%;
    margin: 0 auto;
    padding: 0 24px;
    display: flex;
    justify-content: space-between;
    align-items: center;
}

.logo-section {
    display: flex;
    align-items: center;
    gap: 12px;
}

.header-logo {
    height: 32px;
    width: auto;
}

.header-brand {
    font-family: 'Space Mono', monospace;
    font-size: 20px;
    font-weight: 700;
    color: var(--text);
    letter-spacing: -0.5px;
}

.brand-accent {
    color: var(--accent);
}

.header-nav {
    display: flex;
    align-items: center;
    gap: 24px;
}

.nav-link {
    color: var(--text-dim);
    text-decoration: none;
    font-size: 14px;
    font-weight: 500;
    transition: color 0.2s ease;
}

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

/* Buttons */
.btn {
    display: inline-block;
    padding: 12px 24px;
    border-radius: 8px;
    font-size: 14px;
    font-weight: 600;
    text-decoration: none;
    text-align: center;
    transition: all 0.2s ease;
    border: none;
    cursor: pointer;
    font-family: inherit;
}

.btn-primary {
    background: var(--accent);
    color: var(--bg-dark);
}

.btn-primary:hover {
    background: var(--accent-dim);
    transform: translateY(-1px);
    box-shadow: 0 4px 12px rgba(0, 212, 170, 0.3);
}

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

.btn-secondary:hover {
    border-color: var(--accent);
    color: var(--accent);
}

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

/* Hero Section */
.hero {
    padding: 120px 24px 80px;
    text-align: center;
    width: 100%;
    box-sizing: border-box;
    max-width: 100%;
}

.hero-title {
    font-size: 56px;
    font-weight: 700;
    line-height: 1.1;
    margin-bottom: 24px;
    color: var(--text);
    letter-spacing: -2px;
}

.gradient-text {
    background: linear-gradient(135deg, var(--accent) 0%, var(--accent-dim) 100%);
    -webkit-background-clip: text;
    -webkit-text-fill-color: transparent;
    background-clip: text;
}

.hero-subtitle {
    font-size: 20px;
    color: var(--text);
    line-height: 1.6;
    margin-bottom: 40px;
    max-width: 60ch;
    margin-inline: auto;
}

.hero-actions {
    display: flex;
    gap: 16px;
    justify-content: center;
    flex-wrap: wrap;
}

/* Features Section */
.features {
    padding: 100px 24px;
    background: rgba(18, 18, 26, 0.5);
    width: 100%;
}


.section-title {
    font-size: 42px;
    font-weight: 700;
    text-align: center;
    margin-bottom: 16px;
    color: var(--text);
    letter-spacing: -1px;
}

.section-subtitle {
    font-size: 18px;
    color: var(--text-dim);
    text-align: center;
    margin-bottom: 60px;
    max-width: 55ch;
    margin-inline: auto;
}

/* Infinite scroll marquee */
.features-marquee {
    overflow-x: clip;
    overflow-y: visible;
    width: 100%;
    margin-top: 60px;
    position: relative;
}

.features-marquee::before,
.features-marquee::after {
    content: '';
    position: absolute;
    top: 0;
    bottom: 0;
    width: 100px;
    z-index: 2;
    pointer-events: none;
}

.features-marquee::before {
    left: 0;
    background: linear-gradient(to right, rgba(18, 18, 26, 1), transparent);
}

.features-marquee::after {
    right: 0;
    background: linear-gradient(to left, rgba(18, 18, 26, 1), transparent);
}

.features-track {
    display: flex;
    gap: 24px;
    width: max-content;
    animation: marquee 40s linear infinite;
    padding: 20px 0;
}

.features-track.paused {
    animation-play-state: paused;
}

@keyframes marquee {
    0% {
        transform: translateX(0);
    }
    100% {
        transform: translateX(-50%);
    }
}

.feature-card {
    background: var(--bg-card);
    border: 1px solid var(--accent);
    border-radius: 12px;
    padding: 32px;
    transition: all 0.3s ease;
    flex-shrink: 0;
    width: 320px;
    z-index: 1000;
}

.feature-card.clicked {
    transform: scale(1.08);
    box-shadow: 0 8px 24px rgba(0, 212, 170, 0.2);
}

.feature-icon {
    font-size: 40px;
    margin-bottom: 16px;
}

.feature-icon svg {
    width: 40px;
    height: 40px;
    stroke: var(--accent);
}

.feature-title {
    font-size: 20px;
    font-weight: 600;
    margin-bottom: 12px;
    color: var(--accent);
}

.feature-description {
    font-size: 15px;
    color: var(--text-dim);
    line-height: 1.6;
}

svg {
    width: 48px;
    height: 48px;
    stroke: var(--text-dim);
}

/* How It Works */
.how-it-works {
    padding: 100px 24px;
    width: 100%;
}


/* Carousel Container */
.carousel-container {
    position: relative;
    width: 100%;
    max-width: 1200px;
    margin: 60px auto 0;
    padding: 0 60px;
}

/* Slides Container */
.carousel-slides {
    position: relative;
    width: 100%;
    height: 550px;
    overflow: hidden;
}

/* Individual Slide */
.carousel-slide {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    opacity: 0;
    visibility: hidden;
    transition: opacity 0.5s ease, visibility 0.5s ease;
    text-align: center;
    padding: 40px 20px;
    overflow-y: hidden;
    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: center;
}

.carousel-slide.active {
    opacity: 1;
    visibility: visible;
}

/* Step styling inside slides */
.carousel-slide .step-number {
    width: 60px;
    height: 60px;
    border-radius: 50%;
    background: var(--accent);
    color: var(--bg-dark);
    font-size: 24px;
    font-weight: 700;
    display: flex;
    align-items: center;
    justify-content: center;
    margin: 0 auto 24px;
    font-family: 'Space Mono', monospace;
}

.carousel-slide .step-title {
    font-size: 22px;
    font-weight: 600;
    margin-bottom: 12px;
    color: var(--text);
}

.carousel-slide .step-description {
    font-size: 15px;
    color: var(--text-dim);
    line-height: 1.6;
    margin-bottom: 32px;
}

/* Slide content (images, terminal, schema) */
.carousel-slide img {
    max-width: 100%;
    max-height: 400px;
    border-radius: 8px;
    border: 1px solid var(--border);
    margin-top: 24px;
}

.carousel-slide .terminal {
    margin-top: 32px;
}

/* Navigation Arrows */
.carousel-arrow {
    position: absolute;
    top: 50%;
    transform: translateY(-50%);
    background: var(--bg-card);
    border: 1px solid var(--border);
    border-radius: 50%;
    width: 48px;
    height: 48px;
    display: flex;
    align-items: center;
    justify-content: center;
    cursor: pointer;
    transition: all 0.3s ease;
    z-index: 10;
}

.carousel-arrow:hover {
    background: var(--accent);
    border-color: var(--accent);
    transform: translateY(-50%) scale(1.1);
}

.carousel-arrow:disabled {
    opacity: 0.3;
    cursor: not-allowed;
}

.carousel-arrow-left {
    left: 0;
}

.carousel-arrow-right {
    right: 0;
}

.carousel-arrow svg {
    width: 24px;
    height: 24px;
    stroke: var(--text);
}

.carousel-arrow:hover svg {
    stroke: var(--bg-dark);
}

/* Dot Navigation */
.carousel-dots {
    display: flex;
    justify-content: center;
    gap: 12px;
    margin-top: 40px;
}

.carousel-dot {
    width: 12px;
    height: 12px;
    border-radius: 50%;
    background: var(--border);
    border: none;
    cursor: pointer;
    transition: all 0.3s ease;
}

.carousel-dot:hover {
    background: var(--text-dim);
    transform: scale(1.2);
}

.carousel-dot.active {
    background: rgba(255, 255, 255, 0.15);
    width: 32px;
    border-radius: 6px;
    position: relative;
    overflow: hidden;
}

.carousel-dot.active::after {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    height: 100%;
    width: 0;
    background: var(--accent);
    border-radius: 6px;
    animation: dot-fill 5s linear forwards;
}

@keyframes dot-fill {
    from { width: 0; }
    to { width: 100%; }
}

.carousel-container:hover .carousel-dot.active::after {
    animation-play-state: paused;
}

/* Schema Transformation */
.schema-transformation {
    display: flex;
    flex-direction: column;
    gap: 24px;
    margin-top: 32px;
    max-width: 800px;
    margin-left: auto;
    margin-right: auto;
}

.transformation-row {
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 20px;
}

.airtable-table,
.postgres-table {
    background: var(--bg-card);
    border: 1px solid var(--border);
    border-radius: 8px;
    padding: 16px 20px;
    min-width: 200px;
    flex: 1;
    max-width: 300px;
}

.airtable-table {
    border-color: #ffb84d;
}

.postgres-table {
    border-color: var(--accent);
}

.airtable-table .table-name {
    font-family: 'Space Mono', monospace;
    font-size: 16px;
    font-weight: 700;
    color: #ffb84d;
    margin-bottom: 8px;
}

.postgres-table .table-name {
    font-family: 'Space Mono', monospace;
    font-size: 16px;
    font-weight: 700;
    color: var(--accent);
    margin-bottom: 8px;
}

.table-fields {
    font-family: 'Space Mono', monospace;
    font-size: 13px;
    color: var(--text-dim);
    line-height: 1.5;
}

.transformation-arrow {
    font-size: 24px;
    color: var(--text-dim);
    font-weight: 700;
    flex-shrink: 0;
}

/* CTA Section */
.cta {
    padding: 100px 24px;
    background: rgba(18, 18, 26, 0.5);
    text-align: center;
    width: 100%;
}


.cta-title {
    font-size: 42px;
    font-weight: 700;
    margin-bottom: 16px;
    color: var(--text);
    letter-spacing: -1px;
}

.cta-subtitle {
    font-size: 18px;
    color: var(--text-dim);
    margin-bottom: 40px;
}

/* Footer */

.landing-footer {
    padding: 40px 24px;
    border-top: 1px solid var(--border);
    display: flex;
    justify-content: space-between;
    align-items: center;
    width: 100%;
}

.footer-logo {
    font-family: 'Space Mono', monospace;
    font-size: 18px;
    font-weight: 700;
    color: var(--text);
}

.footer-links {
    display: flex;
    gap: 32px;
}

.footer-link {
    color: var(--text-dim);
    text-decoration: none;
    font-size: 14px;
    transition: color 0.2s ease;
}

.footer-link:hover {
    color: var(--accent);
}

/* Terminal Component */
.terminal {
    background: #000000;
    border-radius: 8px;
    overflow: hidden;
    font-family: 'Space Mono', monospace;
    font-size: 14px;
    line-height: 1.5;
    max-width: 800px;
    margin: 0 auto;
    box-shadow: 0 4px 12px rgba(0, 0, 0, 0.3);
    text-align: left;
}

.terminal-header {
    background: #1a1a1a;
    padding: 12px 16px;
    border-bottom: 1px solid #333;
    display: flex;
    align-items: center;
    gap: 8px;
}

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

.terminal-dot {
    width: 12px;
    height: 12px;
    border-radius: 50%;
    background: #333;
}

.terminal-body {
    padding: 20px;
    color: #ffffff;
}

.terminal-command {
    color: #ffffff;
    margin: 0 0 12px 0;
    word-wrap: break-word;
    overflow-wrap: break-word;
}

.terminal-prompt {
    color: #888;
    user-select: none;
}

.terminal-output {
    color: #ffffff;
    white-space: pre;
    overflow-x: auto;
    margin-top: 8px;
}

/* Responsive */
@media (max-width: 768px) {
    .hero-title {
        font-size: 36px;
    }

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

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

    .feature-card {
        width: 280px;
    }

    .features-track {
        animation-duration: 30s;
    }

    .carousel-container {
        padding: 0 48px;
    }

    .carousel-arrow {
        width: 36px;
        height: 36px;
    }

    .carousel-arrow svg {
        width: 18px;
        height: 18px;
    }

    .carousel-slides {
        height: 650px;
    }

    .schema-transformation {
        gap: 20px;
    }

    .transformation-row {
        flex-direction: column;
        gap: 12px;
    }

    .airtable-table,
    .postgres-table {
        max-width: 100%;
        width: 100%;
    }

    .transformation-arrow {
        transform: rotate(90deg);
        font-size: 20px;
    }

    .header-content {
        flex-direction: column;
        gap: 16px;
    }

    .landing-footer {
        flex-direction: column;
        gap: 24px;
        text-align: center;
    }

    .hero-actions {
        flex-direction: column;
    }

    .btn-large {
        width: 100%;
    }

    .terminal {
        font-size: 12px;
    }

    .terminal-body {
        padding: 16px;
    }

    .terminal-output {
        font-size: 11px;
    }
}
