:root {
    --bg-color: #09090b;
    --text-primary: #fafafa;
    --text-secondary: #a1a1aa;
    --border-color: rgba(255, 255, 255, 0.1);
    --glow-color: rgba(37, 99, 235, 0.5); /* Blue glow */
    --accent-color: #3b82f6;
    --card-bg: rgba(255, 255, 255, 0.03);
    --font-sans: 'Inter', sans-serif;
    --font-mono: 'Fira Code', monospace;
}

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

body {
    font-family: var(--font-sans);
    background-color: var(--bg-color);
    color: var(--text-primary);
    line-height: 1.6;
    overflow-x: hidden;
}

/* LangChain style grid background */
.grid-background {
    position: fixed;
    top: 0;
    left: 0;
    width: 100vw;
    height: 100vh;
    background-image: 
        linear-gradient(to right, rgba(255,255,255,0.03) 1px, transparent 1px),
        linear-gradient(to bottom, rgba(255,255,255,0.03) 1px, transparent 1px);
    background-size: 40px 40px;
    z-index: -1;
    pointer-events: none;
    mask-image: radial-gradient(circle at center, black 40%, transparent 80%);
    -webkit-mask-image: radial-gradient(circle at center, black 40%, transparent 80%);
}

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

/* Typography */
.gradient-text {
    background: linear-gradient(to right, #ffffff, #a1a1aa);
    -webkit-background-clip: text;
    -webkit-text-fill-color: transparent;
    background-clip: text;
}

h1.hero-title {
    font-size: 4.5rem;
    font-weight: 800;
    line-height: 1.1;
    letter-spacing: -0.04em;
    margin-bottom: 1.5rem;
}

h2 {
    font-size: 2.5rem;
    font-weight: 700;
    letter-spacing: -0.03em;
    margin-bottom: 1rem;
}

h3 {
    font-size: 1.25rem;
    font-weight: 600;
    margin-bottom: 0.75rem;
}

/* Navigation */
.navbar {
    padding: 1.5rem 0;
    position: sticky;
    top: 0;
    z-index: 100;
    backdrop-filter: blur(12px);
    -webkit-backdrop-filter: blur(12px);
    border-bottom: 1px solid var(--border-color);
    background: rgba(9, 9, 11, 0.7);
}

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

.logo {
    font-weight: 700;
    font-size: 1.2rem;
    letter-spacing: -0.02em;
    display: flex;
    align-items: center;
    gap: 0.5rem;
}

.logo-icon {
    color: var(--accent-color);
}

nav a {
    color: var(--text-secondary);
    text-decoration: none;
    margin-left: 2rem;
    font-size: 0.9rem;
    font-weight: 500;
    transition: color 0.2s;
}

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

.nav-btn {
    border: 1px solid var(--border-color);
    padding: 0.4rem 1rem;
    border-radius: 6px;
    background: var(--card-bg);
}

.nav-btn:hover {
    background: rgba(255,255,255,0.1);
    border-color: rgba(255,255,255,0.3);
}

/* Hero Section */
.hero {
    padding: 8rem 0 2rem;
    text-align: center;
    display: flex;
    flex-direction: column;
    align-items: center;
}

.badge {
    display: inline-flex;
    align-items: center;
    gap: 0.5rem;
    padding: 0.3rem 1rem;
    border: 1px solid var(--border-color);
    border-radius: 100px;
    font-size: 0.75rem;
    font-weight: 600;
    letter-spacing: 0.05em;
    margin-bottom: 2rem;
    background: var(--card-bg);
    color: var(--text-secondary);
}

.badge-dot {
    width: 6px;
    height: 6px;
    background-color: var(--accent-color);
    border-radius: 50%;
    box-shadow: 0 0 8px var(--accent-color);
}

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

/* Waitlist Form */
.waitlist-form {
    display: flex;
    gap: 0.5rem;
    max-width: 400px;
    margin: 0 auto 1rem;
}

.waitlist-form input {
    flex: 1;
    background: rgba(0,0,0,0.5);
    border: 1px solid var(--border-color);
    padding: 0.75rem 1rem;
    border-radius: 8px;
    color: var(--text-primary);
    font-family: var(--font-sans);
    font-size: 1rem;
    outline: none;
    transition: border-color 0.2s;
}

.waitlist-form input:focus {
    border-color: var(--accent-color);
}

.btn-primary {
    background: var(--text-primary);
    color: var(--bg-color);
    border: none;
    padding: 0.75rem 1.5rem;
    border-radius: 8px;
    font-weight: 600;
    cursor: pointer;
    font-size: 1rem;
    transition: opacity 0.2s, transform 0.2s;
}

.btn-primary:hover {
    opacity: 0.9;
    transform: translateY(-1px);
}

.waitlist-hint {
    font-size: 0.85rem;
    color: var(--text-secondary);
}

/* Glow Cards */
.glow-card {
    position: relative;
    border-radius: 12px;
    background: var(--card-bg);
    border: 1px solid var(--border-color);
    padding: 1px; /* space for gradient border */
    overflow: hidden;
}

.glow-card::before {
    content: '';
    position: absolute;
    top: var(--y, 0);
    left: var(--x, 0);
    transform: translate(-50%, -50%);
    width: 600px;
    height: 600px;
    background: radial-gradient(var(--glow-color), transparent 40%);
    opacity: 0;
    transition: opacity 0.3s;
    z-index: 0;
    pointer-events: none;
}

.glow-card:hover::before {
    opacity: 0.15;
}

.glow-card-content {
    background: #09090b;
    border-radius: 11px;
    padding: 2rem;
    position: relative;
    z-index: 1;
    height: 100%;
}

/* Dynamic Apps */
.dynamic-apps {
    padding: 4rem 0;
}

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

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

.cards-grid {
    display: grid;
    grid-template-columns: repeat(3, 1fr);
    gap: 1.5rem;
}

.card-icon {
    font-size: 2rem;
    margin-bottom: 1rem;
}

.card-desc {
    color: var(--text-secondary);
    font-size: 0.95rem;
    margin-bottom: 1.5rem;
}

.card-code {
    background: #000;
    border: 1px solid var(--border-color);
    padding: 0.75rem;
    border-radius: 6px;
    font-family: var(--font-mono);
    font-size: 0.8rem;
    color: #34d399; /* Green accent */
}

/* Code CTA Section */
.code-cta {
    padding: 4rem 0 8rem;
}

.cta-box {
    width: 100%;
}

.cta-content {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 4rem;
    align-items: center;
    padding: 4rem;
}

.cta-text p {
    color: var(--text-secondary);
    font-size: 1.1rem;
}

.cta-code-window {
    background: #000;
    border: 1px solid var(--border-color);
    border-radius: 8px;
    overflow: hidden;
}

.window-header {
    display: flex;
    align-items: center;
    padding: 0.75rem 1rem;
    border-bottom: 1px solid var(--border-color);
    background: rgba(255,255,255,0.02);
}

.window-header span {
    width: 10px;
    height: 10px;
    border-radius: 50%;
    background: #333;
    margin-right: 6px;
}

.window-title {
    margin-left: auto;
    margin-right: auto;
    font-family: var(--font-mono);
    font-size: 0.75rem;
    color: var(--text-secondary);
}

pre {
    padding: 1.5rem;
    overflow-x: auto;
}

code {
    font-family: var(--font-mono);
    font-size: 0.85rem;
    color: #e4e4e7;
}

.keyword { color: #f472b6; } /* Pink */
.string { color: #34d399; } /* Green */

/* Footer */
footer {
    border-top: 1px solid var(--border-color);
    padding: 3rem 0;
    text-align: center;
}

.footer-logo {
    font-weight: 700;
    margin-bottom: 0.5rem;
}

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

/* Animations */
.animate-on-scroll {
    opacity: 0;
    transform: translateY(20px);
    transition: opacity 0.8s ease-out, transform 0.8s ease-out;
}

.animate-on-scroll.visible {
    opacity: 1;
    transform: translateY(0);
}

.delay-1 { transition-delay: 0.15s; }
.delay-2 { transition-delay: 0.3s; }

/* Responsive - Tablet */
@media (max-width: 900px) {
    h1.hero-title { font-size: 3rem; }
    h2 { font-size: 2rem; }
    .cards-grid { grid-template-columns: 1fr; max-width: 480px; margin: 0 auto; }
    .cta-content { grid-template-columns: 1fr; padding: 2rem; gap: 2rem; }
    .waitlist-form { flex-direction: column; }
    .hero { padding: 5rem 0 2rem; }
    .dynamic-apps { padding: 3rem 0; }
    .section-header { margin-bottom: 2.5rem; }
    .code-cta { padding: 3rem 0 5rem; }
}

/* Responsive - Mobile */
@media (max-width: 600px) {
    .container { padding: 0 1.25rem; }

    h1.hero-title {
        font-size: 2.25rem;
        letter-spacing: -0.03em;
    }

    h2 { font-size: 1.6rem; }
    h3 { font-size: 1.1rem; }

    .hero { padding: 4rem 0 1.5rem; }
    .hero-subtitle { font-size: 1.05rem; }

    .badge { font-size: 0.7rem; padding: 0.25rem 0.75rem; margin-bottom: 1.5rem; }

    .navbar { padding: 1rem 0; }
    nav a { font-size: 0.8rem; margin-left: 1.25rem; }

    .glow-card-content { padding: 1.5rem; }
    .card-icon { font-size: 1.5rem; margin-bottom: 0.75rem; }
    .card-desc { font-size: 0.9rem; margin-bottom: 0; }

    .cards-grid { gap: 1rem; }

    .section-header { margin-bottom: 2rem; }
    .section-header p { font-size: 1rem; }

    .cta-content { padding: 1.5rem !important; }
    .cta-text h2 { margin-bottom: 0.75rem; }
    .cta-text p { font-size: 1rem; }
    .code-cta { padding: 2rem 0 4rem; }

    footer { padding: 2rem 0; }
    footer p { font-size: 0.8rem; }
}
