/* Page: Front Page (front-page.php) */

.container--narrow {
    max-width: 900px;
}

@keyframes slideIn {
    from {
        opacity: 0;
        transform: translateX(-20px);
    }
    to {
        opacity: 1;
        transform: translateX(0);
    }
}

@keyframes float {
    0%, 100% { transform: translateY(0); }
    50% { transform: translateY(-8px); }
}

@keyframes textRotateOut {
    0% {
        opacity: 1;
        transform: translateY(0) rotateX(0);
    }
    100% {
        opacity: 0;
        transform: translateY(-20px) rotateX(-90deg);
    }
}

@keyframes textRotateIn {
    0% {
        opacity: 0;
        transform: translateY(20px) rotateX(90deg);
    }
    100% {
        opacity: 1;
        transform: translateY(0) rotateX(0);
    }
}

.rotating-text {
    display: inline-block;
    position: relative;
}

.rotating-text__word {
    display: inline-block;
    transition: opacity 0.1s;
}

.rotating-text__word.out {
    animation: textRotateOut 0.4s ease-in forwards;
}

.rotating-text__word.in {
    animation: textRotateIn 0.4s ease-out forwards;
}

.delay-6 { animation-delay: 0.6s; }

/* ========== HERO ========== */
.hero {
    min-height: 100vh;
    display: flex;
    align-items: center;
    padding: 120px 0 var(--space-3xl);
    position: relative;
}

.hero__bg {
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    bottom: 0;
    overflow: hidden;
    z-index: -1;
}

.hero__bg::before {
    content: '';
    position: absolute;
    width: 800px;
    height: 800px;
    background: radial-gradient(circle, var(--accent-dim) 0%, transparent 70%);
    top: -200px;
    right: -200px;
    animation: pulse 8s ease-in-out infinite;
}

.hero__bg::after {
    content: '';
    position: absolute;
    width: 600px;
    height: 600px;
    background: radial-gradient(circle, rgba(0, 82, 255, 0.05) 0%, transparent 70%);
    bottom: -100px;
    left: -100px;
    animation: pulse 10s ease-in-out infinite;
    animation-delay: 2s;
}

.hero__content {
    max-width: 720px;
}

.hero__label {
    display: inline-flex;
    align-items: center;
    gap: 8px;
    padding: 8px 16px;
    background: var(--bg-secondary);
    border: 1px solid var(--border);
    border-radius: var(--radius-md);
    font-size: 13px;
    font-weight: 500;
    color: var(--text-secondary);
    margin-bottom: var(--space-lg);
}

.hero__label__dot {
    width: 6px;
    height: 6px;
    background: var(--accent-bright);
    border-radius: 50%;
    animation: pulse 2s ease-in-out infinite;
}

.hero__title {
    font-family: var(--font-display);
    font-size: clamp(48px, 8vw, 80px);
    font-weight: 400;
    line-height: 1.05;
    letter-spacing: -0.03em;
    margin-bottom: var(--space-lg);
}

.hero__title em {
    font-style: italic;
    color: var(--accent);
}

.hero__subtitle {
    font-size: 18px;
    color: var(--text-secondary);
    line-height: 1.7;
    max-width: 520px;
    margin-bottom: var(--space-xl);
}

.hero__actions {
    display: flex;
    align-items: center;
    gap: var(--space-md);
}

.hero__stats {
    display: flex;
    gap: var(--space-2xl);
    margin-top: var(--space-3xl);
    padding-top: var(--space-xl);
    border-top: 1px solid var(--border);
}

.stat {
    text-align: left;
}

.stat__value {
    font-family: var(--font-display);
    font-size: 42px;
    font-weight: 400;
    letter-spacing: -0.02em;
    line-height: 1;
}

.stat__value span {
    color: var(--accent);
}

.stat__label {
    font-size: 14px;
    color: var(--text-tertiary);
    margin-top: 8px;
}

/* ========== FINDER SECTION ========== */
.finder {
    padding: var(--space-3xl) 0;
}

.finder__card {
    background: var(--bg-secondary);
    border: 1px solid var(--border);
    border-radius: var(--radius-lg);
    padding: var(--space-2xl);
    box-shadow: var(--shadow-elevated);
    position: relative;
    overflow: hidden;
}

.finder__card::before {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    height: 1px;
    background: linear-gradient(90deg, transparent, var(--accent-bright), transparent);
    opacity: 0.5;
}

.finder__header {
    text-align: center;
    margin-bottom: var(--space-xl);
}

.finder__title {
    font-family: var(--font-display);
    font-size: 32px;
    margin-bottom: var(--space-sm);
}

.finder__subtitle {
    color: var(--text-secondary);
    font-size: 15px;
}

.finder__options {
    display: grid;
    grid-template-columns: repeat(4, 1fr);
    gap: var(--space-md);
    margin-bottom: var(--space-xl);
}

.finder__option {
    padding: var(--space-lg);
    background: var(--bg-muted);
    border: 2px solid transparent;
    border-radius: var(--radius-md);
    cursor: pointer;
    transition: all var(--transition-base);
    text-align: center;
}

.finder__option:hover {
    border-color: var(--border-strong);
    transform: translateY(-2px);
}

.finder__option.active {
    background: var(--accent-dim);
    border-color: var(--accent-bright);
}

.finder__option__icon {
    font-size: 28px;
    margin-bottom: var(--space-sm);
    display: block;
}

.finder__option__title {
    font-size: 14px;
    font-weight: 600;
    margin-bottom: 4px;
}

.finder__option__desc {
    font-size: 12px;
    color: var(--text-tertiary);
}

.finder__submit {
    display: flex;
    justify-content: center;
}

.finder__submit .btn {
    padding: 16px 48px;
    font-size: 15px;
}

/* ========== EXCHANGES SECTION ========== */
.exchanges {
    padding: var(--space-3xl) 0;
    background: var(--bg-muted);
}

.section__header {
    display: flex;
    align-items: flex-end;
    justify-content: space-between;
    margin-bottom: var(--space-xl);
}

.section__title {
    font-family: var(--font-display);
    font-size: clamp(32px, 5vw, 44px);
    line-height: 1.1;
}

.section__subtitle {
    font-size: 15px;
    color: var(--text-tertiary);
    margin-top: var(--space-sm);
}

.section__link {
    font-size: 14px;
    font-weight: 500;
    color: var(--text-secondary);
    display: flex;
    align-items: center;
    gap: 6px;
    transition: color var(--transition-fast);
}

.section__link:hover {
    color: var(--accent-bright);
}

.section__link svg {
    width: 16px;
    height: 16px;
    transition: transform var(--transition-fast);
}

.section__link:hover svg {
    transform: translateX(4px);
}

.exchanges__grid {
    display: grid;
    grid-template-columns: repeat(3, 1fr);
    gap: var(--space-lg);
}

.exchange-card {
    background: var(--bg-secondary);
    border: 1px solid var(--border);
    border-radius: var(--radius-md);
    padding: var(--space-lg);
    transition: all var(--transition-base);
    position: relative;
}

.exchange-card::before {
    content: '';
    position: absolute;
    inset: 0;
    border-radius: var(--radius-md);
    padding: 1px;
    background: linear-gradient(135deg, var(--accent-bright) 0%, transparent 50%);
    -webkit-mask: linear-gradient(#fff 0 0) content-box, linear-gradient(#fff 0 0);
    mask: linear-gradient(#fff 0 0) content-box, linear-gradient(#fff 0 0);
    -webkit-mask-composite: xor;
    mask-composite: exclude;
    opacity: 0;
    transition: opacity var(--transition-base);
}

.exchange-card:hover {
    transform: translateY(-4px);
    box-shadow: var(--shadow-card);
}

.exchange-card:hover::before {
    opacity: 1;
}

.exchange-card__header {
    display: flex;
    align-items: flex-start;
    justify-content: space-between;
    margin-bottom: var(--space-md);
}

.exchange-card__logo {
    width: 48px;
    height: 48px;
    background: var(--bg-muted);
    border-radius: var(--radius-sm);
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 11px;
    font-weight: 700;
    color: var(--text-tertiary);
    letter-spacing: -0.02em;
}

.exchange-card__badge {
    padding: 4px 10px;
    background: var(--accent-dim);
    color: var(--text-primary);
    font-size: 11px;
    font-weight: 600;
    border-radius: var(--radius-md);
    display: flex;
    align-items: center;
    gap: 4px;
}

.exchange-card__badge::before {
    content: '';
    width: 5px;
    height: 5px;
    background: var(--accent-bright);
    border-radius: 50%;
}

.exchange-card__name {
    font-size: 18px;
    font-weight: 600;
    margin-bottom: 2px;
}

.exchange-card__type {
    font-size: 13px;
    color: var(--text-tertiary);
    margin-bottom: var(--space-md);
}

.exchange-card__score {
    display: flex;
    align-items: baseline;
    gap: 8px;
    margin-bottom: var(--space-md);
    padding-bottom: var(--space-md);
    border-bottom: 1px solid var(--border);
}

.exchange-card__score__value {
    font-family: var(--font-display);
    font-size: 28px;
}

.exchange-card__score__max {
    font-size: 14px;
    color: var(--text-tertiary);
}

.exchange-card__features {
    display: flex;
    flex-wrap: wrap;
    gap: 6px;
    margin-bottom: var(--space-lg);
}

.feature-tag {
    padding: 6px 12px;
    background: var(--bg-muted);
    border-radius: var(--radius-md);
    font-size: 12px;
    color: var(--text-secondary);
}

.exchange-card .btn {
    width: 100%;
}

/* ========== CATEGORIES SECTION ========== */
.categories {
    padding: var(--space-3xl) 0;
}

.categories__grid {
    display: grid;
    grid-template-columns: repeat(4, 1fr);
    gap: var(--space-md);
}

.category-card {
    padding: var(--space-xl);
    background: var(--bg-secondary);
    border: 1px solid var(--border);
    border-radius: var(--radius-md);
    transition: all var(--transition-base);
    position: relative;
    overflow: hidden;
}

.category-card::after {
    content: '';
    position: absolute;
    bottom: 0;
    left: 0;
    right: 0;
    height: 2px;
    background: var(--accent-bright);
    transform: scaleX(0);
    transition: transform var(--transition-base);
}

.category-card:hover {
    border-color: var(--border-strong);
    transform: translateY(-4px);
    box-shadow: var(--shadow-card);
}

.category-card:hover::after {
    transform: scaleX(1);
}

.category-card__icon {
    font-size: 32px;
    margin-bottom: var(--space-md);
    display: block;
}

.category-card__title {
    font-size: 16px;
    font-weight: 600;
    margin-bottom: var(--space-sm);
}

.category-card__desc {
    font-size: 14px;
    color: var(--text-tertiary);
    line-height: 1.5;
}

.category-card__count {
    margin-top: var(--space-md);
    padding-top: var(--space-md);
    border-top: 1px solid var(--border);
    font-size: 13px;
    color: var(--text-secondary);
}

.category-card__count strong {
    color: var(--text-primary);
}

/* ========== METHODOLOGY SECTION ========== */
.methodology {
    padding: var(--space-3xl) 0;
    background: var(--text-primary);
    color: var(--bg-primary);
    position: relative;
    overflow: hidden;
}

.methodology::before {
    content: '';
    position: absolute;
    width: 600px;
    height: 600px;
    background: radial-gradient(circle, var(--accent-glow) 0%, transparent 70%);
    top: -300px;
    right: -200px;
    opacity: 0.3;
}

.methodology .section__title {
    color: var(--bg-primary);
}

.methodology .section__subtitle {
    color: rgba(255,255,255,0.5);
}

.methodology__grid {
    display: grid;
    grid-template-columns: repeat(3, 1fr);
    gap: var(--space-xl);
    margin-top: var(--space-2xl);
}

.method-step {
    position: relative;
}

.method-step__number {
    font-family: var(--font-display);
    font-size: 64px;
    color: rgba(255,255,255,0.08);
    line-height: 1;
    margin-bottom: var(--space-md);
}

.method-step__title {
    font-size: 18px;
    font-weight: 600;
    margin-bottom: var(--space-sm);
}

.method-step__desc {
    font-size: 14px;
    color: rgba(255,255,255,0.6);
    line-height: 1.7;
}

.methodology__stats {
    display: flex;
    gap: var(--space-2xl);
    margin-top: var(--space-3xl);
    padding-top: var(--space-xl);
    border-top: 1px solid rgba(255,255,255,0.1);
}

.methodology__stat {
    text-align: left;
}

.methodology__stat__value {
    font-family: var(--font-display);
    font-size: 36px;
    color: var(--accent-bright);
}

.methodology__stat__label {
    font-size: 13px;
    color: rgba(255,255,255,0.5);
    margin-top: 4px;
}

/* ========== ARTICLES SECTION ========== */
.articles {
    padding: var(--space-3xl) 0;
}

.articles__grid {
    display: grid;
    grid-template-columns: repeat(3, 1fr);
    gap: var(--space-lg);
}

.article-card {
    background: var(--bg-secondary);
    border: 1px solid var(--border);
    border-radius: var(--radius-md);
    overflow: hidden;
    transition: all var(--transition-base);
}

.article-card:hover {
    transform: translateY(-4px);
    box-shadow: var(--shadow-card);
}

.article-card__image {
    height: 200px;
    background: linear-gradient(135deg, var(--bg-muted) 0%, var(--bg-primary) 100%);
    position: relative;
    overflow: hidden;
}

.article-card__image::after {
    content: '';
    position: absolute;
    inset: 0;
    background: linear-gradient(135deg, var(--accent-dim) 0%, transparent 100%);
}

.article-card__content {
    padding: var(--space-lg);
}

.article-card__category {
    font-size: 11px;
    font-weight: 600;
    text-transform: uppercase;
    letter-spacing: 0.1em;
    color: var(--accent-bright);
    margin-bottom: var(--space-sm);
}

.article-card__title {
    font-size: 17px;
    font-weight: 600;
    line-height: 1.4;
    margin-bottom: var(--space-sm);
}

.article-card__meta {
    font-size: 13px;
    color: var(--text-tertiary);
}

/* ========== RESPONSIVE ========== */
@media (max-width: 1024px) {
    .finder__options {
        grid-template-columns: repeat(2, 1fr);
    }

    .exchanges__grid,
    .articles__grid,
    .methodology__grid {
        grid-template-columns: repeat(2, 1fr);
    }

    .categories__grid {
        grid-template-columns: repeat(2, 1fr);
    }
}

@media (max-width: 768px) {
    .hero {
        min-height: auto;
        padding: 120px 0 var(--space-2xl);
    }

    .hero__stats {
        flex-direction: column;
        gap: var(--space-lg);
    }

    .finder__options,
    .exchanges__grid,
    .articles__grid,
    .methodology__grid,
    .categories__grid {
        grid-template-columns: 1fr;
    }

    .section__header {
        flex-direction: column;
        align-items: flex-start;
        gap: var(--space-md);
    }

    .methodology__stats {
        flex-wrap: wrap;
        gap: var(--space-lg);
    }

    .hero__actions {
        flex-direction: column;
        width: 100%;
    }

    .hero__actions .btn {
        width: 100%;
    }
}

@media (max-width: 480px) {
    .finder__options { grid-template-columns: 1fr; }
}
