:root {
    --bg: #eff4fb;
    --bg-deep: #dfe8f8;
    --surface: rgba(255, 255, 255, 0.76);
    --surface-strong: rgba(255, 255, 255, 0.94);
    --surface-dark: #0d1b39;
    --surface-dark-soft: rgba(13, 27, 57, 0.9);
    --text: #12213f;
    --text-soft: #5d6e8b;
    --text-on-dark: #f8fbff;
    --accent: #257bff;
    --accent-deep: #0e49d1;
    --accent-soft: rgba(37, 123, 255, 0.12);
    --line: rgba(16, 35, 72, 0.12);
    --line-strong: rgba(16, 35, 72, 0.22);
    --shadow-lg: 0 30px 80px rgba(21, 42, 82, 0.14);
    --shadow-md: 0 18px 45px rgba(21, 42, 82, 0.1);
    --radius-xl: 32px;
    --radius-lg: 24px;
    --radius-md: 18px;
    --radius-sm: 14px;
    --content-width: 1180px;
    --font-sans: "Space Grotesk", sans-serif;
    --font-serif: "Fraunces", serif;
    --font-mono: "IBM Plex Mono", monospace;
    --ease-out: cubic-bezier(0.22, 1, 0.36, 1);
    --scroll-progress: 0;
    --scroll-glow-shift: 0px;
}

* {
    box-sizing: border-box;
}

html {
    scroll-behavior: smooth;
}

body {
    margin: 0;
    min-height: 100vh;
    font-family: var(--font-sans);
    color: var(--text);
    background:
        radial-gradient(circle at top left, rgba(70, 142, 255, 0.22), transparent 34%),
        radial-gradient(circle at top right, rgba(35, 123, 255, 0.14), transparent 28%),
        linear-gradient(180deg, #f9fbff 0%, var(--bg) 48%, #e6eef9 100%);
    line-height: 1.6;
    -webkit-font-smoothing: antialiased;
    text-rendering: optimizeLegibility;
    overflow-x: hidden;
}

body::before {
    content: "";
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    height: 3px;
    transform: scaleX(var(--scroll-progress));
    transform-origin: left center;
    background: linear-gradient(90deg, #70afff, #257bff 55%, #0e49d1);
    box-shadow: 0 0 22px rgba(37, 123, 255, 0.35);
    z-index: 120;
    pointer-events: none;
}

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

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

a:focus-visible,
button:focus-visible {
    outline: 3px solid rgba(37, 123, 255, 0.28);
    outline-offset: 3px;
}

button,
input,
textarea,
select {
    font: inherit;
}

.page-backdrop {
    position: fixed;
    inset: 0;
    pointer-events: none;
    z-index: -1;
    overflow: hidden;
}

.page-grid {
    position: absolute;
    inset: 0;
    background-image:
        linear-gradient(rgba(18, 33, 63, 0.04) 1px, transparent 1px),
        linear-gradient(90deg, rgba(18, 33, 63, 0.04) 1px, transparent 1px);
    background-size: 72px 72px;
    mask-image: linear-gradient(180deg, rgba(0, 0, 0, 0.55), transparent 85%);
}

.page-glow {
    position: absolute;
    border-radius: 999px;
    filter: blur(14px);
    transition: transform 0.35s ease-out;
}

.glow-a {
    top: 2rem;
    right: -7rem;
    width: 24rem;
    height: 24rem;
    background: rgba(37, 123, 255, 0.16);
    transform: translate3d(0, calc(var(--scroll-glow-shift) * -0.7), 0);
    animation: glowDriftA 14s ease-in-out infinite alternate;
}

.glow-b {
    bottom: -10rem;
    left: -6rem;
    width: 28rem;
    height: 28rem;
    background: rgba(54, 133, 255, 0.12);
    transform: translate3d(0, var(--scroll-glow-shift), 0);
    animation: glowDriftB 18s ease-in-out infinite alternate;
}

.site-wrap {
    width: min(calc(100% - 2.5rem), var(--content-width));
    margin: 0 auto;
}

.section {
    padding: 5rem 0;
}

.section[id] {
    scroll-margin-top: 6.75rem;
}

.section-tight {
    padding-top: 2rem;
}

.eyebrow {
    display: inline-flex;
    align-items: center;
    gap: 0.55rem;
    margin: 0 0 1rem;
    padding: 0.5rem 0.9rem;
    border: 1px solid rgba(37, 123, 255, 0.18);
    border-radius: 999px;
    background: rgba(255, 255, 255, 0.62);
    color: var(--accent-deep);
    font-family: var(--font-mono);
    font-size: 0.73rem;
    letter-spacing: 0.08em;
    text-transform: uppercase;
}

.section-heading {
    max-width: 48rem;
    margin-bottom: 2.5rem;
}

.section-heading::after {
    content: "";
    display: block;
    width: clamp(4rem, 12vw, 7rem);
    height: 2px;
    margin-top: 1.25rem;
    border-radius: 999px;
    background: linear-gradient(90deg, rgba(37, 123, 255, 0.95), rgba(37, 123, 255, 0));
    transform: scaleX(0.28);
    transform-origin: left center;
    opacity: 0.3;
    transition: transform 0.8s var(--ease-out), opacity 0.8s var(--ease-out);
}

.hero-title,
.section-title,
.page-title {
    margin: 0;
    font-family: var(--font-serif);
    line-height: 1.05;
    letter-spacing: -0.04em;
}

.hero-title {
    font-size: clamp(3rem, 7vw, 5.8rem);
}

.hero-title span {
    color: var(--accent-deep);
}

.section-title,
.page-title {
    font-size: clamp(2.3rem, 5vw, 4rem);
}

.hero-text,
.section-intro,
.page-intro,
.principle-card p,
.app-description,
.contact-card p,
.policy-card p,
.callout-card p,
.error-card p {
    margin: 0;
    color: var(--text-soft);
    font-size: 1.05rem;
}

.site-header {
    position: sticky;
    top: 0;
    z-index: 20;
    padding: 1.15rem 0;
    transition: padding 0.25s var(--ease-out), background-color 0.25s var(--ease-out), box-shadow 0.25s var(--ease-out), border-color 0.25s var(--ease-out);
}

.site-header.is-scrolled {
    padding: 0.75rem 0;
    background: rgba(244, 248, 254, 0.75);
    backdrop-filter: blur(18px) saturate(150%);
    box-shadow: 0 12px 30px rgba(16, 35, 72, 0.06);
    border-bottom: 1px solid rgba(16, 35, 72, 0.08);
}

.site-nav {
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 1.5rem;
}

.brand {
    display: inline-flex;
    align-items: center;
    gap: 0.95rem;
    min-width: 0;
}

.brand-mark {
    width: 3rem;
    height: 3rem;
    flex: none;
    display: grid;
    place-items: center;
    border-radius: 0.95rem;
    background: linear-gradient(180deg, rgba(255, 255, 255, 0.96), rgba(232, 240, 255, 0.96));
    border: 1px solid rgba(37, 123, 255, 0.1);
    box-shadow: inset 0 1px 0 rgba(255, 255, 255, 0.95), var(--shadow-md);
}

.brand-mark img {
    width: 2.15rem;
    height: 2.15rem;
}

.brand-copy {
    display: grid;
    gap: 0.1rem;
}

.brand-copy strong {
    font-size: 1rem;
    line-height: 1.1;
    letter-spacing: -0.03em;
}

.brand-copy span {
    color: var(--text-soft);
    font-size: 0.88rem;
    line-height: 1.15;
}

.nav-panel {
    display: flex;
    align-items: center;
    gap: 0.35rem;
}

.nav-panel > a:not(.button) {
    padding: 0.72rem 0.92rem;
    border-radius: 999px;
    color: var(--text-soft);
    font-size: 0.95rem;
    transition: background-color 0.2s ease, color 0.2s ease, transform 0.2s ease;
}

.nav-panel > a:not(.button):hover,
.nav-panel > a:not(.button)[aria-current="page"] {
    color: var(--text);
    background: rgba(255, 255, 255, 0.72);
}

.nav-panel > a.button {
    color: var(--text-on-dark);
}

.button {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    gap: 0.5rem;
    border-radius: 999px;
    padding: 0.95rem 1.35rem;
    font-weight: 700;
    letter-spacing: -0.01em;
    transition: transform 0.2s ease, box-shadow 0.2s ease, background-color 0.2s ease, color 0.2s ease;
}

.button:hover,
.text-link:hover {
    transform: translateY(-2px);
}

.button-primary {
    color: var(--text-on-dark);
    background: linear-gradient(135deg, var(--accent), var(--accent-deep));
    box-shadow: 0 18px 35px rgba(30, 89, 204, 0.22);
}

.button-secondary {
    color: var(--text);
    background: rgba(255, 255, 255, 0.78);
    border: 1px solid rgba(16, 35, 72, 0.12);
    box-shadow: var(--shadow-md);
}

.button-small {
    padding: 0.72rem 1rem;
}

.nav-toggle {
    display: none;
    width: 3rem;
    height: 3rem;
    border: 0;
    padding: 0;
    border-radius: 999px;
    background: rgba(255, 255, 255, 0.72);
    box-shadow: var(--shadow-md);
    cursor: pointer;
}

.nav-toggle span {
    display: block;
    width: 1.25rem;
    height: 2px;
    margin: 0.22rem auto;
    background: var(--text);
    border-radius: 999px;
    transition: transform 0.2s ease, opacity 0.2s ease;
}

.nav-toggle[aria-expanded="true"] span:nth-child(1) {
    transform: translateY(6px) rotate(45deg);
}

.nav-toggle[aria-expanded="true"] span:nth-child(2) {
    opacity: 0;
}

.nav-toggle[aria-expanded="true"] span:nth-child(3) {
    transform: translateY(-6px) rotate(-45deg);
}

.hero {
    padding-top: 4.25rem;
}

.hero-grid,
.split-grid,
.page-hero-grid {
    display: grid;
    grid-template-columns: minmax(0, 1.12fr) minmax(18rem, 0.88fr);
    gap: 2rem;
    align-items: center;
}

.page-hero-grid {
    align-items: start;
}

.hero-copy {
    max-width: 41rem;
}

.hero-copy .hero-text {
    margin-top: 1.35rem;
    max-width: 36rem;
    font-size: 1.12rem;
}

.hero-actions,
.cta-actions {
    display: flex;
    flex-wrap: wrap;
    gap: 0.9rem;
    align-items: center;
    margin-top: 1.85rem;
}

.proof-strip {
    display: grid;
    grid-template-columns: repeat(3, minmax(0, 1fr));
    gap: 0.85rem;
    margin: 2rem 0 0;
    padding: 0;
    list-style: none;
}

.proof-strip li {
    padding: 1rem 1.1rem;
    border: 1px solid rgba(16, 35, 72, 0.08);
    border-radius: var(--radius-md);
    background: rgba(255, 255, 255, 0.62);
    box-shadow: var(--shadow-md);
}

.proof-strip strong {
    display: block;
    font-size: 1.35rem;
    line-height: 1.1;
    letter-spacing: -0.03em;
}

.proof-strip span {
    color: var(--text-soft);
    font-size: 0.92rem;
}

.hero-visual {
    display: grid;
    gap: 1rem;
    align-content: start;
}

.hero-mark-card,
.hero-note,
.callout-card,
.app-card,
.principle-card,
.metrics-card,
.cta-panel,
.contact-card,
.policy-card,
.error-card {
    border: 1px solid var(--line);
    border-radius: var(--radius-xl);
    background: var(--surface);
    box-shadow: var(--shadow-lg);
    backdrop-filter: blur(18px);
}

.hero-mark-card {
    position: relative;
    width: 100%;
    max-width: 27rem;
    min-height: 22.5rem;
    padding: 2.2rem;
    overflow: hidden;
    justify-self: end;
    background:
        radial-gradient(circle at center, rgba(39, 122, 255, 0.16), transparent 50%),
        linear-gradient(180deg, rgba(255, 255, 255, 0.95), rgba(229, 238, 252, 0.92));
    transform: translate3d(0, var(--parallax-shift, 0px), 0);
    transition: transform 0.45s cubic-bezier(0.22, 1, 0.36, 1), box-shadow 0.3s ease;
}

.hero-mark-glow {
    position: absolute;
    inset: 0;
    background: radial-gradient(circle at center, rgba(39, 122, 255, 0.32), transparent 48%);
    opacity: 0.8;
    animation: glowPulse 7.5s ease-in-out infinite;
}

.hero-mark {
    position: relative;
    width: 100%;
    max-width: 16rem;
    margin: 1.35rem auto 0;
    animation: heroMarkFloat 8.5s ease-in-out infinite;
}

.hero-note-grid {
    display: grid;
    grid-template-columns: minmax(0, 1.2fr) minmax(0, 0.8fr);
    gap: 1rem;
    width: 100%;
    max-width: 27rem;
    justify-self: end;
}

.hero-note {
    padding: 1.25rem 1.35rem;
    min-height: 100%;
    transform: translate3d(0, var(--parallax-shift, 0px), 0);
    transition: transform 0.45s cubic-bezier(0.22, 1, 0.36, 1), box-shadow 0.22s ease, border-color 0.22s ease;
}

.hero-note p {
    font-size: 0.98rem;
}

.hero-note-release {
    background: linear-gradient(160deg, rgba(13, 27, 57, 0.96), rgba(17, 43, 95, 0.94));
    color: var(--text-on-dark);
    border-color: rgba(129, 179, 255, 0.18);
}

.hero-note-release p,
.hero-note-release .note-label {
    color: rgba(244, 248, 255, 0.82);
}

.note-label,
.card-kicker {
    display: inline-block;
    margin: 0 0 0.4rem;
    color: var(--accent-deep);
    font-family: var(--font-mono);
    font-size: 0.73rem;
    letter-spacing: 0.08em;
    text-transform: uppercase;
}

.hero-note strong,
.app-card h3,
.principle-card h3,
.contact-card h2,
.policy-card h2 {
    display: block;
    margin: 0 0 0.5rem;
    font-size: 1.45rem;
    line-height: 1.1;
    letter-spacing: -0.03em;
}

.app-grid,
.principles-grid,
.contact-grid,
.policy-grid {
    display: grid;
    gap: 1.25rem;
}

.app-grid {
    grid-template-columns: repeat(3, minmax(0, 1fr));
}

.app-card {
    padding: 1.35rem;
    display: flex;
    flex-direction: column;
    min-height: 100%;
}

.app-card-featured,
.contact-card-featured {
    background: linear-gradient(160deg, rgba(13, 27, 57, 0.96), rgba(17, 43, 95, 0.92));
    color: var(--text-on-dark);
    border-color: rgba(129, 179, 255, 0.18);
}

.app-card-featured .card-kicker,
.contact-card-featured .card-kicker {
    color: rgba(244, 248, 255, 0.72);
}

.app-card-featured .app-description,
.contact-card-featured p,
.contact-card-featured .text-link-light {
    color: rgba(244, 248, 255, 0.86);
}

.app-card-head {
    display: flex;
    align-items: center;
    gap: 1rem;
    margin-bottom: 1rem;
}

.app-icon {
    width: 4.25rem;
    height: 4.25rem;
    flex: none;
    padding: 0.3rem;
    border-radius: 1.35rem;
    background: rgba(255, 255, 255, 0.82);
    box-shadow: inset 0 1px 0 rgba(255, 255, 255, 0.95);
}

.app-card-featured .app-icon {
    background: rgba(255, 255, 255, 0.96);
}

.app-icon img {
    width: 100%;
    height: 100%;
    border-radius: 1rem;
}

.tag-row,
.compact-list {
    display: flex;
    flex-wrap: wrap;
    gap: 0.55rem;
    margin: 1.2rem 0 1.3rem;
    padding: 0;
    list-style: none;
}

.tag-row li,
.compact-list li {
    padding: 0.45rem 0.75rem;
    border-radius: 999px;
    background: rgba(37, 123, 255, 0.09);
    color: var(--accent-deep);
    font-size: 0.86rem;
    line-height: 1.1;
}

.app-card-featured .tag-row li,
.contact-card-featured .compact-list li {
    background: rgba(255, 255, 255, 0.12);
    color: rgba(244, 248, 255, 0.88);
}

.text-link,
.inline-link,
.contact-value {
    display: inline-flex;
    align-items: center;
    gap: 0.45rem;
    font-weight: 700;
    color: var(--accent-deep);
}

.text-link-light {
    color: var(--text-on-dark);
}

.app-card .text-link,
.app-card .text-link-light {
    margin-top: auto;
}

.principles-grid {
    grid-template-columns: repeat(4, minmax(0, 1fr));
}

.principle-card {
    padding: 1.4rem;
}

.split-grid {
    align-items: stretch;
}

.metrics-card {
    display: grid;
    grid-template-columns: repeat(2, minmax(0, 1fr));
    gap: 1rem;
    padding: 1.4rem;
}

.metric {
    padding: 1.3rem;
    border-radius: var(--radius-md);
    background: rgba(255, 255, 255, 0.74);
    border: 1px solid rgba(16, 35, 72, 0.08);
}

.metric strong {
    display: block;
    margin-bottom: 0.35rem;
    font-size: clamp(2rem, 4vw, 3rem);
    line-height: 1;
    letter-spacing: -0.05em;
}

.metric span {
    color: var(--text-soft);
}

.cta-panel {
    display: grid;
    grid-template-columns: minmax(0, 1fr) auto;
    align-items: center;
    gap: 1.5rem;
    padding: 1.8rem;
    background:
        radial-gradient(circle at top right, rgba(37, 123, 255, 0.22), transparent 35%),
        linear-gradient(160deg, rgba(255, 255, 255, 0.92), rgba(231, 239, 252, 0.88));
}

.theme-inner .page-hero {
    padding-top: 4rem;
}

.page-title {
    max-width: 32rem;
}

.page-intro {
    margin-top: 1rem;
    max-width: 38rem;
}

.callout-card {
    padding: 1.4rem;
    width: 100%;
    max-width: 22rem;
    justify-self: end;
}

.callout-date {
    margin: 0 0 0.55rem;
    font-size: 2rem;
    line-height: 1;
    letter-spacing: -0.04em;
}

.callout-copy {
    color: var(--text-soft);
}

.contact-grid {
    grid-template-columns: repeat(3, minmax(0, 1fr));
    align-items: stretch;
}

.contact-card {
    padding: 1.45rem;
}

.contact-value {
    margin-top: 1rem;
}

.policy-grid {
    grid-template-columns: repeat(2, minmax(0, 1fr));
    align-items: stretch;
}

.policy-card {
    padding: 1.4rem;
}

.policy-card p + p {
    margin-top: 0.8rem;
}

.app-card,
.principle-card,
.contact-card,
.policy-card,
.hero-note,
.metric,
.cta-panel,
.callout-card,
.error-card {
    transition: transform 0.22s ease, box-shadow 0.22s ease, border-color 0.22s ease;
}

.app-card:hover,
.principle-card:hover,
.contact-card:hover,
.policy-card:hover,
.hero-note:hover,
.callout-card:hover {
    transform: translate3d(0, calc(var(--parallax-shift, 0px) - 4px), 0);
    box-shadow: 0 26px 60px rgba(21, 42, 82, 0.16);
    border-color: rgba(37, 123, 255, 0.18);
}

.error-shell {
    min-height: calc(100vh - 14rem);
    display: grid;
    place-items: center;
}

.error-card {
    max-width: 42rem;
    margin: 0 auto;
    padding: 2.3rem;
    text-align: center;
}

.error-card .page-title {
    max-width: none;
}

.error-card .page-intro {
    max-width: 32rem;
    margin-left: auto;
    margin-right: auto;
}

.site-footer {
    padding: 1rem 0 2.5rem;
}

.footer-layout {
    display: grid;
    grid-template-columns: minmax(0, 1fr) auto auto;
    gap: 1rem;
    align-items: center;
    padding-top: 1.5rem;
    border-top: 1px solid rgba(16, 35, 72, 0.08);
}

.brand-footer .brand-mark {
    width: 2.65rem;
    height: 2.65rem;
}

.brand-footer .brand-mark img {
    width: 1.9rem;
    height: 1.9rem;
}

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

.footer-links a,
.footer-copy {
    color: var(--text-soft);
    font-size: 0.95rem;
}

.footer-links a:hover,
.inline-link:hover {
    color: var(--accent-deep);
}

.js .reveal {
    opacity: 0;
    transform: translate3d(0, 32px, 0) scale(0.985);
    filter: blur(10px);
    transition: opacity 0.8s var(--ease-out), transform 0.8s var(--ease-out), filter 0.8s var(--ease-out);
}

.js .reveal.delay-1 {
    transition-delay: 0.08s;
}

.js .reveal.delay-2 {
    transition-delay: 0.16s;
}

.js .reveal.delay-3 {
    transition-delay: 0.24s;
}

.js .reveal.delay-4 {
    transition-delay: 0.32s;
}

.js .reveal.is-visible {
    opacity: 1;
    transform: translate3d(0, 0, 0) scale(1);
    filter: blur(0);
}

.js .section-heading.reveal.is-visible::after {
    transform: scaleX(1);
    opacity: 1;
}

[data-parallax] {
    will-change: transform;
}

@keyframes heroMarkFloat {
    0%,
    100% {
        transform: translate3d(0, 0, 0);
    }
    50% {
        transform: translate3d(0, -10px, 0);
    }
}

@keyframes glowPulse {
    0%,
    100% {
        opacity: 0.72;
        transform: scale(0.96);
    }
    50% {
        opacity: 1;
        transform: scale(1.04);
    }
}

@keyframes glowDriftA {
    0% {
        filter: blur(14px);
    }
    100% {
        filter: blur(18px);
    }
}

@keyframes glowDriftB {
    0% {
        filter: blur(12px);
    }
    100% {
        filter: blur(20px);
    }
}

@media (max-width: 980px) {
    .hero-grid,
    .split-grid,
    .page-hero-grid,
    .app-grid,
    .principles-grid,
    .contact-grid,
    .policy-grid,
    .footer-layout {
        grid-template-columns: 1fr;
    }

    .hero-visual {
        margin-top: 1rem;
    }

    .hero-mark-card,
    .hero-note-grid,
    .callout-card {
        max-width: none;
        justify-self: stretch;
    }

    .hero-note-grid {
        grid-template-columns: 1fr 1fr;
    }

    .cta-panel {
        grid-template-columns: 1fr;
        align-items: flex-start;
    }

    .footer-layout {
        justify-items: start;
    }
}

@media (max-width: 860px) {
    body.nav-open {
        overflow: hidden;
    }

    .js .nav-toggle {
        display: inline-block;
    }

    .js .nav-panel {
        position: fixed;
        top: 5.5rem;
        left: 1rem;
        right: 1rem;
        display: grid;
        gap: 0.35rem;
        padding: 1rem;
        border: 1px solid rgba(16, 35, 72, 0.08);
        border-radius: var(--radius-lg);
        background: rgba(247, 250, 255, 0.95);
        box-shadow: var(--shadow-lg);
        opacity: 0;
        pointer-events: none;
        transform: translateY(-8px);
        transition: opacity 0.2s ease, transform 0.2s ease;
    }

    .js .nav-panel.is-open {
        opacity: 1;
        pointer-events: auto;
        transform: translateY(0);
    }

    .js .nav-panel > a,
    .js .nav-panel .button {
        width: 100%;
        justify-content: center;
    }

    .proof-strip {
        grid-template-columns: 1fr;
    }
}

@media (max-width: 640px) {
    .site-wrap {
        width: min(calc(100% - 1.4rem), var(--content-width));
    }

    .section {
        padding: 4rem 0;
    }

    .site-header {
        padding-top: 0.9rem;
    }

    .brand-copy span {
        display: none;
    }

    .hero {
        padding-top: 2.5rem;
    }

    .hero-mark-card {
        width: 100%;
        min-height: 18rem;
    }

    .hero-mark {
        max-width: 12rem;
    }

    .hero-note-grid {
        grid-template-columns: 1fr;
    }

    .hero-note {
        width: 100%;
    }

    .metrics-card {
        grid-template-columns: 1fr;
    }

    .button,
    .button-small {
        width: 100%;
    }

    .hero-actions,
    .cta-actions {
        flex-direction: column;
    }
}

@media (prefers-reduced-motion: reduce) {
    html {
        scroll-behavior: auto;
    }

    body::before {
        display: none;
    }

    *,
    *::before,
    *::after {
        animation-duration: 0.01ms !important;
        animation-iteration-count: 1 !important;
        transition-duration: 0.01ms !important;
        scroll-behavior: auto !important;
    }
}
