:root {
    --front-ink: #102033;
    --front-muted: #526273;
    --front-soft: #f7f8fa;
    --front-soft-2: #ffffff;
    --front-cool: #eef2f6;
    --front-cool-2: #e2e8ef;
    --front-panel: rgba(255, 255, 255, 0.72);
    --front-panel-strong: rgba(255, 255, 255, 0.9);
    --front-line: rgba(25, 55, 86, 0.16);
    --front-accent: #1e5085;
    --front-accent-bright: #3882d2;
    --front-accent-2: #c7650f;
    --front-deep: #102d4d;
    --front-deep-2: #1e5085;
    --front-radius: 28px;
    --front-shadow: 0 24px 80px rgba(34, 37, 42, 0.12);
    --front-header-height: 72px;
    --front-scroll-progress: 0;
}

body.dark-mode {
    --front-ink: #e0f0ff;
    --front-muted: #a9bfd4;
    --front-soft: #0d1117;
    --front-soft-2: #121a24;
    --front-cool: #172333;
    --front-cool-2: #1d2c3f;
    --front-panel: rgba(22, 32, 45, 0.8);
    --front-panel-strong: rgba(19, 29, 42, 0.94);
    --front-line: rgba(181, 211, 240, 0.19);
    --front-accent: #68aeea;
    --front-accent-bright: #92c8f7;
    --front-accent-2: #f09a4c;
    --front-deep: #e0f0ff;
    --front-deep-2: #b8d7f2;
    --front-shadow: 0 28px 90px rgba(0, 0, 0, 0.36);
}

.frontpage-body {
    background: var(--front-soft);
}

.frontpage {
    position: relative;
    color: var(--front-ink);
    background:
        linear-gradient(180deg, var(--front-soft) 0%, #fff 42%, var(--front-cool) 100%);
    font-family: var(--font-sans);
    overflow: hidden;
    isolation: isolate;
}

.frontpage::before {
    content: none;
}

.front-cinematic {
    position: fixed;
    inset: 0;
    z-index: -1;
    overflow: hidden;
    pointer-events: none;
    opacity: calc(0.82 - (var(--front-scroll-progress) * 0.82));
    transition: opacity 120ms linear;
    background: #dbe7e3;
}

.front-cinematic-video {
    width: 100%;
    height: 100%;
    max-width: none;
    object-fit: cover;
    filter: saturate(0.72) contrast(1.07) brightness(0.88) sepia(0.16) hue-rotate(-8deg);
    transform: scale(calc(1.04 + (var(--front-scroll-progress) * 0.11))) translate3d(0, calc(var(--front-scroll-progress) * -5%), 0);
    transform-origin: 56% 48%;
    will-change: transform;
}

.front-cinematic-grade,
.front-cinematic-grain {
    position: absolute;
    inset: 0;
}

.front-cinematic-grade {
    background:
        radial-gradient(circle at 72% 22%, rgba(255, 190, 105, 0.34), transparent 28%),
        radial-gradient(circle at 22% 78%, rgba(44, 113, 129, 0.24), transparent 34%),
        linear-gradient(118deg, rgba(255, 248, 232, 0.5), rgba(222, 116, 70, 0.14) 42%, rgba(23, 66, 78, 0.38));
    mix-blend-mode: soft-light;
}

.front-cinematic-grain {
    opacity: 0.12;
    background:
        radial-gradient(ellipse at center, transparent 20%, rgba(21, 28, 32, 0.3) 100%),
        url("/noise.png");
    mix-blend-mode: multiply;
}

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

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

.frontpage a:hover {
    text-decoration: none;
}

.front-shell {
    width: min(1180px, calc(100% - 40px));
    margin-inline: auto;
    position: relative;
    z-index: 2;
}

.frontpage-body .site-header {
    position: sticky;
    top: 0;
    overflow: hidden;
    margin-bottom: calc(var(--front-header-height) * -1);
    background: rgba(255, 255, 255, 0.12);
    border-bottom: 1px solid rgba(255, 255, 255, 0.22);
    box-shadow:
        inset 0 1px 0 rgba(255, 255, 255, 0.42),
        0 18px 44px rgba(44, 39, 32, 0.08);
    backdrop-filter: blur(28px) saturate(1.65) contrast(1.04);
    -webkit-backdrop-filter: blur(28px) saturate(1.65) contrast(1.04);
}

.frontpage-body .site-header::before {
    content: "";
    position: absolute;
    inset: 0;
    z-index: 0;
    pointer-events: none;
    background:
        linear-gradient(180deg, rgba(255, 255, 255, 0.22), transparent 72%),
        linear-gradient(90deg, rgba(255, 255, 255, 0.08), transparent 36%, rgba(255, 255, 255, 0.06));
    opacity: 0.86;
}

.frontpage-body .site-nav {
    position: relative;
    z-index: 1;
}

.frontpage-body .theme-toggle,
.frontpage-body .mobile-menu summary {
    box-shadow:
        inset 0 1px 0 rgba(255, 255, 255, 0.52),
        0 8px 24px rgba(35, 40, 48, 0.08);
}

.dark-mode.frontpage-body .site-header {
    background: rgba(7, 10, 15, 0.2);
    border-bottom-color: rgba(235, 246, 250, 0.14);
    box-shadow:
        inset 0 1px 0 rgba(255, 255, 255, 0.095),
        0 18px 54px rgba(0, 0, 0, 0.22);
    backdrop-filter: blur(30px) saturate(1.75) contrast(1.06);
    -webkit-backdrop-filter: blur(30px) saturate(1.75) contrast(1.06);
}

.dark-mode.frontpage-body .site-header::before {
    background:
        linear-gradient(180deg, rgba(255, 255, 255, 0.075), transparent 72%),
        linear-gradient(90deg, rgba(255, 255, 255, 0.035), transparent 34%, rgba(255, 255, 255, 0.025));
    opacity: 0.92;
}

.dark-mode.frontpage-body .theme-toggle,
.dark-mode.frontpage-body .mobile-menu summary {
    border-color: rgba(213, 229, 235, 0.16);
    background: rgba(255, 255, 255, 0.055);
    box-shadow:
        inset 0 1px 0 rgba(255, 255, 255, 0.09),
        0 10px 30px rgba(0, 0, 0, 0.18);
}

.dark-mode.frontpage-body .theme-toggle:hover,
.dark-mode.frontpage-body .mobile-menu summary:hover {
    background: rgba(255, 255, 255, 0.095);
}

.front-site-header {
    position: sticky;
    top: 0;
    z-index: 20;
    min-height: var(--front-header-height);
    color: var(--front-ink);
    background: rgba(255, 249, 239, 0.78);
    border-bottom: 1px solid rgba(28, 32, 39, 0.1);
    backdrop-filter: blur(18px);
}

.front-site-nav {
    display: grid;
    grid-template-columns: auto minmax(0, 1fr) auto;
    gap: 24px;
    min-height: var(--front-header-height);
    align-items: center;
}

.front-site-brand {
    display: inline-flex;
    align-items: center;
}

.front-site-brand img,
.front-footer-brand img {
    display: block;
    width: auto;
    filter: brightness(0) saturate(100%) invert(9%) sepia(13%) saturate(1095%) hue-rotate(179deg) brightness(91%) contrast(92%);
}

.front-site-links {
    display: flex;
    flex-wrap: wrap;
    gap: clamp(14px, 2vw, 28px);
    align-items: center;
    justify-content: flex-end;
}

.front-site-links a,
.front-theme-toggle,
.front-mobile-panel a,
.front-mobile-panel button {
    color: rgba(23, 27, 34, 0.76);
    font-weight: 700;
}

.front-site-links a {
    position: relative;
    font-size: 1rem;
    line-height: 1;
    transition: color 160ms ease;
}

.front-site-links a::after {
    content: "";
    position: absolute;
    right: 0;
    bottom: -10px;
    left: 0;
    height: 2px;
    border-radius: 999px;
    background: currentColor;
    opacity: 0;
    transform: scaleX(0.72);
    transition: opacity 160ms ease, transform 160ms ease;
}

.front-site-links a:hover,
.front-site-links a[aria-current="page"],
.front-theme-toggle:hover {
    color: var(--front-ink);
}

.front-site-links a:hover::after,
.front-site-links a[aria-current="page"]::after {
    opacity: 0.42;
    transform: scaleX(1);
}

.front-theme-toggle {
    display: inline-flex;
    width: 42px;
    height: 42px;
    align-items: center;
    justify-content: center;
    border: 1px solid rgba(23, 27, 34, 0.12);
    border-radius: 999px;
    background: rgba(255, 255, 255, 0.48);
    cursor: pointer;
    transition: transform 160ms ease, background-color 160ms ease;
}

.front-theme-toggle:hover {
    transform: translateY(-1px);
    background: rgba(255, 255, 255, 0.72);
}

.front-theme-toggle svg {
    width: 17px;
    height: 17px;
    fill: currentColor;
}

.front-mobile-menu {
    display: none;
    position: relative;
}

.front-mobile-menu summary {
    display: inline-flex;
    width: 48px;
    height: 48px;
    align-items: center;
    justify-content: center;
    flex-direction: column;
    gap: 5px;
    border: 1px solid rgba(23, 27, 34, 0.14);
    border-radius: 12px;
    background: rgba(255, 255, 255, 0.46);
    cursor: pointer;
    list-style: none;
}

.front-mobile-menu summary::-webkit-details-marker {
    display: none;
}

.front-mobile-menu summary span {
    width: 22px;
    height: 2px;
    border-radius: 999px;
    background: var(--front-ink);
}

.front-mobile-panel {
    position: absolute;
    top: calc(100% + 12px);
    right: 0;
    width: min(320px, calc(100vw - 28px));
    padding: 12px;
    border: 1px solid var(--front-line);
    border-radius: 22px;
    background: #fffaf2;
    box-shadow: var(--front-shadow);
    backdrop-filter: blur(18px);
}

.front-mobile-panel nav {
    display: grid;
    gap: 4px;
}

.front-mobile-panel a,
.front-mobile-panel button {
    display: flex;
    min-height: 44px;
    align-items: center;
    border: 0;
    border-radius: 14px;
    padding: 10px 12px;
    background: transparent;
    font: inherit;
    text-align: left;
}

.front-mobile-panel a:hover,
.front-mobile-panel button:hover {
    color: var(--front-ink);
    background: rgba(231, 95, 56, 0.08);
}

.front-hero {
    position: relative;
    min-height: 100vh;
    min-height: 100svh;
    min-height: 100dvh;
    display: grid;
    align-items: center;
    padding: clamp(72px, 9vw, 132px) 0 clamp(88px, 13vw, 180px);
    background:
        radial-gradient(circle at 12% 18%, rgba(255, 255, 255, 0.92), transparent 30%),
        radial-gradient(circle at 78% 28%, rgba(255, 214, 151, 0.43), transparent 32%),
        linear-gradient(135deg, rgba(255, 250, 240, 0.76) 0%, rgba(249, 230, 198, 0.68) 58%, rgba(237, 246, 245, 0.8) 100%);
    isolation: isolate;
}

.front-hero::before,
.front-section::after {
    content: "";
    display: block;
    height: 100%;
    width: 100%;
    position: absolute;
    top: 0;
    left: 0;
    background: url("/noise.png");
    opacity: 0.04;
    z-index: 1;
    pointer-events: none;
}

.front-hero::after,
.front-section-warm::before,
.front-section-cool::before,
.front-section-final::before {
    content: "";
    position: absolute;
    pointer-events: none;
    filter: blur(0.2px);
    opacity: 0.72;
    z-index: 0;
}

.front-hero::after {
    width: 980px;
    height: 300px;
    right: -300px;
    bottom: 60px;
    border-radius: 50%;
    background:
        radial-gradient(closest-side, rgba(216, 155, 57, 0.32), transparent 66%),
        radial-gradient(closest-side, rgba(231, 95, 56, 0.22), transparent 72%);
    transform: rotate(-11deg);
    animation: front-drift-b 20s ease-in-out infinite alternate;
}

.front-flow {
    position: absolute;
    inset: auto;
    pointer-events: none;
    border: 1px solid rgba(231, 95, 56, 0.16);
    border-radius: 999px;
    opacity: 0.48;
    z-index: 1;
}

.front-flow-one {
    width: 980px;
    height: 190px;
    left: -290px;
    top: 210px;
    transform: rotate(-18deg);
    animation: front-flow 24s ease-in-out infinite alternate;
}

.front-flow-two {
    width: 760px;
    height: 150px;
    right: -220px;
    bottom: 120px;
    transform: rotate(-10deg);
    animation: front-flow 26s ease-in-out infinite alternate-reverse;
}

.front-hero-grid {
    display: block;
}

.front-hero-copy {
    position: relative;
    min-width: 0;
    max-width: 100%;
    text-align: center;
}

.front-hero-copy::before {
    content: "";
    position: absolute;
    inset: clamp(-64px, -6vw, -32px) clamp(-48px, -5vw, -24px);
    z-index: -1;
    border-radius: 48px;
    background: radial-gradient(ellipse at center, rgba(255, 251, 242, 0.7) 0%, rgba(255, 250, 242, 0.34) 52%, transparent 76%);
    filter: blur(10px);
}

.front-kicker {
    margin: 0 0 14px;
    color: #9c4d32;
    font-size: 0.78rem;
    font-weight: 700;
    letter-spacing: 0.13em;
    text-transform: uppercase;
}

.front-hero h1,
.front-section h2 {
    margin: 0;
    color: var(--front-ink);
    font-weight: 700;
    letter-spacing: 0;
}

.front-hero h1 {
    max-width: 1080px;
    margin-inline: auto;
    color: #343942;
    font-size: clamp(3rem, 4.8vw, 5.25rem);
    line-height: 1.12;
    font-weight: 700;
}

.front-hero-line {
    margin: clamp(28px, 4vw, 48px) 0 0;
    color: #3a414b;
    font-size: clamp(1.8rem, 3.2vw, 3.1rem);
    line-height: 1.14;
    font-weight: 400;
}

.front-hero-text {
    max-width: 690px;
    margin: 22px auto 0;
    color: rgba(52, 57, 66, 0.7);
    font-size: clamp(1.05rem, 1.35vw, 1.32rem);
    font-weight: 700;
    line-height: 1.45;
}

.front-actions {
    display: flex;
    flex-wrap: wrap;
    gap: 12px;
    align-items: center;
    justify-content: center;
    margin-top: clamp(44px, 6vw, 76px);
}

.front-button {
    display: inline-flex;
    min-height: 72px;
    align-items: center;
    justify-content: center;
    border-radius: 999px;
    padding: 18px 54px;
    border: 1px solid transparent;
    font-weight: 700;
    font-size: clamp(1.35rem, 2.4vw, 2.55rem);
    line-height: 1;
    transition: transform 180ms ease, box-shadow 180ms ease, background-color 180ms ease;
}

.front-button:hover {
    transform: translateY(-2px);
}

.front-button-primary {
    color: #fff !important;
    background: linear-gradient(135deg, var(--front-accent), #ce4f38);
    box-shadow: 0 18px 44px rgba(216, 77, 50, 0.2);
}

.front-button-secondary {
    color: var(--front-ink);
    background: rgba(255, 255, 255, 0.68);
    border-color: var(--front-line);
}

.front-button-ghost {
    color: #f8fbff;
    border-color: rgba(255, 255, 255, 0.32);
    background: rgba(255, 255, 255, 0.08);
}

.front-meta-row {
    display: flex;
    flex-wrap: wrap;
    justify-content: center;
    gap: 10px;
    margin-top: 28px;
    color: #6c5545;
    font-size: 0.92rem;
}

.front-meta-row span {
    border: 1px solid rgba(70, 54, 42, 0.14);
    border-radius: 999px;
    padding: 7px 12px;
    background: rgba(255, 255, 255, 0.36);
}

.front-code-window {
    position: relative;
    overflow: hidden;
    border: 1px solid rgba(25, 31, 38, 0.13);
    border-radius: var(--front-radius);
    background: linear-gradient(180deg, rgba(255, 255, 255, 0.94), rgba(252, 253, 253, 0.86));
    box-shadow: var(--front-shadow);
}

.front-code-window pre {
    margin: 0;
    padding: clamp(24px, 3.4vw, 42px);
    background: transparent;
    overflow: auto;
}

.front-code-window code.hljs,
.front-code-window code {
    display: block;
    padding: 0;
    color: #1e2b33;
    background: transparent !important;
    font-size: clamp(0.78rem, 0.95vw, 0.9rem);
    line-height: 1.65;
    white-space: pre;
}

.front-section {
    position: relative;
    z-index: 1;
    --front-feather: clamp(38px, 5vw, 80px);
    margin-block: calc(var(--front-feather) * -1);
    padding: calc(clamp(76px, 10vw, 140px) + var(--front-feather)) 0;
    -webkit-mask-image: linear-gradient(to bottom, transparent 0, #000 var(--front-feather), #000 calc(100% - var(--front-feather)), transparent 100%);
    mask-image: linear-gradient(to bottom, transparent 0, #000 var(--front-feather), #000 calc(100% - var(--front-feather)), transparent 100%);
}

.front-section-warm {
    background:
        radial-gradient(circle at 82% 12%, rgba(255, 198, 125, 0.42), transparent 34%),
        linear-gradient(180deg, #edf6f5 0%, #fff4df 46%, #fbefe2 100%);
}

.front-section-warm::before {
    width: 720px;
    height: 220px;
    right: -260px;
    top: 40px;
    border-radius: 50%;
    background: radial-gradient(closest-side, rgba(216, 155, 57, 0.22), transparent 72%);
    transform: rotate(-13deg);
}

.front-section-light {
    background:
        radial-gradient(circle at 12% 12%, rgba(255, 221, 173, 0.45), transparent 32%),
        radial-gradient(circle at 86% 86%, rgba(91, 151, 169, 0.16), transparent 34%),
        linear-gradient(180deg, #fbefe2 0%, #fffaf2 38%, #eef6f7 100%);
}

.front-section-cool {
    background:
        radial-gradient(circle at 12% 30%, rgba(83, 145, 165, 0.18), transparent 36%),
        radial-gradient(circle at 88% 72%, rgba(255, 195, 128, 0.22), transparent 34%),
        linear-gradient(180deg, #eef6f7 0%, #e4f0f3 48%, #dce9ed 100%);
}

.front-community-strip {
    position: relative;
    overflow: hidden;
    z-index: 1;
    --front-feather: clamp(38px, 5vw, 80px);
    margin-block: calc(var(--front-feather) * -1);
    padding: calc(clamp(42px, 5vw, 70px) + var(--front-feather)) 0;
    color: #fff;
    background:
        radial-gradient(circle at 18% 24%, rgba(255, 223, 167, 0.32), transparent 34%),
        radial-gradient(circle at 86% 56%, rgba(70, 146, 168, 0.28), transparent 36%),
        linear-gradient(100deg, #d7633e 0%, #e59447 48%, #325f72 100%);
    -webkit-mask-image: linear-gradient(to bottom, transparent 0, #000 var(--front-feather), #000 calc(100% - var(--front-feather)), transparent 100%);
    mask-image: linear-gradient(to bottom, transparent 0, #000 var(--front-feather), #000 calc(100% - var(--front-feather)), transparent 100%);
}

.front-community-strip::after {
    content: "";
    display: block;
    height: 100%;
    width: 100%;
    position: absolute;
    top: 0;
    left: 0;
    background: url("/noise.png");
    opacity: 0.04;
    z-index: 1;
    pointer-events: none;
}

.front-community-band {
    display: grid;
    grid-template-columns: minmax(0, 0.75fr) minmax(260px, 1fr) auto;
    gap: clamp(18px, 3vw, 42px);
    align-items: center;
}

.front-community-strip h2,
.front-community-strip p {
    margin: 0;
}

.front-community-strip h2 {
    color: #fff;
    font-size: clamp(1.8rem, 3vw, 3rem);
    line-height: 1.05;
    font-weight: 700;
}

.front-community-strip p {
    max-width: 620px;
    color: rgba(255, 255, 255, 0.82);
    font-size: 1.05rem;
    line-height: 1.55;
}

.front-community-actions {
    display: flex;
    flex-wrap: wrap;
    gap: 12px;
    justify-content: flex-end;
}

.front-community-actions a {
    display: inline-flex;
    min-height: 48px;
    align-items: center;
    justify-content: center;
    border: 1px solid rgba(255, 255, 255, 0.42);
    border-radius: 999px;
    padding: 12px 18px;
    color: #fff;
    font-weight: 700;
    transition: transform 180ms ease, background-color 180ms ease;
}

.front-community-actions a:hover {
    transform: translateY(-2px);
    background: rgba(255, 255, 255, 0.12);
}

.front-section-cool::before {
    width: 880px;
    height: 280px;
    left: -320px;
    top: 240px;
    border-radius: 50%;
    background: radial-gradient(closest-side, rgba(69, 134, 151, 0.18), transparent 72%);
    transform: rotate(18deg);
}

.front-section-dark {
    color: #f1f7f8;
    background:
        radial-gradient(circle at 12% 18%, rgba(231, 95, 56, 0.2), transparent 34%),
        radial-gradient(circle at 92% 12%, rgba(70, 146, 168, 0.28), transparent 34%),
        linear-gradient(180deg, #142c38 0%, #141728 58%, #15394a 100%);
}

.front-section-final {
    background:
        radial-gradient(circle at 80% 20%, rgba(255, 197, 128, 0.34), transparent 34%),
        linear-gradient(180deg, #f8fbfb 0%, #fff4e1 54%, #edf6f5 100%);
}

.front-section-final::before {
    width: 760px;
    height: 220px;
    right: -180px;
    bottom: 40px;
    border-radius: 50%;
    background: radial-gradient(closest-side, rgba(231, 95, 56, 0.16), transparent 72%);
    transform: rotate(-14deg);
}

.front-section-titleblock {
    max-width: 780px;
    margin-bottom: clamp(34px, 5vw, 62px);
}

.front-section-titleblock.centered {
    margin-inline: auto;
    text-align: center;
}

.front-section h2 {
    max-width: 850px;
    font-size: clamp(2.1rem, 5vw, 4.4rem);
    line-height: 1;
}

.front-section-titleblock p:not(.front-kicker),
.front-split p,
.front-production-copy p {
    max-width: 690px;
    margin: 20px 0 0;
    color: var(--front-muted);
    font-size: 1.08rem;
    line-height: 1.75;
}

.front-use-tile,
.front-final-panel,
.front-next-grid a {
    border: 1px solid var(--front-line);
    background: linear-gradient(180deg, var(--front-panel-strong), var(--front-panel));
    box-shadow: 0 18px 56px rgba(37, 44, 52, 0.08);
}

.front-use-tile h3,
.front-feature h3 {
    margin: 0;
    color: var(--front-ink);
    font-size: clamp(1.45rem, 2.4vw, 2.35rem);
    line-height: 1.05;
    font-weight: 700;
}

.front-use-tile p,
.front-feature p {
    margin: 16px 0 0;
    color: var(--front-muted);
    font-size: 1rem;
    line-height: 1.65;
}

.front-use-grid {
    display: grid;
    grid-template-columns: repeat(3, minmax(0, 1fr));
    gap: 20px;
}

.front-use-tile {
    display: flex;
    min-height: 158px;
    align-items: flex-start;
    gap: 22px;
    padding: clamp(24px, 3vw, 34px);
    border-color: rgba(132, 55, 44, 0.12);
    border-radius: 42px;
    color: #70251f;
    background: linear-gradient(135deg, rgba(255, 199, 129, 0.9), rgba(255, 181, 98, 0.84));
    box-shadow: 0 20px 56px rgba(143, 74, 28, 0.12);
    transition: transform 180ms ease, box-shadow 180ms ease, background-color 180ms ease;
}

.front-use-tile:hover {
    transform: translateY(-4px);
    box-shadow: 0 30px 76px rgba(143, 74, 28, 0.18);
}

.front-use-icon {
    display: inline-flex;
    flex: 0 0 auto;
    width: 42px;
    height: 42px;
    align-items: center;
    justify-content: center;
    margin-top: 2px;
    color: #7d241f;
}

.front-use-icon svg {
    width: 100%;
    height: 100%;
    fill: none;
    stroke: currentColor;
    stroke-width: 1.85;
    stroke-linecap: round;
    stroke-linejoin: round;
}

.front-use-tile h3 {
    color: #74231f;
    font-size: clamp(1.45rem, 2vw, 2.05rem);
}

.front-use-tile p {
    max-width: 25rem;
    color: #71302b;
    font-size: 1.02rem;
}

.front-use-links {
    display: grid;
    grid-template-columns: repeat(4, minmax(0, 1fr));
    gap: 20px;
    margin-top: 22px;
}

.front-use-links a {
    display: flex;
    min-height: 66px;
    align-items: center;
    justify-content: center;
    border: 1px solid rgba(132, 55, 44, 0.12);
    border-radius: 999px;
    color: #73251f;
    background: linear-gradient(135deg, rgba(255, 199, 129, 0.82), rgba(255, 181, 98, 0.74));
    font-size: 1.08rem;
    font-weight: 700;
    transition: transform 180ms ease, box-shadow 180ms ease;
}

.front-use-links a:hover {
    transform: translateY(-3px);
    box-shadow: 0 18px 48px rgba(143, 74, 28, 0.12);
}

.front-feature-list {
    display: grid;
    gap: clamp(42px, 7vw, 86px);
}

.front-feature {
    display: grid;
    grid-template-columns: minmax(0, 0.82fr) minmax(360px, 1.18fr);
    gap: clamp(28px, 6vw, 80px);
    align-items: center;
}

.front-feature-reverse {
    grid-template-columns: minmax(360px, 1.18fr) minmax(0, 0.82fr);
}

.front-feature-reverse .front-feature-copy {
    grid-column: 2;
}

.front-feature-reverse .front-code-window {
    grid-column: 1;
    grid-row: 1;
}

.front-code-window-small {
    border-radius: 22px;
}

.front-code-window-small pre {
    padding: 30px;
}

.front-split {
    display: grid;
    grid-template-columns: minmax(0, 0.95fr) minmax(320px, 1.05fr);
    gap: clamp(36px, 7vw, 92px);
    align-items: center;
}

.front-section-dark h2,
.front-section-dark .front-kicker {
    color: #fff;
}

.front-section-dark .front-kicker {
    color: #ffc386;
}

.front-section-dark p {
    color: rgba(241, 247, 248, 0.76);
}

.front-library-grid {
    display: grid;
    grid-template-columns: repeat(2, minmax(0, 1fr));
    gap: 12px;
}

.front-library-grid a {
    display: flex;
    min-height: 74px;
    align-items: center;
    justify-content: center;
    border: 1px solid rgba(255, 255, 255, 0.16);
    border-radius: 20px;
    color: #f8fbff;
    background: rgba(255, 255, 255, 0.07);
    font-weight: 800;
    transition: transform 180ms ease, background-color 180ms ease;
}

.front-library-grid a:hover {
    transform: translateY(-3px);
    background: rgba(255, 255, 255, 0.12);
}

.front-production {
    position: relative;
    overflow: hidden;
    z-index: 1;
    --front-feather: clamp(38px, 5vw, 80px);
    margin-top: calc(var(--front-feather) * -1);
    padding-top: var(--front-feather);
    background:
        radial-gradient(circle at 12% 14%, rgba(255, 213, 153, 0.48), transparent 28%),
        radial-gradient(circle at 88% 82%, rgba(93, 157, 174, 0.18), transparent 30%),
        linear-gradient(180deg, #fbefe2 0%, #f8fbfb 42%, #e5f1f3 100%);
    -webkit-mask-image: linear-gradient(to bottom, transparent 0, #000 var(--front-feather), #000 calc(100% - var(--front-feather)), transparent 100%);
    mask-image: linear-gradient(to bottom, transparent 0, #000 var(--front-feather), #000 calc(100% - var(--front-feather)), transparent 100%);
}

.front-production-intro {
    display: grid;
    grid-template-columns: minmax(0, 0.9fr) minmax(320px, 1.1fr);
    gap: clamp(30px, 6vw, 72px);
    align-items: start;
    padding-top: clamp(76px, 10vw, 140px);
    padding-bottom: clamp(44px, 6vw, 72px);
}

.front-production-intro h2 {
    margin: 0;
    color: var(--front-ink);
    font-size: clamp(2.1rem, 5vw, 4.4rem);
    line-height: 1;
}

.front-production-copy p {
    margin-top: 0;
}

.front-production-actions {
    justify-content: flex-start;
    margin-top: 32px;
}

.front-production-actions .front-button {
    min-height: 52px;
    padding: 14px 22px;
    font-size: 1rem;
}

.front-production-reel {
    display: grid;
    gap: 2px;
    border-top: 1px solid rgba(23, 27, 34, 0.16);
    border-bottom: 1px solid rgba(23, 27, 34, 0.16);
    background: rgba(23, 27, 34, 0.16);
}

.front-production-strip {
    position: relative;
    display: grid;
    min-height: clamp(176px, 18vw, 274px);
    align-items: center;
    overflow: hidden;
    color: #fff;
    isolation: isolate;
}

.front-production-strip::before {
    content: "";
    position: absolute;
    inset: 0;
    z-index: 1;
    background: linear-gradient(90deg, rgba(9, 13, 17, 0.84) 0%, rgba(9, 13, 17, 0.38) 42%, rgba(9, 13, 17, 0.08) 72%);
}

.front-production-strip-reverse::before {
    background: linear-gradient(270deg, rgba(9, 13, 17, 0.84) 0%, rgba(9, 13, 17, 0.38) 42%, rgba(9, 13, 17, 0.08) 72%);
}

.front-production-strip-light::before {
    background: linear-gradient(90deg, rgba(34, 37, 42, 0.72) 0%, rgba(34, 37, 42, 0.26) 48%, rgba(34, 37, 42, 0.04) 72%);
}

.front-production-strip video {
    position: absolute;
    inset: 0;
    z-index: 0;
    width: 100%;
    height: 100%;
    max-width: none;
    object-fit: cover;
    transition: transform 600ms ease, filter 600ms ease;
}

.front-production-strip:hover video {
    filter: saturate(1.1) contrast(1.03);
    transform: scale(1.025);
}

.front-production-strip-copy {
    display: grid;
    width: min(1180px, calc(100% - 40px));
    gap: 4px;
    margin-inline: auto;
    position: relative;
    z-index: 2;
    text-shadow: 0 2px 24px rgba(0, 0, 0, 0.5);
}

.front-production-strip-copy > span {
    color: rgba(255, 255, 255, 0.72);
    font-size: 0.72rem;
    font-weight: 800;
    letter-spacing: 0.15em;
    text-transform: uppercase;
}

.front-production-strip-copy strong {
    color: #fff;
    font-size: clamp(2rem, 4vw, 4rem);
    line-height: 0.95;
}

.front-production-strip-copy em {
    color: rgba(255, 255, 255, 0.84);
    font-size: clamp(0.95rem, 1.35vw, 1.1rem);
    font-style: normal;
    font-weight: 700;
}

.front-production-strip-reverse .front-production-strip-copy {
    text-align: right;
}

.front-final-panel {
    padding: clamp(34px, 6vw, 70px);
    border-radius: calc(var(--front-radius) + 10px);
    text-align: center;
}

.front-final-panel h2 {
    margin-inline: auto;
}

.front-next-grid {
    display: grid;
    grid-template-columns: repeat(3, minmax(0, 1fr));
    gap: 14px;
    margin-top: 38px;
}

.front-next-grid a {
    display: grid;
    gap: 10px;
    padding: 24px;
    border-radius: 22px;
    text-align: left;
    transition: transform 180ms ease, box-shadow 180ms ease;
}

.front-next-grid a:hover {
    transform: translateY(-3px);
    box-shadow: 0 24px 60px rgba(37, 44, 52, 0.12);
}

.front-next-grid strong {
    color: var(--front-ink);
    font-size: 1.2rem;
}

.front-next-grid span {
    color: var(--front-muted);
    line-height: 1.55;
}

.front-site-footer {
    position: relative;
    overflow: hidden;
    padding: clamp(54px, 7vw, 88px) 0 28px;
    color: #f1f7f8;
    background:
        radial-gradient(circle at 18% 20%, rgba(231, 95, 56, 0.2), transparent 36%),
        radial-gradient(circle at 88% 42%, rgba(70, 146, 168, 0.24), transparent 34%),
        linear-gradient(180deg, #15394a 0%, #141728 62%, #10151d 100%);
}

.front-site-footer::after {
    content: "";
    display: block;
    height: 100%;
    width: 100%;
    position: absolute;
    top: 0;
    left: 0;
    background: url("/noise.png");
    opacity: 0.04;
    z-index: 1;
    pointer-events: none;
}

.front-site-header a,
.front-site-header button,
.front-site-footer a {
    text-decoration: none;
}

.front-footer-grid {
    display: grid;
    grid-template-columns: minmax(260px, 1.4fr) repeat(3, minmax(150px, 0.72fr));
    gap: clamp(28px, 5vw, 72px);
    align-items: start;
}

.front-footer-brand p {
    max-width: 370px;
    margin: 20px 0 0;
    color: rgba(241, 247, 248, 0.72);
    font-size: 1.05rem;
    line-height: 1.65;
}

.front-footer-brand img {
    filter: brightness(0) invert(1);
    opacity: 0.92;
}

.front-site-footer nav {
    display: grid;
    gap: 10px;
}

.front-site-footer h2 {
    margin: 0 0 8px;
    color: #fff;
    font-size: 0.8rem;
    font-weight: 800;
    letter-spacing: 0.12em;
    line-height: 1;
    text-transform: uppercase;
}

.front-site-footer a {
    width: fit-content;
    color: rgba(241, 247, 248, 0.72);
    font-weight: 700;
    transition: color 160ms ease, transform 160ms ease;
}

.front-site-footer a:hover {
    color: #fff;
    transform: translateX(2px);
}

.front-footer-bottom {
    display: flex;
    flex-wrap: wrap;
    gap: 12px 24px;
    justify-content: space-between;
    margin-top: clamp(42px, 6vw, 72px);
    padding-top: 24px;
    border-top: 1px solid rgba(255, 255, 255, 0.12);
    color: rgba(241, 247, 248, 0.56);
    font-size: 0.92rem;
}

.dark-mode .frontpage {
    color: var(--front-ink);
    background:
        linear-gradient(180deg, #0b1015 0%, #111922 38%, #122932 100%);
}

.dark-mode .front-site-brand img,
.dark-mode .front-footer-brand img {
    filter: none;
}

.dark-mode .front-site-header {
    color: var(--front-ink);
    background: rgba(11, 16, 21, 0.82);
    border-bottom-color: var(--front-line);
}

.dark-mode .front-site-links a,
.dark-mode .front-theme-toggle,
.dark-mode .front-mobile-panel a,
.dark-mode .front-mobile-panel button {
    color: rgba(238, 245, 247, 0.76);
}

.dark-mode .front-site-links a:hover,
.dark-mode .front-site-links a[aria-current="page"],
.dark-mode .front-theme-toggle:hover,
.dark-mode .front-mobile-panel a:hover,
.dark-mode .front-mobile-panel button:hover {
    color: var(--front-ink);
}

.dark-mode .front-theme-toggle,
.dark-mode .front-mobile-menu summary {
    border-color: var(--front-line);
    background: rgba(255, 255, 255, 0.06);
}

.dark-mode .front-theme-toggle:hover,
.dark-mode .front-mobile-menu summary:hover {
    background: rgba(255, 255, 255, 0.1);
}

.dark-mode .front-mobile-menu summary span {
    background: var(--front-ink);
}

.dark-mode .front-mobile-panel {
    border-color: var(--front-line);
    background: rgba(15, 23, 30, 0.94);
}

.dark-mode .front-mobile-panel a:hover,
.dark-mode .front-mobile-panel button:hover {
    background: rgba(255, 134, 93, 0.12);
}

.dark-mode .front-hero {
    background:
        radial-gradient(circle at 14% 18%, rgba(255, 134, 93, 0.2), transparent 32%),
        radial-gradient(circle at 76% 26%, rgba(242, 184, 93, 0.17), transparent 34%),
        radial-gradient(circle at 50% 92%, rgba(76, 153, 173, 0.2), transparent 40%),
        linear-gradient(135deg, rgba(12, 17, 24, 0.72) 0%, rgba(21, 34, 42, 0.7) 54%, rgba(16, 44, 53, 0.76) 100%);
}

.dark-mode .front-cinematic {
    background: #091116;
}

.dark-mode .front-cinematic-video {
    filter: saturate(0.56) contrast(1.12) brightness(0.52) sepia(0.24) hue-rotate(-10deg);
}

.dark-mode .front-cinematic-grade {
    background:
        radial-gradient(circle at 76% 24%, rgba(235, 154, 77, 0.2), transparent 30%),
        linear-gradient(118deg, rgba(8, 19, 24, 0.5), rgba(123, 50, 36, 0.12) 46%, rgba(16, 82, 91, 0.34));
}

.dark-mode .front-hero-copy::before {
    background: radial-gradient(ellipse at center, rgba(9, 18, 24, 0.62) 0%, rgba(9, 18, 24, 0.3) 56%, transparent 78%);
}

.dark-mode .front-hero h1 {
    color: #f4f8f9;
}

.dark-mode .front-hero-line {
    color: #d8e6eb;
}

.dark-mode .front-hero-text {
    color: rgba(220, 232, 237, 0.72);
}

.dark-mode .front-kicker {
    color: #ffae7d;
}

.dark-mode .front-flow {
    border-color: rgba(255, 134, 93, 0.24);
    opacity: 0.42;
}

.dark-mode .front-hero::after {
    background:
        radial-gradient(closest-side, rgba(242, 184, 93, 0.2), transparent 66%),
        radial-gradient(closest-side, rgba(255, 134, 93, 0.18), transparent 72%);
}

.dark-mode .front-button-primary {
    color: #111820;
    background: linear-gradient(135deg, #ff986e, #f2b85d);
    box-shadow: 0 20px 50px rgba(255, 134, 93, 0.18);
}

.dark-mode .front-button-secondary {
    color: var(--front-ink);
    border-color: var(--front-line);
    background: rgba(255, 255, 255, 0.08);
}

.dark-mode .front-section-warm {
    background:
        radial-gradient(circle at 82% 12%, rgba(242, 184, 93, 0.18), transparent 34%),
        radial-gradient(circle at 16% 86%, rgba(74, 145, 164, 0.17), transparent 36%),
        linear-gradient(180deg, #102c35 0%, #151f27 48%, #1b1d22 100%);
}

.dark-mode .front-section-light {
    background:
        radial-gradient(circle at 12% 12%, rgba(242, 184, 93, 0.16), transparent 32%),
        radial-gradient(circle at 86% 86%, rgba(91, 151, 169, 0.2), transparent 34%),
        linear-gradient(180deg, #1b1d22 0%, #111922 42%, #122932 100%);
}

.dark-mode .front-section-cool {
    background:
        radial-gradient(circle at 12% 30%, rgba(83, 145, 165, 0.18), transparent 36%),
        radial-gradient(circle at 88% 72%, rgba(255, 134, 93, 0.13), transparent 34%),
        linear-gradient(180deg, #122932 0%, #13242d 48%, #101922 100%);
}

.dark-mode .front-section-final {
    background:
        radial-gradient(circle at 80% 20%, rgba(242, 184, 93, 0.16), transparent 34%),
        radial-gradient(circle at 12% 86%, rgba(83, 145, 165, 0.2), transparent 36%),
        linear-gradient(180deg, #101922 0%, #151f27 54%, #0d151b 100%);
}

.dark-mode .front-community-strip,
.dark-mode .front-section-dark,
.dark-mode .front-site-footer {
    background:
        radial-gradient(circle at 14% 20%, rgba(255, 134, 93, 0.2), transparent 34%),
        radial-gradient(circle at 90% 24%, rgba(76, 153, 173, 0.24), transparent 36%),
        linear-gradient(180deg, #13323d 0%, #121722 58%, #0b1015 100%);
}

.dark-mode .front-use-tile {
    border-color: rgba(255, 184, 112, 0.2);
    color: #ffd0a8;
    background:
        linear-gradient(135deg, rgba(255, 152, 110, 0.18), rgba(242, 184, 93, 0.12)),
        rgba(255, 255, 255, 0.04);
    box-shadow: 0 22px 64px rgba(0, 0, 0, 0.22);
}

.dark-mode .front-use-tile:hover {
    box-shadow: 0 30px 82px rgba(0, 0, 0, 0.3);
}

.dark-mode .front-use-icon,
.dark-mode .front-use-tile h3,
.dark-mode .front-use-links a {
    color: #ffd0a8;
}

.dark-mode .front-use-tile p {
    color: rgba(248, 224, 203, 0.74);
}

.dark-mode .front-use-links a {
    border-color: rgba(255, 184, 112, 0.18);
    background:
        linear-gradient(135deg, rgba(255, 152, 110, 0.16), rgba(242, 184, 93, 0.1)),
        rgba(255, 255, 255, 0.04);
}

.dark-mode .front-use-links a:hover {
    box-shadow: 0 18px 54px rgba(0, 0, 0, 0.26);
}

.dark-mode .front-code-window {
    border-color: rgba(213, 229, 235, 0.14);
    background:
        linear-gradient(180deg, rgba(16, 24, 31, 0.96), rgba(12, 18, 25, 0.92));
}

.dark-mode .front-code-window code.hljs,
.dark-mode .front-code-window code {
    color: #d8e6eb;
}

.dark-mode .front-use-tile,
.dark-mode .front-final-panel,
.dark-mode .front-next-grid a {
    box-shadow: var(--front-shadow);
}

.dark-mode .front-next-grid a:hover {
    box-shadow: 0 28px 78px rgba(0, 0, 0, 0.36);
}

.dark-mode .front-production {
    background:
        radial-gradient(circle at 14% 16%, rgba(255, 134, 93, 0.14), transparent 30%),
        radial-gradient(circle at 86% 82%, rgba(74, 145, 164, 0.16), transparent 32%),
        linear-gradient(180deg, #111922 0%, #101922 42%, #0d151b 100%);
}

.dark-mode .front-production-reel {
    border-color: rgba(213, 229, 235, 0.14);
    background: rgba(213, 229, 235, 0.12);
}

.dark-mode .front-production-actions .front-button-secondary {
    background: rgba(255, 255, 255, 0.08);
}

.dark-mode .frontpage code:not(pre *) {
    color: inherit;
}

@keyframes front-drift-a {
    from {
        transform: translate3d(0, 0, 0) rotate(-20deg);
    }
    to {
        transform: translate3d(42px, 26px, 0) rotate(-14deg);
    }
}

@keyframes front-drift-b {
    from {
        transform: translate3d(0, 0, 0) rotate(-11deg);
    }
    to {
        transform: translate3d(-38px, -18px, 0) rotate(-17deg);
    }
}

@keyframes front-flow {
    from {
        transform: translate3d(0, 0, 0) rotate(-18deg);
    }
    to {
        transform: translate3d(26px, 18px, 0) rotate(-10deg);
    }
}

@media (max-width: 991px) {
    .front-shell {
        width: min(100% - 28px, 760px);
    }

    .front-site-nav {
        grid-template-columns: auto 1fr auto;
        gap: 12px;
    }

    .front-site-links,
    .front-theme-toggle {
        display: none;
    }

    .front-mobile-menu {
        display: block;
        justify-self: end;
    }

    .front-hero {
        padding-top: 82px;
    }

    .front-cinematic-video {
        object-position: 56% center;
    }

    .front-hero-grid,
    .front-feature,
    .front-feature-reverse,
    .front-split,
    .front-production-intro,
    .front-community-band {
        grid-template-columns: 1fr;
    }

    .front-feature-reverse .front-feature-copy,
    .front-feature-reverse .front-code-window {
        grid-column: auto;
        grid-row: auto;
    }

    .front-next-grid {
        grid-template-columns: 1fr;
    }

    .front-footer-grid {
        grid-template-columns: 1fr 1fr;
    }

    .front-footer-brand {
        grid-column: 1 / -1;
    }

    .front-use-grid,
    .front-use-links {
        grid-template-columns: 1fr;
    }

    .front-use-tile {
        min-height: auto;
    }

    .front-library-grid {
        grid-template-columns: 1fr;
    }

    .front-production-strip {
        min-height: 220px;
    }

    .front-production-strip-copy {
        width: min(100% - 28px, 760px);
    }

    .front-production-strip-reverse .front-production-strip-copy {
        text-align: left;
    }

    .front-production-strip-reverse::before {
        background: linear-gradient(90deg, rgba(9, 13, 17, 0.78) 0%, rgba(9, 13, 17, 0.36) 52%, rgba(9, 13, 17, 0.1) 80%);
    }

    .front-community-band {
        text-align: center;
    }

    .front-community-actions {
        justify-content: center;
    }
}

@media (prefers-reduced-motion: reduce) {
    .front-cinematic {
        opacity: 0.42;
    }

    .front-cinematic-video {
        display: none;
    }
}

/* Match the existing dark-mode selector specificity for the primary controls. */
.dark-mode .front-button-primary {
    color: #fff;
    background: linear-gradient(135deg, #1e5085, #3882d2);
    box-shadow: 0 20px 50px rgba(56, 130, 210, 0.22);
}

.dark-mode .front-button-secondary,
.dark-mode .front-production-actions .front-button-secondary {
    color: #e0f0ff;
    border-color: rgba(146, 200, 247, 0.34);
    background: rgba(19, 29, 42, 0.88);
}

/* Odin blue / orange theme: keep the cinematic composition, but put the
   language colours against deliberately clean, high-contrast surfaces. */
.frontpage {
    background: #f7f8fa;
}

.front-cinematic {
    display: block;
    background: #17334e;
}

.front-cinematic-video {
    filter: saturate(0.82) contrast(1.08) brightness(0.78) hue-rotate(4deg);
}

.front-cinematic-grade {
    background:
        radial-gradient(circle at 76% 22%, rgba(56, 130, 210, 0.28), transparent 30%),
        radial-gradient(circle at 18% 82%, rgba(199, 101, 15, 0.16), transparent 32%),
        linear-gradient(118deg, rgba(248, 251, 255, 0.42), rgba(56, 130, 210, 0.1) 46%, rgba(10, 35, 59, 0.4));
}

.frontpage-body .site-header {
    background: rgba(255, 255, 255, 0.9);
    border-bottom-color: rgba(30, 80, 133, 0.18);
    box-shadow: 0 12px 36px rgba(16, 45, 77, 0.08);
}

.frontpage-body .site-header::before {
    background: linear-gradient(90deg, rgba(255, 255, 255, 0.34), rgba(238, 244, 250, 0.12));
}

.front-hero {
    background:
        radial-gradient(circle at 82% 18%, rgba(56, 130, 210, 0.18), transparent 28%),
        radial-gradient(circle at 16% 88%, rgba(199, 101, 15, 0.12), transparent 30%),
        linear-gradient(135deg, rgba(251, 253, 255, 0.78), rgba(240, 246, 252, 0.68));
}

.front-hero-copy::before {
    background: radial-gradient(ellipse at center, rgba(255, 255, 255, 0.68) 0%, rgba(255, 255, 255, 0.28) 52%, transparent 76%);
}

.front-hero::after {
    background: radial-gradient(closest-side, rgba(56, 130, 210, 0.22), transparent 68%);
}

.front-flow {
    border-color: rgba(30, 80, 133, 0.23);
}

.front-kicker {
    color: var(--front-accent-2);
}

.front-hero h1 {
    color: #102d4d;
}

.front-hero-line {
    color: #1e5085;
}

.front-hero-text {
    color: rgba(16, 45, 77, 0.7);
}

.front-button-primary {
    color: #fff;
    background: linear-gradient(135deg, #1e5085, #3882d2);
    box-shadow: 0 18px 44px rgba(30, 80, 133, 0.24);
}

.front-button-secondary {
    color: #1e5085;
    border-color: rgba(30, 80, 133, 0.32);
    background: #fff;
}

.front-section-warm,
.front-section-light {
    background:
        radial-gradient(circle at 82% 12%, rgba(199, 101, 15, 0.09), transparent 30%),
        linear-gradient(180deg, #f2f5f8 0%, #fff 54%, #f6f8fa 100%);
}

/* Sections read as a sequence of distinct panels. The texture remains, but
   no panel now fades through or overlaps its neighbour. */
.front-section,
.front-community-strip,
.front-production {
    margin-block: 0;
    -webkit-mask-image: none;
    mask-image: none;
}

.front-section,
.front-community-strip {
    padding: clamp(84px, 9vw, 126px) 0;
}

.front-production {
    padding-top: 0;
}

.front-section + .front-section,
.front-section + .front-community-strip,
.front-community-strip + .front-section,
.front-production + .front-section {
    border-top: 1px solid rgba(30, 80, 133, 0.12);
}

.front-section-cool {
    background:
        radial-gradient(circle at 12% 30%, rgba(56, 130, 210, 0.12), transparent 32%),
        linear-gradient(180deg, #e9eef3 0%, #f7f9fb 52%, #eef2f6 100%);
}

.front-section-warm::before {
    background: radial-gradient(closest-side, rgba(199, 101, 15, 0.14), transparent 72%);
}

.front-section-cool::before {
    background: radial-gradient(closest-side, rgba(56, 130, 210, 0.13), transparent 72%);
}

.front-community-strip {
    background:
        radial-gradient(circle at 16% 16%, rgba(255, 255, 255, 0.16), transparent 26%),
        radial-gradient(circle at 86% 84%, rgba(199, 101, 15, 0.55), transparent 30%),
        linear-gradient(105deg, #102d4d 0%, #1e5085 58%, #2867a7 100%);
}

.front-section-dark,
.front-section-final,
.front-site-footer {
    background:
        radial-gradient(circle at 88% 12%, rgba(56, 130, 210, 0.3), transparent 30%),
        radial-gradient(circle at 10% 90%, rgba(199, 101, 15, 0.18), transparent 30%),
        linear-gradient(135deg, #102033 0%, #102d4d 56%, #1e5085 100%);
}

.front-use-tile,
.front-use-links a,
.front-next-grid a,
.front-final-panel {
    border-color: rgba(30, 80, 133, 0.17);
    background: rgba(255, 255, 255, 0.9);
    box-shadow: 0 16px 42px rgba(16, 45, 77, 0.08);
}

.front-use-tile:hover,
.front-use-links a:hover,
.front-next-grid a:hover {
    border-color: rgba(56, 130, 210, 0.56);
    background: #fff;
    box-shadow: 0 20px 48px rgba(30, 80, 133, 0.16);
}

.front-use-icon,
.front-use-links a {
    color: #1e5085;
}

.front-production {
    background:
        radial-gradient(circle at 12% 16%, rgba(56, 130, 210, 0.12), transparent 30%),
        linear-gradient(180deg, #fff 0%, #f1f4f7 100%);
}

.front-production-reel {
    border-color: rgba(30, 80, 133, 0.18);
    background: #102033;
}

.dark-mode.frontpage-body .site-header {
    background: rgba(13, 17, 23, 0.92);
    border-bottom-color: rgba(146, 200, 247, 0.2);
}

.dark-mode .front-hero {
    background:
        radial-gradient(circle at 82% 18%, rgba(56, 130, 210, 0.24), transparent 28%),
        radial-gradient(circle at 16% 88%, rgba(240, 154, 76, 0.12), transparent 30%),
        linear-gradient(135deg, rgba(13, 17, 23, 0.72), rgba(17, 34, 53, 0.7));
}

.dark-mode .front-cinematic {
    background: #07111d;
}

.dark-mode .front-cinematic-video {
    filter: saturate(0.7) contrast(1.1) brightness(0.56) hue-rotate(5deg);
}

.dark-mode .front-cinematic-grade {
    background:
        radial-gradient(circle at 76% 24%, rgba(56, 130, 210, 0.3), transparent 30%),
        radial-gradient(circle at 20% 84%, rgba(240, 154, 76, 0.12), transparent 30%),
        linear-gradient(118deg, rgba(5, 13, 23, 0.42), rgba(8, 29, 53, 0.16) 46%, rgba(5, 19, 36, 0.54));
}

.dark-mode .front-hero-copy::before {
    background: radial-gradient(ellipse at center, rgba(19, 29, 42, 0.78) 0%, rgba(13, 17, 23, 0.42) 58%, transparent 76%);
}

.dark-mode .front-hero h1 {
    color: #e0f0ff;
}

.dark-mode .front-hero-line,
.dark-mode .front-use-icon,
.dark-mode .front-use-tile h3,
.dark-mode .front-use-links a {
    color: #92c8f7;
}

.dark-mode .front-section-warm,
.dark-mode .front-section-light,
.dark-mode .front-section-cool {
    background: linear-gradient(180deg, #121a24 0%, #172333 52%, #0d1117 100%);
}

.dark-mode .front-section-dark,
.dark-mode .front-section-final,
.dark-mode .front-site-footer {
    background: linear-gradient(135deg, #0d1117 0%, #102d4d 64%, #1a4d7c 100%);
}

.dark-mode .front-community-strip {
    background: linear-gradient(105deg, #102033 0%, #1e5085 62%, #8c480d 130%);
}

.dark-mode .front-use-tile,
.dark-mode .front-use-links a,
.dark-mode .front-next-grid a,
.dark-mode .front-final-panel {
    border-color: rgba(146, 200, 247, 0.18);
    background: #172333;
}

.dark-mode .front-use-tile p {
    color: #b9cce0;
}

.dark-mode .front-production {
    background: linear-gradient(180deg, #0d1117 0%, #121a24 100%);
}

@media (max-width: 560px) {
    .front-actions {
        align-items: stretch;
        flex-direction: column;
        width: 100%;
    }

    .front-button {
        width: 100%;
        min-height: 58px;
        padding: 15px 24px;
        font-size: 1.15rem;
    }

    .front-community-actions {
        align-items: stretch;
        flex-direction: column;
    }

    .front-community-actions a {
        width: 100%;
    }

    .front-code-window pre {
        padding: 18px;
    }

    .front-code-window code.hljs,
    .front-code-window code {
        font-size: 0.78rem;
    }

    .front-footer-grid {
        grid-template-columns: 1fr;
    }

    .front-footer-bottom {
        display: grid;
    }
}

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

    .front-footer-bottom {
        display: grid;
    }
}

@media (prefers-reduced-motion: reduce) {
    .front-hero::before,
    .front-hero::after,
    .front-flow {
        animation: none;
    }

    .front-button,
    .front-theme-toggle,
    .front-site-links a,
    .front-community-actions a,
    .front-use-tile,
    .front-library-grid a,
    .front-site-footer a,
    .front-next-grid a {
        transition: none;
    }
}

/* Background study: a cool, dithered atmosphere with accents kept at the edges. */
.front-cinematic-video {
    filter: saturate(0.62) contrast(1.1) brightness(0.76) hue-rotate(12deg);
}

.front-cinematic-grade {
    background:
        radial-gradient(circle at 76% 22%, rgba(74, 154, 224, 0.28), transparent 32%),
        linear-gradient(116deg, rgba(245, 250, 255, 0.34), rgba(41, 111, 179, 0.1) 48%, rgba(11, 42, 73, 0.34));
    mix-blend-mode: color;
    opacity: 0.3;
}

.front-hero {
    background:
        radial-gradient(circle at 85% 18%, rgba(93, 170, 235, 0.16), transparent 30%),
        radial-gradient(circle at 8% 88%, rgba(199, 101, 15, 0.06), transparent 28%),
        linear-gradient(115deg, rgba(252, 254, 255, 0.78), rgba(234, 245, 254, 0.58));
}

.front-section::after,
.front-community-strip::after {
    opacity: 0.07;
    mix-blend-mode: multiply;
}

.front-section-warm,
.front-section-light {
    background:
        radial-gradient(circle at 88% 8%, rgba(104, 174, 234, 0.12), transparent 32%),
        radial-gradient(circle at 8% 92%, rgba(199, 101, 15, 0.055), transparent 28%),
        linear-gradient(145deg, #fbfdff 0%, #f3f8fc 100%);
}

.front-section-warm::before {
    background: radial-gradient(closest-side, rgba(104, 174, 234, 0.13), transparent 72%);
}

.front-section-cool,
.front-production {
    background:
        radial-gradient(circle at 12% 22%, rgba(56, 130, 210, 0.12), transparent 30%),
        radial-gradient(circle at 88% 84%, rgba(199, 101, 15, 0.06), transparent 28%),
        linear-gradient(160deg, #eaf4fc 0%, #e1edf7 100%);
}

.front-section-cool::before {
    background: radial-gradient(closest-side, rgba(56, 130, 210, 0.14), transparent 72%);
}

.front-community-strip {
    background:
        radial-gradient(circle at 14% 22%, rgba(130, 194, 246, 0.22), transparent 30%),
        radial-gradient(circle at 90% 84%, rgba(199, 101, 15, 0.28), transparent 30%),
        linear-gradient(110deg, #173e69 0%, #1e5085 56%, #2d679e 100%);
}

.front-section-dark,
.front-site-footer {
    background:
        radial-gradient(circle at 84% 16%, rgba(56, 130, 210, 0.22), transparent 30%),
        radial-gradient(circle at 10% 90%, rgba(199, 101, 15, 0.1), transparent 28%),
        linear-gradient(145deg, #10243b 0%, #102d4d 54%, #1b4268 100%);
}

.front-section-final {
    background:
        radial-gradient(circle at 86% 20%, rgba(104, 174, 234, 0.14), transparent 30%),
        linear-gradient(150deg, #f7fbff 0%, #eaf3fa 100%);
}

.dark-mode .front-cinematic-video {
    filter: saturate(0.56) contrast(1.12) brightness(0.52) hue-rotate(12deg);
}

.dark-mode .front-cinematic-grade {
    background:
        radial-gradient(circle at 76% 22%, rgba(66, 148, 220, 0.3), transparent 32%),
        linear-gradient(116deg, rgba(5, 15, 25, 0.42), rgba(18, 68, 113, 0.18) 48%, rgba(3, 19, 36, 0.52));
    opacity: 0.4;
}

.dark-mode .front-hero {
    background:
        radial-gradient(circle at 84% 18%, rgba(56, 130, 210, 0.2), transparent 30%),
        linear-gradient(115deg, rgba(9, 17, 27, 0.76), rgba(12, 38, 62, 0.68));
}

.dark-mode .front-section-warm,
.dark-mode .front-section-light,
.dark-mode .front-section-cool,
.dark-mode .front-production {
    background:
        radial-gradient(circle at 84% 18%, rgba(56, 130, 210, 0.12), transparent 30%),
        linear-gradient(150deg, #101c2a 0%, #14273b 100%);
}

.dark-mode .front-community-strip {
    background:
        radial-gradient(circle at 14% 22%, rgba(104, 174, 234, 0.2), transparent 30%),
        radial-gradient(circle at 90% 84%, rgba(240, 154, 76, 0.18), transparent 30%),
        linear-gradient(110deg, #102d4d 0%, #1e5085 58%, #244f7c 100%);
}

.dark-mode .front-section-dark,
.dark-mode .front-site-footer {
    background:
        radial-gradient(circle at 82% 16%, rgba(56, 130, 210, 0.17), transparent 30%),
        linear-gradient(145deg, #091522 0%, #102d4d 100%);
}

.dark-mode .front-section-final {
    background: linear-gradient(150deg, #111e2c 0%, #172b3f 100%);
}

/* Light-only chroma study: let Odin blue and orange visibly drive the atmosphere. */
body:not(.dark-mode) .front-hero {
    background:
        radial-gradient(circle at 82% 18%, rgba(54, 157, 236, 0.38), transparent 29%),
        radial-gradient(circle at 12% 86%, rgba(238, 125, 25, 0.2), transparent 26%),
        linear-gradient(116deg, rgba(248, 253, 255, 0.9) 0%, rgba(211, 237, 255, 0.68) 58%, rgba(174, 216, 246, 0.6) 100%);
}

body:not(.dark-mode) .front-hero-copy::before {
    background: radial-gradient(ellipse at center, rgba(255, 255, 255, 0.76) 0%, rgba(244, 251, 255, 0.38) 56%, transparent 78%);
}

body:not(.dark-mode) .front-section::after,
body:not(.dark-mode) .front-community-strip::after {
    opacity: 0.11;
}

body:not(.dark-mode) .front-section-warm,
body:not(.dark-mode) .front-section-light {
    background:
        radial-gradient(circle at 88% 10%, rgba(246, 146, 39, 0.36), transparent 29%),
        radial-gradient(circle at 10% 88%, rgba(50, 145, 224, 0.2), transparent 32%),
        linear-gradient(142deg, #f7fcff 0%, #d7efff 60%, #edf8ff 100%);
}

body:not(.dark-mode) .front-section-warm::before {
    background: radial-gradient(closest-side, rgba(246, 146, 39, 0.3), transparent 72%);
}

body:not(.dark-mode) .front-section-cool,
body:not(.dark-mode) .front-production {
    background:
        radial-gradient(circle at 12% 20%, rgba(50, 145, 224, 0.32), transparent 31%),
        radial-gradient(circle at 90% 86%, rgba(246, 146, 39, 0.17), transparent 28%),
        linear-gradient(155deg, #d6edff 0%, #eaf6ff 58%, #c6e5fb 100%);
}

body:not(.dark-mode) .front-section-cool::before {
    background: radial-gradient(closest-side, rgba(50, 145, 224, 0.28), transparent 72%);
}

body:not(.dark-mode) .front-section-final {
    background:
        radial-gradient(circle at 84% 18%, rgba(246, 146, 39, 0.3), transparent 30%),
        radial-gradient(circle at 10% 82%, rgba(50, 145, 224, 0.22), transparent 30%),
        linear-gradient(150deg, #f8fcff 0%, #dfefff 100%);
}

/* Chroma pass two: richer light fields and a deliberately inky dark counterpart. */
body:not(.dark-mode) .front-hero {
    background:
        radial-gradient(circle at 84% 18%, rgba(54, 157, 236, 0.48), transparent 30%),
        radial-gradient(circle at 10% 88%, rgba(238, 125, 25, 0.26), transparent 27%),
        linear-gradient(116deg, rgba(252, 254, 255, 0.92) 0%, rgba(204, 235, 255, 0.74) 56%, rgba(151, 207, 244, 0.68) 100%);
}

body:not(.dark-mode) .front-section-warm,
body:not(.dark-mode) .front-section-light {
    background:
        radial-gradient(circle at 88% 8%, rgba(246, 146, 39, 0.44), transparent 30%),
        radial-gradient(circle at 8% 92%, rgba(50, 145, 224, 0.28), transparent 33%),
        linear-gradient(142deg, #fbfdff 0%, #d2ecff 60%, #e9f7ff 100%);
}

body:not(.dark-mode) .front-section-cool,
body:not(.dark-mode) .front-production {
    background:
        radial-gradient(circle at 12% 20%, rgba(50, 145, 224, 0.42), transparent 32%),
        radial-gradient(circle at 90% 86%, rgba(246, 146, 39, 0.22), transparent 29%),
        linear-gradient(155deg, #cce9ff 0%, #e8f5ff 58%, #b9e0fa 100%);
}

.dark-mode .front-cinematic-video {
    filter: saturate(0.62) contrast(1.2) brightness(0.46) hue-rotate(14deg);
}

.dark-mode .front-cinematic-grade {
    background:
        radial-gradient(circle at 78% 20%, rgba(58, 158, 238, 0.4), transparent 32%),
        radial-gradient(circle at 12% 88%, rgba(240, 154, 76, 0.13), transparent 28%),
        linear-gradient(116deg, rgba(2, 10, 19, 0.6), rgba(10, 54, 94, 0.26) 48%, rgba(3, 18, 35, 0.66));
    opacity: 0.5;
}

.dark-mode .front-hero {
    background:
        radial-gradient(circle at 82% 18%, rgba(51, 153, 236, 0.42), transparent 30%),
        radial-gradient(circle at 10% 88%, rgba(240, 154, 76, 0.11), transparent 26%),
        linear-gradient(112deg, rgba(4, 12, 22, 0.84) 0%, rgba(8, 37, 65, 0.74) 56%, rgba(13, 58, 98, 0.68) 100%);
}

.dark-mode .front-section::after,
.dark-mode .front-community-strip::after {
    opacity: 0.12;
    mix-blend-mode: soft-light;
}

.dark-mode .front-section-warm,
.dark-mode .front-section-light {
    background:
        radial-gradient(circle at 88% 10%, rgba(51, 153, 236, 0.2), transparent 30%),
        radial-gradient(circle at 8% 92%, rgba(240, 154, 76, 0.1), transparent 27%),
        linear-gradient(142deg, #071522 0%, #102b48 62%, #0d2036 100%);
}

.dark-mode .front-section-cool,
.dark-mode .front-production {
    background:
        radial-gradient(circle at 12% 20%, rgba(51, 153, 236, 0.3), transparent 31%),
        radial-gradient(circle at 90% 86%, rgba(240, 154, 76, 0.12), transparent 28%),
        linear-gradient(155deg, #0c2540 0%, #133859 58%, #0a1b2c 100%);
}

.dark-mode .front-community-strip {
    background:
        radial-gradient(circle at 12% 18%, rgba(116, 193, 255, 0.25), transparent 30%),
        radial-gradient(circle at 90% 84%, rgba(240, 154, 76, 0.28), transparent 29%),
        linear-gradient(110deg, #153b65 0%, #1e5085 58%, #12385f 100%);
}

.dark-mode .front-section-dark,
.dark-mode .front-site-footer {
    background:
        radial-gradient(circle at 84% 16%, rgba(51, 153, 236, 0.28), transparent 31%),
        radial-gradient(circle at 10% 88%, rgba(240, 154, 76, 0.09), transparent 26%),
        linear-gradient(145deg, #030c16 0%, #0c2744 54%, #102f50 100%);
}

.dark-mode .front-section-final {
    background:
        radial-gradient(circle at 84% 18%, rgba(51, 153, 236, 0.2), transparent 30%),
        linear-gradient(150deg, #07131f 0%, #112c48 100%);
}

/* Logo-first masthead: let the mark own the opening frame. */
.front-hero-logo {
    display: block;
    width: min(620px, 64vw);
    height: auto;
    margin: 0 auto;
    /* The artwork sits slightly left within logo.svg's viewBox. */
    transform: translateX(2%);
    filter: brightness(0) saturate(100%) invert(27%) sepia(24%) saturate(2500%) hue-rotate(172deg) brightness(89%) contrast(91%);
}

.front-hero h1.front-hero-line {
    margin: clamp(24px, 3vw, 34px) auto 0;
    color: #1e5085;
    font-size: clamp(0.9rem, 1.35vw, 1.18rem);
    font-weight: 800;
    letter-spacing: 0.18em;
    line-height: 1.25;
    text-transform: uppercase;
}

.front-hero-description {
    max-width: 540px;
    margin: 12px auto 0;
    color: rgba(16, 45, 77, 0.78);
    font-size: clamp(0.96rem, 1.25vw, 1.12rem);
    font-weight: 650;
    line-height: 1.4;
}

.front-hero-copy .front-actions {
    margin-top: clamp(30px, 4vw, 48px);
}

.front-hero-copy .front-hero-text {
    margin-top: 18px;
    font-size: clamp(0.84rem, 1vw, 0.98rem);
}

.dark-mode .front-hero-logo {
    filter: drop-shadow(0 12px 28px rgba(0, 0, 0, 0.28));
}

.dark-mode .front-hero h1.front-hero-line {
    color: #92c8f7;
}

.dark-mode .front-hero-description {
    color: rgba(224, 241, 255, 0.8);
}

/* Only the language introduction breaks the shell; the feature examples stay
   compact so each source sample can be read as a single unit. */
.front-language-proof > .front-section-titleblock {
    width: 100%;
    max-width: none;
    padding-inline: max(20px, calc((100vw - 1180px) / 2));
}

.front-language-proof > .front-section-titleblock h2,
.front-language-proof > .front-section-titleblock p:not(.front-kicker) {
    max-width: none;
}

/* Keep the library story and its package inventory legible as two clear,
   top-aligned columns rather than letting the grid float midway down the copy. */
.front-libraries-layout {
    align-items: start;
}

.front-libraries-layout #front-libraries-title {
    max-width: 680px;
    font-size: clamp(2.1rem, 3.8vw, 3.55rem);
}

.front-library-column {
    align-self: start;
}

.front-libraries-layout .front-library-grid {
    gap: 10px;
}

.front-libraries-layout .front-library-grid a {
    min-height: 64px;
    border-color: rgba(146, 200, 247, 0.24);
    border-radius: 10px;
    color: #edf6ff;
    background: linear-gradient(135deg, rgba(146, 200, 247, 0.1), rgba(146, 200, 247, 0.035));
    box-shadow: inset 0 1px 0 rgba(255, 255, 255, 0.04);
}

.front-libraries-layout .front-library-grid a:hover {
    background: linear-gradient(135deg, rgba(146, 200, 247, 0.17), rgba(146, 200, 247, 0.07));
}

.front-library-explore {
    display: flex;
    flex-wrap: wrap;
    gap: 18px;
    margin-top: 30px;
}

.front-library-explore a {
    display: inline-flex;
    align-items: center;
    gap: 9px;
    justify-content: center;
    border-bottom: 1px solid rgba(146, 200, 247, 0.48);
    padding-bottom: 7px;
    color: #edf6ff;
    font-size: 0.98rem;
    font-weight: 800;
    transition: color 180ms ease, border-color 180ms ease;
}

.front-library-explore a:hover {
    border-color: #f29a4e;
    color: #fff;
}

.front-library-explore a > span:last-child {
    color: #f29a4e;
    font-size: 1.05em;
}

.front-libraries-layout code {
    display: inline-block;
    border: 1px solid rgba(146, 200, 247, 0.3);
    border-radius: 6px;
    padding: 0.06em 0.34em;
    color: #e0f0ff;
    background: rgba(146, 200, 247, 0.1);
    font-size: 0.88em;
    line-height: 1.15;
}

.front-final-panel #front-next-title span {
    display: block;
}
