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

:root {
    --black: #0a0a0a;
    --white: #ffffff;
    --bg: #ffffff;
    --gray-50: #f5f5f5;
    --gray-100: #f0f0f0;
    --gray-200: #e5e5e5;
    --gray-300: #d4d4d4;
    --muted: #a4a4a4;
    --text-secondary: #666666;
    --text-primary: #0a0a0a;
    --blue: #2563eb;
    --blue-light: #3b82f6;
    --blue-bg: #eff6ff;
    --blue-border: #bfdbfe;
    --sans: "Instrument Sans", -apple-system, BlinkMacSystemFont, "Segoe UI",
        sans-serif;
    --mono: "JetBrains Mono", "SF Mono", "Fira Code", monospace;
    --radius: 10px;
    --radius-lg: 16px;
}

html {
    font-size: 16px;
    scroll-behavior: smooth;
    -webkit-font-smoothing: antialiased;
    -moz-osx-font-smoothing: grayscale;
}

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

::selection {
    background: var(--blue);
    color: var(--white);
}

a {
    color: inherit;
    text-decoration: none;
    transition: color 0.2s;
}

/* ---- NAV ---- */

.nav-wrapper {
    position: fixed;
    top: 24px;
    left: 50%;
    transform: translateX(-50%);
    z-index: 100;
}

nav {
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 2rem;
    padding: 0.65rem 1.25rem;
    background: rgba(255, 255, 255, 0.8);
    backdrop-filter: blur(16px);
    -webkit-backdrop-filter: blur(16px);
    border: 1px solid var(--gray-200);
    border-radius: 100px;
}

nav .logo {
    display: flex;
    align-items: center;
    gap: 0.5rem;
    font-weight: 600;
    font-size: 0.95rem;
    letter-spacing: -0.02em;
    flex-shrink: 0;
}

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

.nav-links {
    display: flex;
    align-items: center;
    gap: 1.5rem;
}

.nav-links a {
    font-size: 0.875rem;
    color: var(--text-secondary);
    transition: color 0.2s;
}

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

.nav-cta {
    display: inline-flex;
    align-items: center;
    gap: 0.4rem;
    padding: 0.5rem 1rem;
    background: var(--black);
    color: var(--white) !important;
    font-size: 0.875rem;
    font-weight: 500;
    border-radius: 8px;
    transition: background 0.2s;
    white-space: nowrap;
}

.nav-cta:hover {
    background: #1a1a1a;
    color: var(--white) !important;
}

/* ---- HERO ---- */

.hero {
    min-height: 100vh;
    display: flex;
    flex-direction: column;
    justify-content: center;
    align-items: center;
    text-align: center;
    padding: 8rem 2rem 6rem;
}

.hero-logo {
    width: 120px;
    height: 120px;
    margin-bottom: 2rem;
}

.hero h1 {
    font-size: clamp(32px, 6vw, 60px);
    font-weight: 400;
    line-height: 1.1;
    letter-spacing: -0.03em;
    margin-bottom: 1.5rem;
    max-width: 700px;
}

.hero h1 .highlight {
    color: var(--blue);
}

.hero-sub {
    font-size: clamp(16px, 2vw, 20px);
    color: var(--muted);
    max-width: 520px;
    line-height: 1.6;
    margin-bottom: 2.5rem;
}

.hero-buttons {
    display: flex;
    gap: 0.75rem;
    flex-wrap: wrap;
    justify-content: center;
}

.btn {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    gap: 0.5rem;
    height: 48px;
    padding: 0 1.75rem;
    font-family: var(--sans);
    font-size: 16px;
    font-weight: 500;
    border-radius: var(--radius);
    border: none;
    cursor: pointer;
    transition: all 0.2s;
    text-decoration: none;
    white-space: nowrap;
}

.btn-primary {
    background: var(--black);
    color: var(--white);
}

.btn-primary:hover {
    background: #1a1a1a;
}

.btn-secondary {
    background: var(--white);
    color: var(--text-primary);
    border: 1px solid var(--gray-200);
}

.btn-secondary:hover {
    background: var(--gray-50);
}

.hero-note {
    font-size: 13px;
    color: var(--muted);
    margin-top: 2.5rem;
}

/* ---- CONTAINER ---- */

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

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

/* ---- SECTIONS ---- */

.section {
    padding: 6rem 0;
}

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

.section-header .label {
    font-size: 0.8rem;
    font-weight: 500;
    text-transform: uppercase;
    letter-spacing: 0.1em;
    color: var(--blue);
    margin-bottom: 1rem;
}

.section-header h2 {
    font-size: clamp(24px, 4vw, 40px);
    font-weight: 400;
    letter-spacing: -0.03em;
    line-height: 1.15;
    color: var(--text-primary);
}

.section-header p {
    font-size: 18px;
    color: var(--muted);
    margin-top: 1rem;
    line-height: 1.6;
}

/* ---- INSTALL CARD ---- */

.install-card {
    background: var(--black);
    border-radius: var(--radius-lg);
    padding: 2rem 2.5rem;
    margin-top: 2rem;
    overflow-x: auto;
}

.install-card pre {
    font-family: var(--mono);
    font-size: 14px;
    line-height: 2;
    color: #e0e0e0;
    margin: 0;
    white-space: pre;
}

.install-card .dim {
    color: #666;
}

.install-card .str {
    color: var(--blue-light);
}

.install-card .key {
    color: #999;
}

/* ---- FEATURES ---- */

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

.feature-card {
    border: 1px solid var(--gray-200);
    border-radius: var(--radius-lg);
    padding: 2rem;
    transition: border-color 0.2s;
}

.feature-card:hover {
    border-color: var(--blue-border);
}

.feature-icon {
    width: 36px;
    height: 36px;
    display: flex;
    align-items: center;
    justify-content: center;
    background: var(--blue-bg);
    border-radius: 8px;
    margin-bottom: 1rem;
    color: var(--blue);
}

.feature-card h3 {
    font-size: 18px;
    font-weight: 500;
    margin-bottom: 0.5rem;
    letter-spacing: -0.01em;
}

.feature-card p {
    font-size: 15px;
    color: var(--muted);
    line-height: 1.6;
}

/* ---- PHILOSOPHY ---- */

.philosophy-content {
    max-width: 600px;
    margin: 0 auto;
}

.philosophy-content p {
    font-size: 16px;
    color: var(--text-secondary);
    line-height: 1.75;
    margin-bottom: 1.25rem;
}

.philosophy-content strong {
    color: var(--text-primary);
    font-weight: 500;
}

/* ---- COMPARISON ---- */

.comparison-table {
    width: 100%;
    border-collapse: collapse;
    font-size: 15px;
}

.comparison-table th,
.comparison-table td {
    text-align: left;
    padding: 1rem 1.25rem;
}

.comparison-table thead th {
    font-size: 13px;
    font-weight: 500;
    text-transform: uppercase;
    letter-spacing: 0.06em;
    color: var(--muted);
    border-bottom: 1px solid var(--gray-200);
}

.comparison-table tbody td {
    border-bottom: 1px solid var(--gray-100);
    color: var(--text-secondary);
}

.comparison-table tbody tr:last-child td {
    border-bottom: none;
}

.comparison-table tbody td:first-child {
    font-weight: 500;
    color: var(--text-primary);
}

.comparison-table tbody td:last-child {
    color: var(--blue);
    font-weight: 500;
}

.comparison-table tbody tr {
    transition: background 0.15s;
}

.comparison-table tbody tr:hover {
    background: var(--gray-50);
}

.table-wrapper {
    border: 1px solid var(--gray-200);
    border-radius: var(--radius-lg);
    overflow: hidden;
}

/* ---- CODE BLOCK ---- */

.code-card {
    background: var(--black);
    border-radius: var(--radius-lg);
    padding: 2rem 2.5rem;
    overflow-x: auto;
}

.code-card pre {
    font-family: var(--mono);
    font-size: 13px;
    line-height: 1.85;
    color: #d4d4d4;
    white-space: pre;
    margin: 0;
}

.code-card .kw {
    color: #93c5fd;
}

.code-card .cm {
    color: #555;
}

.code-card .st {
    color: #86efac;
}

.code-card .fn {
    color: #fbbf24;
}

.code-card .tp {
    color: #c4b5fd;
}

/* ---- CTA ---- */

.cta-section {
    text-align: center;
    padding: 6rem 0;
}

.cta-section h2 {
    font-size: clamp(28px, 5vw, 48px);
    font-weight: 300;
    letter-spacing: -0.03em;
    line-height: 1.15;
    margin-bottom: 1.25rem;
}

.cta-section p {
    font-size: 18px;
    color: var(--muted);
    max-width: 440px;
    margin: 0 auto 2.5rem;
    line-height: 1.6;
}

.cta-buttons {
    display: flex;
    gap: 0.75rem;
    justify-content: center;
    flex-wrap: wrap;
}

/* ---- CRATOR BANNER ---- */

.crator-banner {
    border: 1px solid var(--gray-200);
    border-radius: var(--radius-lg);
    padding: 2.5rem;
    position: relative;
    overflow: hidden;
    background: linear-gradient(135deg, var(--white) 0%, var(--blue-bg) 100%);
}

.crator-content {
    position: relative;
    z-index: 1;
}

.crator-label {
    font-size: 0.75rem;
    font-weight: 500;
    text-transform: uppercase;
    letter-spacing: 0.1em;
    color: var(--blue);
    margin-bottom: 0.75rem;
}

.crator-banner h3 {
    font-size: clamp(20px, 3vw, 28px);
    font-weight: 500;
    letter-spacing: -0.02em;
    margin-bottom: 0.75rem;
}

.crator-banner p {
    font-size: 15px;
    color: var(--text-secondary);
    line-height: 1.7;
    margin-bottom: 1.5rem;
    max-width: 520px;
}

/* ---- FOOTER ---- */

footer {
    border-top: 1px solid var(--gray-200);
}

.footer-inner {
    max-width: 900px;
    margin: 0 auto;
    padding: 1.75rem 2rem;
    display: flex;
    justify-content: space-between;
    align-items: center;
    gap: 1rem;
}

.footer-left {
    font-size: 13px;
    color: var(--muted);
}

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

.footer-links a {
    font-size: 13px;
    color: var(--muted);
    transition: color 0.2s;
}

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

/* ---- RESPONSIVE ---- */

@media (max-width: 768px) {
    .nav-wrapper {
        top: 16px;
        left: 16px;
        right: 16px;
        transform: none;
    }

    nav {
        width: 100%;
    }

    .nav-links {
        display: none;
    }

    .hero {
        padding: 7rem 1.5rem 4rem;
    }

    .hero-logo {
        width: 90px;
        height: 90px;
    }

    .features-grid {
        grid-template-columns: 1fr;
    }

    .section {
        padding: 4rem 0;
    }

    .container {
        padding: 0 1.5rem;
    }

    .install-card,
    .code-card {
        padding: 1.5rem;
    }

    .footer-inner {
        flex-direction: column;
        text-align: center;
        gap: 0.75rem;
    }

    .footer-links {
        flex-wrap: wrap;
        justify-content: center;
        gap: 1.25rem;
    }

    .hero-buttons {
        flex-direction: column;
        align-items: center;
    }

    .btn {
        width: 100%;
        max-width: 280px;
    }

    .cta-buttons {
        flex-direction: column;
        align-items: center;
    }
}

/* ---- ANIMATIONS ---- */

.fade-up {
    opacity: 0;
    transform: translateY(20px);
}

.fade-up.visible {
    animation: fadeUp 0.65s ease forwards;
}

.fade-up.hero-anim {
    animation: fadeUp 0.7s ease forwards;
}

.fade-up.d1 {
    animation-delay: 0.05s;
}

.fade-up.d2 {
    animation-delay: 0.12s;
}

.fade-up.d3 {
    animation-delay: 0.2s;
}

.fade-up.d4 {
    animation-delay: 0.28s;
}

@keyframes fadeUp {
    to {
        opacity: 1;
        transform: translateY(0);
    }
}
