:root {
    /* Grayscale palette */
    --gray-50: #fafafa;
    --gray-100: #f5f5f5;
    --gray-200: #e5e5e5;
    --gray-300: #d4d4d4;
    --gray-400: #a3a3a3;
    --gray-500: #737373;
    --gray-600: #525252;
    --gray-700: #404040;
    --gray-800: #262626;
    --gray-900: #171717;
    
    /* Purple accents */
    --purple-500: #a855f7;
    --purple-600: #9333ea;
    --purple-700: #7e22ce;
    
    /* Semantic colors */
    --bg: var(--gray-50);
    --bg-dark: var(--gray-900);
    --text: var(--gray-900);
    --text-light: var(--gray-600);
    --text-dark: var(--gray-100);
    --border: var(--gray-200);
    --accent: var(--purple-600);
}

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

/* Custom Cursor */
.cursor-dot {
    position: fixed;
    width: 12px;
    height: 12px;
    background: var(--purple-600);
    border-radius: 50%;
    pointer-events: none;
    z-index: 10000;
    transition: transform 0.15s ease-out;
}

.cursor-ring {
    position: fixed;
    width: 40px;
    height: 40px;
    border: 2px solid var(--purple-600);
    border-radius: 50%;
    pointer-events: none;
    z-index: 9999;
    transition: all 0.3s ease-out;
    opacity: 0.5;
}

body * {
    cursor: none !important;
}

.cursor-hover .cursor-dot {
    transform: scale(1.5);
    background: var(--purple-500);
}

.cursor-hover .cursor-ring {
    transform: scale(1.3);
    opacity: 0.8;
    border-color: var(--purple-500);
}

body {
    font-family: -apple-system, BlinkMacSystemFont, 'Segoe UI', 'Roboto', sans-serif;
    background: var(--bg);
    color: var(--text);
    line-height: 1.6;
}

h1, h2, h3, h4, h5, h6 {
    font-family: 'Space Grotesk', sans-serif;
    font-weight: 700;
    line-height: 1.2;
}

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

/* Navigation */
.nav {
    position: sticky;
    top: 0;
    background: rgba(250, 250, 250, 0.9);
    backdrop-filter: blur(10px);
    border-bottom: 1px solid var(--border);
    z-index: 100;
}

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

.logo {
    display: flex;
    align-items: center;
    gap: 0.75rem;
    text-decoration: none;
    color: var(--text);
    font-family: 'Space Grotesk', sans-serif;
    font-weight: 700;
    font-size: 1.25rem;
}

.logo img {
    display: block;
    border-radius: 8px;
}

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

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

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

/* Buttons */
.btn-primary, .btn-secondary {
    display: inline-block;
    padding: 0.75rem 1.5rem;
    border-radius: 0.5rem;
    font-weight: 600;
    text-decoration: none;
    transition: all 0.2s;
    border: none;
    cursor: pointer;
}

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

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

.btn-secondary {
    background: transparent;
    color: var(--text);
    border: 1px solid var(--border);
}

.btn-secondary:hover {
    border-color: var(--text);
}

.btn-lg {
    padding: 1rem 2rem;
    font-size: 1.125rem;
}

.btn-block {
    display: block;
    width: 100%;
    text-align: center;
}

/* Hero */
.hero {
    padding: 6rem 0;
    text-align: center;
}

.hero-badge {
    display: inline-block;
    padding: 0.5rem 1rem;
    background: var(--gray-200);
    border-radius: 2rem;
    font-size: 0.875rem;
    font-weight: 600;
    color: var(--text-light);
    margin-bottom: 2rem;
}

.hero-title {
    font-size: 4rem;
    margin-bottom: 1.5rem;
    color: var(--text);
}

.hero-subtitle {
    font-size: 1.5rem;
    color: var(--text-light);
    max-width: 800px;
    margin: 0 auto 3rem;
}

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

/* Terminal */
.terminal {
    max-width: 700px;
    margin: 0 auto;
    background: var(--gray-900);
    border-radius: 0.75rem;
    overflow: hidden;
    box-shadow: 0 20px 60px rgba(0, 0, 0, 0.2);
}

.terminal-header {
    display: flex;
    align-items: center;
    gap: 1rem;
    padding: 0.75rem 1rem;
    background: var(--gray-800);
    border-bottom: 1px solid var(--gray-700);
}

.terminal-dots {
    display: flex;
    gap: 0.5rem;
}

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

.terminal-title {
    color: var(--text-dark);
    font-size: 0.875rem;
}

.terminal-body {
    padding: 1.5rem;
    font-family: 'Monaco', 'Courier New', monospace;
    font-size: 0.9rem;
    color: var(--gray-300);
}

.terminal-line {
    margin-bottom: 1rem;
}

.prompt {
    color: var(--purple-500);
}

.command {
    color: var(--gray-100);
}

.cursor {
    animation: blink 1s infinite;
}

@keyframes blink {
    0%, 49% { opacity: 1; }
    50%, 100% { opacity: 0; }
}

.terminal-output {
    color: var(--gray-400);
}

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

.section-dark {
    background: var(--bg-dark);
    color: var(--text-dark);
}

.section-dark .section-title,
.section-dark h3 {
    color: var(--text-dark);
}

.section-dark .section-subtitle,
.section-dark p {
    color: var(--gray-400);
}

.section-dark .card {
    background: var(--gray-800);
    border-color: var(--gray-700);
}

.section-dark .btn-secondary {
    color: var(--text-dark);
    border-color: var(--gray-600);
}

.section-dark .btn-secondary:hover {
    border-color: var(--text-dark);
    background: rgba(255, 255, 255, 0.05);
}

.section-title {
    font-size: 3rem;
    text-align: center;
    margin-bottom: 1rem;
}

.section-subtitle {
    font-size: 1.25rem;
    text-align: center;
    color: var(--text-light);
    margin-bottom: 4rem;
}

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

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

/* Card */
.card {
    padding: 2rem;
    background: white;
    border: 1px solid var(--border);
    border-radius: 0.75rem;
    transition: transform 0.2s, box-shadow 0.2s;
}

.card:hover {
    transform: translateY(-4px);
    box-shadow: 0 10px 30px rgba(0, 0, 0, 0.1);
}

.card .icon {
    width: 48px;
    height: 48px;
    display: flex;
    align-items: center;
    justify-content: center;
    background: var(--gray-100);
    border-radius: 0.5rem;
    margin-bottom: 1.5rem;
}

.card .icon svg {
    width: 24px;
    height: 24px;
    color: var(--accent);
}

.card h3 {
    font-size: 1.25rem;
    margin-bottom: 0.75rem;
}

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

/* Team Card */
.team-card {
    text-align: center;
    padding: 2rem 1.5rem;
    background: white;
    border: 1px solid var(--border);
    border-radius: 0.75rem;
    transition: transform 0.2s;
}

.team-card:hover {
    transform: translateY(-4px);
}

.team-card .icon {
    width: 64px;
    height: 64px;
    display: flex;
    align-items: center;
    justify-content: center;
    background: var(--gray-100);
    border-radius: 50%;
    margin: 0 auto 1rem;
}

.team-card .icon svg {
    width: 28px;
    height: 28px;
    color: var(--accent);
}

.team-card h3 {
    font-size: 1.125rem;
    margin-bottom: 0.5rem;
}

.team-card p {
    color: var(--text-light);
    font-size: 0.9rem;
}

/* Comparison */
.comparison {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 3rem;
    margin-bottom: 3rem;
}

.comparison-label {
    font-size: 1.25rem;
    font-weight: 700;
    margin-bottom: 1.5rem;
    color: var(--text-dark);
}

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

.flow-item {
    padding: 1rem;
    background: var(--gray-800);
    border: 1px solid var(--gray-700);
    border-radius: 0.5rem;
    color: var(--text-dark);
    font-size: 0.9rem;
}

.flow-arrow {
    text-align: center;
    color: var(--gray-500);
    font-size: 1.5rem;
}

.flow-grid {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 0.5rem;
}

.comparison-joni .flow-item {
    background: var(--gray-800);
    border-color: var(--purple-700);
}

/* Pricing */
.pricing-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(260px, 1fr));
    gap: 2rem;
    max-width: 1100px;
    margin: 0 auto;
}

.pricing-card {
    padding: 2.5rem 2rem;
    background: var(--gray-800);
    border: 2px solid var(--gray-700);
    border-radius: 1rem;
    text-align: center;
}

.pricing-featured {
    border-color: var(--accent);
    transform: scale(1.05);
}

.pricing-badge {
    display: inline-block;
    padding: 0.5rem 1rem;
    background: var(--gray-700);
    border-radius: 2rem;
    font-size: 0.875rem;
    font-weight: 600;
    margin-bottom: 1.5rem;
}

.pricing-badge-featured {
    background: var(--accent);
}

.pricing-amount {
    font-size: 3rem;
    font-weight: 700;
    margin-bottom: 0.5rem;
}

.pricing-tokens {
    color: var(--gray-400);
    margin-bottom: 2rem;
}

.pricing-features {
    list-style: none;
    margin-bottom: 2rem;
    text-align: left;
}

.pricing-features li {
    padding: 0.75rem 0;
    border-bottom: 1px solid var(--gray-700);
    color: var(--gray-300);
}

.pricing-features li:last-child {
    border-bottom: none;
}

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

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

.cta-section p {
    font-size: 1.5rem;
    color: var(--text-light);
    margin-bottom: 2rem;
}

/* Footer */
.footer {
    padding: 3rem 0;
    background: var(--bg-dark);
    color: var(--text-dark);
}

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

.footer-brand {
    display: flex;
    align-items: center;
    gap: 0.75rem;
    font-family: 'Space Grotesk', sans-serif;
    font-weight: 700;
    font-size: 1.125rem;
}

.footer-copy {
    color: var(--gray-500);
    font-size: 0.9rem;
}

/* Back to Top Button */
.back-to-top {
    position: fixed;
    bottom: 8rem;
    right: 2rem;
    width: 50px;
    height: 50px;
    background: var(--purple-600);
    border: none;
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    cursor: pointer;
    opacity: 0;
    visibility: hidden;
    transition: all 0.3s ease;
    z-index: 1000;
    box-shadow: 0 4px 12px rgba(147, 51, 234, 0.3);
}

.back-to-top.visible {
    opacity: 1;
    visibility: visible;
}

.back-to-top:hover {
    background: var(--purple-700);
    transform: translateY(-4px);
    box-shadow: 0 6px 20px rgba(147, 51, 234, 0.5);
}

.back-to-top svg {
    width: 24px;
    height: 24px;
    color: white;
}

/* Matrix Easter Egg */
.matrix-overlay {
    position: fixed;
    top: 0;
    left: 0;
    width: 100vw;
    height: 100vh;
    background: var(--gray-900);
    z-index: 9999;
    display: none;
    cursor: pointer;
}

.matrix-overlay.active {
    display: block;
}

#matrix-canvas {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
}

.matrix-logo {
    position: absolute;
    top: 50%;
    left: 50%;
    transform: translate(-50%, -50%);
    z-index: 10000;
    animation: matrixPulse 2s ease-in-out infinite;
}

.matrix-logo img {
    width: 150px;
    height: 150px;
    opacity: 0.95;
    filter: drop-shadow(0 0 30px var(--purple-600));
}

@keyframes matrixPulse {
    0%, 100% { transform: translate(-50%, -50%) scale(1); }
    50% { transform: translate(-50%, -50%) scale(1.08); }
}

/* Responsive */
@media (max-width: 768px) {
    .hero-title {
        font-size: 2.5rem;
    }
    
    .hero-subtitle {
        font-size: 1.125rem;
    }
    
    .hero-cta {
        flex-direction: column;
        max-width: 300px;
        margin: 0 auto 3rem;
    }
    
    .nav-links {
        display: none;
    }
    
    .section-title {
        font-size: 2rem;
    }
    
    .comparison {
        grid-template-columns: 1fr;
    }
    
    .pricing-featured {
        transform: none;
    }
    
    .footer-content {
        flex-direction: column;
        gap: 1rem;
        text-align: center;
    }
}