/**
 * Home Page Styles
 *
 * @package Velarium
 */

/* Hero Section */
.hero {
    min-height: 100vh;
    display: flex;
    align-items: center;
    padding: 8rem 2rem 6rem;
    position: relative;
}

.hero-inner {
    max-width: 1200px;
    margin: 0 auto;
    width: 100%;
}

.hero-label {
    display: inline-flex;
    align-items: center;
    gap: 0.5rem;
    font-family: 'IBM Plex Mono', monospace;
    font-size: 0.75rem;
    letter-spacing: 0.08em;
    text-transform: uppercase;
    color: var(--text-muted);
    margin-bottom: 2rem;
    padding: 0.5rem 1rem;
    background: var(--bg-tertiary);
    border: 1px solid var(--border);
    border-radius: 100px;
    animation: fadeIn 0.8s ease both;
}

.hero-label::before {
    content: '';
    width: 6px;
    height: 6px;
    background: var(--accent);
    border-radius: 50%;
    animation: pulse 2s infinite;
}

.hero h1 {
    font-size: clamp(2.5rem, 6vw, 4.5rem);
    font-weight: 400;
    color: var(--text-primary);
    line-height: 1.1;
    letter-spacing: -0.03em;
    max-width: 900px;
    margin-bottom: 2rem;
    animation: fadeInUp 0.8s ease 0.1s both;
}

.hero h1 span {
    color: var(--text-muted);
}

.hero-description {
    font-size: 1.125rem;
    line-height: 1.8;
    max-width: 680px;
    margin-bottom: 3rem;
    animation: fadeInUp 0.8s ease 0.2s both;
}

.hero-description p {
    margin-bottom: 1.25rem;
}

.hero-description p:last-child {
    margin-bottom: 0;
}

.cta-group {
    display: flex;
    gap: 1rem;
    animation: fadeInUp 0.8s ease 0.3s both;
}

/* Audience Section */
.audience {
    background: var(--bg-secondary);
    border-top: 1px solid var(--border);
    border-bottom: 1px solid var(--border);
    padding: 6rem 2rem;
}

.audience-grid {
    display: grid;
    grid-template-columns: repeat(2, 1fr);
    gap: 2px;
    background: var(--border);
    border: 1px solid var(--border);
    border-radius: 12px;
    overflow: hidden;
}

.audience-card {
    background: var(--bg-secondary);
    padding: 2.5rem;
    position: relative;
    transition: background 0.2s ease;
}

.audience-card:hover {
    background: var(--bg-tertiary);
}

.audience-card h3 {
    font-size: 1.125rem;
    font-weight: 500;
    color: var(--text-primary);
    margin-bottom: 1rem;
    letter-spacing: -0.01em;
}

.audience-card p {
    font-size: 0.95rem;
    line-height: 1.7;
}

/* Features Section */
.features {
    background: var(--bg-primary);
    padding: 6rem 2rem;
}

.features-intro {
    font-size: 1.125rem;
    line-height: 1.8;
    max-width: 720px;
    margin-bottom: 4rem;
    padding-bottom: 4rem;
    border-bottom: 1px solid var(--border);
}

.features-grid {
    display: grid;
    grid-template-columns: repeat(3, 1fr);
    gap: 1px;
    background: var(--border);
    border: 1px solid var(--border);
    border-radius: 12px;
    overflow: hidden;
}

.feature-card {
    background: var(--bg-primary);
    padding: 2rem;
    position: relative;
    transition: background 0.2s ease;
}

.feature-card:hover {
    background: var(--bg-tertiary);
}

.feature-icon {
    width: 40px;
    height: 40px;
    border: 1px solid var(--border-accent);
    border-radius: 8px;
    display: flex;
    align-items: center;
    justify-content: center;
    margin-bottom: 1.5rem;
    background: var(--accent-dim);
}

.feature-icon svg {
    width: 20px;
    height: 20px;
    stroke: var(--accent);
    fill: none;
    stroke-width: 1.5;
}

.feature-card h3 {
    font-size: 1rem;
    font-weight: 500;
    color: var(--text-primary);
    margin-bottom: 0.75rem;
    letter-spacing: -0.01em;
    line-height: 1.4;
}

.feature-card p {
    font-size: 0.875rem;
    line-height: 1.7;
    color: var(--text-muted);
}

/* How it Works Section */
.how-it-works {
    background: var(--bg-secondary);
    border-top: 1px solid var(--border);
    padding: 6rem 2rem;
}

.steps {
    display: flex;
    flex-direction: column;
    gap: 5rem;
}

.step {
    display: flex;
    align-items: center;
    gap: 3rem;
    position: relative;
}

.step:nth-child(even) {
    flex-direction: row-reverse;
}

.step-text {
    flex: 1;
    min-width: 0;
}

.step-image {
    flex-shrink: 0;
    width: 100%;
    max-width: 350px;
    aspect-ratio: 4 / 3;
    background: linear-gradient(135deg, var(--bg-tertiary) 0%, rgba(74, 158, 255, 0.03) 100%);
    border: 1px dashed var(--border-accent);
    border-radius: 12px;
    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: center;
    gap: 0.75rem;
    color: var(--text-muted);
    font-size: 0.8rem;
    font-family: 'IBM Plex Mono', monospace;
}

.step-number {
    font-family: 'IBM Plex Mono', monospace;
    font-size: 0.75rem;
    color: var(--accent);
    letter-spacing: 0.05em;
    margin-bottom: 0.75rem;
}

.step-content h3 {
    font-size: 1.25rem;
    font-weight: 500;
    color: var(--text-primary);
    margin-bottom: 0.75rem;
    letter-spacing: -0.01em;
}

.step-content p {
    font-size: 0.95rem;
    line-height: 1.7;
}

/* Architecture Diagram */
.architecture-visual {
    margin-top: 4rem;
    padding: 3rem;
    background: linear-gradient(135deg, rgba(74, 158, 255, 0.04) 0%, var(--bg-primary) 40%, rgba(74, 158, 255, 0.04) 100%);
    border: 1px solid var(--border-accent);
    border-radius: 16px;
    position: relative;
    overflow: hidden;
}

.architecture-visual::before {
    content: '';
    position: absolute;
    top: -1px;
    left: 20%;
    right: 20%;
    height: 2px;
    background: linear-gradient(90deg, transparent, var(--accent), transparent);
}

.arch-diagram {
    display: flex;
    flex-direction: column;
    gap: 0;
    max-width: 700px;
    margin: 0 auto;
}

.arch-layer {
    border: 1px solid var(--border);
    padding: 1.25rem 1.75rem;
    text-align: center;
    font-size: 0.85rem;
    font-family: 'IBM Plex Mono', monospace;
    color: var(--text-secondary);
    position: relative;
    transition: all 0.3s ease;
    border-radius: 10px;
    background: var(--bg-tertiary);
}

.arch-layer:hover {
    border-color: rgba(255, 255, 255, 0.15);
    background: rgba(255, 255, 255, 0.04);
}

.arch-layer.highlight {
    border-color: var(--accent);
    background: linear-gradient(135deg, rgba(74, 158, 255, 0.15) 0%, rgba(74, 158, 255, 0.05) 100%);
    color: var(--text-primary);
    font-weight: 500;
    padding: 1.5rem 1.75rem;
    box-shadow: 0 0 30px rgba(74, 158, 255, 0.1), inset 0 1px 0 rgba(74, 158, 255, 0.2);
}

.arch-connector {
    width: 2px;
    height: 1.5rem;
    margin: 0 auto;
    position: relative;
    background: linear-gradient(to bottom, var(--border-accent), var(--accent), var(--border-accent));
}

/* Responsive */
@media (max-width: 1024px) {
    .features-grid {
        grid-template-columns: repeat(2, 1fr);
    }

    .step-image {
        max-width: 280px;
    }
}

@media (max-width: 768px) {
    .hero {
        padding: 7rem 1.5rem 4rem;
        min-height: auto;
    }

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

    .hero-description {
        font-size: 1rem;
    }

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

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

    .step {
        flex-direction: column !important;
        gap: 1.5rem;
    }

    .step-image {
        max-width: 100%;
    }

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

    .btn {
        justify-content: center;
    }

    .feature-card,
    .audience-card {
        padding: 1.5rem;
    }
}
