/* Hero */
.hero {
    min-height: 85vh;
    display: flex;
    align-items: center;
    position: relative;
    overflow: hidden;
    padding-top: 5rem;
}

.hero__bg {
    position: absolute;
    inset: 0;
    opacity: 0.3;
    z-index: 0;
    background: url('/imgs/hero-network.webp') center/cover no-repeat;
}

.hero__overlay {
    position: absolute;
    inset: 0;
    background: linear-gradient(to bottom, rgba(255,255,255,0.8), rgba(255,255,255,0.6), var(--background));
    z-index: 1;
}

.hero__inner {
    max-width: 48rem;
}

.hero__badge {
    display: inline-flex;
    align-items: center;
    gap: 0.5rem;
    background: var(--secondary);
    border-radius: 9999px;
    padding: 0.375rem 1rem;
    margin-bottom: 1.5rem;
}

.hero__badge-dot {
    width: 0.5rem;
    height: 0.5rem;
    border-radius: 50%;
    background: var(--primary);
}

.hero__badge-text {
    font-size: 0.75rem;
    font-weight: 500;
    color: var(--muted-foreground);
}

.hero h1 {
    font-size: 3rem;
    font-weight: 700;
    line-height: 1.1;
    margin: 0 0 1.5rem;
    max-width: 48rem;
}

.hero__sub {
    font-size: 1.125rem;
    color: var(--muted-foreground);
    max-width: 32rem;
    line-height: 1.7;
    margin: 0 0 2rem;
}

.hero__buttons {
    display: flex;
    flex-direction: column;
    gap: 1rem;
}

@media (min-width: 640px) {
    .hero__buttons {
        flex-direction: row;
    }
}

@media (min-width: 768px) {
    .hero h1 {
        font-size: 4.5rem;
    }

    .hero__sub {
        font-size: 1.25rem;
    }
}

/* SVG animation (hero bg) */
.network-arc {
    stroke-dasharray: 8 4;
    animation: dash 2s linear infinite;
}
.network-dot--pulse {
    animation: pulse-glow 3s ease-in-out infinite;
}
@keyframes dash {
    to { stroke-dashoffset: 0; }
}

/* Community cards */
.community-grid {
    display: grid;
    gap: 1.25rem;
}

@media (min-width: 768px) {
    .community-grid {
        grid-template-columns: repeat(3, 1fr);
    }
}

/* Timeline / How it works */
.timeline {
    max-width: 48rem;
    margin: 2.5rem auto 0;
    display: flex;
    flex-direction: column;
}

.timeline__item {
    display: flex;
    gap: 1.25rem;
}

.timeline__marker {
    display: flex;
    flex-direction: column;
    align-items: center;
    flex-shrink: 0;
}

.timeline__dot {
    width: 3rem;
    height: 3rem;
    border-radius: 50%;
    background: var(--gradient-primary);
    display: flex;
    align-items: center;
    justify-content: center;
    color: var(--primary-foreground);
    font-weight: 700;
    font-size: 0.875rem;
    flex-shrink: 0;
    box-shadow: 0 2px 8px rgba(14,165,233,0.25);
}

.timeline__line {
    width: 1px;
    flex: 1;
    background: var(--border);
    margin: 0.25rem 0;
}

.timeline__item:last-child .timeline__line {
    display: none;
}

.timeline__body {
    padding-bottom: 2rem;
}

.timeline__item:last-child .timeline__body {
    padding-bottom: 0;
}

.timeline__title-row {
    display: flex;
    align-items: center;
    gap: 0.5rem;
    margin-bottom: 0.25rem;
}

.timeline__title-row .icon {
    width: 1rem;
    height: 1rem;
    color: var(--primary);
}

.timeline__title {
    font-size: 1.125rem;
    font-weight: 600;
    margin: 0;
}

.timeline__desc {
    font-size: 0.875rem;
    color: var(--muted-foreground);
    line-height: 1.6;
    margin: 0;
}

/* Platform grid */
.platform-grid {
    display: grid;
    gap: 1rem;
    max-width: 64rem;
}

@media (min-width: 640px) {
    .platform-grid {
        grid-template-columns: repeat(2, 1fr);
    }
}

@media (min-width: 1024px) {
    .platform-grid {
        grid-template-columns: repeat(3, 1fr);
    }
}

.platform-card {
    display: flex;
    align-items: flex-start;
    gap: 0.75rem;
}

.platform-card__icon {
    width: 2.5rem;
    height: 2.5rem;
    border-radius: 0.75rem;
    display: flex;
    align-items: center;
    justify-content: center;
    flex-shrink: 0;
}

.platform-card__icon .icon {
    width: 1.25rem;
    height: 1.25rem;
}

.bg-gradient-primary .icon {
    color: var(--primary-foreground);
}

/* CTA */
.cta-card {
    border-radius: 1.5rem;
    background: var(--gradient-primary);
    padding: 3rem;
    text-align: center;
    max-width: 48rem;
    margin: 0 auto;
    box-shadow: 0 8px 30px rgba(14,165,233,0.25);
}

.cta-card h2 {
    font-size: 1.875rem;
    font-weight: 700;
    color: var(--primary-foreground);
    margin: 0 0 1rem;
}

.cta-card p {
    color: rgba(255,255,255,0.8);
    font-size: 1.125rem;
    margin: 0 0 2rem;
    max-width: 32rem;
    margin-left: auto;
    margin-right: auto;
    line-height: 1.7;
}

@media (min-width: 768px) {
    .cta-card {
        padding: 4rem;
    }

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