:root {
    --ink: #04060b;
    --bone: #e8ebf3;
    --bone-dim: #a7afc2;
    --muted: #6b7488;
    --line: rgba(232, 235, 243, .14);
    --line-soft: rgba(232, 235, 243, .07);
    --brand: #667eea;
    --brand-soft: #764ba2;
    --ember: #ffb86a;
    --pad: clamp(20px, 3.4vw, 56px);
    --nav-h: 78px;
    --hover: .42s;
    --ease: cubic-bezier(.22, .61, .36, 1);
    --ease-out: cubic-bezier(.16, 1, .3, 1);
    --ease-io: cubic-bezier(.65, 0, .35, 1);
}

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

html {
    -webkit-text-size-adjust: 100%;
}

body {
    margin: 0;
    background: var(--ink);
    color: var(--bone);
    font-family: 'Inter', system-ui, -apple-system, 'Helvetica Neue', sans-serif;
    font-weight: 300;
    font-size: 16px;
    line-height: 1.6;
    -webkit-font-smoothing: antialiased;
    -moz-osx-font-smoothing: grayscale;
    overflow-x: hidden;
}

body.is-locked {
    overflow: hidden;
}

::selection {
    background: var(--brand);
    color: #fff;
}

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

button {
    font: inherit;
    color: inherit;
    background: none;
    border: 0;
    cursor: pointer;
}

:focus-visible {
    outline: 1px solid var(--brand);
    outline-offset: 3px;
}

body.night-fallback {
    background:
        radial-gradient(ellipse 90% 60% at 70% 20%, rgba(102, 126, 234, .16), transparent 55%),
        radial-gradient(ellipse 70% 50% at 20% 80%, rgba(255, 184, 106, .07), transparent 50%),
        linear-gradient(180deg, #05070d 0%, #0a1020 42%, #070b14 100%);
    background-attachment: fixed;
}

.night-veil {
    position: fixed;
    inset: 0;
    z-index: 1;
    pointer-events: none;
    background:
        radial-gradient(125% 95% at 50% 42%, transparent 30%, rgba(2, 4, 7, .64) 100%),
        linear-gradient(180deg, rgba(2, 4, 7, .5) 0%, rgba(2, 4, 7, .2) 26%, rgba(2, 4, 7, .3) 70%, rgba(2, 4, 7, .72) 100%);
}

.grain {
    position: fixed;
    inset: -1px;
    z-index: 2;
    pointer-events: none;
    opacity: .05;
    mix-blend-mode: overlay;
    background-repeat: repeat;
    background-size: 180px 180px;
    background-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' width='180' height='180'%3E%3Cfilter id='n'%3E%3CfeTurbulence type='fractalNoise' baseFrequency='.85' numOctaves='3'/%3E%3C/filter%3E%3Crect width='180' height='180' filter='url(%23n)'/%3E%3C/svg%3E");
}

.page,
.foot {
    position: relative;
    z-index: 10;
    text-shadow: 0 1px 22px rgba(2, 4, 7, .92);
}

.eyebrow {
    font-size: 10px;
    font-weight: 500;
    letter-spacing: .22em;
    text-transform: uppercase;
    color: var(--bone-dim);
}

.eyebrow .dot {
    display: inline-block;
    width: 5px;
    height: 5px;
    margin-right: 10px;
    border-radius: 50%;
    background: var(--brand);
    box-shadow: 0 0 12px var(--brand);
    vertical-align: middle;
}

h1,
h2,
h3 {
    font-weight: 400;
    margin: 0;
    letter-spacing: -.005em;
}

.display {
    text-transform: uppercase;
    line-height: 1.055;
    letter-spacing: -.012em;
    font-weight: 300;
}

.h-hero {
    font-size: clamp(38px, 6.6vw, 104px);
}

.body-lg {
    font-size: clamp(15px, 1.05vw, 18px);
    line-height: 1.72;
    color: #b3bccd;
    font-weight: 300;
}

.body {
    font-size: 14px;
    line-height: 1.68;
    color: #97a0b3;
    font-weight: 300;
}

.nav {
    position: fixed;
    top: 0;
    left: 0;
    width: var(--vw, 100%);
    height: var(--nav-h);
    z-index: 50;
    display: flex;
    align-items: center;
    gap: 24px;
    padding: 0 var(--pad);
    transition: transform .6s var(--ease-out), background .5s, border-color .5s;
    border-bottom: 1px solid transparent;
}

.nav.solid {
    background: rgba(4, 6, 11, .72);
    backdrop-filter: blur(14px);
    -webkit-backdrop-filter: blur(14px);
    border-bottom-color: var(--line-soft);
}

.nav.hide {
    transform: translate3d(0, -101%, 0);
}

.brand {
    display: flex;
    flex-direction: column;
    line-height: 1;
    gap: 4px;
    flex: 0 0 auto;
}

.brand b {
    font-size: 13px;
    font-weight: 500;
    letter-spacing: .3em;
}

.brand i {
    font-style: normal;
    font-size: 8px;
    letter-spacing: .3em;
    color: var(--muted);
    text-transform: uppercase;
}

.nav-links {
    display: flex;
    gap: clamp(18px, 2.6vw, 44px);
    margin-left: auto;
}

.nav-link {
    position: relative;
    font-size: 11px;
    font-weight: 500;
    letter-spacing: .2em;
    text-transform: uppercase;
    color: var(--bone-dim);
    display: block;
    height: 15px;
    line-height: 15px;
    overflow: hidden;
}

.nav-link span {
    display: block;
    height: 15px;
    line-height: 15px;
    transition: transform .55s var(--ease-out), color .3s;
}

.nav-link .alt {
    position: absolute;
    inset: 0;
    transform: translate3d(0, 100%, 0);
    color: var(--bone);
    letter-spacing: .28em;
}

.nav-link:hover span {
    transform: translate3d(0, -100%, 0);
}

.nav-link:hover .alt {
    transform: none;
}

.nav-link.on {
    color: var(--bone);
}

.nav-link.on::after {
    content: '';
    position: absolute;
    left: 0;
    bottom: 0;
    width: 100%;
    height: 1px;
    background: var(--brand);
}

.nav-cta {
    margin-left: clamp(18px, 2.6vw, 40px);
    flex: 0 0 auto;
    font-size: 11px;
    font-weight: 500;
    letter-spacing: .2em;
    text-transform: uppercase;
    color: var(--bone);
    padding-bottom: 3px;
    border-bottom: 1px solid var(--line);
    transition: border-color .4s;
}

.nav-cta:hover {
    border-bottom-color: var(--brand);
}

.arrowlink {
    display: inline-flex;
    align-items: center;
    gap: 12px;
    margin-top: 8px;
    font-size: 11px;
    font-weight: 500;
    letter-spacing: .2em;
    text-transform: uppercase;
    color: var(--bone-dim);
}

.arrowlink .ar {
    width: 34px;
    height: 34px;
    border: 1px solid var(--line);
    border-radius: 50%;
    display: grid;
    place-items: center;
    transition: background .45s var(--ease-out), border-color .45s;
}

.arrowlink .ar svg {
    width: 13px;
    height: 13px;
    transition: transform .5s var(--ease-out);
}

.arrowlink:hover {
    color: var(--bone);
}

.arrowlink:hover .ar {
    background: var(--bone);
    border-color: var(--bone);
}

.arrowlink:hover .ar svg {
    transform: translate3d(2px, -2px, 0);
    color: var(--ink);
}

.foot {
    padding: clamp(50px, 8vh, 92px) var(--pad) clamp(26px, 4vh, 40px);
    border-top: 1px solid var(--line-soft);
    background: linear-gradient(180deg, rgba(2, 4, 7, .5), rgba(2, 4, 7, .86));
}

.foot-grid {
    display: grid;
    grid-template-columns: minmax(0, 1.4fr) repeat(3, minmax(0, .6fr));
    gap: clamp(22px, 4vw, 60px);
}

.foot-brand b {
    display: block;
    font-size: 14px;
    font-weight: 500;
    letter-spacing: .3em;
    margin-bottom: 12px;
}

.foot-col h4 {
    margin: 0 0 14px;
    font-size: 9px;
    font-weight: 500;
    letter-spacing: .24em;
    text-transform: uppercase;
    color: var(--muted);
}

.foot-col a,
.foot-col span {
    display: block;
    font-size: 13px;
    color: var(--bone-dim);
    padding: 4px 0;
    transition: color .35s;
}

.foot-col a:hover {
    color: var(--bone);
}

.foot-base {
    display: flex;
    justify-content: space-between;
    gap: 16px;
    flex-wrap: wrap;
    margin-top: clamp(38px, 6vh, 70px);
    padding-top: 20px;
    border-top: 1px solid var(--line-soft);
    font-size: 10px;
    letter-spacing: .18em;
    text-transform: uppercase;
    color: var(--muted);
}

.custom-cursor {
    position: fixed;
    z-index: 80;
    top: 0;
    left: 0;
    width: 26px;
    height: 26px;
    margin: -13px 0 0 -13px;
    border: 1px solid rgba(232, 235, 243, .35);
    border-radius: 50%;
    pointer-events: none;
    opacity: 0;
    transition: width .4s var(--ease-out), height .4s var(--ease-out), margin .4s var(--ease-out), background .4s, border-color .4s;
}

.custom-cursor.act {
    width: 52px;
    height: 52px;
    margin: -26px 0 0 -26px;
    background: rgba(102, 126, 234, .08);
    border-color: rgba(232, 235, 243, .6);
}

@media (hover: hover) and (pointer: fine) {
    body {
        cursor: none;
    }

    .custom-cursor {
        opacity: 1;
    }
}

.modal {
    display: none;
    position: fixed;
    inset: 0;
    z-index: 110;
    background: rgba(2, 4, 7, .88);
    backdrop-filter: blur(12px);
    -webkit-backdrop-filter: blur(12px);
    overflow-y: auto;
    padding: 24px;
}

.modal.active {
    display: flex;
    align-items: center;
    justify-content: center;
}

.modal-content {
    background: linear-gradient(180deg, rgba(10, 14, 22, .96), rgba(4, 6, 11, .98));
    outline: 1px solid var(--line);
    outline-offset: -1px;
    padding: clamp(26px, 3.4vw, 46px);
    max-width: 560px;
    width: 100%;
    position: relative;
}

.close-modal {
    position: absolute;
    right: clamp(20px, 2.4vw, 30px);
    top: clamp(20px, 2.4vw, 30px);
    width: 26px;
    height: 26px;
    display: grid;
    place-items: center;
    font-size: 20px;
    font-weight: 200;
    color: var(--muted);
}

.close-modal:hover {
    color: var(--bone);
}

.modal .eyebrow {
    margin-bottom: 14px;
}

.modal-title {
    font-size: clamp(24px, 2.6vw, 36px);
    font-weight: 300;
    letter-spacing: -.02em;
    text-transform: uppercase;
    margin: 0 0 10px;
}

.modal-subtitle {
    color: var(--muted);
    font-size: 13.5px;
    margin: 0 0 32px;
    max-width: 40ch;
}

.form-group {
    margin-bottom: 20px;
}

.form-group label {
    display: block;
    margin-bottom: 8px;
    font-size: 9.5px;
    font-weight: 500;
    letter-spacing: .2em;
    text-transform: uppercase;
    color: var(--muted);
}

.form-group input,
.form-group select,
.form-group textarea {
    width: 100%;
    padding: 13px 0;
    background: transparent;
    border: 0;
    border-bottom: 1px solid var(--line);
    color: var(--bone);
    font-size: 15px;
    font-family: inherit;
    font-weight: 300;
}

.form-group input:focus,
.form-group select:focus,
.form-group textarea:focus {
    outline: none;
    border-bottom-color: var(--brand);
}

.form-group input::placeholder,
.form-group textarea::placeholder {
    color: rgba(232, 235, 243, .22);
}

.form-group select {
    cursor: pointer;
    appearance: none;
}

.form-group select option {
    background: #0a0e16;
    color: var(--bone);
}

.form-group textarea {
    resize: vertical;
    min-height: 96px;
}

.submit-button {
    position: relative;
    overflow: hidden;
    width: 100%;
    margin-top: 12px;
    padding: 18px;
    border: 1px solid var(--line);
    font-size: 11px;
    font-weight: 500;
    letter-spacing: .22em;
    text-transform: uppercase;
    color: var(--bone);
}

.submit-button i {
    position: absolute;
    inset: 0;
    background: var(--bone);
    transform: translate3d(0, 101%, 0);
    transition: transform .6s var(--ease-out);
}

.submit-button span {
    position: relative;
    z-index: 1;
}

.submit-button:hover:not(:disabled) {
    color: var(--ink);
    border-color: var(--bone);
}

.submit-button:hover:not(:disabled) i {
    transform: none;
}

.submit-button:disabled {
    color: var(--muted);
    cursor: default;
}

.form-message {
    margin-top: 16px;
    padding: 14px 16px;
    font-size: 12.5px;
    display: none;
}

.form-message.success {
    display: block;
    border-left: 1px solid #66ea7e;
    background: rgba(102, 234, 126, .07);
    color: #8ff0a2;
}

.form-message.error {
    display: block;
    border-left: 1px solid #ea6666;
    background: rgba(234, 102, 102, .07);
    color: #f09a9a;
}

.blog-page {
    padding: calc(var(--nav-h) + clamp(28px, 6vh, 72px)) var(--pad) clamp(72px, 12vh, 140px);
}

.blog-hero {
    max-width: 820px;
    margin-bottom: clamp(42px, 7vh, 88px);
}

.blog-hero h1 {
    margin: 18px 0 20px;
}

.blog-sub {
    max-width: 46ch;
}

.blog-index {
    display: flex;
    flex-direction: column;
    gap: 18px;
    max-width: 760px;
}

.blog-card {
    display: flex;
    flex-direction: column;
    align-items: flex-start;
    gap: 16px;
    padding: clamp(22px, 2.4vw, 32px);
    background: linear-gradient(180deg, rgba(163, 184, 234, .09), rgba(120, 140, 190, .03) 26%, rgba(4, 8, 15, .46));
    backdrop-filter: blur(16px) saturate(128%);
    -webkit-backdrop-filter: blur(16px) saturate(128%);
    box-shadow: inset 0 1px 0 rgba(232, 235, 243, .1);
    outline: 1px solid var(--line-soft);
    outline-offset: -1px;
    transition: outline-color .5s, background .5s;
}

.blog-card:hover {
    outline-color: rgba(232, 235, 243, .28);
    background: linear-gradient(180deg, rgba(126, 148, 245, .12), rgba(120, 140, 190, .04) 26%, rgba(4, 8, 15, .5));
}

.blog-dates {
    margin: 0;
    font-size: 10px;
    font-weight: 500;
    letter-spacing: .16em;
    text-transform: uppercase;
    color: var(--muted);
}

.blog-card-title {
    font-size: clamp(22px, 2.4vw, 34px);
    font-weight: 300;
    letter-spacing: -.02em;
    line-height: 1.2;
}

.blog-card-title a:hover {
    color: var(--brand);
}

.blog-excerpt {
    margin: 0;
    max-width: 62ch;
    font-size: 15px;
    line-height: 1.7;
    color: #97a0b3;
}

.blog-post-page {
    max-width: 860px;
}

.blog-crumb {
    display: flex;
    flex-wrap: wrap;
    gap: 10px;
    align-items: center;
    margin-bottom: 28px;
    font-size: 11px;
    letter-spacing: .16em;
    text-transform: uppercase;
    color: var(--muted);
}

.blog-crumb a {
    color: var(--bone-dim);
}

.blog-crumb a:hover {
    color: var(--bone);
}

.blog-post-head {
    margin-bottom: clamp(28px, 5vh, 48px);
}

.blog-post-title {
    margin-top: 16px;
    font-size: clamp(28px, 4vw, 56px);
    text-transform: none;
    letter-spacing: -.03em;
}

.blog-prose {
    max-width: 68ch;
}

.blog-prose p {
    margin: 0 0 1.15em;
    font-size: clamp(16px, 1.15vw, 18px);
    line-height: 1.75;
    color: #c4cad8;
}

.blog-prose h2 {
    margin: 2em 0 .7em;
    font-size: clamp(22px, 2.2vw, 32px);
    font-weight: 300;
    letter-spacing: -.02em;
}

.blog-prose h3 {
    margin: 1.6em 0 .55em;
    font-size: clamp(18px, 1.5vw, 22px);
}

.blog-prose ul {
    margin: 0 0 1.2em;
    padding-left: 1.2em;
    color: #c4cad8;
}

.blog-prose a {
    color: var(--bone);
    border-bottom: 1px solid var(--line);
}

.blog-prose a:hover {
    border-bottom-color: var(--brand);
}

.blog-faq,
.blog-cta,
.blog-author {
    max-width: 68ch;
    margin-top: clamp(42px, 7vh, 72px);
    padding-top: 28px;
    border-top: 1px solid var(--line-soft);
}

.blog-faq h2,
.faq-slot-title,
.blog-cta h2 {
    font-size: clamp(22px, 2.2vw, 32px);
    font-weight: 300;
    margin-bottom: 16px;
}

.faq-empty,
.faq-item p {
    color: #97a0b3;
}

.faq-item + .faq-item {
    margin-top: 22px;
}

.blog-author-name {
    margin: 8px 0 4px;
    font-size: 18px;
    font-weight: 500;
}

@media (max-width: 820px) {
    .nav-links {
        gap: 16px;
    }

    .nav-link:nth-child(2) {
        display: none;
    }
}

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

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

    .blog-card {
        backdrop-filter: none;
        -webkit-backdrop-filter: none;
        background: linear-gradient(180deg, rgba(163, 184, 234, .08), rgba(4, 8, 15, .66));
    }
}

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

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