/* ===== CSS Variables & Reset ===== */
:root {
    --ton-blue: #0098EA;
    --ton-dark-blue: #0077CC;
    --ton-light-blue: #00B2FF;
    --ton-cyan: #00D4FF;
    --fergy-accent: #6C5CE7;
    --fergy-purple: #A29BFE;
    --bg-dark: #0a0a0f;
    --bg-darker: #050508;
    --text-light: #ffffff;
    --text-muted: #8892b0;
    --glass-bg: rgba(255, 255, 255, 0.05);
    --glass-border: rgba(255, 255, 255, 0.1);
    --shadow-glow: 0 0 40px rgba(0, 152, 234, 0.3);
    --shadow-purple: 0 0 40px rgba(108, 92, 231, 0.3);
}

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

body {
    font-family: 'Poppins', sans-serif;
    background: var(--bg-dark);
    color: var(--text-light);
    overflow-x: hidden;
    min-height: 100vh;
    position: relative;
}

/* ===== Animated Background ===== */
.background {
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    z-index: -2;
}

.ton-gradient {
    position: absolute;
    width: 100%;
    height: 100%;
    background: radial-gradient(ellipse at 20% 20%, rgba(0, 152, 234, 0.25) 0%, transparent 50%),
                radial-gradient(ellipse at 80% 80%, rgba(108, 92, 231, 0.25) 0%, transparent 50%),
                radial-gradient(ellipse at 50% 50%, rgba(0, 212, 255, 0.15) 0%, transparent 70%),
                radial-gradient(ellipse at 30% 60%, rgba(108, 92, 231, 0.1) 0%, transparent 40%),
                radial-gradient(ellipse at 70% 30%, rgba(0, 152, 234, 0.1) 0%, transparent 40%);
    animation: gradientPulse 10s ease-in-out infinite, gradientMove 30s ease-in-out infinite alternate;
}

@keyframes gradientPulse {
    0%, 100% { opacity: 1; transform: scale(1) rotate(0deg); }
    50% { opacity: 0.7; transform: scale(1.05) rotate(2deg); }
}

@keyframes gradientMove {
    0% { transform: translateX(0) translateY(0) rotate(0deg); }
    100% { transform: translateX(5%) translateY(-5%) rotate(5deg); }
}

.grid-overlay {
    position: absolute;
    width: 100%;
    height: 100%;
    background-image:
        linear-gradient(rgba(0, 152, 234, 0.03) 1px, transparent 1px),
        linear-gradient(90deg, rgba(0, 152, 234, 0.03) 1px, transparent 1px);
    background-size: 50px 50px;
    animation: gridMove 20s linear infinite;
}

@keyframes gridMove {
    0% { transform: translate(0, 0); }
    100% { transform: translate(50px, 50px); }
}

.stars {
    position: absolute;
    width: 100%;
    height: 100%;
    background-image:
        radial-gradient(2px 2px at 20px 30px, rgba(255,255,255,0.3), transparent),
        radial-gradient(2px 2px at 40px 70px, rgba(255,255,255,0.2), transparent),
        radial-gradient(1px 1px at 90px 40px, rgba(255,255,255,0.4), transparent),
        radial-gradient(2px 2px at 160px 120px, rgba(255,255,255,0.2), transparent),
        radial-gradient(1px 1px at 230px 80px, rgba(255,255,255,0.3), transparent),
        radial-gradient(2px 2px at 300px 150px, rgba(255,255,255,0.25), transparent),
        radial-gradient(1px 1px at 350px 60px, rgba(255,255,255,0.35), transparent);
    background-repeat: repeat;
    background-size: 400px 200px;
    animation: starTwinkle 5s ease-in-out infinite;
}

@keyframes starTwinkle {
    0%, 100% { opacity: 0.8; }
    50% { opacity: 0.3; }
}

/* ===== Floating Particles ===== */
.particles {
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    z-index: -1;
    pointer-events: none;
}

.particle {
    position: absolute;
    background: linear-gradient(135deg, var(--ton-blue), var(--fergy-purple));
    border-radius: 50%;
    opacity: 0.3;
    animation: floatUp 15s infinite;
}

@keyframes floatUp {
    0% {
        transform: translateY(100vh) scale(0);
        opacity: 0;
    }
    10% {
        opacity: 0.5;
    }
    90% {
        opacity: 0.5;
    }
    100% {
        transform: translateY(-100vh) scale(1);
        opacity: 0;
    }
}

/* ===== Container & Typography ===== */
.container {
    max-width: 1200px;
    margin: 0 auto;
    padding: 0 2rem;
    position: relative;
    z-index: 1;
}

.hero-title {
    font-family: 'Orbitron', sans-serif;
    font-size: clamp(2.5rem, 8vw, 5rem);
    font-weight: 900;
    line-height: 1.1;
    margin: 2rem 0;
    letter-spacing: 0.02em;
    position: relative;
    text-shadow: 0 0 30px rgba(0, 152, 234, 0.6);
}

.gradient-text {
    background: linear-gradient(135deg, var(--ton-blue), var(--fergy-purple), var(--ton-cyan));
    -webkit-background-clip: text;
    -webkit-text-fill-color: transparent;
    background-clip: text;
    animation: gradientShift 5s ease infinite, textGlow 3s ease-in-out infinite;
    background-size: 200% auto;
    position: relative;
}

@keyframes gradientShift {
    0%, 100% { background-position: 0% center; }
    50% { background-position: 100% center; }
}

@keyframes textGlow {
    0%, 100% { filter: drop-shadow(0 0 20px rgba(0, 152, 234, 0.6)); }
    50% { filter: drop-shadow(0 0 35px rgba(108, 92, 231, 0.8)); }
}

.hero-description {
    font-size: 1.2rem;
    color: var(--text-muted);
    max-width: 600px;
    line-height: 1.7;
    margin-bottom: 2.5rem;
    position: relative;
    padding-left: 1rem;
    border-left: 3px solid var(--ton-blue);
    animation: slideInLeft 0.8s ease;
}

@keyframes slideInLeft {
    from {
        opacity: 0;
        transform: translateX(-30px);
    }
    to {
        opacity: 1;
        transform: translateX(0);
    }
}

.hero-buttons {
    display: flex;
    gap: 1rem;
    flex-wrap: wrap;
    animation: fadeInUp 0.8s ease;
}

@keyframes fadeInUp {
    from {
        opacity: 0;
        transform: translateY(30px);
    }
    to {
        opacity: 1;
        transform: translateY(0);
    }
}

.section-title {
    font-family: 'Orbitron', sans-serif;
    font-size: 2.5rem;
    text-align: center;
    margin-bottom: 1rem;
    background: linear-gradient(135deg, var(--ton-light-blue), var(--fergy-purple));
    -webkit-background-clip: text;
    -webkit-text-fill-color: transparent;
    background-clip: text;
}

.section-subtitle {
    text-align: center;
    color: var(--text-muted);
    margin-bottom: 3rem;
    font-size: 1.1rem;
}

/* ===== Header ===== */
.header {
    display: flex;
    justify-content: space-between;
    align-items: center;
    padding: 1.5rem 0;
    backdrop-filter: blur(10px);
    border-bottom: 1px solid var(--glass-border);
    position: sticky;
    top: 0;
    z-index: 100;
    animation: slideDown 0.8s ease;
}

@keyframes slideDown {
    from { transform: translateY(-100%); opacity: 0; }
    to { transform: translateY(0); opacity: 1; }
}

.logo {
    display: flex;
    align-items: center;
    gap: 1rem;
}

.logo-anim {
    position: relative;
    width: 45px;
    height: 45px;
}

.logo-anim img {
    height: 45px;
    width: 45px;
    border-radius: 50%;
    object-fit: cover;
    position: relative;
    z-index: 2;
    animation: logoPulse 3s ease-in-out infinite;
    filter: drop-shadow(0 0 10px rgba(0, 152, 234, 0.6));
}

.logo-ring {
    position: absolute;
    top: 50%;
    left: 50%;
    width: 55px;
    height: 55px;
    margin: -27.5px 0 0 -27.5px;
    border: 1.5px solid rgba(0, 212, 255, 0.4);
    border-radius: 50%;
    animation: logoRingSpin 4s linear infinite;
    z-index: 1;
}

.logo-ring::before {
    content: '';
    position: absolute;
    top: 50%;
    left: 50%;
    width: 65px;
    height: 65px;
    margin: -32.5px 0 0 -32.5px;
    border: 1px solid rgba(108, 92, 231, 0.25);
    border-radius: 50%;
    animation: logoRingSpin 6s linear infinite reverse;
}

@keyframes logoPulse {
    0%, 100% { transform: scale(1); filter: drop-shadow(0 0 10px rgba(0, 152, 234, 0.6)); }
    50% { transform: scale(1.08); filter: drop-shadow(0 0 20px rgba(0, 212, 255, 0.9)); }
}

@keyframes logoRingSpin {
    from { transform: rotate(0deg); }
    to { transform: rotate(360deg); }
}

.logo:hover .logo-anim img {
    animation: logoSpinHover 0.6s ease;
}

@keyframes logoSpinHover {
    0% { transform: scale(1) rotate(0deg); }
    50% { transform: scale(1.2) rotate(180deg); }
    100% { transform: scale(1) rotate(360deg); }
}

.logo-text {
    font-family: 'Orbitron', sans-serif;
    font-size: 1.8rem;
    font-weight: 700;
    background: linear-gradient(135deg, var(--ton-blue), var(--fergy-purple));
    -webkit-background-clip: text;
    -webkit-text-fill-color: transparent;
    background-clip: text;
}

.nav {
    display: flex;
    align-items: center;
    gap: 2rem;
}

.nav-link {
    color: var(--text-muted);
    text-decoration: none;
    font-weight: 500;
    transition: all 0.3s cubic-bezier(0.4, 0, 0.2, 1);
    position: relative;
}

.nav-link::after {
    content: '';
    position: absolute;
    bottom: -5px;
    left: 0;
    width: 0;
    height: 2px;
    background: var(--ton-light-blue);
    transition: width 0.3s ease;
}

.nav-link:hover {
    color: var(--text-light);
    transform: translateY(-2px);
}

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

/* ===== Buttons ===== */
.connect-btn {
    background: linear-gradient(135deg, var(--ton-blue), var(--ton-dark-blue));
    color: white;
    border: none;
    padding: 0.75rem 1.5rem;
    border-radius: 50px;
    font-weight: 600;
    display: flex;
    align-items: center;
    gap: 0.5rem;
    cursor: pointer;
    transition: all 0.3s ease;
    box-shadow: 0 4px 20px rgba(0, 152, 234, 0.3);
}

.connect-btn:hover {
    transform: translateY(-2px);
    box-shadow: 0 8px 30px rgba(0, 152, 234, 0.5);
}

.btn-icon {
    font-size: 1.2rem;
}

/* ===== Hero Section ===== */
.hero {
    min-height: 80vh;
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 4rem;
    padding: 4rem 0;
    position: relative;
}

.hero-content {
    flex: 1;
    max-width: 650px;
}

.badge {
    display: inline-block;
    background: var(--glass-bg);
    border: 1px solid var(--ton-blue);
    padding: 0.5rem 1rem;
    border-radius: 50px;
    font-size: 0.9rem;
    margin-bottom: 1.5rem;
    backdrop-filter: blur(10px);
    box-shadow: inset 0 0 10px rgba(0, 152, 234, 0.2), 0 5px 20px rgba(0, 152, 234, 0.2);
    position: relative;
    overflow: hidden;
    transition: all 0.3s ease;
}

.badge::before {
    content: '';
    position: absolute;
    top: 0;
    left: -100%;
    width: 100%;
    height: 100%;
    background: linear-gradient(90deg, transparent, rgba(0, 152, 234, 0.3), transparent);
    animation: badgeShine 3s infinite;
}

@keyframes badgeShine {
    0% { left: -100%; }
    50%, 100% { left: 100%; }
}

.badge:hover {
    transform: translateY(-3px);
    box-shadow: inset 0 0 15px rgba(0, 152, 234, 0.3), 0 8px 30px rgba(0, 152, 234, 0.3);
}

.hero-buttons {
    display: flex;
    gap: 1rem;
    flex-wrap: wrap;
}

.btn {
    padding: 1rem 2rem;
    border-radius: 50px;
    font-weight: 600;
    text-decoration: none;
    display: inline-flex;
    align-items: center;
    gap: 0.5rem;
    transition: all 0.4s cubic-bezier(0.4, 0, 0.2, 1);
    position: relative;
    overflow: hidden;
    transform-style: preserve-3d;
    perspective: 1000px;
}

.btn-primary {
    background: linear-gradient(135deg, var(--ton-blue), var(--fergy-purple));
    color: white;
    border: none;
    box-shadow: 0 10px 30px rgba(0, 152, 234, 0.4);
}

.btn-primary::after {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background: linear-gradient(135deg, rgba(255,255,255,0.2), transparent);
    opacity: 0;
    transition: opacity 0.3s ease;
}

.btn-primary:hover::after {
    opacity: 1;
}

.btn-primary:hover {
    transform: translateY(-5px) rotateX(5deg);
    box-shadow: 0 20px 50px rgba(0, 152, 234, 0.6);
}

.btn-secondary {
    background: var(--glass-bg);
    color: var(--text-light);
    border: 1px solid var(--glass-border);
    backdrop-filter: blur(10px);
}

.btn-secondary:hover {
    background: rgba(255, 255, 255, 0.1);
    border-color: var(--ton-blue);
    transform: translateY(-5px) scale(1.05);
    box-shadow: 0 10px 30px rgba(0, 152, 234, 0.2);
}

/* ===== Hero Graphic / Animated Logo ===== */
.hero-graphic {
    flex: 1;
    display: flex;
    justify-content: center;
    align-items: center;
}

.fergy-orb {
    position: relative;
    width: 320px;
    height: 320px;
    transform-style: preserve-3d;
    perspective: 1000px;
}

.orb-glow {
    position: absolute;
    top: 50%;
    left: 50%;
    transform: translate(-50%, -50%);
    width: 140px;
    height: 140px;
    background: radial-gradient(circle, rgba(0, 152, 234, 0.4) 0%, rgba(108, 92, 231, 0.2) 40%, transparent 70%);
    border-radius: 50%;
    animation: glowPulse 3s ease-in-out infinite;
}

@keyframes glowPulse {
    0%, 100% { transform: translate(-50%, -50%) scale(1); opacity: 0.6; }
    50% { transform: translate(-50%, -50%) scale(1.3); opacity: 1; }
}

.orb-core {
    position: absolute;
    top: 50%;
    left: 50%;
    transform: translate(-50%, -50%);
    width: 120px;
    height: 120px;
    z-index: 10;
    animation: coreFloat 4s ease-in-out infinite;
}

.orb-core img {
    width: 100%;
    height: 100%;
    border-radius: 50%;
    object-fit: cover;
    box-shadow: 0 0 40px rgba(0, 152, 234, 0.6), 0 0 80px rgba(108, 92, 231, 0.3);
    animation: corePulse 3s ease-in-out infinite;
}

@keyframes corePulse {
    0%, 100% { transform: scale(1); box-shadow: 0 0 40px rgba(0, 152, 234, 0.6), 0 0 80px rgba(108, 92, 231, 0.3); }
    50% { transform: scale(1.08); box-shadow: 0 0 60px rgba(0, 212, 255, 0.8), 0 0 100px rgba(108, 92, 231, 0.5); }
}

@keyframes coreFloat {
    0%, 100% { transform: translate(-50%, -50%) translateY(0); }
    50% { transform: translate(-50%, -50%) translateY(-8px); }
}

.orb-ring {
    position: absolute;
    top: 50%;
    left: 50%;
    border: 1.5px solid;
    border-radius: 50%;
    transform: translate(-50%, -50%);
    animation: ringRotate 8s linear infinite;
}

.ring-1 {
    width: 170px;
    height: 170px;
    border-color: rgba(0, 212, 255, 0.35);
    border-top-color: rgba(0, 212, 255, 0.8);
    animation-duration: 6s;
    box-shadow: 0 0 15px rgba(0, 212, 255, 0.1), inset 0 0 15px rgba(0, 212, 255, 0.05);
}

.ring-2 {
    width: 230px;
    height: 230px;
    border-color: rgba(108, 92, 231, 0.25);
    border-bottom-color: rgba(108, 92, 231, 0.7);
    animation-duration: 9s;
    animation-direction: reverse;
    box-shadow: 0 0 20px rgba(108, 92, 231, 0.1), inset 0 0 20px rgba(108, 92, 231, 0.05);
}

.ring-3 {
    width: 300px;
    height: 300px;
    border-color: rgba(0, 152, 234, 0.15);
    border-left-color: rgba(0, 152, 234, 0.5);
    animation-duration: 14s;
    box-shadow: 0 0 25px rgba(0, 152, 234, 0.08), inset 0 0 25px rgba(0, 152, 234, 0.03);
}

@keyframes ringRotate {
    from { transform: translate(-50%, -50%) rotate(0deg); }
    to { transform: translate(-50%, -50%) rotate(360deg); }
}

.orb-sparkle {
    position: absolute;
    width: 4px;
    height: 4px;
    background: white;
    border-radius: 50%;
    box-shadow: 0 0 10px white, 0 0 20px var(--ton-cyan);
    animation: sparkle 3s ease-in-out infinite;
}

.orb-sparkle.s1 { top: 20%; left: 30%; animation-delay: 0s; }
.orb-sparkle.s2 { top: 70%; left: 75%; animation-delay: 1s; }
.orb-sparkle.s3 { top: 35%; left: 80%; animation-delay: 2s; }
.orb-sparkle.s4 { top: 80%; left: 25%; animation-delay: 1.5s; }

@keyframes sparkle {
    0%, 100% { opacity: 0; transform: scale(0); }
    50% { opacity: 1; transform: scale(1); }
}

.animate-float {
    animation: float 6s ease-in-out infinite;
}

@keyframes float {
    0%, 100% { transform: translateY(0px); }
    50% { transform: translateY(-20px); }
}

/* ===== Animations ===== */
.animate-fade-in {
    animation: fadeIn 1s ease forwards;
}

.animate-slide-up {
    animation: slideUp 0.8s ease forwards;
    opacity: 0;
    animation-delay: 0.3s;
}

.animate-slide-up-delay {
    animation: slideUp 0.8s ease forwards;
    opacity: 0;
    animation-delay: 0.5s;
}

.animate-fade-in-delay {
    animation: fadeIn 1s ease forwards;
    opacity: 0;
    animation-delay: 0.7s;
}

@keyframes fadeIn {
    from { opacity: 0; }
    to { opacity: 1; }
}

@keyframes slideUp {
    from {
        opacity: 0;
        transform: translateY(30px);
    }
    to {
        opacity: 1;
        transform: translateY(0);
    }
}

/* ===== Social Buttons ===== */
.social-section {
    padding: 5rem 0;
    position: relative;
}

.social-buttons {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(280px, 1fr));
    gap: 2rem;
    max-width: 900px;
    margin: 0 auto;
}

.social-btn {
    position: relative;
    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: center;
    padding: 2rem;
    border-radius: 20px;
    text-decoration: none;
    color: white;
    transition: all 0.4s cubic-bezier(0.4, 0, 0.2, 1);
    overflow: hidden;
    backdrop-filter: blur(10px);
    border: 1px solid var(--glass-border);
}

.social-btn .btn-glow {
    position: absolute;
    top: -50%;
    left: -50%;
    width: 200%;
    height: 200%;
    background: radial-gradient(circle, rgba(255,255,255,0.15) 0%, transparent 70%);
    opacity: 0;
    transition: opacity 0.4s ease;
}

.social-btn:hover .btn-glow {
    opacity: 1;
}

.social-icon {
    width: 50px;
    height: 50px;
    margin-bottom: 1rem;
    filter: drop-shadow(0 4px 8px rgba(0,0,0,0.3));
    transition: transform 0.3s ease;
}

.social-btn:hover .social-icon {
    transform: scale(1.2);
}

.btn-text {
    font-size: 1.3rem;
    font-weight: 700;
    margin-bottom: 0.3rem;
}

.btn-follower {
    font-size: 0.9rem;
    opacity: 0.8;
    font-weight: 400;
}

/* Twitter/X */
.social-btn.twitter {
    background: linear-gradient(135deg, rgba(29, 161, 242, 0.2), rgba(29, 161, 242, 0.05));
    border-color: rgba(29, 161, 242, 0.3);
}

.social-btn.twitter:hover {
    transform: translateY(-8px) scale(1.02);
    box-shadow: 0 20px 40px rgba(29, 161, 242, 0.3);
    border-color: rgba(29, 161, 242, 0.6);
}

/* Telegram */
.social-btn.telegram {
    background: linear-gradient(135deg, rgba(45, 196, 109, 0.2), rgba(45, 196, 109, 0.05));
    border-color: rgba(45, 196, 109, 0.3);
}

.social-btn.telegram:hover {
    transform: translateY(-8px) scale(1.02);
    box-shadow: 0 20px 40px rgba(45, 196, 109, 0.3);
    border-color: rgba(45, 196, 109, 0.6);
}

/* Dexscreener */
.social-btn.dexscreener {
    background: linear-gradient(135deg, rgba(108, 92, 231, 0.2), rgba(108, 92, 231, 0.05));
    border-color: rgba(108, 92, 231, 0.3);
}

.social-btn.dexscreener:hover {
    transform: translateY(-8px) scale(1.02);
    box-shadow: 0 20px 40px rgba(108, 92, 231, 0.3);
    border-color: rgba(108, 92, 231, 0.6);
}

/* ===== Gallery Section ===== */
.gallery-section {
    padding: 5rem 0;
    position: relative;
}

.gallery-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(300px, 1fr));
    gap: 2rem;
    margin-top: 3rem;
}

.gallery-item {
    position: relative;
    border-radius: 20px;
    overflow: hidden;
    aspect-ratio: 4/3;
    cursor: pointer;
    transition: all 0.5s cubic-bezier(0.4, 0, 0.2, 1);
}

.gallery-img {
    width: 100%;
    height: 100%;
    object-fit: cover;
    transition: transform 0.5s cubic-bezier(0.4, 0, 0.2, 1);
}

.gallery-overlay {
    position: absolute;
    bottom: 0;
    left: 0;
    right: 0;
    padding: 2rem 1.5rem;
    background: linear-gradient(to top, rgba(10, 10, 15, 0.95), rgba(10, 10, 15, 0.7), transparent);
    transform: translateY(30px);
    opacity: 0;
    transition: all 0.4s cubic-bezier(0.4, 0, 0.2, 1);
}

.gallery-tag {
    display: inline-block;
    padding: 0.3rem 0.8rem;
    background: linear-gradient(135deg, var(--ton-blue), var(--fergy-purple));
    border-radius: 50px;
    font-size: 0.75rem;
    font-weight: 700;
    text-transform: uppercase;
    letter-spacing: 0.05em;
    margin-bottom: 0.5rem;
}

.gallery-overlay h4 {
    font-family: 'Orbitron', sans-serif;
    font-size: 1.3rem;
    color: var(--text-light);
}

.gallery-item:hover {
    transform: translateY(-10px) scale(1.02);
    box-shadow: 0 25px 50px rgba(0, 152, 234, 0.3);
}

.gallery-item:hover .gallery-img {
    transform: scale(1.15);
}

.gallery-item:hover .gallery-overlay {
    transform: translateY(0);
    opacity: 1;
}

.gallery-item::before {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    bottom: 0;
    background: linear-gradient(135deg, rgba(0, 152, 234, 0.1), rgba(108, 92, 231, 0.1));
    opacity: 0;
    transition: opacity 0.4s ease;
    z-index: 1;
}

.gallery-item:hover::before {
    opacity: 1;
}

/* ===== Narrative Section ===== */
.narrative-section {
    padding: 5rem 0;
    position: relative;
    display: flex;
    align-items: center;
    justify-content: center;
    min-height: 70vh;
}

.narrative-content {
    max-width: 900px;
    text-align: center;
    position: relative;
    z-index: 2;
    padding: 2rem;
}

.narrative-title {
    font-family: 'Orbitron', sans-serif;
    font-size: clamp(2rem, 6vw, 3.5rem);
    margin-bottom: 1.5rem;
    line-height: 1.2;
    position: relative;
}

.narrative-text {
    font-size: 1.15rem;
    color: var(--text-muted);
    line-height: 1.8;
    margin-bottom: 2.5rem;
}

/* ===== Contract Address Display ===== */
.contract-address {
    background: var(--glass-bg);
    border: 2px solid var(--glass-border);
    border-radius: 20px;
    padding: 1.5rem;
    backdrop-filter: blur(20px);
    transition: all 0.4s cubic-bezier(0.4, 0, 0.2, 1);
    position: relative;
    overflow: hidden;
}

.contract-address::before {
    content: '';
    position: absolute;
    top: 0;
    left: -100%;
    width: 100%;
    height: 2px;
    background: linear-gradient(90deg, transparent, var(--ton-cyan), transparent);
    animation: addressShine 3s infinite;
}

@keyframes addressShine {
    0% { left: -100%; }
    50%, 100% { left: 100%; }
}

.contract-address:hover {
    border-color: var(--ton-blue);
    box-shadow: 0 10px 40px rgba(0, 152, 234, 0.3);
    transform: translateY(-3px);
}

.contract-address[data-invalid="true"] {
    border-color: rgba(255, 100, 100, 0.4);
    box-shadow: 0 0 20px rgba(255, 100, 100, 0.2);
}

.address-header {
    display: flex;
    justify-content: space-between;
    align-items: center;
    margin-bottom: 1rem;
}

.address-label {
    display: flex;
    align-items: center;
    gap: 0.5rem;
    font-size: 0.8rem;
    color: var(--text-muted);
    text-transform: uppercase;
    letter-spacing: 0.12em;
    font-weight: 700;
}

.address-icon {
    width: 18px;
    height: 18px;
    color: var(--ton-blue);
    animation: iconPulse 2s infinite;
}

@keyframes iconPulse {
    0%, 100% { transform: scale(1); opacity: 1; }
    50% { transform: scale(1.15); opacity: 0.8; }
}

.verified-badge {
    display: flex;
    align-items: center;
    justify-content: center;
    width: 22px;
    height: 22px;
    background: linear-gradient(135deg, #00D4FF, #00B2FF);
    border-radius: 50%;
    color: white;
    animation: verifiedPulse 2s infinite;
}

.verified-badge svg {
    width: 14px;
    height: 14px;
}

@keyframes verifiedPulse {
    0%, 100% { box-shadow: 0 0 0 0 rgba(0, 212, 255, 0.4); }
    50% { box-shadow: 0 0 0 8px rgba(0, 212, 255, 0); }
}

.address-value {
    display: flex;
    align-items: stretch;
    gap: 1.5rem;
    flex-wrap: wrap;
}

.address-column {
    flex: 1;
    min-width: 250px;
    display: flex;
    flex-direction: column;
    gap: 0.8rem;
}

.address-text {
    font-family: 'Courier New', monospace;
    font-size: 0.9rem;
    color: var(--text-light);
    background: rgba(0, 0, 0, 0.4);
    padding: 0.8rem 1rem;
    border-radius: 10px;
    word-break: break-all;
    border: 1px solid rgba(0, 152, 234, 0.2);
    line-height: 1.5;
    position: relative;
}

.address-text::selection {
    background: var(--ton-blue);
    color: white;
    text-shadow: 0 0 5px rgba(255,255,255,0.3);
}

.address-actions {
    display: flex;
    gap: 0.8rem;
}

/* Copy Button (enhanced) */
.copy-btn {
    position: relative;
    background: linear-gradient(135deg, var(--ton-blue), var(--ton-dark-blue));
    border: none;
    padding: 0.7rem 1.5rem;
    border-radius: 12px;
    cursor: pointer;
    display: flex;
    align-items: center;
    gap: 0.5rem;
    transition: all 0.3s cubic-bezier(0.4, 0, 0.2, 1);
    box-shadow: 0 4px 15px rgba(0, 152, 234, 0.3);
    font-family: 'Poppins', sans-serif;
    font-weight: 600;
    font-size: 0.9rem;
    color: white;
}

.copy-btn:hover {
    transform: translateY(-3px);
    box-shadow: 0 10px 30px rgba(0, 152, 234, 0.5);
}

.copy-btn:active {
    transform: translateY(-1px);
}

.copy-btn.copied {
    background: linear-gradient(135deg, #00D4FF, #00B2FF);
    animation: copySuccess 0.5s cubic-bezier(0.68, -0.55, 0.265, 1.55);
}

@keyframes copySuccess {
    0% { transform: scale(1) rotate(0deg); }
    25% { transform: scale(1.1) rotate(-2deg); }
    50% { transform: scale(0.95) rotate(1deg); }
    100% { transform: scale(1) rotate(0deg); }
}

.copy-icon {
    width: 18px;
    height: 18px;
    stroke-width: 2.5;
}

.copy-text {
    transition: opacity 0.2s ease;
}

.copy-btn.copied .copy-text {
    opacity: 0;
}

.copy-feedback {
    position: absolute;
    bottom: calc(100% + 10px);
    left: 50%;
    transform: translateX(-50%) scale(0.8);
    background: var(--bg-darker);
    color: var(--ton-cyan);
    padding: 0.5rem 1rem;
    border-radius: 8px;
    font-size: 0.85rem;
    font-weight: 600;
    white-space: nowrap;
    opacity: 0;
    pointer-events: none;
    transition: all 0.3s cubic-bezier(0.68, -0.55, 0.265, 1.55);
    display: flex;
    align-items: center;
    gap: 0.4rem;
    border: 1px solid rgba(0, 212, 255, 0.3);
    box-shadow: 0 4px 12px rgba(0, 0, 0, 0.4);
    z-index: 10;
}

.copy-feedback.show {
    opacity: 1;
    transform: translateX(-50%) scale(1);
}

.copy-feedback svg {
    width: 16px;
    height: 16px;
}

/* Explorer Button */
.explorer-btn {
    display: inline-flex;
    align-items: center;
    gap: 0.5rem;
    padding: 0.7rem 1.5rem;
    background: var(--glass-bg);
    border: 1px solid var(--glass-border);
    border-radius: 12px;
    color: var(--text-light);
    text-decoration: none;
    font-family: 'Poppins', sans-serif;
    font-weight: 600;
    font-size: 0.9rem;
    transition: all 0.3s cubic-bezier(0.4, 0, 0.2, 1);
    backdrop-filter: blur(10px);
}

.explorer-btn:hover {
    background: rgba(108, 92, 231, 0.2);
    border-color: var(--fergy-purple);
    transform: translateY(-3px);
    box-shadow: 0 10px 30px rgba(108, 92, 231, 0.4);
}

.explorer-btn:active {
    transform: translateY(-1px);
}

.explorer-icon {
    width: 18px;
    height: 18px;
    transition: transform 0.3s ease;
}

.explorer-btn:hover .explorer-icon {
    transform: translate(3px, -3px);
}

/* QR Code */
.qr-code {
    width: 120px;
    height: 120px;
    background: white;
    border-radius: 12px;
    padding: 8px;
    display: flex;
    align-items: center;
    justify-content: center;
    box-shadow: 0 4px 20px rgba(0, 0, 0, 0.2);
    transition: all 0.3s ease;
    flex-shrink: 0;
    position: relative;
    overflow: hidden;
}

.qr-code::before {
    content: 'Scan to copy';
    position: absolute;
    bottom: -25px;
    left: 50%;
    transform: translateX(-50%);
    font-size: 0.7rem;
    color: var(--text-muted);
    white-space: nowrap;
    opacity: 0;
    transition: opacity 0.3s ease;
}

.qr-code:hover::before {
    opacity: 1;
}

.qr-image {
    width: 100%;
    height: 100%;
    object-fit: contain;
    transition: transform 0.3s ease;
}

.qr-code:hover .qr-image {
    transform: scale(1.1);
}

.qr-feedback {
    position: absolute;
    top: 50%;
    left: 50%;
    transform: translate(-50%, -50%);
    width: 100%;
    height: 100%;
    background: rgba(0, 0, 0, 0.8);
    display: flex;
    align-items: center;
    justify-content: center;
    color: #00D4FF;
    animation: qrFeedbackPop 0.3s ease;
}

@keyframes qrFeedbackPop {
    0% { transform: translate(-50%, -50%) scale(0); opacity: 0; }
    50% { transform: translate(-50%, -50%) scale(1.2); opacity: 1; }
    100% { transform: translate(-50%, -50%) scale(1); opacity: 1; }
}

.qr-feedback svg {
    width: 40px;
    height: 40px;
}

/* Mini Address Toggle */
.address-mini {
    display: inline-flex;
    align-items: center;
    gap: 0.6rem;
    margin-top: 1.5rem;
    padding: 0.8rem 1.2rem;
    background: var(--glass-bg);
    border: 1px dashed var(--glass-border);
    border-radius: 50px;
    cursor: pointer;
    transition: all 0.3s cubic-bezier(0.4, 0, 0.2, 1);
    user-select: none;
    -webkit-tap-highlight-color: transparent;
}

.address-mini:hover,
.address-mini:focus {
    outline: none;
    background: rgba(0, 152, 234, 0.1);
    border-color: var(--ton-blue);
    transform: scale(1.03);
    box-shadow: 0 5px 20px rgba(0, 152, 234, 0.2);
}

.address-mini:active {
    transform: scale(0.98);
}

.mini-label {
    font-size: 0.8rem;
    font-weight: 700;
    color: var(--fergy-purple);
    text-transform: uppercase;
    letter-spacing: 0.1em;
}

.mini-address {
    font-family: 'Courier New', monospace;
    font-size: 0.9rem;
    color: var(--ton-light-blue);
    font-weight: 600;
    letter-spacing: 0.03em;
    transition: all 0.3s ease;
}

.address-mini.expanded .mini-address {
    color: var(--fergy-purple);
}

.toggle-icon {
    width: 16px;
    height: 16px;
    color: var(--text-muted);
    transition: transform 0.3s ease;
}

.address-mini.expanded .toggle-icon {
    transform: rotate(180deg);
}

/* Responsive */
@media (max-width: 768px) {
    .address-value {
        flex-direction: column;
        align-items: stretch;
        gap: 1rem;
    }

    .address-column {
        min-width: 100%;
    }

    .qr-code {
        align-self: center;
        width: 100px;
        height: 100px;
    }

    .address-actions {
        justify-content: center;
    }

    .copy-btn,
    .explorer-btn {
        flex: 1;
        justify-content: center;
    }

    .contract-address {
        padding: 1.2rem;
    }
}

@media (max-width: 480px) {
    .mini-label {
        display: none;
    }

    .address-mini {
        padding: 0.7rem 1rem;
        gap: 0.5rem;
    }

    .mini-address {
        font-size: 0.8rem;
    }
}

/* ===== Features ===== */
.features {
    padding: 5rem 0;
}

.features-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(280px, 1fr));
    gap: 2rem;
    margin-top: 3rem;
}

.feature-card {
    background: var(--glass-bg);
    border: 1px solid var(--glass-border);
    padding: 2rem;
    border-radius: 20px;
    text-align: center;
    transition: all 0.5s cubic-bezier(0.4, 0, 0.2, 1);
    backdrop-filter: blur(10px);
    transform-style: preserve-3d;
    perspective: 1000px;
    position: relative;
    overflow: hidden;
}

.feature-card::before {
    content: '';
    position: absolute;
    top: -50%;
    left: -50%;
    width: 200%;
    height: 200%;
    background: radial-gradient(circle, rgba(0, 152, 234, 0.1) 0%, transparent 50%);
    opacity: 0;
    transition: opacity 0.5s ease;
    pointer-events: none;
}

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

.feature-card:hover {
    transform: translateY(-15px) rotateX(5deg) scale(1.02);
    border-color: var(--ton-light-blue);
    box-shadow: 0 30px 60px rgba(0, 152, 234, 0.4), var(--shadow-glow);
}

.feature-icon {
    font-size: 3rem;
    margin-bottom: 1rem;
    display: block;
    animation: bounce 2s infinite;
    filter: drop-shadow(0 5px 15px rgba(0, 152, 234, 0.5));
    transition: transform 0.3s ease;
}

@keyframes bounce {
    0%, 100% { transform: translateY(0) scale(1); }
    50% { transform: translateY(-15px) scale(1.1); }
}

.feature-card:hover .feature-icon {
    animation-play-state: paused;
    transform: scale(1.3) translateY(-10px);
    filter: drop-shadow(0 10px 25px rgba(0, 152, 234, 0.8));
}

.feature-card h3 {
    font-family: 'Orbitron', sans-serif;
    font-size: 1.4rem;
    margin-bottom: 0.5rem;
    background: linear-gradient(135deg, var(--ton-light-blue), var(--fergy-purple));
    -webkit-background-clip: text;
    -webkit-text-fill-color: transparent;
    background-clip: text;
}

.feature-card p {
    color: var(--text-muted);
    line-height: 1.6;
}

/* ===== Footer ===== */
.footer {
    padding: 3rem 0;
    margin-top: 5rem;
    border-top: 1px solid var(--glass-border);
    backdrop-filter: blur(10px);
}

.footer-content {
    display: flex;
    justify-content: space-between;
    align-items: center;
    flex-wrap: wrap;
    gap: 1rem;
}

.footer-brand {
    display: flex;
    align-items: center;
    gap: 1rem;
}

.footer-logo {
    height: 30px;
    width: 30px;
    border-radius: 50%;
    object-fit: cover;
}

.footer-tagline {
    color: var(--text-muted);
    font-size: 0.9rem;
}

/* ===== Loading Screen ===== */
.loading-screen {
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background: var(--bg-dark);
    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: center;
    z-index: 10000;
    transition: opacity 0.8s ease, visibility 0.8s ease;
    gap: 2.5rem;
}

.loading-screen.hidden {
    opacity: 0;
    visibility: hidden;
    pointer-events: none;
}

.loading-orb {
    position: relative;
    width: 160px;
    height: 160px;
}

.loading-orb .orb-logo {
    position: absolute;
    top: 50%;
    left: 50%;
    transform: translate(-50%, -50%);
    width: 85px;
    height: 85px;
    z-index: 10;
}

.loading-orb .orb-logo img {
    width: 100%;
    height: 100%;
    border-radius: 50%;
    object-fit: cover;
    box-shadow: 0 0 50px rgba(0, 152, 234, 0.5);
}

@keyframes loadingRingSpin {
    from { transform: translate(-50%, -50%) rotate(0deg); }
    to { transform: translate(-50%, -50%) rotate(360deg); }
}

.loading-text {
    font-family: 'Orbitron', sans-serif;
    font-size: 1.1rem;
    color: var(--text-muted);
    letter-spacing: 0.15em;
}

.loading-text span {
    animation: loadingDots 1.2s infinite;
    opacity: 0;
}

.loading-text span:nth-child(2) { animation-delay: 0.2s; }
.loading-text span:nth-child(3) { animation-delay: 0.4s; }

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

/* ===== Narrative Section ===== */
.narrative-section {
    padding: 8rem 0;
    position: relative;
    overflow: hidden;
}

.narrative-content {
    display: flex;
    flex-direction: column;
    align-items: center;
    text-align: center;
    gap: 1.5rem;
    position: relative;
    z-index: 1;
}

.narrative-title {
    font-family: 'Orbitron', sans-serif;
    font-size: clamp(1.8rem, 5vw, 3rem);
    font-weight: 900;
    line-height: 1.3;
    max-width: 800px;
    animation: fadeInUp 1s ease forwards;
    opacity: 0;
}

.narrative-title .gradient-text {
    animation: gradientShift 5s ease infinite, textGlow 3s ease-in-out infinite;
    background-size: 200% auto;
}

.narrative-text {
    font-size: clamp(1.1rem, 2.5vw, 1.5rem);
    color: var(--text-muted);
    max-width: 700px;
    line-height: 1.7;
    animation: fadeInUp 1s ease 0.3s forwards;
    opacity: 0;
}

.narrative-orb {
    position: relative;
    width: 200px;
    height: 200px;
    margin: 3rem auto 0;
    animation: fadeIn 1.5s ease 0.6s forwards;
    opacity: 0;
}

.narrative-orb .narrative-logo {
    position: absolute;
    top: 50%;
    left: 50%;
    transform: translate(-50%, -50%);
    width: 100px;
    height: 100px;
    z-index: 10;
}

.narrative-orb .narrative-logo img {
    width: 100%;
    height: 100%;
    border-radius: 50%;
    object-fit: cover;
    box-shadow: 0 0 40px rgba(0, 152, 234, 0.4);
    animation: narrativePulse 4s ease-in-out infinite;
}

@keyframes narrativePulse {
    0%, 100% { transform: scale(1); box-shadow: 0 0 40px rgba(0, 152, 234, 0.4); }
    50% { transform: scale(1.06); box-shadow: 0 0 60px rgba(0, 212, 255, 0.6); }
}

.narrative-orb .narrative-ring {
    position: absolute;
    top: 50%;
    left: 50%;
    border: 1.5px solid transparent;
    border-radius: 50%;
    transform: translate(-50%, -50%);
}

.narrative-orb .ring-1 {
    width: 140px;
    height: 140px;
    margin: -70px 0 0 -70px;
    border-top-color: rgba(0, 212, 255, 0.5);
    animation: narrativeRingSpin 7s linear infinite;
}

.narrative-orb .ring-2 {
    width: 175px;
    height: 175px;
    margin: -87.5px 0 0 -87.5px;
    border-bottom-color: rgba(108, 92, 231, 0.4);
    animation: narrativeRingSpin 10s linear infinite reverse;
}

.narrative-orb .ring-3 {
    width: 210px;
    height: 210px;
    margin: -105px 0 0 -105px;
    border-left-color: rgba(0, 152, 234, 0.3);
    animation: narrativeRingSpin 14s linear infinite;
}

@keyframes narrativeRingSpin {
    from { transform: translate(-50%, -50%) rotate(0deg); }
    to { transform: translate(-50%, -50%) rotate(360deg); }
}

/* ===== Responsive Design ===== */
@media (max-width: 968px) {
    .hero {
        flex-direction: column-reverse;
        text-align: center;
        gap: 3rem;
    }

    .hero-content {
        max-width: 100%;
    }

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

    .header {
        flex-direction: column;
        gap: 1rem;
        padding: 1rem 0;
    }

    .nav {
        flex-wrap: wrap;
        justify-content: center;
        gap: 1rem;
    }
}

@media (max-width: 480px) {
    .container {
        padding: 0 1rem;
    }

    .hero-title {
        font-size: 2rem;
    }

    .social-buttons {
        grid-template-columns: 1fr;
    }

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

    .footer-content {
        flex-direction: column;
        text-align: center;
    }

    .fergy-orb {
        width: 260px;
        height: 260px;
    }

    .orb-core {
        width: 90px;
        height: 90px;
    }

    .ring-1 { width: 130px; height: 130px; }
    .ring-2 { width: 180px; height: 180px; }
    .ring-3 { width: 240px; height: 240px; }
}

/* ===== Scroll Behavior ===== */
html {
    scroll-behavior: smooth;
}

/* ===== Selection ===== */
::selection {
    background: var(--ton-blue);
    color: white;
    text-shadow: 0 0 5px rgba(255,255,255,0.3);
}

/* ===== Selection ===== */
::selection {
    background: var(--ton-blue);
    color: white;
    text-shadow: 0 0 5px rgba(255,255,255,0.3);
}

/* Mini Address Toggle */
.address-mini {
    display: inline-flex;
    align-items: center;
    gap: 0.6rem;
    margin-top: 1.5rem;
    padding: 0.8rem 1.2rem;
    background: var(--glass-bg);
    border: 1px dashed var(--glass-border);
    border-radius: 50px;
    cursor: pointer;
    transition: all 0.3s cubic-bezier(0.4, 0, 0.2, 1);
    user-select: none;
    -webkit-tap-highlight-color: transparent;
}

.address-mini:hover,
.address-mini:focus {
    outline: none;
    background: rgba(0, 152, 234, 0.1);
    border-color: var(--ton-blue);
    transform: scale(1.03);
    box-shadow: 0 5px 20px rgba(0, 152, 234, 0.2);
}

.address-mini:active {
    transform: scale(0.98);
}

.mini-label {
    font-size: 0.8rem;
    font-weight: 700;
    color: var(--fergy-purple);
    text-transform: uppercase;
    letter-spacing: 0.1em;
}

.mini-address {
    font-family: 'Courier New', monospace;
    font-size: 0.9rem;
    color: var(--ton-light-blue);
    font-weight: 600;
    letter-spacing: 0.03em;
    transition: all 0.3s ease;
}

.address-mini.expanded .mini-address {
    color: var(--fergy-purple);
}

.toggle-icon {
    width: 16px;
    height: 16px;
    color: var(--text-muted);
    transition: transform 0.3s ease;
}

.address-mini.expanded .toggle-icon {
    transform: rotate(180deg);
}

@media (max-width: 480px) {
    .mini-label {
        display: none;
    }

    .address-mini {
        padding: 0.7rem 1rem;
        gap: 0.5rem;
    }

    .mini-address {
        font-size: 0.8rem;
    }
}
::-webkit-scrollbar {
    width: 12px;
}

::-webkit-scrollbar-track {
    background: var(--bg-darker);
    border-radius: 10px;
}

::-webkit-scrollbar-thumb {
    background: linear-gradient(135deg, var(--ton-blue), var(--fergy-purple));
    border-radius: 10px;
    border: 3px solid var(--bg-darker);
    transition: background 0.3s ease;
}

::-webkit-scrollbar-thumb:hover {
    background: linear-gradient(135deg, var(--ton-light-blue), var(--fergy-accent));
    box-shadow: 0 0 10px rgba(0, 152, 234, 0.5);
}

/* ===== Cursor Trail Effect ===== */
.cursor-trail {
    position: fixed;
    width: 24px;
    height: 24px;
    border-radius: 50%;
    background: radial-gradient(circle, rgba(0, 152, 234, 0.7) 0%, rgba(108, 92, 231, 0.4) 50%, transparent 100%);
    pointer-events: none;
    z-index: 9998;
    opacity: 0;
    transition: none;
    mix-blend-mode: screen;
}

.cursor-trail.active {
    animation: cursorExpand 0.8s ease-out forwards;
}

@keyframes cursorExpand {
    0% {
        transform: scale(0.5);
        opacity: 1;
    }
    100% {
        transform: scale(2);
        opacity: 0;
    }
}

/* ===== Noise Texture Overlay ===== */
.noise-overlay {
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    pointer-events: none;
    z-index: 9997;
    opacity: 0.025;
    background-image: url("data:image/svg+xml,%3Csvg viewBox='0 0 256 256' xmlns='http://www.w3.org/2000/svg'%3E%3Cfilter id='noise'%3E%3CfeTurbulence type='fractalNoise' baseFrequency='0.9' numOctaves='4' stitchTiles='stitch'/%3E%3C/filter%3E%3Crect width='100%25' height='100%25' filter='url(%23noise)'/%3E%3C/svg%3E");
}

/* ===== Glitch Effect (Hover on Title) ===== */
.hero-title:hover .gradient-text {
    animation: glitch 0.5s ease infinite;
}

@keyframes glitch {
    0%, 100% {
        transform: translate(0);
        filter: hue-rotate(0deg);
    }
    20% {
        transform: translate(-2px, 2px);
        filter: hue-rotate(90deg);
    }
    40% {
        transform: translate(-2px, -2px);
        filter: hue-rotate(180deg);
    }
    60% {
        transform: translate(2px, 2px);
        filter: hue-rotate(270deg);
    }
    80% {
        transform: translate(2px, -2px);
        filter: hue-rotate(360deg);
    }
}
