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

:root {
    --primary: #6366f1;
    --primary-dark: #4f46e5;
    --secondary: #8b5cf6;
    --accent: #06b6d4;
    --text-primary: #ffffff;
    --text-secondary: #a1a1aa;
    --bg-dark: #0a0a0f;
    --bg-card: rgba(255, 255, 255, 0.05);
    --border: rgba(255, 255, 255, 0.1);
    --gradient-1: linear-gradient(135deg, #6366f1 0%, #8b5cf6 50%, #06b6d4 100%);
    --gradient-2: linear-gradient(135deg, #667eea 0%, #764ba2 100%);
}

body {
    font-family: 'Inter', -apple-system, BlinkMacSystemFont, 'Segoe UI', sans-serif;
    background: var(--bg-dark);
    color: var(--text-primary);
    overflow-x: hidden;
    line-height: 1.6;
}

.container {
    max-width: 1200px;
    margin: 0 auto;
    padding: 0 2rem;
}

/* Animated Background */
.bg-animation {
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    z-index: -1;
    overflow: hidden;
}

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

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

.particles {
    position: absolute;
    width: 100%;
    height: 100%;
    background: radial-gradient(circle at 20% 50%, rgba(99, 102, 241, 0.15) 0%, transparent 50%),
                radial-gradient(circle at 80% 80%, rgba(139, 92, 246, 0.15) 0%, transparent 50%),
                radial-gradient(circle at 40% 20%, rgba(6, 182, 212, 0.1) 0%, transparent 50%);
    animation: particlesMove 30s ease-in-out infinite;
}

@keyframes particlesMove {
    0%, 100% { transform: scale(1) rotate(0deg); }
    50% { transform: scale(1.1) rotate(180deg); }
}

/* Navigation */
.navbar {
    position: fixed;
    top: 0;
    left: 0;
    right: 0;
    padding: 1.5rem 0;
    background: rgba(10, 10, 15, 0.8);
    backdrop-filter: blur(20px);
    border-bottom: 1px solid var(--border);
    z-index: 1000;
}

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

.logo {
    display: flex;
    align-items: center;
    gap: 0.5rem;
    font-size: 1.5rem;
    font-weight: 700;
}

.logo-image {
    height: 40px;
    width: auto;
    object-fit: contain;
}

.logo-image {
    height: 40px;
    width: auto;
    object-fit: contain;
}

.logo-icon {
    font-size: 2rem;
    animation: pulse 2s ease-in-out infinite;
}

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

.nav-links {
    display: flex;
    gap: 2rem;
}

.nav-links a {
    color: var(--text-secondary);
    text-decoration: none;
    font-weight: 500;
    transition: color 0.3s;
}

.nav-links a:hover {
    color: var(--text-primary);
}

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

.hero .container {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 4rem;
    align-items: center;
}

.hero-badge {
    display: inline-flex;
    align-items: center;
    gap: 0.5rem;
    padding: 0.5rem 1rem;
    background: var(--bg-card);
    border: 1px solid var(--border);
    border-radius: 50px;
    font-size: 0.875rem;
    margin-bottom: 1.5rem;
}

.pulse-dot {
    width: 8px;
    height: 8px;
    background: #10b981;
    border-radius: 50%;
    animation: pulseDot 2s ease-in-out infinite;
}

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

.hero-title {
    font-size: 4rem;
    font-weight: 800;
    line-height: 1.2;
    margin-bottom: 0;
    color: var(--text-primary);
}

.gradient-text {
    background: var(--gradient-1);
    -webkit-background-clip: text;
    -webkit-text-fill-color: transparent;
    background-clip: text;
}

.hero-description {
    font-size: 1.25rem;
    color: var(--text-secondary);
    margin-bottom: 2rem;
    line-height: 1.8;
}

.hero-cta {
    margin: 3rem 0 0 0;
    display: flex;
    justify-content: flex-start;
    width: 100%;
}

.hero-demo-button {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    gap: 0.5rem;
    padding: 1rem 2.5rem;
    background: var(--gradient-1);
    color: white;
    text-decoration: none;
    font-size: 1rem;
    font-weight: 800;
    border-radius: 15px;
    box-shadow: 0 8px 25px rgba(99, 102, 241, 0.5), 0 0 0 0 rgba(99, 102, 241, 0.7);
    transition: all 0.3s ease;
    position: relative;
    overflow: hidden;
    border: 2px solid rgba(255, 255, 255, 0.2);
    min-width: 250px;
    text-transform: uppercase;
    letter-spacing: 0.5px;
    animation: buttonGlow 3s ease-in-out infinite;
}

@keyframes buttonGlow {
    0%, 100% {
        box-shadow: 0 8px 25px rgba(99, 102, 241, 0.5), 0 0 0 0 rgba(99, 102, 241, 0.7);
    }
    50% {
        box-shadow: 0 8px 25px rgba(99, 102, 241, 0.7), 0 0 20px 10px rgba(99, 102, 241, 0.3);
    }
}

.hero-demo-button::before {
    content: '';
    position: absolute;
    top: 0;
    left: -100%;
    width: 100%;
    height: 100%;
    background: linear-gradient(90deg, transparent, rgba(255, 255, 255, 0.3), transparent);
    transition: left 0.5s;
}

.hero-demo-button:hover::before {
    left: 100%;
}

.hero-demo-button:hover {
    transform: translateY(-4px) scale(1.05);
    box-shadow: 0 12px 35px rgba(99, 102, 241, 0.8), 0 0 30px 15px rgba(99, 102, 241, 0.4);
    border-color: rgba(255, 255, 255, 0.5);
    animation: none;
}

.hero-demo-button:active {
    transform: translateY(-2px) scale(1.02);
}

.button-text {
    font-size: 1rem;
    letter-spacing: 0.5px;
    font-weight: 800;
}

.hero-stats {
    display: flex;
    gap: 3rem;
}

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

.stat-value {
    font-size: 2.5rem;
    font-weight: 700;
    background: var(--gradient-1);
    -webkit-background-clip: text;
    -webkit-text-fill-color: transparent;
    background-clip: text;
}

.stat-label {
    font-size: 0.875rem;
    color: var(--text-secondary);
    margin-top: 0.5rem;
}

/* Network Visualization */
.hero-visual {
    position: relative;
    height: 500px;
}

.network-visualization {
    position: relative;
    width: 100%;
    height: 100%;
}

.network-node {
    position: absolute;
    width: 120px;
    height: 120px;
    background: var(--bg-card);
    border: 2px solid var(--primary);
    border-radius: 20px;
    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: center;
    backdrop-filter: blur(10px);
    transition: all 0.3s;
}

.network-node:hover {
    transform: scale(1.1);
    box-shadow: 0 0 30px rgba(99, 102, 241, 0.5);
}

.node-center {
    top: 50%;
    left: 50%;
    transform: translate(-50%, -50%);
    background: var(--gradient-1);
    border: none;
}

.node-1 {
    top: 10%;
    left: 20%;
}

.node-2 {
    top: 10%;
    right: 20%;
}

.node-3 {
    bottom: 10%;
    left: 20%;
}

.node-4 {
    bottom: 10%;
    right: 20%;
}

.node-pulse {
    position: absolute;
    width: 100%;
    height: 100%;
    border-radius: 20px;
    border: 2px solid var(--primary);
    animation: nodePulse 2s ease-in-out infinite;
}

@keyframes nodePulse {
    0% { transform: scale(1); opacity: 1; }
    100% { transform: scale(1.3); opacity: 0; }
}

.network-connections {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    z-index: -1;
}

.connection-line {
    stroke: var(--primary);
    stroke-width: 2;
    stroke-dasharray: 5,5;
    opacity: 0.3;
    animation: lineFlow 3s linear infinite;
}

@keyframes lineFlow {
    0% { stroke-dashoffset: 0; }
    100% { stroke-dashoffset: 20; }
}

/* Sections */
.section {
    padding: 6rem 0;
}

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

.section-badge {
    display: inline-block;
    padding: 0.5rem 1rem;
    background: var(--bg-card);
    border: 1px solid var(--border);
    border-radius: 50px;
    font-size: 0.875rem;
    color: var(--accent);
    margin-bottom: 1rem;
}

.section-title {
    font-size: 3rem;
    font-weight: 700;
    margin-top: 1rem;
}

/* Problem Section */
.problem-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(250px, 1fr));
    gap: 2rem;
}

.problem-card {
    padding: 2rem;
    background: var(--bg-card);
    border: 1px solid var(--border);
    border-radius: 20px;
    transition: all 0.3s;
}

.problem-card:hover {
    transform: translateY(-5px);
    border-color: var(--primary);
    box-shadow: 0 10px 40px rgba(99, 102, 241, 0.2);
}

.card-icon {
    font-size: 3rem;
    margin-bottom: 1rem;
}

.problem-card h3 {
    font-size: 1.5rem;
    margin-bottom: 1rem;
}

.problem-card p {
    color: var(--text-secondary);
}

/* Solution Section */
.solution-section {
    background: linear-gradient(135deg, rgba(99, 102, 241, 0.1) 0%, rgba(139, 92, 246, 0.1) 100%);
}

.solution-text {
    font-size: 1.25rem;
    color: var(--text-secondary);
    text-align: center;
    max-width: 800px;
    margin: 0 auto 3rem;
    line-height: 1.8;
}

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

.feature-item {
    display: flex;
    align-items: center;
    gap: 1.5rem;
    padding: 2rem;
    background: var(--bg-card);
    border: 1px solid var(--border);
    border-radius: 20px;
}

.feature-icon {
    font-size: 3rem;
}

.feature-item h4 {
    font-size: 1.25rem;
    margin-bottom: 0.5rem;
}

.feature-item p {
    color: var(--text-secondary);
}

/* Tech Section */
.tech-flow {
    display: flex;
    align-items: center;
    justify-content: center;
    flex-wrap: wrap;
    gap: 2rem;
}

.flow-step {
    flex: 1;
    min-width: 200px;
    padding: 2rem;
    background: var(--bg-card);
    border: 1px solid var(--border);
    border-radius: 20px;
    text-align: center;
    position: relative;
}

.step-number {
    width: 60px;
    height: 60px;
    background: var(--gradient-1);
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 1.5rem;
    font-weight: 700;
    margin: 0 auto 1rem;
}

.flow-arrow {
    font-size: 2rem;
    color: var(--primary);
}

.flow-step h3 {
    font-size: 1.25rem;
    margin-bottom: 0.5rem;
}

.flow-step p {
    color: var(--text-secondary);
    font-size: 0.875rem;
}

/* Network Section */
.network-cards {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(280px, 1fr));
    gap: 2rem;
}

.network-card {
    padding: 2rem;
    background: var(--bg-card);
    border: 1px solid var(--border);
    border-radius: 20px;
    transition: all 0.3s;
}

.network-card:hover {
    transform: translateY(-5px);
    border-color: var(--primary);
    box-shadow: 0 10px 40px rgba(99, 102, 241, 0.2);
}

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

.reward-badge {
    padding: 0.25rem 0.75rem;
    background: var(--gradient-1);
    border-radius: 50px;
    font-size: 0.75rem;
    font-weight: 600;
}

.network-card p {
    color: var(--text-secondary);
    margin-bottom: 1rem;
}

.network-specs {
    display: flex;
    gap: 1rem;
    flex-wrap: wrap;
}

.network-specs span {
    padding: 0.5rem 1rem;
    background: rgba(99, 102, 241, 0.1);
    border-radius: 10px;
    font-size: 0.875rem;
}

/* Tokenomics Section */
.tokenomics-content {
    max-width: 900px;
    margin: 0 auto;
}

.token-stats {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(200px, 1fr));
    gap: 2rem;
    margin-bottom: 4rem;
}

.token-stat {
    text-align: center;
    padding: 2rem;
    background: var(--bg-card);
    border: 1px solid var(--border);
    border-radius: 20px;
}

.token-stat-value {
    font-size: 3rem;
    font-weight: 700;
    background: var(--gradient-1);
    -webkit-background-clip: text;
    -webkit-text-fill-color: transparent;
    background-clip: text;
    margin-bottom: 0.5rem;
}

.token-stat-label {
    color: var(--text-secondary);
}

.reward-distribution {
    padding: 2rem;
    background: var(--bg-card);
    border: 1px solid var(--border);
    border-radius: 20px;
}

.reward-distribution h3 {
    margin-bottom: 2rem;
    font-size: 1.5rem;
}

.reward-bars {
    display: flex;
    flex-direction: column;
    gap: 1.5rem;
}

.reward-bar-label {
    margin-bottom: 0.5rem;
    font-weight: 500;
}

.reward-bar-track {
    width: 100%;
    height: 40px;
    background: rgba(255, 255, 255, 0.05);
    border-radius: 10px;
    overflow: hidden;
    position: relative;
}

.reward-bar-fill {
    height: 100%;
    background: var(--gradient-1);
    border-radius: 10px;
    display: flex;
    align-items: center;
    justify-content: flex-end;
    padding-right: 1rem;
    font-weight: 600;
    transition: width 1s ease-out;
}

/* CTA Section */
.cta-section {
    background: var(--gradient-1);
    text-align: center;
    padding: 6rem 0;
}

.cta-content h2 {
    font-size: 3rem;
    margin-bottom: 1rem;
}

.cta-content p {
    font-size: 1.25rem;
    margin-bottom: 2rem;
    opacity: 0.9;
}

.cta-buttons {
    display: flex;
    gap: 1rem;
    justify-content: center;
}

.btn {
    padding: 1rem 2rem;
    border: none;
    border-radius: 10px;
    font-size: 1rem;
    font-weight: 600;
    cursor: pointer;
    transition: all 0.3s;
}

.btn-primary {
    background: white;
    color: var(--primary);
}

.btn-primary:hover {
    transform: translateY(-2px);
    box-shadow: 0 10px 30px rgba(0, 0, 0, 0.3);
}

.btn-secondary {
    background: transparent;
    color: white;
    border: 2px solid white;
}

.btn-secondary:hover {
    background: white;
    color: var(--primary);
}

/* Footer */
.footer {
    padding: 4rem 0 2rem;
    border-top: 1px solid var(--border);
}

.footer-social {
    display: flex;
    justify-content: center;
    align-items: center;
    gap: 2rem;
    flex-wrap: wrap;
}

.social-link {
    display: inline-block;
    transition: transform 0.3s ease;
}

.social-link:hover {
    transform: translateY(-5px) scale(1.1);
}

.social-icon {
    width: 40px;
    height: 40px;
    color: rgba(255, 255, 255, 0.7);
    transition: all 0.3s ease;
}

.social-link:hover .social-icon {
    color: rgba(255, 255, 255, 1);
}

/* Interactive Demo Section */
.demo-section {
    padding: 8rem 0 4rem;
    background: linear-gradient(135deg, rgba(99, 102, 241, 0.05), rgba(139, 92, 246, 0.05));
    border-bottom: 1px solid var(--border);
}

.demo-intro {
    text-align: center;
    margin-bottom: 3rem;
}

.demo-title {
    font-size: 2.5rem;
    font-weight: 700;
    margin-bottom: 1rem;
    background: var(--gradient-1);
    -webkit-background-clip: text;
    -webkit-text-fill-color: transparent;
    background-clip: text;
}

.demo-subtitle {
    font-size: 1.25rem;
    color: var(--text-secondary);
}

.demo-container-compact {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 2rem;
    margin-bottom: 2rem;
}

.demo-input-compact {
    display: flex;
    flex-direction: column;
    gap: 1rem;
}

.prompt-input-compact {
    width: 100%;
    min-height: 200px;
    padding: 1.5rem;
    background: var(--bg-card);
    border: 2px solid var(--primary);
    border-radius: 15px;
    color: var(--text-primary);
    font-size: 1rem;
    font-family: 'Inter', sans-serif;
    resize: vertical;
    transition: all 0.3s;
}

.prompt-input-compact:focus {
    outline: none;
    border-color: var(--secondary);
    box-shadow: 0 0 30px rgba(99, 102, 241, 0.3);
}

.demo-button-compact {
    padding: 1.25rem;
    background: var(--gradient-1);
    border: none;
    border-radius: 15px;
    color: white;
    font-size: 1.125rem;
    font-weight: 600;
    cursor: pointer;
    transition: all 0.3s;
}

.demo-button-compact:hover:not(:disabled) {
    transform: translateY(-2px);
    box-shadow: 0 10px 40px rgba(99, 102, 241, 0.4);
}

.demo-button-compact:disabled {
    opacity: 0.6;
    cursor: not-allowed;
}

.demo-visualization-compact {
    background: var(--bg-card);
    border: 1px solid var(--border);
    border-radius: 20px;
    padding: 2rem;
    min-height: 300px;
    overflow-y: auto;
}

.demo-placeholder {
    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: center;
    height: 100%;
    color: var(--text-secondary);
}

.placeholder-icon {
    font-size: 4rem;
    margin-bottom: 1rem;
    opacity: 0.5;
}

.demo-links {
    display: flex;
    justify-content: center;
    gap: 1.5rem;
    flex-wrap: wrap;
    margin-top: 2rem;
}

.demo-link-btn {
    padding: 0.75rem 1.5rem;
    background: var(--bg-card);
    border: 1px solid var(--border);
    border-radius: 10px;
    color: var(--text-primary);
    text-decoration: none;
    font-weight: 500;
    transition: all 0.3s;
}

.demo-link-btn:hover {
    border-color: var(--primary);
    background: rgba(99, 102, 241, 0.1);
    transform: translateY(-2px);
}

/* Compact Demo Steps */
.compact-step {
    padding: 1rem;
    margin-bottom: 1rem;
    background: rgba(99, 102, 241, 0.1);
    border: 1px solid var(--border);
    border-radius: 10px;
    opacity: 0.5;
    transition: all 0.3s;
}

.compact-step.active {
    opacity: 1;
    border-color: var(--primary);
    background: rgba(99, 102, 241, 0.2);
}

.compact-step-title {
    font-weight: 600;
    color: var(--primary);
    margin-bottom: 0.5rem;
}

.compact-step-content {
    font-size: 0.875rem;
    color: var(--text-secondary);
}

.compact-nodes {
    display: flex;
    gap: 0.5rem;
    margin: 1rem 0;
    justify-content: center;
}

.compact-node {
    width: 40px;
    height: 40px;
    border-radius: 50%;
    border: 2px solid var(--border);
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 1.25rem;
    background: var(--bg-dark);
    transition: all 0.3s;
}

.compact-node.active {
    border-color: var(--primary);
    box-shadow: 0 0 15px rgba(99, 102, 241, 0.5);
    animation: nodePulse 1s ease-in-out infinite;
}

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

.compact-result {
    background: rgba(16, 185, 129, 0.1);
    border: 2px solid #10b981;
    border-radius: 15px;
    padding: 1.5rem;
    margin-top: 1rem;
}

.compact-result h4 {
    color: #10b981;
    margin-bottom: 1rem;
}

.compact-result-text {
    color: var(--text-primary);
    line-height: 1.8;
}

/* Solution CTA Button */
.solution-cta {
    margin-top: 3rem;
    display: flex;
    justify-content: center;
}

.solution-button {
    display: inline-block;
    padding: 1rem 2.5rem;
    background: var(--gradient-1);
    color: white;
    text-decoration: none;
    font-size: 1.125rem;
    font-weight: 600;
    border-radius: 15px;
    box-shadow: 0 8px 25px rgba(99, 102, 241, 0.4);
    transition: all 0.3s ease;
    border: 2px solid transparent;
}

.solution-button:hover {
    transform: translateY(-3px);
    box-shadow: 0 15px 40px rgba(99, 102, 241, 0.6);
    border-color: rgba(255, 255, 255, 0.2);
}

/* Network CTA Button */
.network-cta {
    margin-top: 3rem;
    display: flex;
    justify-content: center;
}

.network-button {
    display: inline-block;
    padding: 1rem 2.5rem;
    background: var(--gradient-1);
    color: white;
    text-decoration: none;
    font-size: 1.125rem;
    font-weight: 600;
    border-radius: 15px;
    box-shadow: 0 8px 25px rgba(99, 102, 241, 0.4);
    transition: all 0.3s ease;
    border: 2px solid transparent;
}

.network-button:hover {
    transform: translateY(-3px);
    box-shadow: 0 15px 40px rgba(99, 102, 241, 0.6);
    border-color: rgba(255, 255, 255, 0.2);
}

/* Responsive */
@media (max-width: 768px) {
    .hero .container {
        grid-template-columns: 1fr;
    }
    
    .hero-title {
        font-size: 2.5rem;
    }
    
    .section-title {
        font-size: 2rem;
    }
    
    .nav-links {
        display: none;
    }
    
    .tech-flow {
        flex-direction: column;
    }
    
    .flow-arrow {
        transform: rotate(90deg);
    }
    
    .demo-container-compact {
        grid-template-columns: 1fr;
    }
    
    .demo-title {
        font-size: 2rem;
    }
    
    .hero-demo-button {
        padding: 0.75rem 1.5rem;
        font-size: 0.875rem;
        min-width: auto;
        width: 100%;
        max-width: 90%;
    }
    
    .button-text {
        font-size: 0.875rem;
    }
    
}

