/* Landing / Overview — professional layout & typography */

.sr-only {
    position: absolute;
    width: 1px;
    height: 1px;
    padding: 0;
    margin: -1px;
    overflow: hidden;
    clip: rect(0, 0, 0, 0);
    white-space: nowrap;
    border: 0;
}

#overview {
    --overview-max: 1180px;
    --overview-section-gap: 80px;
    --overview-muted: rgba(255, 255, 255, 0.58);
    --overview-border: rgba(255, 255, 255, 0.08);
    --overview-font: 'Plus Jakarta Sans', -apple-system, BlinkMacSystemFont, 'Segoe UI', sans-serif;
    --overview-display: 'Instrument Serif', Georgia, 'Times New Roman', serif;
    --pls-gradient: linear-gradient(135deg, rgba(0, 229, 255, 0.45), rgba(13, 115, 255, 0.35), rgba(140, 3, 252, 0.45));
    --pls-gradient-soft: linear-gradient(135deg, rgba(0, 229, 255, 0.1), rgba(13, 115, 255, 0.06), rgba(140, 3, 252, 0.1));
    font-family: var(--overview-font);
}

#overview h1,
#overview h2,
#overview h3,
#overview .section-intro__title,
#overview .faq-title,
#overview .overview-onboarding__card h3,
#overview .recent-articles-section h2 {
    font-family: var(--overview-display);
    font-weight: 400;
    letter-spacing: -0.01em;
}

/* ── Hero ── */
body.overview-active #overview .overview-header {
    margin-top: -60px !important;
}

#overview .overview-header {
    padding: 175px 24px 72px;
    margin: -60px auto 0;
    max-width: none;
    min-height: 360px;
    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: center;
}

#overview .landing-bg-wrapper {
    position: absolute;
    inset: 0;
    overflow: hidden;
    z-index: 0;
    mask-image: radial-gradient(ellipse 85% 70% at 50% 45%, black 20%, transparent 72%);
    -webkit-mask-image: radial-gradient(ellipse 85% 70% at 50% 45%, black 20%, transparent 72%);
}

#overview .landing-fluid-canvas {
    position: absolute;
    inset: 0;
    width: 100%;
    height: 100%;
    display: block;
    pointer-events: none;
}

#overview .hero-content {
    position: relative;
    z-index: 2;
    max-width: 760px;
    text-align: center;
    padding-top: 24px;
}

#overview .hero-eyebrow {
    font-family: var(--overview-font);
    font-size: 0.6875rem;
    font-weight: 600;
    letter-spacing: 0.16em;
    text-transform: uppercase;
    color: rgba(255, 255, 255, 0.45);
    margin: 0 0 16px;
}

#overview .overview-header h1 {
    font-size: clamp(2.5rem, 5.5vw, 3.75rem);
    line-height: 1.05;
    margin: 0 0 20px;
    color: #fff;
}

#overview .hero-subtitle {
    font-size: clamp(1rem, 2vw, 1.125rem);
    line-height: 1.7;
    color: var(--overview-muted);
    margin: 0 auto;
    max-width: 640px;
}

#overview .hero-cta-row {
    display: flex;
    flex-wrap: wrap;
    justify-content: center;
    gap: 10px;
    margin-top: 28px;
}

#overview .hero-cta-btn {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    min-height: 44px;
    padding: 0 22px;
    font-family: var(--overview-font);
    font-size: 0.875rem;
    font-weight: 600;
    border-radius: 8px;
    cursor: pointer;
    text-decoration: none;
    transition: border-color 0.2s ease, color 0.2s ease;
    border: 1px solid transparent;
    background: transparent;
}

#overview .hero-cta-btn--primary {
    border-color: rgba(255, 255, 255, 0.22);
    color: #fff;
}

#overview .hero-cta-btn--primary:hover {
    background: transparent;
    border-color: rgba(255, 255, 255, 0.36);
    color: #fff;
}

#overview .hero-cta-btn--outline {
    border-color: rgba(255, 255, 255, 0.14);
    color: rgba(255, 255, 255, 0.92);
}

#overview .hero-cta-btn--outline:hover {
    background: transparent;
    border-color: rgba(255, 255, 255, 0.28);
    color: #fff;
}

#overview .overview-section-cta {
    display: flex;
    justify-content: center;
    margin-top: 24px;
    padding-top: 8px;
}

#overview .overview-section-cta__btn {
    display: inline-flex;
    align-items: center;
    gap: 8px;
    min-height: 40px;
    padding: 0 20px;
    font-family: var(--overview-font);
    font-size: 0.8125rem;
    font-weight: 600;
    color: rgba(255, 255, 255, 0.88);
    background: rgba(255, 255, 255, 0.04);
    border: 1px solid rgba(255, 255, 255, 0.12);
    border-radius: 8px;
    cursor: pointer;
    transition: background 0.2s ease, border-color 0.2s ease, color 0.2s ease;
}

#overview .overview-section-cta__btn:hover {
    background: rgba(255, 255, 255, 0.08);
    border-color: rgba(255, 255, 255, 0.2);
    color: #fff;
}

#overview .overview-section-cta__btn i {
    font-size: 0.7rem;
    opacity: 0.55;
}

#overview .landing-video-wrapper {
    display: none !important;
}

/* ── Section nav ── */
#overview .overview-section-nav {
    position: sticky;
    top: 0;
    z-index: 50;
    display: flex;
    justify-content: center;
    gap: 8px;
    flex-wrap: wrap;
    padding: 12px 16px;
    margin: 0 auto 24px;
    max-width: var(--overview-max);
    background: rgba(0, 0, 0, 0.72);
    backdrop-filter: blur(16px);
    border-bottom: 1px solid var(--overview-border);
}

#overview .overview-section-nav a {
    font-size: 0.8125rem;
    font-weight: 500;
    color: var(--overview-muted);
    text-decoration: none;
    padding: 8px 14px;
    border-radius: 999px;
    transition: color 0.2s ease, background 0.2s ease;
}

#overview .overview-section-nav a:hover {
    color: #fff;
    background: rgba(255, 255, 255, 0.06);
}

/* ── Token Markets toolbar ── */
#overview .overview-charts-toolbar {
    text-align: center;
    margin-bottom: 8px;
    position: relative;
    z-index: 2;
}

#overview .overview-charts-toolbar__title {
    font-size: clamp(1.625rem, 3vw, 2.125rem);
    margin: 0 0 10px;
    color: #fff;
    text-align: center;
}

#overview .overview-charts-toolbar__desc {
    text-align: center;
    margin: 0 auto 28px;
    max-width: 640px;
    font-size: 0.9375rem;
    line-height: 1.65;
    color: var(--overview-muted);
}

#overview .charts-controls-row {
    display: flex;
    flex-wrap: wrap;
    align-items: center;
    justify-content: flex-end;
    gap: 8px;
    margin-top: 8px;
    margin-bottom: 8px;
    padding-right: 4px;
}

#overview .charts-controls-row .time-range-selector {
    margin: 0;
    max-width: none;
    flex-wrap: wrap;
    justify-content: flex-end;
    background: transparent;
    border: 1px solid rgba(255, 255, 255, 0.24);
    border-radius: 999px;
    padding: 2px;
    gap: 1px;
    backdrop-filter: none;
    box-shadow: 0 0 0 1px rgba(255, 255, 255, 0.05);
}

#overview .charts-controls-row .time-range-btn {
    padding: 4px 9px;
    font-family: var(--overview-font);
    font-size: 0.6875rem;
    font-weight: 500;
    min-width: 0;
    border-radius: 999px;
    color: rgba(255, 255, 255, 0.5);
    letter-spacing: 0.02em;
}

#overview .charts-controls-row .time-range-btn:hover {
    background: rgba(255, 255, 255, 0.06);
    color: rgba(255, 255, 255, 0.88);
}

#overview .charts-controls-row .time-range-btn.active {
    background: rgba(255, 255, 255, 0.1);
    color: #fff;
    font-weight: 600;
}

#overview .charts-controls-row .exclude-oa-btn--has-tooltip {
    padding: 4px 11px;
    font-family: var(--overview-font);
    font-size: 0.6875rem;
    font-weight: 500;
    background: transparent;
    border: 1px solid rgba(255, 255, 255, 0.24);
    border-radius: 999px;
    color: rgba(255, 255, 255, 0.65);
    transition: border-color 0.2s ease, color 0.2s ease;
}

#overview .charts-controls-row .exclude-oa-btn--has-tooltip:hover {
    background: transparent;
    border-color: rgba(255, 255, 255, 0.36);
    color: rgba(255, 255, 255, 0.9);
}

/* Override legacy negative margin that pulled charts over the heading */
#overview #overview-main-charts-screenshot-section {
    margin-top: 32px !important;
    padding-top: 0 !important;
    position: relative;
    z-index: 1;
    clear: both;
}

#overview .exclude-oa-btn--has-tooltip {
    position: relative;
    white-space: nowrap;
    flex-shrink: 0;
}

#overview .exclude-oa-btn--has-tooltip:hover::after {
    content: attr(data-tooltip);
    position: absolute;
    bottom: calc(100% + 12px);
    right: 0;
    width: 240px;
    max-width: min(240px, calc(100vw - 32px));
    white-space: normal;
    padding: 14px 16px;
    background: rgba(12, 12, 16, 0.98);
    border: 1px solid rgba(255, 255, 255, 0.12);
    border-radius: 10px;
    color: rgba(255, 255, 255, 0.9);
    font-size: 0.75rem;
    font-weight: 400;
    line-height: 1.55;
    text-align: left;
    z-index: 100;
    pointer-events: none;
    box-shadow: 0 12px 32px rgba(0, 0, 0, 0.45);
}

#overview .exclude-oa-btn--has-tooltip:hover::before {
    content: '';
    position: absolute;
    bottom: calc(100% + 4px);
    right: 20px;
    border: 5px solid transparent;
    border-top-color: rgba(12, 12, 16, 0.98);
    z-index: 101;
    pointer-events: none;
}

/* Hide screenshot on token markets (gradient borders break capture) */
#overview #overview-main-charts-screenshot-section .screenshot-btn {
    display: none !important;
}

/* Landing redesign: no screenshot buttons on holder growth */
#overview #overview-holder-growth-screenshot-section .screenshot-btn {
    display: none !important;
}

/* ── Section intros ── */
#overview .section-intro {
    max-width: var(--overview-max);
    margin: 0 auto 32px;
    padding: 0;
    text-align: center;
}

#overview .section-intro__title {
    font-size: clamp(1.625rem, 3vw, 2.125rem);
    margin: 0 0 12px;
    color: #fff;
}

#overview .section-intro__desc {
    font-size: 0.9375rem;
    line-height: 1.65;
    color: var(--overview-muted);
    margin: 0 auto;
    max-width: 640px;
}

#overview .overview-section-block {
    max-width: var(--overview-max);
    margin: 0 auto var(--overview-section-gap);
    padding: 0 20px;
}

/* ── Scroll reveal ── */
#overview .overview-reveal {
    opacity: 0;
    transform: translateY(24px);
    transition: opacity 0.65s ease, transform 0.65s ease;
}

#overview .overview-reveal.is-visible {
    opacity: 1;
    transform: translateY(0);
}

@media (prefers-reduced-motion: reduce) {
    #overview .overview-reveal {
        opacity: 1;
        transform: none;
        transition: none;
    }
}

/* ── Holder growth: 2 per row only ── */
#overview .overview-holder-growth-grid {
    grid-template-columns: repeat(2, 1fr) !important;
    gap: 16px !important;
    max-width: none !important;
}

#overview .overview-holder-growth-grid .holder-growth-card {
    padding: 18px;
}

#overview .overview-holder-growth-grid .holder-chart-container {
    height: 150px;
}

#overview .holder-growth-section {
    margin: 0 !important;
    padding: 0 !important;
}

#overview .holder-growth-header {
    align-items: flex-start !important;
}

#overview .holder-token-info {
    align-items: flex-start !important;
}

#overview .holder-token-logo {
    align-items: flex-start !important;
    justify-content: flex-start !important;
}

#overview .hex-holder-card .overview-hex-holder-info {
    display: none !important;
}

/* ── Social analytics: tighter to match other sections ── */
#overview .social-analytics-section {
    margin: 0 auto !important;
    padding: 0 !important;
    max-width: 100% !important;
}

#overview .social-metrics-box {
    margin: 0 0 16px 0 !important;
    padding: 18px 20px !important;
    border-radius: 14px !important;
}

#overview .social-stats {
    margin-bottom: 0 !important;
    gap: 12px !important;
}

#overview .social-stat {
    min-width: 140px !important;
    padding: 10px 12px !important;
}

#overview .social-stat-label {
    font-size: 0.75rem !important;
}

#overview .social-stat-value {
    font-size: 1.1rem !important;
}

#overview .social-charts-grid {
    gap: 16px !important;
}

#overview .social-charts-grid .chart-container {
    padding: 14px 16px !important;
    border-radius: 14px !important;
}

#overview .social-charts-grid .social-chart-title {
    font-size: 0.875rem !important;
    margin-bottom: 6px !important;
}

#overview .social-charts-grid .chart-wrapper {
    height: 170px !important;
    max-height: 170px !important;
}

#overview .social-charts-grid .chart-wrapper canvas {
    max-height: 170px !important;
}

/* ── Get Started: four columns on one row ── */
#overview .overview-onboarding {
    max-width: var(--overview-max);
    margin: 0 auto var(--overview-section-gap);
    padding: 0 20px;
}

#overview .overview-onboarding__grid {
    display: grid;
    grid-template-columns: repeat(4, 1fr);
    gap: 12px;
    align-items: stretch;
}

#overview .overview-onboarding__card {
    border-radius: 14px;
    padding: 16px;
    display: flex;
    flex-direction: column;
    text-align: left;
    background: rgba(255, 255, 255, 0.02);
    border: 1px solid var(--overview-border);
    min-height: 0;
}

#overview .overview-onboarding__card--buy .overview-buy-links {
    display: flex;
    flex-direction: column;
    gap: 6px;
}

#overview .overview-onboarding__card h3 {
    font-size: 1.0625rem;
    margin: 0 0 6px;
    color: #fff;
}

#overview .overview-onboarding__card p {
    font-size: 0.8125rem;
    line-height: 1.5;
    color: var(--overview-muted);
    margin: 0;
    flex: 1;
}

#overview .overview-onboarding__card-footer {
    margin-top: 12px;
}

#overview .overview-buy-link {
    display: flex;
    align-items: center;
    gap: 8px;
    padding: 7px 10px;
    background: rgba(0, 0, 0, 0.25);
    border: 1px solid rgba(255, 255, 255, 0.08);
    border-radius: 8px;
    text-decoration: none;
    color: #fff;
    transition: border-color 0.2s ease, background 0.2s ease;
}

#overview .overview-buy-link:hover {
    border-color: rgba(255, 255, 255, 0.16);
    background: rgba(255, 255, 255, 0.06);
}

#overview .overview-buy-link__logo {
    width: 28px;
    height: 28px;
    flex-shrink: 0;
    border-radius: 6px;
    overflow: hidden;
}

#overview .overview-buy-link__img {
    width: 100%;
    height: 100%;
    object-fit: contain;
}

#overview .overview-buy-link__name {
    flex: 1;
    font-size: 0.75rem;
    font-weight: 500;
    line-height: 1.3;
    text-align: left;
}

#overview .overview-buy-link__icon {
    font-size: 0.65rem;
    color: rgba(255, 255, 255, 0.3);
}

#overview .overview-onboarding__btn {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    min-height: 36px;
    padding: 0 14px;
    font-family: var(--overview-font);
    font-size: 0.75rem;
    font-weight: 600;
    border-radius: 8px;
    cursor: pointer;
    text-decoration: none;
    transition: background 0.2s ease, border-color 0.2s ease, box-shadow 0.2s ease;
    width: 100%;
    box-sizing: border-box;
}

#overview .overview-onboarding__btn--accent {
    background: rgba(255, 255, 255, 0.08);
    border: 1px solid rgba(255, 255, 255, 0.16);
    color: #fff;
}

#overview .overview-onboarding__btn--accent:hover {
    background: rgba(255, 255, 255, 0.12);
    border-color: rgba(255, 255, 255, 0.24);
    box-shadow: none;
}

#overview .overview-onboarding__btn--outline {
    background: rgba(255, 255, 255, 0.04);
    border: 1px solid rgba(255, 255, 255, 0.14);
    color: rgba(255, 255, 255, 0.9);
}

#overview .overview-onboarding__btn--outline:hover {
    background: rgba(255, 255, 255, 0.08);
    border-color: rgba(255, 255, 255, 0.22);
}

#overview .overview-onboarding__actions {
    display: flex;
    flex-direction: column;
    gap: 6px;
}

#overview .overview-onboarding__card--wallet .overview-onboarding__wallet-grid {
    display: grid;
    grid-template-columns: repeat(2, 1fr);
    gap: 6px;
    margin-top: 10px;
}

#overview .overview-onboarding__card--wallet .wallet-token-btn {
    padding: 8px 6px;
    min-height: 0;
}

#overview .overview-onboarding__card--wallet .wallet-token-logo {
    width: 28px;
    height: 28px;
}

#overview .overview-onboarding__wallet-grid .wallet-token-btn {
    flex: 0 1 auto;
    min-width: 0;
}

/* ── Articles (no gradient panel) ── */
#overview .overview-articles-panel {
    max-width: var(--overview-max);
    margin: 0 auto var(--overview-section-gap);
    padding: 0 20px !important;
    border: none;
    background: transparent;
    border-radius: 0;
}

#overview .overview-articles-panel h2 {
    font-size: clamp(1.375rem, 2.5vw, 1.75rem);
    text-align: center;
}

#overview .overview-articles-panel > p {
    text-align: center;
    color: var(--overview-muted);
    font-size: 0.875rem;
    margin-bottom: 20px;
}

#overview .overview-articles-panel .recent-articles-grid {
    grid-template-columns: repeat(3, 1fr) !important;
    gap: 16px !important;
    margin-top: 0 !important;
}

#overview .overview-articles-panel .article-card {
    padding: 16px 18px !important;
    border-radius: 10px !important;
    background: rgba(255, 255, 255, 0.03) !important;
    border: 1px solid var(--overview-border) !important;
}

#overview .overview-articles-panel .article-card:hover {
    border-color: rgba(255, 255, 255, 0.16) !important;
    transform: translateY(-1px);
    box-shadow: 0 6px 20px rgba(0, 0, 0, 0.2) !important;
}

#overview .overview-articles-panel .article-card-title,
#overview .overview-articles-panel .article-card h3 {
    font-size: 1rem !important;
    margin-bottom: 8px !important;
    line-height: 1.35 !important;
}

#overview .overview-articles-panel .article-card-description {
    font-size: 0.8125rem !important;
    line-height: 1.5 !important;
    margin-bottom: 10px !important;
    display: -webkit-box;
    -webkit-line-clamp: 2;
    -webkit-box-orient: vertical;
    overflow: hidden;
}

#overview .overview-articles-panel .article-card-category {
    font-size: 0.625rem !important;
    letter-spacing: 0.06em;
    color: rgba(255, 255, 255, 0.45) !important;
    margin-bottom: 6px !important;
}

#overview .overview-articles-panel .article-card-meta {
    font-size: 0.75rem !important;
    padding-top: 10px !important;
}

/* ── FAQ panel (compressed width — matches HEX stats pattern) ── */
#overview .faq-section.overview-faq-panel {
    background: transparent !important;
    padding: 0 20px var(--overview-section-gap) !important;
    margin-top: 0 !important;
    margin-bottom: 0 !important;
    border-top: none !important;
    max-width: var(--overview-max);
    margin-left: auto;
    margin-right: auto;
}

#overview .overview-faq-panel .faq-container {
    position: relative;
    max-width: 760px;
    margin-left: auto;
    margin-right: auto;
    background:
        radial-gradient(ellipse 80% 60% at 50% 0%, rgba(13, 115, 255, 0.08), transparent 60%),
        radial-gradient(ellipse 50% 40% at 100% 80%, rgba(140, 3, 252, 0.05), transparent 50%),
        rgba(255, 255, 255, 0.01);
    border: 1px solid var(--overview-border);
    border-radius: 20px;
    padding: 48px 28px 56px;
}

#overview .overview-faq-panel .faq-title {
    font-size: clamp(1.625rem, 3vw, 2.125rem);
    margin-bottom: 10px;
    text-align: center;
}

#overview .overview-faq-panel .faq-subtitle {
    color: var(--overview-muted);
    font-size: 0.9375rem;
    margin-bottom: 32px;
    text-align: center;
}

#overview .overview-faq-panel .faq-accordion {
    gap: 8px;
}

#overview .overview-faq-panel .faq-item {
    background: rgba(0, 0, 0, 0.3) !important;
    border: 1px solid rgba(255, 255, 255, 0.08) !important;
    border-radius: 10px !important;
    border-left: 2px solid transparent !important;
    transition: border-color 0.2s ease, background 0.2s ease !important;
}

#overview .overview-faq-panel .faq-item:hover {
    border-left-color: rgba(0, 229, 255, 0.5) !important;
    border-color: rgba(255, 255, 255, 0.12) !important;
    box-shadow: none !important;
}

#overview .overview-faq-panel .faq-question {
    padding: 18px 20px;
    font-family: var(--overview-font);
    font-size: 0.9375rem;
    font-weight: 600;
}

#overview .overview-faq-panel .faq-question:hover {
    color: #fff !important;
    background: rgba(255, 255, 255, 0.03);
}

#overview .overview-faq-panel .faq-question[aria-expanded="true"] {
    background: rgba(0, 229, 255, 0.04) !important;
    color: #fff !important;
}

#overview .overview-faq-panel .faq-icon {
    color: rgba(255, 255, 255, 0.35) !important;
}

#overview .overview-faq-panel .faq-answer {
    background: transparent !important;
}

#overview .overview-faq-panel .faq-answer p {
    padding: 0 20px 18px;
    color: var(--overview-muted);
    font-size: 0.875rem;
    line-height: 1.7;
}

#overview .overview-faq-panel .faq-answer a {
    color: rgba(0, 229, 255, 0.85) !important;
    text-decoration: underline;
    text-underline-offset: 2px;
}

#overview .overview-faq-panel .faq-answer a:hover {
    color: #fff !important;
}

/* ── Mobile ── */
@media (max-width: 1100px) {
    #overview .overview-onboarding__grid {
        grid-template-columns: repeat(2, 1fr);
    }
}

@media (max-width: 900px) {
    #overview .overview-holder-growth-grid {
        grid-template-columns: 1fr !important;
    }

    #overview .overview-onboarding__grid {
        grid-template-columns: 1fr;
    }

    #overview .overview-articles-panel .recent-articles-grid {
        grid-template-columns: 1fr !important;
    }
}

@media (max-width: 768px) {
    #overview .overview-section-nav {
        display: none;
    }

    #overview {
        --overview-section-gap: 56px;
    }

    #overview .overview-header {
        padding: 130px 16px 48px;
    }

    #overview .overview-header h1 {
        font-size: clamp(2rem, 9vw, 2.5rem);
        margin-bottom: 14px;
    }

    #overview .hero-eyebrow {
        font-size: 0.625rem;
        margin-bottom: 12px;
    }

    #overview .hero-subtitle {
        font-size: 0.875rem;
        line-height: 1.65;
        max-width: 100%;
    }

    #overview .charts-controls-row {
        justify-content: center;
    }

    #overview .charts-controls-row .time-range-selector {
        justify-content: center;
    }

    #overview .overview-articles-panel .recent-articles-grid {
        grid-template-columns: 1fr !important;
    }

    #overview .exclude-oa-btn--has-tooltip:hover::after {
        right: auto;
        left: 0;
    }

    #overview .hero-cta-row {
        flex-direction: column;
        align-items: stretch;
        padding: 0 8px;
    }

    #overview .hero-cta-btn {
        width: 100%;
    }

    #overview .overview-faq-panel .faq-container {
        padding: 32px 18px 40px;
    }
}
