﻿/* ========================================
   UNY Finance - Global Styles
   ======================================== */

/* CSS Variables */
:root {
    /* Colors */
    --color-primary: #0A0E17;
    --color-secondary: #1E3A5F;
    --color-accent: #00FF88;
    --color-accent-gold: #FFD700;
    --color-accent-blue: #00D4FF;
    --color-text: #FFFFFF;
    --color-text-muted: #A0AEC0;
    --color-text-dark: #1A1F2E;
    --color-bg: #0A0E17;
    --color-bg-alt: #111827;
    --color-card: #151D2E;
    --color-card-hover: #1A2332;
    --color-border: rgba(255, 255, 255, 0.08);
    --color-border-light: rgba(255, 255, 255, 0.12);
    
    /* Gradients */
    --gradient-primary: linear-gradient(135deg, #0A0E17 0%, #1E3A5F 100%);
    --gradient-accent: linear-gradient(135deg, #00FF88 0%, #00D4FF 100%);
    --gradient-gold: linear-gradient(135deg, #FFD700 0%, #FFA500 100%);
    --gradient-hero: linear-gradient(180deg, #0A0E17 0%, #111827 50%, #0A0E17 100%);
    
    /* Typography */
    --font-display: 'Orbitron', 'Noto Sans SC', sans-serif;
    --font-body: 'Inter', 'Noto Sans SC', sans-serif;
    
    /* Spacing */
    --space-xs: 0.5rem;
    --space-sm: 1rem;
    --space-md: 1.5rem;
    --space-lg: 2rem;
    --space-xl: 3rem;
    --space-2xl: 4rem;
    --space-3xl: 6rem;
    
    /* Border Radius */
    --radius-sm: 4px;
    --radius-md: 8px;
    --radius-lg: 12px;
    --radius-xl: 16px;
    --radius-full: 9999px;
    
    /* Shadows */
    --shadow-sm: 0 2px 8px rgba(0, 0, 0, 0.3);
    --shadow-md: 0 4px 16px rgba(0, 0, 0, 0.4);
    --shadow-lg: 0 8px 32px rgba(0, 0, 0, 0.5);
    --shadow-glow: 0 0 40px rgba(0, 255, 136, 0.15);
    --shadow-glow-gold: 0 0 40px rgba(255, 215, 0, 0.15);
    
    /* Transitions */
    --transition-fast: 0.2s ease;
    --transition-base: 0.3s ease;
    --transition-slow: 0.5s ease;
    
    /* Z-index */
    --z-header: 1000;
    --z-modal: 2000;
    --z-tooltip: 3000;
}

/* Reset & Base */
*, *::before, *::after {
    margin: 0;
    padding: 0;
    box-sizing: border-box;
}

html {
    scroll-behavior: smooth;
    font-size: 16px;
}

body {
    font-family: var(--font-body);
    background-color: var(--color-bg);
    color: var(--color-text);
    line-height: 1.6;
    overflow-x: hidden;
    -webkit-font-smoothing: antialiased;
    -moz-osx-font-smoothing: grayscale;
}

body.pretext-cursor-active,
body.pretext-cursor-active a,
body.pretext-cursor-active button,
body.pretext-cursor-active .btn,
body.pretext-cursor-active [role='button'] {
    cursor: none !important;
}

.pretext-crosshair {
    position: fixed;
    top: 0;
    left: 0;
    width: 22px;
    height: 22px;
    margin-left: -11px;
    margin-top: -11px;
    pointer-events: none;
    z-index: var(--z-tooltip);
    opacity: 0;
    transition: opacity 0.2s ease;
}

.pretext-crosshair.visible {
    opacity: 1;
}

.pretext-crosshair::before,
.pretext-crosshair::after {
    content: '';
    position: absolute;
    left: 50%;
    top: 50%;
    background: linear-gradient(180deg, rgba(0, 255, 136, 0.95) 0%, rgba(0, 212, 255, 0.95) 100%);
    transform: translate(-50%, -50%);
    border-radius: 99px;
}

.pretext-crosshair::before {
    width: 2px;
    height: 22px;
}

.pretext-crosshair::after {
    width: 22px;
    height: 2px;
}

.pretext-crosshair-core {
    position: absolute;
    left: 50%;
    top: 50%;
    width: 8px;
    height: 8px;
    transform: translate(-50%, -50%);
    border-radius: 50%;
    border: 1px solid rgba(255, 255, 255, 0.88);
    background: rgba(10, 14, 23, 0.75);
    box-shadow: 0 0 22px rgba(0, 255, 136, 0.28);
}

.pretext-dragon-tail {
    position: fixed;
    inset: 0;
    pointer-events: none;
    z-index: calc(var(--z-tooltip) - 1);
}

.pretext-dragon-segment {
    position: absolute;
    left: 0;
    top: 0;
    border-radius: 999px;
    pointer-events: none;
    will-change: transform, opacity;
    background:
        radial-gradient(circle at 30% 40%, rgba(255, 255, 255, 0.9) 0%, rgba(255, 255, 255, 0) 45%),
        linear-gradient(135deg, rgba(0, 255, 136, 0.9) 0%, rgba(0, 212, 255, 0.68) 100%);
    box-shadow: 0 0 18px rgba(0, 255, 136, 0.22);
    mix-blend-mode: screen;
}

.pretext-dragon-glyph {
    border-radius: 6px;
    font-family: var(--font-display);
    font-weight: 700;
    letter-spacing: 0.02em;
    line-height: 1;
    white-space: nowrap;
    text-transform: uppercase;
}

@media (prefers-reduced-motion: reduce) {
    .pretext-crosshair,
    .pretext-dragon-tail {
        display: none !important;
    }
}

a {
    color: inherit;
    text-decoration: none;
    transition: color var(--transition-fast);
}

ul {
    list-style: none;
}

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

button {
    font-family: inherit;
    cursor: pointer;
    border: none;
    background: none;
}

input, textarea {
    font-family: inherit;
    border: none;
    outline: none;
    background: none;
}

/* Container */
.container {
    width: 100%;
    max-width: 1200px;
    margin: 0 auto;
    padding: 0 var(--space-md);
}

/* Section Base */
.section {
    padding: var(--space-3xl) 0;
    position: relative;
}

.section-header {
    text-align: center;
    margin-bottom: var(--space-2xl);
}

.section-tag {
    display: inline-block;
    font-family: var(--font-display);
    font-size: 0.75rem;
    font-weight: 600;
    letter-spacing: 0.2em;
    text-transform: uppercase;
    color: var(--color-accent);
    background: rgba(0, 255, 136, 0.1);
    padding: var(--space-xs) var(--space-sm);
    border-radius: var(--radius-full);
    margin-bottom: var(--space-sm);
}

.section-title {
    font-family: var(--font-display);
    font-size: 2.5rem;
    font-weight: 700;
    margin-bottom: var(--space-sm);
    background: linear-gradient(135deg, var(--color-text) 0%, var(--color-text-muted) 100%);
    -webkit-background-clip: text;
    -webkit-text-fill-color: transparent;
    background-clip: text;
}

.section-title span {
    background: linear-gradient(135deg, var(--color-text) 0%, var(--color-text-muted) 100%);
    -webkit-background-clip: text;
    -webkit-text-fill-color: transparent;
    background-clip: text;
}

.section-subtitle {
    font-size: 1.125rem;
    color: var(--color-text-muted);
    max-width: 600px;
    margin: 0 auto;
}

/* Buttons */
.btn {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    gap: var(--space-xs);
    font-family: var(--font-body);
    font-size: 0.9375rem;
    font-weight: 600;
    padding: 0.75rem 1.5rem;
    border-radius: var(--radius-md);
    transition: all var(--transition-base);
    white-space: nowrap;
}

.btn-primary {
    background: var(--gradient-accent);
    color: var(--color-primary);
    box-shadow: var(--shadow-glow);
}

.btn-primary:hover {
    transform: translateY(-2px);
    box-shadow: 0 0 60px rgba(0, 255, 136, 0.25);
}

.btn-outline {
    background: transparent;
    color: var(--color-text);
    border: 1px solid var(--color-border-light);
}

.btn-outline:hover {
    border-color: var(--color-accent);
    color: var(--color-accent);
}

.btn-lg {
    padding: 1rem 2rem;
    font-size: 1rem;
}

.btn-arrow {
    width: 18px;
    height: 18px;
    transition: transform var(--transition-fast);
}

.btn:hover .btn-arrow {
    transform: translateX(4px);
}

/* ========================================
   Header & Navigation
   ======================================== */

.header {
    position: fixed;
    top: 0;
    left: 0;
    right: 0;
    z-index: var(--z-header);
    padding: var(--space-sm) 0;
    transition: all var(--transition-base);
}

.header.scrolled {
    background: rgba(10, 14, 23, 0.95);
    backdrop-filter: blur(20px);
    border-bottom: 1px solid var(--color-border);
}

.nav {
    display: flex;
    align-items: center;
    justify-content: space-between;
}

.logo {
    display: flex;
    align-items: center;
    gap: var(--space-xs);
    font-family: var(--font-display);
    font-size: 1.25rem;
    font-weight: 700;
}

.logo-icon {
    font-size: 1.5rem;
    color: var(--color-accent);
    animation: pulse 2s ease-in-out infinite;
}

.logo-image {
    width: 1.5rem;
    height: 1.5rem;
    display: block;
    object-fit: contain;
}

@keyframes pulse {
    0%, 100% { opacity: 1; }
    50% { opacity: 0.6; }
}

.logo-text {
    background: linear-gradient(135deg, var(--color-text) 0%, var(--color-accent) 100%);
    -webkit-background-clip: text;
    -webkit-text-fill-color: transparent;
    background-clip: text;
}

.logo-text span {
    background: linear-gradient(135deg, var(--color-text) 0%, var(--color-accent) 100%);
    -webkit-background-clip: text;
    -webkit-text-fill-color: transparent;
    background-clip: text;
}

.nav-menu {
    flex: 1;
    display: flex;
    justify-content: center;
}

.nav-list {
    display: flex;
    align-items: center;
    gap: var(--space-lg);
}

.nav-link {
    font-size: 0.9375rem;
    font-weight: 500;
    color: var(--color-text-muted);
    position: relative;
    padding: var(--space-xs) 0;
}

.nav-link::after {
    content: '';
    position: absolute;
    bottom: 0;
    left: 0;
    width: 0;
    height: 2px;
    background: var(--color-accent);
    transition: width var(--transition-base);
}

.nav-link:hover,
.nav-link.active {
    color: var(--color-text);
}

.nav-link:hover::after,
.nav-link.active::after {
    width: 100%;
}

.nav-actions {
    display: flex;
    align-items: center;
    gap: var(--space-sm);
}

.nav-actions > .btn {
    padding: 6px 12px;
    font-size: 0.85rem;
    min-height: 32px;
    border-radius: var(--radius-md);
}

.mobile-lang-switch {
    display: none;
}

/* Language Switcher */
.lang-switch {
    display: flex;
    align-items: center;
    gap: 6px;
    padding: 6px 12px;
    background: rgba(255, 255, 255, 0.05);
    border: 1px solid var(--color-border-light);
    border-radius: var(--radius-md);
    color: var(--color-text-muted);
    font-family: var(--font-body);
    font-size: 0.85rem;
    font-weight: 500;
    cursor: pointer;
    transition: all var(--transition-fast);
}

.lang-switch:hover {
    background: rgba(255, 255, 255, 0.1);
    border-color: var(--color-accent);
}

.lang-switch .lang-en,
.lang-switch .lang-zh {
    transition: color var(--transition-fast);
}

.lang-switch .lang-en.active,
.lang-switch .lang-zh.active {
    color: var(--color-accent);
}

.lang-switch .lang-divider {
    color: var(--color-border-light);
}

.nav-toggle {
    display: none;
    flex-direction: column;
    gap: 5px;
    padding: var(--space-xs);
}

.nav-toggle span {
    width: 24px;
    height: 2px;
    background: var(--color-text);
    transition: all var(--transition-fast);
}

/* ========================================
   Hero Section
   ======================================== */

.hero {
    min-height: 100vh;
    display: flex;
    align-items: center;
    justify-content: center;
    position: relative;
    overflow: hidden;
    padding-top: 80px;
}

.hero-bg {
    position: absolute;
    inset: 0;
    z-index: 0;
}

.starfield-canvas {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    pointer-events: auto;
    z-index: 2;
    opacity: 0.98;
}

.starfield-canvas > canvas {
    position: absolute !important;
    inset: 0 !important;
    width: 100% !important;
    height: 100% !important;
    display: block !important;
    pointer-events: auto !important;
}

.hero-particles {
    position: absolute;
    inset: 0;
    z-index: 1;
    background-image: 
        radial-gradient(circle at 20% 50%, rgba(0, 255, 136, 0.03) 0%, transparent 50%),
        radial-gradient(circle at 80% 20%, rgba(0, 212, 255, 0.03) 0%, transparent 50%),
        radial-gradient(circle at 40% 80%, rgba(255, 215, 0, 0.02) 0%, transparent 50%);
}

.hero-gradient {
    position: absolute;
    inset: 0;
    z-index: 1;
    background: linear-gradient(180deg, rgba(10, 14, 23, 0.18) 0%, rgba(17, 24, 39, 0.34) 50%, rgba(10, 14, 23, 0.54) 100%);
}

.hero-content {
    position: relative;
    z-index: 3;
    text-align: center;
    max-width: 900px;
}

@media (min-width: 1025px) {
    html[lang='en'] .hero-content {
        max-width: 1040px;
        padding-bottom: 72px;
    }
}

.hero-badge {
    display: inline-flex;
    align-items: center;
    gap: var(--space-xs);
    background: rgba(0, 255, 136, 0.08);
    border: 1px solid rgba(0, 255, 136, 0.2);
    padding: var(--space-xs) var(--space-sm);
    border-radius: var(--radius-full);
    font-size: 0.875rem;
    color: var(--color-accent);
    margin-bottom: var(--space-lg);
}

.badge-dot {
    width: 8px;
    height: 8px;
    background: var(--color-accent);
    border-radius: 50%;
    animation: pulse 1.5s ease-in-out infinite;
}

.hero-title {
    font-family: var(--font-display);
    font-size: 4rem;
    font-weight: 800;
    line-height: 1.1;
    margin-bottom: var(--space-md);
    letter-spacing: -0.02em;
}

.hero-title .highlight {
    background: var(--gradient-accent);
    -webkit-background-clip: text;
    -webkit-text-fill-color: transparent;
    background-clip: text;
}

.hero-title .highlight span {
    background: var(--gradient-accent);
    -webkit-background-clip: text;
    -webkit-text-fill-color: transparent;
    background-clip: text;
}

.hero-subtitle {
    font-size: 1.25rem;
    color: var(--color-text-muted);
    max-width: 700px;
    margin: 0 auto var(--space-xl);
    line-height: 1.7;
}

.hero-stats {
    display: flex;
    align-items: center;
    justify-content: center;
    gap: var(--space-xl);
    margin-bottom: var(--space-xl);
    flex-wrap: wrap;
}

.stat-item {
    text-align: center;
}

.stat-value {
    display: block;
    font-family: var(--font-display);
    font-size: 2rem;
    font-weight: 700;
    color: var(--color-accent);
    margin-bottom: var(--space-xs);
}

.stat-label {
    font-size: 0.875rem;
    color: var(--color-text-muted);
}

.stat-divider {
    width: 1px;
    height: 40px;
    background: var(--color-border);
}

.hero-actions {
    display: flex;
    align-items: center;
    justify-content: center;
    gap: var(--space-md);
    flex-wrap: wrap;
}

.hero-scroll {
    position: absolute;
    bottom: var(--space-xl);
    left: 50%;
    transform: translateX(-50%);
    display: flex;
    flex-direction: column;
    align-items: center;
    gap: var(--space-xs);
    color: var(--color-text-muted);
    font-size: 0.75rem;
    text-transform: uppercase;
    letter-spacing: 0.1em;
}

.scroll-indicator {
    width: 24px;
    height: 40px;
    border: 2px solid var(--color-border-light);
    border-radius: 12px;
    position: relative;
}

.scroll-indicator::before {
    content: '';
    position: absolute;
    top: 8px;
    left: 50%;
    transform: translateX(-50%);
    width: 4px;
    height: 8px;
    background: var(--color-accent);
    border-radius: 2px;
    animation: scrollBounce 1.5s ease-in-out infinite;
}

@keyframes scrollBounce {
    0%, 100% { transform: translateX(-50%) translateY(0); opacity: 1; }
    50% { transform: translateX(-50%) translateY(10px); opacity: 0.5; }
}

/* Animations */
.animate-fade-up {
    opacity: 0;
    transform: translateY(30px);
    animation: fadeUp 0.8s ease forwards;
}

@keyframes fadeUp {
    to {
        opacity: 1;
        transform: translateY(0);
    }
}

/* ========================================
   Features Section
   ======================================== */

.features {
    background: var(--color-bg-alt);
}

.features-grid {
    display: grid;
    grid-template-columns: repeat(4, 1fr);
    gap: var(--space-md);
}

.feature-card {
    background: var(--color-card);
    border: 1px solid var(--color-border);
    border-radius: var(--radius-lg);
    padding: var(--space-lg);
    transition: all var(--transition-base);
}

.feature-card:hover {
    transform: translateY(-8px);
    border-color: rgba(0, 255, 136, 0.3);
    box-shadow: var(--shadow-glow);
}

.feature-icon {
    width: 56px;
    height: 56px;
    display: flex;
    align-items: center;
    justify-content: center;
    background: rgba(0, 255, 136, 0.1);
    border-radius: var(--radius-md);
    margin-bottom: var(--space-md);
}

.feature-icon svg {
    width: 28px;
    height: 28px;
    stroke: var(--color-accent);
}

.feature-title {
    font-family: var(--font-display);
    font-size: 1.25rem;
    font-weight: 600;
    margin-bottom: var(--space-sm);
}

.feature-desc {
    font-size: 0.9375rem;
    color: var(--color-text-muted);
    margin-bottom: var(--space-md);
    line-height: 1.6;
}

.feature-desc.is-typewriting::after,
.mechanic-desc.is-typewriting::after {
    content: '';
    display: inline-block;
    width: 0.56em;
    height: 1.05em;
    margin-left: 0.08em;
    vertical-align: -0.12em;
    border-right: 2px solid rgba(0, 255, 136, 0.9);
    box-shadow: 0 0 10px rgba(0, 255, 136, 0.3);
    animation: featureTypewriterCaret 0.78s steps(1, end) infinite;
}

@keyframes featureTypewriterCaret {
    0%, 48% {
        opacity: 1;
    }
    49%, 100% {
        opacity: 0;
    }
}

.feature-list {
    display: flex;
    flex-direction: column;
    gap: var(--space-xs);
}

.feature-list li {
    font-size: 0.875rem;
    color: var(--color-accent);
}

/* ========================================
   Tokenomics Section
   ======================================== */

.tokenomics-content {
    display: grid;
    grid-template-columns: 1fr 1.5fr;
    gap: var(--space-2xl);
    align-items: stretch;
}

.token-info {
    display: flex;
}

.token-card {
    background: var(--color-card);
    border: 1px solid var(--color-border);
    border-radius: var(--radius-xl);
    padding: var(--space-xl);
    text-align: center;
    width: 100%;
    height: 100%;
}

.token-chart {
    background: linear-gradient(160deg, rgba(26, 35, 50, 0.92) 0%, rgba(16, 24, 38, 0.86) 100%);
    border: 1px solid var(--color-border);
    border-radius: var(--radius-xl);
    padding: var(--space-xl);
    position: relative;
    overflow: hidden;
    height: 100%;
}

.token-chart::before {
    content: '';
    position: absolute;
    inset: 0;
    border-radius: inherit;
    pointer-events: none;
    background: radial-gradient(circle at 88% 8%, rgba(0, 255, 136, 0.14) 0%, transparent 44%);
}

.token-chart::after {
    content: '';
    position: absolute;
    inset: 0;
    border-radius: inherit;
    pointer-events: none;
    opacity: 0.42;
    background-image:
        linear-gradient(rgba(141, 226, 255, 0.18) 1px, transparent 1px),
        linear-gradient(90deg, rgba(141, 226, 255, 0.18) 1px, transparent 1px);
    background-size: 16px 16px;
    -webkit-mask-image: linear-gradient(180deg, rgba(0, 0, 0, 0.45) 0%, rgba(0, 0, 0, 0.9) 100%);
    mask-image: linear-gradient(180deg, rgba(0, 0, 0, 0.45) 0%, rgba(0, 0, 0, 0.9) 100%);
    mix-blend-mode: screen;
}

.token-chart > * {
    position: relative;
    z-index: 1;
}

.token-symbol {
    font-family: var(--font-display);
    font-size: 3rem;
    font-weight: 800;
    background: var(--gradient-accent);
    -webkit-background-clip: text;
    -webkit-text-fill-color: transparent;
    background-clip: text;
    margin-bottom: var(--space-xs);
}

.token-name {
    font-size: 1.125rem;
    color: var(--color-text-muted);
    margin-bottom: var(--space-lg);
}

.token-donut-wrap {
    position: relative;
    width: min(290px, 100%);
    margin: 0 auto;
}

.token-donut-svg {
    width: 100%;
    height: auto;
    display: block;
    filter: drop-shadow(0 10px 26px rgba(0, 0, 0, 0.34));
}

.token-donut-base {
    fill: none;
    stroke: rgba(255, 255, 255, 0.08);
    stroke-width: 20;
}

.token-donut-segment {
    fill: none;
    stroke: var(--seg-color, var(--color-accent));
    stroke-width: 20;
    stroke-linecap: butt;
    transition: stroke-width 0.4s ease, filter 0.4s ease, opacity 0.4s ease;
    opacity: 0.76;
}

.token-donut-segment.is-active {
    stroke-width: 24;
    filter: brightness(1.26) drop-shadow(0 0 6px color-mix(in srgb, var(--seg-color, var(--color-accent)) 65%, white));
    opacity: 1;
}

.token-donut-center {
    position: absolute;
    inset: 0;
    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: center;
    pointer-events: none;
    padding: 0 20%;
    text-align: center;
}

.donut-center-percent {
    font-family: var(--font-display);
    font-size: clamp(1.4rem, 2.8vw, 2rem);
    font-weight: 700;
    color: var(--color-text);
    line-height: 1.1;
}

.donut-center-label {
    margin-top: 0.35rem;
    font-size: 0.85rem;
    color: var(--color-text-muted);
    line-height: 1.35;
}

.token-detail {
    display: flex;
    justify-content: space-between;
    padding: var(--space-sm) 0;
    border-bottom: 1px solid var(--color-border);
}

.token-detail:last-child {
    border-bottom: none;
}

.detail-label {
    color: var(--color-text-muted);
    font-size: 0.9375rem;
}

.detail-value {
    font-weight: 600;
    font-size: 0.9375rem;
}

.chart-title {
    font-family: var(--font-display);
    font-size: 1.25rem;
    font-weight: 600;
    margin-bottom: var(--space-lg);
    padding-bottom: var(--space-sm);
    border-bottom: 1px solid var(--color-border);
}

.chart-bars {
    display: flex;
    flex-direction: column;
    gap: var(--space-sm);
}

.chart-bar-item {
    display: grid;
    grid-template-columns: 1fr auto;
    gap: var(--space-xs);
    align-items: center;
    padding: 0.35rem 0.55rem;
    border: 1px solid transparent;
    border-radius: 12px;
    background: rgba(255, 255, 255, 0.015);
    opacity: 0;
    transform: translateY(18px) scale(0.985);
    filter: blur(2px);
    transition: opacity 0.82s ease, transform 0.82s ease, filter 0.82s ease, border-color 0.12s ease, background-color 0.12s ease, box-shadow 0.12s ease;
}

.chart-bar-item.is-active {
    border-color: rgba(0, 255, 136, 0.44);
    background: rgba(0, 255, 136, 0.08);
    box-shadow: inset 0 0 0 1px rgba(0, 255, 136, 0.15);
}

.chart-bar-item.is-active .bar-name,
.chart-bar-item.is-active .bar-percent,
.chart-bar-item.is-active .bar-value {
    color: #d8fff0;
}

.bar-label {
    display: flex;
    justify-content: space-between;
    margin-bottom: 0.2rem;
}

.bar-name {
    font-size: 0.9375rem;
    transition: color 0.12s ease;
}

.bar-percent {
    font-weight: 600;
    color: var(--color-accent);
    transition: color 0.12s ease;
}

.bar-track {
    grid-column: 1 / -1;
    width: 100%;
    height: 8px;
    background: rgba(255, 255, 255, 0.05);
    border-radius: var(--radius-full);
    overflow: hidden;
}

.bar-fill {
    height: 100%;
    background: var(--bar-color, var(--color-accent));
    border-radius: var(--radius-full);
    transform-origin: left center;
    transform: scaleX(0);
    transition: transform 1.65s cubic-bezier(0.22, 1, 0.36, 1);
}

.bar-value {
    font-size: 0.8125rem;
    color: var(--color-text-muted);
    text-align: right;
    grid-column: 1 / -1;
    transition: color 0.12s ease;
}

.token-chart.chart-animated .chart-bar-item {
    opacity: 1;
    transform: translateY(0) scale(1);
    filter: blur(0);
}

.token-chart.chart-animated .bar-fill {
    transform: scaleX(1);
}

.token-chart.chart-animated .chart-bar-item:nth-child(1) { transition-delay: 0.15s, 0.15s, 0.15s, 0s, 0s, 0s; }
.token-chart.chart-animated .chart-bar-item:nth-child(2) { transition-delay: 0.4s, 0.4s, 0.4s, 0s, 0s, 0s; }
.token-chart.chart-animated .chart-bar-item:nth-child(3) { transition-delay: 0.65s, 0.65s, 0.65s, 0s, 0s, 0s; }
.token-chart.chart-animated .chart-bar-item:nth-child(4) { transition-delay: 0.9s, 0.9s, 0.9s, 0s, 0s, 0s; }
.token-chart.chart-animated .chart-bar-item:nth-child(5) { transition-delay: 1.15s, 1.15s, 1.15s, 0s, 0s, 0s; }
.token-chart.chart-animated .chart-bar-item:nth-child(6) { transition-delay: 1.4s, 1.4s, 1.4s, 0s, 0s, 0s; }

.token-chart.chart-animated .chart-bar-item:nth-child(1) .bar-fill { transition-delay: 0.45s; }
.token-chart.chart-animated .chart-bar-item:nth-child(2) .bar-fill { transition-delay: 0.7s; }
.token-chart.chart-animated .chart-bar-item:nth-child(3) .bar-fill { transition-delay: 0.95s; }
.token-chart.chart-animated .chart-bar-item:nth-child(4) .bar-fill { transition-delay: 1.2s; }
.token-chart.chart-animated .chart-bar-item:nth-child(5) .bar-fill { transition-delay: 1.45s; }
.token-chart.chart-animated .chart-bar-item:nth-child(6) .bar-fill { transition-delay: 1.7s; }

/* ========================================
   Mechanics Section
   ======================================== */

.mechanics {
    background: var(--color-bg-alt);
}

.mechanics-grid {
    display: grid;
    grid-template-columns: repeat(3, 1fr);
    gap: var(--space-md);
}

.mechanic-card {
    background: var(--color-card);
    border: 1px solid var(--color-border);
    border-radius: var(--radius-lg);
    padding: var(--space-lg);
    position: relative;
    overflow: hidden;
}

.mechanic-card::before {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    width: 4px;
    height: 100%;
    background: var(--gradient-accent);
    opacity: 0;
    transition: opacity var(--transition-base);
}

.mechanic-card:hover::before {
    opacity: 1;
}

.mechanic-number {
    font-family: var(--font-display);
    font-size: 3rem;
    font-weight: 800;
    color: rgba(255, 255, 255, 0.03);
    position: absolute;
    top: var(--space-sm);
    right: var(--space-md);
    line-height: 1;
}

.mechanic-title {
    font-family: var(--font-display);
    font-size: 1.125rem;
    font-weight: 600;
    margin-bottom: var(--space-sm);
    position: relative;
    z-index: 1;
}

.mechanic-desc {
    font-size: 0.9375rem;
    color: var(--color-text-muted);
    line-height: 1.6;
    position: relative;
    z-index: 1;
}

/* ========================================
   Security Section
   ======================================== */

.security-grid {
    display: grid;
    grid-template-columns: repeat(4, 1fr);
    gap: var(--space-md);
}

.security-item {
    text-align: center;
    padding: var(--space-lg);
    background: var(--color-card);
    border: 1px solid var(--color-border);
    border-radius: var(--radius-lg);
    transition: all var(--transition-base);
}

.security-item:hover {
    border-color: rgba(0, 255, 136, 0.3);
}

.security-icon {
    width: 64px;
    height: 64px;
    display: flex;
    align-items: center;
    justify-content: center;
    background: rgba(0, 255, 136, 0.08);
    border-radius: var(--radius-lg);
    margin: 0 auto var(--space-md);
}

.security-icon svg {
    width: 32px;
    height: 32px;
    stroke: var(--color-accent);
}

.security-title {
    font-family: var(--font-display);
    font-size: 1rem;
    font-weight: 600;
    margin-bottom: var(--space-sm);
}

.security-desc {
    font-size: 0.875rem;
    color: var(--color-text-muted);
    line-height: 1.5;
}

/* ========================================
   Contracts Section
   ======================================== */

.contracts {
    background: linear-gradient(180deg, var(--color-bg) 0%, var(--color-bg-alt) 100%);
}

.contracts-table-wrap {
    background: rgba(16, 22, 36, 0.7);
    border: 1px solid var(--color-border);
    border-radius: var(--radius-lg);
    overflow-x: auto;
    overflow-y: hidden;
}

.contracts-note {
    margin-top: var(--space-sm);
    font-size: 0.9rem;
    color: rgba(255, 215, 0, 0.82);
}

.contracts-table {
    width: 100%;
    border-collapse: collapse;
    min-width: 860px;
}

.contracts-table th,
.contracts-table td {
    padding: 0.9rem 1rem;
    text-align: left;
    border-bottom: 1px solid rgba(255, 255, 255, 0.08);
    vertical-align: top;
}

.contracts-table th {
    text-align: center;
    font-family: var(--font-display);
    font-size: 0.82rem;
    letter-spacing: 0.06em;
    text-transform: uppercase;
    color: var(--color-text-muted);
    background: rgba(255, 255, 255, 0.03);
}

.contracts-table td {
    font-size: 0.92rem;
    color: var(--color-text);
}

.contracts-table tbody tr {
    opacity: 0;
    transform: translateY(14px);
    filter: blur(2px);
    transition: opacity 0.58s ease, transform 0.58s ease, filter 0.58s ease;
}

.contracts-table-wrap.revealed .contracts-table tbody tr {
    opacity: 1;
    transform: translateY(0);
    filter: blur(0);
}

.contracts-table-wrap.revealed .contracts-table tbody tr:nth-child(1) { transition-delay: 0.06s; }
.contracts-table-wrap.revealed .contracts-table tbody tr:nth-child(2) { transition-delay: 0.12s; }
.contracts-table-wrap.revealed .contracts-table tbody tr:nth-child(3) { transition-delay: 0.18s; }
.contracts-table-wrap.revealed .contracts-table tbody tr:nth-child(4) { transition-delay: 0.24s; }
.contracts-table-wrap.revealed .contracts-table tbody tr:nth-child(5) { transition-delay: 0.30s; }
.contracts-table-wrap.revealed .contracts-table tbody tr:nth-child(6) { transition-delay: 0.36s; }
.contracts-table-wrap.revealed .contracts-table tbody tr:nth-child(7) { transition-delay: 0.42s; }
.contracts-table-wrap.revealed .contracts-table tbody tr:nth-child(8) { transition-delay: 0.48s; }
.contracts-table-wrap.revealed .contracts-table tbody tr:nth-child(9) { transition-delay: 0.54s; }
.contracts-table-wrap.revealed .contracts-table tbody tr:nth-child(10) { transition-delay: 0.60s; }
.contracts-table-wrap.revealed .contracts-table tbody tr:nth-child(11) { transition-delay: 0.66s; }
.contracts-table-wrap.revealed .contracts-table tbody tr:nth-child(12) { transition-delay: 0.72s; }
.contracts-table-wrap.revealed .contracts-table tbody tr:nth-child(13) { transition-delay: 0.78s; }
.contracts-table-wrap.revealed .contracts-table tbody tr:nth-child(14) { transition-delay: 0.84s; }
.contracts-table-wrap.revealed .contracts-table tbody tr:nth-child(15) { transition-delay: 0.90s; }
.contracts-table-wrap.revealed .contracts-table tbody tr:nth-child(16) { transition-delay: 0.96s; }
.contracts-table-wrap.revealed .contracts-table tbody tr:nth-child(17) { transition-delay: 1.02s; }

.contracts-table tbody tr:hover {
    background: rgba(0, 255, 136, 0.04);
}

.contract-name-cell {
    display: flex;
    align-items: center;
    gap: 0.45rem;
    flex-wrap: nowrap;
    min-width: 0;
}

.contract-name-cell > span:first-child {
    white-space: nowrap;
}

.contract-name-tag {
    display: inline-flex;
    align-items: center;
    min-height: 22px;
    padding: 0 0.5rem;
    border-radius: 999px;
    font-family: 'Consolas', 'Courier New', monospace;
    font-size: 0.72rem;
    letter-spacing: 0.02em;
    color: #9ddfff;
    background: rgba(98, 177, 220, 0.14);
    border: 1px solid rgba(98, 177, 220, 0.28);
}

.contract-origin-badge {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    min-height: 22px;
    padding: 0 0.45rem;
    border-radius: 999px;
    font-size: 0.68rem;
    letter-spacing: 0.04em;
    text-transform: uppercase;
    background: rgba(255, 215, 0, 0.15);
    color: rgba(255, 215, 0, 0.92);
    border: 1px solid rgba(255, 215, 0, 0.3);
}

.contract-link {
    font-family: 'Consolas', 'Courier New', monospace;
    font-size: 0.84rem;
    color: #8eeaff;
    word-break: break-all;
}

.contract-link:hover {
    color: var(--color-accent);
    text-decoration: underline;
}

.contract-address-cell {
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 0.8rem;
}

.contract-short {
    font-family: 'Consolas', 'Courier New', monospace;
    font-size: 0.86rem;
    color: #8eeaff;
    letter-spacing: 0.02em;
}

.contract-actions {
    display: inline-flex;
    align-items: center;
    gap: 0.45rem;
    flex-shrink: 0;
}

.contract-copy-btn,
.contract-code-btn {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    min-height: 28px;
    padding: 0 0.6rem;
    border-radius: 8px;
    border: 1px solid rgba(255, 255, 255, 0.18);
    font-size: 0.75rem;
    font-weight: 600;
    white-space: nowrap;
    transition: all var(--transition-fast);
}

.contract-copy-btn {
    background: rgba(255, 255, 255, 0.06);
    color: var(--color-text-muted);
    cursor: pointer;
}

.contract-copy-btn:hover {
    border-color: rgba(255, 255, 255, 0.35);
    color: var(--color-text);
}

.contract-code-btn {
    background: rgba(0, 255, 136, 0.12);
    color: var(--color-accent);
}

.contract-code-btn:hover {
    background: rgba(0, 255, 136, 0.2);
    border-color: rgba(0, 255, 136, 0.4);
}

.contract-copy-btn.copied {
    background: rgba(0, 255, 136, 0.2);
    color: var(--color-accent);
    border-color: rgba(0, 255, 136, 0.45);
}

/* ========================================
   CTA Section
   ======================================== */

.cta {
    background: linear-gradient(180deg, var(--color-bg-alt) 0%, var(--color-bg) 100%);
    text-align: center;
}

.cta-content {
    max-width: 600px;
    margin: 0 auto;
}

.cta-title {
    font-family: var(--font-display);
    font-size: 2.5rem;
    font-weight: 700;
    margin-bottom: var(--space-sm);
}

.cta-subtitle {
    font-size: 1.125rem;
    color: var(--color-text-muted);
    margin-bottom: var(--space-xl);
}

/* ========================================
   Footer
   ======================================== */

.footer {
    background: var(--color-bg-alt);
    border-top: 1px solid var(--color-border);
    padding: var(--space-2xl) 0 var(--space-lg);
}

.footer-content {
    display: grid;
    grid-template-columns: 1.5fr 2fr;
    gap: var(--space-2xl);
}

.footer-brand .logo {
    margin-bottom: var(--space-md);
}

.footer-desc {
    font-size: 0.9375rem;
    color: var(--color-text-muted);
    max-width: 300px;
}

.footer-links {
    display: grid;
    grid-template-columns: repeat(4, minmax(0, 1fr));
    gap: var(--space-lg);
}

.footer-column {
    min-width: 0;
    margin-bottom: var(--space-lg);
}

.footer-title {
    font-family: var(--font-display);
    font-size: 0.875rem;
    font-weight: 600;
    text-transform: uppercase;
    letter-spacing: 0.1em;
    margin-bottom: var(--space-md);
}

.footer-column ul {
    display: flex;
    flex-direction: column;
    gap: var(--space-sm);
}

.footer-column a {
    font-size: 0.9375rem;
    color: var(--color-text-muted);
}

.footer-column a:hover {
    color: var(--color-accent);
}

.footer-bottom {
    text-align: center;
    padding-top: var(--space-lg);
    border-top: 1px solid var(--color-border);
}

.copyright {
    font-size: 0.875rem;
    color: var(--color-text-muted);
    margin-bottom: var(--space-xs);
}

.risk-warning {
    font-size: 0.75rem;
    color: rgba(255, 215, 0, 0.6);
}

/* ========================================
   Scroll Reveal Animation
   ======================================== */

.scroll-reveal {
    opacity: 0;
    transform: translateY(40px);
    transition: all 0.8s ease;
}

.scroll-reveal.revealed {
    opacity: 1;
    transform: translateY(0);
}

/* ========================================
   Responsive Styles
   ======================================== */

@media (max-width: 1024px) {
    .hero-title {
        font-size: 3rem;
    }
    
    .features-grid {
        grid-template-columns: repeat(2, 1fr);
    }
    
    .mechanics-grid {
        grid-template-columns: repeat(2, 1fr);
    }
    
    .security-grid {
        grid-template-columns: repeat(2, 1fr);
    }

    .contracts-table {
        min-width: 760px;
    }
    
    .tokenomics-content {
        grid-template-columns: 1fr;
    }
    
    .footer-content {
        grid-template-columns: 1fr;
        gap: var(--space-xl);
    }
    
    .footer-links {
        grid-template-columns: repeat(3, 1fr);
    }
}

@media (max-width: 768px) {
    :root {
        --space-3xl: 4rem;
    }

    .hero {
        min-height: 100svh;
        padding-bottom: 132px;
    }

    .hero-scroll {
        bottom: 14px;
    }

    .starfield-canvas {
        opacity: 0.58;
    }

    .hero-particles {
        opacity: 0.32;
    }

    .hero-gradient {
        background: linear-gradient(180deg, rgba(10, 14, 23, 0.56) 0%, rgba(10, 14, 23, 0.74) 52%, rgba(10, 14, 23, 0.86) 100%);
    }
    
    .section-title {
        font-size: 2rem;
    }
    
    .hero-title {
        font-size: 2.5rem;
    }
    
    .hero-subtitle {
        font-size: 1rem;
    }
    
    .hero-stats {
        gap: var(--space-md);
    }
    
    .stat-value {
        font-size: 1.5rem;
    }
    
    .nav-menu {
        position: fixed;
        top: 0;
        right: -100%;
        width: 280px;
        height: 100vh;
        background: var(--color-card);
        padding: var(--space-2xl) var(--space-lg);
        transition: right var(--transition-base);
        z-index: var(--z-header);
    }
    
    .nav-menu.active {
        right: 0;
    }
    
    .nav-list {
        flex-direction: column;
        align-items: flex-start;
        gap: var(--space-md);
    }
    
    .mobile-lang-switch {
        display: block;
        margin-top: var(--space-sm);
    }
    
    .nav-link {
        font-size: 1.125rem;
    }
    
    .nav-actions > .lang-switch {
        display: none;
    }
    
    .nav-toggle {
        display: flex;
        z-index: calc(var(--z-header) + 1);
    }
    
    .nav-toggle.active span:nth-child(1) {
        transform: rotate(45deg) translate(5px, 5px);
    }
    
    .nav-toggle.active span:nth-child(2) {
        opacity: 0;
    }
    
    .nav-toggle.active span:nth-child(3) {
        transform: rotate(-45deg) translate(5px, -5px);
    }
    
    .features-grid {
        grid-template-columns: 1fr;
    }

    .feature-icon {
        margin-left: auto;
        margin-right: auto;
    }

    .feature-title {
        text-align: center;
    }
    
    .mechanics-grid {
        grid-template-columns: 1fr;
    }
    
    .security-grid {
        grid-template-columns: 1fr;
    }

    .contracts-table {
        min-width: 0;
        table-layout: fixed;
    }

    .token-donut-wrap {
        width: min(250px, 88%);
    }

    .donut-center-label {
        font-size: 0.8rem;
    }

    .contracts-table th:nth-child(1),
    .contracts-table td:nth-child(1) {
        width: 42%;
    }

    .contracts-table td:nth-child(2) {
        width: 58%;
    }

    .contracts-table td:nth-child(2) {
        text-align: right;
    }

    .contracts-table th,
    .contracts-table td {
        padding: 0.72rem 0.7rem;
    }

    .contract-name-cell {
        flex-wrap: wrap;
        align-items: flex-start;
        gap: 0.32rem;
    }

    .contract-name-cell > span:first-child {
        white-space: normal;
    }

    .contract-address-cell {
        flex-direction: column;
        align-items: flex-end;
        gap: 0.45rem;
    }

    .contract-actions {
        justify-content: flex-end;
    }
    
    .footer-links {
        grid-template-columns: repeat(2, minmax(0, 1fr));
        gap: var(--space-md);
        text-align: center;
    }
    
    .cta-title {
        font-size: 2rem;
    }
    
    .hero-actions {
        flex-direction: row;
        flex-wrap: nowrap;
        width: min(100%, 420px);
        margin: 0 auto;
        gap: 0.55rem;
    }
    
    .hero-actions .btn {
        width: auto;
        flex: 1 1 0;
        min-width: 0;
        padding: 0.82rem 0.7rem;
        font-size: 0.9rem;
    }
}

@media (max-width: 480px) {
    .hero {
        padding-bottom: 148px;
    }

    .hero-scroll {
        bottom: 10px;
        font-size: 0.68rem;
    }

    .hero-title {
        font-size: 2rem;
    }
    
    .section-title {
        font-size: 1.75rem;
    }
    
    .btn-lg {
        padding: 0.875rem 1.5rem;
    }

    .hero-actions {
        width: min(100%, 360px);
        gap: 0.45rem;
    }

    .hero-actions .btn {
        padding: 0.76rem 0.52rem;
        font-size: 0.84rem;
    }

    .footer-links {
        grid-template-columns: repeat(2, minmax(0, 1fr));
        gap: 0.8rem;
    }

    .footer-title {
        font-size: 0.8rem;
        letter-spacing: 0.06em;
    }
    
    .feature-card,
    .mechanic-card,
    .security-item {
        padding: var(--space-md);
    }
}