/* ═══════════════════════════════════════════════════════
   WEB3 HANDS-ON HUB — landing page styles
   Sibling to module-style.css but its own layout.
   ═══════════════════════════════════════════════════════ */

.web3-hub {
    padding: calc(var(--navbar-h, 92px) + 1rem) 0 4rem;
    background: var(--bg-primary);
    color: var(--text-primary);
}

/* ── Hero ──────────────────────────────────────────────── */
.web3-hero {
    padding: 4rem 0 5rem;
    background:
        radial-gradient(ellipse at top, rgba(139, 92, 246, 0.12), transparent 60%),
        radial-gradient(ellipse at bottom right, rgba(34, 211, 238, 0.10), transparent 60%);
    border-bottom: 1px solid var(--border-color);
}
.web3-eyebrow {
    display: inline-block;
    font-family: 'JetBrains Mono', monospace;
    font-size: 0.78rem;
    letter-spacing: 0.18em;
    text-transform: uppercase;
    color: var(--accent-eth, #8b5cf6);
    background: rgba(139, 92, 246, 0.10);
    padding: 0.45rem 0.9rem;
    border-radius: 100px;
    margin-bottom: 1.25rem;
}
.web3-title {
    font-family: 'Playfair Display', serif;
    font-size: clamp(2rem, 5vw, 3.4rem);
    line-height: 1.1;
    font-weight: 700;
    color: var(--text-primary);
    margin: 0 0 1.25rem;
    max-width: 880px;
}
.web3-title-accent {
    background: linear-gradient(135deg, #8b5cf6, #22d3ee);
    -webkit-background-clip: text;
    background-clip: text;
    color: transparent;
}
.web3-lede {
    font-size: 1.12rem;
    line-height: 1.65;
    color: var(--text-secondary);
    max-width: 760px;
    margin: 0 0 2rem;
}
.web3-cta-row {
    display: flex;
    flex-wrap: wrap;
    gap: 0.75rem 1rem;
    align-items: center;
    margin-bottom: 1.75rem;
}
.web3-cta {
    padding: 0.85rem 1.4rem;
    font-weight: 600;
    border-radius: 10px;
    transition: transform 0.18s, box-shadow 0.18s, border-color 0.18s;
}
.web3-cta:hover { transform: translateY(-2px); }
.web3-cta--ghost {
    background: transparent;
    color: var(--text-primary);
    border: 1px solid var(--border-color);
}
.web3-cta--ghost:hover {
    border-color: var(--accent-eth, #8b5cf6);
    color: var(--accent-eth, #8b5cf6);
}
.web3-meta-row {
    display: flex;
    flex-wrap: wrap;
    gap: 0.5rem 1.5rem;
    color: var(--text-tertiary);
    font-size: 0.92rem;
    margin-top: 0.5rem;
}

/* ── Section scaffolding ──────────────────────────────── */
.web3-section {
    max-width: 1100px;
    margin: 4rem auto;
    padding: 0 1.5rem;
}
.web3-section-head { margin-bottom: 2rem; max-width: 760px; }
.web3-section-title {
    font-family: 'Playfair Display', serif;
    font-size: clamp(1.5rem, 3vw, 2.1rem);
    margin: 0 0 0.6rem;
    color: var(--text-primary);
    font-weight: 700;
    line-height: 1.2;
}
.web3-section-sub {
    color: var(--text-secondary);
    line-height: 1.7;
    font-size: 1rem;
    margin: 0;
}

/* ── What you'll learn (4 tiles) ──────────────────────── */
.web3-learn-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(220px, 1fr));
    gap: 1.25rem;
}
.web3-learn-tile {
    background: var(--bg-card);
    border: 1px solid var(--border-color);
    border-radius: 14px;
    padding: 1.5rem;
    transition: transform 0.2s, border-color 0.2s, box-shadow 0.2s;
}
.web3-learn-tile:hover {
    transform: translateY(-3px);
    border-color: var(--accent-eth, #8b5cf6);
    box-shadow: var(--shadow-md);
}
.web3-learn-icon {
    font-size: 1.8rem;
    margin-bottom: 0.75rem;
}
.web3-learn-tile h3 {
    font-family: 'Inter', sans-serif;
    font-size: 1.05rem;
    font-weight: 700;
    color: var(--text-primary);
    margin: 0 0 0.5rem;
}
.web3-learn-tile p {
    color: var(--text-secondary);
    font-size: 0.92rem;
    line-height: 1.6;
    margin: 0;
}

/* ── Three pillars ────────────────────────────────────── */
.web3-pillars {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(300px, 1fr));
    gap: 1.5rem;
}
.web3-pillar {
    background: var(--bg-card);
    border: 1px solid var(--border-color);
    border-radius: 16px;
    padding: 1.75rem;
    display: flex;
    flex-direction: column;
    transition: transform 0.22s, border-color 0.22s, box-shadow 0.22s;
}
.web3-pillar:hover {
    transform: translateY(-4px);
    box-shadow: var(--shadow-lg);
}
.web3-pillar--reference { border-top: 3px solid var(--accent-eth, #8b5cf6); }
.web3-pillar--lab1      { border-top: 3px solid var(--accent-primary, #f7931a); }
.web3-pillar--lab2      { border-top: 3px solid var(--accent-chain, #22d3ee); }
.web3-pillar--reference:hover { border-color: var(--accent-eth, #8b5cf6); }
.web3-pillar--lab1:hover      { border-color: var(--accent-primary, #f7931a); }
.web3-pillar--lab2:hover      { border-color: var(--accent-chain, #22d3ee); }

.web3-pillar-head {
    display: flex;
    align-items: center;
    justify-content: space-between;
    margin-bottom: 1rem;
}
.web3-pillar-icon {
    font-size: 2.2rem;
    line-height: 1;
}
.web3-pillar-tag {
    font-family: 'JetBrains Mono', monospace;
    font-size: 0.7rem;
    font-weight: 600;
    text-transform: uppercase;
    letter-spacing: 0.08em;
    padding: 0.3rem 0.7rem;
    border-radius: 100px;
    background: rgba(139, 92, 246, 0.10);
    color: var(--accent-eth, #8b5cf6);
}
.web3-pillar--lab1 .web3-pillar-tag {
    background: rgba(247, 147, 26, 0.12);
    color: var(--accent-primary, #f7931a);
}
.web3-pillar--lab2 .web3-pillar-tag {
    background: rgba(34, 211, 238, 0.12);
    color: var(--accent-chain, #22d3ee);
}
.web3-pillar-title {
    font-family: 'Playfair Display', serif;
    font-size: 1.4rem;
    color: var(--text-primary);
    margin: 0 0 0.7rem;
    line-height: 1.25;
    font-weight: 700;
}
.web3-pillar-desc {
    color: var(--text-secondary);
    line-height: 1.65;
    font-size: 0.95rem;
    margin: 0 0 1rem;
}
.web3-pillar-points {
    list-style: none;
    padding: 0;
    margin: 0 0 1.5rem;
    color: var(--text-secondary);
    font-size: 0.88rem;
}
.web3-pillar-points li {
    padding: 0.3rem 0 0.3rem 1.4rem;
    position: relative;
    line-height: 1.5;
}
.web3-pillar-points li::before {
    content: "▸";
    position: absolute;
    left: 0;
    top: 0.3rem;
    color: var(--accent-primary, #f7931a);
    font-weight: 700;
}
.web3-pillar--reference .web3-pillar-points li::before { color: var(--accent-eth, #8b5cf6); }
.web3-pillar--lab2      .web3-pillar-points li::before { color: var(--accent-chain, #22d3ee); }
.web3-pillar-cta {
    margin-top: auto;
    color: var(--accent-primary, #f7931a);
    font-weight: 600;
    text-decoration: none;
    font-size: 0.95rem;
    transition: gap 0.2s;
}
.web3-pillar-cta:hover { text-decoration: underline; }
.web3-pillar--reference .web3-pillar-cta { color: var(--accent-eth, #8b5cf6); }
.web3-pillar--lab2      .web3-pillar-cta { color: var(--accent-chain, #22d3ee); }

/* ── Suggested path ───────────────────────────────────── */
.web3-path {
    display: flex;
    flex-direction: column;
    gap: 0.9rem;
}
.web3-path-step {
    display: grid;
    grid-template-columns: 56px 1fr;
    gap: 1.1rem;
    align-items: start;
    background: var(--bg-card);
    border: 1px solid var(--border-color);
    border-radius: 12px;
    padding: 1.15rem 1.4rem;
    transition: border-color 0.2s;
}
.web3-path-step:hover { border-color: var(--border-hover); }
.web3-path-num {
    width: 44px;
    height: 44px;
    border-radius: 12px;
    background: rgba(139, 92, 246, 0.12);
    color: var(--accent-eth, #8b5cf6);
    font-family: 'JetBrains Mono', monospace;
    font-weight: 700;
    font-size: 1.1rem;
    display: flex;
    align-items: center;
    justify-content: center;
}
.web3-path-body h4 {
    font-family: 'Inter', sans-serif;
    font-size: 1.02rem;
    font-weight: 700;
    color: var(--text-primary);
    margin: 0 0 0.35rem;
}
.web3-path-body p {
    color: var(--text-secondary);
    line-height: 1.65;
    margin: 0;
    font-size: 0.92rem;
}

/* ── Prerequisites grid ───────────────────────────────── */
.web3-prereq-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(220px, 1fr));
    gap: 1rem;
}
.web3-prereq-card {
    background: var(--bg-card);
    border: 1px solid var(--border-color);
    border-radius: 12px;
    padding: 1.25rem;
    transition: border-color 0.2s;
}
.web3-prereq-card:hover { border-color: var(--accent-eth, #8b5cf6); }
.web3-prereq-icon { font-size: 1.6rem; margin-bottom: 0.5rem; }
.web3-prereq-card h4 {
    font-family: 'Inter', sans-serif;
    font-size: 0.98rem;
    font-weight: 700;
    color: var(--text-primary);
    margin: 0 0 0.4rem;
}
.web3-prereq-card p {
    color: var(--text-secondary);
    font-size: 0.88rem;
    line-height: 1.6;
    margin: 0;
}

/* ── Deeper context callout ───────────────────────────── */
.web3-deeper {
    background: var(--bg-card);
    border: 1px solid var(--border-color);
    border-radius: 14px;
    padding: 2rem 2.4rem;
    text-align: center;
}
.web3-deeper .web3-section-title { margin-bottom: 0.8rem; }
.web3-deeper p {
    color: var(--text-secondary);
    line-height: 1.7;
    max-width: 720px;
    margin: 0 auto 1.25rem;
}
.web3-deeper a { color: var(--accent-eth, #8b5cf6); text-decoration: none; }
.web3-deeper a:hover { text-decoration: underline; }
.web3-deeper-cta {
    display: inline-block;
    padding: 0.7rem 1.2rem;
    border: 1px solid var(--border-color);
    border-radius: 10px;
    color: var(--text-primary) !important;
    font-weight: 600;
    transition: border-color 0.2s, color 0.2s;
}
.web3-deeper-cta:hover {
    border-color: var(--accent-eth, #8b5cf6);
    color: var(--accent-eth, #8b5cf6) !important;
    text-decoration: none !important;
}

/* ── Code chips inside the hub ────────────────────────── */
.web3-hub code {
    font-family: 'JetBrains Mono', monospace;
    font-size: 0.85em;
    background: var(--code-bg);
    color: var(--code-orange);
    padding: 0.08em 0.4em;
    border-radius: 5px;
    border: 1px solid var(--border-color);
    white-space: nowrap;
    font-variant-ligatures: none;
    font-feature-settings: "liga" 0, "calt" 0;
}

/* ── Mobile tweaks ────────────────────────────────────── */
@media (max-width: 640px) {
    .web3-hero { padding: 3rem 0 4rem; }
    .web3-cta-row { flex-direction: column; align-items: stretch; }
    .web3-cta { text-align: center; }
    .web3-deeper { padding: 1.5rem 1rem; }
}
