* { margin: 0; padding: 0; box-sizing: border-box; }
html { scroll-behavior: smooth; }
a { text-decoration: none; color: inherit; }

body {
    font-family: -apple-system, BlinkMacSystemFont, 'Segoe UI', Roboto, sans-serif;
    background: #0c0c0b;
    color: #a5a39d;
    line-height: 1.6;
    font-size: 15px;
}

#canvas {
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    z-index: 0;
    pointer-events: none;
}

/* Header */
.header {
    position: fixed;
    top: 0;
    left: 0;
    right: 0;
    z-index: 100;
    height: 60px;
    background: rgba(12, 12, 11, 0.85);
    backdrop-filter: blur(20px);
    border-bottom: 1px solid rgba(255,252,240,0.06);
}

.header-inner {
    max-width: 80rem;
    margin: 0 auto;
    padding: 0 1rem;
    height: 100%;
    display: flex;
    justify-content: space-between;
    align-items: center;
}

.logo {
    display: flex;
    align-items: center;
    gap: 0.5rem;
    font-size: 1.125rem;
    font-weight: 600;
    text-decoration: none;
    color: #b5b3af;
}

.logo img {
    height: 28px;
    width: auto;
}

.header-nav {
    display: flex;
    align-items: center;
    gap: 1.25rem;
}

.header-link {
    font-size: 0.875rem;
    color: #6b6963;
    text-decoration: none;
    transition: color 0.15s;
}

.header-link:hover { color: #b5b3af; }

.btn {
    display: inline-flex;
    align-items: center;
    gap: 6px;
    padding: 8px 16px;
    font-size: 14px;
    border-radius: 6px;
    transition: all 0.15s;
    font-weight: 500;
    border: none;
    cursor: pointer;
}

.btn-primary {
    background: #faf9f6;
    color: #0c0c0b;
}

.btn-primary:hover { background: #e4e4e7; }

.btn-ghost {
    background: transparent;
    color: #6b6963;
}

.btn-ghost:hover { color: #faf9f6; }

/* Hero */
.hero {
    position: relative;
    z-index: 1;
    min-height: 100vh;
    display: flex;
    align-items: center;
    justify-content: center;
    padding: 120px 2rem 80px;
}

.hero-content {
    max-width: 640px;
    text-align: center;
}

.hero h1 {
    font-size: 3.5rem;
    font-weight: 500;
    color: #faf9f6;
    margin-bottom: 20px;
    letter-spacing: -0.03em;
    line-height: 1.1;
    white-space: nowrap;
}

.hero-tagline {
    font-size: 1.125rem;
    color: #6b6963;
    margin-bottom: 32px;
    line-height: 1.7;
}

.hero-cta {
    display: flex;
    gap: 12px;
    justify-content: center;
}

.hero-cta .btn { padding: 12px 24px; }

.scroll-indicator {
    position: absolute;
    bottom: 40px;
    left: 50%;
    transform: translateX(-50%);
    color: #3f3f46;
    font-size: 11px;
    letter-spacing: 0.15em;
    text-transform: uppercase;
}

/* Sections */
section {
    position: relative;
    z-index: 1;
    background: #0c0c0b;
}

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

.section-header {
    margin-bottom: 48px;
}

.section-label {
    font-size: 12px;
    font-weight: 500;
    letter-spacing: 0.1em;
    text-transform: uppercase;
    color: #52525b;
    margin-bottom: 12px;
}

.section-title {
    font-size: 1.875rem;
    font-weight: 600;
    color: #faf9f6;
    letter-spacing: -0.02em;
}

.section-desc {
    font-size: 1rem;
    color: #6b6963;
    max-width: 480px;
    margin-top: 12px;
}

.divider {
    height: 1px;
    background: #1a1a18;
}

/* Clients */
.clients {
    position: relative;
    z-index: 1;
    background: #0c0c0b;
    padding: 32px 2rem;
}

.clients-inner {
    max-width: 1100px;
    margin: 0 auto;
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 32px;
}

.clients-label {
    font-size: 12px;
    letter-spacing: 0.1em;
    text-transform: uppercase;
    color: #3f3f46;
}

.clients-logos {
    display: flex;
    align-items: center;
    gap: 24px;
}

.clients-logos img {
    height: 18px;
    opacity: 0.3;
    filter: grayscale(1) brightness(2);
    transition: opacity 0.15s;
}

.clients-logos img:hover { opacity: 0.5; }

/* Grid */
.grid-4 {
    display: grid;
    grid-template-columns: repeat(4, 1fr);
    gap: 1px;
    background: #1a1a18;
    border-radius: 12px;
    overflow: hidden;
}

.grid-4 > div {
    background: #121211;
    padding: 28px 24px;
}

.grid-4 i {
    font-size: 20px;
    color: #5c5a55;
    margin-bottom: 14px;
    display: block;
}

.grid-4 h4 {
    font-size: 15px;
    font-weight: 500;
    color: #e8e6e1;
    margin-bottom: 6px;
}

.grid-4 p {
    font-size: 14px;
    color: #6b6963;
    line-height: 1.5;
}

/* Code blocks */
.code-block {
    background: #0d0d0c;
    border: 1px solid #1a1a18;
    border-radius: 12px;
    padding: 24px;
    overflow-x: auto;
}

.code-block pre {
    font-family: 'SF Mono', Consolas, monospace;
    font-size: 13px;
    color: #a5a39d;
    line-height: 1.7;
}

.code-block .kw { color: #f97316; }
.code-block .fn { color: #fbbf24; }
.code-block .str { color: #a5d6a7; }
.code-block .cm { color: #5c5a55; }
.code-block .tp { color: #3b82f6; }
.code-block .ky { color: #60a5fa; }

/* Highlight sections */
.highlight {
    position: relative;
    z-index: 1;
    background: #0c0c0b;
}

.highlight-grid {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 64px;
    align-items: center;
}

.highlight-label {
    display: inline-block;
    font-size: 12px;
    font-weight: 500;
    letter-spacing: 0.1em;
    text-transform: uppercase;
    color: #52525b;
    margin-bottom: 12px;
}

.highlight-text h3 {
    font-size: 1.75rem;
    font-weight: 600;
    color: #faf9f6;
    margin-bottom: 20px;
    letter-spacing: -0.02em;
}

.highlight-list {
    list-style: none;
}

.highlight-list li {
    font-size: 15px;
    color: #a5a39d;
    padding: 6px 0;
    padding-left: 20px;
    position: relative;
}

.highlight-list li::before {
    content: "";
    position: absolute;
    left: 0;
    top: 14px;
    width: 6px;
    height: 1px;
    background: #52525b;
}

.highlight-list a {
    color: #a5a39d;
    text-decoration: underline;
    text-underline-offset: 3px;
    text-decoration-color: #3f3f46;
}

.highlight-list a:hover { color: #faf9f6; }

/* Composable */
.composable-grid {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 48px;
    align-items: center;
}

.graph-container {
    height: 220px;
    overflow: hidden;
}

.hub-features {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 16px;
}

.hub-card {
    padding: 20px;
    background: #0f0f0e;
    border: 1px solid #1a1a18;
    border-radius: 10px;
    transition: border-color 0.15s;
}

.hub-card:hover {
    border-color: #3f3f46;
}

.hub-card i {
    font-size: 18px;
    color: #52525b;
    margin-bottom: 12px;
    display: block;
}

.hub-card h4 {
    font-size: 14px;
    font-weight: 500;
    color: #e4e4e7;
    margin-bottom: 4px;
}

.hub-card p {
    font-size: 13px;
    color: #6b6963;
}

.hub-browse {
    grid-column: 1 / -1;
    display: inline-flex;
    align-items: center;
    justify-content: center;
    gap: 8px;
    padding: 14px 24px;
    background: #faf9f6;
    color: #0c0c0b;
    font-weight: 500;
    font-size: 14px;
    border-radius: 8px;
    transition: background 0.15s;
}

.hub-browse:hover { background: #e4e4e7; }

.hub-browse i { font-size: 16px; }

/* Graph */
.graph-node { cursor: grab; }
.graph-node:active { cursor: grabbing; }
.graph-node circle { stroke: #3f3f46; stroke-width: 1px; }
.graph-node text { font-size: 10px; fill: #6b6963; pointer-events: none; }
.graph-link { stroke: #252420; stroke-width: 1px; }

/* Install */
.install-block {
    text-align: center;
    margin-top: 40px;
}

.install-code {
    display: inline-block;
    background: #0f0f0e;
    border: 1px solid #1a1a18;
    padding: 12px 20px;
    border-radius: 8px;
    font-family: 'SF Mono', Consolas, monospace;
    font-size: 13px;
    color: #a5a39d;
    cursor: pointer;
    transition: all 0.15s;
}

.install-code:hover {
    border-color: #3f3f46;
    color: #e4e4e7;
}

.install-code.copied {
    border-color: #f97316;
    color: #f97316;
}

.install-alt {
    display: block;
    margin-top: 14px;
    font-size: 13px;
    color: #52525b;
    transition: color 0.15s;
}

.install-alt:hover { color: #a5a39d; }

/* CTA */
.cta-section {
    text-align: center;
    padding: 72px 2rem;
}

.cta-section .section-title { margin-bottom: 12px; }
.cta-section .section-desc { margin: 0 auto 28px; }

/* Footer */
.footer {
    position: relative;
    z-index: 1;
    background: #0c0c0b;
    border-top: 1px solid #1a1a18;
}

.footer-main {
    max-width: 80rem;
    margin: 0 auto;
    padding: 48px 2rem;
    display: grid;
    grid-template-columns: 1fr auto auto;
    gap: 48px;
    align-items: start;
}

.footer-brand {
    display: flex;
    align-items: center;
    gap: 12px;
}

.footer-brand img { height: 22px; width: auto; max-height: 22px; }

.footer-brand span {
    font-size: 13px;
    color: #5c5a55;
}

.footer-brand a {
    color: #6b6963;
    transition: color 0.15s;
}

.footer-brand a:hover { color: #faf9f6; }

.footer-columns {
    display: flex;
    gap: 64px;
}

.footer-column {
    display: flex;
    flex-direction: column;
    gap: 10px;
}

.footer-column h4 {
    font-size: 12px;
    font-weight: 600;
    text-transform: uppercase;
    letter-spacing: 0.05em;
    color: #6b6963;
    margin-bottom: 4px;
}

.footer-column a {
    font-size: 14px;
    color: #5c5a55;
    transition: color 0.15s;
}

.footer-column a:hover { color: #faf9f6; }

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

.footer-social a {
    color: #5c5a55;
    font-size: 20px;
    transition: color 0.15s;
}

.footer-social a:hover { color: #faf9f6; }

.footer-copyright {
    text-align: center;
    padding: 16px 2rem;
    font-size: 12px;
    color: #4a4843;
    border-top: 1px solid #1a1a18;
}

@media (max-width: 768px) {
    .footer-main {
        grid-template-columns: 1fr;
        gap: 32px;
    }
    .footer-columns {
        flex-direction: column;
        gap: 24px;
    }
}

/* Responsive */
@media (max-width: 1024px) {
    .grid-4 { grid-template-columns: repeat(2, 1fr); }
    .hub-features { grid-template-columns: 1fr; }
}

@media (max-width: 768px) {
    .header-nav { display: none; }
    .hero h1 { font-size: 2rem; }
    .grid-4 { grid-template-columns: 1fr; }
    .section-content { padding: 64px 1.5rem; }
    .highlight-grid { grid-template-columns: 1fr; gap: 32px; }
    .composable-grid { grid-template-columns: 1fr; }
}
