/* ====================================================================
   CRYPT💎AGE — стилі індексної сторінки
   Токени й візуальна мова спільні зі звітами (cryptage.css)
   ==================================================================== */

/* ==================== ЗМІННІ ==================== */
:root {
    --bg: #07090e;
    --card: #0c0f19;
    --card-soft: #11162a;
    --line: rgba(255, 255, 255, 0.06);
    --line-strong: rgba(255, 255, 255, 0.1);
    --text: #e7eaf3;
    --text-dim: #8b91a6;
    --text-dimmer: #5b6175;
    --green: #00e5a0;
    --green-soft: rgba(0, 229, 160, 0.12);
    --green-line: rgba(0, 229, 160, 0.25);
    --amber: #f5a623;
    --amber-soft: rgba(245, 166, 35, 0.12);
    --amber-line: rgba(245, 166, 35, 0.25);
    --red: #ff4d6a;
    --red-soft: rgba(255, 77, 106, 0.12);
    --red-line: rgba(255, 77, 106, 0.25);

    /* Плавні відступи замість стрибків на брейкпоінтах */
    --pad-x: clamp(12px, 3vw, 24px);
    --gap: clamp(10px, 1.4vw, 14px);
    --radius: 12px;
}

/* ==================== БАЗА ==================== */
* {
    margin: 0;
    padding: 0;
    box-sizing: border-box;
}

html {
    scroll-behavior: smooth;
}

html,
body {
    background: var(--bg);
    color: var(--text);
    font-family: 'Space Mono', monospace;
    font-size: 14px;
    line-height: 1.5;
    -webkit-font-smoothing: antialiased;
    text-rendering: optimizeLegibility;
}

body {
    min-height: 100vh;
    overflow-x: hidden;
    padding: clamp(18px, 2.5vw, 28px) var(--pad-x) clamp(38px, 5vw, 60px);
    background:
        radial-gradient(1100px 600px at 80% -10%, rgba(0, 229, 160, 0.08), transparent 60%),
        radial-gradient(900px 500px at -10% 110%, rgba(245, 166, 35, 0.06), transparent 60%),
        var(--bg);
}

a {
    color: var(--green);
}

.container {
    max-width: 1320px;
    margin: 0 auto;
}

h1,
h2,
h3 {
    font-family: 'Syne', sans-serif;
    font-weight: 800;
}

.pos { color: var(--green); }
.neg { color: var(--red); }

/* Видимий фокус для клавіатурної навігації */
:where(a, button):focus-visible {
    outline: 2px solid var(--green);
    outline-offset: 3px;
    border-radius: 6px;
}

/* Посилання-пропуск для скрінрідерів і клавіатури */
.skip-link {
    position: absolute;
    left: -9999px;
    top: 0;
    z-index: 10;
    padding: 10px 16px;
    background: var(--green);
    color: var(--bg);
    font-weight: 700;
    text-decoration: none;
    border-radius: 0 0 8px 0;
}

.skip-link:focus {
    left: 0;
}

/* ==================== NAV ==================== */
nav {
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 18px;
    padding-bottom: 22px;
    margin-bottom: clamp(20px, 3vw, 28px);
    border-bottom: 1px solid var(--line);
    flex-wrap: wrap;
}

.brand-mark {
    display: inline-flex;
    align-items: center;
    gap: 4px;
    color: #fff;
    font-family: 'Syne', sans-serif;
    font-size: clamp(13px, 1.4vw, 15px);
    font-weight: 800;
    letter-spacing: .1em;
    text-decoration: none;
    text-transform: uppercase;
}

.brand-mark span {
    color: var(--green);
}

.social-links {
    display: flex;
    gap: 10px;
}

.social-links a {
    /* 44px — мінімальна зона дотику на сенсорних екранах */
    width: 44px;
    height: 44px;
    display: inline-flex;
    align-items: center;
    justify-content: center;
    border: 1px solid var(--line-strong);
    border-radius: 8px;
    background: var(--card);
    color: var(--text-dim);
    font-size: 17px;
    text-decoration: none;
    transition: color .25s ease, border-color .25s ease, background .25s ease, transform .25s ease;
}

.social-links a:hover {
    color: var(--green);
    border-color: var(--green-line);
    background: var(--green-soft);
    transform: translateY(-2px);
}

/* ==================== HERO ==================== */
.hero {
    display: grid;
    grid-template-columns: .85fr 1.15fr;
    gap: clamp(22px, 3vw, 34px);
    align-items: center;
    margin-bottom: var(--gap);
    padding: clamp(22px, 3.4vw, 42px);
    border: 1px solid var(--green-line);
    border-radius: 18px;
    background: linear-gradient(180deg, rgba(0, 229, 160, 0.06), transparent 70%), var(--card);
    position: relative;
    overflow: hidden;
}

.hero::before {
    content: "";
    position: absolute;
    top: -70px;
    right: -60px;
    width: 360px;
    height: 360px;
    background: radial-gradient(circle, rgba(0, 229, 160, 0.18), transparent 70%);
    pointer-events: none;
}

.logo-hex {
    position: relative;
    z-index: 1;
    display: flex;
    align-items: center;
    justify-content: center;
}

.logo-hex img {
    width: min(300px, 78%);
    height: auto;
    aspect-ratio: 1 / 1;
    object-fit: cover;
    padding: 10px;
    border: 1.5px solid var(--green-line);
    border-radius: 14px;
    background: rgba(0, 229, 160, 0.04);
    box-shadow: 0 0 34px rgba(0, 229, 160, 0.12);
}

.hero-copy {
    position: relative;
    z-index: 1;
}

.hero-kicker {
    display: inline-flex;
    align-items: center;
    gap: 8px;
    color: var(--text-dim);
    font-size: 12px;
    text-transform: uppercase;
    letter-spacing: .12em;
    margin-bottom: 12px;
}

.hero-kicker::before {
    content: "\f201";
    font-family: "Font Awesome 6 Free";
    font-weight: 900;
    color: var(--green);
    letter-spacing: 0;
}

h1 {
    color: #fff;
    font-size: clamp(40px, 6.4vw, 82px);
    line-height: .92;
    letter-spacing: -0.03em;
    text-transform: uppercase;
    margin-bottom: 18px;
    overflow-wrap: break-word;
}

h1 .gem {
    font-size: .72em;
    vertical-align: 2%;
}

h1 .accent {
    color: var(--green);
    text-shadow: 0 0 40px rgba(0, 229, 160, 0.28);
}

.hero-lead {
    max-width: 62ch;
    color: var(--text-dim);
    font-size: clamp(12.5px, 1.1vw, 14px);
    line-height: 1.7;
}

.hero-stats {
    display: flex;
    gap: 10px;
    flex-wrap: wrap;
    margin-top: 22px;
}

.tag {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    gap: 7px;
    padding: 7px 11px;
    border: 1px solid var(--line-strong);
    border-radius: 6px;
    background: var(--card);
    color: var(--text-dim);
    font-size: 11px;
    letter-spacing: .05em;
    text-transform: uppercase;
}

.tag.green {
    color: var(--green);
    border-color: var(--green-line);
    background: var(--green-soft);
}

.tag.amber {
    color: var(--amber);
    border-color: var(--amber-line);
    background: var(--amber-soft);
}

/* ==================== STATS STRIP ==================== */
/* Головні цифри періоду одразу під hero — щоб результат було видно
   без переходу на звіт. */
.stats-strip {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(200px, 1fr));
    gap: var(--gap);
    margin-bottom: clamp(24px, 3vw, 34px);
}

.stat {
    padding: 18px 20px;
    border: 1px solid var(--line);
    border-radius: var(--radius);
    background: var(--card);
    display: flex;
    flex-direction: column;
    gap: 4px;
}

.stat__lab {
    font-size: 10.5px;
    letter-spacing: .12em;
    text-transform: uppercase;
    color: var(--text-dim);
}

.stat__val {
    font-family: 'Syne', sans-serif;
    font-weight: 800;
    font-size: clamp(20px, 2.2vw, 26px);
    line-height: 1.1;
    color: #fff;
    letter-spacing: -0.01em;
}

.stat__sub {
    font-size: 11px;
    color: var(--text-dimmer);
}

/* ==================== SECTION HEAD ==================== */
.section-head {
    display: flex;
    align-items: center;
    gap: 14px;
    margin: clamp(24px, 3vw, 30px) 0 12px;
}

.section-head::before {
    content: "\f080";
    font-family: "Font Awesome 6 Free";
    font-weight: 900;
    width: 28px;
    height: 28px;
    flex: 0 0 auto;
    border-radius: 8px;
    display: inline-flex;
    align-items: center;
    justify-content: center;
    color: var(--green);
    border: 1px solid var(--green-line);
    background: var(--green-soft);
    font-size: 12px;
}

.section-label {
    color: var(--green);
    font-family: 'Syne', sans-serif;
    font-size: clamp(12px, 1.3vw, 14px);
    font-weight: 700;
    letter-spacing: .18em;
    text-transform: uppercase;
    white-space: nowrap;
}

.accent-line {
    flex: 1;
    height: 1px;
    background: var(--line);
}

.section-note {
    font-size: 11px;
    color: var(--text-dimmer);
    letter-spacing: .08em;
    text-transform: uppercase;
    white-space: nowrap;
}

/* ==================== ПЛИТКИ ЗВІТІВ ==================== */
.grid {
    display: grid;
    grid-template-columns: repeat(auto-fill, minmax(260px, 1fr));
    gap: var(--gap);
    margin-bottom: clamp(24px, 3vw, 32px);
}

.tile {
    display: flex;
    flex-direction: column;
    gap: 14px;
    min-height: 188px;
    padding: 20px;
    border-radius: var(--radius);
    border: 1px solid var(--line);
    background: var(--card);
    color: inherit;
    text-decoration: none;
    position: relative;
    overflow: hidden;
    transition: border-color .25s ease, transform .25s ease, box-shadow .25s ease;
}

/* Підсумкова плитка займає дві колонки і має акцентну рамку */
.tile--featured {
    grid-column: span 2;
    border-color: var(--green-line);
    background:
        radial-gradient(420px 200px at 20% 0%, rgba(0, 229, 160, 0.1), transparent 70%),
        var(--card);
}

.tile--current {
    border-color: var(--amber-line);
}

.tile::before {
    content: "";
    position: absolute;
    inset: 0;
    background: linear-gradient(180deg, rgba(0, 229, 160, 0.05), transparent 75%);
    opacity: 0;
    transition: opacity .25s ease;
    pointer-events: none;
}

.tile::after {
    content: "";
    position: absolute;
    left: 0;
    right: 0;
    bottom: 0;
    height: 2px;
    background: var(--green);
    transform: scaleX(0);
    transform-origin: left;
    transition: transform .25s ease;
}

.tile:hover {
    border-color: var(--green-line);
    transform: translateY(-4px);
    box-shadow: 0 18px 42px rgba(0, 229, 160, 0.12);
}

.tile:hover::before { opacity: 1; }
.tile:hover::after { transform: scaleX(1); }

.tile__head {
    position: relative;
    z-index: 1;
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 10px;
}

.tile i {
    width: 42px;
    height: 42px;
    flex: 0 0 auto;
    display: inline-flex;
    align-items: center;
    justify-content: center;
    border-radius: 10px;
    color: var(--green);
    border: 1px solid var(--green-line);
    background: var(--green-soft);
    font-size: 18px;
}

.tile__badge {
    font-size: 9.5px;
    letter-spacing: .12em;
    text-transform: uppercase;
    padding: 4px 9px;
    border-radius: 5px;
    border: 1px solid var(--line-strong);
    color: var(--text-dim);
    background: var(--card-soft);
}

.tile__badge--accent {
    color: var(--green);
    border-color: var(--green-line);
    background: var(--green-soft);
}

.tile__badge--live {
    color: var(--amber);
    border-color: var(--amber-line);
    background: var(--amber-soft);
}

.tile__body {
    position: relative;
    z-index: 1;
    margin-top: auto;
}

.tile__kicker {
    display: block;
    color: var(--text-dim);
    font-size: 10.5px;
    letter-spacing: .12em;
    text-transform: uppercase;
}

.tile h3 {
    color: #fff;
    font-size: clamp(19px, 2vw, 24px);
    line-height: 1.1;
    margin-top: 6px;
    letter-spacing: -0.01em;
}

.tile--featured h3 {
    font-size: clamp(22px, 2.6vw, 30px);
}

/* Результат місяця — головна причина цього редизайну:
   видно прибуток кожного періоду без переходу на сторінку. */
.tile__foot {
    position: relative;
    z-index: 1;
    display: flex;
    align-items: baseline;
    justify-content: space-between;
    gap: 10px;
    padding-top: 12px;
    border-top: 1px solid var(--line);
    flex-wrap: wrap;
}

.tile__pnl {
    font-family: 'Syne', sans-serif;
    font-weight: 800;
    font-size: clamp(17px, 1.9vw, 21px);
    letter-spacing: -0.01em;
}

.tile--featured .tile__pnl {
    font-size: clamp(24px, 3vw, 34px);
}

.tile__pct {
    font-size: 11.5px;
    opacity: .85;
}

/* ==================== VIP CTA ==================== */
.vip-card {
    background:
        radial-gradient(500px 240px at 50% 0%, rgba(0, 229, 160, 0.12), transparent 70%),
        linear-gradient(135deg, rgba(17, 22, 42, 0.96), rgba(7, 9, 14, 0.98));
    border: 1px solid var(--green-line);
    border-radius: 16px;
    padding: clamp(28px, 3.6vw, 42px) clamp(16px, 3vw, 38px);
    margin: clamp(24px, 3vw, 32px) 0 28px;
    text-align: center;
    position: relative;
    overflow: hidden;
}

.vip-card::before {
    content: "\f3ed";
    font-family: "Font Awesome 6 Free";
    font-weight: 900;
    position: absolute;
    right: clamp(8px, 2vw, 28px);
    top: clamp(10px, 1.6vw, 22px);
    color: rgba(0, 229, 160, 0.08);
    font-size: clamp(72px, 8vw, 92px);
    line-height: 1;
    pointer-events: none;
}

.vip-card h2 {
    position: relative;
    z-index: 1;
    color: #fff;
    font-size: clamp(21px, 3vw, 34px);
    line-height: 1.18;
    text-transform: uppercase;
    margin-bottom: 26px;
}

.vip-card h2::before {
    content: "\f521";
    font-family: "Font Awesome 6 Free";
    font-weight: 900;
    color: var(--green);
    font-size: .7em;
    margin-right: 12px;
}

.features {
    position: relative;
    z-index: 1;
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(230px, 1fr));
    gap: 12px;
    max-width: 860px;
    margin: 0 auto 30px;
    text-align: left;
}

.feature {
    display: flex;
    align-items: center;
    gap: 12px;
    min-height: 48px;
    padding: 12px 14px;
    border: 1px solid var(--line);
    border-radius: 10px;
    background: rgba(255, 255, 255, 0.025);
    color: var(--text-dim);
    font-size: 12px;
}

.feature i {
    color: var(--green);
    width: 18px;
    text-align: center;
    font-size: 15px;
    flex: 0 0 auto;
}

.vip-actions {
    position: relative;
    z-index: 1;
    display: flex;
    flex-direction: column;
    align-items: center;
    gap: 18px;
}

.btn {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    gap: 9px;
    min-height: 48px;
    padding: 14px 26px;
    border-radius: 8px;
    background: var(--green);
    color: var(--bg);
    font-weight: 800;
    font-size: 12px;
    letter-spacing: .08em;
    text-transform: uppercase;
    text-decoration: none;
    box-shadow: 0 0 28px rgba(0, 229, 160, 0.2);
    transition: transform .25s ease, box-shadow .25s ease;
}

.btn::before {
    content: "\f2c6";
    font-family: "Font Awesome 6 Brands";
    font-weight: 400;
    letter-spacing: 0;
}

.btn:hover {
    transform: translateY(-1px);
    box-shadow: 0 0 34px rgba(0, 229, 160, 0.32);
}

.price-info {
    color: var(--green);
    font-family: 'Syne', sans-serif;
    font-size: clamp(24px, 2.4vw, 26px);
    font-weight: 800;
}

.price-info small {
    color: var(--text-dim);
    font-family: 'Space Mono', monospace;
    font-size: 11px;
    font-weight: 400;
    text-transform: none;
    margin-left: 4px;
}

.vip-question {
    position: relative;
    z-index: 1;
    margin-top: 20px;
    font-size: 12px;
    color: var(--text-dim);
}

.vip-question a {
    color: var(--amber);
    text-decoration: none;
}

.vip-question a:hover {
    text-decoration: underline;
}

/* ==================== FOOTER ==================== */
footer {
    max-width: 1320px;
    margin: 30px auto 0;
    padding-top: 20px;
    border-top: 1px solid var(--line);
    color: var(--text-dimmer);
    font-size: 11.5px;
    text-align: center;
    display: grid;
    gap: 10px;
}

.disclaimer {
    max-width: 74ch;
    margin: 0 auto;
    line-height: 1.6;
    opacity: .8;
}

/* ==================== АДАПТИВНІСТЬ ==================== */

/* Планшет: hero в один стовпчик, логотип менший */
@media (max-width: 900px) {
    .hero {
        grid-template-columns: 1fr;
        text-align: center;
    }

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

    .logo-hex img {
        width: min(210px, 58%);
    }

    .hero-stats {
        justify-content: center;
    }
}

/* Вузькі екрани: плитки в один стовпчик, підсумкова теж */
@media (max-width: 640px) {
    .grid {
        grid-template-columns: 1fr;
    }

    .tile--featured {
        grid-column: span 1;
    }

    .tile {
        min-height: 0;
        padding: 16px;
        gap: 12px;
    }

    .tile i {
        width: 38px;
        height: 38px;
        font-size: 16px;
    }

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

    .stat {
        padding: 14px 15px;
    }

    .btn {
        width: 100%;
    }

    .social-links a {
        width: 44px;
        height: 44px;
    }
}

/* Найвужчі: статистика в стовпчик */
@media (max-width: 380px) {
    .stats-strip {
        grid-template-columns: 1fr;
    }

    .hero-stats {
        display: grid;
        grid-template-columns: 1fr;
        width: 100%;
    }
}

/* Повага до системного налаштування «менше руху» */
@media (prefers-reduced-motion: reduce) {
    html {
        scroll-behavior: auto;
    }

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

    .tile:hover,
    .social-links a:hover,
    .btn:hover {
        transform: none;
    }
}

/* Друк: без важких фонів */
@media print {
    body {
        background: #fff;
        color: #000;
    }

    .vip-card,
    .social-links,
    .skip-link {
        display: none;
    }
}
