/* ========== PAGE: HOME (BASE44-LEVEL POLISH - Phase 4.2a) ========== */

/* Typography Override (Inter) */
body {
    font-family: var(--font-sans);
}

/* Home Sections - Standardized Rhythm */
.home-section {
    padding: var(--space-12) 0;
    position: relative;
}

@media (max-width: 1024px) {
    .home-section {
        padding: var(--space-8) 0;
    }
}

@media (max-width: 768px) {
    .home-section {
        padding: var(--space-6) 0;
    }
}

.section-alt {
    background: rgba(15, 18, 21, 0.4);
    border-top: 1px solid var(--c-border);
    border-bottom: 1px solid var(--c-border);
}

.section-container {
    max-width: 1280px;
    margin: 0 auto;
    padding: 0 var(--space-5);
}

.section-container-narrow {
    max-width: 800px;
    margin: 0 auto;
    padding: 0 var(--space-5);
}

.home-section h2 {
    color: var(--c-accent);
    font-size: var(--text-3xl);
    font-weight: 700;
    margin-bottom: var(--space-8);
    text-align: center;
    line-height: 1.2;
    letter-spacing: -0.02em;
}

@media (max-width: 768px) {
    .home-section h2 {
        font-size: 2rem;
        margin-bottom: var(--space-6);
    }
}

/* Hero Enhancements */
.hero {
    background-image: url('/assets/backgrounds/home-bg.jpg');
    background-size: cover;
    background-position: center;
    min-height: 90vh;
    /* Taller hero */
    display: flex;
    align-items: center;
    justify-content: center;
    padding: var(--space-8) 0;
    position: relative;
    overflow: hidden;
}

.hero::before {
    content: "";
    position: absolute;
    inset: 0;
    background: linear-gradient(to bottom, rgba(15, 18, 21, 0.3) 0%, rgba(15, 18, 21, 0.6) 50%, var(--c-bg) 100%);
    pointer-events: none;
    z-index: 1;
}

.hero::after {
    content: "";
    position: absolute;
    inset: 0;
    background: radial-gradient(circle at center, rgba(0, 0, 0, 0) 30%, rgba(0, 0, 0, 0.6) 100%);
    pointer-events: none;
    z-index: 1;
}

.hero-video {
    position: absolute;
    top: 50%;
    left: 50%;
    transform: translate(-50%, -50%) scale(1.02);
    min-width: 100%;
    min-height: 100%;
    width: auto;
    height: auto;
    z-index: 0;
    object-fit: cover;
    filter: brightness(0.65) contrast(1.1) saturate(0.9);
}

.hero-content {
    max-width: 1000px;
    position: relative;
    z-index: 2;
}

.hero-headline {
    font-size: clamp(2.5rem, 5vw, 4.5rem);
    /* Responsive fluid type */
    font-weight: 800;
    line-height: 1.1;
    letter-spacing: -0.03em;
    margin-bottom: var(--space-4);
    color: #fff;
    text-shadow: 0 4px 20px rgba(0, 0, 0, 0.5);
}

.hero-subheadline {
    font-size: clamp(1.1rem, 2vw, 1.4rem);
    font-weight: 400;
    line-height: 1.6;
    opacity: 0.9;
    margin-bottom: var(--space-8);
    max-width: 680px;
    margin-left: auto;
    margin-right: auto;
    color: rgba(255, 255, 255, 0.9);
}

.hero-cta {
    display: flex;
    gap: var(--space-4);
    flex-wrap: wrap;
    justify-content: center;
}

@media (max-width: 768px) {
    .hero-cta {
        flex-direction: column;
        width: 100%;
        padding: 0 var(--space-4);
    }

    .hero-cta .btn {
        width: 100%;
    }
}

/* Quick-Start Section (Cards) */
.quick-start-section {
    padding-top: var(--space-8);
    padding-bottom: var(--space-8);
    margin-top: -var(--space-8);
    /* Slight overlap or pull-up if clear */
    position: relative;
    z-index: 10;
}

.quick-start-grid {
    display: grid;
    grid-template-columns: repeat(2, 1fr);
    gap: var(--space-6);
    margin-bottom: var(--space-8);
}

@media (max-width: 768px) {
    .quick-start-grid {
        grid-template-columns: 1fr;
        gap: var(--space-4);
    }
}

.quick-start-card {
    background: rgba(42, 46, 51, 0.7);
    padding: var(--space-8) var(--space-6);
    border-radius: var(--r-xl);
    border: 1px solid var(--c-border);
    text-align: center;
    backdrop-filter: blur(10px);
    transition: transform var(--t-med), border-color var(--t-fast);
}

.quick-start-card:hover {
    border-color: rgba(245, 166, 35, 0.3);
    transform: translateY(-4px);
    background: rgba(42, 46, 51, 0.85);
}

.quick-start-card h3 {
    color: var(--c-text);
    font-size: 1.5rem;
    font-weight: 600;
    margin-bottom: var(--space-3);
    line-height: 1.3;
}

.quick-start-card p {
    color: var(--c-text-muted);
    font-size: var(--text-base);
    line-height: 1.6;
    margin-bottom: var(--space-6);
}

.quick-cta-group {
    display: flex;
    gap: var(--space-3);
    justify-content: center;
}

@media (max-width: 768px) {
    .quick-cta-group {
        flex-direction: column;
    }
}

/* Preset Chips */
.preset-chips {
    text-align: center;
    padding: var(--space-6) 0;
}

.preset-label {
    color: var(--c-text-muted);
    font-size: var(--text-sm);
    margin-bottom: var(--space-4);
    text-transform: uppercase;
    letter-spacing: 0.05em;
}

.chip-row {
    display: flex;
    gap: var(--space-3);
    justify-content: center;
    flex-wrap: wrap;
}

.preset-chip {
    display: inline-flex;
    padding: var(--space-2) var(--space-4);
    background: rgba(255, 255, 255, 0.05);
    color: var(--c-text);
    font-size: var(--text-sm);
    font-weight: 500;
    border: 1px solid var(--c-border);
    border-radius: var(--r-full);
    text-decoration: none;
    transition: all var(--t-fast);
}

.preset-chip:hover {
    background: rgba(255, 255, 255, 0.1);
    border-color: var(--c-accent);
    color: var(--c-accent);
    transform: translateY(-2px);
}

/* Social Proof Band */
.social-proof-band {
    padding: var(--space-5) 0;
    border-top: 1px solid var(--c-border);
    border-bottom: 1px solid var(--c-border);
    background: rgba(0, 0, 0, 0.2);
}

.proof-text {
    text-align: center;
    color: var(--c-text-muted);
    font-size: var(--text-sm);
    font-weight: 500;
    margin: 0;
    letter-spacing: 0.02em;
}

/* Featured Tools Grid */
.featured-grid {
    display: grid;
    grid-template-columns: repeat(auto-fill, minmax(300px, 1fr));
    gap: var(--space-6);
    margin-top: var(--space-6);
}

.featured-card {
    background: var(--c-surface);
    padding: var(--space-6);
    border-radius: var(--r-lg);
    border: 1px solid var(--c-border);
    border-left: 3px solid var(--c-accent);
    /* Keep brand accent */
    text-align: left;
    /* Changed from center for better scanability */
    transition: all var(--t-med);
    display: flex;
    flex-direction: column;
    height: 100%;
}

.featured-card:hover {
    background: var(--c-surface-hover);
    transform: translateY(-4px);
    box-shadow: var(--shadow-2);
    border-color: rgba(255, 255, 255, 0.1);
}

.featured-card h3 {
    margin: 0 0 var(--space-2) 0;
    font-size: var(--text-lg);
    font-weight: 600;
}

.featured-card h3 a {
    color: var(--c-accent);
    text-decoration: none;
}

.featured-card h3 a:hover {
    text-decoration: underline;
}

.featured-domain {
    color: var(--c-text-muted);
    font-size: var(--text-xs);
    margin-bottom: var(--space-4);
    flex-grow: 1;
    /* Pushes button to bottom */
}

/* Category Chips (Section 5) */
.category-status {
    text-align: center;
    color: var(--c-text-muted);
    font-size: var(--text-sm);
    margin-bottom: var(--space-5);
}

.category-chips {
    display: flex;
    flex-wrap: wrap;
    gap: var(--space-3);
    justify-content: center;
    margin-bottom: var(--space-6);
    max-width: 900px;
    margin-left: auto;
    margin-right: auto;
}

.category-chip {
    display: inline-flex;
    padding: var(--space-3) var(--space-5);
    background: var(--c-surface);
    color: var(--c-text);
    border: 1px solid var(--c-border);
    border-radius: var(--r-full);
    text-decoration: none;
    font-size: var(--text-sm);
    font-weight: 500;
    transition: all var(--t-fast);
}

.category-chip:hover {
    border-color: var(--c-accent);
    color: var(--c-accent);
    background: rgba(255, 255, 255, 0.05);
    transform: translateY(-2px);
}

.browse-all-link {
    text-align: center;
    margin-top: var(--space-6);
}

.browse-all-link a {
    color: var(--c-accent);
    text-decoration: none;
    font-size: var(--text-base);
    font-weight: 600;
    display: inline-flex;
    align-items: center;
    gap: var(--space-2);
}

.browse-all-link a:hover {
    opacity: 0.8;
}

/* Feature Highlights */
.features-grid {
    display: grid;
    grid-template-columns: repeat(3, 1fr);
    gap: var(--space-8);
    margin-top: var(--space-6);
}

@media (max-width: 1024px) {
    .features-grid {
        grid-template-columns: 1fr;
        gap: var(--space-6);
    }
}

.feature-block {
    text-align: center;
    padding: var(--space-4);
}

.feature-icon {
    width: 64px;
    height: 64px;
    margin: 0 auto var(--space-5);
    background: rgba(245, 166, 35, 0.1);
    border: 1px solid rgba(245, 166, 35, 0.3);
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 24px;
    font-weight: 700;
    color: var(--c-accent);
    box-shadow: 0 0 15px rgba(245, 166, 35, 0.1);
}

.feature-block h3 {
    color: var(--c-text);
    font-size: 1.25rem;
    font-weight: 600;
    margin-bottom: var(--space-3);
}

.feature-block p {
    color: var(--c-text-muted);
    font-size: var(--text-base);
    line-height: 1.6;
    max-width: 300px;
    margin: 0 auto;
}

/* Use Cases */
.use-cases-grid {
    display: grid;
    grid-template-columns: repeat(3, 1fr);
    gap: var(--space-4);
    margin-top: var(--space-6);
}

@media (max-width: 768px) {
    .use-cases-grid {
        grid-template-columns: repeat(2, 1fr);
    }
}

@media (max-width: 480px) {
    .use-cases-grid {
        grid-template-columns: 1fr;
    }
}

.use-case-item {
    background: var(--c-surface);
    padding: var(--space-4);
    border-radius: var(--r-md);
    border: 1px solid var(--c-border);
    color: var(--c-text);
    font-size: var(--text-base);
    font-weight: 500;
    text-decoration: none;
    text-align: center;
    transition: all var(--t-fast);
}

.use-case-item:hover {
    background: var(--c-surface-hover);
    border-color: var(--c-accent);
    color: var(--c-accent);
    transform: translateY(-2px);
}

/* FAQ Accordion */
.faq-list {
    margin-top: var(--space-8);
    background: var(--c-surface);
    border-radius: var(--r-xl);
    border: 1px solid var(--c-border);
    overflow: hidden;
    /* Contains rounded corners */
}

.faq-item {
    border-bottom: 1px solid var(--c-border);
    padding: 0;
    margin: 0;
}

.faq-item:last-child {
    border-bottom: none;
}

.faq-item summary {
    color: var(--c-text);
    font-size: var(--text-lg);
    font-weight: 600;
    padding: var(--space-5);
    cursor: pointer;
    list-style: none;
    display: flex;
    justify-content: space-between;
    align-items: center;
    transition: background var(--t-fast);
}

.faq-item summary:hover {
    background: rgba(255, 255, 255, 0.02);
    color: var(--c-accent);
}

.faq-item summary::-webkit-details-marker {
    display: none;
}

.faq-item summary::after {
    content: '+';
    font-size: 24px;
    color: var(--c-accent);
    font-weight: 400;
    transition: transform var(--t-med);
    flex-shrink: 0;
    margin-left: var(--space-4);
}

.faq-item[open] summary::after {
    content: '−';
}

.faq-item p {
    color: var(--c-text-muted);
    font-size: var(--text-base);
    line-height: 1.7;
    margin: 0;
    padding: 0 var(--space-5) var(--space-5) var(--space-5);
    max-width: 100%;
}

.faq-item a {
    color: var(--c-accent);
    text-decoration: none;
}

.faq-item a:hover {
    text-decoration: underline;
}

/* Final CTA */
.final-cta {
    padding: var(--space-12) 0;
    text-align: center;
}

.final-cta h2 {
    font-size: 3rem;
    margin-bottom: var(--space-6);
    color: var(--c-text);
}

@media (max-width: 768px) {
    .final-cta h2 {
        font-size: 2rem;
    }
}

.cta-buttons {
    display: flex;
    gap: var(--space-5);
    justify-content: center;
    flex-wrap: wrap;
}