:root {
    --purple: #9945ff;
    --green: #14f195;
    --bg: #f6f5f9;
    --surface: #ffffff;
    --text: #19171f;
    --muted: #5f5b6b;
    --border: #e4e2ec;
    --shadow: 0 18px 40px rgba(25, 23, 31, 0.08);
    --shadow-soft: 0 10px 30px rgba(25, 23, 31, 0.06);
    --accent-gradient: linear-gradient(120deg, rgba(153, 69, 255, 0.95), rgba(20, 241, 149, 0.95));
    --accent-soft: linear-gradient(120deg, rgba(153, 69, 255, 0.18), rgba(20, 241, 149, 0.18));
}

[data-theme="dark"] {
    --bg: #0e0b14;
    --surface: #15121d;
    --text: #f4f2f8;
    --muted: #b6b2c4;
    --border: #2a2533;
    --shadow: 0 18px 40px rgba(5, 4, 8, 0.55);
    --shadow-soft: 0 10px 30px rgba(5, 4, 8, 0.4);
}

* {
    box-sizing: border-box;
}

body {
    margin: 0;
    font-family: 'Inter', 'Roboto', sans-serif;
    font-size-adjust: 0.52;
    background: var(--bg);
    color: var(--text);
    line-height: 1.6;
}

body::before {
    content: '';
    position: fixed;
    inset: -20% -10% auto auto;
    width: 520px;
    height: 520px;
    background: radial-gradient(circle, rgba(153, 69, 255, 0.24), transparent 60%);
    filter: blur(0px);
    pointer-events: none;
    z-index: -1;
}

body::after {
    content: '';
    position: fixed;
    inset: auto auto -10% -10%;
    width: 520px;
    height: 520px;
    background: radial-gradient(circle, rgba(20, 241, 149, 0.2), transparent 60%);
    pointer-events: none;
    z-index: -1;
}

@keyframes fade-up {
    from {
        opacity: 0;
        transform: translateY(16px);
    }
    to {
        opacity: 1;
        transform: translateY(0);
    }
}

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

a {
    color: inherit;
    text-decoration: none;
}

.page {
    min-height: 100vh;
    display: flex;
    flex-direction: column;
}

.container {
    width: min(1200px, 92vw);
    margin: 0 auto;
}

.section {
    padding: 72px 0;
}

.site-header {
    position: sticky;
    top: 0;
    z-index: 10;
    background: rgba(246, 245, 249, 0.9);
    backdrop-filter: blur(12px);
    border-bottom: 1px solid var(--border);
}

.site-header::after {
    content: '';
    position: absolute;
    left: 0;
    right: 0;
    bottom: 0;
    height: 2px;
    background: var(--accent-gradient);
    opacity: 0.5;
    pointer-events: none;
}

[data-theme="dark"] .site-header {
    background: rgba(14, 11, 20, 0.92);
}

.header-inner {
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 24px;
    padding: 18px 0;
}

.logo {
    display: inline-flex;
    align-items: center;
    font-weight: 700;
    letter-spacing: 0.4px;
    color: var(--purple);
}

.logo img {
    display: block;
    height: 28px;
    width: auto;
}

.site-nav {
    display: flex;
    align-items: center;
    gap: 20px;
    font-size: 0.95rem;
    color: var(--muted);
}

.site-nav a {
    transition: color 0.2s ease;
}

.site-nav a:hover {
    color: var(--purple);
}

.theme-toggle {
    border: 1px solid var(--border);
    background: var(--surface);
    color: var(--text);
    border-radius: 999px;
    padding: 8px 14px;
    display: inline-flex;
    align-items: center;
    gap: 8px;
    cursor: pointer;
    box-shadow: var(--shadow-soft);
}

.theme-toggle .theme-icon {
    font-size: 0.9rem;
}

.hero {
    padding: 72px 0 40px;
    position: relative;
}

.hero::before {
    content: '';
    position: absolute;
    inset: -40px 0 0;
    background: var(--accent-soft);
    opacity: 0.7;
    border-radius: 32px;
    z-index: -1;
}

.hero-copy,
.hero-card {
    animation: fade-up 0.8s ease both;
}

.hero-card {
    animation-delay: 0.12s;
}

.hero-grid {
    display: grid;
    grid-template-columns: repeat(2, minmax(0, 1fr));
    gap: 48px;
    align-items: center;
}

.hero-copy h1 {
    font-size: clamp(2.4rem, 4vw, 3.4rem);
    line-height: 1.1;
    margin: 16px 0 18px;
}

h1 {
    font-size: clamp(2.1rem, 3.6vw, 2.9rem);
    line-height: 1.15;
    margin: 16px 0 18px;
}

.eyebrow {
    font-size: 0.85rem;
    text-transform: uppercase;
    letter-spacing: 0.16em;
    color: var(--muted);
    margin: 0;
}

.hero-actions {
    display: flex;
    gap: 16px;
    margin-top: 24px;
    flex-wrap: wrap;
}

.hero-note {
    margin-top: 14px;
    color: var(--muted);
    font-weight: 500;
}

.button {
    border-radius: 999px;
    padding: 12px 22px;
    background: var(--accent-gradient);
    color: #ffffff;
    font-weight: 600;
    box-shadow: var(--shadow-soft);
    transition: transform 0.2s ease, box-shadow 0.2s ease;
}

.button:hover {
    transform: translateY(-1px);
    box-shadow: var(--shadow);
}

.button.ghost {
    background: transparent;
    color: var(--text);
    border: 1px solid var(--border);
}

.card {
    position: relative;
    background: var(--surface);
    border: 1px solid var(--border);
    border-radius: 20px;
    padding: 24px;
    box-shadow: var(--shadow-soft);
    animation: fade-up 0.7s ease both;
}

.card::before {
    content: '';
    position: absolute;
    top: 0;
    left: 16px;
    right: 16px;
    height: 3px;
    border-radius: 999px;
    background: var(--accent-gradient);
    opacity: 0.6;
}

.card-header {
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 16px;
    margin-bottom: 16px;
}

.badge {
    background: var(--accent-soft);
    color: var(--text);
    border-radius: 999px;
    padding: 6px 12px;
    font-size: 0.75rem;
    border: 1px solid var(--border);
}

.price-row {
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 16px;
    margin-bottom: 20px;
}

.price-value {
    font-size: 2.4rem;
    font-weight: 700;
}

.price-change {
    text-align: right;
    font-weight: 600;
    display: flex;
    flex-direction: column;
    gap: 6px;
}

.price-change.positive {
    color: var(--green);
}

.price-change.negative {
    color: var(--purple);
}

.stats-grid {
    display: grid;
    grid-template-columns: repeat(2, minmax(0, 1fr));
    gap: 16px;
}

.stat-label {
    display: block;
    font-size: 0.75rem;
    text-transform: uppercase;
    letter-spacing: 0.08em;
    color: var(--muted);
}

.stat-value {
    display: block;
    font-weight: 600;
    margin-top: 6px;
}

.section-header {
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 24px;
    margin-bottom: 24px;
}

.timeframe-tabs {
    display: inline-flex;
    gap: 8px;
    flex-wrap: wrap;
}

.tab {
    border: 1px solid var(--border);
    background: var(--surface);
    color: var(--text);
    border-radius: 999px;
    padding: 8px 14px;
    font-weight: 600;
    cursor: pointer;
}

.tab.is-active {
    background: var(--accent-gradient);
    color: #ffffff;
    border-color: transparent;
}

.chart-card {
    padding: 18px 20px 12px;
}

.chart {
    width: 100%;
    height: 360px;
}

.chart-meta {
    display: flex;
    justify-content: space-between;
    align-items: center;
    margin-bottom: 12px;
    color: var(--muted);
    font-size: 0.9rem;
}

.chart-title {
    color: var(--text);
    font-weight: 600;
    display: block;
}

.grid-two {
    display: grid;
    grid-template-columns: repeat(2, minmax(0, 1fr));
    gap: 24px;
}

.converter {
    display: grid;
    gap: 16px;
    margin: 20px 0 12px;
}

.converter label {
    display: grid;
    gap: 8px;
    font-weight: 600;
}

.converter input {
    border-radius: 12px;
    border: 1px solid var(--border);
    padding: 12px 14px;
    font-size: 1rem;
    background: var(--surface);
    color: var(--text);
}

.converter-note {
    color: var(--muted);
    font-size: 0.9rem;
}

.ath-grid {
    display: grid;
    grid-template-columns: repeat(3, minmax(0, 1fr));
    gap: 16px;
    margin-top: 20px;
}

.performance-table {
    width: 100%;
    border-collapse: collapse;
}

.performance-table th,
.performance-table td {
    text-align: left;
    padding: 12px 8px;
    border-bottom: 1px solid var(--border);
}

.performance-table td {
    font-weight: 600;
}

.content-grid {
    display: grid;
    grid-template-columns: repeat(2, minmax(0, 1fr));
    gap: 24px;
}

.faq-list {
    display: grid;
    gap: 16px;
}

.faq-item {
    border: 1px solid var(--border);
    border-radius: 18px;
    padding: 18px 20px;
    background: var(--surface);
    box-shadow: var(--shadow-soft);
}

.faq-item summary {
    list-style: none;
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 16px;
    font-weight: 600;
    cursor: pointer;
}

.faq-item summary::-webkit-details-marker {
    display: none;
}

.faq-item summary::after {
    content: '▾';
    font-size: 1rem;
    color: var(--purple);
}

.faq-item[open] summary::after {
    content: '▴';
    color: var(--green);
}

.faq-item p {
    margin: 12px 0 0;
    color: var(--muted);
}

.grid-two .card:nth-child(2),
.content-grid .card:nth-child(2) {
    animation-delay: 0.12s;
}

.faq-grid .card:nth-child(2) {
    animation-delay: 0.08s;
}

.faq-grid .card:nth-child(3) {
    animation-delay: 0.16s;
}

.article-card {
    padding: 36px;
}

.article-header {
    margin-bottom: 28px;
}

.article-card h2 {
    margin-top: 28px;
    margin-bottom: 12px;
}

.article-card p {
    margin: 0 0 16px;
    color: var(--muted);
}

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

.article-faq {
    margin-top: 32px;
}

.article-faq details {
    margin-bottom: 12px;
    padding: 12px 16px;
    border: 1px solid var(--border);
    border-radius: 14px;
    background: var(--surface);
}

.article-faq summary {
    font-weight: 600;
    cursor: pointer;
}

.faq-grid {
    display: grid;
    grid-template-columns: repeat(3, minmax(0, 1fr));
    gap: 16px;
}

.faq-grid summary {
    cursor: pointer;
    font-weight: 600;
}

.site-footer {
    margin-top: auto;
    border-top: 1px solid var(--border);
    background: var(--surface);
    padding: 48px 0 36px;
}

.footer-grid {
    display: grid;
    grid-template-columns: 2fr 1.2fr 1.3fr;
    gap: 24px;
    margin-bottom: 28px;
}

.footer-brand {
    font-weight: 700;
    margin-bottom: 8px;
}

.footer-title {
    font-weight: 600;
    margin-bottom: 12px;
}

.site-footer a {
    display: block;
    margin-bottom: 10px;
    color: var(--muted);
}

.site-footer p {
    color: var(--muted);
}

.footer-meta {
    display: flex;
    flex-wrap: wrap;
    gap: 16px;
    font-size: 0.85rem;
    color: var(--muted);
    border-top: 1px solid var(--border);
    padding-top: 16px;
}

@media (max-width: 980px) {
    .hero-grid,
    .grid-two,
    .content-grid,
    .footer-grid {
        grid-template-columns: 1fr;
    }

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

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

    .site-nav {
        display: none;
    }

    .site-header {
        backdrop-filter: none;
    }

    .hero-copy,
    .hero-card,
    .card {
        animation: none;
    }
}

@media (max-width: 720px) {
    .section {
        padding: 56px 0;
    }

    .price-row {
        flex-direction: column;
        align-items: flex-start;
    }

    .price-change {
        text-align: left;
    }

    body::before,
    body::after,
    .hero::before {
        display: none;
    }
}

@media (prefers-reduced-motion: reduce) {
    * {
        animation: none !important;
        transition: none !important;
    }
}
