/* ===== MoltChain Programs Landing Page CSS ===== */
/* Complete standalone CSS - NO IMPORTS */
/* Production-grade styling matching website/explorer consistency */

/* ===== CSS Variables ===== */
:root {
    /* Primary Colors */
    --primary: #FF6B35;
    --primary-dark: #E5501B;
    --primary-light: #FF8C5F;
    --secondary: #004E89;
    --accent: #F77F00;
    
    /* Status Colors */
    --success: #06D6A0;
    --warning: #FFD23F;
    --danger: #E63946;
    --info: #118AB2;
    
    /* Background Colors */
    --bg-dark: #0A0E27;
    --bg-darker: #060812;
    --bg-darkest: #030408;
    --bg-card: #141830;
    --bg-code: #1E1E1E;
    --bg-hover: #1F2544;
    
    /* Text Colors */
    --text-primary: #FFFFFF;
    --text-secondary: #B8C1EC;
    --text-muted: #6B7A99;
    --text-disabled: #4A5568;
    
    /* Border Colors */
    --border: #1F2544;
    --border-light: #2A2F4F;
    --border-focus: #FF6B35;
    
    /* Shadow */
    --shadow: 0 4px 20px rgba(0, 0, 0, 0.3);
    --shadow-lg: 0 10px 40px rgba(0, 0, 0, 0.4);
    --shadow-xl: 0 20px 60px rgba(0, 0, 0, 0.5);
    
    /* Gradients */
    --gradient-primary: linear-gradient(135deg, #FF6B35 0%, #F77F00 100%);
    --gradient-secondary: linear-gradient(135deg, #004E89 0%, #118AB2 100%);
    --gradient-success: linear-gradient(135deg, #06D6A0 0%, #118AB2 100%);
    
    /* Transitions */
    --transition-fast: 0.15s ease;
    --transition-normal: 0.3s ease;
    --transition-slow: 0.5s ease;
}

/* ===== Reset & Base Styles ===== */
* {
    margin: 0;
    padding: 0;
    box-sizing: border-box;
}

html {
    scroll-behavior: smooth;
    scroll-padding-top: 80px;
}

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

code,
pre {
    font-family: 'JetBrains Mono', 'Courier New', monospace;
}

a {
    text-decoration: none;
    color: inherit;
}

ul {
    list-style: none;
}

button {
    font-family: inherit;
    cursor: pointer;
    border: none;
    background: none;
    outline: none;
}

input,
textarea,
select {
    font-family: inherit;
    outline: none;
}

/* ===== Scrollbar Styles ===== */
::-webkit-scrollbar {
    width: 10px;
    height: 10px;
}

::-webkit-scrollbar-track {
    background: var(--bg-darker);
}

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

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

/* ===== Container ===== */
.container {
    max-width: 1800px;
    margin: 0 auto;
    padding: 0 4rem;
}

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

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

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

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

.section-title {
    font-size: 3rem;
    font-weight: 800;
    margin-bottom: 1rem;
    background: var(--gradient-primary);
    -webkit-background-clip: text;
    -webkit-text-fill-color: transparent;
    background-clip: text;
}

.section-subtitle {
    font-size: 1.25rem;
    color: var(--text-secondary);
    max-width: 600px;
    margin: 0 auto;
}

/* ===== Buttons ===== */
.btn {
    display: inline-flex;
    align-items: center;
    gap: 0.5rem;
    padding: 0.75rem 1.5rem;
    border-radius: 8px;
    font-weight: 600;
    font-size: 1rem;
    transition: all 0.3s ease;
    cursor: pointer;
    border: none;
}

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

.btn-small {
    padding: 0.5rem 1rem;
    font-size: 0.875rem;
}

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

.btn-primary:hover {
    transform: translateY(-2px);
    box-shadow: 0 15px 40px rgba(255, 107, 53, 0.4);
    filter: brightness(1.1);
}

.btn-secondary {
    background: var(--bg-card);
    color: var(--text-primary);
    border: 2px solid var(--primary);
}

.btn-secondary:hover {
    background: var(--primary);
    transform: translateY(-2px);
}

.btn-outline {
    background: transparent;
    color: var(--text-primary);
    border: 2px solid var(--border);
}

.btn-outline:hover {
    border-color: var(--primary);
    background: rgba(255, 107, 53, 0.1);
}

/* ===== Navigation ===== */
.nav {
    position: fixed;
    top: 0;
    left: 0;
    right: 0;
    background: rgba(10, 14, 39, 0.95);
    backdrop-filter: blur(10px);
    z-index: 1000;
    border-bottom: 1px solid var(--border);
}

.nav-container {
    max-width: 1800px;
    margin: 0 auto;
    padding: 0 4rem;
    height: 80px;
    display: flex;
    align-items: center;
    justify-content: space-between;
}

.nav-logo {
    display: flex;
    align-items: center;
    gap: 0.75rem;
    font-size: 1.25rem;
    font-weight: 700;
}

.logo-icon {
    width: 48px;
    height: 48px;
    object-fit: contain;
    vertical-align: middle;
}

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

.nav-menu {
    display: flex;
    gap: 2rem;
    list-style: none;
}

.nav-menu a {
    color: var(--text-secondary);
    font-weight: 500;
    transition: var(--transition-fast);
    position: relative;
}

.nav-menu a::after {
    content: '';
    position: absolute;
    bottom: -8px;
    left: 0;
    width: 0;
    height: 2px;
    background: var(--primary);
    transition: var(--transition-fast);
}

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

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

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

.programs-network-select {
    padding: 0.55rem 0.75rem;
    border-radius: 8px;
    border: 1px solid var(--border);
    background: var(--bg-card);
    color: var(--text-secondary);
    font-size: 0.85rem;
    font-weight: 600;
}

.programs-network-select:focus {
    border-color: var(--primary);
}

.nav-toggle {
    display: none;
    flex-direction: column;
    gap: 4px;
    background: transparent;
    border: none;
    cursor: pointer;
}

.nav-toggle span {
    display: block;
    width: 24px;
    height: 2px;
    background: var(--text-primary);
    transition: var(--transition-fast);
}

@media (max-width: 1024px) {
    .nav-container {
        padding: 0 2rem;
    }
    
    .nav-menu {
        position: fixed;
        top: 80px;
        left: 0;
        right: 0;
        background: var(--bg-darker);
        flex-direction: column;
        padding: 2rem;
        gap: 1rem;
        border-bottom: 1px solid var(--border);
        transform: translateY(-100%);
        transition: var(--transition-normal);
        opacity: 0;
        pointer-events: none;
    }
    
    .nav-menu.active {
        transform: translateY(0);
        opacity: 1;
        pointer-events: all;
    }
    
    .nav-toggle {
        display: flex;
    }
}

@media (max-width: 768px) {
    .nav-container {
        padding: 0 1.5rem;
    }
}

/* ===== Hero Section ===== */
.hero {
    min-height: 100vh;
    display: flex;
    align-items: center;
    justify-content: center;
    position: relative;
    padding: 8rem 0 4rem 0;
    overflow: hidden;
}

.hero-background {
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    bottom: 0;
    background: 
        radial-gradient(circle at 20% 30%, rgba(255, 107, 53, 0.15) 0%, transparent 50%),
        radial-gradient(circle at 80% 70%, rgba(247, 127, 0, 0.12) 0%, transparent 50%),
        radial-gradient(circle at 40% 80%, rgba(17, 138, 178, 0.12) 0%, transparent 50%);
    animation: pulse 15s ease-in-out infinite;
}

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

.hero-content {
    position: relative;
    text-align: center;
    max-width: 1200px;
    margin: 0 auto;
}

.hero-title {
    font-size: 3.5rem;
    font-weight: 900;
    line-height: 1.1;
    margin-bottom: 1.5rem;
    background: var(--gradient-primary);
    -webkit-background-clip: text;
    -webkit-text-fill-color: transparent;
    background-clip: text;
}

.hero-subtitle {
    font-size: 1.75rem;
    color: var(--text-secondary);
    margin-bottom: 3rem;
    font-weight: 400;
}

.hero-actions {
    display: flex;
    gap: 1rem;
    justify-content: center;
    flex-wrap: wrap;
    margin-bottom: 4rem;
}

.hero-stats {
    display: grid;
    grid-template-columns: repeat(4, 1fr);
    gap: 2rem;
    max-width: 1000px;
    margin: 0 auto;
}

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

.stat-card:hover {
    border-color: var(--primary);
    transform: translateY(-4px);
    box-shadow: var(--shadow-lg);
}

.stat-value {
    font-size: 2.5rem;
    font-weight: 800;
    color: var(--primary);
    margin-bottom: 0.5rem;
}

.stat-label {
    font-size: 0.9375rem;
    color: var(--text-secondary);
}

@media (max-width: 1024px) {
    .hero-title {
        font-size: 3.5rem;
    }
    
    .hero-subtitle {
        font-size: 1.5rem;
    }
    
    .hero-stats {
        grid-template-columns: repeat(2, 1fr);
    }
}

@media (max-width: 768px) {
    .hero {
        padding: 6rem 0 3rem 0;
    }
    
    .hero-title {
        font-size: 2.5rem;
    }
    
    .hero-subtitle {
        font-size: 1.25rem;
    }
    
    .hero-stats {
        grid-template-columns: 1fr;
        gap: 1rem;
    }
    
    .stat-card {
        padding: 1.5rem;
    }
    
    .stat-value {
        font-size: 2rem;
    }
}

/* ===== Comparison Grid ===== */
.comparison-grid {
    display: grid;
    grid-template-columns: repeat(3, 1fr);
    gap: 2rem;
    margin-top: 3rem;
}

.comparison-card {
    padding: 2rem;
    background: var(--bg-card);
    border: 2px solid var(--border);
    border-radius: 12px;
    transition: var(--transition-normal);
    position: relative;
}

.comparison-card:hover {
    transform: translateY(-4px);
    box-shadow: var(--shadow-lg);
}

.comparison-card-highlight {
    border-color: var(--primary);
    background: linear-gradient(135deg, rgba(255, 107, 53, 0.1) 0%, rgba(247, 127, 0, 0.05) 100%);
}

.comparison-badge {
    position: absolute;
    top: -12px;
    right: 20px;
    padding: 0.375rem 1rem;
    background: var(--gradient-primary);
    color: white;
    border-radius: 20px;
    font-size: 0.8125rem;
    font-weight: 600;
    text-transform: uppercase;
    letter-spacing: 0.5px;
}

.comparison-header {
    display: flex;
    align-items: center;
    gap: 1rem;
    margin-bottom: 2rem;
    padding-bottom: 1rem;
    border-bottom: 1px solid var(--border);
}

.comparison-icon {
    width: 48px;
    height: 48px;
    object-fit: contain;
}

.comparison-header h3 {
    font-size: 1.5rem;
    font-weight: 700;
}

.comparison-metrics {
    display: flex;
    flex-direction: column;
    gap: 1rem;
}

.metric-row {
    display: flex;
    justify-content: space-between;
    align-items: center;
    padding: 0.75rem 0;
    border-bottom: 1px solid rgba(255, 255, 255, 0.05);
}

.metric-row:last-child {
    border-bottom: none;
}

.metric-label {
    font-size: 0.9375rem;
    color: var(--text-secondary);
}

.metric-value {
    font-size: 1rem;
    font-weight: 600;
    color: var(--text-primary);
}

.metric-value.highlight {
    color: var(--primary);
    font-weight: 700;
}

@media (max-width: 1024px) {
    .comparison-grid {
        grid-template-columns: 1fr;
        gap: 1.5rem;
    }
}

/* ===== Quick Start Section ===== */
.quickstart-steps {
    display: grid;
    grid-template-columns: repeat(5, 1fr);
    gap: 2rem;
    margin-top: 3rem;
}

.step-card {
    padding: 2rem;
    background: var(--bg-card);
    border: 1px solid var(--border);
    border-radius: 12px;
    text-align: center;
    transition: var(--transition-normal);
    position: relative;
}

.step-card::after {
    content: '→';
    position: absolute;
    right: -2rem;
    top: 50%;
    transform: translateY(-50%);
    font-size: 2rem;
    color: var(--primary);
    opacity: 0.3;
}

.step-card:last-child::after {
    display: none;
}

.step-card:hover {
    border-color: var(--primary);
    transform: translateY(-4px);
    box-shadow: var(--shadow-lg);
}

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

.step-card h3 {
    font-size: 1.125rem;
    font-weight: 700;
    margin-bottom: 0.75rem;
    color: var(--text-primary);
}

.step-card p {
    font-size: 0.9375rem;
    color: var(--text-secondary);
    line-height: 1.5;
}

@media (max-width: 1400px) {
    .quickstart-steps {
        grid-template-columns: repeat(3, 1fr);
    }
    
    .step-card:nth-child(3)::after {
        display: none;
    }
}

@media (max-width: 768px) {
    .quickstart-steps {
        grid-template-columns: 1fr;
        gap: 1rem;
    }
    
    .step-card::after {
        display: none;
    }
}

/* ===== Code Examples (from website) ===== */
.code-example {
    margin: 1.5rem 0;
}

.code-header {
    display: flex;
    justify-content: space-between;
    align-items: center;
    background: var(--bg-darker);
    padding: 0.75rem 1rem;
    border-radius: 8px 8px 0 0;
    border: 1px solid var(--border);
    border-bottom: none;
}

.code-title {
    color: var(--text-muted);
    font-size: 0.85rem;
    font-family: 'JetBrains Mono', monospace;
}

.code-content {
    background: var(--bg-darker);
    padding: 1.5rem;
    border-radius: 0 0 8px 8px;
    border: 1px solid var(--border);
    overflow-x: auto;
}

.code-content pre {
    margin: 0;
}

.code-content code {
    color: var(--text-secondary);
    font-size: 0.9rem;
    line-height: 1.6;
    display: block;
}

.copy-btn {
    padding: 0.375rem 0.75rem;
    background: transparent;
    color: var(--text-secondary);
    border: 1px solid var(--border);
    border-radius: 4px;
    font-size: 0.8125rem;
    cursor: pointer;
    transition: var(--transition-fast);
    display: inline-flex;
    align-items: center;
    gap: 0.5rem;
}

.copy-btn:hover {
    background: var(--bg-card);
    border-color: var(--primary);
    color: var(--primary);
}

.copy-btn.copied {
    background: var(--success);
    color: white;
    border-color: var(--success);
}

.copy-btn i {
    font-size: 1rem;
}

pre {
    margin: 0;
    font-family: 'JetBrains Mono', monospace;
}

code {
    font-family: 'JetBrains Mono', monospace;
}

/* ===== Examples Grid ===== */
.examples-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(300px, 1fr));
    gap: 2rem;
    margin-top: 3rem;
}

.example-card {
    padding: 2rem;
    background: var(--bg-card);
    border: 1px solid var(--border);
    border-radius: 12px;
    transition: var(--transition-normal);
    cursor: pointer;
}

.example-card:hover {
    border-color: var(--primary);
    transform: translateY(-4px);
    box-shadow: var(--shadow-lg);
}

.example-header {
    display: flex;
    align-items: center;
    gap: 1rem;
    margin-bottom: 1rem;
}

.example-icon {
    font-size: 2rem;
}

.example-card h3 {
    font-size: 1.25rem;
    font-weight: 700;
    color: var(--text-primary);
}

.example-description {
    font-size: 0.9375rem;
    color: var(--text-secondary);
    margin-bottom: 1.5rem;
    line-height: 1.6;
}

.example-stats {
    display: flex;
    gap: 1.5rem;
    font-size: 0.875rem;
    color: var(--text-muted);
}

.example-stat {
    display: flex;
    align-items: center;
    gap: 0.375rem;
}

/* ===== Language Tabs ===== */
.language-tabs {
    display: flex;
    gap: 1rem;
    margin-bottom: 2rem;
    border-bottom: 2px solid var(--border);
    flex-wrap: wrap;
}

.lang-tab {
    padding: 1rem 2rem;
    background: transparent;
    color: var(--text-secondary);
    border: none;
    border-bottom: 2px solid transparent;
    font-size: 1rem;
    font-weight: 600;
    cursor: pointer;
    transition: var(--transition-fast);
    margin-bottom: -2px;
}

.lang-tab:hover {
    color: var(--text-primary);
}

.lang-tab.active {
    color: var(--primary);
    border-bottom-color: var(--primary);
}

.lang-content {
    display: none;
}

.lang-content.active {
    display: block;
}

/* ===== Features Grid ===== */
.features-grid {
    display: grid;
    grid-template-columns: repeat(3, 1fr);
    gap: 2rem;
    margin-top: 3rem;
}

.feature-card {
    padding: 2rem;
    background: var(--bg-card);
    border: 1px solid var(--border);
    border-radius: 12px;
    transition: var(--transition-normal);
}

.feature-card:hover {
    border-color: var(--primary);
    transform: translateY(-4px);
    box-shadow: var(--shadow-lg);
}

.feature-icon {
    width: 60px;
    height: 60px;
    margin-bottom: 1.5rem;
    background: var(--gradient-primary);
    border-radius: 12px;
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 1.75rem;
}

.feature-card h3 {
    font-size: 1.25rem;
    font-weight: 700;
    margin-bottom: 0.75rem;
    color: var(--text-primary);
}

.feature-card p {
    font-size: 0.9375rem;
    color: var(--text-secondary);
    line-height: 1.6;
}

@media (max-width: 1024px) {
    .features-grid {
        grid-template-columns: repeat(2, 1fr);
    }
}

@media (max-width: 768px) {
    .features-grid {
        grid-template-columns: 1fr;
    }
}

/* ===== Playground Preview ===== */
.playground-preview {
    margin-top: 4rem;
    padding: 3rem;
    background: var(--bg-card);
    border: 2px solid var(--border);
    border-radius: 16px;
    text-align: center;
}

.playground-preview h3 {
    font-size: 2rem;
    font-weight: 800;
    margin-bottom: 1rem;
    background: var(--gradient-primary);
    -webkit-background-clip: text;
    -webkit-text-fill-color: transparent;
    background-clip: text;
}

.playground-preview p {
    font-size: 1.125rem;
    color: var(--text-secondary);
    margin-bottom: 2rem;
    max-width: 600px;
    margin-left: auto;
    margin-right: auto;
}

/* ===== Docs Hub ===== */
.docs-grid {
    display: grid;
    grid-template-columns: repeat(2, 1fr);
    gap: 2rem;
    margin-top: 3rem;
}

.doc-category {
    padding: 2rem;
    background: var(--bg-card);
    border: 1px solid var(--border);
    border-radius: 12px;
    transition: var(--transition-normal);
}

.doc-category:hover {
    border-color: var(--primary);
    transform: translateY(-4px);
    box-shadow: var(--shadow-lg);
}

.doc-category h3 {
    font-size: 1.5rem;
    font-weight: 700;
    margin-bottom: 1.5rem;
    color: var(--text-primary);
    display: flex;
    align-items: center;
    gap: 0.75rem;
}

.doc-category h3 i {
    color: var(--primary);
}

.doc-links {
    display: flex;
    flex-direction: column;
    gap: 0.75rem;
}

.doc-link {
    padding: 0.75rem;
    background: var(--bg-darker);
    border: 1px solid var(--border);
    border-radius: 6px;
    color: var(--text-secondary);
    transition: var(--transition-fast);
    display: flex;
    align-items: center;
    gap: 0.5rem;
}

.doc-link:hover {
    background: var(--bg-hover);
    color: var(--primary);
    border-color: var(--primary);
}

.doc-link i {
    font-size: 0.875rem;
}

@media (max-width: 768px) {
    .docs-grid {
        grid-template-columns: 1fr;
    }
}

/* ===== Community Section ===== */
.community-cards {
    display: grid;
    grid-template-columns: repeat(3, 1fr);
    gap: 2rem;
    margin-top: 3rem;
}

.community-card {
    padding: 2rem;
    background: var(--bg-card);
    border: 1px solid var(--border);
    border-radius: 12px;
    text-align: center;
    transition: var(--transition-normal);
}

.community-card:hover {
    border-color: var(--primary);
    transform: translateY(-4px);
    box-shadow: var(--shadow-lg);
}

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

.community-card h3 {
    font-size: 1.25rem;
    font-weight: 700;
    margin-bottom: 0.75rem;
    color: var(--text-primary);
}

.community-card p {
    font-size: 0.9375rem;
    color: var(--text-secondary);
    margin-bottom: 1.5rem;
}

@media (max-width: 1024px) {
    .community-cards {
        grid-template-columns: 1fr;
    }
}

/* ===== Footer ===== */
.footer {
    background: var(--bg-darker);
    border-top: 1px solid var(--border);
    padding: 4rem 0 2rem 0;
    margin-top: 6rem;
}

.footer-content {
    display: grid;
    grid-template-columns: repeat(4, 1fr);
    gap: 3rem;
    margin-bottom: 3rem;
}

.footer-section h4 {
    font-size: 1.125rem;
    font-weight: 700;
    margin-bottom: 1.5rem;
    color: var(--text-primary);
}

.footer-section ul {
    display: flex;
    flex-direction: column;
    gap: 0.75rem;
}

.footer-section a {
    color: var(--text-secondary);
    transition: var(--transition-fast);
}

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

.footer-bottom {
    text-align: center;
    padding-top: 2rem;
    border-top: 1px solid var(--border);
    color: var(--text-muted);
    font-size: 0.875rem;
}

@media (max-width: 1024px) {
    .footer-content {
        grid-template-columns: repeat(2, 1fr);
    }
}

@media (max-width: 768px) {
    .footer-content {
        grid-template-columns: 1fr;
    }
}

/* ===== Utility Classes ===== */
.gradient-text {
    background: var(--gradient-primary);
    -webkit-background-clip: text;
    -webkit-text-fill-color: transparent;
    background-clip: text;
}

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

.mt-1 { margin-top: 0.5rem; }
.mt-2 { margin-top: 1rem; }
.mt-3 { margin-top: 1.5rem; }
.mt-4 { margin-top: 2rem; }

.mb-1 { margin-bottom: 0.5rem; }
.mb-2 { margin-bottom: 1rem; }
.mb-3 { margin-bottom: 1.5rem; }
.mb-4 { margin-bottom: 2rem; }

.hidden {
    display: none;
}

/* ===== Animations ===== */
@keyframes fadeIn {
    from {
        opacity: 0;
        transform: translateY(20px);
    }
    to {
        opacity: 1;
        transform: translateY(0);
    }
}

.fade-in {
    animation: fadeIn 0.6s ease-out;
}

/* ===== Loading State ===== */
.loading {
    display: inline-block;
    width: 20px;
    height: 20px;
    border: 2px solid var(--border);
    border-top-color: var(--primary);
    border-radius: 50%;
    animation: spin 0.8s linear infinite;
}

@keyframes spin {
    to { transform: rotate(360deg); }
}

/* ===== WIZARD TABS (Deploy Section - from website) ===== */
.wizard-tabs {
    display: flex;
    gap: 0;
    margin-bottom: 3rem;
    background: var(--bg-card);
    border: 1px solid var(--border);
    border-radius: 12px;
    overflow: hidden;
}

.wizard-tab {
    flex: 1;
    background: transparent;
    border: none;
    border-right: 1px solid var(--border);
    padding: 1.5rem 1rem;
    cursor: pointer;
    transition: all 0.3s ease;
    display: flex;
    flex-direction: column;
    align-items: center;
    gap: 0.5rem;
    position: relative;
    color: var(--text-primary);
}

.wizard-tab:last-child {
    border-right: none;
}

.wizard-tab:hover {
    background: rgba(255, 107, 53, 0.05);
}

.wizard-tab.active {
    background: var(--gradient-primary);
    color: white;
}

.wizard-number {
    width: 36px;
    height: 36px;
    border-radius: 50%;
    border: 2px solid var(--border);
    display: flex;
    align-items: center;
    justify-content: center;
    font-weight: 800;
    font-size: 1.1rem;
    transition: all 0.3s ease;
    color: var(--text-primary);
}

.wizard-tab.active .wizard-number {
    border-color: white;
    background: rgba(255, 255, 255, 0.2);
    color: white;
}

.wizard-label {
    font-size: 0.9rem;
    font-weight: 600;
    text-align: center;
    color: var(--text-primary);
}

.wizard-tab.active .wizard-label {
    color: white;
}

.wizard-content {
    position: relative;
}

.wizard-step {
    display: none;
}

.wizard-step.active {
    display: block;
    animation: fadeInUp 0.4s ease;
}

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

.wizard-step h3 {
    font-size: 2rem;
    color: var(--text-primary);
    margin-bottom: 2rem;
}

/* ===== CTA Banner ===== */
.cta-banner {
    background: var(--bg-card);
    border: 2px solid var(--primary);
    border-radius: 16px;
    padding: 3rem;
    margin-top: 4rem;
    text-align: center;
}

.cta-banner h3 {
    font-size: 2rem;
    font-weight: 800;
    color: var(--text-primary);
    margin-bottom: 1rem;
}

.cta-banner p {
    font-size: 1.125rem;
    color: var(--text-secondary);
    margin-bottom: 2rem;
    max-width: 600px;
    margin-left: auto;
    margin-right: auto;
}

/* ===== Examples Grid (4 columns) ===== */
.examples-grid {
    display: grid;
    grid-template-columns: repeat(4, 1fr);
    gap: 2rem;
    margin-top: 3rem;
}

.example-card {
    padding: 2rem;
    background: var(--bg-card);
    border: 1px solid var(--border);
    border-radius: 12px;
    transition: var(--transition-normal);
    display: flex;
    flex-direction: column;
}

.example-card:hover {
    border-color: var(--primary);
    transform: translateY(-4px);
    box-shadow: var(--shadow-lg);
}

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

.example-icon {
    font-size: 2rem;
}

.example-badge {
    background: var(--bg-darker);
    border: 1px solid var(--border);
    padding: 0.25rem 0.75rem;
    border-radius: 6px;
    font-size: 0.8125rem;
    font-family: 'JetBrains Mono', monospace;
    color: var(--text-secondary);
}

.example-card h3 {
    font-size: 1.25rem;
    font-weight: 700;
    color: var(--text-primary);
    margin-bottom: 0.75rem;
}

.example-description {
    font-size: 0.9375rem;
    color: var(--text-secondary);
    margin-bottom: 1rem;
    line-height: 1.6;
    flex-grow: 1;
}

.example-features {
    display: flex;
    flex-wrap: wrap;
    gap: 0.5rem;
    margin-bottom: 1rem;
}

.feature-tag {
    background: rgba(255, 107, 53, 0.1);
    border: 1px solid rgba(255, 107, 53, 0.3);
    color: var(--primary);
    padding: 0.25rem 0.75rem;
    border-radius: 6px;
    font-size: 0.8125rem;
    font-weight: 600;
}

.example-stats {
    display: flex;
    gap: 1.5rem;
    font-size: 0.875rem;
    color: var(--text-muted);
    margin-bottom: 1.5rem;
    padding-top: 1rem;
    border-top: 1px solid var(--border);
}

.example-stat {
    display: flex;
    align-items: center;
    gap: 0.375rem;
}

.example-actions {
    display: flex;
    gap: 0.75rem;
}

.example-actions .btn {
    flex: 1;
}

/* ===== Language Tabs ===== */
.language-tabs {
    display: flex;
    gap: 1rem;
    margin-bottom: 2rem;
    border-bottom: 2px solid var(--border);
    flex-wrap: wrap;
    justify-content: center;
}

.language-tab {
    padding: 1rem 2rem;
    background: transparent;
    color: var(--text-secondary);
    border: none;
    border-bottom: 3px solid transparent;
    font-size: 1.125rem;
    font-weight: 600;
    cursor: pointer;
    transition: var(--transition-fast);
    margin-bottom: -2px;
    display: flex;
    align-items: center;
    gap: 0.5rem;
}

.language-tab:hover {
    color: var(--text-primary);
    background: rgba(255, 107, 53, 0.05);
}

.language-tab.active {
    color: var(--primary);
    border-bottom-color: var(--primary);
    background: rgba(255, 107, 53, 0.1);
}

.language-content {
    display: none !important;
}

.language-content.active {
    display: block !important;
    animation: fadeInUp 0.4s ease;
}

.language-info {
    background: var(--bg-card);
    border: 1px solid var(--border);
    border-radius: 12px;
    padding: 2rem;
    margin-top: 2rem;
}

.language-info h4 {
    font-size: 1.25rem;
    font-weight: 700;
    color: var(--text-primary);
    margin-bottom: 1rem;
}

.language-info ul {
    list-style: none;
    display: flex;
    flex-direction: column;
    gap: 0.75rem;
}

.language-info li {
    display: flex;
    align-items: center;
    gap: 0.75rem;
    color: var(--text-secondary);
    font-size: 1rem;
}

.language-info li i {
    color: var(--primary);
    font-size: 1.125rem;
}

/* ===== Responsive: Examples Grid ===== */
@media (max-width: 1400px) {
    .examples-grid {
        grid-template-columns: repeat(3, 1fr);
    }
}

@media (max-width: 1024px) {
    .examples-grid {
        grid-template-columns: repeat(2, 1fr);
    }
    
    .wizard-tabs {
        flex-wrap: wrap;
    }
    
    .wizard-tab {
        flex: 0 0 calc(50% - 0.5rem);
        border-right: none;
        border-bottom: 1px solid var(--border);
    }
}

@media (max-width: 768px) {
    .examples-grid {
        grid-template-columns: 1fr;
    }
    
    .wizard-tabs {
        flex-direction: column;
    }
    
    .wizard-tab {
        flex: 1;
        border-bottom: 1px solid var(--border);
    }
    
    .language-tabs {
        flex-direction: column;
        gap: 0.5rem;
        border-bottom: none;
    }
    
    .language-tab {
        border-bottom: 2px solid var(--border);
        border-radius: 8px;
        margin-bottom: 0;
    }
    
    .language-tab.active {
        border-bottom-color: var(--primary);
    }
}

/* ===== Playground Preview Section ===== */
.playground-preview {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 4rem;
    margin-top: 3rem;
    align-items: center;
}

.preview-features {
    display: flex;
    flex-direction: column;
    gap: 2rem;
}

.preview-feature {
    display: flex;
    gap: 1rem;
    align-items: flex-start;
}

.preview-feature i {
    color: var(--primary);
    font-size: 1.5rem;
    flex-shrink: 0;
    margin-top: 0.25rem;
}

.preview-feature strong {
    display: block;
    font-size: 1.125rem;
    font-weight: 700;
    color: var(--text-primary);
    margin-bottom: 0.5rem;
}

.preview-feature p {
    color: var(--text-secondary);
    font-size: 0.9375rem;
    line-height: 1.6;
}

.preview-screenshot {
    background: var(--bg-card);
    border: 2px solid var(--border);
    border-radius: 16px;
    padding: 3rem;
    display: flex;
    align-items: center;
    justify-content: center;
    min-height: 400px;
}

.screenshot-placeholder {
    text-align: center;
    color: var(--text-muted);
}

.screenshot-placeholder i {
    font-size: 5rem;
    margin-bottom: 1rem;
    opacity: 0.3;
}

.screenshot-placeholder p {
    font-size: 1.125rem;
}

@media (max-width: 1024px) {
    .playground-preview {
        grid-template-columns: 1fr;
        gap: 2rem;
    }
}

/* ===== Documentation Section ===== */
.docs-grid {
    display: grid;
    grid-template-columns: repeat(3, 1fr);
    gap: 2rem;
    margin-top: 3rem;
}

.doc-card {
    padding: 2.5rem 2rem;
    background: var(--bg-card);
    border: 1px solid var(--border);
    border-radius: 12px;
    transition: var(--transition-normal);
    display: flex;
    flex-direction: column;
    align-items: flex-start;
    text-decoration: none;
}

.doc-card:hover {
    border-color: var(--primary);
    transform: translateY(-4px);
    box-shadow: var(--shadow-lg);
}

.doc-icon {
    width: 60px;
    height: 60px;
    background: var(--gradient-primary);
    border-radius: 12px;
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 1.75rem;
    color: white;
    margin-bottom: 1.5rem;
}

.doc-card h3 {
    font-size: 1.25rem;
    font-weight: 700;
    color: var(--text-primary);
    margin-bottom: 0.75rem;
}

.doc-card p {
    color: var(--text-secondary);
    font-size: 0.9375rem;
    line-height: 1.6;
}

@media (max-width: 1024px) {
    .docs-grid {
        grid-template-columns: repeat(2, 1fr);
    }
}

@media (max-width: 768px) {
    .docs-grid {
        grid-template-columns: 1fr;
    }
}

/* ===== Community Section (Fix) ===== */
.community-grid {
    display: grid;
    grid-template-columns: repeat(4, 1fr);
    gap: 2rem;
    margin-top: 3rem;
}

.community-card {
    padding: 2.5rem 2rem;
    background: var(--bg-card);
    border: 1px solid var(--border);
    border-radius: 12px;
    text-align: center;
    transition: var(--transition-normal);
    display: flex;
    flex-direction: column;
    align-items: center;
    text-decoration: none;
}

.community-card:hover {
    transform: translateY(-8px);
    border-color: var(--primary);
    box-shadow: 0 20px 60px rgba(255, 107, 53, 0.25), 0 0 20px rgba(255, 107, 53, 0.1);
}

.community-card:hover .community-icon {
    transform: scale(1.1);
    filter: drop-shadow(0 0 10px rgba(255, 107, 53, 0.5));
}

.community-icon {
    font-size: 3.5rem;
    margin-bottom: 1.5rem;
    transition: var(--transition-normal);
}

.community-card h3 {
    font-size: 1.5rem;
    font-weight: 700;
    color: var(--text-primary);
    margin-bottom: 0.75rem;
}

.community-card p {
    color: var(--text-secondary);
    font-size: 0.9375rem;
    line-height: 1.6;
    margin-bottom: 1.5rem;
    flex-grow: 1;
}

.community-link {
    color: var(--primary);
    font-weight: 600;
    font-size: 0.9375rem;
    display: flex;
    align-items: center;
    gap: 0.5rem;
}

@media (max-width: 1024px) {
    .community-grid {
        grid-template-columns: repeat(2, 1fr);
    }
}

@media (max-width: 768px) {
    .community-grid {
        grid-template-columns: 1fr;
    }
}

/* ===== Grants Banner ===== */
.grants-banner {
    background: var(--gradient-primary);
    border-radius: 16px;
    padding: 3rem;
    margin-top: 4rem;
}

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

.grants-icon {
    width: 80px;
    height: 80px;
    background: rgba(255, 255, 255, 0.2);
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 2.5rem;
    color: white;
    flex-shrink: 0;
}

.grants-text {
    flex: 1;
    min-width: 300px;
}

.grants-text h3 {
    font-size: 1.75rem;
    font-weight: 800;
    color: white;
    margin-bottom: 0.5rem;
}

.grants-text p {
    font-size: 1.125rem;
    color: rgba(255, 255, 255, 0.9);
}

.grants-banner .btn {
    background: white;
    color: var(--primary);
    flex-shrink: 0;
}

.grants-banner .btn:hover {
    background: rgba(255, 255, 255, 0.9);
    transform: translateY(-2px);
}

@media (max-width: 768px) {
    .grants-content {
        flex-direction: column;
        text-align: center;
    }
    
    .grants-text {
        min-width: auto;
    }
}

/* ===== Section Alt Background ===== */
.section-alt {
    background: rgba(255, 107, 53, 0.02);
}

/* ===== Footer (from website) ===== */
.footer {
    background: var(--bg-darker);
    padding: 4rem 0 2rem;
    border-top: 1px solid var(--border);
}

.footer-grid {
    display: grid;
    grid-template-columns: 2fr 1fr 1fr 1fr;
    gap: 3rem;
    margin-bottom: 3rem;
}

.footer-col {
    display: flex;
    flex-direction: column;
    gap: 1rem;
}

.footer-col h4 {
    color: var(--text-primary);
    font-size: 1.1rem;
    font-weight: 700;
    margin-bottom: 0.5rem;
}

.footer-links {
    list-style: none;
    display: flex;
    flex-direction: column;
    gap: 0.75rem;
}

.footer-links a {
    color: var(--text-secondary);
    transition: color 0.3s ease;
}

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

.footer-desc {
    color: var(--text-secondary);
    line-height: 1.7;
    max-width: 300px;
}

.footer-logo {
    display: flex;
    align-items: center;
    gap: 0.75rem;
    font-size: 1.5rem;
    font-weight: 700;
    margin-bottom: 1rem;
}

.footer-logo .logo-icon {
    width: 48px;
    height: 48px;
}

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

.footer-bottom {
    text-align: center;
    padding-top: 2rem;
    border-top: 1px solid var(--border);
    color: var(--text-muted);
}

.footer-bottom p {
    margin: 0.5rem 0;
}

@media (max-width: 1024px) {
    .footer-grid {
        grid-template-columns: repeat(2, 1fr);
    }
}

@media (max-width: 768px) {
    .footer-grid {
        grid-template-columns: 1fr;
    }
}
