/* ============================================================
   Exodus — product pages + shared extras
   ============================================================ */

/* ---- platform tiles (home card art + sections) ---- */
.plat-row {
    display: flex;
    flex-wrap: wrap;
    gap: 8px;
}

.plat {
    font-family: var(--f-mono);
    font-size: 12px;
    letter-spacing: .04em;
    padding: 8px 14px;
    border-radius: 10px;
    background: var(--surface-3);
    border: 1px solid var(--border);
    color: var(--text);
    display: inline-flex;
    align-items: center;
    gap: 8px;
}

.plat::before {
    content: "";
    width: 6px;
    height: 6px;
    border-radius: 50%;
    background: var(--cyan);
    box-shadow: 0 0 8px var(--cyan);
}

.card__art--plat {
    display: flex;
    flex-direction: column;
    justify-content: center;
    gap: 16px;
    padding: 26px;
    height: auto;
    min-height: 150px;
}

.art-lbl {
    font-family: var(--f-mono);
    font-size: 11px;
    letter-spacing: .12em;
    text-transform: uppercase;
    color: var(--muted);
}

/* device chips (Ledger / Trezor) */
.hw-chips {
    display: flex;
    gap: 12px;
}

.hw-chip {
    flex: 1;
    border-radius: 14px;
    padding: 16px;
    text-align: center;
    background: var(--surface-3);
    border: 1px solid var(--border-2);
    display: flex;
    flex-direction: column;
    align-items: center;
    gap: 10px;
}

.hw-chip .dev {
    width: 64px;
    height: 40px;
    border-radius: 9px;
    position: relative;
    background: linear-gradient(160deg, #1c2740, #0c1426);
    border: 1px solid rgba(255, 255, 255, .16);
    display: grid;
    place-items: center;
    box-shadow: inset 0 1px 0 rgba(255, 255, 255, .12), 0 8px 18px -8px rgba(0, 0, 0, .6);
}

.hw-chip .dev::after {
    content: "";
    width: 34px;
    height: 16px;
    border-radius: 4px;
    background: radial-gradient(120% 120% at 50% 0%, #0b3050, #06121f);
    border: 1px solid rgba(34, 211, 238, .4);
    box-shadow: 0 0 14px -4px rgba(34, 211, 238, .5);
}

.hw-chip b {
    font-family: var(--f-display);
    font-size: 14px;
}

.hw-chip span {
    font-family: var(--f-mono);
    font-size: 10.5px;
    color: var(--muted);
    letter-spacing: .06em;
}

/* ============================================================
   HOMEPAGE platforms band
   ============================================================ */
.platforms {
    background: var(--bg-2);
    border-block: 1px solid var(--border);
}

.plat-grid {
    display: grid;
    grid-template-columns: repeat(5, 1fr);
    gap: 16px;
    margin-top: 48px;
}

.plat-tile {
    border-radius: var(--radius);
    padding: 28px 22px;
    text-align: center;
    background: var(--surface);
    border: 1px solid var(--border);
    transition: transform .35s var(--ease), border-color .35s, background .35s;
}

.plat-tile:hover {
    transform: translateY(-5px);
    border-color: var(--border-2);
    background: var(--surface-2);
}

.plat-tile .pic {
    width: 48px;
    height: 48px;
    margin: 0 auto 16px;
    display: grid;
    place-items: center;
    color: var(--cyan);
}

.plat-tile b {
    font-family: var(--f-display);
    font-size: 16px;
    display: block;
    margin-bottom: 5px;
}

.plat-tile span {
    font-size: 12.5px;
    color: var(--muted);
}

/* simple geometric platform glyphs */
.pg {
    position: relative;
    color: var(--cyan);
}

.pg--phone {
    width: 24px;
    height: 38px;
    border: 2.5px solid currentColor;
    border-radius: 6px;
}

.pg--phone::after {
    content: "";
    position: absolute;
    bottom: 4px;
    left: 50%;
    transform: translateX(-50%);
    width: 8px;
    height: 2px;
    background: currentColor;
    border-radius: 2px;
}

.pg--web {
    width: 36px;
    height: 36px;
    border: 2.5px solid currentColor;
    border-radius: 50%;
}

.pg--web::after {
    content: "";
    position: absolute;
    inset: -2.5px 8px;
    border-left: 2.5px solid currentColor;
    border-right: 2.5px solid currentColor;
    border-radius: 50%;
}

.pg--ext {
    width: 34px;
    height: 30px;
    border: 2.5px solid currentColor;
    border-radius: 7px;
}

.pg--ext::after {
    content: "";
    position: absolute;
    top: -7px;
    left: 8px;
    right: 8px;
    height: 7px;
    border: 2.5px solid currentColor;
    border-bottom: none;
    border-radius: 5px 5px 0 0;
}

.pg--desk {
    width: 40px;
    height: 28px;
    border: 2.5px solid currentColor;
    border-radius: 6px;
}

.pg--desk::after {
    content: "";
    position: absolute;
    bottom: -8px;
    left: 50%;
    transform: translateX(-50%);
    width: 16px;
    height: 4px;
    background: currentColor;
    border-radius: 0 0 3px 3px;
}

.pg--api {
    width: 34px;
    height: 34px;
}

.pg--api::before,
.pg--api::after {
    content: "";
    position: absolute;
    font-family: var(--f-mono);
    font-weight: 700;
    font-size: 22px;
    color: currentColor;
    top: 50%;
    transform: translateY(-50%);
}

.pg--api::before {
    content: "</";
    left: -2px;
}

.pg--api::after {
    content: ">";
    right: -2px;
}

/* ============================================================
   DETAIL PAGE — hero
   ============================================================ */
.subpage {
    scroll-padding-top: 90px;
}

.phero {
    position: relative;
    padding: 160px 0 80px;
    overflow: hidden;
}

.phero__grid {
    position: absolute;
    inset: 0;
    z-index: 0;
    pointer-events: none;
    background-image:
        linear-gradient(rgba(255, 255, 255, .03) 1px, transparent 1px),
        linear-gradient(90deg, rgba(255, 255, 255, .03) 1px, transparent 1px);
    background-size: 46px 46px;
    mask-image: radial-gradient(ellipse 90% 70% at 30% 30%, #000 30%, transparent 75%);
    -webkit-mask-image: radial-gradient(ellipse 90% 70% at 30% 30%, #000 30%, transparent 75%);
}

.breadcrumb {
    display: flex;
    align-items: center;
    gap: 9px;
    flex-wrap: wrap;
    white-space: nowrap;
    font-family: var(--f-mono);
    font-size: 12px;
    color: var(--muted-2);
    letter-spacing: .04em;
    margin-bottom: 26px;
    position: relative;
    z-index: 2;
}

.breadcrumb a {
    color: var(--muted);
    transition: color .2s;
}

.breadcrumb a:hover {
    color: var(--text);
}

.breadcrumb .sep {
    opacity: .5;
}

.phero__inner {
    position: relative;
    z-index: 2;
    max-width: 760px;
}

.phero h1 {
    font-size: clamp(38px, 5.4vw, 64px);
    margin-top: 18px;
}

.phero__sub {
    color: var(--muted);
    font-size: clamp(16px, 1.5vw, 20px);
    max-width: 52ch;
    margin-top: 24px;
}

.phero__cta {
    display: flex;
    gap: 14px;
    margin-top: 34px;
    flex-wrap: wrap;
}

.phero__meta {
    display: flex;
    gap: 30px;
    flex-wrap: wrap;
    margin-top: 46px;
}

.phero__meta .m {}

.phero__meta b {
    font-family: var(--f-display);
    font-size: 26px;
    display: block;
    letter-spacing: -.02em;
}

.phero__meta span {
    font-family: var(--f-mono);
    font-size: 11.5px;
    color: var(--muted);
    letter-spacing: .06em;
}

/* accent theming */
:root {
    --acc: var(--cyan);
    --acc-soft: var(--cyan-soft);
}

[data-accent="cyan"] {
    --acc: var(--cyan);
    --acc-soft: var(--cyan-soft);
}

[data-accent="blue"] {
    --acc: var(--blue);
    --acc-soft: var(--blue-soft);
}

[data-accent="violet"] {
    --acc: var(--violet);
    --acc-soft: var(--violet-soft);
}

.acc-glow {
    position: absolute;
    border-radius: 50%;
    filter: blur(90px);
    opacity: .5;
    z-index: 0;
    pointer-events: none;
}

/* ============================================================
   DETAIL PAGE — feature rows
   ============================================================ */
.frow {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 64px;
    align-items: center;
    padding: 64px 0;
    border-bottom: 1px solid var(--border);
}

.frow:last-child {
    border-bottom: none;
}

.frow__txt .tag {
    font-family: var(--f-mono);
    font-size: 12px;
    letter-spacing: .16em;
    text-transform: uppercase;
    color: var(--acc);
}

.frow__txt h3 {
    font-size: clamp(26px, 3vw, 36px);
    margin: 14px 0 16px;
}

.frow__txt p {
    color: var(--muted);
    font-size: 16px;
    max-width: 46ch;
}

.frow__list {
    list-style: none;
    margin-top: 24px;
    display: flex;
    flex-direction: column;
    gap: 13px;
}

.frow__list li {
    display: flex;
    gap: 12px;
    align-items: flex-start;
    font-size: 14.5px;
    color: var(--text);
}

.frow__list li i {
    width: 20px;
    height: 20px;
    flex: none;
    margin-top: 1px;
    border-radius: 6px;
    background: var(--acc-soft);
    display: grid;
    place-items: center;
}

.frow__list li i::after {
    content: "";
    width: 8px;
    height: 5px;
    border-left: 2px solid var(--acc);
    border-bottom: 2px solid var(--acc);
    transform: rotate(-45deg) translateY(-1px);
}

.frow--rev .frow__txt {
    order: 2;
}

/* media panel */
.fmedia {
    position: relative;
    border-radius: var(--radius-lg);
    overflow: hidden;
    min-height: 340px;
    background:
        radial-gradient(120% 120% at 80% 0%, var(--acc-soft), transparent 55%),
        linear-gradient(160deg, #0c1325, #070b16);
    border: 1px solid var(--border);
    display: grid;
    place-items: center;
    padding: 34px;
}

/* chain pills */
.chiplist {
    display: flex;
    flex-wrap: wrap;
    gap: 9px;
    justify-content: center;
    max-width: 420px;
}

.chip {
    font-family: var(--f-mono);
    font-size: 12.5px;
    padding: 9px 14px;
    border-radius: 999px;
    background: var(--surface-3);
    border: 1px solid var(--border-2);
    color: var(--text);
    transition: transform .25s var(--ease), border-color .25s;
}

.chip:hover {
    transform: translateY(-2px);
    border-color: var(--acc);
}

/* swap mini card */
.swapcard {
    width: 300px;
    max-width: 100%;
    background: var(--surface-2);
    border: 1px solid var(--border-2);
    border-radius: 20px;
    padding: 18px;
    box-shadow: 0 30px 70px -40px rgba(0, 0, 0, .9);
}

.swaprow {
    background: var(--surface);
    border: 1px solid var(--border);
    border-radius: 14px;
    padding: 14px 16px;
    display: flex;
    align-items: center;
    justify-content: space-between;
}

.swaprow+.swaprow {
    margin-top: 10px;
}

.swaprow .l {
    font-family: var(--f-mono);
    font-size: 11px;
    color: var(--muted);
    letter-spacing: .08em;
    text-transform: uppercase;
}

.swaprow .a {
    font-family: var(--f-display);
    font-size: 22px;
    font-weight: 600;
}

.swaprow .t {
    display: flex;
    align-items: center;
    gap: 8px;
    font-weight: 600;
    font-size: 14px;
}

.swaprow .t .dot {
    width: 24px;
    height: 24px;
    border-radius: 50%;
}

.swap-arrow {
    width: 34px;
    height: 34px;
    border-radius: 50%;
    background: var(--surface-3);
    border: 1px solid var(--border-2);
    display: grid;
    place-items: center;
    margin: -10px auto;
    position: relative;
    z-index: 2;
    color: var(--acc);
}

.swapcard .go {
    margin-top: 14px;
    width: 100%;
    text-align: center;
    padding: 13px;
    border-radius: 12px;
    background: linear-gradient(100deg, var(--blue), var(--cyan));
    color: #04121c;
    font-weight: 700;
    font-size: 14px;
}

/* trading screen mockup */
.trade {
    width: 100%;
    max-width: 460px;
    background: var(--bg-3);
    border: 1px solid var(--border-2);
    border-radius: 18px;
    overflow: hidden;
    box-shadow: 0 40px 90px -50px rgba(0, 0, 0, .9);
}

.trade__bar {
    display: flex;
    align-items: center;
    gap: 10px;
    padding: 14px 16px;
    border-bottom: 1px solid var(--border);
}

.trade__pair {
    font-family: var(--f-display);
    font-weight: 600;
    font-size: 16px;
}

.trade__px {
    font-family: var(--f-mono);
    font-size: 13px;
    color: #4ade80;
    margin-left: auto;
}

.trade__body {
    display: grid;
    grid-template-columns: 1.5fr 1fr;
    gap: 0;
}

.trade__chart {
    padding: 18px;
    border-right: 1px solid var(--border);
    position: relative;
    min-height: 170px;
    display: flex;
    align-items: flex-end;
    gap: 5px;
}

.trade__chart .bar {
    flex: 1;
    border-radius: 3px 3px 0 0;
    background: linear-gradient(180deg, var(--cyan), rgba(34, 211, 238, .15));
}

.trade__book {
    padding: 14px;
    display: flex;
    flex-direction: column;
    gap: 6px;
}

.trade__book .ord {
    display: flex;
    justify-content: space-between;
    font-family: var(--f-mono);
    font-size: 11px;
}

.trade__book .ord.sell {
    color: #f87171;
}

.trade__book .ord.buy {
    color: #4ade80;
}

.trade__book .mid {
    font-family: var(--f-display);
    font-weight: 700;
    font-size: 15px;
    text-align: center;
    padding: 6px 0;
    color: var(--text);
}

/* ============================================================
   DETAIL PAGE — spec / capability table
   ============================================================ */
.specs {
    margin-top: 50px;
    border: 1px solid var(--border);
    border-radius: var(--radius);
    overflow: hidden;
}

.specs__row {
    display: grid;
    grid-template-columns: 240px 1fr;
    gap: 20px;
    padding: 20px 26px;
    border-bottom: 1px solid var(--border);
    align-items: baseline;
}

.specs__row:last-child {
    border-bottom: none;
}

.specs__row:nth-child(odd) {
    background: var(--surface);
}

.specs__row dt {
    font-family: var(--f-mono);
    font-size: 12px;
    letter-spacing: .06em;
    text-transform: uppercase;
    color: var(--acc);
}

.specs__row dd {
    color: var(--text);
    font-size: 15px;
}

/* device gallery (hardware page) */
.dev-grid {
    display: grid;
    grid-template-columns: repeat(4, 1fr);
    gap: 16px;
    margin-top: 48px;
}

.dev-card {
    border-radius: var(--radius);
    padding: 26px 22px;
    background: var(--surface);
    border: 1px solid var(--border);
    text-align: center;
    transition: transform .35s var(--ease), border-color .35s;
}

.dev-card:hover {
    transform: translateY(-5px);
    border-color: var(--border-2);
}

.dev-card .vis {
    height: 96px;
    display: grid;
    place-items: center;
    margin-bottom: 18px;
}

.dev-card .vis .unit {
    width: 84px;
    height: 54px;
    border-radius: 11px;
    position: relative;
    background: linear-gradient(160deg, #1c2740, #0c1426);
    border: 1px solid rgba(255, 255, 255, .16);
    display: grid;
    place-items: center;
    box-shadow: inset 0 1px 0 rgba(255, 255, 255, .12), 0 16px 30px -16px rgba(0, 0, 0, .7);
}

.dev-card .vis .unit::after {
    content: "";
    width: 48px;
    height: 24px;
    border-radius: 5px;
    background: radial-gradient(120% 120% at 50% 0%, #0b3050, #06121f);
    border: 1px solid rgba(139, 92, 246, .45);
    box-shadow: 0 0 16px -4px rgba(139, 92, 246, .5);
}

.dev-card .vis .unit.tall {
    width: 50px;
    height: 74px;
}

.dev-card .vis .unit.tall::after {
    width: 30px;
    height: 40px;
}

.dev-card b {
    font-family: var(--f-display);
    font-size: 16px;
    display: block;
}

.dev-card span {
    font-family: var(--f-mono);
    font-size: 11px;
    color: var(--muted);
    letter-spacing: .04em;
    display: block;
    margin-top: 5px;
}

.dev-brand {
    font-family: var(--f-mono);
    font-size: 11px;
    letter-spacing: .12em;
    text-transform: uppercase;
    color: var(--acc);
    margin-bottom: 6px;
    display: block;
}

/* big CTA band reused */
.ctaband {
    text-align: center;
    max-width: 680px;
    margin: 0 auto;
}

.ctaband h2 {
    font-size: clamp(30px, 4vw, 48px);
}

.ctaband p {
    color: var(--muted);
    font-size: 17px;
    margin-top: 18px;
}

.ctaband .phero__cta {
    justify-content: center;
    margin-top: 32px;
}

@media (max-width:960px) {
    .plat-grid {
        grid-template-columns: repeat(3, 1fr);
    }

    .frow {
        grid-template-columns: 1fr;
        gap: 36px;
        padding: 48px 0;
    }

    .frow--rev .frow__txt {
        order: 0;
    }

    .fmedia {
        min-height: 280px;
    }

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

    .specs__row {
        grid-template-columns: 1fr;
        gap: 8px;
    }
}

@media (max-width:640px) {
    .plat-grid {
        grid-template-columns: 1fr 1fr;
    }

    .phero {
        padding: 130px 0 60px;
    }
}