:root {
    --bg: #06060a;
    --surface: #0c0c12;
    --surface-2: #111118;
    --panel: rgba(12, 12, 18, 0.88);
    --border: rgba(255, 255, 255, 0.07);
    --border-hover: rgba(255, 255, 255, 0.14);
    --text: #f0f0f5;
    --text-muted: #8b8b9e;
    --text-soft: #6e6e82;
    --pink: #ff5e83;
    --purple: #a855f7;
    --violet: #7c3aed;
    --cyan: #06b6d4;
    --cyan-bright: #38c6ff;
    --accent-glow: rgba(168, 85, 247, 0.15);
    --corner-lg: 17px;
    --corner-md: 13px;
    --corner-sm: 9px;
    --container: 1200px;
    --font-body: 'Inter', system-ui, sans-serif;
    --font-mono: 'JetBrains Mono', monospace;

    --size-brand: 17px;
    --size-nav: 14px;
    --size-header-cta: 13px;
    --size-hero-eyebrow: 12px;
    --size-section-eyebrow: 11px;
    --size-section-title: clamp(28px, 4vw, 44px);
    --size-section-sub: 16px;
    --size-footer-heading: 10px;
    --size-footer-link: 13px;
    --size-footer-copy: 12px;

    --weight-brand: 700;
    --weight-nav: 500;
    --weight-header-cta: 600;
    --weight-section-eyebrow: 600;
    --weight-section-title: 800;

    --site-header-height: 64px;
    --container-edge: 48px;
    --container-edge-mobile: 28px;
    --header-nav-gap: 32px;
    --footer-grid-gap: 48px;
    --footer-nav-gap: 48px;
    --footer-col-gap-mobile: 32px;
}

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

html {
    scroll-behavior: smooth;
}

body {
    font-family: var(--font-body);
    color: var(--text);
    background: var(--bg);
    overflow-x: hidden;
    -webkit-font-smoothing: antialiased;
}

a {
    color: inherit;
    text-decoration: none;
}

img {
    max-width: 100%;
    display: block;
}

.container {
    width: min(var(--container), calc(100% - var(--container-edge)));
    margin: 0 auto;
}

.container-narrow {
    width: min(860px, calc(100% - var(--container-edge)));
    margin: 0 auto;
}

.site-header {
    position: sticky;
    top: 0;
    z-index: 50;
    height: var(--site-header-height);
    background: rgba(6, 6, 10, 0.85);
    backdrop-filter: blur(16px) saturate(1.4);
    border-bottom: 1px solid var(--border);
    transition: all 0.3s;
}

.header-inner {
    display: flex;
    align-items: center;
    justify-content: space-between;
    height: 100%;
}

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

.brand-icon {
    width: 42px;
    height: 42px;
    display: grid;
    place-items: center;
}

.brand-icon img {
    width: 38px;
    height: 38px;
    object-fit: contain;
}

.brand-name {
    font-size: var(--size-brand);
    font-weight: var(--weight-brand);
    letter-spacing: -0.4px;
}

.brand-name .x {
    background: linear-gradient(90deg, var(--purple), var(--cyan-bright));
    -webkit-background-clip: text;
    background-clip: text;
    color: transparent;
}

.header-nav {
    display: flex;
    align-items: center;
    gap: var(--header-nav-gap);
}

.header-nav a {
    font-size: var(--size-nav);
    font-weight: var(--weight-nav);
    color: var(--text-muted);
    transition: color 0.2s;
}

.header-nav a:hover,
.header-nav a[aria-current="page"] {
    color: var(--text);
}

.btn-header {
    display: inline-flex;
    align-items: center;
    padding: 8px 18px;
    font-size: var(--size-header-cta);
    font-weight: var(--weight-header-cta);
    border-radius: 6px;
    border: 1px solid var(--border);
    background: rgba(255, 255, 255, 0.04);
    color: var(--text-muted);
    transition: all 0.2s;
    cursor: pointer;
}

.btn-header:hover {
    background: rgba(255, 255, 255, 0.08);
    border-color: var(--border-hover);
    color: var(--text);
    transform: scale(0.98);
}

.btn {
    position: relative;
    display: inline-flex;
    align-items: center;
    justify-content: center;
    gap: 10px;
    padding: 14px 24px;
    font-size: var(--size-nav);
    font-weight: 600;
    border-radius: 8px;
    border: none;
    cursor: pointer;
    transition: transform 0.15s, filter 0.15s;
    font-family: var(--font-body);
}

.btn:hover {
    transform: scale(0.98);
}

.btn-primary {
    color: var(--bg);
    background: linear-gradient(135deg, var(--pink), var(--purple) 50%, var(--cyan-bright));
}

.btn-primary:hover {
    filter: brightness(1.1);
}

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

.btn-outline:hover {
    background: rgba(255, 255, 255, 0.05);
    border-color: var(--border-hover);
}

.btn svg {
    width: 18px;
    height: 18px;
    flex-shrink: 0;
}

.btn-arrow {
    display: inline-flex;
    align-items: center;
    gap: 6px;
    font-size: var(--size-nav);
    font-weight: 600;
    color: var(--text-muted);
    transition: color 0.2s;
}

.btn-arrow:hover {
    color: var(--text);
}

.btn-arrow .arrow {
    width: 14px;
    height: 10px;
    transition: transform 0.2s;
}

.btn-arrow:hover .arrow {
    transform: translateX(3px);
}

.section {
    padding: 100px 0;
    position: relative;
}

.section-dark {
    background: var(--surface);
}

.section-eyebrow {
    display: inline-flex;
    align-items: center;
    gap: 10px;
    font-family: var(--font-mono);
    font-size: var(--size-section-eyebrow);
    font-weight: var(--weight-section-eyebrow);
    text-transform: uppercase;
    letter-spacing: 0.1em;
    color: var(--text-soft);
    margin-bottom: 16px;
}

.section-eyebrow .icon {
    width: 24px;
    height: 24px;
}

.section-title {
    font-size: var(--size-section-title);
    font-weight: var(--weight-section-title);
    letter-spacing: -1.5px;
    line-height: 1.1;
}

.section-sub {
    margin-top: 16px;
    font-size: var(--size-section-sub);
    line-height: 1.7;
    color: var(--text-muted);
    max-width: 540px;
}

.site-footer {
    border-top: 1px solid var(--border);
    padding: 48px 0;
}

.footer-grid {
    display: grid;
    grid-template-columns: 1fr auto;
    gap: var(--footer-grid-gap);
    align-items: start;
}

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

.footer-brand img {
    width: 28px;
    height: 28px;
}

.footer-brand span {
    font-size: 15px;
    font-weight: 700;
}

.footer-desc {
    font-size: 13px;
    color: var(--text-soft);
    line-height: 1.6;
    max-width: 320px;
}

.footer-nav {
    display: flex;
    gap: var(--footer-nav-gap);
}

.footer-col h5 {
    font-family: var(--font-mono);
    font-size: var(--size-footer-heading);
    font-weight: 600;
    text-transform: uppercase;
    letter-spacing: 0.12em;
    color: var(--text-soft);
    margin-bottom: 16px;
}

.footer-col a {
    display: block;
    font-size: var(--size-footer-link);
    color: var(--text-muted);
    padding: 4px 0;
    transition: color 0.2s;
}

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

.footer-bottom {
    display: flex;
    margin-top: 40px;
    padding-top: 24px;
    border-top: 1px solid var(--border);
}

.footer-copy {
    font-size: var(--size-footer-copy);
    color: var(--text-soft);
}

@media (max-width: 1024px) {
    .footer-grid {
        grid-template-columns: 1fr;
    }
}

@media (max-width: 768px) {
    .header-nav {
        display: none;
    }

    .section {
        padding: 60px 0;
    }

    .footer-nav {
        flex-direction: column;
        gap: var(--footer-col-gap-mobile);
    }

    .footer-bottom {
        margin-top: 32px;
        padding-top: 20px;
    }
}

@media (max-width: 480px) {
    .container,
    .container-narrow {
        width: min(var(--container), calc(100% - var(--container-edge-mobile)));
    }
}
