:root {
    --solana-green: #00FFA3;
    --solana-purple: #9945FF;
    --solana-dark: #0F1115;
    --solana-gray: #1C1E26;
    --solana-light: #E8E8E8;
    --gradient-primary: linear-gradient(135deg, var(--solana-purple) 0%, var(--solana-green) 100%);
    --gradient-secondary: linear-gradient(135deg, #14F195 0%, #9945FF 100%);
}

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

body {
    font-family: 'Inter', -apple-system, BlinkMacSystemFont, 'Segoe UI', Roboto, Oxygen, Ubuntu, sans-serif;
    background: var(--solana-dark);
    color: var(--solana-light);
    line-height: 1.6;
    overflow-x: hidden;
}

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

/* Hero Section */
.hero {
    text-align: center;
    padding: 120px 20px 80px;
    background: var(--gradient-primary);
    position: relative;
    overflow: hidden;
}

.hero::before {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    bottom: 0;
    background: radial-gradient(circle at 30% 50%, rgba(255,255,255,0.1) 0%, transparent 50%);
    pointer-events: none;
}

.logo-container {
    display: flex;
    flex-direction: column;
    align-items: center;
    gap: 20px;
    position: relative;
    z-index: 1;
}

.solana-logo {
    width: 80px;
    height: 80px;
    color: white;
    filter: drop-shadow(0 0 20px rgba(255,255,255,0.3));
    animation: float 6s ease-in-out infinite;
}

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

.hero h1 {
    font-size: clamp(2.5rem, 5vw, 4rem);
    font-weight: 700;
    background: linear-gradient(135deg, #FFFFFF 0%, #14F195 100%);
    -webkit-background-clip: text;
    -webkit-text-fill-color: transparent;
    background-clip: text;
    letter-spacing: -0.025em;
}

.hero-subtitle {
    font-size: 1.5rem;
    color: rgba(255,255,255,0.9);
    font-weight: 300;
    letter-spacing: 0.05em;
}

/* Sections */
.section {
    padding: 80px 0;
    position: relative;
}

.section:nth-child(even) {
    background: var(--solana-gray);
}

.section-title {
    font-size: 2.5rem;
    font-weight: 700;
    margin-bottom: 40px;
    display: flex;
    align-items: center;
    gap: 15px;
    color: var(--solana-light);
}

.section-title .icon {
    font-size: 2rem;
    background: var(--gradient-primary);
    -webkit-background-clip: text;
    -webkit-text-fill-color: transparent;
    background-clip: text;
}

.section-content {
    font-size: 1.1rem;
    color: rgba(255,255,255,0.85);
    margin-bottom: 20px;
    line-height: 1.8;
}

.section-content strong {
    background: var(--gradient-primary);
    -webkit-background-clip: text;
    -webkit-text-fill-color: transparent;
    background-clip: text;
    font-weight: 600;
}

/* Introduction Section */
.introduction .section-content {
    max-width: 800px;
    margin-left: auto;
    margin-right: auto;
}

/* Feature Grid */
.feature-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(250px, 1fr));
    gap: 30px;
    margin-top: 40px;
}

.feature-card {
    background: rgba(255,255,255,0.03);
    border: 1px solid rgba(255,255,255,0.1);
    border-radius: 16px;
    padding: 30px;
    transition: all 0.3s ease;
    position: relative;
    overflow: hidden;
}

.feature-card::before {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    height: 3px;
    background: var(--gradient-primary);
    transform: scaleX(0);
    transition: transform 0.3s ease;
}

.feature-card:hover {
    transform: translateY(-5px);
    border-color: rgba(153,69,255,0.3);
    box-shadow: 0 20px 40px rgba(0,0,0,0.3);
}

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

.feature-icon {
    font-size: 2.5rem;
    margin-bottom: 20px;
    opacity: 0.9;
}

.feature-card h3 {
    font-size: 1.3rem;
    font-weight: 600;
    margin-bottom: 15px;
    color: var(--solana-light);
}

.feature-card p {
    color: rgba(255,255,255,0.7);
    line-height: 1.6;
}

/* Steps Container */
.steps-container {
    max-width: 900px;
    margin: 0 auto;
}

.step {
    display: flex;
    gap: 30px;
    margin-bottom: 40px;
    position: relative;
}

.step:last-child {
    margin-bottom: 0;
}

.step::before {
    content: '';
    position: absolute;
    left: 25px;
    top: 60px;
    bottom: -40px;
    width: 2px;
    background: linear-gradient(to bottom, var(--solana-purple), var(--solana-green));
    opacity: 0.3;
}

.step:last-child::before {
    display: none;
}

.step-number {
    flex-shrink: 0;
    width: 50px;
    height: 50px;
    border-radius: 50%;
    background: var(--gradient-primary);
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 1.5rem;
    font-weight: 700;
    color: var(--solana-dark);
    position: relative;
    z-index: 1;
}

.step-content h3 {
    font-size: 1.4rem;
    font-weight: 600;
    margin-bottom: 10px;
    color: var(--solana-light);
}

.step-content p {
    color: rgba(255,255,255,0.8);
    line-height: 1.7;
}

/* Code Block */
.code-block {
    background: var(--solana-dark);
    border: 1px solid rgba(255,255,255,0.1);
    border-radius: 12px;
    overflow: hidden;
    margin-top: 30px;
}

.code-header {
    background: var(--solana-gray);
    padding: 15px 20px;
    font-size: 0.9rem;
    color: rgba(255,255,255,0.6);
    font-weight: 500;
    border-bottom: 1px solid rgba(255,255,255,0.1);
}

.code-block pre {
    margin: 0;
    padding: 20px;
    overflow-x: auto;
}

.code-block code {
    font-family: 'Fira Code', 'Consolas', monospace;
    font-size: 0.9rem;
    line-height: 1.6;
    color: var(--solana-light);
}

/* Try It Section */
.try-it-placeholder {
    background: rgba(255,255,255,0.02);
    border: 2px dashed rgba(255,255,255,0.1);
    border-radius: 16px;
    padding: 60px 40px;
    text-align: center;
    position: relative;
    overflow: hidden;
}

.try-it-placeholder::before {
    content: '';
    position: absolute;
    top: 50%;
    left: 50%;
    transform: translate(-50%, -50%);
    width: 300px;
    height: 300px;
    background: radial-gradient(circle, var(--solana-purple) 0%, transparent 70%);
    opacity: 0.1;
    pointer-events: none;
}

.placeholder-content {
    position: relative;
    z-index: 1;
    max-width: 500px;
    margin: 0 auto;
}

.placeholder-icon {
    margin-bottom: 20px;
    opacity: 0.5;
}

.placeholder-icon svg {
    width: 64px;
    height: 64px;
}

.placeholder-content h3 {
    font-size: 1.8rem;
    font-weight: 600;
    margin-bottom: 15px;
    color: var(--solana-light);
}

.placeholder-content > p {
    color: rgba(255,255,255,0.7);
    margin-bottom: 20px;
}

.demo-features {
    list-style: none;
    padding: 0;
    margin-bottom: 30px;
    text-align: left;
}

.demo-features li {
    padding: 10px 0;
    padding-left: 30px;
    position: relative;
    color: rgba(255,255,255,0.8);
}

.demo-features li::before {
    content: '✓';
    position: absolute;
    left: 0;
    color: var(--solana-green);
    font-weight: 700;
}

.demo-button {
    background: var(--gradient-primary);
    border: none;
    padding: 16px 40px;
    border-radius: 50px;
    font-size: 1.1rem;
    font-weight: 600;
    color: var(--solana-dark);
    cursor: pointer;
    transition: all 0.3s ease;
    width: 100%;
    max-width: 200px;
    margin: 0 auto;
    display: block;
}

.demo-button:disabled {
    opacity: 0.5;
    cursor: not-allowed;
    background: rgba(255,255,255,0.1);
    color: rgba(255,255,255,0.5);
}

.demo-button:not(:disabled):hover {
    transform: translateY(-2px);
    box-shadow: 0 10px 30px rgba(153,69,255,0.3);
}

.demo-note {
    font-size: 0.9rem;
    color: rgba(255,255,255,0.5);
    margin-top: 20px;
}

/* Footer */
.footer {
    background: var(--solana-gray);
    padding: 40px 20px;
    text-align: center;
    margin-top: 80px;
}

.footer-content p {
    color: rgba(255,255,255,0.6);
    margin-bottom: 20px;
}

.footer-links {
    display: flex;
    justify-content: center;
    gap: 20px;
    flex-wrap: wrap;
}

.footer-links a {
    color: var(--solana-green);
    text-decoration: none;
    font-weight: 500;
    transition: color 0.3s ease;
}

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

/* Responsive Design */
@media (max-width: 768px) {
    .hero {
        padding: 80px 20px 60px;
    }

    .solana-logo {
        width: 60px;
        height: 60px;
    }

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

    .hero-subtitle {
        font-size: 1.1rem;
    }

    .section-title {
        font-size: 1.8rem;
    }

    .section {
        padding: 60px 0;
    }

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

    .step {
        flex-direction: column;
        gap: 15px;
    }

    .step::before {
        left: 25px;
        top: 50px;
    }

    .step-number {
        width: 40px;
        height: 40px;
        font-size: 1.2rem;
    }

    .try-it-placeholder {
        padding: 40px 20px;
    }

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

/* Scroll animations */
.section {
    opacity: 0;
    transform: translateY(30px);
    transition: opacity 0.6s ease, transform 0.6s ease;
}

.section.visible {
    opacity: 1;
    transform: translateY(0);
}

/* Smooth scrolling */
html {
    scroll-behavior: smooth;
}

/* Custom scrollbar */
::-webkit-scrollbar {
    width: 10px;
}

::-webkit-scrollbar-track {
    background: var(--solana-dark);
}

::-webkit-scrollbar-thumb {
    background: var(--solana-purple);
    border-radius: 5px;
}

::-webkit-scrollbar-thumb:hover {
    background: var(--solana-green);
}