/*
Theme Name: Crypto
Theme URI: https://wordpress.org
Author: Orkhan Chichitov
Author URI: https://wordpress.org
Description: A simple and clean WordPress theme for cryptocurrency-related websites. It features a modern design, responsive layout, and customizable options to create a unique online presence for your crypto business or blog.
Requires at least: 6.7
Tested up to: 6.9
Requires PHP: 7.2
Version: 2.0
License: GNU General Public License v2 or later
License URI: http://www.gnu.org/licenses/gpl-2.0.html
*/

/* =====================================================================
   ROOT VARIABLES — палитра «Сила»: графит · красный · белый
   ===================================================================== */
:root {
    --crypto-graphite: #1F2933;
    --crypto-graphite-dark: #141b22;
    --crypto-graphite-soft: #2c3946;
    --crypto-accent: #E63946;
    --crypto-accent-dark: #c62834;
    --crypto-accent-soft: rgba(230, 57, 70, 0.12);
    --crypto-bg: #F8F9FA;
    --crypto-surface: #ffffff;
    --crypto-text: #1F2933;
    --crypto-text-muted: #5b6672;
    --crypto-text-light: #c9d1d9;
    --crypto-border: #e3e7eb;
    --crypto-up: #15924a;
    --crypto-up-soft: rgba(21, 146, 74, 0.12);
    --crypto-radius: 18px;
    --crypto-radius-sm: 12px;
    --crypto-shadow: 0 10px 30px rgba(31, 41, 51, 0.08);
    --crypto-shadow-hover: 0 22px 48px rgba(31, 41, 51, 0.16);
    --crypto-section-y: 25px;
    --crypto-header-h: 72px;
    --crypto-font: "Inter", -apple-system, BlinkMacSystemFont, "Segoe UI", Roboto, Arial, sans-serif;
    --crypto-font-display: "Playfair Display", Georgia, "Times New Roman", serif;
    --crypto-ease: cubic-bezier(0.22, 0.61, 0.36, 1);
}

/* =====================================================================
   BASE
   ===================================================================== */
*,
*::before,
*::after {
    box-sizing: border-box;
}

html {
    scroll-behavior: smooth;
    -webkit-text-size-adjust: 100%;
}

body {
    margin: 0;
    font-family: var(--crypto-font);
    font-size: 16px;
    line-height: 1.65;
    color: var(--crypto-text);
    background: var(--crypto-bg);
    -webkit-font-smoothing: antialiased;
    overflow-x: hidden;
}

img {
    max-width: 100%;
    height: auto;
    display: block;
}

h1,
h2,
h3 {
    margin: 0;
    color: var(--crypto-graphite);
    line-height: 1.2;
}

p {
    margin: 0 0 14px;
}

p a {
    color: var(--crypto-accent);
    text-decoration: underline;
    text-underline-offset: 3px;
    font-weight: 600;
    transition: color 0.25s ease;
}

p a:hover {
    color: var(--crypto-accent-dark);
}

[id] {
    scroll-margin-top: calc(var(--crypto-header-h) + 20px);
}

.container {
    width: 100%;
    max-width: 1220px;
    margin: 0 auto;
    padding: 0 24px;
}

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

.icon {
    width: 22px;
    height: 22px;
    flex-shrink: 0;
}

/* =====================================================================
   SCROLL REVEAL
   ===================================================================== */
.has-reveal .reveal {
    opacity: 0;
    transform: translateY(28px);
    transition: opacity 0.7s var(--crypto-ease), transform 0.7s var(--crypto-ease), box-shadow 0.35s ease, border-color 0.35s ease;
}

.has-reveal .reveal.is-visible {
    opacity: 1;
    transform: none;
}

@media (prefers-reduced-motion: reduce) {
    html {
        scroll-behavior: auto;
    }

    .has-reveal .reveal {
        opacity: 1;
        transform: none;
    }

    *,
    *::before,
    *::after {
        animation-duration: 0.01ms !important;
        transition-duration: 0.01ms !important;
    }
}

/* =====================================================================
   BUTTONS
   ===================================================================== */
.btn {
    position: relative;
    display: inline-flex;
    align-items: center;
    justify-content: center;
    gap: 10px;
    padding: 15px 30px;
    border: 0;
    border-radius: 999px;
    font-family: var(--crypto-font);
    font-size: 16px;
    font-weight: 700;
    text-decoration: none;
    cursor: pointer;
    overflow: hidden;
    transition: transform 0.3s var(--crypto-ease), box-shadow 0.3s ease, background-color 0.3s ease;
}

.btn::after {
    content: "";
    position: absolute;
    top: 0;
    left: -80%;
    width: 50%;
    height: 100%;
    background: linear-gradient(120deg, transparent, rgba(255, 255, 255, 0.45), transparent);
    transform: skewX(-20deg);
    transition: left 0.7s ease;
}

.btn:hover::after {
    left: 130%;
}

.btn--primary {
    color: #fff;
    background: var(--crypto-accent);
    box-shadow: 0 12px 28px rgba(230, 57, 70, 0.35);
}

.btn--primary:hover {
    background: var(--crypto-accent-dark);
    transform: translateY(-3px);
    box-shadow: 0 18px 36px rgba(230, 57, 70, 0.45);
}

/* =====================================================================
   HEADER
   ===================================================================== */
.site-header {
    position: sticky;
    top: 0;
    z-index: 100;
    background: rgba(255, 255, 255, 0.92);
    backdrop-filter: saturate(160%) blur(12px);
    -webkit-backdrop-filter: saturate(160%) blur(12px);
    border-bottom: 1px solid transparent;
    transition: box-shadow 0.3s ease, border-color 0.3s ease;
}

.site-header--scrolled {
    border-color: var(--crypto-border);
    box-shadow: 0 8px 24px rgba(31, 41, 51, 0.08);
}

.site-header__inner {
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 24px;
    min-height: var(--crypto-header-h);
}

.logo {
    position: relative;
    display: inline-flex;
    align-items: center;
    gap: 10px;
    text-decoration: none;
    color: var(--crypto-graphite);
}

a.logo-link {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    opacity: 0;
}

.logo__img {
    max-height: 44px;
    width: auto;
}

.logo__mark {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    width: 40px;
    height: 40px;
    border-radius: 12px;
    color: #fff;
    background: linear-gradient(135deg, var(--crypto-accent), var(--crypto-graphite));
    transition: transform 0.5s var(--crypto-ease);
}

.logo:hover .logo__mark {
    transform: rotate(180deg);
}

.logo__text {
    font-family: var(--crypto-font-display);
    font-size: 23px;
    font-weight: 800;
    letter-spacing: -0.01em;
}

.logo__accent {
    color: var(--crypto-accent);
}

.logo--light {
    color: #fff;
}

/* Desktop navigation */
.header-nav__list {
    display: flex;
    align-items: center;
    gap: 6px;
    margin: 0;
    padding: 0;
    list-style: none;
}

.header-nav__item {
    position: relative;
    list-style: none;
}

.header-nav__link {
    position: relative;
    display: inline-flex;
    align-items: center;
    gap: 6px;
    padding: 10px 14px;
    font-size: 15px;
    font-weight: 600;
    color: var(--crypto-graphite);
    text-decoration: none;
    border-radius: 10px;
    transition: color 0.25s ease, background-color 0.25s ease;
}

.header-nav__link--level-0::after {
    content: "";
    position: absolute;
    left: 14px;
    right: 14px;
    bottom: 4px;
    height: 2px;
    background: var(--crypto-accent);
    transform: scaleX(0);
    transform-origin: left;
    transition: transform 0.3s var(--crypto-ease);
}

.header-nav__item--level-0:hover > .header-nav__link--level-0::after,
.header-nav__item--current > .header-nav__link--level-0::after {
    transform: scaleX(1);
}

.header-nav__link:hover {
    color: var(--crypto-accent);
}

.header-nav__item--level-0.header-nav__item--parent > .header-nav__link::before {
    content: "";
    order: 2;
    width: 7px;
    height: 7px;
    margin-top: -3px;
    border-right: 2px solid currentColor;
    border-bottom: 2px solid currentColor;
    transform: rotate(45deg);
    transition: transform 0.3s ease;
}

.header-nav__item--level-0:hover > .header-nav__link::before {
    transform: rotate(225deg);
    margin-top: 3px;
}

.header-nav__submenu {
    margin: 0;
    padding: 0;
    list-style: none;
}

.header-nav__submenu--level-1 {
    position: absolute;
    top: calc(100% + 10px);
    left: 0;
    display: flex;
    gap: 28px;
    min-width: 220px;
    padding: 22px 26px;
    background: var(--crypto-surface);
    border: 1px solid var(--crypto-border);
    border-radius: var(--crypto-radius);
    box-shadow: var(--crypto-shadow-hover);
    opacity: 0;
    visibility: hidden;
    transform: translateY(12px);
    transition: opacity 0.3s ease, transform 0.3s var(--crypto-ease), visibility 0.3s;
}

.header-nav__submenu--level-1::before {
    content: "";
    position: absolute;
    top: -12px;
    left: 0;
    right: 0;
    height: 12px;
}

.header-nav__item--level-0:hover > .header-nav__submenu--level-1,
.header-nav__item--level-0:focus-within > .header-nav__submenu--level-1 {
    opacity: 1;
    visibility: visible;
    transform: translateY(0);
}

.header-nav__item--level-1 {
    min-width: 200px;
}

.header-nav__link--level-1 {
    padding: 0 0 10px;
    font-size: 12px;
    font-weight: 700;
    letter-spacing: 0.08em;
    text-transform: uppercase;
    color: var(--crypto-accent);
    white-space: nowrap;
}

.header-nav__link--level-2 {
    display: flex;
    padding: 7px 10px;
    margin: 0 -10px;
    font-size: 14px;
    font-weight: 500;
    white-space: nowrap;
}

.header-nav__link--level-2:hover {
    background: var(--crypto-accent-soft);
    transform: translateX(4px);
}

.header-nav__toggle {
    display: none;
}

/* Burger */
.burger {
    display: none;
    position: relative;
    width: 46px;
    height: 46px;
    padding: 0;
    border: 1px solid var(--crypto-border);
    border-radius: 12px;
    background: var(--crypto-surface);
    cursor: pointer;
    transition: border-color 0.3s ease, background-color 0.3s ease;
}

.burger:hover {
    border-color: var(--crypto-accent);
}

.burger__line {
    position: absolute;
    left: 12px;
    width: 20px;
    height: 2px;
    border-radius: 2px;
    background: var(--crypto-graphite);
    transition: transform 0.35s var(--crypto-ease), opacity 0.25s ease, top 0.35s var(--crypto-ease);
}

.burger__line:nth-child(1) {
    top: 15px;
}

.burger__line:nth-child(2) {
    top: 22px;
}

.burger__line:nth-child(3) {
    top: 29px;
}

.burger--active {
    background: var(--crypto-accent);
    border-color: var(--crypto-accent);
}

.burger--active .burger__line {
    background: #fff;
}

.burger--active .burger__line:nth-child(1) {
    top: 22px;
    transform: rotate(45deg);
}

.burger--active .burger__line:nth-child(2) {
    opacity: 0;
}

.burger--active .burger__line:nth-child(3) {
    top: 22px;
    transform: rotate(-45deg);
}

/* =====================================================================
   HERO
   ===================================================================== */
.hero {
    position: relative;
    overflow: hidden;
    padding: 64px 0 72px;
    color: #fff;
    background:
        radial-gradient(circle at 85% 10%, rgba(230, 57, 70, 0.28), transparent 45%),
        linear-gradient(135deg, var(--crypto-graphite-dark) 0%, var(--crypto-graphite) 60%, var(--crypto-graphite-soft) 100%);
}

.hero::before {
    content: "";
    position: absolute;
    inset: 0;
    background-image:
        linear-gradient(rgba(255, 255, 255, 0.04) 1px, transparent 1px),
        linear-gradient(90deg, rgba(255, 255, 255, 0.04) 1px, transparent 1px);
    background-size: 48px 48px;
    mask-image: linear-gradient(180deg, #000 0%, transparent 90%);
    -webkit-mask-image: linear-gradient(180deg, #000 0%, transparent 90%);
    animation: hero-grid 24s linear infinite;
}

@keyframes hero-grid {
    to {
        background-position: 48px 48px, 48px 48px;
    }
}

.hero__glow {
    position: absolute;
    border-radius: 50%;
    filter: blur(70px);
    pointer-events: none;
    animation: hero-float 12s ease-in-out infinite alternate;
}

.hero__glow--one {
    top: -120px;
    left: -80px;
    width: 360px;
    height: 360px;
    background: rgba(230, 57, 70, 0.35);
}

.hero__glow--two {
    right: 10%;
    bottom: -160px;
    width: 420px;
    height: 420px;
    background: rgba(248, 249, 250, 0.08);
    animation-delay: -6s;
}

@keyframes hero-float {
    to {
        transform: translate3d(60px, 40px, 0) scale(1.1);
    }
}

.hero__inner {
    position: relative;
    z-index: 1;
    display: grid;
    grid-template-columns: minmax(0, 1.05fr) minmax(0, 0.95fr);
    gap: 48px;
    align-items: center;
}

.hero__content {
    animation: hero-in 0.9s var(--crypto-ease) both;
}

@keyframes hero-in {
    from {
        opacity: 0;
        transform: translateY(30px);
    }
}

.hero__pair {
    display: inline-flex;
    align-items: center;
    gap: 12px;
    padding: 8px 14px;
    margin-bottom: 22px;
    border: 1px solid rgba(255, 255, 255, 0.14);
    border-radius: 999px;
    background: rgba(255, 255, 255, 0.06);
}

.hero__coin {
    width: 38px;
    height: 38px;
    border-radius: 50%;
    background: #fff;
    padding: 2px;
    transition: transform 0.4s var(--crypto-ease);
}

.hero__pair:hover .hero__coin {
    transform: rotate(-12deg) scale(1.1);
}

.hero__pair-arrow {
    display: inline-flex;
    color: var(--crypto-accent);
    animation: spin-slow 6s linear infinite;
}

@keyframes spin-slow {
    to {
        transform: rotate(360deg);
    }
}

.hero__title {
    margin-bottom: 20px;
    font-family: var(--crypto-font-display);
    font-size: clamp(32px, 4.2vw, 52px);
    font-weight: 800;
    color: #fff;
    letter-spacing: -0.01em;
}

.hero__text {
    max-width: 620px;
    font-size: 17px;
    color: var(--crypto-text-light);
}

.hero__text a {
    color: #ff8a93;
}

.hero__nav {
    display: flex;
    flex-wrap: wrap;
    gap: 10px;
    margin: 24px 0 0;
    padding: 0;
    list-style: none;
}

.hero__nav-link {
    display: inline-flex;
    padding: 9px 18px;
    font-size: 14px;
    font-weight: 600;
    color: #fff;
    text-decoration: none;
    border: 1px solid rgba(255, 255, 255, 0.22);
    border-radius: 999px;
    transition: background-color 0.3s ease, border-color 0.3s ease, transform 0.3s var(--crypto-ease);
}

.hero__nav-link:hover {
    background: var(--crypto-accent);
    border-color: var(--crypto-accent);
    transform: translateY(-3px);
}

.hero__widget {
    display: flex;
    flex-direction: column;
    align-items: flex-end;
    animation: hero-in 0.9s 0.15s var(--crypto-ease) both;
}

.exchange-widget {
    width: 100%;
    max-width: 524px;
    padding: 12px;
    border-radius: 24px;
    background: var(--crypto-surface);
    box-shadow: 0 30px 60px rgba(0, 0, 0, 0.35), 0 0 0 1px rgba(255, 255, 255, 0.08);
    transition: transform 0.4s var(--crypto-ease), box-shadow 0.4s ease;
}

.exchange-widget:hover {
    transform: translateY(-6px);
    box-shadow: 0 38px 70px rgba(0, 0, 0, 0.4), 0 0 0 2px var(--crypto-accent);
}

.exchange-widget__frame {
    display: block;
    width: 100%;
    max-width: 500px;
    height: 400px;
    border: 0;
    margin: 0 auto;
}

.hero__media {
    position: relative;
    margin: 0;
    border-radius: 26px;
    overflow: hidden;
    aspect-ratio: 4 / 3;
    box-shadow: 0 30px 60px rgba(0, 0, 0, 0.35);
    animation: hero-in 0.9s 0.15s var(--crypto-ease) both;
}

.hero__media::after {
    content: "";
    position: absolute;
    inset: 0;
    border-radius: inherit;
    box-shadow: inset 0 0 0 1px rgba(255, 255, 255, 0.12);
    background: linear-gradient(200deg, transparent 50%, rgba(230, 57, 70, 0.25));
    pointer-events: none;
}

.hero__img,
.split__img,
.cta__bg {
    width: 100%;
    height: 100%;
    object-fit: cover;
    translate: 0 var(--parallax-y, 0);
    scale: 1.1;
    transition: scale 0.8s var(--crypto-ease), filter 0.6s ease;
}

.hero__media:hover .hero__img {
    scale: 1.16;
}

/* =====================================================================
   SECTIONS
   ===================================================================== */
.section {
    padding: var(--crypto-section-y) 0;
}

.section--alt {
    background: var(--crypto-surface);
}

.card,
.link-card,
.faq__item,
.data-panel,
.table-wrap {
    transition: transform 0.4s var(--crypto-ease), box-shadow 0.4s ease, border-color 0.3s ease;
}

.section__head {
    display: flex;
    align-items: center;
    gap: 16px;
    margin-bottom: 18px;
}

.section__icon {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    width: 52px;
    height: 52px;
    flex-shrink: 0;
    border-radius: 16px;
    color: var(--crypto-accent);
    background: var(--crypto-accent-soft);
    transition: transform 0.4s var(--crypto-ease), background-color 0.3s ease, color 0.3s ease;
}

.section__head:hover .section__icon {
    transform: rotate(-8deg) scale(1.08);
    background: var(--crypto-accent);
    color: #fff;
}

.section__title {
    font-family: var(--crypto-font-display);
    font-size: clamp(26px, 3vw, 36px);
    font-weight: 700;
}

.section p,
.section__lead {
    max-width: 860px;
    color: var(--crypto-text-muted);
}

/* Split: text + image */
.split {
    display: grid;
    grid-template-columns: minmax(0, 1.1fr) minmax(0, 0.9fr);
    gap: 48px;
    align-items: center;
}

.split--reverse .split__content {
    order: 2;
}

.split__media {
    position: relative;
    margin: 0;
    border-radius: var(--crypto-radius);
    overflow: hidden;
    aspect-ratio: 5 / 4;
    box-shadow: var(--crypto-shadow);
    transition: box-shadow 0.4s ease, transform 0.4s var(--crypto-ease);
}

.split__media::before {
    content: "";
    position: absolute;
    inset: 0;
    z-index: 1;
    border-radius: inherit;
    border: 3px solid transparent;
    transition: border-color 0.4s ease;
    pointer-events: none;
}

.split__media:hover {
    transform: translateY(-6px);
    box-shadow: var(--crypto-shadow-hover);
}

.split__media:hover::before {
    border-color: var(--crypto-accent);
}

.split__media:hover .split__img {
    scale: 1.17;
    filter: saturate(1.15) contrast(1.05);
}

/* Cards with icons */
.cards {
    display: grid;
    gap: 20px;
    margin-top: 20px;
}

.cards--1 {
    grid-template-columns: minmax(0, 1fr);
}

.cards--2 {
    grid-template-columns: repeat(2, minmax(0, 1fr));
}

.cards--3 {
    grid-template-columns: repeat(3, minmax(0, 1fr));
}

.cards--4 {
    grid-template-columns: repeat(4, minmax(0, 1fr));
}

.card {
    position: relative;
    padding: 28px 26px 24px;
    border: 1px solid var(--crypto-border);
    border-radius: var(--crypto-radius);
    background: var(--crypto-surface);
    box-shadow: var(--crypto-shadow);
    overflow: hidden;
}

.section--alt .card {
    background: var(--crypto-bg);
}

.card::before {
    content: "";
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    height: 4px;
    background: linear-gradient(90deg, var(--crypto-accent), var(--crypto-graphite));
    transform: scaleX(0);
    transform-origin: left;
    transition: transform 0.45s var(--crypto-ease);
}

.card:hover {
    transform: translateY(-8px);
    box-shadow: var(--crypto-shadow-hover);
    border-color: rgba(230, 57, 70, 0.35);
}

.card:hover::before {
    transform: scaleX(1);
}

.card__icon {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    width: 54px;
    height: 54px;
    margin-bottom: 18px;
    border-radius: 16px;
    color: var(--crypto-accent);
    background: var(--crypto-accent-soft);
    transition: transform 0.45s var(--crypto-ease), background-color 0.3s ease, color 0.3s ease;
}

.card:hover .card__icon {
    color: #fff;
    background: var(--crypto-accent);
    transform: rotate(-10deg) scale(1.1);
}

.card__title {
    margin-bottom: 10px;
    font-size: 19px;
    font-weight: 700;
}

.card .card__text,
.card p {
    font-size: 15px;
    color: var(--crypto-text-muted);
}

.card p:last-child {
    margin-bottom: 0;
}

/* Check list */
.check-list {
    display: grid;
    gap: 10px;
    max-width: 860px;
    margin: 6px 0 18px;
    padding: 0;
    list-style: none;
}

.check-list__item {
    display: flex;
    align-items: flex-start;
    gap: 12px;
    padding: 12px 16px;
    border: 1px solid var(--crypto-border);
    border-radius: var(--crypto-radius-sm);
    background: var(--crypto-surface);
    transition: transform 0.3s var(--crypto-ease), border-color 0.3s ease, box-shadow 0.3s ease;
}

.check-list__item:hover {
    transform: translateX(6px);
    border-color: var(--crypto-accent);
    box-shadow: var(--crypto-shadow);
}

.check-list__item .icon {
    width: 26px;
    height: 26px;
    padding: 5px;
    border-radius: 50%;
    color: #fff;
    background: var(--crypto-accent);
}

/* Steps */
.steps {
    display: grid;
    gap: 12px;
    margin: 8px 0 20px;
    padding: 0;
    list-style: none;
    counter-reset: step;
}

.steps__item {
    position: relative;
    display: flex;
    align-items: center;
    gap: 16px;
    padding: 14px 18px;
    border: 1px solid var(--crypto-border);
    border-radius: var(--crypto-radius-sm);
    background: var(--crypto-surface);
    counter-increment: step;
}

.steps__item::before {
    content: counter(step);
    display: inline-flex;
    align-items: center;
    justify-content: center;
    width: 36px;
    height: 36px;
    flex-shrink: 0;
    border-radius: 50%;
    font-weight: 700;
    color: #fff;
    background: var(--crypto-graphite);
    transition: background-color 0.3s ease, transform 0.4s var(--crypto-ease);
}

.steps__item:hover {
    border-color: var(--crypto-accent);
    box-shadow: var(--crypto-shadow);
    transform: translateY(-3px);
}

.steps__item:hover::before {
    background: var(--crypto-accent);
    transform: scale(1.12) rotate(-8deg);
}

.card .steps__item {
    background: var(--crypto-surface);
}

/* Link cards */
.link-grid {
    display: grid;
    grid-template-columns: repeat(auto-fill, minmax(260px, 1fr));
    gap: 14px;
    margin: 10px 0 20px;
    padding: 0;
    list-style: none;
}

.link-grid--wide {
    grid-template-columns: minmax(0, 1fr);
}

.link-card {
    position: relative;
    display: flex;
    align-items: center;
    gap: 14px;
    padding: 16px 18px;
    border: 1px solid var(--crypto-border);
    border-radius: var(--crypto-radius-sm);
    background: var(--crypto-surface);
    box-shadow: 0 4px 14px rgba(31, 41, 51, 0.05);
}

.link-card:hover {
    transform: translateY(-5px);
    border-color: var(--crypto-accent);
    box-shadow: var(--crypto-shadow-hover);
}

.link-card__coins {
    display: inline-flex;
    flex-shrink: 0;
}

.link-card__coin {
    width: 34px;
    height: 34px;
    border-radius: 50%;
    border: 2px solid var(--crypto-surface);
    background: var(--crypto-surface);
    transition: transform 0.4s var(--crypto-ease);
}

.link-card__coin + .link-card__coin {
    margin-left: -10px;
}

.link-card:hover .link-card__coin:first-child {
    transform: translateX(-4px) rotate(-10deg);
}

.link-card:hover .link-card__coin:last-child {
    transform: translateX(4px) rotate(10deg);
}

.link-card__icon {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    width: 44px;
    height: 44px;
    flex-shrink: 0;
    border-radius: 12px;
    color: var(--crypto-accent);
    background: var(--crypto-accent-soft);
    transition: background-color 0.3s ease, color 0.3s ease;
}

.link-card:hover .link-card__icon {
    color: #fff;
    background: var(--crypto-accent);
}

.link-card__link {
    flex: 1;
    font-weight: 600;
    color: var(--crypto-graphite);
    text-decoration: none;
}

.link-card__link::after {
    content: "";
    position: absolute;
    inset: 0;
}

.link-card__arrow {
    display: inline-flex;
    color: var(--crypto-accent);
    transition: transform 0.3s var(--crypto-ease);
}

.link-card:hover .link-card__arrow {
    transform: translateX(6px);
}

.link-card__text {
    margin: 0;
    color: var(--crypto-text-muted);
}

/* Mint address */
.mint__code {
    display: inline-block;
    max-width: 100%;
    padding: 10px 14px;
    font-family: "SFMono-Regular", Consolas, "Liberation Mono", monospace;
    font-size: 14px;
    color: var(--crypto-graphite);
    word-break: break-all;
    border: 1px dashed var(--crypto-accent);
    border-radius: 10px;
    background: var(--crypto-accent-soft);
}

/* Tables */
.table-wrap {
    margin: 10px 0 18px;
    overflow-x: auto;
    border: 1px solid var(--crypto-border);
    border-radius: var(--crypto-radius);
    background: var(--crypto-surface);
    box-shadow: var(--crypto-shadow);
}

.data-table {
    width: 100%;
    border-collapse: collapse;
    font-size: 15px;
}

.data-table th {
    padding: 15px 18px;
    text-align: left;
    font-weight: 700;
    color: #fff;
    background: var(--crypto-graphite);
}

.data-table td {
    padding: 14px 18px;
    border-top: 1px solid var(--crypto-border);
    color: var(--crypto-text);
    vertical-align: top;
}

.data-table tbody tr {
    transition: background-color 0.25s ease;
}

.data-table tbody tr:hover {
    background: var(--crypto-accent-soft);
}

.data-table td:first-child {
    font-weight: 600;
}

/* =====================================================================
   MARKET DATA (shortcodes)
   ===================================================================== */
.data-panel {
    margin: 12px 0 20px;
    padding: 24px;
    border: 1px solid var(--crypto-border);
    border-radius: var(--crypto-radius);
    background: var(--crypto-surface);
    box-shadow: var(--crypto-shadow);
}

.section--alt .data-panel {
    background: var(--crypto-bg);
}

.data-panel:hover {
    box-shadow: var(--crypto-shadow-hover);
}

.data-panel .table-wrap {
    margin: 0 0 12px;
    box-shadow: none;
}

.data-source {
    margin: 12px 0 0;
    font-size: 13px;
    color: var(--crypto-text-muted);
}

.section .data-source {
    max-width: none;
}

.data-empty,
.chart-empty {
    margin: 0;
    padding: 18px;
    border-radius: var(--crypto-radius-sm);
    background: var(--crypto-accent-soft);
    color: var(--crypto-graphite);
    font-weight: 500;
}

.change {
    display: inline-flex;
    align-items: center;
    padding: 4px 10px;
    border-radius: 999px;
    font-size: 14px;
    font-weight: 700;
    white-space: nowrap;
}

.change--up {
    color: var(--crypto-up);
    background: var(--crypto-up-soft);
}

.change--up::before {
    content: "▲";
    margin-right: 5px;
    font-size: 10px;
}

.change--down {
    color: var(--crypto-accent);
    background: var(--crypto-accent-soft);
}

.change--down::before {
    content: "▼";
    margin-right: 5px;
    font-size: 10px;
}

.change--flat {
    color: var(--crypto-text-muted);
    background: var(--crypto-bg);
}

/* Price card */
.price-card__main {
    display: flex;
    flex-wrap: wrap;
    align-items: center;
    gap: 18px;
}

.price-card__logo,
.rate-card__logo {
    width: 52px;
    height: 52px;
    border-radius: 50%;
    transition: transform 0.6s var(--crypto-ease);
}

.price-card:hover .price-card__logo {
    transform: rotate(360deg);
}

.price-card__label,
.price-card__caption,
.range__caption {
    display: block;
    font-size: 13px;
    font-weight: 600;
    letter-spacing: 0.04em;
    text-transform: uppercase;
    color: var(--crypto-text-muted);
}

.price-card__value {
    display: block;
    font-family: var(--crypto-font-display);
    font-size: clamp(30px, 4vw, 44px);
    font-weight: 800;
    line-height: 1.1;
    color: var(--crypto-graphite);
}

.price-card__change {
    margin-left: auto;
    text-align: right;
}

.range {
    margin-top: 22px;
}

.range__bar {
    position: relative;
    height: 10px;
    margin: 10px 0 8px;
    border-radius: 999px;
    background: var(--crypto-border);
}

.range__fill {
    position: absolute;
    top: 0;
    left: 0;
    height: 100%;
    border-radius: inherit;
    background: linear-gradient(90deg, var(--crypto-graphite), var(--crypto-accent));
}

.range__marker {
    position: absolute;
    top: 50%;
    width: 18px;
    height: 18px;
    border: 3px solid #fff;
    border-radius: 50%;
    background: var(--crypto-accent);
    box-shadow: 0 2px 8px rgba(230, 57, 70, 0.5);
    transform: translate(-50%, -50%);
}

.range__values {
    display: flex;
    justify-content: space-between;
    font-size: 14px;
    font-weight: 600;
}

/* Rate card */
.rate-card__main {
    display: flex;
    flex-wrap: wrap;
    align-items: center;
    gap: 18px;
}

.rate-card__coins {
    display: inline-flex;
}

.rate-card__logo + .rate-card__logo {
    margin-left: -14px;
    border: 3px solid var(--crypto-surface);
}

.rate-card:hover .rate-card__logo:first-child {
    transform: translateX(-6px) rotate(-12deg);
}

.rate-card__value {
    font-family: var(--crypto-font-display);
    font-size: clamp(26px, 3.4vw, 38px);
    font-weight: 800;
    color: var(--crypto-graphite);
}

.rate-card__changes {
    display: grid;
    grid-template-columns: repeat(3, minmax(0, 1fr));
    gap: 12px;
    margin: 20px 0 0;
    padding: 0;
    list-style: none;
}

.rate-card__change {
    display: flex;
    flex-direction: column;
    gap: 6px;
    align-items: flex-start;
    padding: 14px 16px;
    border: 1px solid var(--crypto-border);
    border-radius: var(--crypto-radius-sm);
    transition: transform 0.3s var(--crypto-ease), border-color 0.3s ease;
}

.rate-card__change:hover {
    transform: translateY(-4px);
    border-color: var(--crypto-accent);
}

.rate-card__period {
    font-size: 13px;
    font-weight: 600;
    text-transform: uppercase;
    color: var(--crypto-text-muted);
}

/* Amount table cells */
.amount-cell {
    display: inline-flex;
    align-items: center;
    gap: 10px;
}

.amount-cell__logo {
    width: 24px;
    height: 24px;
    border-radius: 50%;
}

.currency-code {
    display: inline-block;
    padding: 2px 8px;
    border-radius: 6px;
    font-size: 13px;
    font-weight: 700;
    color: var(--crypto-accent);
    background: var(--crypto-accent-soft);
}

/* Stats tiles */
.stats {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(200px, 1fr));
    gap: 14px;
}

.stats__item {
    display: flex;
    flex-direction: column;
    gap: 6px;
    padding: 18px;
    border: 1px solid var(--crypto-border);
    border-radius: var(--crypto-radius-sm);
    background: var(--crypto-surface);
    transition: transform 0.3s var(--crypto-ease), box-shadow 0.3s ease, border-color 0.3s ease;
}

.stats__item:hover {
    transform: translateY(-5px);
    border-color: var(--crypto-accent);
    box-shadow: var(--crypto-shadow);
}

.stats__icon {
    display: inline-flex;
    color: var(--crypto-accent);
}

.stats__label {
    font-size: 13px;
    font-weight: 600;
    text-transform: uppercase;
    letter-spacing: 0.03em;
    color: var(--crypto-text-muted);
}

.stats__value {
    font-size: 22px;
    font-weight: 800;
    color: var(--crypto-graphite);
}

/* =====================================================================
   CHART (server-rendered SVG)
   ===================================================================== */
.chart {
    position: relative;
}

.chart__svg {
    display: block;
    width: 100%;
    height: auto;
    overflow: visible;
}

.chart__grid {
    stroke: var(--crypto-border);
    stroke-width: 1;
}

.chart__grid--v {
    stroke-dasharray: 4 5;
}

.chart__label {
    font-family: var(--crypto-font);
    font-size: 11px;
    fill: var(--crypto-text-muted);
}

.chart__area {
    fill: var(--crypto-accent-soft);
}

.chart__line {
    fill: none;
    stroke: var(--crypto-accent);
    stroke-width: 2.5;
    stroke-linejoin: round;
    stroke-linecap: round;
}

.chart__dot {
    fill: var(--crypto-accent);
    stroke: #fff;
    stroke-width: 2;
    animation: chart-pulse 2s ease-in-out infinite;
    transform-box: fill-box;
    transform-origin: center;
}

@keyframes chart-pulse {
    50% {
        transform: scale(1.5);
    }
}

.chart__summary {
    display: flex;
    align-items: center;
    gap: 10px;
    margin: 12px 0 0;
    font-size: 14px;
    font-weight: 600;
    color: var(--crypto-text-muted);
}

/* Period tabs (CSS-only, works without JS) */
.chart-tabs__radio {
    position: absolute;
    opacity: 0;
    pointer-events: none;
}

.chart-tabs__labels {
    display: inline-flex;
    flex-wrap: wrap;
    gap: 4px;
    padding: 4px;
    margin-bottom: 18px;
    border-radius: 999px;
    background: var(--crypto-bg);
    border: 1px solid var(--crypto-border);
}

.chart-tabs__label {
    padding: 7px 16px;
    border-radius: 999px;
    font-size: 14px;
    font-weight: 700;
    color: var(--crypto-text-muted);
    cursor: pointer;
    transition: background-color 0.3s ease, color 0.3s ease;
}

.chart-tabs__label:hover {
    color: var(--crypto-accent);
}

.chart-tabs__panel {
    display: none;
    animation: chart-in 0.5s var(--crypto-ease);
}

@keyframes chart-in {
    from {
        opacity: 0;
        transform: translateY(10px);
    }
}

.chart-tabs__radio:nth-of-type(1):checked ~ .chart-tabs__panels .chart-tabs__panel:nth-child(1),
.chart-tabs__radio:nth-of-type(2):checked ~ .chart-tabs__panels .chart-tabs__panel:nth-child(2),
.chart-tabs__radio:nth-of-type(3):checked ~ .chart-tabs__panels .chart-tabs__panel:nth-child(3),
.chart-tabs__radio:nth-of-type(4):checked ~ .chart-tabs__panels .chart-tabs__panel:nth-child(4),
.chart-tabs__radio:nth-of-type(5):checked ~ .chart-tabs__panels .chart-tabs__panel:nth-child(5) {
    display: block;
}

.chart-tabs__radio:nth-of-type(1):checked ~ .chart-tabs__labels .chart-tabs__label:nth-child(1),
.chart-tabs__radio:nth-of-type(2):checked ~ .chart-tabs__labels .chart-tabs__label:nth-child(2),
.chart-tabs__radio:nth-of-type(3):checked ~ .chart-tabs__labels .chart-tabs__label:nth-child(3),
.chart-tabs__radio:nth-of-type(4):checked ~ .chart-tabs__labels .chart-tabs__label:nth-child(4),
.chart-tabs__radio:nth-of-type(5):checked ~ .chart-tabs__labels .chart-tabs__label:nth-child(5) {
    color: #fff;
    background: var(--crypto-accent);
}

.chart-tabs__radio:focus-visible ~ .chart-tabs__labels {
    outline: 2px solid var(--crypto-accent);
    outline-offset: 2px;
}

/* =====================================================================
   CTA
   ===================================================================== */
.cta {
    position: relative;
    margin: var(--crypto-section-y) 0;
    padding: 80px 0;
    overflow: hidden;
    color: #fff;
    text-align: center;
    isolation: isolate;
}

.cta__bg {
    position: absolute;
    inset: 0;
    z-index: -2;
    scale: 1.25;
}

.cta::after {
    content: "";
    position: absolute;
    inset: 0;
    z-index: -1;
    background: linear-gradient(120deg, rgba(20, 27, 34, 0.94) 0%, rgba(31, 41, 51, 0.82) 55%, rgba(230, 57, 70, 0.72) 100%);
}

.cta__inner {
    display: flex;
    flex-direction: column;
    align-items: center;
}

.cta__icon {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    width: 64px;
    height: 64px;
    margin-bottom: 20px;
    border-radius: 50%;
    color: #fff;
    background: var(--crypto-accent);
    box-shadow: 0 0 0 0 rgba(230, 57, 70, 0.6);
    animation: cta-ring 2.4s ease-out infinite;
}

@keyframes cta-ring {
    to {
        box-shadow: 0 0 0 22px rgba(230, 57, 70, 0);
    }
}

.cta__title {
    margin-bottom: 14px;
    font-family: var(--crypto-font-display);
    font-size: clamp(28px, 3.6vw, 44px);
    font-weight: 800;
    color: #fff;
}

.cta__text {
    max-width: 680px;
    margin-bottom: 28px;
    font-size: 17px;
    color: var(--crypto-text-light);
}

/* =====================================================================
   FAQ
   ===================================================================== */
.faq__list {
    display: grid;
    gap: 14px;
    margin-top: 20px;
}

.faq__item {
    border: 1px solid var(--crypto-border);
    border-radius: var(--crypto-radius);
    background: var(--crypto-surface);
    box-shadow: 0 4px 14px rgba(31, 41, 51, 0.04);
}

.faq__item:hover,
.faq__item--open {
    border-color: rgba(230, 57, 70, 0.45);
    box-shadow: var(--crypto-shadow);
}

.faq__head {
    display: flex;
    align-items: center;
    gap: 14px;
    padding: 18px 22px;
    cursor: pointer;
}

.faq__icon {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    width: 42px;
    height: 42px;
    flex-shrink: 0;
    border-radius: 12px;
    color: var(--crypto-accent);
    background: var(--crypto-accent-soft);
    transition: background-color 0.3s ease, color 0.3s ease, transform 0.4s var(--crypto-ease);
}

.faq__item--open .faq__icon,
.faq__head:hover .faq__icon {
    color: #fff;
    background: var(--crypto-accent);
    transform: rotate(-10deg);
}

.faq__question {
    flex: 1;
    font-size: 18px;
    font-weight: 700;
    font-family: var(--crypto-font);
}

.faq__toggle {
    display: none;
    color: var(--crypto-text-muted);
    transition: transform 0.35s var(--crypto-ease), color 0.3s ease;
}

.faq__list--js .faq__toggle {
    display: inline-flex;
}

.faq__item--open .faq__toggle {
    transform: rotate(180deg);
    color: var(--crypto-accent);
}

.faq__answer {
    display: grid;
    grid-template-rows: 1fr;
    transition: grid-template-rows 0.4s var(--crypto-ease);
}

.faq__answer p {
    min-height: 0;
    overflow: hidden;
    margin: 0;
    padding: 0 22px 20px 78px;
    color: var(--crypto-text-muted);
    transition: padding 0.4s var(--crypto-ease);
}

.faq__list--js .faq__item:not(.faq__item--open) .faq__answer {
    grid-template-rows: 0fr;
}

.faq__list--js .faq__item:not(.faq__item--open) .faq__answer p {
    padding-bottom: 0;
}

/* =====================================================================
   FOOTER
   ===================================================================== */
.site-footer {
    position: relative;
    overflow: hidden;
    margin-top: var(--crypto-section-y);
    padding: 56px 0 24px;
    color: var(--crypto-text-light);
    background: var(--crypto-graphite-dark);
}

.site-footer__glow {
    position: absolute;
    top: -200px;
    right: -120px;
    width: 420px;
    height: 420px;
    border-radius: 50%;
    background: rgba(230, 57, 70, 0.18);
    filter: blur(80px);
    pointer-events: none;
}

.site-footer__top {
    position: relative;
    display: grid;
    grid-template-columns: 1.4fr repeat(5, minmax(0, 1fr));
    gap: 32px;
}

.site-footer__identity {
    margin-top: 16px;
    font-size: 14px;
    color: var(--crypto-text-light);
}

.site-footer__title {
    margin-bottom: 14px;
    font-size: 13px;
    font-weight: 700;
    letter-spacing: 0.08em;
    text-transform: uppercase;
    color: #fff;
}

.footer-nav {
    margin: 0;
    padding: 0;
    list-style: none;
}

.footer-nav__item {
    margin-bottom: 8px;
}

.footer-nav__link {
    position: relative;
    font-size: 14px;
    color: var(--crypto-text-light);
    text-decoration: none;
    transition: color 0.25s ease, padding-left 0.3s var(--crypto-ease);
}

.footer-nav__link::before {
    content: "";
    position: absolute;
    left: 0;
    top: 50%;
    width: 0;
    height: 2px;
    background: var(--crypto-accent);
    transition: width 0.3s var(--crypto-ease);
}

.footer-nav__link:hover {
    color: #fff;
    padding-left: 14px;
}

.footer-nav__link:hover::before {
    width: 8px;
}

.site-footer__bottom {
    position: relative;
    margin-top: 40px;
    padding-top: 20px;
    border-top: 1px solid rgba(255, 255, 255, 0.1);
}

.site-footer__copy {
    margin: 0;
    font-size: 14px;
}

/* =====================================================================
   404
   ===================================================================== */
.error404__wrapper {
    padding: 90px 0;
    text-align: center;
    background: radial-gradient(circle at 50% 0%, var(--crypto-accent-soft), transparent 60%);
}

.error404__inner {
    display: flex;
    flex-direction: column;
    align-items: center;
}

.error404__code {
    font-family: var(--crypto-font-display);
    font-size: clamp(110px, 20vw, 200px);
    font-weight: 800;
    line-height: 1;
    background: linear-gradient(135deg, var(--crypto-graphite), var(--crypto-accent));
    -webkit-background-clip: text;
    background-clip: text;
    color: transparent;
}

.error404__title {
    margin: 12px 0;
    font-family: var(--crypto-font-display);
    font-size: clamp(28px, 4vw, 40px);
}

.error404__text {
    max-width: 520px;
    color: var(--crypto-text-muted);
}

.error404__actions {
    margin-top: 18px;
}

/* =====================================================================
   RESPONSIVE
   ===================================================================== */
@media (max-width: 1200px) {
    .site-footer__top {
        grid-template-columns: repeat(3, minmax(0, 1fr));
    }

    .site-footer__brand {
        grid-column: 1 / -1;
    }
}

@media (max-width: 1024px) {
    .burger {
        display: inline-block;
    }

    .header-nav {
        position: absolute;
        top: 100%;
        left: 0;
        right: 0;
        max-height: 0;
        overflow: hidden;
        background: var(--crypto-surface);
        box-shadow: 0 20px 40px rgba(31, 41, 51, 0.15);
        transition: max-height 0.45s var(--crypto-ease);
    }

    .header-nav--open {
        max-height: calc(100vh - var(--crypto-header-h));
        overflow-y: auto;
    }

    .header-nav__list {
        flex-direction: column;
        align-items: stretch;
        gap: 0;
        padding: 12px 24px 24px;
    }

    .header-nav__item {
        display: flex;
        flex-wrap: wrap;
        align-items: center;
        border-bottom: 1px solid var(--crypto-border);
    }

    .header-nav__link {
        flex: 1;
        padding: 14px 0;
        font-size: 16px;
    }

    .header-nav__link--level-0::after,
    .header-nav__item--level-0.header-nav__item--parent > .header-nav__link::before {
        display: none;
    }

    .header-nav__toggle {
        display: inline-flex;
        align-items: center;
        justify-content: center;
        width: 40px;
        height: 40px;
        padding: 0;
        border: 1px solid var(--crypto-border);
        border-radius: 10px;
        background: var(--crypto-bg);
        cursor: pointer;
    }

    .header-nav__toggle::before {
        content: "";
        width: 8px;
        height: 8px;
        margin-top: -4px;
        border-right: 2px solid var(--crypto-graphite);
        border-bottom: 2px solid var(--crypto-graphite);
        transform: rotate(45deg);
        transition: transform 0.3s ease, margin 0.3s ease;
    }

    .header-nav__item--open > .header-nav__toggle::before {
        transform: rotate(225deg);
        margin-top: 4px;
    }

    .header-nav__submenu--level-1,
    .header-nav__submenu--level-2 {
        position: static;
        display: none;
        flex-basis: 100%;
        min-width: 0;
        padding: 0 0 10px 14px;
        border: 0;
        border-radius: 0;
        box-shadow: none;
        opacity: 1;
        visibility: visible;
        transform: none;
    }

    .header-nav__item--open > .header-nav__submenu {
        display: block;
        animation: chart-in 0.35s var(--crypto-ease);
    }

    .header-nav__item--level-1,
    .header-nav__item--level-2 {
        border-bottom: 0;
    }

    .header-nav__link--level-1 {
        padding: 12px 0;
    }

    .header-nav__link--level-2 {
        margin: 0;
        padding: 9px 0;
    }

    .hero__inner,
    .split {
        grid-template-columns: minmax(0, 1fr);
    }

    .hero__widget {
        align-items: center;
    }

    .split--reverse .split__content {
        order: 0;
    }

    .cards--3,
    .cards--4 {
        grid-template-columns: repeat(2, minmax(0, 1fr));
    }
}

@media (max-width: 768px) {
    :root {
        --crypto-header-h: 64px;
    }

    .container {
        padding: 0 20px;
    }

    .hero {
        padding: 44px 0 52px;
    }

    .hero__inner {
        gap: 32px;
    }

    .section {
        padding: calc(var(--crypto-section-y) + 5px) 0;
    }

    .section__icon {
        width: 46px;
        height: 46px;
    }

    .cards--2,
    .cards--3,
    .cards--4 {
        grid-template-columns: minmax(0, 1fr);
    }

    .split {
        gap: 28px;
    }

    .split__media {
        aspect-ratio: 16 / 10;
    }

    .rate-card__changes {
        grid-template-columns: minmax(0, 1fr);
    }

    .price-card__change {
        margin-left: 0;
        text-align: left;
    }

    .cta {
        padding: 60px 0;
    }

    .faq__answer p {
        padding-left: 22px;
    }

    .site-footer__top {
        grid-template-columns: repeat(2, minmax(0, 1fr));
    }
}

@media (max-width: 480px) {
    body {
        font-size: 15px;
    }

    .container {
        padding: 0 16px;
    }

    .hero__title {
        font-size: 30px;
    }

    .hero__nav-link {
        padding: 8px 14px;
        font-size: 13px;
    }

    .exchange-widget {
        padding: 6px;
        border-radius: 18px;
    }

    .section__head {
        align-items: flex-start;
    }

    .section__title {
        font-size: 24px;
    }

    .card {
        padding: 22px 20px;
    }

    .data-panel {
        padding: 16px;
    }

    .data-table {
        font-size: 14px;
    }

    .data-table th,
    .data-table td {
        padding: 12px;
    }

    .faq__head {
        padding: 16px;
    }

    .faq__question {
        font-size: 16px;
    }

    .faq__answer p {
        padding: 0 16px 16px;
    }

    .btn {
        width: 100%;
    }

    .site-footer__top {
        grid-template-columns: minmax(0, 1fr);
    }
}
