:root {
    --primary-purple: #9c27b0;
    --primary-blue: #3f51b5;
    --primary-cyan: #00bcd4;
    --text-primary: #ffffff;
    --text-secondary: rgba(255, 255, 255, 0.85);
    --text-tertiary: rgba(255, 255, 255, 0.65);
    --bg-overlay: rgba(0, 0, 0, 0.85);
    --border-color: rgba(156, 39, 176, 0.2);
}

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

body, html {
    margin: 0;
    padding: 0;
    height: 100%;
    overflow-x: hidden;
    font-family: 'Inter', -apple-system, BlinkMacSystemFont, 'Segoe UI', Roboto, sans-serif;
    color: var(--text-primary);
    background: #000000;
    -webkit-font-smoothing: antialiased;
    -moz-osx-font-smoothing: grayscale;
}

#canvas-container {
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    z-index: 1;
    opacity: 0.4;
}

/* Navigation */
nav {
    position: fixed;
    top: 0;
    left: 0;
    right: 0;
    z-index: 100;
    padding: 1.5rem 4rem;
    backdrop-filter: blur(20px);
    background: rgba(0, 0, 0, 0.3);
    border-bottom: 1px solid var(--border-color);
    display: flex;
    justify-content: space-between;
    align-items: center;
}

.logo {
    font-size: 1.5rem;
    font-weight: 700;
    letter-spacing: -0.5px;
    background: linear-gradient(135deg, var(--primary-purple), var(--primary-cyan));
    -webkit-background-clip: text;
    -webkit-text-fill-color: transparent;
    background-clip: text;
    text-decoration: none;
}

.nav-links {
    display: flex;
    gap: 2.5rem;
    list-style: none;
}

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

.nav-links a::after {
    content: '';
    position: absolute;
    bottom: -5px;
    left: 0;
    width: 0;
    height: 2px;
    background: linear-gradient(90deg, var(--primary-purple), var(--primary-cyan));
    transition: width 0.3s;
}

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

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

/* Animated Logo */
.logo-container {
    width: 200px;
    height: 200px;
    margin: 0 auto 3rem;
    position: relative;
}

.logo-svg {
    width: 100%;
    height: 100%;
    filter: drop-shadow(0 0 20px rgba(156, 39, 176, 0.5));
}

/* Hero Section */
.hero {
    position: relative;
    z-index: 10;
    min-height: 100vh;
    display: flex;
    flex-direction: column;
    justify-content: center;
    align-items: center;
    text-align: center;
    padding: 8rem 2rem 4rem;
    max-width: 1200px;
    margin: 0 auto;
}

h1 {
    font-size: clamp(3rem, 7vw, 5.5rem);
    font-weight: 800;
    margin-bottom: 2rem;
    letter-spacing: -2px;
    line-height: 1.1;
    background: linear-gradient(135deg, #ffffff 0%, var(--primary-purple) 30%, var(--primary-blue) 60%, var(--primary-cyan) 100%);
    background-size: 200% 200%;
    -webkit-background-clip: text;
    -webkit-text-fill-color: transparent;
    background-clip: text;
    animation: gradientShift 8s ease infinite;
}

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

.subtitle {
    font-size: clamp(1.1rem, 2.5vw, 1.4rem);
    max-width: 900px;
    margin: 0 auto 3.5rem;
    color: var(--text-secondary);
    line-height: 1.7;
    font-weight: 400;
}

.cta-button {
    padding: 1.1rem 3rem;
    font-size: 1rem;
    font-weight: 600;
    background: transparent;
    border: 2px solid var(--primary-purple);
    color: var(--text-primary);
    cursor: pointer;
    border-radius: 50px;
    transition: all 0.4s;
    text-decoration: none;
    display: inline-block;
    position: relative;
    overflow: hidden;
    letter-spacing: 0.5px;
}

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

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

.cta-button:hover {
    border-color: var(--primary-cyan);
    background: rgba(156, 39, 176, 0.1);
    transform: translateY(-2px);
    box-shadow: 0 10px 30px rgba(156, 39, 176, 0.3);
}

/* Content Sections */
.content-section {
    position: relative;
    z-index: 10;
    padding: 6rem 2rem;
    max-width: 1400px;
    margin: 0 auto;
}

.section-title {
    font-size: clamp(2rem, 4vw, 3rem);
    font-weight: 700;
    text-align: center;
    margin-bottom: 4rem;
    letter-spacing: -1px;
    background: linear-gradient(135deg, var(--primary-purple), var(--primary-cyan));
    -webkit-background-clip: text;
    -webkit-text-fill-color: transparent;
    background-clip: text;
}

/* Features Grid */
.features-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(350px, 1fr));
    gap: 2rem;
    margin-bottom: 6rem;
}

.feature-card {
    background: rgba(0, 0, 0, 0.4);
    border: 1px solid var(--border-color);
    border-radius: 16px;
    padding: 2.5rem;
    backdrop-filter: blur(10px);
    transition: all 0.4s;
    position: relative;
    overflow: hidden;
}

.feature-card::before {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    height: 3px;
    background: linear-gradient(90deg, var(--primary-purple), var(--primary-cyan));
    transform: scaleX(0);
    transition: transform 0.4s;
}

.feature-card:hover::before {
    transform: scaleX(1);
}

.feature-card:hover {
    transform: translateY(-5px);
    border-color: rgba(156, 39, 176, 0.5);
    box-shadow: 0 20px 40px rgba(0, 0, 0, 0.5);
}

.feature-icon {
    width: 48px;
    height: 48px;
    margin-bottom: 1.5rem;
    display: flex;
    align-items: center;
    justify-content: center;
    background: linear-gradient(135deg, rgba(156, 39, 176, 0.2), rgba(0, 188, 212, 0.2));
    border-radius: 12px;
    font-size: 1.5rem;
}

.feature-title {
    font-size: 1.5rem;
    font-weight: 600;
    margin-bottom: 1rem;
    color: var(--text-primary);
    letter-spacing: -0.5px;
}

.feature-description {
    color: var(--text-secondary);
    line-height: 1.7;
    font-size: 0.95rem;
}

/* Stats Grid */
.stats-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(200px, 1fr));
    gap: 3rem;
    margin: 5rem 0;
    padding: 3rem 0;
    border-top: 1px solid var(--border-color);
    border-bottom: 1px solid var(--border-color);
}

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

.stat-value {
    font-size: clamp(2.5rem, 5vw, 4rem);
    font-weight: 800;
    margin-bottom: 0.5rem;
    background: linear-gradient(135deg, var(--primary-purple), var(--primary-cyan));
    -webkit-background-clip: text;
    -webkit-text-fill-color: transparent;
    background-clip: text;
    letter-spacing: -2px;
}

.stat-label {
    color: var(--text-tertiary);
    font-size: 0.85rem;
    text-transform: uppercase;
    letter-spacing: 2px;
    font-weight: 500;
}

/* Info Blocks */
.info-block {
    background: rgba(0, 0, 0, 0.5);
    border: 1px solid var(--border-color);
    border-radius: 20px;
    padding: 3.5rem;
    margin: 3rem 0;
    backdrop-filter: blur(20px);
}

.info-block h3 {
    font-size: 2rem;
    font-weight: 700;
    margin-bottom: 1.5rem;
    color: var(--text-primary);
    letter-spacing: -1px;
}

.info-block p {
    font-size: 1.05rem;
    line-height: 1.8;
    color: var(--text-secondary);
    margin-bottom: 1.5rem;
}

.info-block ul {
    list-style: none;
    padding: 0;
}

.info-block li {
    font-size: 1.05rem;
    line-height: 2;
    color: var(--text-secondary);
    padding-left: 2rem;
    position: relative;
    margin-bottom: 0.5rem;
}

.info-block li::before {
    content: '';
    position: absolute;
    left: 0;
    top: 0.7rem;
    width: 6px;
    height: 6px;
    background: var(--primary-cyan);
    border-radius: 50%;
}

.info-block a {
    color: var(--primary-cyan);
    text-decoration: none;
    border-bottom: 1px solid var(--primary-cyan);
    transition: all 0.3s;
    font-weight: 500;
}

.info-block a:hover {
    border-bottom-color: transparent;
    color: var(--primary-purple);
}

/* IPFS Download Link Frame */
.ipfs-download-frame {
    margin: 2rem 0;
    padding: 2rem;
    background: rgba(156, 39, 176, 0.1);
    border: 2px solid rgba(156, 39, 176, 0.3);
    border-radius: 16px;
    backdrop-filter: blur(10px);
    position: relative;
    overflow: hidden;
    transition: all 0.4s;
}

.ipfs-download-frame::before {
    content: '';
    position: absolute;
    top: 0;
    left: -100%;
    width: 100%;
    height: 100%;
    background: linear-gradient(90deg, transparent, rgba(156, 39, 176, 0.2), transparent);
    animation: shimmer 3s infinite;
}

@keyframes shimmer {
    0% { left: -100%; }
    100% { left: 100%; }
}

.ipfs-download-frame:hover {
    border-color: rgba(0, 188, 212, 0.6);
    box-shadow: 0 10px 40px rgba(156, 39, 176, 0.3);
    transform: translateY(-2px);
}

.ipfs-download-link {
    display: inline-flex;
    align-items: center;
    gap: 1rem;
    color: var(--primary-cyan);
    text-decoration: none;
    font-weight: 600;
    font-size: 1.1rem;
    padding: 1rem 2rem;
    background: rgba(0, 188, 212, 0.1);
    border: 2px solid var(--primary-cyan);
    border-radius: 12px;
    transition: all 0.3s;
    position: relative;
    z-index: 1;
}

.ipfs-download-link:hover {
    background: rgba(0, 188, 212, 0.2);
    box-shadow: 0 5px 20px rgba(0, 188, 212, 0.4);
    transform: scale(1.05);
}

.ipfs-download-link::after {
    content: '→';
    font-size: 1.5rem;
    transition: transform 0.3s;
}

.ipfs-download-link:hover::after {
    transform: translateX(5px);
}

/* Contact Form */
.contact-form {
    max-width: 600px;
    margin: 0 auto;
    background: rgba(0, 0, 0, 0.5);
    border: 1px solid var(--border-color);
    border-radius: 20px;
    padding: 3rem;
    backdrop-filter: blur(20px);
}

.form-group {
    margin-bottom: 1.5rem;
}

.form-group label {
    display: block;
    margin-bottom: 0.5rem;
    color: var(--text-secondary);
    font-weight: 500;
}

.form-group input,
.form-group textarea {
    width: 100%;
    padding: 0.75rem 1rem;
    background: rgba(255, 255, 255, 0.05);
    border: 1px solid var(--border-color);
    border-radius: 8px;
    color: var(--text-primary);
    font-family: inherit;
    font-size: 1rem;
    transition: all 0.3s;
}

.form-group input:focus,
.form-group textarea:focus {
    outline: none;
    border-color: var(--primary-cyan);
    box-shadow: 0 0 0 3px rgba(0, 188, 212, 0.1);
}

.form-group textarea {
    resize: vertical;
    min-height: 150px;
}

.submit-btn {
    width: 100%;
    padding: 1rem;
    background: transparent;
    border: 2px solid var(--primary-purple);
    color: var(--text-primary);
    font-size: 1rem;
    font-weight: 600;
    border-radius: 50px;
    cursor: pointer;
    transition: all 0.4s;
}

.submit-btn:hover {
    border-color: var(--primary-cyan);
    background: rgba(156, 39, 176, 0.1);
    transform: translateY(-2px);
    box-shadow: 0 10px 30px rgba(156, 39, 176, 0.3);
}

/* Footer */
footer {
    position: relative;
    z-index: 10;
    text-align: center;
    padding: 4rem 2rem 3rem;
    border-top: 1px solid var(--border-color);
    background: rgba(0, 0, 0, 0.5);
    backdrop-filter: blur(20px);
}

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

footer a {
    color: var(--primary-cyan);
    text-decoration: none;
    font-weight: 600;
    transition: color 0.3s;
}

footer a:hover {
    color: var(--primary-purple);
}

.copyright {
    margin-top: 2rem;
    font-size: 0.9rem;
    color: var(--text-tertiary);
}

/* Scroll Indicator */
.scroll-indicator {
    position: absolute;
    bottom: 2rem;
    left: 50%;
    transform: translateX(-50%);
    display: flex;
    flex-direction: column;
    align-items: center;
    gap: 0.5rem;
    z-index: 10;
}

.scroll-indicator span {
    font-size: 0.75rem;
    color: var(--text-tertiary);
    text-transform: uppercase;
    letter-spacing: 3px;
    font-weight: 500;
}

.scroll-indicator::after {
    content: '';
    width: 1px;
    height: 30px;
    background: linear-gradient(180deg, transparent, var(--primary-purple));
    animation: scrollLine 2s infinite;
}

@keyframes scrollLine {
    0% { opacity: 0; transform: translateY(0); }
    50% { opacity: 1; }
    100% { opacity: 0; transform: translateY(20px); }
}

/* Usability Frame Animations */
.button-frame {
    width: 100%;
    height: 100%;
}

.feature-card {
    position: relative;
}

.feature-card::after {
    content: '';
    position: absolute;
    top: -2px;
    left: -2px;
    right: -2px;
    bottom: -2px;
    border-radius: 16px;
    padding: 2px;
    background: linear-gradient(135deg, rgba(156, 39, 176, 0.3), rgba(0, 188, 212, 0.3));
    -webkit-mask: linear-gradient(#fff 0 0) content-box, linear-gradient(#fff 0 0);
    -webkit-mask-composite: xor;
    mask-composite: exclude;
    opacity: 0;
    transition: opacity 0.4s;
    pointer-events: none;
}

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

.ipfs-download-frame {
    position: relative;
}

.ipfs-download-frame::after {
    content: '';
    position: absolute;
    top: -4px;
    left: -4px;
    right: -4px;
    bottom: -4px;
    border-radius: 16px;
    background: linear-gradient(135deg, rgba(156, 39, 176, 0.4), rgba(0, 188, 212, 0.4));
    opacity: 0;
    transition: opacity 0.4s;
    z-index: -1;
    animation: framePulse 3s ease-in-out infinite;
}

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

.ipfs-download-frame:hover::after {
    opacity: 0.5;
}

.contact-form {
    position: relative;
}

.contact-form::before {
    content: '';
    position: absolute;
    top: -2px;
    left: -2px;
    right: -2px;
    bottom: -2px;
    border-radius: 20px;
    background: linear-gradient(135deg, rgba(156, 39, 176, 0.2), rgba(0, 188, 212, 0.2));
    opacity: 0.5;
    z-index: -1;
    animation: formGlow 4s ease-in-out infinite;
}

@keyframes formGlow {
    0%, 100% { opacity: 0.3; }
    50% { opacity: 0.6; }
}

/* Responsive */
@media (max-width: 768px) {
    nav {
        padding: 1rem 2rem;
        flex-direction: column;
        gap: 1rem;
    }

    .nav-links {
        gap: 1rem;
        flex-wrap: wrap;
        justify-content: center;
        font-size: 0.9rem;
    }

    .hero {
        padding: 6rem 1.5rem 3rem;
    }

    .logo-container {
        width: 150px;
        height: 150px;
        margin-bottom: 2rem;
    }

    h1 {
        font-size: clamp(2rem, 8vw, 4rem);
    }

    .subtitle {
        font-size: clamp(1rem, 4vw, 1.2rem);
    }

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

    .content-section {
        padding: 4rem 1.5rem;
    }

    .info-block {
        padding: 2rem;
    }

    .info-block h3 {
        font-size: 1.5rem;
    }

    .info-block p {
        font-size: 0.95rem;
    }

    .contact-form {
        padding: 2rem;
    }

    .stats-grid {
        grid-template-columns: repeat(2, 1fr);
        gap: 2rem;
        padding: 2rem 0;
    }

    .stat-value {
        font-size: clamp(2rem, 8vw, 3rem);
    }

    .stat-label {
        font-size: 0.75rem;
    }

    .button-frame {
        display: none;
    }

    .cta-button {
        padding: 1rem 2rem;
        font-size: 0.9rem;
    }
}

@media (max-width: 480px) {
    nav {
        padding: 0.75rem 1rem;
    }

    .logo {
        font-size: 1.2rem;
    }

    .nav-links {
        gap: 0.75rem;
        font-size: 0.85rem;
    }

    .hero {
        padding: 5rem 1rem 2rem;
    }

    .logo-container {
        width: 120px;
        height: 120px;
    }

    .stats-grid {
        grid-template-columns: 1fr;
        gap: 1.5rem;
    }

    .feature-card {
        padding: 1.5rem;
    }

    .info-block {
        padding: 1.5rem;
    }
}
