:root {
    --bg-color: #fcfcfc;
    --text-main: #111827;
    --text-muted: #4b5563;
    --border-color: #e5e7eb;
    --bg-muted: #f3f4f6;
    --accent: #2563eb;
    --accent-hover: #1d4ed8;
    --radius: 8px;
    --font-stack: -apple-system, BlinkMacSystemFont, "Segoe UI", Roboto, Helvetica, Arial, sans-serif;
}

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

body {
    font-family: var(--font-stack);
    background-color: var(--bg-color);
    color: var(--text-main);
    line-height: 1.6;
    -webkit-font-smoothing: antialiased;
}

h1, h2, h3 {
    line-height: 1.2;
    letter-spacing: -0.02em;
    font-weight: 600;
}

a {
    color: var(--accent);
    text-decoration: none;
    transition: color 0.2s ease;
}

a:hover {
    color: var(--accent-hover);
}

code {
    font-family: ui-monospace, SFMono-Regular, Menlo, Monaco, Consolas, "Liberation Mono", monospace;
    font-size: 0.92em;
}

.container {
    max-width: 1024px;
    margin: 0 auto;
    padding: 0 1.5rem;
}

.container.narrow {
    max-width: 768px;
}

.section {
    padding: 5rem 0;
}

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

.top-nav {
    padding: 1.5rem 0;
    border-bottom: 1px solid var(--border-color);
    background: rgba(252, 252, 252, 0.9);
    backdrop-filter: blur(8px);
    position: sticky;
    top: 0;
    z-index: 10;
}

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

.brand {
    display: inline-flex;
    align-items: center;
    gap: 0.8rem;
    font-weight: 600;
    font-size: 1.125rem;
    letter-spacing: -0.01em;
    color: var(--accent);
}

.brand-mark {
    width: 2.5rem;
    height: 2.5rem;
    object-fit: contain;
    flex-shrink: 0;
}

.nav-links {
    display: flex;
    flex-wrap: wrap;
    justify-content: flex-end;
    gap: 1.5rem;
}

.nav-links a {
    color: var(--text-muted);
    font-size: 0.95rem;
}

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

.hero {
    padding: 8rem 0 6rem;
    text-align: center;
}

.hero-title {
    font-size: clamp(2.5rem, 5vw, 4rem);
    max-width: 800px;
    margin: 0 auto 1.5rem;
}

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

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

.button {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    padding: 0.75rem 1.5rem;
    border-radius: var(--radius);
    font-weight: 500;
    font-size: 1rem;
    transition: all 0.2s ease;
    cursor: pointer;
}

.button.primary {
    background-color: var(--text-main);
    color: #fff;
    border: 1px solid var(--text-main);
}

.button.primary:hover {
    background-color: #000;
    transform: translateY(-1px);
}

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

.button.secondary:hover {
    background-color: var(--bg-muted);
    border-color: #d1d5db;
}

.button.outline {
    background: transparent;
    border: 1px solid var(--border-color);
    color: var(--text-main);
}

.button.outline:hover {
    border-color: var(--text-main);
}

.mt-4 { margin-top: 1.5rem; }

.scrubber-demo {
    max-width: 400px;
    margin: 0 auto;
    position: relative;
    padding: 1rem 0;
}

.scrubber-frames {
    display: flex;
    gap: 4px;
    height: 48px;
    background: var(--bg-muted);
    padding: 4px;
    border-radius: 6px;
    border: 1px solid var(--border-color);
}

.frame {
    flex: 1;
    background: #e5e7eb;
    border-radius: 2px;
}

.scrubber-playhead {
    position: absolute;
    top: 0;
    bottom: 0;
    width: 2px;
    background-color: var(--accent);
    left: 0;
    animation: scrub 4s ease-in-out infinite alternate;
    box-shadow: 0 0 8px rgba(37, 99, 235, 0.4);
}

@keyframes scrub {
    0% { transform: translateX(10px); }
    100% { transform: translateX(390px); }
}

.lead-text {
    font-size: 1.25rem;
    font-weight: 400;
    color: var(--text-main);
}

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

.section-title {
    margin-bottom: 2rem;
    font-size: 1.75rem;
}

.demo-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(300px, 1fr));
    gap: 1.5rem;
}

.demo-card {
    border: 1px solid var(--border-color);
    border-radius: var(--radius);
    overflow: hidden;
    background: #fff;
    transition: box-shadow 0.2s ease, transform 0.2s ease;
    display: flex;
    flex-direction: column;
    text-decoration: none;
    color: inherit;
}

.demo-card:hover {
    box-shadow: 0 10px 15px -3px rgba(0,0,0,0.05);
    transform: translateY(-2px);
    color: inherit;
}

.demo-thumb {
    aspect-ratio: 16 / 9;
    background: var(--bg-muted);
    border-bottom: 1px solid var(--border-color);
    display: flex;
    align-items: center;
    justify-content: center;
    color: var(--text-muted);
    font-size: 0.875rem;
}

.demo-content {
    padding: 1.25rem;
    flex: 1;
}

.demo-header {
    display: flex;
    justify-content: space-between;
    align-items: flex-start;
    margin-bottom: 0.5rem;
    gap: 0.5rem;
}

.demo-title {
    font-size: 1.125rem;
    font-weight: 500;
}

.demo-badge {
    font-size: 0.75rem;
    background: var(--bg-muted);
    padding: 0.15rem 0.5rem;
    border-radius: 99px;
    color: var(--text-muted);
    border: 1px solid var(--border-color);
    white-space: nowrap;
}

.demo-desc {
    font-size: 0.95rem;
    color: var(--text-muted);
}

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

.flow-step h3 {
    font-size: 1.125rem;
    margin-bottom: 0.5rem;
}

.flow-step p {
    color: var(--text-muted);
    font-size: 0.95rem;
}

.text-block p {
    margin-bottom: 1.25rem;
    font-size: 1.05rem;
}

.install-card {
    background: #fff;
    border: 1px solid var(--border-color);
    padding: 2.5rem;
    border-radius: var(--radius);
    text-align: center;
}

.install-card h2 { margin-bottom: 1rem; }
.install-card p { color: var(--text-muted); margin-bottom: 0.5rem; }

.bb-header {
    display: flex;
    align-items: baseline;
    gap: 1rem;
    margin-bottom: 1rem;
    flex-wrap: wrap;
}

.bb-header .section-title {
    margin-bottom: 0;
}

.bb-badge {
    font-size: 0.75rem;
    text-transform: uppercase;
    letter-spacing: 0.05em;
    color: var(--text-muted);
    border: 1px solid var(--border-color);
    padding: 0.2rem 0.6rem;
    border-radius: 4px;
}

.browserbox-section p {
    margin-bottom: 1rem;
}

.small-text {
    font-size: 0.875rem;
    color: var(--text-muted);
}

.link-arrow {
    display: inline-block;
    margin-top: 0.5rem;
    font-weight: 500;
}

.faq-item {
    border-bottom: 1px solid var(--border-color);
    padding: 1.5rem 0;
}

.faq-item:last-child {
    border-bottom: none;
}

.faq-q {
    font-weight: 500;
    font-size: 1.125rem;
    margin-bottom: 0.5rem;
}

.faq-a {
    color: var(--text-muted);
}

.site-footer {
    border-top: 1px solid var(--border-color);
    padding: 3rem 0;
    margin-top: 4rem;
}

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

.footer-left {
    display: flex;
    align-items: center;
    gap: 1rem;
    flex-wrap: wrap;
}

.built-by {
    color: var(--text-muted);
    font-size: 0.9rem;
}

.footer-links a {
    color: var(--text-muted);
    font-size: 0.9rem;
}

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

.footer-links {
    display: flex;
    flex-wrap: wrap;
    gap: 1.5rem;
}

@media (max-width: 640px) {
    .hero { padding: 4rem 0; }
    .hero-ctas { flex-direction: column; }
    .nav-container { align-items: flex-start; }
    .nav-links { gap: 1rem; }
    .footer-content { flex-direction: column; align-items: flex-start; }
    @keyframes scrub {
        0% { transform: translateX(10px); }
        100% { transform: translateX(calc(100vw - 60px)); }
    }
    .scrubber-demo { max-width: 100%; }
}
