@import url('https://fonts.googleapis.com/css2?family=Inter:wght@400;500;600;700;800;900&display=swap');

:root {
    --bg: #09090b; /* zinc-950 */
    --fg: #fafafa; /* zinc-50 */
    --zinc-50: #fafafa;
    --zinc-100: #f4f4f5;
    --zinc-200: #e4e4e7;
    --zinc-400: #a1a1aa;
    --zinc-500: #71717a;
    --zinc-600: #52525b;
    --zinc-700: #3f3f46;
    --zinc-800: #27272a;
    --zinc-900: #18181b;
    --zinc-950: #09090b;
    --font-sans: 'Inter', sans-serif;
    --font-mono: 'JetBrains Mono', monospace;
    --border: rgba(255, 255, 255, 0.1);
}

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

html {
    scroll-behavior: smooth;
}

::selection {
    background-color: var(--zinc-800);
    color: var(--zinc-50);
}

body {
    background-color: var(--bg);
    color: var(--fg);
    font-family: var(--font-sans);
    line-height: 1.5;
    -webkit-font-smoothing: antialiased;
}

.container {
    max-width: 896px; /* max-w-4xl */
    margin: 0 auto;
    padding: 0 1.5rem;
}

/* Navbar */
.navbar {
    border-bottom: 1px solid var(--border);
    position: sticky;
    top: 0;
    background: rgba(9, 9, 11, 0.8);
    backdrop-filter: blur(8px);
    z-index: 1000;
    height: 64px; /* h-16 */
    display: flex;
    align-items: center;
}

.navbar .container {
    display: flex;
    justify-content: space-between;
    align-items: center;
    width: 100%;
}

.site-logo {
    height: 32px; /* Kept from improved version */
    width: auto;
    filter: brightness(0) invert(1); /* Kept for visibility */
    display: block;
}

.nav-links {
    display: flex;
    gap: 1.5rem;
    font-size: 0.875rem;
}

.nav-link {
    color: var(--zinc-400);
    text-decoration: none;
    transition: color 0.2s;
    font-weight: 400;
}

.nav-link:hover {
    color: var(--zinc-50);
}

/* Hero */
.hero {
    padding: 6rem 0 8rem;
}

.hero-title {
    font-size: clamp(2.5rem, 8vw, 3.5rem);
    font-weight: 600;
    letter-spacing: -0.05em;
    line-height: 1.1;
    margin-bottom: 1.5rem;
    color: var(--zinc-50);
}

.hero-subtitle {
    max-width: 42rem;
    font-size: 1.125rem;
    color: var(--zinc-400);
    line-height: 1.625;
    margin-bottom: 2.5rem;
}

.hero-cta {
    display: flex;
    flex-wrap: wrap;
    gap: 1rem;
}

.btn {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    padding: 0.75rem 2rem;
    font-size: 0.95rem;
    font-weight: 500;
    border-radius: 9999px;
    transition: all 0.2s;
    text-decoration: none;
    cursor: pointer;
}

.btn-primary {
    background: var(--zinc-50);
    color: var(--zinc-950);
}

.btn-primary:hover {
    background: var(--zinc-200);
}

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

.btn-secondary:hover {
    background: var(--zinc-900);
}

/* Live Terminal */
.live-terminal {
    margin-bottom: 8rem;
}

.terminal-window {
    background: var(--zinc-950);
    border-radius: 1.5rem;
    overflow: hidden;
    border: 1px solid var(--border);
    box-shadow: 0 25px 50px -12px rgba(0, 0, 0, 0.5);
}

.terminal-header {
    background: var(--zinc-900);
    padding: 0.75rem 1.25rem;
    display: flex;
    justify-content: space-between;
    align-items: center;
    border-bottom: 1px solid var(--border);
}

.terminal-title {
    font-family: var(--font-mono);
    font-size: 0.75rem;
    color: var(--zinc-500);
}

.terminal-controls {
    display: flex;
    gap: 6px;
}

.terminal-controls span {
    width: 8px;
    height: 8px;
    border-radius: 50%;
    background: var(--zinc-800);
}

.terminal-body {
    padding: 2rem;
    font-family: var(--font-mono);
    font-size: 0.875rem;
    line-height: 1.7;
    color: var(--zinc-200);
}

.t-blue { color: #60a5fa; }
.t-green { color: #4ade80; }
.t-purple { color: #c084fc; }

.cursor {
    display: inline-block;
    width: 8px;
    height: 1.2em;
    background: var(--zinc-50);
    animation: blink 1s step-end infinite;
}

@keyframes blink { 50% { opacity: 0; } }

/* Dashboard Preview */
.dashboard-preview {
    padding: 4rem 0 8rem;
}

.section-label {
    font-size: 0.875rem;
    font-weight: 500;
    color: var(--zinc-500);
    text-transform: uppercase;
    letter-spacing: 0.05em;
    margin-bottom: 1rem;
}

.image-frame {
    border-radius: 1.5rem;
    overflow: hidden;
    border: 1px solid var(--border);
    background: var(--zinc-900);
}

.main-screenshot {
    display: block;
    width: 100%;
    height: auto;
    opacity: 0.9;
}

/* Architecture Grid */
.arch-deep-dive {
    padding: 8rem 0;
    border-top: 1px solid var(--border);
}

.arch-grid {
    display: grid;
    grid-template-columns: repeat(2, 1fr);
    gap: 4rem 3rem;
}

.arch-card {
    display: flex;
    flex-direction: column;
}

.arch-card h3 {
    font-size: 1rem;
    font-weight: 500;
    color: var(--zinc-50);
    margin-bottom: 0.5rem;
}

.arch-card p {
    font-size: 0.875rem;
    color: var(--zinc-400);
    line-height: 1.6;
}

/* Quick Deploy */
.quick-deploy {
    padding: 4rem;
    background: var(--zinc-900);
    border: 1px solid var(--border);
    border-radius: 1.5rem;
    margin-bottom: 8rem;
}

.deploy-title {
    font-size: 1.5rem;
    font-weight: 600;
    margin-bottom: 2rem;
    color: var(--zinc-50);
}

.code-block {
    display: flex;
    align-items: center;
    background: var(--zinc-950);
    padding: 0.75rem 1.25rem;
    border-radius: 0.75rem;
    border: 1px solid var(--zinc-800);
    font-family: var(--font-mono);
    font-size: 1rem;
    margin-bottom: 2rem;
    overflow: hidden; /* Prevent overflow */
}

.code-block code {
    flex: 1;
    color: var(--zinc-200);
    white-space: pre-wrap; /* Allow wrapping for mobile */
    word-break: break-all; /* Break long URLs if necessary */
}

.copy-btn {
    background: var(--zinc-50);
    color: var(--zinc-950);
    border: none;
    padding: 0.4rem 0.75rem;
    border-radius: 0.5rem;
    font-family: var(--font-sans);
    font-size: 0.75rem;
    font-weight: 600;
    cursor: pointer;
    margin-left: 1rem;
    flex-shrink: 0;
    align-self: flex-start; /* Keep button at top if code wraps */
}

.copy-btn:hover {
    background: var(--zinc-200);
}

.subtext {
    color: var(--zinc-500);
    font-size: 0.875rem;
}

/* Footer */
.footer {
    padding: 3rem 0;
    border-top: 1px solid var(--border);
    color: var(--zinc-500);
    font-size: 0.875rem;
}

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

.footer-social {
    display: flex;
    gap: 2rem;
}

.footer-social a {
    color: var(--zinc-500);
    text-decoration: none;
    transition: color 0.2s;
}

.footer-social a:hover {
    color: var(--zinc-50);
}

/* Mobile Adjustments */
@media (max-width: 768px) {
    .arch-grid {
        grid-template-columns: 1fr;
        gap: 2.5rem;
    }
    
    .hero {
        padding: 4rem 0;
    }

    .quick-deploy {
        padding: 2.5rem 1.5rem;
    }

    .code-block {
        flex-direction: column; /* Stack vertically on mobile */
        align-items: flex-start;
        gap: 1rem;
        padding: 1rem;
    }

    .code-block code {
        width: 100%;
    }

    .copy-btn {
        margin-left: 0;
        width: 100%; /* Full width button on mobile for easier tapping */
        text-align: center;
    }

    .footer-wrap {
        flex-direction: column;
        gap: 1.5rem;
        text-align: center;
    }
}




