/* ============================================================
   ECOSYSTEM PAGE — wallets, marketplaces, integration partners.
   Inherits design tokens from tokens.css + components.css.
   Layout: hero banner + 3 section grids + closing CTA.
   ============================================================ */

.v3-eco-main {
    background: var(--v3-bg, #050608);
    min-height: 100vh;
    padding-bottom: 80px;
}

/* ---- Hero ---- */
.v3-eco-hero {
    padding: 96px 0 56px;
    position: relative;
}
.v3-eco-hero .container {
    max-width: 920px;
    margin: 0 auto;
    padding: 0 24px;
    text-align: center;
}
.v3-eco-eyebrow {
    display: inline-block;
    font-family: var(--v3-mono, 'JetBrains Mono', monospace);
    font-size: 11px;
    font-weight: 600;
    letter-spacing: 0.16em;
    text-transform: uppercase;
    color: var(--v3-accent, #25aae1);
    margin-bottom: 18px;
}
.v3-eco-title {
    font-family: var(--v3-sans, 'Satoshi', system-ui, sans-serif);
    font-size: clamp(36px, 6vw, 56px);
    font-weight: 700;
    line-height: 1.1;
    color: var(--v3-ink, #e8eaf0);
    margin: 0 0 22px;
    letter-spacing: -0.02em;
}
.v3-eco-title em {
    font-style: normal;
    background: linear-gradient(135deg, var(--v3-accent, #25aae1), var(--v3-accent-soft, #5dc8f0));
    -webkit-background-clip: text;
    background-clip: text;
    -webkit-text-fill-color: transparent;
    color: transparent;
}
.v3-eco-lede {
    font-family: var(--v3-sans, 'Satoshi', system-ui, sans-serif);
    font-size: 16px;
    line-height: 1.65;
    color: rgba(255, 255, 255, 0.65);
    max-width: 640px;
    margin: 0 auto;
}
.v3-eco-lede code {
    font-family: var(--v3-mono, 'JetBrains Mono', monospace);
    font-size: 14px;
    padding: 1px 6px;
    background: rgba(37, 170, 225, 0.10);
    color: var(--v3-accent-soft, #5dc8f0);
    border-radius: 4px;
}

/* ---- Section ---- */
.v3-eco-section {
    padding: 48px 0;
}
.v3-eco-section .container {
    max-width: 1140px;
    margin: 0 auto;
    padding: 0 24px;
}
.v3-eco-section-head {
    margin-bottom: 28px;
    max-width: 720px;
}
.v3-eco-section-title {
    font-family: var(--v3-mono, 'JetBrains Mono', monospace);
    font-size: 13px;
    font-weight: 700;
    letter-spacing: 0.14em;
    text-transform: uppercase;
    color: var(--v3-ink, #e8eaf0);
    margin: 0 0 8px;
}
.v3-eco-section-sub {
    font-size: 14px;
    color: rgba(255, 255, 255, 0.55);
    line-height: 1.55;
    margin: 0;
}
.v3-eco-section-sub code {
    font-family: var(--v3-mono, 'JetBrains Mono', monospace);
    font-size: 13px;
    padding: 0 5px;
    background: rgba(37, 170, 225, 0.08);
    color: var(--v3-accent-soft, #5dc8f0);
    border-radius: 3px;
}

/* ---- Card grid (3-up desktop, 2-up tablet, 1-up mobile) ---- */
.v3-eco-grid {
    list-style: none;
    margin: 0;
    padding: 0;
    display: grid;
    grid-template-columns: repeat(auto-fill, minmax(320px, 1fr));
    gap: 16px;
}

/* ---- Card ---- */
.v3-eco-card {
    display: grid;
    grid-template-columns: 48px 1fr auto;
    align-items: center;
    gap: 14px;
    padding: 18px;
    border-radius: 14px;
    background: rgba(255, 255, 255, 0.015);
    border: 1px solid rgba(255, 255, 255, 0.06);
    text-decoration: none;
    color: inherit;
    transition: background-color 0.18s cubic-bezier(0.22, 1, 0.36, 1),
                border-color 0.18s cubic-bezier(0.22, 1, 0.36, 1),
                transform 0.18s cubic-bezier(0.22, 1, 0.36, 1),
                box-shadow 0.18s cubic-bezier(0.22, 1, 0.36, 1);
}
.v3-eco-card:hover {
    background: rgba(37, 170, 225, 0.04);
    border-color: rgba(37, 170, 225, 0.28);
    transform: translateY(-2px);
    box-shadow:
        0 12px 24px -10px rgba(0, 0, 0, 0.45),
        0 0 20px -4px rgba(37, 170, 225, 0.18);
}
.v3-eco-card:focus-visible {
    outline: 2px solid var(--v3-accent, #25aae1);
    outline-offset: 3px;
}

.v3-eco-card-icon {
    width: 48px;
    height: 48px;
    border-radius: 10px;
    background: rgba(255, 255, 255, 0.04);
    border: 1px solid rgba(255, 255, 255, 0.06);
    overflow: hidden;
    display: flex;
    align-items: center;
    justify-content: center;
    flex-shrink: 0;
}
.v3-eco-card-icon img {
    width: 100%;
    height: 100%;
    object-fit: cover;
}

.v3-eco-card-body {
    min-width: 0;
}
.v3-eco-card-name {
    font-family: var(--v3-sans, 'Satoshi', system-ui, sans-serif);
    font-size: 15px;
    font-weight: 600;
    color: var(--v3-ink, #e8eaf0);
    margin-bottom: 4px;
    white-space: nowrap;
    overflow: hidden;
    text-overflow: ellipsis;
}
.v3-eco-card-meta {
    font-family: var(--v3-mono, 'JetBrains Mono', monospace);
    font-size: 11px;
    font-weight: 500;
    color: rgba(255, 255, 255, 0.40);
    letter-spacing: 0.02em;
}
.v3-eco-card-desc {
    font-size: 12.5px;
    color: rgba(255, 255, 255, 0.55);
    line-height: 1.5;
    margin: 0;
    display: -webkit-box;
    -webkit-line-clamp: 2;
    line-clamp: 2;
    -webkit-box-orient: vertical;
    overflow: hidden;
}

.v3-eco-card-arr {
    font-family: var(--v3-mono, 'JetBrains Mono', monospace);
    font-size: 18px;
    color: rgba(255, 255, 255, 0.30);
    transition: color 0.18s ease, transform 0.18s ease;
    flex-shrink: 0;
}
.v3-eco-card:hover .v3-eco-card-arr {
    color: var(--v3-accent, #25aae1);
    transform: translateX(2px);
}

/* ---- Closing CTA ---- */
.v3-eco-cta {
    padding: 64px 0 32px;
}
.v3-eco-cta .container {
    max-width: 1140px;
    margin: 0 auto;
    padding: 0 24px;
}
.v3-eco-cta-card {
    display: flex;
    flex-direction: row;
    align-items: center;
    gap: 32px;
    padding: 32px 40px;
    border-radius: 18px;
    background: linear-gradient(135deg, rgba(37, 170, 225, 0.06), rgba(176, 140, 255, 0.04));
    border: 1px solid rgba(37, 170, 225, 0.18);
    box-shadow:
        inset 0 1px 0 rgba(255, 255, 255, 0.06),
        0 12px 28px -10px rgba(0, 0, 0, 0.4);
}
.v3-eco-cta-title {
    font-family: var(--v3-sans, 'Satoshi', system-ui, sans-serif);
    font-size: clamp(22px, 3vw, 30px);
    font-weight: 700;
    line-height: 1.2;
    color: var(--v3-ink, #e8eaf0);
    margin: 12px 0 10px;
}
.v3-eco-cta-title em {
    font-style: normal;
    background: linear-gradient(135deg, var(--v3-accent, #25aae1), var(--v3-accent-soft, #5dc8f0));
    -webkit-background-clip: text;
    background-clip: text;
    -webkit-text-fill-color: transparent;
    color: transparent;
}
.v3-eco-cta-sub {
    font-size: 14px;
    color: rgba(255, 255, 255, 0.60);
    line-height: 1.55;
    margin: 0;
    max-width: 520px;
}
.v3-eco-cta-sub code {
    font-family: var(--v3-mono, 'JetBrains Mono', monospace);
    font-size: 13px;
    padding: 1px 5px;
    background: rgba(37, 170, 225, 0.10);
    color: var(--v3-accent-soft, #5dc8f0);
    border-radius: 3px;
}
.v3-eco-cta-actions {
    display: flex;
    gap: 12px;
    flex-shrink: 0;
}

/* ---- Mobile ---- */
@media (max-width: 720px) {
    .v3-eco-hero { padding: 64px 0 36px; }
    .v3-eco-section { padding: 32px 0; }
    .v3-eco-cta-card {
        flex-direction: column;
        align-items: flex-start;
        padding: 24px;
    }
    .v3-eco-cta-actions {
        width: 100%;
        flex-direction: column;
    }
    .v3-eco-cta-actions .btn {
        width: 100%;
        text-align: center;
    }
}

/* ============================================================
   Header "Launch App" CTA — replaces the Wallet Kit Connect
   button on this static page (audit §2.1).  Filled pill that
   matches the site's accent language.  Tactile feedback added
   per audit §2.2.                                            */
.v3-eco-launch-cta {
    display: inline-flex;
    align-items: center;
    gap: 8px;
    padding: 8px 16px;
    border-radius: 999px;
    background: linear-gradient(135deg, #25aae1 0%, #5dc8f0 100%);
    color: #ffffff !important;
    font-weight: 600;
    font-size: 14px;
    text-decoration: none !important;
    border: 1px solid rgba(255, 255, 255, 0.10);
    box-shadow: 0 4px 14px rgba(37, 170, 225, 0.32);
    transition: transform 120ms ease, box-shadow 120ms ease, filter 120ms ease;
    -webkit-tap-highlight-color: transparent;
}
.v3-eco-launch-cta:hover {
    filter: brightness(1.06);
    box-shadow: 0 6px 20px rgba(37, 170, 225, 0.44);
    text-decoration: none !important;
}
.v3-eco-launch-cta:active {
    transform: scale(0.97);
    box-shadow: 0 2px 8px rgba(37, 170, 225, 0.28);
}
.v3-eco-launch-cta i {
    font-size: 11px;
    transition: transform 120ms ease;
}
.v3-eco-launch-cta:hover i { transform: translateX(2px); }

/* Audit §2.2 — Tactile click feedback on partner cards + CTA row buttons.
   Missing on ecosystem while search / mydomains had it.                */
.v3-eco-card:active {
    transform: scale(0.98);
}
.v3-eco-cta-actions .btn:active {
    transform: scale(0.98);
}
.v3-eco-card,
.v3-eco-cta-actions .btn {
    transition: transform 120ms ease, background 140ms ease, border-color 140ms ease;
}
