:root {
    /* 3D Anime Color Palette */
    --accent-blue: #3B82F6;
    --accent-indigo: #6366F1;
    --accent-purple: #A855F7;
    --bg-light-blue: #EBF5FF;
    --white: #FFFFFF;
    --soft-gray: #F8FAFC;
    --text-main: #1E293B;
    --text-muted: #64748B;

    /* 3D Shadows & Border Radius */
    --radius-soft: 28px;
    --radius-pill: 100px;
    --shadow-3d: 0 12px 0 rgba(59, 130, 246, 0.2);
    --shadow-3d-hover: 0 16px 0 rgba(59, 130, 246, 0.3);
    --glass-3d: rgba(255, 255, 255, 0.7);

    /* Typography */
    --font-heading: 'Outfit', sans-serif;
    --font-body: 'Inter', sans-serif;
}

* {
    margin: 0;
    padding: 0;
    box-sizing: border-box;
}

body {
    background-color: var(--bg-light-blue);
    background-image:
        radial-gradient(circle at 20% 20%, rgba(99, 102, 241, 0.15) 0%, transparent 40%),
        radial-gradient(circle at 80% 80%, rgba(168, 85, 247, 0.15) 0%, transparent 40%);
    color: var(--text-main);
    font-family: var(--font-body);
    line-height: 1.5;
    -webkit-font-smoothing: antialiased;
    overflow-x: hidden;
    position: relative;
    min-height: 100vh;
}

/* TRON TRX Logo Tiled Background */
.background-effects {
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    z-index: -1;
    pointer-events: none;
    opacity: 0.04;
    /* 稍微降低透明度，新 Logo 可能更密集 */
    background-image: url('tron-trx-logo.webp');
    background-repeat: repeat;
    background-size: 80px auto;
    /* 调整尺寸以适应 TRX 标志 */
    filter: grayscale(1) brightness(1.2);
    /* 确保呈现单色，并适度提亮以增加背景通透感 */
}

@keyframes float {
    0% {
        transform: translate(0, 0);
    }

    100% {
        transform: translate(30px, 30px);
    }
}

/* Common Layout */
.container {
    max-width: 1200px;
    margin: 0 auto;
    padding: 0 24px;
}

/* Header */
.header {
    width: 100%;
    padding: 24px 0;
    position: absolute;
    top: 0;
    z-index: 100;
}

.header-container {
    display: flex;
    justify-content: space-between;
    align-items: center;
    flex-wrap: wrap;
    /* Added for robustness */
    gap: 16px;
    /* Added for robustness */
}

.logo-avatar-3d {
    height: 48px;
    width: 48px;
    border-radius: 12px;
    filter: drop-shadow(0 4px 0 rgba(59, 130, 246, 0.3));
    object-fit: cover;
    transition: transform 0.3s cubic-bezier(0.175, 0.885, 0.32, 1.275);
}

.logo-link:hover .logo-avatar-3d {
    transform: scale(1.1) rotate(5deg);
}

.logo-text-3d {
    font-family: var(--font-heading);
    font-size: 26px;
    font-weight: 800;
    color: var(--accent-blue);
    text-shadow: 2px 2px 0 var(--white), 4px 4px 0 rgba(59, 130, 246, 0.1);
}

/* Buttons */
.btn {
    font-family: var(--font-body);
    font-weight: 600;
    font-size: 15px;
    padding: 12px 24px;
    border-radius: 8px;
    cursor: pointer;
    transition: all 0.3s ease;
    text-decoration: none;
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 8px;
    border: none;
}

.btn-primary {
    background: var(--accent-blue);
    color: var(--white);
    border-bottom: 6px solid #1D4ED8;
}

.btn-3d {
    box-shadow: 0 8px 15px rgba(59, 130, 246, 0.2);
    transition: all 0.2s cubic-bezier(0.175, 0.885, 0.32, 1.275);
}

.btn-3d:hover {
    transform: translateY(-4px);
    box-shadow: 0 12px 20px rgba(59, 130, 246, 0.3);
}

.btn-3d:active {
    transform: translateY(2px);
    border-bottom-width: 2px;
}

.btn-outline:hover {
    background: var(--glass-highlight);
    border-color: var(--neon-cyan);
}

/* Hero Section */
.hero {
    min-height: 100vh;
    display: flex;
    align-items: center;
    padding-top: 100px;
    text-align: center;
}

.hero-container {
    display: flex;
    flex-direction: column;
    align-items: center;
    max-width: 900px;
}

.hero-character-3d {
    margin-bottom: 40px;
    perspective: 1000px;
}

.hero-mascot-3d {
    width: 320px;
    height: auto;
    filter: drop-shadow(0 20px 40px rgba(59, 130, 246, 0.2));
    animation: floatAnime 6s infinite ease-in-out;
}

.badge-3d {
    display: inline-flex;
    align-items: center;
    gap: 10px;
    padding: 10px 24px;
    background: var(--white);
    border-radius: var(--radius-pill);
    font-size: 14px;
    font-weight: 700;
    color: var(--accent-blue);
    box-shadow: var(--shadow-3d);
    margin-bottom: 32px;
}

.badge-dot-3d {
    width: 10px;
    height: 10px;
    border-radius: 50%;
    background: var(--accent-purple);
}

@keyframes floatAnime {

    0%,
    100% {
        transform: translateY(0) rotate(0deg);
    }

    50% {
        transform: translateY(-20px) rotate(2deg);
    }
}

.hero-headline {
    font-family: var(--font-heading);
    font-size: 84px;
    font-weight: 900;
    line-height: 1;
    margin-bottom: 24px;
    color: var(--text-main);
    text-shadow: 4px 4px 0 var(--white), 8px 8px 0 rgba(59, 130, 246, 0.1);
}

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

.hero-subhead {
    font-size: 20px;
    color: var(--text-muted);
    /* Updated from --text-secondary */
    max-width: 700px;
    margin-bottom: 48px;
    line-height: 1.6;
}

/* Removed .hero-logo, .hero-logos, .hero-justin, @keyframes pulseJustin, @keyframes pulseLogo */

/* Features Section */
.features {
    padding: 100px 0 120px;
}

.features-header {
    text-align: center;
    margin-bottom: 64px;
}

.features-header h2 {
    font-family: var(--font-heading);
    font-size: 40px;
    margin-bottom: 12px;
}

.features-header p {
    color: var(--text-muted);
    /* Updated from --text-secondary */
    font-size: 18px;
}

.features-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(320px, 1fr));
    gap: 32px;
}

.glass-card {
    background: var(--white);
    border: none;
    border-radius: var(--radius-soft);
    padding: 40px 32px;
    box-shadow: var(--shadow-3d);
    transition: all 0.3s cubic-bezier(0.175, 0.885, 0.32, 1.275);
}

.glass-card:hover {
    transform: translateY(-10px);
    box-shadow: var(--shadow-3d-hover);
}

.glass-card.highlight {
    background: linear-gradient(135deg, var(--accent-blue), var(--accent-indigo));
    color: var(--white);
}

.glass-card.highlight h3,
.glass-card.highlight p {
    color: var(--white);
}

.feature-icon {
    width: 72px;
    height: 72px;
    border-radius: 20px;
    background: var(--bg-light-blue);
    display: flex;
    align-items: center;
    justify-content: center;
    margin-bottom: 24px;
    color: var(--accent-blue);
    box-shadow: inset 0 4px 8px rgba(0, 0, 0, 0.05);
}

/* Removed duplicate .feature-icon and .feature-icon.primary */

.feature-card h3 {
    font-family: var(--font-heading);
    font-size: 24px;
    margin-bottom: 16px;
    font-weight: 600;
}

.feature-card p {
    color: var(--text-muted);
    /* Updated from --text-secondary */
    font-size: 15px;
    line-height: 1.6;
}

/* Contact Section */
.contact {
    padding: 60px 0 100px;
}

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

.contact-header {
    text-align: center;
    margin-bottom: 40px;
}

.contact-header h2 {
    font-family: var(--font-heading);
    font-size: 32px;
    margin-bottom: 12px;
}

.contact-header p {
    color: var(--text-muted);
    /* Updated from --text-secondary */
    font-size: 16px;
}

.contact-card {
    padding: 40px;
}

.contact-form {
    display: flex;
    flex-direction: column;
    gap: 24px;
}

.form-group {
    display: flex;
    flex-direction: column;
    gap: 8px;
}

.form-group label {
    font-size: 14px;
    font-weight: 500;
    color: var(--text-muted);
    /* Updated from --text-secondary */
}

.form-input {
    background: var(--soft-gray);
    border: 3px solid #E2E8F0;
    border-radius: 16px;
    padding: 16px 20px;
    color: var(--text-main);
    font-family: var(--font-body);
    font-size: 16px;
    outline: none;
    transition: all 0.3s ease;
    width: 100%;
}

textarea.form-input {
    resize: vertical;
    min-height: 100px;
}

.form-input:focus {
    border-color: var(--accent-blue);
    background: var(--white);
    box-shadow: 0 0 0 4px rgba(59, 130, 246, 0.1);
}

.form-input::placeholder {
    color: #475569;
}

.submit-btn {
    margin-top: 8px;
    width: 100%;
    padding: 16px;
    font-size: 16px;
}

/* Footer */
.footer-3d {
    padding: 80px 0 40px;
    background: var(--white);
    border-top: 8px solid var(--bg-light-blue);
    text-align: center;
}

.footer-logo-3d {
    height: 64px;
    width: auto;
    border-radius: 16px;
    margin-bottom: 20px;
    filter: drop-shadow(0 4px 6px rgba(0, 0, 0, 0.1));
}

.footer-3d p {
    color: var(--text-muted);
    font-weight: 500;
}

/* Responsive */
@media (max-width: 768px) {
    .header-container {
        flex-wrap: wrap;
        gap: 12px;
        justify-content: center;
    }

    .hero {
        padding-top: 160px;
    }

    .hero-mascot-3d {
        width: 240px;
    }

    .hero-headline {
        font-size: 40px;
    }

    .hero-logos {
        flex-direction: column;
        gap: 20px;
    }

    .hero-logo,
    .hero-justin {
        width: 180px;
    }

    .waitlist-form {
        flex-direction: column;
    }

    .social-links {
        flex-direction: column;
    }
}