* {
    margin: 0;
    padding: 0;
    box-sizing: border-box;
}

body {
    background: var(--theme-bg);
    color: var(--text);
    line-height: 1.7;
    font-size: 16px;
}

.container {
    max-width: 960px;
    margin: 0 auto;
    z-index: 3;
}

nav {
    /* background: rgba(253, 251, 246, 0.80); */
    background: var(--theme-bg);
    /* padding: 12px 0; */
    position: sticky;
    top: 0;
    z-index: 100;
    backdrop-filter: blur(40px);
}

nav .container {
    display: flex;
    justify-content: space-between;
    align-items: center;
}

nav .logo {
    font-size: 18px;
    font-weight: 600;
    color: var(--text);
    letter-spacing: -0.02em;
    font-family: 'Inter';
    letter-spacing: -0.6px;
}

nav .logo span {
    color: var(--text-muted);
    font-weight: 400;
}

nav ul {
    display: flex;
    gap: 16px;
    list-style: none;
    align-items: center;
}

nav a {
    color: var(--text-muted);
    text-decoration: none;
    transition: color 0.2s;
    font-size: 14px;
    letter-spacing: -0.2px;
    font-family: 'Inter';
    line-height: 50px;
    display: block;
    height: 50px;
}

nav a:hover {
    color: var(--text);
}

.hero {
    padding: 0px 24px 100px;
    text-align: center;
    height: 100vh;
    display: flex;
    align-items: center;
    justify-content: center;
    border-bottom: solid 1px var(--border);
}

.hero-content {
    width: 100%;
}

.hero h1 {
    font-size: 4rem;
    margin-bottom: 10px;
    font-weight: 530;
    letter-spacing: -2px;
    line-height: 1.05;
}

.hero .tagline {
    font-size: 1.1rem;
    color: var(--text);
    margin-bottom: 32px;
    font-weight: 480;
    letter-spacing: -0.2px;
}

.hero .subtitle {
    font-size: 1rem;
    color: var(--text-muted);
    font-weight: 400;
    max-width: 500px;
    margin-left: auto;
    margin-right: auto;
    line-height: 1.6;
    font-family: 'Inter';
    letter-spacing: -0.4px;
}

.bouncing-blob {
    width: 32vw;
    aspect-ratio: 1;
    border-radius: 50%;
    will-change: transform;
    position: absolute;
    z-index: 1;
    top: 0;
    left: 0;
    transform-origin: left top;
}

.bouncing-blob--blue {
    background: #ebf8f4;
}

.bouncing-blob--white {
    background: #ffffff;
    z-index: 2;
    width: 15vw;
}

.bouncing-blob--purple {
    background: #f6f1ff;
}

.bouncing-blob--pink {
    background: #fff1f0;
}

.bouncing-blobs-container {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    margin-top: 50px;
}

.bouncing-blobs-glass {
    position: absolute;
    z-index: 2;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    backdrop-filter: blur(140px);
    -webkit-backdrop-filter: blur(140px);
    pointer-events: none;
}

.bouncing-blobs {
    position: absolute;
    z-index: 1;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
}

.buttons {
    display: flex;
    gap: 12px;
    justify-content: center;
    margin-top: 38px;
}

.btn {
    padding: 0.6rem 1rem;
    padding-bottom: 0.5rem;
    border-radius: 100vmax;
    text-decoration: none;
    font-weight: 500;
    transition: all 0.2s;
    display: inline-block;
    font-size: 0.95rem;
    line-height: 1;

    box-shadow: var(--shadow);
}

.btn-primary {
    background: var(--text);
    color: var(--theme-bg);
}

.btn-primary:hover {
    background: var(--text-muted);
}

.btn-secondary {
    background: rgba(253, 251, 246, 0.45);
    color: var(--text);
    border: 1px solid var(--border);
}

.btn-secondary:hover {
    border-color: var(--text);
}

.hero .stats {
    display: flex;
    gap: 42px;
    justify-content: center;
    margin-top: 64px;
    flex-wrap: wrap;
}

.stat-item {
    text-align: center;
}

.stat-item .number {
    font-size: 2.25rem;
    font-weight: 500;
    color: var(--text);
    font-family: 'Inter';
    letter-spacing: -0.02em;
    line-height: 1;
}

.stat-item .label {
    color: var(--text-muted);
    font-size: 0.9rem;
    margin-top: 12px;
    font-family: 'Inter';
    letter-spacing: -0.3px;
}

section {
    padding: 64px 24px;
}

section h2 {
    font-size: 2.2rem;
    margin-bottom: 12px;
    font-weight: 530;
    letter-spacing: -1px;
    line-height: 1;
}

.container p {
    line-height: 1.6;
    font-family: 'Inter';
    letter-spacing: -0.4px;
    color: var(--text-muted);
}

section>p {
    color: var(--text-muted);
    margin-bottom: 48px;
    font-size: 1.05rem;
}

/* Features */
.features {
    background: var(--white);
    border-top: 1px solid var(--border);
    border-bottom: 1px solid var(--border);
}

.feature-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(280px, 1fr));
    gap: 40px 32px;
    margin-top: 42px;
}

.feature-card {
    padding: 0;
}

.feature-card .icon {
    width: 30px;
    height: 30px;
    margin-bottom: 16px;
    opacity: 0.7;
    stroke: currentColor;
    stroke-width: 1.5;
}

.feature-card h3 {
    font-size: 1.05rem;
    margin-bottom: 8px;
    font-weight: 600;
    color: var(--text);
}

.feature-card p {
    line-height: 1.6;
    font-family: 'Inter';
    letter-spacing: -0.4px;
    color: var(--text-muted);
    font-size: 13.5px;
}

.example-tabs {
    display: flex;
    gap: 16px;
    margin: 24px 0px;
    margin-bottom: 32px;
    border-bottom: 1px solid var(--border);
}

.tab-btn {
    background: transparent;
    border: none;
    color: var(--text-muted);
    padding: 0.8rem 0;
    cursor: pointer;
    font-size: 14px;
    border-bottom: 2px solid transparent;
    transition: all 0.2s;
    font-weight: 500;
    font-family: 'Inter';
    letter-spacing: -0.2px;
}

.tab-btn:hover {
    color: var(--text);
}

.tab-btn.active {
    color: var(--text);
    border-bottom-color: var(--text);
}

.tab-content {
    display: none;
}

.tab-content.active {
    display: block;
}

pre {
    background: var(--code);
    padding: 18px;
    border-radius: 8px;
    overflow-x: auto;
    border: 1px solid var(--border);
    line-height: 1.6;
}

code {
    color: var(--text);
    font-family: 'Consolas', 'SF Mono', 'Monaco', monospace;
    font-size: 0.88rem;
}

.keyword {
    color: #0000ff;
}

.string {
    color: #a31515;
}

.function {
    color: #795e26;
}

.comment {
    color: #008000;
}

.number {
    color: #098658;
}

.api {
    background: var(--white);
    border-top: 1px solid var(--border);
}

.api-list {
    margin-top: 48px;
}

.api-item {
    background: var(--theme-bg);
    margin-bottom: 48px;
}

.api-item h3 {
    color: var(--text);
    margin-bottom: 12px;
    font-family: 'Consolas', monospace;
    font-size: 1.5rem;
    font-weight: 600;
}

.api-item>p {
    color: var(--text-muted);
    margin-bottom: 16px;
    font-size: 0.95rem;
}

.api-item .params {
    background: var(--white);
    padding: 16px;
    border-radius: 8px;
    margin: 16px 0;
    font-family: 'Consolas', monospace;
    font-size: 0.85rem;
    border: 1px solid var(--border);
    line-height: 1.6;
}

footer {
    background: var(--theme-bg);
    padding: 24px 24px;
    text-align: center;
    border-top: 1px solid var(--border);
}

footer p {
    color: var(--text-muted);
    font-size: 0.9rem;
    margin-bottom: 8px;
}

footer a {
    color: var(--text);
    text-decoration: none;
    border-bottom: 1px solid var(--border);
    transition: border-color 0.2s;
}

footer a:hover {
    border-bottom-color: var(--text);
}

@media (max-width: 960px) {
    .container {
        padding: 0 16px;
    }
}

@media (max-width: 768px) {
    .hero {
        min-height: auto;
        padding: 10px 24px 50px;
    }

    .hero h1 {
        font-size: 2.8rem;
        letter-spacing: -1px;
        margin-bottom: 1rem;
        text-align: left;
    }

    .hero .tagline {
        font-size: 0.9rem;
        text-align: left;
    }

    .hero .subtitle {
        font-size: 0.95rem;
        text-align: left;
    }

    .hero .stats {
        gap: 24px;
    }

    nav {
        padding: 0rem 1rem;
        /* border-bottom: solid 1px var(--border); */
    }

    nav .container {
        flex-direction: column;
    }

    nav .logo {
        display: none;
    }

    nav ul {
        gap: 16px;
    }

    nav a {
        font-size: 0.85rem;
        height: 45px;
        line-height: 45px;
    }

    .buttons {
        flex-direction: column;
        width: 100%;
    }

    .btn {
        width: 100%;
        padding: 0.75rem 0;
    }

    section {
        padding: 60px 24px;
    }

    section h2 {
        font-size: 2.6rem;
    }

    .feature-grid {
        grid-template-columns: 1fr;
        gap: 28px;
    }

    pre {
        padding: 20px;
    }
}

@media (max-width: 480px) {
    .hero h1 {
        font-size: 3.4rem;
    }

    .stat-item .number {
        font-size: 2rem;
    }
}

@media (prefers-reduced-motion: no-preference) {
    .feature-card {
        transition: transform 0.2s;
    }
}

@media (max-width: 1200px) {
    .bouncing-blobs-glass {
        backdrop-filter: blur(120px);
        -webkit-backdrop-filter: blur(120px);
    }
}

@media (max-width: 500px) {
    .bouncing-blobs-glass {
        backdrop-filter: blur(90px);
        -webkit-backdrop-filter: blur(90px);
    }
}