/* ═══════════════════════════════════════════════════════
   Website-Specific Styles — NEW SECTIONS
   Base components come from styles.css
   ═══════════════════════════════════════════════════════ */

body {
    padding-top: 80px;
}

/* ═══════ VISION SECTION ═══════ */
.vision-grid {
    display: grid;
    grid-template-columns: repeat(2, 1fr);
    gap: 2rem;
}

.vision-card {
    padding: 2.5rem;
    background: var(--bg-card);
    border-radius: 16px;
    border: 1px solid var(--border);
    transition: all 0.3s ease;
}

.vision-card:hover {
    transform: translateY(-8px);
    border-color: var(--primary);
    box-shadow: 0 20px 60px rgba(255, 107, 53, 0.2);
}

.vision-icon {
    font-size: 3rem;
    margin-bottom: 1.25rem;
    transition: all 0.3s ease;
}

.vision-icon i {
    color: var(--primary);
}

.vision-card:hover .vision-icon {
    transform: scale(1.1) rotate(5deg);
    filter: drop-shadow(0 0 15px rgba(255, 107, 53, 0.5));
}

.vision-card h3 {
    font-size: 1.5rem;
    margin-bottom: 1rem;
}

.vision-card p {
    color: var(--text-secondary);
    line-height: 1.8;
}

/* ═══════ ARCHITECTURE — SPEC CARDS ═══════ */
.specs-grid {
    display: grid;
    grid-template-columns: repeat(3, 1fr);
    gap: 2rem;
}

.spec-card {
    background: var(--bg-card);
    border: 2px solid var(--border);
    border-radius: 16px;
    overflow: hidden;
    transition: all 0.3s ease;
}

.spec-card:hover {
    transform: translateY(-8px);
    border-color: var(--primary);
    box-shadow: 0 12px 48px rgba(255, 107, 53, 0.2);
}

.spec-header {
    display: flex;
    align-items: center;
    gap: 1rem;
    padding: 1.5rem 2rem;
    background: linear-gradient(135deg, rgba(255, 107, 53, 0.12) 0%, rgba(247, 127, 0, 0.06) 100%);
    border-bottom: 1px solid var(--border);
}

.spec-header i {
    font-size: 2rem;
    color: var(--primary);
}

.spec-header h3 {
    font-size: 1.4rem;
    margin: 0;
}

.spec-metrics {
    padding: 1rem;
}

.spec-row {
    display: flex;
    justify-content: space-between;
    align-items: center;
    padding: 0.75rem 1rem;
    border-radius: 8px;
    transition: background 0.2s ease;
}

.spec-row:hover {
    background: rgba(255, 107, 53, 0.05);
}

.spec-label {
    color: var(--text-muted);
    font-size: 0.9rem;
    font-weight: 500;
}

.spec-value {
    color: var(--text-primary);
    font-weight: 700;
    font-family: 'JetBrains Mono', monospace;
    font-size: 0.95rem;
    text-align: right;
}

.spec-value.highlight {
    color: var(--success);
}

/* ═══════ ARCHITECTURE — CHAIN COMPARISON ═══════ */
.comparison-section {
    margin-top: 5rem;
}

.comparison-title {
    text-align: center;
    margin-bottom: 2rem;
    font-size: 1.6rem;
    color: var(--text-secondary);
}

#architecture .comparison-grid {
    display: grid;
    grid-template-columns: repeat(3, 1fr);
    gap: 2rem;
}

#architecture .comparison-card {
    background: var(--bg-card);
    border: 2px solid var(--border);
    border-radius: 16px;
    overflow: hidden;
    transition: all 0.3s ease;
    padding: 0;
}

#architecture .comparison-card:hover {
    transform: translateY(-8px);
    box-shadow: 0 12px 48px rgba(0, 0, 0, 0.3);
}

#architecture .comparison-card.featured {
    border-color: var(--primary);
    box-shadow: 0 8px 32px rgba(255, 107, 53, 0.2);
}

/* Match How We Compare hover behavior for Validator cards */
#validators .chain-card:hover {
    transform: translateY(-8px);
    box-shadow: 0 12px 48px rgba(0, 0, 0, 0.3);
}

.comparison-header {
    display: flex;
    align-items: center;
    gap: 1rem;
    padding: 1.5rem 2rem;
    border-bottom: 1px solid var(--border);
}

.comparison-header i {
    font-size: 2rem;
}

.comparison-header h4 {
    font-size: 1.4rem;
    margin: 0;
}

.comparison-header.eth {
    background: linear-gradient(135deg, rgba(98, 126, 234, 0.15) 0%, transparent 100%);
}

.comparison-header.eth i {
    color: #627EEA;
}

.comparison-header.sol {
    background: linear-gradient(135deg, rgba(0, 255, 163, 0.1) 0%, transparent 100%);
}

.comparison-header.sol i {
    color: #00FFA3;
}

.comparison-header.lichen {
    background: linear-gradient(135deg, rgba(255, 107, 53, 0.15) 0%, rgba(247, 127, 0, 0.08) 100%);
}

.comparison-header.lichen i {
    color: var(--primary);
}

.comparison-body {
    padding: 1rem;
}

.comp-row {
    display: flex;
    justify-content: space-between;
    align-items: center;
    padding: 0.75rem 1rem;
    border-radius: 8px;
    font-size: 0.95rem;
}

.comp-row:hover {
    background: rgba(255, 255, 255, 0.03);
}

.comp-row span:first-child {
    color: var(--text-muted);
    font-weight: 500;
}

.comp-row span:last-child {
    font-weight: 700;
    font-family: 'JetBrains Mono', monospace;
}

/* Color utility classes */
.good {
    color: var(--success) !important;
}

.bad {
    color: #FF6B6B !important;
}

.ok {
    color: var(--warning) !important;
}

.mono {
    font-family: 'JetBrains Mono', monospace;
    font-size: 0.85rem;
}

/* ═══════ TOKENOMICS ═══════ */
.tokenomics-grid {
    display: grid;
    grid-template-columns: repeat(3, 1fr);
    gap: 2rem;
}

.token-card {
    background: var(--bg-card);
    border: 2px solid var(--border);
    border-radius: 16px;
    overflow: hidden;
    transition: all 0.3s ease;
}

.token-card:hover {
    transform: translateY(-8px);
    border-color: var(--primary);
    box-shadow: 0 12px 48px rgba(0, 0, 0, 0.3);
}

.token-card.featured {
    border-color: var(--primary);
    box-shadow: 0 8px 32px rgba(255, 107, 53, 0.2);
}

.token-header {
    display: flex;
    align-items: center;
    gap: 1rem;
    padding: 1.5rem 2rem;
    background: linear-gradient(135deg, rgba(255, 107, 53, 0.12) 0%, rgba(247, 127, 0, 0.06) 100%);
    border-bottom: 1px solid var(--border);
}

.token-header i {
    font-size: 2rem;
    color: var(--primary);
}

.token-header h3 {
    font-size: 1.3rem;
    margin: 0;
}

.token-body {
    padding: 1rem;
}

.token-row {
    display: flex;
    justify-content: space-between;
    align-items: center;
    padding: 0.75rem 1rem;
    border-radius: 8px;
    font-size: 0.95rem;
}

.token-row:hover {
    background: rgba(255, 107, 53, 0.05);
}

.token-row span:first-child {
    color: var(--text-muted);
    font-weight: 500;
}

.token-row span:last-child {
    font-weight: 700;
    font-family: 'JetBrains Mono', monospace;
    text-align: right;
}

/* Reputation Discounts */
.reputation-discounts {
    margin-top: 3rem;
    padding: 2.5rem;
    background: var(--bg-card);
    border: 1px solid var(--border);
    border-radius: 16px;
    text-align: center;
}

.reputation-discounts h3 {
    font-size: 1.5rem;
    margin-bottom: 2rem;
}

.reputation-discounts h3 i {
    color: var(--primary);
    margin-right: 0.5rem;
}

.discount-grid {
    display: grid;
    grid-template-columns: repeat(3, 1fr);
    gap: 2rem;
}

.discount-tier {
    padding: 2rem;
    background: var(--bg-darker);
    border-radius: 12px;
    border: 1px solid var(--border);
    transition: all 0.3s ease;
}

.discount-tier:hover {
    transform: translateY(-5px);
    border-color: var(--primary);
}

.discount-score {
    font-size: 2.5rem;
    font-weight: 800;
    color: var(--primary);
    font-family: 'JetBrains Mono', monospace;
}

.discount-label {
    color: var(--text-muted);
    font-size: 0.85rem;
    margin-bottom: 0.75rem;
}

.discount-value {
    font-size: 1.3rem;
    font-weight: 700;
    color: var(--success);
}

/* ═══════ CONTRACTS GRID ═══════ */
.contracts-grid {
    display: grid;
    grid-template-columns: repeat(auto-fill, minmax(260px, 1fr));
    gap: 1.5rem;
}

.contract-card {
    padding: 1.75rem;
    background: var(--bg-card);
    border-radius: 14px;
    border: 1px solid var(--border);
    transition: all 0.3s ease;
    display: flex;
    flex-direction: column;
    gap: 0.5rem;
}

.contract-card:hover {
    transform: translateY(-6px);
    border-color: var(--primary);
    box-shadow: 0 16px 48px rgba(255, 107, 53, 0.2);
}

.contract-icon {
    font-size: 2.5rem;
    margin-bottom: 0.5rem;
    transition: all 0.3s ease;
}

.contract-icon i {
    color: var(--primary);
}

.contract-card:hover .contract-icon {
    transform: scale(1.1);
    filter: drop-shadow(0 0 12px rgba(255, 107, 53, 0.5));
}

.contract-card h3 {
    font-size: 1.25rem;
    margin-bottom: 0.25rem;
}

.contract-card p {
    color: var(--text-secondary);
    font-size: 0.9rem;
    line-height: 1.6;
    flex: 1;
}

.contract-size {
    display: inline-block;
    padding: 0.35rem 0.7rem;
    background: rgba(255, 107, 53, 0.1);
    border-radius: 6px;
    font-size: 0.8rem;
    color: var(--primary);
    font-weight: 600;
    font-family: 'JetBrains Mono', monospace;
    width: fit-content;
}

/* ═══════ ROADMAP TIMELINE ═══════ */
.roadmap-timeline {
    max-width: 800px;
    margin: 0 auto;
    position: relative;
    padding-left: 3rem;
}

.roadmap-timeline::before {
    content: '';
    position: absolute;
    left: 12px;
    top: 0;
    bottom: 0;
    width: 2px;
    background: var(--border);
}

.roadmap-phase {
    position: relative;
    margin-bottom: 3rem;
    padding: 2rem;
    background: var(--bg-card);
    border-radius: 16px;
    border: 1px solid var(--border);
    transition: all 0.3s ease;
}

.roadmap-phase:hover {
    transform: translateX(8px);
    border-color: var(--primary);
}

.roadmap-phase.featured {
    border-color: var(--primary);
    background: linear-gradient(135deg, rgba(255, 107, 53, 0.08) 0%, rgba(247, 127, 0, 0.04) 100%);
    box-shadow: 0 8px 32px rgba(255, 107, 53, 0.15);
}

.phase-marker {
    position: absolute;
    left: -3rem;
    top: 2rem;
    width: 24px;
    height: 24px;
    transform: translateX(calc(-50% + 13px));
    background: var(--bg-card);
    border: 3px solid var(--border);
    border-radius: 50%;
    z-index: 1;
}

.phase-marker.current {
    background: var(--primary);
    border-color: var(--primary);
    box-shadow: 0 0 20px rgba(255, 107, 53, 0.6);
    animation: pulse-dot 2s infinite;
}

@keyframes pulse-dot {
    0%, 100% { box-shadow: 0 0 8px rgba(255, 107, 53, 0.6); }
    50% { box-shadow: 0 0 24px rgba(255, 107, 53, 0.9); }
}

.phase-content h3 {
    font-size: 1.4rem;
    margin-bottom: 1.25rem;
}

.phase-content h3 i {
    color: var(--primary);
    margin-right: 0.5rem;
}

.phase-items {
    display: flex;
    flex-direction: column;
    gap: 0.6rem;
}

.phase-item {
    display: flex;
    align-items: center;
    gap: 0.75rem;
    padding: 0.5rem 0;
    color: var(--text-secondary);
    font-size: 0.95rem;
}

.phase-item i {
    font-size: 0.9rem;
    width: 20px;
    text-align: center;
    flex-shrink: 0;
}

.phase-item.done {
    color: var(--success);
}

.phase-item.done i {
    color: var(--success);
}

.phase-item.progress {
    color: var(--warning);
}

.phase-item.progress i {
    color: var(--warning);
}

.phase-item i.fa-circle {
    font-size: 0.5rem;
    color: var(--text-muted);
}

/* ═══════ LICHENID 3×2 GRID ═══════ */
.identity-grid {
    display: grid;
    grid-template-columns: repeat(3, 1fr);
    gap: 2rem;
}

/* ═══════ SECTION CTA ═══════ */
.section-cta {
    text-align: center;
    margin-top: 3rem;
}

/* ═══════ NAV ACTIONS ═══════ */
.nav-actions {
    display: flex;
    align-items: center;
    gap: 0.75rem;
}

.btn-small {
    padding: 0.45rem 1rem;
    font-size: 0.85rem;
}

/* ═══════ RESPONSIVE ═══════ */
@media (max-width: 1200px) {
    .specs-grid,
    .tokenomics-grid,
    .identity-grid,
    #architecture .comparison-grid {
        grid-template-columns: repeat(2, 1fr);
    }
}

@media (max-width: 768px) {
    .vision-grid,
    .specs-grid,
    .tokenomics-grid,
    .identity-grid,
    .discount-grid,
    #architecture .comparison-grid {
        grid-template-columns: 1fr;
    }

    .hero-title {
        font-size: 2.5rem;
    }

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

    .nav-menu,
    .nav-actions {
        display: none;
    }

    .nav-toggle {
        display: flex;
    }

    .nav-menu.active {
        display: flex;
        flex-direction: column;
        position: absolute;
        top: 100%;
        left: 0;
        right: 0;
        background: rgba(10, 14, 39, 0.98);
        padding: 1rem 2rem;
        border-bottom: 1px solid var(--border);
        gap: 1rem;
    }

    .nav-actions.active {
        display: flex;
        flex-direction: column;
        position: absolute;
        top: calc(100% + var(--mobile-nav-menu-height, 0px));
        left: 0;
        right: 0;
        padding: 1rem 2rem 1.25rem;
        background: rgba(10, 14, 39, 0.98);
        border-bottom: 1px solid var(--border);
        z-index: 1001;
        gap: 0.75rem;
    }

    .nav-actions.active .btn,
    .nav-actions.active .network-select {
        width: 100%;
        justify-content: center;
    }

    .roadmap-timeline {
        padding-left: 2rem;
    }

    .roadmap-timeline::before {
        left: 8px;
    }

    .phase-marker {
        left: -2rem;
        width: 18px;
        height: 18px;
        transform: translateX(calc(-50% + 9px));
    }

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

@media (max-width: 480px) {
    .hero-title {
        font-size: 2rem;
    }

    .section-title {
        font-size: 2rem;
    }

    .spec-header,
    .token-header,
    .comparison-header {
        padding: 1rem 1.25rem;
    }

    .spec-metrics,
    .token-body,
    .comparison-body {
        padding: 0.75rem;
    }
}
