/* ========================================
   RESET & BASE STYLES
   ======================================== */
* {
    margin: 0;
    padding: 0;
    box-sizing: border-box;
}

:root {
    /* Modern Light Green Color Palette */
    --green-300: #86EFAC;
    --green-400: #4ADE80;
    --green-500: #22C55E;
    --green-600: #16A34A;
    --green-700: #15803D;
    --green-800: #166534;
    --emerald-400: #34D399;
    --emerald-500: #10B981;
    --emerald-600: #059669;
    --teal-500: #14B8A6;
    --teal-600: #0D9488;
    
    /* Neutral Colors */
    --gray-50: #F9FAFB;
    --gray-100: #F3F4F6;
    --gray-200: #E5E7EB;
    --gray-300: #D1D5DB;
    --gray-400: #9CA3AF;
    --gray-500: #6B7280;
    --gray-600: #4B5563;
    --gray-700: #374151;
    --gray-800: #1F2937;
    --gray-900: #111827;
    
    /* Typography */
    --font-display: 'Space Grotesk', sans-serif;
    --font-body: 'Inter', sans-serif;
    
    /* Spacing */
    --section-padding: 120px;
    --container-width: 1280px;
    
    /* Gradients */
    --gradient-primary: linear-gradient(135deg, #22C55E 0%, #10B981 100%);
    --gradient-secondary: linear-gradient(135deg, #10B981 0%, #14B8A6 100%);
    --gradient-accent: linear-gradient(135deg, #4ADE80 0%, #34D399 100%);
}

html {
    scroll-behavior: smooth;
}

body {
    font-family: var(--font-body);
    color: var(--gray-800);
    line-height: 1.6;
    background: #ffffff;
    overflow-x: hidden;
}

::selection {
    background: rgba(34, 197, 94, 0.2);
    color: var(--green-700);
}

.container {
    max-width: var(--container-width);
    margin: 0 auto;
    padding: 0 32px;
}

/* ========================================
   NAVIGATION
   ======================================== */
.navbar {
    position: fixed;
    top: 0;
    left: 0;
    right: 0;
    background: rgba(255, 255, 255, 0.8);
    backdrop-filter: blur(20px);
    border-bottom: 1px solid rgba(0, 0, 0, 0.05);
    z-index: 1000;
    padding: 20px 0;
    transition: all 0.3s ease;
}

.navbar.scrolled {
    padding: 16px 0;
    box-shadow: 0 4px 24px rgba(0, 0, 0, 0.06);
}

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

.logo {
    display: flex;
    align-items: center;
    gap: 12px;
    font-family: var(--font-display);
    font-size: 24px;
    font-weight: 700;
    background: var(--gradient-primary);
    -webkit-background-clip: text;
    -webkit-text-fill-color: transparent;
    background-clip: text;
    text-decoration: none;
    cursor: pointer;
}

.nav-links {
    display: flex;
    align-items: center;
    gap: 40px;
}

.nav-links a {
    text-decoration: none;
    color: var(--gray-700);
    font-weight: 500;
    font-size: 15px;
    transition: color 0.2s;
    position: relative;
}

.nav-links a:not(.btn):hover {
    color: var(--green-600);
}

.nav-links a:not(.btn)::after {
    content: '';
    position: absolute;
    bottom: -4px;
    left: 0;
    width: 0;
    height: 2px;
    background: var(--gradient-primary);
    transition: width 0.3s ease;
}

.nav-links a:not(.btn):hover::after {
    width: 100%;
}

.lang-switcher {
    display: flex;
    align-items: center;
    gap: 4px;
    background: var(--gray-100);
    border: none;
    border-radius: 8px;
    padding: 8px 12px;
    cursor: pointer;
    font-family: var(--font-body);
    font-weight: 600;
    font-size: 13px;
    transition: all 0.2s;
}

.lang-switcher:hover {
    background: var(--gray-200);
}

.lang-option {
    color: var(--gray-500);
    transition: color 0.2s;
}

.lang-option.active {
    color: var(--green-600);
}

.lang-separator {
    color: var(--gray-400);
}

.mobile-menu-btn {
    display: none;
    background: none;
    border: none;
    cursor: pointer;
    color: var(--gray-700);
}

/* ========================================
   BUTTONS
   ======================================== */
.btn {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    gap: 10px;
    padding: 14px 28px;
    border-radius: 12px;
    font-weight: 600;
    font-size: 15px;
    text-decoration: none;
    transition: all 0.3s cubic-bezier(0.4, 0, 0.2, 1);
    cursor: pointer;
    border: none;
    font-family: var(--font-body);
    position: relative;
    overflow: hidden;
}

.btn-large {
    padding: 18px 36px;
    font-size: 16px;
    border-radius: 14px;
}

.btn-primary {
    background: var(--gradient-primary);
    color: white;
    box-shadow: 0 4px 16px rgba(34, 197, 94, 0.4);
}

.btn-primary:hover {
    transform: translateY(-2px);
    box-shadow: 0 8px 24px rgba(34, 197, 94, 0.5);
}

.btn-primary:active {
    transform: translateY(0);
}

.btn-secondary {
    background: white;
    color: var(--green-600);
    border: 2px solid var(--gray-200);
}

.btn-secondary:hover {
    background: var(--gray-50);
    border-color: var(--green-300);
}

.btn-outline {
    background: transparent;
    color: var(--green-600);
    border: 2px solid var(--green-300);
}

.btn-outline:hover {
    background: var(--green-600);
    color: white;
    border-color: var(--green-600);
}

/* ========================================
   HERO SECTION
   ======================================== */
.hero {
    position: relative;
    padding: 180px 0 140px;
    overflow: hidden;
    min-height: 100vh;
    display: flex;
    align-items: center;
}

.hero-bg {
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    bottom: 0;
    z-index: 0;
    overflow: hidden;
}

.gradient-orb {
    position: absolute;
    border-radius: 50%;
    filter: blur(100px);
    opacity: 0.6;
    animation: float 20s infinite ease-in-out;
}

.orb-1 {
    width: 600px;
    height: 600px;
    background: radial-gradient(circle, rgba(34, 197, 94, 0.4) 0%, transparent 70%);
    top: -300px;
    right: -100px;
    animation-delay: 0s;
}

.orb-2 {
    width: 500px;
    height: 500px;
    background: radial-gradient(circle, rgba(16, 185, 129, 0.4) 0%, transparent 70%);
    bottom: -200px;
    left: -100px;
    animation-delay: 7s;
}

.orb-3 {
    width: 400px;
    height: 400px;
    background: radial-gradient(circle, rgba(74, 222, 128, 0.3) 0%, transparent 70%);
    top: 40%;
    left: 40%;
    animation-delay: 14s;
}

@keyframes float {
    0%, 100% {
        transform: translate(0, 0) scale(1);
    }
    33% {
        transform: translate(50px, -50px) scale(1.1);
    }
    66% {
        transform: translate(-30px, 30px) scale(0.9);
    }
}

.grid-pattern {
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    bottom: 0;
    background-image: 
        linear-gradient(rgba(34, 197, 94, 0.03) 1px, transparent 1px),
        linear-gradient(90deg, rgba(34, 197, 94, 0.03) 1px, transparent 1px);
    background-size: 50px 50px;
}

.hero-content {
    position: relative;
    z-index: 2;
    text-align: center;
    max-width: 1000px;
    margin: 0 auto;
}

.hero-badge {
    display: inline-flex;
    align-items: center;
    gap: 10px;
    padding: 10px 24px;
    background: rgba(255, 255, 255, 0.9);
    backdrop-filter: blur(10px);
    border: 1px solid rgba(34, 197, 94, 0.2);
    border-radius: 50px;
    color: var(--green-700);
    font-size: 14px;
    font-weight: 600;
    margin-bottom: 32px;
    animation: fadeInDown 0.8s ease 0.2s backwards;
}

.badge-dot {
    width: 8px;
    height: 8px;
    background: var(--gradient-primary);
    border-radius: 50%;
    animation: pulse 2s ease-in-out infinite;
}

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

.hero-title {
    font-family: var(--font-display);
    font-size: 80px;
    font-weight: 700;
    line-height: 1.1;
    margin-bottom: 28px;
    color: var(--gray-900);
    letter-spacing: -0.03em;
    animation: fadeInUp 0.8s ease 0.3s backwards;
}

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

.hero-description {
    font-size: 22px;
    color: var(--gray-600);
    margin-bottom: 48px;
    line-height: 1.7;
    max-width: 800px;
    margin-left: auto;
    margin-right: auto;
    animation: fadeInUp 0.8s ease 0.4s backwards;
}

.hero-cta {
    display: flex;
    gap: 16px;
    justify-content: center;
    margin-bottom: 80px;
    animation: fadeInUp 0.8s ease 0.5s backwards;
}

.hero-stats {
    display: flex;
    justify-content: center;
    gap: 60px;
    padding-top: 60px;
    border-top: 1px solid rgba(0, 0, 0, 0.08);
}

.stat-card {
    text-align: center;
    animation: fadeInUp 0.8s ease backwards;
}

.stat-card:nth-child(1) { animation-delay: 0.6s; }
.stat-card:nth-child(2) { animation-delay: 0.7s; }
.stat-card:nth-child(3) { animation-delay: 0.8s; }

.stat-number {
    font-size: 48px;
    font-weight: 800;
    background: var(--gradient-primary);
    -webkit-background-clip: text;
    -webkit-text-fill-color: transparent;
    background-clip: text;
    font-family: var(--font-display);
    margin-bottom: 8px;
}

.stat-label {
    font-size: 14px;
    color: var(--gray-600);
    font-weight: 500;
}

/* ========================================
   SECTION STYLES
   ======================================== */
section {
    padding: var(--section-padding) 0;
    position: relative;
}

.section-header {
    text-align: center;
    margin-bottom: 80px;
}

.section-badge {
    display: inline-block;
    padding: 6px 16px;
    background: rgba(34, 197, 94, 0.1);
    color: var(--green-700);
    border-radius: 50px;
    font-size: 12px;
    font-weight: 700;
    letter-spacing: 0.5px;
    margin-bottom: 20px;
    text-transform: uppercase;
}

.section-title {
    font-family: var(--font-display);
    font-size: 56px;
    font-weight: 700;
    color: var(--gray-900);
    margin-bottom: 20px;
    letter-spacing: -0.02em;
    line-height: 1.2;
}

.section-description {
    font-size: 20px;
    color: var(--gray-600);
    max-width: 700px;
    margin: 0 auto;
}

/* ========================================
   USE CASES SECTION
   ======================================== */
.use-cases {
    background: var(--gray-50);
}

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

.use-case-card {
    background: white;
    padding: 48px;
    border-radius: 24px;
    border: 1px solid var(--gray-200);
    transition: all 0.4s cubic-bezier(0.4, 0, 0.2, 1);
    position: relative;
    overflow: hidden;
}

.use-case-card::before {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    height: 4px;
    background: var(--gradient-primary);
    transform: scaleX(0);
    transform-origin: left;
    transition: transform 0.4s ease;
}

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

.use-case-card:hover {
    transform: translateY(-8px);
    box-shadow: 0 20px 40px rgba(34, 197, 94, 0.15);
    border-color: var(--green-200);
}

.use-case-icon {
    width: 64px;
    height: 64px;
    background: linear-gradient(135deg, rgba(34, 197, 94, 0.1) 0%, rgba(16, 185, 129, 0.1) 100%);
    border-radius: 16px;
    display: flex;
    align-items: center;
    justify-content: center;
    margin-bottom: 24px;
    color: var(--green-600);
}

.use-case-card h3 {
    font-size: 24px;
    font-weight: 700;
    color: var(--gray-900);
    margin-bottom: 12px;
    font-family: var(--font-display);
}

.use-case-card p {
    color: var(--gray-600);
    line-height: 1.7;
    font-size: 16px;
}

/* ========================================
   FEATURES SECTION
   ======================================== */
.features-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(350px, 1fr));
    gap: 32px;
}

.feature-card {
    background: white;
    padding: 40px;
    border-radius: 24px;
    border: 1px solid var(--gray-200);
    transition: all 0.4s cubic-bezier(0.4, 0, 0.2, 1);
    position: relative;
    overflow: hidden;
}

.feature-card::after {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    bottom: 0;
    background: var(--gradient-primary);
    opacity: 0;
    transition: opacity 0.4s ease;
    z-index: 0;
}

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

.feature-card:hover {
    transform: translateY(-8px);
    box-shadow: 0 20px 40px rgba(0, 0, 0, 0.08);
    border-color: var(--green-300);
}

.feature-card > * {
    position: relative;
    z-index: 1;
}

.feature-card.featured {
    background: linear-gradient(135deg, rgba(34, 197, 94, 0.05) 0%, rgba(16, 185, 129, 0.05) 100%);
    border: 2px solid var(--green-400);
    box-shadow: 0 8px 24px rgba(34, 197, 94, 0.15);
}

.feature-badge {
    position: absolute;
    top: 20px;
    right: 20px;
    background: var(--gradient-primary);
    color: white;
    padding: 6px 14px;
    border-radius: 50px;
    font-size: 11px;
    font-weight: 700;
    letter-spacing: 0.5px;
}

.feature-icon {
    width: 60px;
    height: 60px;
    background: linear-gradient(135deg, rgba(34, 197, 94, 0.1) 0%, rgba(16, 185, 129, 0.1) 100%);
    border-radius: 16px;
    display: flex;
    align-items: center;
    justify-content: center;
    margin-bottom: 24px;
    color: var(--green-600);
    transition: all 0.3s ease;
}

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

.feature-card h3 {
    font-size: 22px;
    font-weight: 700;
    color: var(--gray-900);
    margin-bottom: 12px;
    font-family: var(--font-display);
}

.feature-card p {
    color: var(--gray-600);
    line-height: 1.7;
    font-size: 15px;
}

/* ========================================
   DEMO SECTION
   ======================================== */
.demo {
    background: linear-gradient(180deg, var(--gray-50) 0%, white 100%);
}

.demo-wrapper {
    display: flex;
    flex-direction: column;
    gap: 32px;
}

.demo-samples {
    background: white;
    padding: 32px;
    border-radius: 24px;
    border: 1px solid var(--gray-200);
    box-shadow: 0 8px 24px rgba(0, 0, 0, 0.06);
}

.demo-samples h3 {
    font-size: 18px;
    font-weight: 700;
    color: var(--gray-900);
    margin-bottom: 24px;
    font-family: var(--font-display);
    text-align: center;
}

.sample-list {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(300px, 1fr));
    gap: 16px;
}

.sample-item {
    display: flex;
    align-items: center;
    gap: 16px;
    padding: 20px;
    background: white;
    border: 2px solid var(--gray-200);
    border-radius: 16px;
    cursor: pointer;
    transition: all 0.3s ease;
}

.sample-item:hover {
    border-color: var(--green-300);
    transform: translateY(-4px);
    box-shadow: 0 8px 20px rgba(34, 197, 94, 0.15);
}

.sample-item.active {
    border-color: var(--green-500);
    background: linear-gradient(135deg, rgba(34, 197, 94, 0.05) 0%, rgba(16, 185, 129, 0.05) 100%);
    box-shadow: 0 4px 12px rgba(34, 197, 94, 0.15);
}

.sample-item img {
    width: 60px;
    height: 60px;
    object-fit: cover;
    border-radius: 8px;
    border: 1px solid var(--gray-200);
}

.sample-info {
    flex: 1;
    min-width: 0;
}

.sample-name {
    display: block;
    font-weight: 600;
    font-size: 14px;
    color: var(--gray-900);
    white-space: nowrap;
    overflow: hidden;
    text-overflow: ellipsis;
}

.sample-type {
    display: inline-block;
    padding: 2px 8px;
    background: var(--gray-200);
    color: var(--gray-700);
    border-radius: 4px;
    font-size: 11px;
    font-weight: 600;
    margin-top: 4px;
    text-transform: uppercase;
}

.demo-main {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 32px;
    background: white;
    padding: 32px;
    border-radius: 24px;
    border: 1px solid var(--gray-200);
    box-shadow: 0 20px 60px rgba(0, 0, 0, 0.08);
}

.demo-preview,
.demo-result {
    display: flex;
    flex-direction: column;
    height: 700px;
    min-width: 0;
    overflow: hidden;
}

.preview-header,
.result-header {
    display: flex;
    align-items: center;
    justify-content: space-between;
    padding: 16px 20px;
    background: var(--gray-50);
    border-radius: 12px 12px 0 0;
    border: 1px solid var(--gray-200);
    border-bottom: none;
    font-weight: 600;
    font-size: 14px;
    color: var(--gray-900);
}

.format-tabs {
    display: flex;
    gap: 8px;
}

.format-tab {
    padding: 6px 12px;
    background: white;
    border: 1px solid var(--gray-300);
    border-radius: 8px;
    font-size: 12px;
    font-weight: 600;
    color: var(--gray-600);
    cursor: pointer;
    transition: all 0.2s;
}

.format-tab:hover {
    background: var(--gray-100);
    border-color: var(--gray-400);
}

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

.preview-content,
.result-content {
    flex: 1;
    border: 1px solid var(--gray-200);
    border-radius: 0 0 12px 12px;
    overflow: hidden;
    background: white;
}

.preview-content {
    display: flex;
    align-items: center;
    justify-content: center;
    padding: 24px;
}

.preview-content img {
    max-width: 100%;
    max-height: 100%;
    object-fit: contain;
    border-radius: 8px;
    box-shadow: 0 4px 16px rgba(0, 0, 0, 0.1);
}

.result-content {
    position: relative;
    overflow: hidden;
    flex: 1;
    min-height: 500px;
    max-height: 700px;
}

.result-view {
    display: none;
    padding: 0;
    min-height: 500px;
    max-height: 700px;
    height: 100%;
    overflow: hidden;
}

.result-view.active {
    display: block !important;
}

/* Blocks view needs scrolling */
#resultBlocks {
    padding: 20px;
    overflow-y: auto;
    overflow-x: hidden;
}

.result-view pre {
    background: var(--gray-50);
    border-radius: 8px;
    padding: 20px;
    margin: 20px;
    overflow: auto;
    max-width: calc(100% - 40px);
    height: calc(100% - 40px);
    font-size: 13px;
    line-height: 1.6;
    color: var(--gray-800);
    font-family: 'Courier New', monospace;
    white-space: pre;
    word-wrap: normal;
}

.result-view code {
    font-family: 'Courier New', monospace;
    color: var(--gray-800);
    display: block;
    white-space: pre;
    word-wrap: normal;
}

.html-preview {
    line-height: 1.8;
    color: var(--gray-700);
    padding: 20px;
    overflow-y: auto;
    max-height: 100%;
}

.html-preview p {
    margin-bottom: 12px;
}

.html-preview strong,
.html-preview b {
    font-weight: 700;
    color: var(--gray-900);
}

/* ========================================
   JSON TREE VIEWER
   ======================================== */
.json-viewer {
    background: var(--gray-50);
    border-radius: 8px;
    padding: 16px;
    margin: 20px;
    height: calc(100% - 40px);
    overflow-y: auto;
}

.json-toolbar {
    display: flex;
    gap: 8px;
    margin-bottom: 16px;
    padding-bottom: 12px;
    border-bottom: 1px solid var(--gray-300);
}

.json-btn {
    display: inline-flex;
    align-items: center;
    gap: 6px;
    padding: 6px 12px;
    background: white;
    border: 1px solid var(--gray-300);
    border-radius: 6px;
    font-size: 12px;
    font-weight: 600;
    color: var(--gray-700);
    cursor: pointer;
    transition: all 0.2s ease;
    font-family: var(--font-body);
}

.json-btn:hover {
    background: var(--green-50);
    border-color: var(--green-400);
    color: var(--green-700);
}

.json-btn svg {
    flex-shrink: 0;
}

.json-tree {
    font-family: 'Courier New', monospace;
    font-size: 13px;
    line-height: 1.6;
    color: var(--gray-800);
}

.json-line {
    position: relative;
    padding-left: 16px;
}

.json-expandable {
    position: relative;
}

.json-toggle {
    position: absolute;
    left: 0;
    top: 2px;
    width: 14px;
    height: 14px;
    cursor: pointer;
    user-select: none;
    color: var(--gray-500);
    font-size: 11px;
    display: inline-flex;
    align-items: center;
    justify-content: center;
    transition: all 0.2s ease;
    border-radius: 3px;
}

.json-toggle:hover {
    background: var(--gray-200);
    color: var(--gray-900);
}

.json-expandable.collapsed .json-toggle {
    transform: rotate(-90deg);
}

.json-children {
    margin-left: 0;
    padding-left: 12px;
    border-left: 1px solid var(--gray-200);
    margin-top: 1px;
    margin-bottom: 1px;
}

.json-expandable.collapsed .json-children {
    display: none;
}

.json-expandable.collapsed .json-bracket:last-child {
    display: none;
}

.json-collapsed-preview {
    display: none;
    color: var(--gray-400);
    margin: 0 4px;
}

.json-expandable.collapsed .json-collapsed-preview {
    display: inline;
}

.json-item-count {
    display: none;
    color: var(--gray-400);
    font-size: 11px;
    margin-left: 6px;
    font-style: italic;
}

.json-expandable.collapsed .json-item-count {
    display: inline;
}

/* JSON Syntax Highlighting */
.json-key {
    color: #0066cc;
    font-weight: 600;
}

.json-string {
    color: #22c55e;
}

.json-number {
    color: #ec4899;
}

.json-boolean {
    color: #f59e0b;
    font-weight: 600;
}

.json-null {
    color: #9ca3af;
    font-style: italic;
}

.json-bracket {
    color: var(--gray-600);
    font-weight: bold;
}

.json-colon {
    color: var(--gray-500);
    margin: 0 4px;
}

.json-comma {
    color: var(--gray-500);
}

.block-item {
    padding: 16px;
    background: var(--gray-50);
    border-left: 3px solid var(--green-500);
    border-radius: 8px;
    margin-bottom: 12px;
    transition: all 0.2s;
}

.block-item:hover {
    background: rgba(34, 197, 94, 0.05);
    transform: translateX(4px);
}

.block-type {
    display: inline-block;
    padding: 4px 10px;
    background: var(--gradient-primary);
    color: white;
    border-radius: 5px;
    font-size: 11px;
    font-weight: 700;
    margin-bottom: 8px;
    text-transform: uppercase;
    letter-spacing: 0.3px;
}

.block-content {
    color: var(--gray-700);
    font-size: 14px;
    line-height: 1.7;
}

/* Block Type Color Coding */
.block-text {
    background: #f0f9ff;
    border-left-color: #3b82f6;
}

.block-text .block-type {
    background: linear-gradient(135deg, #3b82f6 0%, #2563eb 100%);
}

.block-sectionheader {
    background: #fef3c7;
    border-left-color: #f59e0b;
}

.block-sectionheader .block-type {
    background: linear-gradient(135deg, #f59e0b 0%, #d97706 100%);
}

.block-sectionheader .block-content {
    font-weight: 600;
    font-size: 15px;
    color: var(--gray-800);
}

.block-title {
    background: #fce7f3;
    border-left-color: #ec4899;
}

.block-title .block-type {
    background: linear-gradient(135deg, #ec4899 0%, #db2777 100%);
}

.block-title .block-content {
    font-weight: 700;
    font-size: 16px;
    color: var(--gray-900);
}

.block-listgroup,
.block-list {
    background: #f3e8ff;
    border-left-color: #a855f7;
}

.block-listgroup .block-type,
.block-list .block-type {
    background: linear-gradient(135deg, #a855f7 0%, #9333ea 100%);
}

.block-picture,
.block-image,
.block-figure {
    background: #ecfdf5;
    border-left-color: #10b981;
}

.block-picture .block-type,
.block-image .block-type,
.block-figure .block-type {
    background: linear-gradient(135deg, #10b981 0%, #059669 100%);
}

.block-table {
    background: #fef2f2;
    border-left-color: #ef4444;
}

.block-table .block-type {
    background: linear-gradient(135deg, #ef4444 0%, #dc2626 100%);
}

.block-page {
    background: #f9fafb;
    border-left-color: #6b7280;
}

.block-page .block-type {
    background: linear-gradient(135deg, #6b7280 0%, #4b5563 100%);
}

.block-caption {
    background: #e0f2fe;
    border-left-color: #0ea5e9;
}

.block-caption .block-type {
    background: linear-gradient(135deg, #0ea5e9 0%, #0284c7 100%);
}

.block-caption .block-content {
    font-style: italic;
    font-size: 13px;
    color: var(--gray-600);
}

.block-footnote {
    background: #fef9c3;
    border-left-color: #eab308;
}

.block-footnote .block-type {
    background: linear-gradient(135deg, #eab308 0%, #ca8a04 100%);
}

.block-footnote .block-content {
    font-size: 12px;
}

.block-code {
    background: #1e293b;
    border-left-color: #64748b;
}

.block-code .block-type {
    background: linear-gradient(135deg, #64748b 0%, #475569 100%);
}

.block-code .block-content {
    font-family: 'Courier New', monospace;
    font-size: 13px;
    color: #94a3b8;
}

.loading {
    display: flex;
    align-items: center;
    justify-content: center;
    height: 100%;
    color: var(--gray-500);
    font-size: 16px;
}

/* ========================================
   PRICING SECTION
   ======================================== */
.pricing {
    background: linear-gradient(180deg, white 0%, var(--gray-50) 100%);
}

.pricing-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(400px, 1fr));
    gap: 32px;
    max-width: 1000px;
    margin: 0 auto;
}

.pricing-card {
    background: white;
    border: 2px solid var(--gray-200);
    border-radius: 32px;
    padding: 48px;
    position: relative;
    transition: all 0.4s cubic-bezier(0.4, 0, 0.2, 1);
}

.pricing-card:hover {
    transform: translateY(-8px);
    box-shadow: 0 20px 40px rgba(0, 0, 0, 0.1);
}

.pricing-card.featured {
    border-color: var(--green-500);
    background: linear-gradient(180deg, rgba(34, 197, 94, 0.02) 0%, white 100%);
    box-shadow: 0 12px 32px rgba(34, 197, 94, 0.2);
}

.pricing-badge {
    position: absolute;
    top: -16px;
    left: 50%;
    transform: translateX(-50%);
    background: var(--gradient-primary);
    color: white;
    padding: 8px 24px;
    border-radius: 50px;
    font-size: 13px;
    font-weight: 700;
    box-shadow: 0 4px 12px rgba(34, 197, 94, 0.4);
}

.pricing-header {
    text-align: center;
    margin-bottom: 32px;
}

.pricing-header h3 {
    font-size: 28px;
    font-weight: 700;
    color: var(--gray-900);
    margin-bottom: 8px;
    font-family: var(--font-display);
}

.pricing-header p {
    color: var(--gray-600);
    font-size: 15px;
}

.pricing-price {
    text-align: center;
    margin-bottom: 32px;
    padding-bottom: 32px;
    border-bottom: 1px solid var(--gray-200);
}

.price-symbol {
    font-size: 32px;
    font-weight: 700;
    background: var(--gradient-primary);
    -webkit-background-clip: text;
    -webkit-text-fill-color: transparent;
    background-clip: text;
    vertical-align: super;
}

.price-amount {
    font-size: 72px;
    font-weight: 800;
    background: var(--gradient-primary);
    -webkit-background-clip: text;
    -webkit-text-fill-color: transparent;
    background-clip: text;
    font-family: var(--font-display);
    line-height: 1;
}

.price-unit {
    display: block;
    font-size: 16px;
    color: var(--gray-500);
    margin-top: 8px;
}

.pricing-features {
    list-style: none;
    margin-bottom: 32px;
}

.pricing-features li {
    display: flex;
    align-items: center;
    gap: 12px;
    padding: 12px 0;
    color: var(--gray-700);
    font-size: 15px;
}

.pricing-features svg {
    color: var(--green-600);
    flex-shrink: 0;
}

/* ========================================
   API SECTION
   ======================================== */
.api-section {
    background: var(--gray-900);
    color: white;
}

.api-content {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 80px;
    align-items: center;
}

.api-text h2 {
    font-family: var(--font-display);
    font-size: 48px;
    font-weight: 700;
    margin-bottom: 20px;
    color: white;
}

.api-text p {
    font-size: 18px;
    color: var(--gray-400);
    margin-bottom: 32px;
    line-height: 1.7;
}

.api-features {
    list-style: none;
}

.api-features li {
    display: flex;
    align-items: center;
    gap: 12px;
    padding: 12px 0;
    color: var(--gray-300);
    font-size: 16px;
}

.api-features svg {
    color: var(--green-400);
    flex-shrink: 0;
}

.api-code {
    background: rgba(0, 0, 0, 0.5);
    border-radius: 16px;
    overflow: hidden;
    border: 1px solid rgba(255, 255, 255, 0.1);
}

.code-header {
    display: flex;
    align-items: center;
    justify-content: space-between;
    padding: 16px 20px;
    background: rgba(255, 255, 255, 0.05);
    border-bottom: 1px solid rgba(255, 255, 255, 0.1);
    color: var(--gray-400);
    font-size: 13px;
    font-weight: 600;
}

.code-dots {
    display: flex;
    gap: 6px;
}

.code-dots span {
    width: 12px;
    height: 12px;
    border-radius: 50%;
    background: var(--gray-600);
}

.code-dots span:nth-child(1) { background: #FF5F57; }
.code-dots span:nth-child(2) { background: #FEBC2E; }
.code-dots span:nth-child(3) { background: #28C840; }

.api-code pre {
    padding: 24px;
    overflow-x: auto;
    font-size: 14px;
    line-height: 1.8;
    color: var(--gray-300);
    font-family: 'Courier New', monospace;
}

.api-code code {
    font-family: 'Courier New', monospace;
}

/* ========================================
   WAITLIST SECTION
   ======================================== */
.waitlist {
    background: linear-gradient(135deg, rgba(34, 197, 94, 0.05) 0%, rgba(16, 185, 129, 0.05) 100%);
    position: relative;
    overflow: hidden;
}

.waitlist::before {
    content: '';
    position: absolute;
    top: 50%;
    left: 50%;
    transform: translate(-50%, -50%);
    width: 1000px;
    height: 1000px;
    background: radial-gradient(circle, rgba(34, 197, 94, 0.1) 0%, transparent 70%);
    animation: pulse-bg 4s ease-in-out infinite;
}

@keyframes pulse-bg {
    0%, 100% {
        transform: translate(-50%, -50%) scale(1);
        opacity: 0.5;
    }
    50% {
        transform: translate(-50%, -50%) scale(1.1);
        opacity: 0.3;
    }
}

.waitlist-content {
    position: relative;
    z-index: 2;
    max-width: 800px;
    margin: 0 auto;
    text-align: center;
}

.waitlist-badge {
    display: inline-flex;
    align-items: center;
    gap: 12px;
    padding: 12px 28px;
    background: white;
    border: 2px solid var(--green-300);
    border-radius: 50px;
    color: var(--green-700);
    font-size: 15px;
    font-weight: 700;
    margin-bottom: 32px;
    box-shadow: 0 4px 16px rgba(34, 197, 94, 0.2);
}

.pulse-dot {
    width: 12px;
    height: 12px;
    background: var(--green-500);
    border-radius: 50%;
    position: relative;
    animation: pulse-dot 2s ease-in-out infinite;
}

.pulse-dot::before {
    content: '';
    position: absolute;
    top: 50%;
    left: 50%;
    transform: translate(-50%, -50%);
    width: 100%;
    height: 100%;
    background: var(--green-500);
    border-radius: 50%;
    animation: pulse-ring 2s ease-out infinite;
}

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

@keyframes pulse-ring {
    0% {
        transform: translate(-50%, -50%) scale(1);
        opacity: 1;
    }
    100% {
        transform: translate(-50%, -50%) scale(2.5);
        opacity: 0;
    }
}

.waitlist-title {
    font-family: var(--font-display);
    font-size: 64px;
    font-weight: 800;
    color: var(--gray-900);
    margin-bottom: 24px;
    letter-spacing: -0.02em;
}

.waitlist-description {
    font-size: 20px;
    color: var(--gray-600);
    margin-bottom: 48px;
    line-height: 1.7;
}

.waitlist-form {
    margin-bottom: 48px;
}

.form-row {
    display: flex;
    gap: 16px;
    justify-content: center;
}

.form-input {
    flex: 1;
    max-width: 250px;
    padding: 18px 24px;
    border: 2px solid var(--gray-300);
    border-radius: 12px;
    font-size: 16px;
    font-family: var(--font-body);
    transition: all 0.3s ease;
    background: white;
}

.form-input:focus {
    outline: none;
    border-color: var(--green-500);
    box-shadow: 0 0 0 4px rgba(34, 197, 94, 0.1);
}

.form-input::placeholder {
    color: var(--gray-400);
}

.waitlist-benefits {
    display: flex;
    justify-content: center;
    gap: 24px;
    flex-wrap: wrap;
    margin-bottom: 60px;
}

.benefit-card {
    display: flex;
    align-items: center;
    gap: 12px;
    padding: 16px 24px;
    background: white;
    border-radius: 12px;
    border: 1px solid var(--gray-200);
    box-shadow: 0 4px 12px rgba(0, 0, 0, 0.05);
    transition: all 0.3s ease;
}

.benefit-card:hover {
    transform: translateY(-4px);
    box-shadow: 0 8px 20px rgba(34, 197, 94, 0.15);
}

.benefit-card svg {
    color: var(--green-600);
    flex-shrink: 0;
}

.benefit-card span {
    color: var(--gray-700);
    font-size: 15px;
    font-weight: 600;
}

.waitlist-counter {
    padding-top: 48px;
    border-top: 1px solid var(--gray-200);
}

.counter-number {
    font-size: 64px;
    font-weight: 800;
    background: var(--gradient-primary);
    -webkit-background-clip: text;
    -webkit-text-fill-color: transparent;
    background-clip: text;
    font-family: var(--font-display);
    margin-bottom: 8px;
}

.counter-label {
    font-size: 16px;
    color: var(--gray-600);
    font-weight: 500;
}

/* ========================================
   FOOTER
   ======================================== */
.footer {
    background: var(--gray-900);
    color: var(--gray-400);
    padding: 80px 0 32px;
}

.footer-content {
    display: grid;
    grid-template-columns: 2fr 3fr;
    gap: 80px;
    margin-bottom: 48px;
}

.footer-brand .logo {
    color: white;
    margin-bottom: 16px;
}

.footer-brand p {
    color: var(--gray-400);
    font-size: 15px;
    line-height: 1.7;
}

.footer-links {
    display: grid;
    grid-template-columns: repeat(3, 1fr);
    gap: 40px;
}

.footer-column h4 {
    color: white;
    font-weight: 700;
    margin-bottom: 20px;
    font-size: 16px;
    font-family: var(--font-display);
}

.footer-column a {
    display: block;
    color: var(--gray-400);
    text-decoration: none;
    margin-bottom: 12px;
    font-size: 14px;
    transition: color 0.2s;
}

.footer-column a:hover {
    color: var(--green-400);
}

.footer-bottom {
    display: flex;
    justify-content: space-between;
    align-items: center;
    padding-top: 32px;
    border-top: 1px solid rgba(255, 255, 255, 0.1);
    color: var(--gray-500);
    font-size: 14px;
}

.footer-social {
    display: flex;
    gap: 16px;
}

.footer-social a {
    width: 40px;
    height: 40px;
    display: flex;
    align-items: center;
    justify-content: center;
    background: rgba(255, 255, 255, 0.05);
    border-radius: 10px;
    color: var(--gray-400);
    transition: all 0.3s ease;
}

.footer-social a:hover {
    background: var(--gradient-primary);
    color: white;
    transform: translateY(-2px);
}

/* ========================================
   MODAL
   ======================================== */
.modal {
    display: none;
    position: fixed;
    top: 0;
    left: 0;
    right: 0;
    bottom: 0;
    z-index: 9999;
    align-items: center;
    justify-content: center;
}

.modal.active {
    display: flex;
    animation: fadeIn 0.3s ease;
}

.modal-backdrop {
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    bottom: 0;
    background: rgba(0, 0, 0, 0.6);
    backdrop-filter: blur(8px);
}

.modal-content {
    position: relative;
    background: white;
    padding: 48px;
    border-radius: 24px;
    max-width: 500px;
    text-align: center;
    box-shadow: 0 20px 60px rgba(0, 0, 0, 0.3);
    animation: scaleIn 0.4s cubic-bezier(0.34, 1.56, 0.64, 1);
    z-index: 1;
}

.modal-icon {
    width: 80px;
    height: 80px;
    margin: 0 auto 24px;
    color: var(--green-600);
    animation: checkDraw 0.8s ease 0.2s backwards;
}

.modal-content h3 {
    font-size: 28px;
    font-weight: 700;
    color: var(--gray-900);
    margin-bottom: 12px;
    font-family: var(--font-display);
}

.modal-content p {
    color: var(--gray-600);
    font-size: 16px;
    margin-bottom: 32px;
    line-height: 1.6;
}

/* ========================================
   ANIMATIONS
   ======================================== */
@keyframes fadeIn {
    from { opacity: 0; }
    to { opacity: 1; }
}

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

@keyframes fadeInDown {
    from {
        opacity: 0;
        transform: translateY(-30px);
    }
    to {
        opacity: 1;
        transform: translateY(0);
    }
}

@keyframes scaleIn {
    from {
        transform: scale(0.8);
        opacity: 0;
    }
    to {
        transform: scale(1);
        opacity: 1;
    }
}

@keyframes checkDraw {
    0% {
        transform: scale(0) rotate(-45deg);
        opacity: 0;
    }
    50% {
        transform: scale(1.2) rotate(5deg);
    }
    100% {
        transform: scale(1) rotate(0deg);
        opacity: 1;
    }
}

/* ========================================
   RESPONSIVE DESIGN
   ======================================== */
@media (max-width: 1200px) {
    .demo-main {
        grid-template-columns: 1fr;
    }
    
    .demo-preview,
    .demo-result {
        height: auto;
        min-height: 500px;
    }
    
    .sample-list {
        grid-template-columns: repeat(auto-fit, minmax(250px, 1fr));
    }
}

@media (max-width: 1024px) {
    :root {
        --section-padding: 80px;
    }
    
    .hero-title {
        font-size: 64px;
    }
    
    .section-title {
        font-size: 48px;
    }
    
    .api-content {
        grid-template-columns: 1fr;
        gap: 48px;
    }
    
    .footer-content {
        grid-template-columns: 1fr;
        gap: 48px;
    }
}

@media (max-width: 768px) {
    .nav-links {
        display: none;
    }
    
    .mobile-menu-btn {
        display: block;
    }
    
    .hero {
        padding: 140px 0 80px;
        min-height: auto;
    }
    
    .hero-title {
        font-size: 48px;
    }
    
    .hero-description {
        font-size: 18px;
    }
    
    .hero-cta {
        flex-direction: column;
    }
    
    .hero-stats {
        flex-wrap: wrap;
        gap: 32px;
    }
    
    .section-title {
        font-size: 36px;
    }
    
    .waitlist-title {
        font-size: 42px;
    }
    
    .use-cases-grid,
    .features-grid {
        grid-template-columns: 1fr;
    }
    
    .sample-list {
        grid-template-columns: 1fr;
    }
    
    .pricing-grid {
        grid-template-columns: 1fr;
    }
    
    .form-row {
        flex-direction: column;
    }
    
    .form-input {
        max-width: 100%;
    }
    
    .footer-links {
        grid-template-columns: 1fr;
        gap: 32px;
    }
    
    .footer-bottom {
        flex-direction: column;
        gap: 20px;
    }
}

@media (max-width: 480px) {
    .hero-title {
        font-size: 36px;
    }
    
    .section-title {
        font-size: 28px;
    }
    
    .modal-content {
        margin: 20px;
        padding: 32px;
    }
}
