:root {
    --bg-color: #030308;
    --text-primary: #FFFFFF;
    --text-secondary: #94A3B8;
    --accent-color: #00E4FF;
    --accent-glow: rgba(0, 228, 255, 0.5);
    --secondary-accent: #8A2BE2;
    --glass-bg: rgba(10, 10, 18, 0.4);
    --glass-border: rgba(255, 255, 255, 0.08);
}

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

body {
    font-family: 'Inter', 'Noto Sans SC', sans-serif;
    background-color: var(--bg-color);
    color: var(--text-primary);
    overflow-x: hidden;
    line-height: 1.6;
}

/* Background Canvas */
#bg-canvas {
    position: fixed;
    top: 0;
    left: 0;
    width: 100vw;
    height: 100vh;
    z-index: -2;
}

.glass-overlay {
    position: fixed;
    top: 0;
    left: 0;
    width: 100vw;
    height: 100vh;
    background: radial-gradient(circle at center, transparent 0%, rgba(3, 3, 8, 0.85) 100%);
    z-index: -1;
    pointer-events: none;
}

/* Header */
header {
    display: flex;
    justify-content: space-between;
    align-items: center;
    padding: 1.2rem 6%;
    background: var(--glass-bg);
    backdrop-filter: blur(12px);
    -webkit-backdrop-filter: blur(12px);
    border-bottom: 1px solid var(--glass-border);
    position: fixed;
    width: 100%;
    top: 0;
    z-index: 100;
}

.logo {
    display: flex;
    align-items: center;
    gap: 0.8rem;
    cursor: pointer;
}

.logo .icon {
    font-size: 2rem;
    color: var(--accent-color);
    text-shadow: 0 0 12px var(--accent-glow);
}

.logo h1 {
    font-weight: 900;
    font-size: 1.5rem;
    letter-spacing: 3px;
    background: linear-gradient(90deg, #FFFFFF, var(--accent-color));
    -webkit-background-clip: text;
    -webkit-text-fill-color: transparent;
}

nav ul {
    display: flex;
    list-style: none;
    gap: 3rem;
}

nav a {
    color: var(--text-primary);
    text-decoration: none;
    font-size: 0.95rem;
    font-weight: 500;
    transition: all 0.3s ease;
    position: relative;
    letter-spacing: 1px;
}

nav a::after {
    content: '';
    position: absolute;
    bottom: -6px;
    left: 0;
    width: 0;
    height: 2px;
    background: var(--accent-color);
    transition: width 0.3s ease;
    box-shadow: 0 0 8px var(--accent-glow);
}

nav a:hover {
    color: var(--accent-color);
}

nav a:hover::after {
    width: 100%;
}

.actions {
    display: flex;
    gap: 1rem;
}

.btn {
    padding: 0.6rem 1.8rem;
    border-radius: 30px;
    font-weight: 600;
    font-size: 0.95rem;
    cursor: pointer;
    transition: all 0.3s cubic-bezier(0.25, 0.46, 0.45, 0.94);
    letter-spacing: 1px;
}

.btn-outline {
    background: transparent;
    border: 1px solid rgba(0, 228, 255, 0.4);
    color: var(--accent-color);
}

.btn-outline:hover {
    background: rgba(0, 228, 255, 0.1);
    box-shadow: 0 0 20px var(--accent-glow);
}

.btn-primary {
    background: var(--accent-color);
    border: none;
    color: #000;
    box-shadow: 0 0 20px var(--accent-glow);
}

.btn-primary:hover {
    transform: translateY(-2px);
    box-shadow: 0 0 30px var(--accent-glow);
    background: #FFF;
}

.btn-secondary {
    background: rgba(255,255,255,0.05);
    border: 1px solid var(--glass-border);
    color: #FFF;
    backdrop-filter: blur(5px);
}

.btn-secondary:hover {
    background: rgba(255,255,255,0.15);
    transform: translateY(-2px);
}

.btn-large {
    padding: 1rem 3rem;
    font-size: 1.1rem;
}

/* Main Content */
main {
    margin-top: 80px;
}

/* Hero Section */
.hero {
    height: calc(100vh - 80px);
    display: flex;
    align-items: center;
    justify-content: space-between;
    padding: 0 10%;
    position: relative;
}

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

.badge {
    display: inline-block;
    padding: 0.4rem 1.2rem;
    background: rgba(0, 228, 255, 0.08);
    border: 1px solid rgba(0, 228, 255, 0.3);
    border-radius: 30px;
    font-size: 0.85rem;
    font-weight: 600;
    letter-spacing: 2px;
    color: var(--accent-color);
    margin-bottom: 2rem;
    text-transform: uppercase;
    box-shadow: 0 0 15px rgba(0, 228, 255, 0.1);
}

.hero h2 {
    font-size: 4.5rem;
    font-weight: 900;
    line-height: 1.1;
    margin-bottom: 1.5rem;
    letter-spacing: 3px;
    position: relative;
}

.hero p {
    font-size: 1.15rem;
    color: var(--text-secondary);
    margin-bottom: 3rem;
    max-width: 90%;
}

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

/* 3D Cube Animation */
.hero-visual {
    perspective: 1200px;
    margin-right: 5%;
}

.cube-container {
    width: 320px;
    height: 320px;
    animation: rotate 25s infinite linear;
    transform-style: preserve-3d;
}

.cube {
    width: 100%;
    height: 100%;
    position: relative;
    transform-style: preserve-3d;
}

.face {
    position: absolute;
    width: 320px;
    height: 320px;
    border: 1px solid var(--accent-color);
    background: rgba(0, 228, 255, 0.03);
    box-shadow: 0 0 30px rgba(0, 228, 255, 0.15) inset;
    backdrop-filter: blur(4px);
    transition: background 0.5s ease;
}

.cube:hover .face {
    background: rgba(0, 228, 255, 0.08);
    box-shadow: 0 0 50px rgba(0, 228, 255, 0.3) inset;
}

.front  { transform: translateZ(160px); }
.back   { transform: rotateY(180deg) translateZ(160px); }
.right  { transform: rotateY(90deg) translateZ(160px); }
.left   { transform: rotateY(-90deg) translateZ(160px); }
.top    { transform: rotateX(90deg) translateZ(160px); }
.bottom { transform: rotateX(-90deg) translateZ(160px); }

@keyframes rotate {
    0% { transform: rotateX(0deg) rotateY(0deg) rotateZ(0deg); }
    100% { transform: rotateX(360deg) rotateY(360deg) rotateZ(360deg); }
}

/* Features Range */
.features {
    padding: 8rem 10%;
    background: linear-gradient(180deg, transparent 0%, rgba(5, 5, 10, 0.95) 100%);
    position: relative;
    z-index: 2;
}

.section-header {
    text-align: center;
    margin-bottom: 6rem;
}

.section-header h3 {
    font-size: 2.8rem;
    font-weight: 800;
    margin-bottom: 1rem;
    letter-spacing: 2px;
    background: linear-gradient(90deg, #FFFFFF, var(--secondary-accent));
    -webkit-background-clip: text;
    -webkit-text-fill-color: transparent;
}

.section-header p {
    color: var(--text-secondary);
    font-size: 1.15rem;
    letter-spacing: 1px;
}

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

.card {
    background: var(--glass-bg);
    border: 1px solid var(--glass-border);
    border-radius: 24px;
    padding: 3.5rem 2.5rem;
    text-align: center;
    transition: all 0.5s cubic-bezier(0.25, 0.46, 0.45, 0.94);
    backdrop-filter: blur(16px);
    position: relative;
    overflow: hidden;
    box-shadow: 0 10px 30px rgba(0,0,0,0.3);
}

.card::before {
    content: '';
    position: absolute;
    top: 0;
    left: -100%;
    width: 60%;
    height: 1px;
    background: linear-gradient(90deg, transparent, var(--accent-color), transparent);
    transition: all 0.8s ease;
}

.card:hover {
    transform: translateY(-15px);
    box-shadow: 0 20px 50px rgba(0,0,0,0.6);
    border-color: rgba(0, 228, 255, 0.2);
    background: rgba(15, 15, 25, 0.6);
}

.card:hover::before {
    left: 140%;
}

.card-icon {
    font-size: 3.5rem;
    color: var(--accent-color);
    margin-bottom: 1.5rem;
    text-shadow: 0 0 20px var(--accent-glow);
    display: inline-block;
    transition: transform 0.5s ease;
}

.card:hover .card-icon {
    transform: scale(1.1) rotate(15deg);
}

.card h4 {
    font-size: 1.6rem;
    margin-bottom: 1.2rem;
    font-weight: 700;
    letter-spacing: 1px;
}

.card p {
    color: var(--text-secondary);
    font-size: 1rem;
    line-height: 1.7;
}

/* Footer & ICP */
footer {
    background: #010103;
    padding: 5rem 10% 2.5rem;
    border-top: 1px solid rgba(255,255,255,0.03);
    position: relative;
    z-index: 2;
}

.footer-content {
    display: flex;
    justify-content: space-between;
    align-items: flex-start;
    margin-bottom: 4rem;
    flex-wrap: wrap;
    gap: 3rem;
}

.footer-logo h2 {
    font-size: 2rem;
    font-weight: 900;
    margin-bottom: 0.8rem;
    letter-spacing: 2px;
    background: linear-gradient(90deg, #FFFFFF, var(--text-secondary));
    -webkit-background-clip: text;
    -webkit-text-fill-color: transparent;
}

.footer-logo p {
    color: var(--text-secondary);
    font-size: 0.95rem;
}

.footer-links {
    display: flex;
    gap: 2.5rem;
}

.footer-links a {
    color: var(--text-secondary);
    text-decoration: none;
    font-size: 0.95rem;
    transition: color 0.3s ease;
    font-weight: 500;
}

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

.footer-bottom {
    display: flex;
    justify-content: space-between;
    align-items: center;
    padding-top: 2.5rem;
    border-top: 1px solid rgba(255,255,255,0.05);
    flex-wrap: wrap;
    gap: 1.5rem;
}

.footer-bottom p {
    color: var(--text-secondary);
    font-size: 0.9rem;
}

.icp-info {
    display: flex;
    align-items: center;
    gap: 1rem;
    flex-wrap: wrap;
}

.icp-info a, .icp-info span {
    color: var(--text-secondary);
    text-decoration: none;
    font-size: 0.85rem;
    transition: color 0.3s ease;
}

.icp-info a:hover {
    color: var(--text-primary);
}

.divider {
    color: rgba(255,255,255,0.2) !important;
}

/* Glitch Effect */
.glitch-text {
    position: relative;
    display: inline-block;
}

.glitch-text::before,
.glitch-text::after {
    content: attr(data-text);
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    opacity: 0.8;
}

.glitch-text::before {
    left: 3px;
    text-shadow: -2px 0 var(--secondary-accent);
    clip: rect(24px, 1000px, 90px, 0);
    animation: glitch-anim 4s infinite linear alternate-reverse;
}

.glitch-text::after {
    left: -3px;
    text-shadow: -2px 0 var(--accent-color);
    clip: rect(85px, 1000px, 140px, 0);
    animation: glitch-anim 3s infinite linear alternate-reverse;
}

@keyframes glitch-anim {
    0% { clip: rect(20px, 9999px, 85px, 0); }
    5% { clip: rect(40px, 9999px, 15px, 0); }
    10% { clip: rect(90px, 9999px, 80px, 0); }
    15% { clip: rect(10px, 9999px, 40px, 0); }
    20% { clip: rect(50px, 9999px, 60px, 0); }
    25% { clip: rect(70px, 9999px, 30px, 0); }
    30% { clip: rect(80px, 9999px, 90px, 0); }
    100% { clip: rect(20px, 9999px, 85px, 0); }
}

@media (max-width: 1024px) {
    .hero {
        flex-direction: column;
        justify-content: center;
        text-align: center;
        gap: 5rem;
    }
    .hero-buttons {
        justify-content: center;
    }
    .hero-content {
        margin-top: 4rem;
        max-width: 100%;
    }
    .hero h2 {
        font-size: 3.5rem;
    }
    .hero-visual {
        margin-right: 0;
    }
    .cube-container {
        width: 250px;
        height: 250px;
    }
    .face {
        width: 250px;
        height: 250px;
    }
    .front  { transform: translateZ(125px); }
    .back   { transform: rotateY(180deg) translateZ(125px); }
    .right  { transform: rotateY(90deg) translateZ(125px); }
    .left   { transform: rotateY(-90deg) translateZ(125px); }
    .top    { transform: rotateX(90deg) translateZ(125px); }
    .bottom { transform: rotateX(-90deg) translateZ(125px); }
    
    nav {
        display: none;
    }
}

@media (max-width: 768px) {
    .footer-bottom {
        flex-direction: column;
        text-align: center;
        gap: 1.5rem;
    }
    .icp-info {
        justify-content: center;
    }
    .hero h2 {
        font-size: 2.5rem;
    }
}
