/**
 * Chaintrap marketing — Linear / modern (ui-skill tokens from .cursor/skills/ui-skill/reference.md)
 * Vanilla CSS: :root tokens, layered ambient, expo-out motion, reduced-motion safe.
 */
:root {
    --background-deep: #020203;
    --background-base: #050506;
    --background-elevated: #0a0a0c;
    --surface: rgba(255, 255, 255, 0.05);
    --surface-hover: rgba(255, 255, 255, 0.08);
    --foreground: #ededef;
    --foreground-muted: #8a8f98;
    --foreground-subtle: rgba(255, 255, 255, 0.6);
    --accent: #5e6ad2;
    --accent-bright: #6872d9;
    --accent-glow: rgba(94, 106, 210, 0.3);
    --border-default: rgba(255, 255, 255, 0.06);
    --border-hover: rgba(255, 255, 255, 0.1);
    --border-accent: rgba(94, 106, 210, 0.3);
    --ease-out-expo: cubic-bezier(0.16, 1, 0.3, 1);
    --radius-lg: 16px;
    --radius-btn: 8px;
    --font: "Inter", system-ui, -apple-system, sans-serif;
    --max: 1080px;
}

@keyframes ambient-float {
    0%,
    100% {
        transform: translateY(0) rotate(0deg);
    }
    50% {
        transform: translateY(-20px) rotate(1deg);
    }
}

@keyframes hero-shimmer {
    0% {
        background-position: 0% 50%;
    }
    100% {
        background-position: 100% 50%;
    }
}

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

html {
    scroll-behavior: smooth;
}

@media (prefers-reduced-motion: reduce) {
    html {
        scroll-behavior: auto;
    }
    .ambient__blob {
        animation: none !important;
    }
    .hero-title {
        animation: none !important;
        background-size: 100% 100% !important;
    }
}

body {
    margin: 0;
    font-family: var(--font);
    font-size: 1rem;
    line-height: 1.6;
    color: var(--foreground);
    background: var(--background-base);
    -webkit-font-smoothing: antialiased;
}

a {
    color: var(--accent-bright);
    text-decoration: none;
    transition: color 0.2s var(--ease-out-expo);
}
a:hover {
    color: #8b94e8;
    text-decoration: underline;
}

:focus-visible {
    outline: 2px solid rgba(94, 106, 210, 0.55);
    outline-offset: 3px;
}

/* --- Ambient layers (reference § Background system) --- */
.ambient {
    position: fixed;
    inset: 0;
    z-index: -1;
    overflow: hidden;
    pointer-events: none;
}

.ambient__gradient {
    position: absolute;
    inset: 0;
    background: radial-gradient(ellipse 120% 80% at 50% -30%, #0a0a0f 0%, var(--background-base) 50%, var(--background-deep) 100%);
}

.ambient__noise {
    position: absolute;
    inset: 0;
    opacity: 0.035;
    background-image: url("data:image/svg+xml,%3Csvg viewBox='0 0 256 256' xmlns='http://www.w3.org/2000/svg'%3E%3Cfilter id='n'%3E%3CfeTurbulence type='fractalNoise' baseFrequency='0.85' numOctaves='4' stitchTiles='stitch'/%3E%3C/filter%3E%3Crect width='100%25' height='100%25' filter='url(%23n)'/%3E%3C/svg%3E");
    mix-blend-mode: overlay;
}

.ambient__blob {
    position: absolute;
    border-radius: 50%;
    filter: blur(150px);
    opacity: 0.22;
    animation: ambient-float 9s ease-in-out infinite;
}

.ambient__blob--a {
    width: min(900px, 95vw);
    height: 520px;
    top: -18%;
    left: 50%;
    transform: translateX(-50%);
    background: rgba(94, 106, 210, 0.45);
    animation-delay: 0s;
}

.ambient__blob--b {
    width: 480px;
    height: 400px;
    top: 35%;
    left: -12%;
    background: rgba(139, 92, 246, 0.2);
    filter: blur(120px);
    opacity: 0.18;
    animation-delay: -2s;
    animation-duration: 11s;
}

.ambient__blob--c {
    width: 420px;
    height: 380px;
    bottom: -8%;
    right: -10%;
    background: rgba(59, 130, 246, 0.18);
    filter: blur(100px);
    opacity: 0.16;
    animation-delay: -4s;
    animation-duration: 10s;
}

.ambient__grid {
    position: absolute;
    inset: 0;
    background-image: linear-gradient(rgba(255, 255, 255, 0.02) 1px, transparent 1px),
        linear-gradient(90deg, rgba(255, 255, 255, 0.02) 1px, transparent 1px);
    background-size: 64px 64px;
    mask-image: radial-gradient(ellipse 70% 60% at 50% 30%, black 20%, transparent 75%);
}

.wrap {
    max-width: var(--max);
    margin: 0 auto;
    padding: 0 22px 80px;
}

.site-nav {
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 16px;
    padding: 20px 0;
    border-bottom: 1px solid var(--border-default);
    position: sticky;
    top: 0;
    background: rgba(5, 5, 6, 0.82);
    backdrop-filter: blur(16px) saturate(1.2);
    z-index: 10;
    margin: 0 -22px;
    padding-left: 22px;
    padding-right: 22px;
}

.brand-mark {
    font-weight: 700;
    font-size: 1.05rem;
    letter-spacing: -0.03em;
    color: var(--foreground);
    text-decoration: none;
}
.brand-mark:hover {
    color: var(--accent-bright);
    text-decoration: none;
}

.nav-links {
    display: flex;
    flex-wrap: wrap;
    align-items: center;
    gap: 8px 22px;
    list-style: none;
    margin: 0;
    padding: 0;
}

.nav-links a {
    color: var(--foreground-muted);
    font-size: 0.875rem;
    font-weight: 500;
}
.nav-links a:hover {
    color: var(--foreground);
    text-decoration: none;
}

.nav-toggle {
    display: none;
    border: 1px solid var(--border-default);
    background: var(--background-elevated);
    color: var(--foreground);
    padding: 8px 14px;
    border-radius: var(--radius-btn);
    font-size: 0.8125rem;
    font-weight: 600;
    cursor: pointer;
    transition: border-color 0.2s var(--ease-out-expo), background 0.2s var(--ease-out-expo);
}
.nav-toggle:hover {
    border-color: var(--border-hover);
    background: rgba(255, 255, 255, 0.06);
}

@media (max-width: 720px) {
    .nav-toggle {
        display: block;
    }
    .nav-links {
        display: none;
        position: absolute;
        top: 100%;
        left: 0;
        right: 0;
        flex-direction: column;
        align-items: stretch;
        padding: 12px 22px 20px;
        background: rgba(5, 5, 6, 0.96);
        backdrop-filter: blur(20px);
        border-bottom: 1px solid var(--border-default);
        gap: 0;
    }
    .nav-links.is-open {
        display: flex;
    }
    .nav-links li {
        border-bottom: 1px solid var(--border-default);
    }
    .nav-links li:last-child {
        border-bottom: 0;
    }
    .nav-links a {
        display: block;
        padding: 12px 0;
    }
}

.hero {
    padding: 72px 0 52px;
    border-top: 0;
}

.hero-kicker {
    font-size: 0.6875rem;
    font-weight: 600;
    letter-spacing: 0.16em;
    text-transform: uppercase;
    color: var(--accent-bright);
    margin-bottom: 16px;
}

.hero-title {
    font-size: clamp(2.25rem, 5.5vw, 3.35rem);
    font-weight: 600;
    letter-spacing: -0.035em;
    line-height: 1.05;
    margin: 0 0 22px;
    max-width: 18ch;
    background: linear-gradient(105deg, #fff 0%, rgba(255, 255, 255, 0.92) 35%, rgba(255, 255, 255, 0.72) 100%);
    -webkit-background-clip: text;
    background-clip: text;
    color: transparent;
    background-size: 200% auto;
    animation: hero-shimmer 8s ease-in-out infinite alternate;
}

@media (prefers-reduced-motion: reduce) {
    .hero-title {
        background: linear-gradient(180deg, #fff 0%, rgba(255, 255, 255, 0.78) 100%);
        -webkit-background-clip: text;
        background-clip: text;
    }
}

.hero-lead {
    font-size: 1.125rem;
    line-height: 1.55;
    color: var(--foreground-muted);
    max-width: 52ch;
    margin: 0 0 14px;
}

.hero-lead--secondary {
    margin-bottom: 32px;
}

.hero-lead strong {
    color: var(--foreground);
    font-weight: 600;
}

.hero-cta {
    display: flex;
    flex-wrap: wrap;
    gap: 12px;
    align-items: center;
}

.btn {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    gap: 8px;
    padding: 13px 22px;
    border-radius: var(--radius-btn);
    font-weight: 600;
    font-size: 0.9375rem;
    border: none;
    cursor: pointer;
    text-decoration: none;
    transition: transform 0.22s var(--ease-out-expo), box-shadow 0.28s var(--ease-out-expo), background 0.22s var(--ease-out-expo),
        filter 0.22s var(--ease-out-expo);
}
.btn:hover {
    text-decoration: none;
}
.btn:active {
    transform: scale(0.98);
}

.btn-primary {
    background: linear-gradient(180deg, var(--accent-bright) 0%, var(--accent) 48%, #4c56b8 100%);
    color: #fff;
    box-shadow: 0 0 0 1px rgba(94, 106, 210, 0.45), 0 0 32px rgba(94, 106, 210, 0.22), 0 12px 40px rgba(0, 0, 0, 0.45),
        inset 0 1px 0 rgba(255, 255, 255, 0.2);
}
.btn-primary:hover {
    filter: brightness(1.06);
    box-shadow: 0 0 0 1px rgba(104, 114, 217, 0.55), 0 0 40px rgba(94, 106, 210, 0.28), 0 16px 48px rgba(0, 0, 0, 0.5),
        inset 0 1px 0 rgba(255, 255, 255, 0.22);
}

.btn-secondary {
    background: rgba(255, 255, 255, 0.05);
    color: var(--foreground);
    border: 1px solid var(--border-default);
    box-shadow: inset 0 1px 0 rgba(255, 255, 255, 0.06);
}
.btn-secondary:hover {
    background: rgba(255, 255, 255, 0.08);
    border-color: var(--border-hover);
}

.hero-note {
    margin-top: 18px;
    font-size: 0.8125rem;
    color: var(--foreground-subtle);
    display: flex;
    flex-wrap: wrap;
    align-items: center;
    gap: 0.35rem 0.5rem;
}

.hero-note-sep {
    color: var(--foreground-muted);
    user-select: none;
}

.hero-note code {
    font-size: 0.78em;
    padding: 2px 6px;
    border-radius: 6px;
    background: rgba(255, 255, 255, 0.05);
    border: 1px solid var(--border-default);
}

section {
    padding: 56px 0;
    border-top: 1px solid var(--border-default);
}

.section-label {
    font-size: 0.6875rem;
    font-weight: 600;
    letter-spacing: 0.14em;
    text-transform: uppercase;
    color: var(--foreground-muted);
    margin-bottom: 12px;
}

section h2 {
    font-size: clamp(1.5rem, 3.2vw, 2rem);
    font-weight: 600;
    letter-spacing: -0.03em;
    line-height: 1.15;
    margin: 0 0 18px;
    color: var(--foreground);
}

.section-lead {
    color: var(--foreground-muted);
    max-width: 58ch;
    margin: 0 0 28px;
    line-height: 1.55;
}

.card-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(288px, 1fr));
    gap: 20px;
}

.card {
    position: relative;
    border: 1px solid var(--border-default);
    border-radius: var(--radius-lg);
    padding: 24px 22px 22px;
    background: linear-gradient(165deg, rgba(255, 255, 255, 0.08) 0%, rgba(255, 255, 255, 0.02) 100%);
    box-shadow: 0 0 0 1px rgba(255, 255, 255, 0.04) inset, 0 2px 24px rgba(0, 0, 0, 0.42), 0 0 48px rgba(0, 0, 0, 0.18);
    display: flex;
    flex-direction: column;
    gap: 12px;
    transition: transform 0.28s var(--ease-out-expo), box-shadow 0.28s var(--ease-out-expo), border-color 0.28s var(--ease-out-expo);
}

.card:hover {
    transform: translateY(-6px);
    border-color: var(--border-hover);
    box-shadow: 0 0 0 1px rgba(255, 255, 255, 0.06) inset, 0 4px 32px rgba(0, 0, 0, 0.5), 0 0 56px rgba(0, 0, 0, 0.22), 0 0 60px rgba(94, 106, 210, 0.08);
}

@media (prefers-reduced-motion: reduce) {
    .card:hover {
        transform: none;
    }
}

.card h3 {
    font-size: 1.1875rem;
    font-weight: 600;
    letter-spacing: -0.02em;
    margin: 0;
    color: var(--foreground);
}

.card p {
    margin: 0;
    color: var(--foreground-muted);
    font-size: 0.9375rem;
    line-height: 1.5;
    flex: 1;
}

.card-footer {
    margin-top: 4px;
    font-size: 0.875rem;
    font-weight: 600;
}

.badge {
    display: inline-block;
    font-size: 0.625rem;
    font-weight: 700;
    letter-spacing: 0.1em;
    text-transform: uppercase;
    padding: 5px 9px;
    border-radius: 999px;
    width: fit-content;
    background: rgba(94, 106, 210, 0.18);
    color: #b4b9f0;
    border: 1px solid var(--border-accent);
}

.badge-soon {
    background: rgba(255, 255, 255, 0.06);
    color: var(--foreground-muted);
    border-color: var(--border-default);
}

.steps {
    max-width: 640px;
}

.step {
    display: grid;
    grid-template-columns: auto 1fr;
    gap: 18px;
    align-items: start;
    padding: 18px 0;
    border-bottom: 1px solid var(--border-default);
}
.step:last-child {
    border-bottom: 0;
}

.step-num {
    width: 38px;
    height: 38px;
    border-radius: 10px;
    display: grid;
    place-items: center;
    font-weight: 700;
    font-size: 0.875rem;
    background: rgba(94, 106, 210, 0.12);
    color: var(--accent-bright);
    border: 1px solid var(--border-accent);
}

.step h3 {
    font-size: 1rem;
    font-weight: 600;
    margin: 0 0 6px;
    color: var(--foreground);
}

.step p {
    margin: 0;
    color: var(--foreground-muted);
    font-size: 0.9rem;
    line-height: 1.5;
}

.company-block {
    max-width: 62ch;
    color: var(--foreground-muted);
    line-height: 1.55;
}
.company-block p {
    margin: 0 0 16px;
}
.company-block p:last-child {
    margin-bottom: 0;
}
.company-block strong {
    color: var(--foreground);
}

.site-footer {
    margin-top: 40px;
    padding: 32px 0 36px;
    border-top: 1px solid var(--border-default);
    font-size: 0.8125rem;
    color: var(--foreground-muted);
    background: linear-gradient(180deg, transparent, rgba(2, 2, 3, 0.6));
    margin-left: -22px;
    margin-right: -22px;
    padding-left: 22px;
    padding-right: 22px;
    display: flex;
    flex-wrap: wrap;
    gap: 14px 28px;
    justify-content: space-between;
    align-items: center;
}

.site-footer nav {
    display: flex;
    flex-wrap: wrap;
    gap: 18px;
}
.site-footer a {
    color: var(--foreground-muted);
}
.site-footer a:hover {
    color: var(--foreground);
}
