/* index.css — homepage-only styles (index.html / index-en.html).
   Pairs with shared.css, which holds the common chrome (variables, reset,
   typography, header/nav, announcement banner, footer, feature cards,
   step number). Edit this file to restyle the homepage without affecting
   any other page. */

/* Main Layout */
main {
    padding: 0 1.5rem;
}

/* Hero Section */
.hero {
    max-width: 1100px;
    margin: 5rem auto 8rem;
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 2rem;
    align-items: center;
}

.hero-content p:not(.install-note) {
    font-size: 1.25rem;
    color: var(--text-muted);
    margin-bottom: 2.5rem;
    max-width: 540px;
}

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

.cta-button {
    display: inline-flex;
    align-items: center;
    padding: 0.75rem 1.5rem;
    border-radius: 16px;
    font-weight: 600;
    transition: all 0.2s;
}

.cta-button.primary {
    background: var(--primary-color);
    color: white;
    box-shadow: 0 4px 14px 0 rgba(79, 70, 229, 0.39);
}

.cta-button.primary:hover {
    background: var(--primary-hover);
    box-shadow: 0 6px 20px 0 rgba(79, 70, 229, 0.23);
}

.cta-button.secondary {
    background: var(--bg-secondary);
    color: var(--text-main);
    border: 1px solid var(--border-color);
}

.cta-button.secondary:hover {
    border-color: var(--primary-color);
    color: var(--primary-color);
}

.install-note {
    font-size: 1.0rem;
    color: var(--accent-color);
    display: inline-flex;
    align-items: center;
    gap: 0.4rem;
    background: rgba(245, 158, 11, 0.1);
    padding: 0.4rem 0.8rem;
    border-radius: 16px;
    border: 1px solid rgba(245, 158, 11, 0.2);
}

.install-note svg {
    width: 18px;
    height: 18px;
    flex-shrink: 0;
}

.product-hunt-badge {
    margin-top: 1.5rem;
    display: inline-block;
}

.product-hunt-badge img {
    border-radius: 8px;
    transition: transform 0.2s;
}

.product-hunt-badge .ph-dark {
    display: none;
}

@media (prefers-color-scheme: dark) {
    .product-hunt-badge .ph-light {
        display: none;
    }

    .product-hunt-badge .ph-dark {
        display: inline-block;
    }
}

.product-hunt-badge:hover img {
    transform: scale(1.02);
}

.hero-image {
    position: relative;
}

.carousel {
    border-radius: 16px;
    overflow: hidden;
    box-shadow: var(--card-hover-shadow);
    border: 1px solid var(--border-color);
    background: var(--bg-secondary);
    position: relative;
    aspect-ratio: 16/10;
}

.carousel-container {
    display: flex;
    height: 100%;
    transition: transform 0.5s cubic-bezier(0.4, 0, 0.2, 1);
}

.carousel-slide {
    width: 100%;
    height: 100%;
    object-fit: cover;
    flex-shrink: 0;
}

.carousel-button {
    position: absolute;
    top: 50%;
    transform: translateY(-50%);
    background: rgba(255, 255, 255, 0.8);
    backdrop-filter: blur(4px);
    border: 1px solid rgba(0, 0, 0, 0.1);
    width: 40px;
    height: 40px;
    border-radius: 50%;
    cursor: pointer;
    display: flex;
    align-items: center;
    justify-content: center;
    color: var(--text-main);
    transition: all 0.2s;
}

.carousel-button:hover {
    background: white;
    transform: translateY(-50%);
}

.carousel-button.prev {
    left: 1rem;
}

.carousel-button.next {
    right: 1rem;
}

.carousel-dots {
    position: absolute;
    bottom: 1.5rem;
    left: 50%;
    transform: translateX(-50%);
    display: flex;
    gap: 0.5rem;
    padding: 0.5rem 1rem;
    background: rgba(0, 0, 0, 0.5);
    border-radius: 20px;
    backdrop-filter: blur(4px);
}

.dot {
    width: 8px;
    height: 8px;
    border-radius: 50%;
    background: rgba(255, 255, 255, 0.5);
    cursor: pointer;
    transition: all 0.2s;
}

.dot.active {
    background: white;
    transform: scale(1.2);
}

/* Features Section */
.answer-summary {
    max-width: 1100px;
    margin: 0 auto 8rem;
}

.answer-summary-content {
    background: var(--bg-secondary);
    border: 1px solid var(--border-color);
    border-radius: 16px;
    padding: 2.5rem;
    box-shadow: var(--card-shadow);
}

.answer-summary h2 {
    text-align: left;
    margin-bottom: 1rem;
}

.answer-summary p {
    color: var(--text-muted);
}

.summary-list {
    display: grid;
    grid-template-columns: repeat(3, 1fr);
    gap: 1.5rem;
    margin-top: 1.5rem;
}

.summary-list h3 {
    font-size: 1rem;
    margin-bottom: 0.5rem;
}

.summary-list p {
    font-size: 0.95rem;
    margin-bottom: 0;
}

.features {
    max-width: 1100px;
    margin: 0 auto 8rem;
}

.feature-icon {
    width: 56px;
    height: 56px;
    padding: 12px;
    background: rgba(79, 70, 229, 0.1);
    border-radius: 12px;
    color: var(--primary-color);
    margin-bottom: 1.5rem;
    stroke-width: 1.5;
    fill: none;
    stroke: currentColor;
}

/* Install Section */
.install {
    max-width: 1100px;
    margin: 0 auto 8rem;
    text-align: center;
}

.install-steps {
    display: flex;
    justify-content: center;
    gap: 2rem;
    flex-wrap: wrap;
}

.step {
    flex: 1;
    min-width: 280px;
    background: var(--bg-secondary);
    padding: 2rem;
    border-radius: 16px;
    border: 1px solid var(--border-color);
    position: relative;
}

/* Compatibility Section */
.compatibility {
    margin-bottom: 8rem;
}

.table-container {
    max-width: 1000px;
    margin: 0 auto;
    background: var(--bg-secondary);
    border-radius: 16px;
    border: 1px solid var(--border-color);
    overflow: hidden;
    box-shadow: var(--card-shadow);
}

.compatibility-table {
    width: 100%;
    border-collapse: collapse;
}

.compatibility-table th {
    background: rgba(79, 70, 229, 0.05);
    padding: 1.0rem;
    font-weight: 600;
    text-align: center;
    color: var(--text-main);
}

.compatibility-table td {
    padding: 1rem;
    border-top: 1px solid var(--border-color);
    text-align: center;
    color: var(--text-muted);
}

.compatibility-table tr:hover td {
    background: rgba(0, 0, 0, 0.01);
}

.compatibility-table td:first-child {
    text-align: left;
    padding-left: 2rem;
    font-weight: 600;
    color: var(--text-main);
}

/* Status Badges */
.supported,
.not-supported,
.partial {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    padding: 0.25rem 0.75rem;
    border-radius: 9999px;
    font-size: 0.85rem;
    font-weight: 600;
}

.supported {
    background: rgba(16, 185, 129, 0.1);
    color: var(--secondary-color);
}

.not-supported {
    background: rgba(239, 68, 68, 0.1);
    color: #EF4444;
}

.partial {
    background: rgba(245, 158, 11, 0.1);
    color: var(--accent-color);
}

.compatibility-note {
    text-align: center;
    margin-top: 2rem;
    color: var(--text-muted);
    font-size: 0.9rem;
    background: rgba(79, 70, 229, 0.05);
    padding: 1rem;
    border-radius: 8px;
    display: inline-block;
    left: 50%;
    position: relative;
    transform: translateX(-50%);
}

/* Usage / Demo */
.usage {
    text-align: center;
    margin-bottom: 8rem;
}

.demo-video {
    max-width: 1000px;
    margin: 0 auto;
    border-radius: 16px;
    overflow: hidden;
    box-shadow: var(--card-hover-shadow);
    background: black;
    border: 4px solid var(--bg-secondary);
}

.video-container {
    position: relative;
    padding-top: 56.25%;
    /* 16:9 Aspect Ratio */
    height: 0;
}

.video-container iframe {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
}

/* FAQ */
.faq {
    max-width: 900px;
    margin: 0 auto 8rem;
}

.faq-list {
    display: grid;
    gap: 1rem;
}

.faq-list details {
    background: var(--bg-secondary);
    border: 1px solid var(--border-color);
    border-radius: 12px;
    padding: 1rem 1.25rem;
    box-shadow: var(--card-shadow);
}

.faq-list summary {
    cursor: pointer;
    font-weight: 700;
    color: var(--text-main);
}

.faq-list p {
    color: var(--text-muted);
    margin: 0.75rem 0 0;
}

/* Responsive */
@media (max-width: 768px) {
    .hero {
        grid-template-columns: 1fr;
        text-align: center;
        margin-top: 2rem;
        gap: 3rem;
    }

    .hero-content p {
        margin-left: auto;
        margin-right: auto;
    }

    .cta-buttons {
        justify-content: center;
    }

    .install-steps {
        flex-direction: column;
    }

    .answer-summary-content {
        padding: 1.5rem;
    }

    .answer-summary h2 {
        text-align: center;
    }

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

    .compatibility-table {
        display: block;
        overflow-x: auto;
    }

    .compatibility-table td,
    .compatibility-table th {
        white-space: nowrap;
        padding: 0.75rem;
    }
}
