@import url('https://fonts.googleapis.com/css2?family=Inter:wght@400;500;600;700&display=swap');

:root {
    --canvas: #050608;
    --content-bg: #0c1017;
    --panel: #121723;
    --panel-soft: #151c2c;
    --border: rgba(255, 255, 255, 0.08);
    --text: #f8fafc;
    --muted: #9aa5b5;
    --accent: #3dd598;
    --accent-warm: #ffb648;
    --accent-alert: #ff6b6b;
    --accent-info: #5bb0ff;
    --radius-lg: 20px;
    --radius-md: 14px;
    --radius-sm: 10px;
    --shadow-card: 0 20px 40px rgba(0, 0, 0, 0.45);
}

* {
    box-sizing: border-box;
    margin: 0;
    padding: 0;
}

body {
    font-family: 'Inter', -apple-system, BlinkMacSystemFont, 'Segoe UI', sans-serif;
    background: var(--canvas);
    color: var(--text);
    line-height: 1.6;
    min-height: 100vh;
}

.marketBackground {
    position: fixed;
    inset: 0;
    background: radial-gradient(circle at top, rgba(61, 213, 152, 0.25), transparent 55%),
                radial-gradient(circle at 30% 40%, rgba(91, 176, 255, 0.18), transparent 50%);
    pointer-events: none;
    z-index: -2;
}

.marketBackground::before,
.marketBackground::after {
    content: "";
    position: absolute;
    inset: 0;
    background-image:
        linear-gradient(135deg, rgba(255, 255, 255, 0.05) 1px, transparent 1px),
        linear-gradient(45deg, rgba(255, 255, 255, 0.02) 1px, transparent 1px);
    background-size: 80px 80px, 120px 120px;
    animation: slideGrid 40s linear infinite;
}

.marketBackground::after {
    background-image: linear-gradient(90deg, rgba(61, 213, 152, 0.15) 2px, transparent 2px);
    background-size: 50px 50px;
    animation: tapeFlow 18s linear infinite;
    opacity: 0.6;
}

@keyframes slideGrid {
    from { transform: translate3d(0, 0, 0); }
    to { transform: translate3d(60px, 120px, 0); }
}

@keyframes tapeFlow {
    from { transform: translateY(0); }
    to { transform: translateY(60px); }
}

.content {
    max-width: 480px;
    margin: 0 auto;
    background: var(--content-bg);
    min-height: 100vh;
    padding: 0 1.25rem 3rem;
    position: relative;
}

.content::before {
    content: "";
    position: absolute;
    inset: 0;
    border: 1px solid rgba(255, 255, 255, 0.03);
    pointer-events: none;
}

.siteHeader {
    padding: 1.3rem 0 0.8rem;
}

.brandRow {
    display: flex;
    flex-direction: column;
    gap: 1rem;
}

.brandMark {
    display: flex;
    gap: 0.85rem;
    align-items: center;
}

.brandMark img {
    width: 48px;
    height: 48px;
    border-radius: var(--radius-sm);
    border: 2px solid rgba(255, 255, 255, 0.12);
}

.brandTitle {
    font-weight: 700;
    font-size: 1.1rem;
}

.brandTagline {
    font-size: 0.85rem;
    color: var(--muted);
}

/* no top navigation – single column layout */

.tickerStrip {
    margin-top: 1rem;
    border: 1px solid var(--border);
    border-radius: var(--radius-md);
    overflow: hidden;
    background: var(--panel);
}

.tickerNotice {
    text-align: center;
    font-size: 0.8rem;
    padding: 0.6rem;
    color: var(--muted);
    border-bottom: 1px solid var(--border);
}

.tickerTrack {
    display: flex;
    animation: ticker 24s linear infinite;
}

@keyframes ticker {
    from { transform: translateX(0); }
    to { transform: translateX(-50%); }
}

.tickerEntry {
    padding: 0.7rem 1rem;
    font-size: 0.85rem;
    white-space: nowrap;
    color: var(--muted);
}

.trendUp {
    color: var(--accent);
    font-weight: 600;
}

.trendDown {
    color: var(--accent-alert);
    font-weight: 600;
}

.heroPanel {
    text-align: center;
    padding: 2rem 0 1.5rem;
}

.heroAvatar {
    width: 120px;
    height: 120px;
    border-radius: 28px;
    border: 4px solid rgba(61, 213, 152, 0.3);
    margin: 0 auto 1.2rem;
}

.heroPanel h1 {
    font-size: 1.6rem;
    margin-bottom: 0.6rem;
}

.heroLead {
    font-size: 0.95rem;
    color: var(--muted);
    margin-bottom: 1.2rem;
}

.searchShell {
    display: flex;
    flex-direction: column;
    gap: 0.7rem;
}

.searchInput {
    padding: 0.9rem;
    border-radius: var(--radius-md);
    border: 1px solid var(--border);
    background: var(--panel);
    color: var(--text);
}

.searchButton {
    padding: 0.9rem;
    border-radius: var(--radius-md);
    border: none;
    background: var(--accent);
    color: #04110a;
    font-weight: 600;
    cursor: pointer;
}

.noticeBoard,
.featureStack,
.statsStack,
.dataShowcase,
.moduleStack,
.ctaBlock {
    border: 1px solid var(--border);
    border-radius: var(--radius-lg);
    background: var(--panel);
    padding: 1.4rem;
    margin-top: 1.4rem;
    box-shadow: var(--shadow-card);
}

.noticeHeader {
    display: flex;
    gap: 0.9rem;
    margin-bottom: 1rem;
}

.noticeHeader svg {
    width: 38px;
    height: 38px;
    stroke: var(--accent-warm);
    fill: none;
}

.noticeBoard ul {
    list-style: none;
    display: flex;
    flex-direction: column;
    gap: 0.6rem;
    font-size: 0.9rem;
    color: var(--muted);
}

.noticeFooter {
    margin-top: 0.8rem;
    font-size: 0.8rem;
    color: var(--muted);
}

.featureStack h2,
.statsStack h2,
.dataShowcase h2,
.moduleStack h2,
.ctaBlock h2 {
    font-size: 1.2rem;
    margin-bottom: 0.4rem;
}

.sectionIntro {
    font-size: 0.9rem;
    color: var(--muted);
    margin-bottom: 1rem;
}

.cardGrid,
.moduleGrid {
    display: grid;
    gap: 0.9rem;
}

.infoCard {
    border: 1px solid var(--border);
    border-radius: var(--radius-md);
    padding: 1rem;
    background: var(--panel-soft);
}

.iconBadge {
    width: 36px;
    height: 36px;
    border-radius: 12px;
    background: rgba(61, 213, 152, 0.12);
    display: flex;
    align-items: center;
    justify-content: center;
    margin-bottom: 0.7rem;
}

.iconBadge svg {
    width: 20px;
    height: 20px;
    stroke: var(--accent);
    fill: none;
}

.infoCard h3 {
    font-size: 1rem;
    margin-bottom: 0.3rem;
}

.infoCard p,
.moduleGrid article p {
    font-size: 0.9rem;
    color: var(--muted);
}

.statGrid {
    display: grid;
    gap: 0.8rem;
}

.statCard {
    border: 1px solid var(--border);
    border-radius: var(--radius-md);
    padding: 0.9rem;
    background: var(--panel-soft);
    text-align: center;
}

.statValue {
    font-size: 1.3rem;
    font-weight: 700;
    color: var(--accent);
}

.alertNote {
    padding: 0.75rem;
    border-radius: var(--radius-md);
    border: 1px dashed rgba(255, 255, 255, 0.15);
    background: rgba(255, 107, 107, 0.08);
    color: var(--accent-warm);
    font-size: 0.85rem;
    margin-bottom: 1rem;
}

.tableStack {
    display: flex;
    flex-direction: column;
    gap: 1rem;
}

.tableCard {
    border: 1px solid var(--border);
    border-radius: var(--radius-md);
    background: var(--panel-soft);
    overflow: hidden;
}

.tableCard header {
    padding: 1rem;
    border-bottom: 1px solid var(--border);
}

table {
    width: 100%;
    border-collapse: collapse;
}

th, td {
    font-size: 0.85rem;
    padding: 0.6rem 1rem;
    border-bottom: 1px solid rgba(255, 255, 255, 0.04);
}

th {
    text-transform: uppercase;
    font-size: 0.75rem;
    letter-spacing: 0.05em;
    color: var(--muted);
}

.moduleGrid article {
    border: 1px solid var(--border);
    border-radius: var(--radius-md);
    padding: 0.9rem;
    background: var(--panel-soft);
}

.ctaBlock {
    text-align: center;
}

.ctaButton {
    margin-top: 1rem;
    border: none;
    border-radius: var(--radius-md);
    padding: 0.95rem;
    width: 100%;
    background: linear-gradient(120deg, #3dd598, #5bb0ff);
    color: #04110a;
    font-weight: 700;
    cursor: pointer;
}

.siteFooter {
    text-align: center;
    margin-top: 1.5rem;
    color: var(--muted);
    font-size: 0.85rem;
}

.footerLinks {
    display: flex;
    justify-content: center;
    gap: 1rem;
    margin: 0.6rem 0;
}

.footerLinks a {
    color: var(--accent-info);
    text-decoration: none;
    font-size: 0.85rem;
}

.cookiePanel {
    position: fixed;
    left: 50%;
    bottom: 1rem;
    transform: translateX(-50%) translateY(120%);
    width: min(440px, 90vw);
    border-radius: var(--radius-lg);
    background: var(--panel);
    border: 1px solid var(--border);
    box-shadow: var(--shadow-card);
    transition: transform 0.3s ease;
    z-index: 20;
}

.cookiePanel.is-visible {
    transform: translateX(-50%) translateY(0);
}

.cookieBody {
    padding: 1.1rem;
    display: flex;
    flex-direction: column;
    gap: 0.8rem;
}

.cookieButtons {
    display: flex;
    gap: 0.8rem;
}

.cookieGhost,
.cookiePrimary {
    flex: 1;
    border-radius: var(--radius-sm);
    padding: 0.85rem;
    cursor: pointer;
    border: 1px solid var(--border);
    background: transparent;
    color: var(--text);
}

.cookiePrimary {
    background: var(--accent);
    border-color: var(--accent);
    color: #04110a;
    font-weight: 600;
}

.dialogOverlay {
    position: fixed;
    inset: 0;
    background: rgba(0, 0, 0, 0.7);
    display: none;
    align-items: center;
    justify-content: center;
    padding: 1rem;
}

.dialogOverlay.is-active {
    display: flex;
}

.dialogBox {
    background: var(--panel);
    border: 1px solid var(--border);
    border-radius: var(--radius-lg);
    padding: 1.5rem;
    width: min(420px, 90vw);
    text-align: center;
    position: relative;
}

.dialogClose {
    position: absolute;
    top: 1rem;
    right: 1.2rem;
    background: none;
    border: none;
    font-size: 1.6rem;
    color: var(--muted);
    cursor: pointer;
}

.dialogAvatar {
    width: 88px;
    height: 88px;
    border-radius: 24px;
    border: 3px solid rgba(61, 213, 152, 0.3);
    margin: 0 auto 1rem;
}

.dialogButton {
    margin-top: 1.2rem;
    width: 100%;
    padding: 0.9rem;
    border-radius: var(--radius-md);
    border: none;
    background: var(--accent-info);
    color: #04101d;
    font-weight: 600;
    cursor: pointer;
}

.fadeReveal {
    opacity: 0;
    transform: translateY(12px);
}

.fadeReveal.is-visible {
    opacity: 1;
    transform: none;
    transition: opacity 0.4s ease, transform 0.4s ease;
}

@media (min-width: 768px) {
    .content {
        margin-top: 1.5rem;
        border-radius: 24px;
        overflow: hidden;
    }

    .siteHeader {
        padding-top: 1.8rem;
    }
}

