/* ==========================================================================
   BASE / RESET
   ========================================================================== */

html {
    margin: 0;
    padding: 0;
    min-height: 100%;
    background-color: var(--neutral-layer-2);
    scroll-behavior: smooth;
    overscroll-behavior: auto;
    overflow-x: hidden;
}

body {
    --body-font: 'Exo 2', sans-serif;
    --type-ramp-base-font-size: 16px;
    --type-ramp-base-font-variations: normal;
    margin: 0;
    padding: 0;
    min-height: 100%;
    font-family: var(--body-font), sans-serif;
    font-size: var(--type-ramp-base-font-size);
    line-height: var(--type-ramp-base-line-height);
    font-weight: var(--font-weight);
    color: var(--neutral-foreground-rest);
    background: #434343;
    --severe-warning: var(--error);
}

p:last-child {
    margin-bottom: 0;
}

code {
    color: #c02d76;
}

/* ==========================================================================
   LAYOUT
   ========================================================================== */

.page {
    min-height: 100dvh;
    background-color: white;
    display: flex;
    flex-direction: column;
    justify-content: flex-start;
    align-items: flex-start;
}

.header,
.top-navigation,
.top-slugpath-mobile {
    width: 100%;
    box-sizing: border-box;
    background-color: var(--neutral-layer-2);
    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: space-between;
    user-select: none;
    position: sticky;
}

.header {
    height: 60px;
    min-height: 60px;
    max-height: 60px;
    padding: 10px;
    overflow: visible;
    top: 0;
    z-index: 100;
}

.top-navigation {
    height: 40px;
    min-height: 40px;
    max-height: 40px;
    padding: 0 16px;
    overflow: hidden;
    border-bottom: 1px solid #d6d5d5;
    top: 60px;
    z-index: 98;
}

.top-slugpath-mobile {
    height: 40px;
    min-height: 40px;
    max-height: 40px;
    padding: 0 10px 10px 10px;
    overflow: hidden;
    top: 60px;
    z-index: 99;
}

.organization-sidebar {
    width: 400px;
    min-width: 400px;
    flex: 0 0 400px;
}

.content-scrollbox {
    width: 100%;
    flex: 1 1 auto;
    overflow-y: auto;
    -webkit-overflow-scrolling: touch;
    min-height: 0;
    display: flex;
    flex-direction: column;
    justify-content: flex-start;
}

.content-max-width-800,
.content-max-width-1000,
.content-max-width-1200 {
    width: 100%;
    padding: 2rem 1rem;
    margin-left: auto;
    margin-right: auto;
    margin-bottom: auto;
    box-sizing: border-box;
}

.content-max-width-800 { max-width: 800px; }
.content-max-width-1000 { max-width: 1000px; }
.content-max-width-1200 { max-width: 1200px; }

.content-full-width {
    padding: 2rem 0;
    width: 100%;
    margin-bottom: auto;
}

.statusbar {
    position: relative;
    align-self: flex-end;
    width: 100%;
    padding-left: 16px;
    padding-right: 16px;
    height: 32px;
    min-height: 32px;
    display: flex;
    flex-direction: row;
    align-items: center;
    overflow: hidden;
    border-top: 1px solid var(--neutral-layer-2);
    justify-content: space-between;
    background-color: var(--neutral-layer-3);
    user-select: none;
}

/* ==========================================================================
   COMPONENTS
   ========================================================================== */

/* Fluent UI Overrides */
fluent-dialog::part(control) {
    overflow: hidden !important;
}

/* Cards & Sections */
.card {
    padding: 2.5rem 1.5rem;
    border-radius: 12px;
    border: 1px solid var(--neutral-stroke-rest);
    box-shadow: 0 4px 12px rgba(0, 0, 0, 0.05);
    text-align: left;
    transition: transform 0.2s ease, box-shadow 0.2s ease, border-color 0.2s ease, background 0.2s ease;
    background: var(--neutral-layer-1);
    box-sizing: border-box;
}

.card:hover, .card-hover-effect:hover {
    box-shadow: 0 12px 24px rgba(0, 0, 212, 0.08);
    border-color: var(--accent-fill-rest);
    background: linear-gradient(135deg, var(--neutral-layer-1) 0%, rgba(0, 120, 212, 0.02) 100%);
}

.card.no-hover:hover {
    transform: none !important;
    box-shadow: 0 4px 12px rgba(0, 0, 0, 0.05) !important;
    border-color: var(--neutral-stroke-rest) !important;
}

.card-highlight {
    padding: 2rem;
    border-radius: 12px;
    border-top: 3px solid transparent;
    transition: all 0.3s ease;
}

.card.card-highlight {
    border-top-color: var(--accent-fill-rest);
    background: linear-gradient(to bottom, rgba(0, 120, 212, 0.02), transparent);
}

.card.card-highlight:hover, .card-highlight.card-hover-effect:hover {
    border-color: var(--accent-fill-rest) !important;
    box-shadow: 0 12px 24px rgba(0, 120, 212, 0.15) !important;
}

.card.card-highlight.no-hover:hover {
    transform: none !important;
    box-shadow: 0 4px 12px rgba(0, 120, 212, 0.08) !important;
    border-color: rgba(0, 120, 212, 0.2) !important;
}

.card-highlight .card {
    border: 1px solid var(--neutral-stroke-rest) !important;
    box-shadow: 0 2px 8px rgba(0, 0, 0, 0.05) !important;
    transform: none !important;
}

.card-highlight .card:hover {
    box-shadow: 0 4px 12px rgba(0, 0, 0, 0.1) !important;
    border-color: var(--accent-fill-rest) !important;
}

.card-highlight .card-description {
    text-align: left;
}

.card-center {
    text-align: center;
}

.card-center .card-icon {
    justify-content: center;
}

.card-icon {
    display: flex;
    justify-content: center;
    align-items: center;
    font-size: 2rem;
    color: var(--accent-fill-rest);
    margin-bottom: 1.5rem;
}

.card-icon svg {
    width: 32px;
    height: 32px;
}

.card-title {
    font-size: 1.25rem;
    font-weight: 600;
    color: var(--neutral-foreground-rest);
    margin-bottom: 1rem;
}

.card-description {
    font-size: 1rem;
    color: var(--neutral-foreground-hint);
    line-height: 1.6;
}

.cards-grid,
.questions-grid,
.docs-shelf {
    display: grid;
    grid-template-columns: repeat(1, 1fr);
    gap: 2rem;
}

@media (min-width: 768px) {
    .cards-grid,
    .questions-grid,
    .docs-shelf {
        grid-template-columns: repeat(2, 1fr);
    }
}

@media (min-width: 1024px) {
    .cards-grid {
        grid-template-columns: repeat(4, 1fr);
    }
    .questions-grid,
    .docs-shelf {
        grid-template-columns: repeat(3, 1fr);
    }
}

/* Badges */
.order-version,
.rounded-badge {
    display: inline-block;
    padding: 0.25rem 0.5rem;
    font-size: 0.75rem;
    font-weight: 600;
    line-height: 1;
    text-align: center;
    white-space: nowrap;
    vertical-align: baseline;
    border-radius: 0.375rem;
    color: #475569;
    background-color: #e2e8f0;
}

.order-version {
    font-family: monospace;
    background-color: #e0e0e0;
}

.rounded-badge-primary { background-color: #3b82f6; color: white; }
.rounded-badge-success { background-color: #10b981; color: white; }
.rounded-badge-warning { background-color: #f59e0b; color: white; }
.rounded-badge-danger { background-color: #ef4444; color: white; }
.rounded-badge-info { background-color: #06b6d4; color: white; }
.rounded-badge-purple { background-color: #8b5cf6; color: white; }
.rounded-badge-pink { background-color: #ec4899; color: white; }
.rounded-badge-orange { background-color: #f97316; color: white; }
.rounded-badge-teal { background-color: #14b8a6; color: white; }
.rounded-badge-indigo { background-color: #6366f1; color: white; }

.rounded-badge-pastel-blue { background-color: #bfdbfe; color: #1e40af; }
.rounded-badge-pastel-green { background-color: #bbf7d0; color: #166534; }
.rounded-badge-pastel-red { background-color: #fecaca; color: #b91c1c; }
.rounded-badge-pastel-yellow { background-color: #fef08a; color: #854d0e; }
.rounded-badge-pastel-purple { background-color: #ddd6fe; color: #5b21b6; }

.rounded-badge-outlined { background-color: transparent; border: 1px solid #cbd5e1; color: #475569; }
.rounded-badge-outlined-blue { background-color: transparent; border: 1px solid #3b82f6; color: #3b82f6; }
.rounded-badge-outlined-green { background-color: transparent; border: 1px solid #10b981; color: #10b981; }
.rounded-badge-outlined-red { background-color: transparent; border: 1px solid #ef4444; color: #ef4444; }
.rounded-badge-outlined-purple { background-color: transparent; border: 1px solid #8b5cf6; color: #8b5cf6; }

.rounded-badge-admin { background-color: #fecaca; color: #b91c1c; }
.rounded-badge-legal { background-color: #fef08a; color: #854d0e; }
.rounded-badge-finance { background-color: #bbf7d0; color: #166534; }

/* Breadcrumbs */
.breadcrumbs {
    margin-bottom: 1rem;
    font-size: 0.9rem;
}

.breadcrumbs ul {
    list-style: none;
    padding: 0;
    margin: 0;
    display: flex;
    flex-wrap: wrap;
    align-items: center;
}

.breadcrumbs li {
    display: flex;
    align-items: center;
}

.breadcrumbs li:not(:last-child)::after {
    content: "/";
    margin: 0 0.5rem;
    color: var(--neutral-foreground-hint);
}

.breadcrumbs a {
    text-decoration: none;
    color: var(--accent-fill-rest);
}

.breadcrumbs a:hover {
    text-decoration: underline;
}

.breadcrumbs span {
    color: var(--neutral-foreground-hint);
}

/* Loading Indicators */
#app-loading,
#components-reconnect-modal {
    position: fixed;
    top: 0;
    left: 0;
    width: 100vw;
    height: 100vh;
    display: flex;
    flex-direction: column;
    background-color: var(--neutral-fill-layer-rest);
    z-index: 9999;
    overflow-y: auto;
}

#components-reconnect-modal {
    display: none;
}

#components-reconnect-modal.components-reconnect-show,
#components-reconnect-modal.components-reconnect-failed,
#components-reconnect-modal.components-reconnect-rejected {
    display: flex;
}

body:has(.page) #app-loading {
    display: none;
}

.loading-progress-container {
    display: flex;
    flex-direction: column;
    align-items: center;
    width: 100%;
}

.loading-logo-container {
    width: 32px;
    height: 32px;
    perspective: 1000px;
}

.loading-logo {
    width: 100%;
    height: 100%;
    object-fit: contain;
    animation: spin3d 6s ease-in-out infinite;
    transform-style: preserve-3d;
}

@keyframes spin3d {
    0% { transform: rotateY(0deg); }
    30% { transform: rotateY(360deg); }
    60% { transform: rotateY(360deg); }
    90% { transform: rotateY(720deg); }
    100% { transform: rotateY(720deg); }
}

.loading-message {
    font-family: var(--body-font), sans-serif;
    font-size: var(--type-ramp-base-font-size);
    color: var(--neutral-foreground-rest);
}

.loading-progress {
    position: relative;
    display: block;
    width: 8rem;
    height: 8rem;
    margin: 20vh auto 1rem auto;
}

.loading-progress circle {
    fill: none;
    stroke: #e0e0e0;
    stroke-width: 0.6rem;
    transform-origin: 50% 50%;
    transform: rotate(-90deg);
}

.loading-progress circle:last-child {
    stroke: #1b6ec2;
    stroke-dasharray: calc(3.141 * var(--blazor-load-percentage, 0%) * 0.8), 500%;
    transition: stroke-dasharray 0.05s ease-in-out;
}

.loading-progress-text {
    position: absolute;
    text-align: center;
    font-weight: bold;
    inset: calc(20vh + 3.25rem) 0 auto 0.2rem;
}

.loading-progress-text:after {
    content: var(--blazor-load-percentage-text, "Loading");
}

.loading-dots,
.loading-dots div {
    box-sizing: border-box;
}

.loading-dots {
    display: inline-block;
    position: relative;
    width: 80px;
    height: 80px;
}

.loading-dots div {
    position: absolute;
    top: 33.33333px;
    width: 13.33333px;
    height: 13.33333px;
    border-radius: 50%;
    background: currentColor;
    animation-timing-function: cubic-bezier(0, 1, 1, 0);
}

.loading-dots div:nth-child(1) { left: 8px; animation: loading-dots1 0.6s infinite; }
.loading-dots div:nth-child(2) { left: 8px; animation: loading-dots2 0.6s infinite; }
.loading-dots div:nth-child(3) { left: 32px; animation: loading-dots2 0.6s infinite; }
.loading-dots div:nth-child(4) { left: 56px; animation: loading-dots3 0.6s infinite; }

@keyframes loading-dots1 {
    0% { transform: scale(0); }
    100% { transform: scale(1); }
}

@keyframes loading-dots3 {
    0% { transform: scale(1); }
    100% { transform: scale(0); }
}

@keyframes loading-dots2 {
    0% { transform: translate(0, 0); }
    100% { transform: translate(24px, 0); }
}

/* Error UI */
#blazor-error-ui {
    background: lightyellow;
    bottom: 0;
    box-shadow: 0 -1px 2px rgba(0, 0, 0, 0.2);
    display: none;
    left: 0;
    padding: 0.6rem 1.25rem 0.7rem 1.25rem;
    position: fixed;
    width: 100%;
    z-index: 1000;
    margin: 20px 0;
}

#blazor-error-ui .dismiss {
    cursor: pointer;
    position: absolute;
    right: 0.75rem;
    top: 0.5rem;
}

.blazor-error-boundary {
    background: url(data:image/svg+xml;base64,PHN2ZyB3aWR0aD0iNTYiIGhlaWdodD0iNDkiIHhtbG5zPSJodHRwOi8vd3d3LnczLm9yZy8yMDAwL3N2ZyIgeG1sbnM6eGxpbms9Imh0dHA6Ly93d3cudzMub3JnLzE5OTkveGxpbmsiIG92ZXJmbG93PSJoaWRkZW4iPjxkZWZzPjxjbGlwUGF0aCBpZD0iY2xpcDAiPjxyZWN0IHg9IjIzNSIgeT0iNTEiIHdpZHRoPSI1NiIgaGVpZ2h0PSI0OSIvPjwvY2xpcFBhdGg+PC9kZWZzPjxnIGNsaXAtcGF0aD0idXJsKCNjbGlwMCkiIHRyYW5zZm9ybT0idHJhbnNsYXRlKC0yMzUgLTUxKSI+PHBhdGggZD0iTTI2My41MDYgNTFDMjY0LjcxNyA1MSAyNjUuODEzIDUxLjQ4MzcgMjY2LjYwNiA1Mi4yNjU4TDI2Ny4wNTIgNTIuNzk4NyAyNjcuNTM5IDUzLjYyODMgMjkwLjE4NSA5Mi4xODMxIDI5MC41NDUgOTIuNzk1IDI5MC42NTYgOTIuOTk2QzI5MC44NzcgOTMuNTEzIDI5MSA5NC4wODE1IDI5MSA5NC42NzgyIDI5MSA5Ny4wNjUxIDI4OS4wMzggOTkgMjg2LjYxNyA5OUwyNDAuMzgzIDk5QzIzNy45NjMgOTkgMjM2IDk3LjA2NTEgMjM2IDk0LjY3ODIgMjM2IDk0LjM3OTkgMjM2LjAzMSA5NC4wODg2IDIzNi4wODkgOTMuODA3MkwyMzYuMzM4IDkzLjAxNjIgMjM2Ljg1OCA5Mi4xMzE0IDI1OS40NzMgNTMuNjI5NCAyNTkuOTYxIDUyLjc5ODUgMjYwLjQwNyA1Mi4yNjU4QzI2MS4yIDUxLjQ4MzcgMjYyLjI5NiA1MSAyNjMuNTA2IDUxWk0yNjMuNzg2IDY2LjAxODNDMjYwLjczNyA2Ni4wMTgzIDI1OS4zMTMgNjcuMTI0NSAyNTkuMzEzIDY5LjMzNyAyNTkuMzEzIDY5LjYxMDIgMjU5LjMzMiA2OS44NjA4IDI1OS4zNzEgNzAuMDg4N0wyNjEuNzk1IDg0LjAxNjEgMjY1LjM4IDg0LjAxNjEgMjY3LjgyMSA2OS43NDc1QzI2Ny44NiA2OS43MzA5IDI2Ny44NzkgNjkuNTg3NyAyNjcuODc5IDY5LjMxNzkgMjY3LjgyOSA2Ny4xMTgyIDI2Ni40NDggNjYuMDE4MyAyNjMuNTg2IDY2LjAxODNaTTI2My41NzYgODYuMDU0N0MyNjEuMDQ5IDg2LjA1NDcgMjU5Ljc4NiA4Ny4zMDA1IDI1OS43ODYgODkuNzkyMSAyNTkuNzg2IDkyLjI4MzcgMjYxLjA0OSA5My41Mjk1IDI2My41NzYgOTMuNTI5NSAyNjYuMTE2IDkzLjUyOTUgMjY3LjM4NyA5Mi4yODM3IDI2Ny4zODcgODkuNzkyMSAyNjcuMzg3IDg3LjMwMDUgMjY2LjExNiA4Ni4wNTQ3IDI2My41NzYgODYuMDU0N1oiIGZpbGw9IiNGRkU1MDAiIGZpbGwtcnVsZT0iZXZlbm9kZCIvPjwvZz48L3N2Zz4=) no-repeat 1rem/1.8rem, #b32121;
    padding: 1rem 1rem 1rem 3.7rem;
    color: white;
}

.blazor-error-boundary::before {
    content: "An error has occurred. "
}

/* ==========================================================================
   PAGES
   ========================================================================== */

/* Root Pages Shared Styles */
.welcome-container {
    max-width: 1200px;
    margin: 0 auto 2rem auto;
    box-sizing: border-box;
}

.hero-content {
    display: grid;
    grid-template-columns: 1fr;
    gap: 2rem;
    align-items: stretch;
}

@media (min-width: 768px) {
    .hero-content {
        grid-template-columns: 1.2fr 1fr;
    }
}

.hero-image {
    order: 1;
    display: flex;
    justify-content: center;
    align-items: center;
    min-height: 300px;
}

.hero-image img {
    width: 100%;
    height: 100%;
    object-fit: cover;
    border-radius: 16px;
    box-shadow: 0 20px 40px rgba(0, 0, 0, 0.2);
    transition: transform 0.3s ease;
}

.hero-image img:hover {
    box-shadow: 0 20px 40px rgba(0, 0, 0, 0.2);
}

.hero-text {
    order: 2;
    display: flex;
    flex-direction: column;
    gap: 2rem;
    justify-content: center;
    padding: 1rem 0;
}

.hero-title {
    font-size: 3rem !important;
    font-weight: 800 !important;
    line-height: 1.2 !important;
    margin: 0 !important;
    padding-bottom: 0.15em;
    background: linear-gradient(135deg, var(--neutral-foreground-rest) 0%, var(--accent-fill-rest) 100%);
    -webkit-background-clip: text;
    -webkit-text-fill-color: transparent;
    display: inline-block;
}

@media (max-width: 600px) {
    .hero-title {
        font-size: 2.25rem !important;
    }
}


.hero-description {
    font-size: 1.25rem !important;
    color: var(--neutral-foreground-hint) !important;
    line-height: 1.6 !important;
    margin: 0 !important;
}

@media (max-width: 600px) {
    .hero-description {
        font-size: 1.1rem !important;
    }
}

.dual-license-concept {
    display: grid;
    grid-template-columns: 1fr;
    gap: 2rem;
    align-items: center;
    position: relative;
}

@media (min-width: 900px) {
    .dual-license-concept {
        grid-template-columns: 1fr 1fr;
        gap: 3rem 2rem;
    }

    .concept-bridge {
        grid-row: 1;
        grid-column: 1 / -1;
        order: 1;
    }

    .concept-path.open-source {
        grid-row: 2;
        grid-column: 1;
        order: 2;
    }

    .concept-path.commercial {
        grid-row: 2;
        grid-column: 2;
        order: 3;
    }
}

.concept-path {
    border: 1px solid var(--neutral-stroke-rest);
    border-radius: 20px;
    padding: 2.5rem;
    box-shadow: 0 4px 20px rgba(0, 0, 0, 0.08);
    transition: all 0.3s cubic-bezier(0.4, 0, 0.2, 1);
    display: flex;
    flex-direction: column;
    align-items: center;
    text-align: center;
    position: relative;
    z-index: 2;
    height: 100%;
    max-width: 450px;
    margin: 0 auto;
    border-top: 4px solid transparent;
    box-sizing: border-box;
}

@media (max-width: 600px) {
    .concept-path {
        padding: 1.5rem;
    }
}

.concept-path.open-source {
    border-top-color: #27ae60;
    background: linear-gradient(to bottom, rgba(39, 174, 96, 0.03), transparent);
}

.concept-path.commercial {
    border-top-color: #f39c12;
    background: linear-gradient(to bottom, rgba(243, 156, 18, 0.03), transparent);
}

.path-content {
    display: flex;
    flex-direction: column;
    align-items: center;
    height: 100%;
}

.path-description {
    font-size: 1rem;
    line-height: 1.6;
    color: var(--neutral-foreground-hint);
    margin: 0 0 2rem 0;
    flex-grow: 1;
    text-align: left;
}

.concept-path:hover {
    box-shadow: 0 12px 30px rgba(0, 0, 0, 0.12);
    border-color: var(--accent-fill-rest);
}

.path-icon {
    margin-bottom: 1.5rem;
    display: flex;
    align-items: center;
    justify-content: center;
    color: var(--accent-fill-rest);
    height: 48px;
}

.commercial .path-icon {
    color: #f39c12;
}

.commercial h3 {
    color: #f39c12;
}

.open-source .path-icon {
    color: #27ae60;
}

.open-source h3 {
    color: #27ae60;
}

.concept-path h3 {
    font-size: 1.5rem;
    font-weight: 700;
    margin: 0 0 1rem 0;
    min-height: 2em;
    display: flex;
    align-items: center;
    justify-content: center;
}

.path-badge {
    font-size: 0.85rem;
    font-weight: 600;
    padding: 0.4rem 1rem;
    border-radius: 100px;
    background: rgba(0, 120, 212, 0.1);
    color: var(--accent-fill-rest);
    text-transform: uppercase;
    letter-spacing: 0.05em;
}

.commercial .path-badge {
    background: rgba(243, 156, 18, 0.1);
    color: #f39c12;
}

.open-source .path-badge {
    background: rgba(39, 174, 96, 0.1);
    color: #27ae60;
}

.concept-path.open-source {
    order: 2;
}

.concept-path.commercial {
    order: 3;
}

.concept-bridge {
    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: center;
    position: relative;
    padding: 0;
    margin-bottom: 2rem;
    order: 1;
    color: var(--neutral-foreground-hint);
}

@media (max-width: 899px) {
    .concept-bridge {
        display: none;
    }
}

.bridge-title {
    position: absolute;
    top: 75px;
    left: 50%;
    transform: translateX(-50%);
    font-weight: bold;
    color: var(--neutral-stroke-rest);
    z-index: 2;
    font-size: 0.9rem;
    letter-spacing: 0.05em;
    text-transform: uppercase;
    white-space: nowrap;
}

.bridge-core {
    background: var(--neutral-fill-rest);
    border: 2px solid var(--neutral-stroke-rest);
    border-radius: 12px;
    padding: 0.75rem 1rem;
    display: flex;
    flex-direction: column;
    align-items: center;
    gap: 0.5rem;
    z-index: 3;
    box-shadow: 0 4px 10px rgba(0, 0, 0, 0.05);
    min-width: 100px;
}

.code-animation {
    display: flex;
    flex-direction: column;
    gap: 3px;
    width: 52px;
    height: 42px;
    justify-content: center;
    font-family: 'Consolas', 'Monaco', 'Courier New', monospace;
    font-size: 10px;
    line-height: 1;
}

.code-line:first-child {
    margin-bottom: 4px;
}

.code-line {
    display: flex;
    align-items: center;
    gap: 4px;
    height: 6px;
}

.code-line.indent {
    padding-left: 8px;
}

.code-token {
    color: #ae81ff; /* Purple for keywords */
    font-weight: bold;
}

.code-token-alt {
    height: 3px;
    background: var(--neutral-stroke-rest);
    border-radius: 2px;
    width: 12px;
    opacity: 0.5;
}

.code-token-accent {
    height: 3px;
    background: var(--accent-fill-rest);
    border-radius: 2px;
    width: 24px;
    opacity: 0.8;
    animation: code-pulse 2s infinite ease-in-out;
}

@keyframes code-pulse {
    0%, 100% {
        opacity: 0.4;
        transform: scaleX(0.95);
    }
    50% {
        opacity: 1;
        transform: scaleX(1.05);
    }
}

.bridge-label {
    font-size: 0.75rem;
    font-weight: 700;
    text-transform: uppercase;
    color: var(--neutral-foreground-hint);
    white-space: nowrap;
}

.bridge-line {
    position: absolute;
    top: 50%;
    left: 50%;
    width: 600px;
    max-width: 100%;
    height: 120px;
    transform: translateX(-50%);
    z-index: 1;
    pointer-events: none;
}

.bridge-line svg {
    width: 100%;
    height: 100%;
}

.bridge-arrow {
    fill: none;
    stroke: var(--neutral-stroke-rest);
    stroke-width: 2;
    stroke-linecap: round;
    stroke-linejoin: round;
}

.concept-path.open-source:hover {
    border-color: #27ae60;
}

.concept-path.commercial:hover {
    border-color: #f39c12;
}

.overview-grid {
    display: grid;
    grid-template-columns: repeat(1, 1fr);
    gap: 2rem;
    margin-top: 3rem;
}

@media (min-width: 768px) {
    .overview-grid {
        grid-template-columns: repeat(2, 1fr);
        max-width: 800px;
        margin-left: auto;
        margin-right: auto;
    }
}

.overview-item {
    text-align: center;
}

.overview-item h3 {
    font-size: 1.25rem;
    font-weight: 600;
    color: var(--neutral-foreground-rest);
    margin-bottom: 0; /* Using min-height and flex for alignment */
}

.overview-item p {
    color: var(--neutral-foreground-hint);
    line-height: 1.6;
    margin-bottom: 0; /* Managed by flex-grow and margin-bottom on container if needed, but here we want flex alignment */
    text-align: left;
}

.section-link {
    text-align: center;
    margin-top: 2rem;
}

.section-intro {
    text-align: center;
    max-width: 900px;
    margin: 0 auto 3rem auto;
    font-size: 1.15rem;
    line-height: 1.6;
    color: var(--neutral-foreground-hint);
}

.section-intro.extra-margin {
    margin-top: 6rem; /* Original was 3rem margin-bottom from previous section, adding 3rem more */
}

.cards-grid .card-icon,
.overview-grid .card-icon {
    height: 64px;
}

.cards-grid .card-icon svg,
.overview-grid .card-icon svg {
    width: 48px !important;
    height: 48px !important;
}

.cards-grid .card,
.overview-grid .card {
    display: flex;
    flex-direction: column;
    height: 100%;
    position: relative;
    overflow: hidden;
}

.step-number {
    position: absolute;
    top: -10px;
    right: -10px;
    font-size: 10rem;
    font-weight: 900;
    color: var(--neutral-foreground-rest);
    opacity: 0.04;
    line-height: 0.8;
    pointer-events: none;
    user-select: none;
    z-index: 0;
}

.cards-grid .card-title,
.overview-grid .overview-item h3 {
    margin-bottom: 0;
    min-height: 3.5rem; /* Ensure consistent title height for vertical alignment */
    display: flex;
    align-items: center;
}

.overview-grid .overview-item h3 {
    justify-content: center;
}

.cards-grid .card-description,
.overview-grid .overview-item p {
    flex-grow: 1;
    margin-bottom: 1.5rem;
}

.explainer-content > p {
    font-size: 1.125rem;
    color: var(--neutral-foreground-rest);
    line-height: 1.6;
    margin-bottom: 2rem;
    text-align: center;
    padding: 0 1rem;
    box-sizing: border-box;
}

.license-comparison {
    display: grid;
    grid-template-columns: 1fr;
    gap: 1rem;
    align-items: stretch;
}

@media (min-width: 768px) {
    .license-comparison {
        grid-template-columns: 1fr auto 1fr;
        gap: 2rem;
    }
}

.license-option.open-source {
    border-color: var(--neutral-stroke-rest);
}

.license-option.commercial {
    border-color: var(--accent-fill-rest);
    background: rgba(0, 120, 212, 0.05);
}

.license-option h3 {
    font-size: 1.25rem;
    margin-bottom: 0.25rem;
    color: var(--neutral-foreground-rest);
}

.license-subtitle {
    font-size: 0.875rem;
    color: var(--neutral-foreground-hint);
    margin-bottom: 1rem;
}

.license-option ul {
    list-style: none;
    padding: 0;
    margin: 0;
}

.license-option li {
    padding: 0.5rem 0;
    padding-left: 1.5rem;
    position: relative;
    color: var(--neutral-foreground-rest);
}

.license-option li::before {
    content: "•";
    position: absolute;
    left: 0;
    color: var(--accent-fill-rest);
}

.license-divider {
    display: flex;
    align-items: center;
    justify-content: center;
}

.protection-content {
    padding: 2rem 2rem 2rem;
    box-sizing: border-box;
}

@media (max-width: 600px) {
    .protection-content {
        padding: 1rem;
    }
}

.protection-item {
    display: flex;
    flex-direction: column;
    gap: 1rem;
    padding: 1.5rem 0;
    border-bottom: 1px solid var(--neutral-stroke-rest);
}

@media (min-width: 600px) {
    .protection-item {
        flex-direction: row;
    }
}

.protection-item:last-child {
    border-bottom: none;
    padding-bottom: 0;
}

.protection-item:first-child {
    padding-top: 0;
}

.protection-icon {
    flex-shrink: 0;
    width: 32px;
    height: 32px;
    display: flex;
    align-items: flex-start;
    justify-content: center;
    padding-top: 2px;
}

.protection-text h4 {
    font-size: 1.125rem;
    margin-bottom: 0.5rem;
    color: var(--neutral-foreground-rest);
    padding-bottom: 0.1em;
}

.protection-text p {
    color: var(--neutral-foreground-rest);
    line-height: 1.6;
    margin: 0;
}

.subscribers-page .step-number {
    width: 32px;
    height: 32px;
    background: var(--accent-fill-rest);
    color: var(--foreground-on-accent-rest);
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    margin: 0 auto 1rem;
    font-weight: bold;
}

.subscription-content {
    display: grid;
    grid-template-columns: 1fr;
    gap: 2rem;
}

.subscription-content {
    padding-top: 0 !important;
    padding-bottom: 1.5rem;
    border: none !important;
    background: none !important;
    box-shadow: none !important;
}

.subscription-content::before,
.subscription-content::after {
    display: none !important;
}

.subscription-content:hover {
    border: none !important;
    background: none !important;
    box-shadow: none !important;
    transform: none !important;
}

@media (min-width: 900px) {
    .subscription-content {
        grid-template-columns: 1fr 1fr;
        align-items: stretch;
    }
}

.timeline-visual {
    display: flex;
    flex-direction: column;
    justify-content: space-between;
    gap: 1.5rem;
    position: relative;
    padding-left: 2rem;
}

.timeline-visual::before {
    content: "";
    position: absolute;
    left: 6px;
    top: 0;
    bottom: 0;
    width: 2px;
    background-image: linear-gradient(to bottom, var(--neutral-stroke-rest) 50%, transparent 50%);
    background-size: 2px 20px;
    z-index: 0;
    opacity: 1;
    animation: conveyor-belt 6s ease-in-out forwards;
}

@keyframes conveyor-belt {
    from {
        background-position: 0 0;
    }
    to {
        background-position: 0 100px;
    }
}

.timeline-visual.rewinding::before {
    animation: conveyor-belt-rewind 3s cubic-bezier(0.4, 0, 0.2, 1) forwards;
}

.timeline-visual.rewinding .timeline-period {
    animation: period-fade-out 1.2s ease forwards !important;
}

@keyframes conveyor-belt-rewind {
    0% {
        background-position: 0 100px;
    }
    100% {
        background-position: 0 0;
    }
}

@keyframes period-fade-out {
    from {
        opacity: 1;
    }
    to {
        opacity: 0;
    }
}

.timeline-visual::after {
    content: "";
    position: absolute;
    left: -1px;
    bottom: -2px;
    width: 0;
    height: 0;
    border-left: 8px solid transparent;
    border-right: 8px solid transparent;
    border-top: 20px solid var(--neutral-stroke-rest);
    z-index: 1;
}

.timeline-period {
    position: relative;
    padding: 1rem 1.5rem;
    border-radius: 12px;
    background: var(--neutral-layer-1);
    border: 1px solid var(--neutral-stroke-rest);
    box-shadow: 0 1px 4px rgba(0, 0, 0, 0.04);
    z-index: 1;
    transition: all 0.3s ease;
}

.timeline-period.active:hover {
    border-color: var(--success) !important;
    box-shadow: 0 8px 24px rgba(16, 185, 129, 0.15) !important;
}

.timeline-period.active {
    border-top: 3px solid var(--success);
    background: linear-gradient(to bottom, rgba(16, 185, 129, 0.05), transparent);
    box-shadow: 0 4px 12px rgba(0, 0, 0, 0.05);
    border-radius: 12px;
    padding: 1.75rem 1.5rem;
    opacity: 0;
    animation: period-fade-in 0.5s ease forwards 0.2s;
}

.timeline-period.expired {
    border-top: 3px solid var(--neutral-stroke-rest);
    background: var(--neutral-layer-2);
    border-radius: 12px;
    padding: 1.75rem 1.5rem;
    box-shadow: 0 2px 8px rgba(0, 0, 0, 0.05);
    opacity: 0;
    animation: period-fade-in 0.5s ease forwards 3.5s;
}

@keyframes period-fade-in {
    to {
        opacity: 1;
    }
}

.period-label {
    font-weight: 700;
    display: block;
    margin-bottom: 0.5rem;
    color: var(--neutral-foreground-rest);
    font-size: 1rem;
    text-transform: uppercase;
    letter-spacing: 0.05em;
}

.active .period-label {
    color: var(--success);
}

.releases {
    display: flex;
    gap: 0.75rem;
    flex-wrap: wrap;
    margin-bottom: 0.5rem;
}

.release {
    background: var(--neutral-layer-2);
    color: var(--neutral-foreground-rest);
    border: 1px solid var(--neutral-stroke-rest);
    padding: 0.35rem 0.75rem;
    border-radius: 6px;
    font-size: 0.85rem;
    font-weight: 600;
    font-family: monospace;
    display: inline-flex;
    align-items: center;
    gap: 0.4rem;
    box-shadow: 0 1px 2px rgba(0, 0, 0, 0.04);
    opacity: 0;
    transform: translateY(10px);
    animation: release-fade-in 0.5s ease forwards;
}

.release-1 {
    animation-delay: 0.5s;
}

.release-2 {
    animation-delay: 1.5s;
}

.release-3 {
    animation-delay: 2.5s;
}

.release-4 {
    animation-delay: 4.0s;
}

@keyframes release-fade-in {
    to {
        opacity: 1;
        transform: translateY(0);
    }
}

.icon-animate {
    opacity: 0;
    transform: scale(0.5);
    animation: icon-pop 0.3s cubic-bezier(0.175, 0.885, 0.32, 1.275) forwards;
}

.release-1 .icon-animate {
    animation-delay: 0.8s;
}

.release-2 .icon-animate {
    animation-delay: 1.8s;
}

.release-3 .icon-animate {
    animation-delay: 2.8s;
}

.release-4 .icon-animate {
    animation-delay: 4.3s;
}

@keyframes icon-pop {
    to {
        opacity: 1;
        transform: scale(1);
    }
}

.release.new {
    background: var(--neutral-layer-1);
    border-style: dashed;
}

.access-label {
    font-size: 0.875rem;
    color: var(--neutral-foreground-hint);
    display: flex;
    align-items: center;
    gap: 0.5rem;
}

.timeline-period.active .access-label {
    color: var(--success);
    font-weight: 500;
}

.subscription-explanation {
    display: flex;
    flex-direction: column;
    justify-content: space-between;
    gap: 0.75rem;
}

@media (max-width: 899px) {
    .subscription-content {
        padding-bottom: 1.5rem;
        gap: 1.5rem;
    }

    .timeline-visual {
        padding-left: 1.5rem;
    }
}

.subscription-explanation p {
    color: var(--neutral-foreground-rest);
    line-height: 1.5;
    margin: 0;
    font-size: 1rem;
}

.explanation-item {
    padding: 1rem 1.5rem;
    border-radius: 12px;
    flex: 1;
    display: flex;
    align-items: center;
    border: 1px solid var(--neutral-stroke-rest);
    border-left: 3px solid var(--accent-fill-rest);
    background: linear-gradient(to right, rgba(0, 120, 212, 0.02), transparent);
    transition: box-shadow 0.3s ease, border-color 0.3s ease;
}

.explanation-item:hover {
    border-color: var(--accent-fill-rest) !important;
    box-shadow: 0 12px 24px rgba(0, 120, 212, 0.15) !important;
}

.subscription-explanation strong {
    color: var(--accent-fill-rest);
    font-weight: 700;
}

.faq-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(300px, 1fr));
    gap: 2rem;
}

.faq-item h4 {
    margin-bottom: 0.75rem;
    color: var(--neutral-foreground-rest);
    font-size: 1rem;
}

.faq-item p {
    color: var(--neutral-foreground-rest);
    line-height: 1.6;
    margin: 0;
}

/* Animation Comparison Layout */
.animation-comparison {
    display: flex;
    justify-content: center;
    align-items: center; /* Center side columns relative to vs text */
    width: 100%;
    max-width: 1000px;
    margin: 2rem auto 1rem;
    gap: 0;
}

.animation-side {
    flex: 1;
    display: flex;
    flex-direction: column;
    align-items: center;
    transition: opacity 1s ease;
}

.animation-side.fading-out {
    opacity: 0;
}

.side-header {
    font-weight: bold;
    font-size: 1.2rem;
    color: var(--neutral-foreground-rest);
    text-transform: uppercase;
    letter-spacing: 0.1em;
    display: flex;
    align-items: center;
    justify-content: center;
    margin-top: 1.5rem; /* Reduced from 2.5rem */
    margin-bottom: 1.5rem; /* Reduced from 2.5rem */
}

.animation-divider {
    width: 2px;
    height: 200px;
    background: linear-gradient(to bottom,
    transparent 0%,
    var(--accent-fill-rest) 50%,
    transparent 100%);
    position: relative;
    margin: 0 3rem;
    display: flex;
    justify-content: center;
    align-items: center;
    border-radius: 4px;
    opacity: 0.6;
}

.vs-text {
    background: var(--neutral-layer-1);
    color: var(--neutral-foreground-rest);
    padding: 0.5rem;
    font-weight: bold;
    font-style: italic;
    z-index: 5;
    margin-top: 0; /* Perfectly centered to balance the line */
}

/* Infection Animation Styles */
.infection-container {
    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: center;
    padding: 0;
    gap: 0;
    width: 100%;
}

.infection-display {
    position: relative;
    width: 100%;
    max-width: 100%;
    height: 180px; /* Increased from 150px to accommodate taller software box */
    display: flex;
    justify-content: center;
    align-items: center;
    overflow: hidden;
}


.software-box {
    width: 160px;
    height: 130px; /* Increased from 110px */
    border: 2px solid var(--accent-fill-rest);
    border-radius: 12px;
    display: flex;
    flex-direction: column;
    justify-content: flex-start; /* Changed from center to move texts up */
    padding-top: 36px; /* Increased from 32px to balance with taller box */
    align-items: center;
    background: linear-gradient(to bottom, rgba(0, 120, 212, 0.15) 0%, rgba(0, 120, 212, 0.05) 24px, transparent 24px), /* Title bar shade: Subtle internal gradient */ linear-gradient(135deg, rgba(0, 120, 212, 0) 0%, rgba(0, 120, 212, 0.2) 100%),
    repeating-linear-gradient(
            45deg,
            transparent,
            transparent 15px,
            rgba(0, 120, 212, 0.08) 15px,
            rgba(0, 120, 212, 0.08) 30px
    );
    background-size: 100% 100%, 100% calc(100% - 24px), 100% calc(100% - 24px);
    background-position: top, 0 24px, 0 24px;
    background-repeat: no-repeat;
    background-color: var(--neutral-layer-1);
    position: relative;
    z-index: 2;
    box-shadow: 0 4px 12px rgba(0, 0, 0, 0.08);
    color: var(--accent-fill-rest);
    overflow: hidden; /* Ensure backgrounds don't bleed out of radius */
}

.agpl-module.visible ~ .software-box {
    animation: move-box-right 2s cubic-bezier(0.34, 1.56, 0.64, 1) forwards;
}

.codelibra-module.visible ~ .software-box {
    animation: move-box-left 2s cubic-bezier(0.34, 1.56, 0.64, 1) forwards;
}

@keyframes move-box-right {
    0% {
        transform: translateX(0);
    }
    30% {
        transform: translateX(0);
    }
    100% {
        transform: translateX(64px);
    }
}

@keyframes move-box-left {
    0% {
        transform: translateX(0);
    }
    30% {
        transform: translateX(0);
    }
    100% {
        transform: translateX(-64px);
    }
}


.software-box.infected {
    border-color: #d83b01;
    background: linear-gradient(to bottom, rgba(216, 59, 1, 0.2) 0%, rgba(216, 59, 1, 0.1) 24px, transparent 24px), /* Title bar shade: Subtle internal gradient */ linear-gradient(135deg, rgba(216, 59, 1, 0) 0%, rgba(216, 59, 1, 0.3) 100%),
    repeating-linear-gradient(
            45deg,
            transparent,
            transparent 15px,
            rgba(216, 59, 1, 0.1) 15px,
            rgba(216, 59, 1, 0.1) 30px
    );
    background-size: 100% 100%, 100% calc(100% - 24px), 100% calc(100% - 24px);
    background-position: top, 0 24px, 0 24px;
    background-repeat: no-repeat;
    background-color: rgba(216, 59, 1, 0.01);
    animation: glow-pulse-red 2s ease-out forwards;
}

.software-box.safe {
    border-color: var(--accent-fill-rest);
    background: linear-gradient(to bottom, rgba(0, 120, 212, 0.15) 0%, rgba(0, 120, 212, 0.05) 24px, transparent 24px), /* Title bar shade: Subtle internal gradient */ linear-gradient(135deg, rgba(0, 120, 212, 0) 0%, rgba(0, 120, 212, 0.3) 100%),
    repeating-linear-gradient(
            45deg,
            transparent,
            transparent 15px,
            rgba(0, 120, 212, 0.1) 15px,
            rgba(0, 120, 212, 0.1) 30px
    );
    background-size: 100% 100%, 100% calc(100% - 24px), 100% calc(100% - 24px);
    background-position: top, 0 24px, 0 24px;
    background-repeat: no-repeat;
    background-color: rgba(0, 120, 212, 0.01);
    animation: glow-pulse-blue 2s ease-out forwards;
    color: var(--accent-fill-rest);
}

@keyframes glow-pulse-red {
    0% {
        box-shadow: 0 4px 12px rgba(0, 0, 0, 0.1);
    }
    20% {
        box-shadow: 0 0 30px rgba(216, 59, 1, 0.6);
    }
    100% {
        box-shadow: 0 4px 12px rgba(0, 0, 0, 0.1);
    }
}

@keyframes glow-pulse-blue {
    0% {
        box-shadow: 0 4px 12px rgba(0, 0, 0, 0.1);
    }
    20% {
        box-shadow: 0 0 30px rgba(0, 120, 212, 0.7);
    }
    100% {
        box-shadow: 0 4px 12px rgba(0, 0, 0, 0.1);
    }
}

.software-box:not(.infected):not(.safe) .box-status {
    color: var(--accent-fill-rest);
}

.software-box.infected .box-label,
.software-box.infected .box-status {
    color: #d83b01;
}

.software-box.safe .box-label {
    color: var(--accent-fill-rest);
}

.software-box.safe .box-status {
    color: var(--accent-fill-rest);
}

.box-window-controls {
    display: flex;
    gap: 4px;
    position: absolute;
    top: 9px;
    left: 10px;
    z-index: 3;
}

.box-window-controls .dot {
    width: 6px;
    height: 6px;
    border-radius: 50%;
    background-color: var(--accent-fill-rest);
    opacity: 0.5;
}

.software-box.infected .box-window-controls .dot {
    background-color: #d83b01;
}

.box-label {
    font-weight: 800;
    font-size: 1rem;
    margin-bottom: 0.25rem;
    display: flex;
    align-items: center;
    gap: 8px;
    z-index: 3;
}

.box-status {
    font-size: 0.8rem;
    color: var(--neutral-foreground-hint);
    display: flex;
    flex-direction: column;
    align-items: center;
    height: 2.5rem; /* Fixed height to prevent shifting */
}

.original-license {
    position: relative;
    display: inline-block;
    font-weight: bold;
}

.checkmark-wrapper {
    position: absolute;
    bottom: -10px;
    right: -16px;
    display: flex;
    align-items: center;
    opacity: 0;
    transform: scale(0.5);
    pointer-events: none;
}

.checkmark-wrapper.visible {
    animation: fade-in-bounce 0.8s cubic-bezier(0.175, 0.885, 0.32, 1.275) forwards;
}

@keyframes fade-in-bounce {
    0% {
        opacity: 0;
        transform: scale(0.5);
    }
    50% {
        opacity: 1;
        transform: scale(1.2);
    }
    100% {
        opacity: 1;
        transform: scale(1);
    }
}

.original-license.strikethrough::after {
    content: "";
    position: absolute;
    left: 0;
    top: 50%;
    width: 0;
    height: 2px;
    background-color: #d83b01;
    animation: strike-through-anim 0.8s ease-out forwards;
}

@keyframes strike-through-anim {
    to {
        width: 100%;
    }
}

.original-license.strikethrough {
    opacity: 0.7;
    transition: opacity 0.5s ease;
}

.new-license {
    font-weight: bold;
    margin-top: 2px;
    opacity: 0;
    transition: opacity 0.5s ease;
}

.new-license.visible {
    opacity: 1;
}

.module-box {
    width: 120px;
    height: 80px; /* Increased from 70px */
    border-radius: 8px;
    display: flex;
    flex-direction: column;
    justify-content: center;
    align-items: center;
    position: absolute;
    opacity: 0;
    transition: opacity 1s ease, transform 0.3s ease;
    z-index: 10;
    pointer-events: none;
    color: white;
    border: 1px solid rgba(255, 255, 255, 0.2);
    overflow: hidden;
}

.module-box::before {
    content: "";
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    height: 40%;
    background: linear-gradient(to bottom, rgba(255, 255, 255, 0.15) 0%, transparent 100%);
    pointer-events: none;
}

.agpl-module {
    background: linear-gradient(135deg, #d83b01 0%, #a4262c 100%);
    box-shadow: 0 2px 8px rgba(216, 59, 1, 0.25), inset 0 0 0 1px rgba(255, 255, 255, 0.1);
}

.codelibra-module {
    background: linear-gradient(135deg, #f39c12 0%, #e67e22 100%);
    box-shadow: 0 2px 8px rgba(243, 156, 18, 0.25), inset 0 0 0 1px rgba(255, 255, 255, 0.1);
}

.agpl-module.visible {
    opacity: 1;
    animation: dock-agpl 2s ease-out forwards;
}

.codelibra-module.visible {
    opacity: 1;
    animation: dock-codelibra 2s ease-out forwards;
}

@keyframes dock-agpl {
    0% {
        left: -150px;
        top: 50%;
        transform: translateY(-50%);
        opacity: 0;
    }
    100% {
        left: calc(50% - 136px);
        top: 50%;
        transform: translateY(-50%);
        opacity: 1;
    }
}

@keyframes dock-codelibra {
    0% {
        right: -150px;
        top: 50%;
        transform: translateY(-50%);
        opacity: 0;
    }
    100% {
        right: calc(50% - 136px);
        top: 50%;
        transform: translateY(-50%);
        opacity: 1;
    }
}

.module-connector {
    position: absolute;
    width: 8px;
    height: 16px;
    background: rgba(255, 255, 255, 0.4);
    border-radius: 2px;
}

.module-connector.left {
    left: -4px;
    top: 50%;
    transform: translateY(-50%);
}

.module-connector.right {
    right: -4px;
    top: 50%;
    transform: translateY(-50%);
}

.module-info {
    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: center;
    text-align: center;
    z-index: 5;
    pointer-events: none;
    width: 100%;
}

.module-info .box-label {
    font-weight: 800;
    font-size: 0.8rem;
    margin-bottom: 0;
}

.box-license {
    font-weight: bold;
    font-size: 0.7rem;
}

.side-explanation {
    text-align: center;
    min-height: 4rem;
    position: relative;
    width: 100%;
    display: flex;
    justify-content: center;
    align-items: center;
    margin-top: 1rem;
    padding: 0 1rem;
}

.side-explanation p {
    margin: 0;
    font-size: 1rem;
    color: black;
    position: absolute;
    opacity: 0;
    transition: opacity 0.5s ease;
    width: 100%;
    pointer-events: none;
}

.side-explanation p.visible {
    opacity: 1;
    pointer-events: auto;
}

.side-explanation p.warning-text {
    color: #d83b01;
}

.side-explanation p.safe-text {
    color: var(--accent-fill-rest);
}

@media (max-width: 768px) {
    .animation-comparison {
        flex-direction: column;
        gap: 2rem;
    }

    .animation-divider {
        width: 80%;
        height: 2px;
        min-height: 2px;
        margin: 1.5rem auto;
        background: linear-gradient(to right,
        transparent 0%,
        var(--accent-fill-rest) 50%,
        transparent 100%);
    }

    .infection-display {
        justify-content: center;
        padding-right: 0;
    }

    .software-box {
        margin-left: 0;
        margin-top: 0; /* Removed margin-top for module space */
    }

    .agpl-module.visible {
        animation: dock-agpl-mobile 2s ease-out forwards;
    }

    .codelibra-module.visible {
        animation: dock-codelibra-mobile 2s ease-out forwards;
    }

    @keyframes dock-agpl-mobile {
        0% {
            left: -150px;
            top: 50%;
            transform: translateY(-50%);
            opacity: 0;
        }
        100% {
            left: calc(50% - 136px);
            top: 50%;
            transform: translateY(-50%);
            opacity: 1;
        }
    }

    @keyframes dock-codelibra-mobile {
        0% {
            right: -150px;
            top: 50%;
            transform: translateY(-50%);
            opacity: 0;
        }
        100% {
            right: calc(50% - 136px);
            top: 50%;
            transform: translateY(-50%);
            opacity: 1;
        }
    }

    .faq-grid {
        grid-template-columns: 1fr;
    }

    .license-divider {
        padding: 1rem 0;
    }
}

/* Root Pricing Page */
.headline-card {
    margin-top: 2rem;
}

.headline-content {
    display: flex;
    flex-direction: column;
    align-items: center;
    gap: 2rem;
}

@media (min-width: 768px) {
    .headline-content {
        flex-direction: row;
        justify-content: center;
        gap: 4rem;
    }
}

.percentage {
    font-size: 3.5rem;
    font-weight: bold;
    color: var(--accent-fill-rest);
    line-height: 1;
}

@media (min-width: 600px) {
    .percentage {
        font-size: 5rem;
    }
}

.headline-text {
    text-align: center;
}

@media (min-width: 768px) {
    .headline-text {
        text-align: left;
    }
}

.headline-text h3 {
    font-size: 1.5rem;
    margin: 0 0 0.5rem 0;
    color: var(--neutral-foreground-rest);
}

.headline-text p {
    margin: 0;
    color: var(--neutral-foreground-hint);
    font-size: 1.1rem;
}

.revenue-split-visual {
    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: center;
    gap: 4rem;
    margin-top: 4rem;
    margin-bottom: 4rem;
}

@media (min-width: 768px) {
    .revenue-split-visual {
        flex-direction: row;
    }
}

.glass-container {
    position: relative;
    width: 180px;
    height: 280px;
    background: rgba(255, 255, 255, 0.05);
    border: 4px solid rgba(255, 255, 255, 0.2);
    border-top: none;
    border-radius: 0 0 40px 40px;
    overflow: hidden;
    box-shadow: 0 20px 40px rgba(0, 0, 0, 0.2),
    inset 0 0 20px rgba(255, 255, 255, 0.05);
    z-index: 1;
}

.glass-container::before {
    content: '';
    position: absolute;
    top: 0;
    left: 10%;
    width: 20%;
    height: 100%;
    background: linear-gradient(to right, rgba(255, 255, 255, 0.1), transparent);
    z-index: 3;
}

.water {
    position: absolute;
    bottom: 0;
    left: 0;
    width: 100%;
    height: 80%;
    background: transparent;
    transition: height 0.5s ease;
    z-index: 2;
}

.wave {
    position: absolute;
    top: -20px;
    left: 0;
    width: 200%;
    height: calc(100% + 20px);
    background: url('data:image/svg+xml,<svg xmlns="http://www.w3.org/2000/svg" viewBox="0 0 800 1000" preserveAspectRatio="none"><path d="M0,50 C200,100 200,0 400,50 C600,100 600,0 800,50 L800,1000 L0,1000 Z" fill="%230078d4"/></svg>');
    background-size: 50% 100%;
    animation: wave-move 6s cubic-bezier(0.36, 0.45, 0.63, 0.53) infinite;
    transform: translate3d(0, 0, 0);
}

.wave.back {
    top: -25px;
    opacity: 0.4;
    animation: wave-move 8s cubic-bezier(0.36, 0.45, 0.63, 0.53) infinite reverse;
    filter: brightness(0.9);
    height: calc(100% + 25px);
}

.wave.middle {
    top: -22px;
    opacity: 0.6;
    animation: wave-move 10s cubic-bezier(0.36, 0.45, 0.63, 0.53) -2s infinite;
    filter: brightness(0.85);
    height: calc(100% + 22px);
}

@keyframes wave-move {
    0% {
        transform: translateX(0) translateY(0);
    }
    50% {
        transform: translateX(-25%) translateY(4px);
    }
    100% {
        transform: translateX(-50%) translateY(0);
    }
}

.glass-labels {
    display: flex;
    flex-direction: column;
    justify-content: space-between;
    height: 280px;
    padding: 0;
}

.label-item {
    display: flex;
    flex-direction: column;
    justify-content: center;
    position: relative;
}

.label-item.platform {
    height: 20%;
    color: #888;
    font-weight: 500;
}

.label-item.developer {
    height: 80%;
}

.label-percent {
    font-size: 2.5rem;
    font-weight: 800;
    line-height: 1;
    color: inherit;
    position: relative;
}

.label-percent::before {
    content: '';
    position: absolute;
    left: -2rem;
    top: 55%;
    width: 1.5rem;
    height: 1px;
    background: var(--neutral-stroke-rest);
    transform: translateY(-50%);
}

.label-item.platform .label-percent,
.label-item.platform .label-text {
    color: #888;
    font-weight: 500;
}

.developer .label-percent {
    color: var(--accent-fill-rest);
}

.label-text {
    font-size: 0.9rem;
    font-weight: 700;
    text-transform: uppercase;
    letter-spacing: 0.1em;
    color: inherit;
}

.developer .label-text {
    color: var(--accent-fill-rest);
}

.dependency-visual-flat {
    display: flex;
    flex-direction: column;
    align-items: center;
    gap: 0;
    padding: 0;
    margin: 1rem 0;
}

.dep-node {
    display: flex;
    align-items: center;
    gap: 1rem;
    padding: 0.75rem 1.25rem;
    border-radius: 12px;
    width: 220px;
    max-width: 100%;
    background: var(--neutral-layer-2);
    border: 1px solid var(--neutral-stroke-rest);
}

.dep-node.main {
    border-color: var(--accent-fill-rest);
    box-shadow: 0 4px 12px rgba(0, 0, 0, 0.05);
}

.dep-icon {
    color: var(--accent-fill-rest);
    display: flex;
}

.dep-info {
    display: flex;
    flex-direction: column;
    flex-grow: 1;
}

.dep-name {
    font-weight: 600;
    font-size: 0.9rem;
}

.dep-price {
    font-size: 1.1rem;
    font-weight: 700;
    color: var(--accent-fill-rest);
}

.dep-link {
    display: flex;
    flex-direction: column;
    align-items: center;
    height: 40px;
    position: relative;
}

.link-line {
    width: 2px;
    flex-grow: 1;
    background: var(--neutral-stroke-rest);
}

.link-label {
    font-size: 0.7rem;
    text-transform: uppercase;
    font-weight: 700;
    color: var(--neutral-foreground-hint);
    background: var(--neutral-layer-2);
    padding: 2px 8px;
    position: absolute;
    top: 50%;
    transform: translateY(-50%);
    border-radius: 10px;
    border: 1px solid var(--neutral-stroke-rest);
}

.no-fees-grid {
    display: grid;
    grid-template-columns: repeat(2, 1fr);
    gap: 1rem;
    max-width: 500px;
    margin: 0 auto;
}

@media (min-width: 768px) {
    .no-fees-grid {
        grid-template-columns: repeat(4, 1fr);
        max-width: 100%;
    }
}

.no-fee-item {
    display: flex;
    align-items: center;
    gap: 0.5rem;
    justify-content: center;
}

.no-fee-item span {
    color: var(--neutral-foreground-rest);
    font-size: 0.95rem;
}

.economics-text {
    max-width: 800px;
    margin: 0 auto 3rem auto;
    text-align: center;
}

.economics-text h3 {
    font-size: 1.75rem;
    margin-bottom: 1.5rem;
}

.economics-text p {
    font-size: 1.1rem;
    line-height: 1.6;
    color: var(--neutral-foreground-hint);
}

.economics-grid {
    display: grid;
    grid-template-columns: 1fr;
    gap: 2rem;
    align-items: stretch;
}

@media (min-width: 992px) {
    .economics-grid {
        grid-template-columns: 1fr 1fr;
    }
}

.economics-text p + p {
    margin-top: 1rem;
}

.example-card {
    padding: 2rem;
    display: flex;
    flex-direction: column;
}

.example-card .info-header {
    border-bottom: 1px solid var(--neutral-stroke-rest);
    padding-bottom: 0.75rem;
    margin-bottom: 1rem;
}

.example-summary {
    display: flex;
    flex-direction: column;
    gap: 0.75rem;
    margin-top: 1rem;
}

.total-line {
    display: flex;
    justify-content: space-between;
    align-items: center;
    margin-top: 0.5rem;
    padding-top: 1rem;
    border-top: 2px solid var(--neutral-stroke-rest);
}

.total-line strong:first-child {
    font-size: 1.25rem;
}

.total-line strong:last-child {
    font-size: 1.5rem;
    color: var(--accent-fill-rest);
}

.revenue-breakdown-box {
    margin-top: 0.5rem;
    padding: 1.25rem;
    background: var(--neutral-layer-2);
    border-radius: 8px;
}

.revenue-breakdown-box h5 {
    margin-top: 0;
    margin-bottom: 1rem;
    text-transform: uppercase;
    font-size: 0.8rem;
    letter-spacing: 0.05em;
    color: var(--neutral-foreground-hint);
}

.breakdown-list {
    display: flex;
    flex-direction: column;
    gap: 0.75rem;
}

.breakdown-row {
    display: flex;
    justify-content: space-between;
}

.breakdown-row.you-receive {
    color: var(--accent-fill-rest);
    font-weight: 700;
}

.breakdown-row.dependency-payout {
    font-weight: 700;
}

.breakdown-row.platform {
    color: var(--neutral-foreground-hint);
    font-weight: 400;
}

.payouts-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(250px, 1fr));
    gap: 3rem;
    padding: 1rem;
}

.payout-card {
    text-align: center;
}

.payout-card-icon {
    color: var(--accent-fill-rest);
    margin-bottom: 1rem;
    display: flex;
    justify-content: center;
}

.payout-card-icon svg {
    width: 48px !important;
    height: 48px !important;
}

.payout-card h4 {
    margin-bottom: 0.5rem;
}

.payout-card p {
    color: var(--neutral-foreground-hint);
    margin: 0;
}

.subscriber-info-card {
    max-width: 800px;
    margin: 0 auto;
    padding: 2.5rem;
}

.subscriber-info-content {
    display: flex;
    gap: 2rem;
    align-items: flex-start;
}

.subscriber-info-icon {
    color: var(--accent-fill-rest);
    flex-shrink: 0;
}

.subscriber-info-text p {
    font-size: 1.1rem;
    line-height: 1.6;
}

.subscriber-info-text p:first-child {
    margin-top: 0;
}

.subscriber-info-text p:last-child {
    margin-bottom: 0;
}

@media (max-width: 600px) {
    .revenue-split-visual {
        flex-direction: column;
        gap: 2rem;
    }

    .glass-labels {
        height: auto;
        gap: 1.5rem;
    }

    .label-item::before {
        display: none;
    }
}

/* Root Mission Page */
.highlight-section {
    padding: 6rem 2rem !important;
    margin-bottom: 6rem;
    background: linear-gradient(135deg, rgba(0, 120, 212, 0.03) 0%, rgba(0, 120, 212, 0.08) 100%);
    border-radius: 24px;
    border: 1px solid rgba(0, 120, 212, 0.1);
    box-sizing: border-box;
}

@media (max-width: 600px) {
    .highlight-section {
        padding: 3rem 1rem !important;
        margin-bottom: 3rem;
    }
}

/* Stats Grid */
.stats-grid {
    display: grid;
    grid-template-columns: repeat(1, 1fr);
    gap: 1.5rem;
}

@media (min-width: 600px) {
    .stats-grid {
        grid-template-columns: repeat(2, 1fr);
    }
}

@media (min-width: 1024px) {
    .stats-grid {
        grid-template-columns: repeat(4, 1fr);
    }
}

.stat-card {
    text-align: center;
    display: flex;
    flex-direction: column;
    padding: 2.5rem;
    transition: all 0.3s ease;
    border-radius: 12px;
    border: 1px solid var(--neutral-stroke-rest);
    background: var(--neutral-layer-1);
    box-shadow: 0 4px 12px rgba(0, 0, 0, 0.05);
}

.stat-card:hover {
    box-shadow: 0 12px 24px rgba(0, 120, 212, 0.08) !important;
    border-color: var(--accent-fill-rest) !important;
    background: linear-gradient(135deg, var(--neutral-layer-1) 0%, rgba(0, 120, 212, 0.02) 100%);
}

.stat-number {
    font-size: 2.5rem;
    font-weight: 800;
    color: var(--accent-fill-rest);
    margin-bottom: 2rem;
}

@media (min-width: 600px) {
    .stat-number {
        font-size: 3rem;
    }
}

.stat-label {
    font-size: 0.9rem;
    color: var(--neutral-foreground-hint);
    line-height: 1.4;
    text-align: left;
}

/* Sources */
.sources-container {
    margin-top: 2rem;
    padding: 1rem;
    border-radius: 8px;
    background: rgba(0, 0, 0, 0.02);
}

.sources-title {
    font-weight: 600;
    font-size: 0.9rem;
    margin-bottom: 0.5rem;
    color: var(--neutral-foreground-rest);
}

/* Problem Grid */
.problem-grid {
    display: grid;
    grid-template-columns: repeat(1, 1fr);
    gap: 2.5rem;
    margin-bottom: 4rem;
}

@media (min-width: 768px) {
    .problem-grid {
        grid-template-columns: repeat(3, 1fr);
    }
}

.problem-card {
    padding: 2.5rem;
    border-radius: 12px;
    border: 1px solid var(--neutral-stroke-rest);
    background: var(--neutral-layer-1);
    transition: all 0.3s ease;
    box-shadow: 0 4px 12px rgba(0, 0, 0, 0.05);
    display: flex;
    flex-direction: column;
    align-items: center;
    text-align: center;
}

.problem-card:hover {
    box-shadow: 0 12px 24px rgba(0, 120, 212, 0.08) !important;
    border-color: var(--accent-fill-rest) !important;
    background: linear-gradient(135deg, var(--neutral-layer-1) 0%, rgba(0, 120, 212, 0.02) 100%);
}

.problem-icon {
    margin-bottom: 1.5rem;
    background: var(--neutral-layer-2);
    padding: 1rem;
    border-radius: 50%;
    display: flex;
    width: 100px;
    height: 100px;
    align-items: center;
    justify-content: center;
    flex-shrink: 0;
    color: var(--accent-fill-rest);
    border: 1px solid var(--neutral-stroke-rest);
}

.problem-icon svg {
    width: 48px !important;
    height: 48px !important;
}

.problem-card h3 {
    margin-top: 0;
    margin-bottom: 1rem;
    color: var(--neutral-foreground-rest);
    font-size: 1.35rem;
    font-weight: 700;
    min-height: 4rem;
    display: flex;
    align-items: center;
    justify-content: center;
}

.problem-card p {
    color: var(--neutral-foreground-hint);
    line-height: 1.6;
    text-align: center;
    margin: 0;
    min-height: 8rem;
    display: flex;
    align-items: flex-start;
    justify-content: center;
}

/* Quote Block */
.quote-block {
    margin: 3rem auto 0 auto;
    max-width: 800px;
    padding: 3rem;
    background: var(--neutral-layer-1);
    border-radius: 24px;
    position: relative;
    text-align: left;
    border: 1px solid var(--neutral-stroke-rest);
    box-shadow: 0 4px 12px rgba(0, 0, 0, 0.05);
}

.quote-block::before {
    content: "“";
    position: absolute;
    top: 19px;
    left: 20px;
    font-size: 8rem;
    color: var(--accent-fill-rest);
    opacity: 0.1;
    font-family: serif;
    z-index: 0;
    background: var(--neutral-layer-1);
    padding: 0 10px;
}

.quote-block blockquote {
    position: relative;
    z-index: 1;
    font-size: 1.5rem;
    font-style: italic;
    line-height: 1.6;
    margin: 0 0 1.5rem 0;
    color: var(--neutral-foreground-rest);
    border: none;
    padding: 0;
}

.quote-block::after {
    content: "”";
    position: absolute;
    bottom: -40px;
    right: 20px;
    font-size: 8rem;
    color: var(--accent-fill-rest);
    opacity: 0.1;
    font-family: serif;
    z-index: 0;
}

.quote-block cite {
    font-size: 1rem;
    color: var(--neutral-foreground-hint);
    font-style: normal;
    opacity: 0;
    transition: opacity 1s ease-in-out;
}

.quote-block cite.visible {
    opacity: 1;
}

/* Comparison Grid */
.comparison-grid {
    display: grid;
    grid-template-columns: repeat(1, 1fr);
    gap: 1.5rem;
}

@media (min-width: 600px) {
    .comparison-grid {
        grid-template-columns: repeat(2, 1fr);
    }
}

@media (min-width: 1024px) {
    .comparison-grid {
        grid-template-columns: repeat(4, 1fr);
    }
}

.comparison-card {
    display: flex;
    flex-direction: column;
    padding: 2.5rem;
}

.comparison-card h4 {
    font-size: 1.1rem;
    font-weight: 700;
    margin-bottom: 1rem;
    color: var(--neutral-foreground-rest);
    min-height: 3rem;
    display: flex;
    align-items: center;
    justify-content: center;
    text-align: center;
}

.comparison-card p {
    font-size: 0.95rem;
    color: var(--neutral-foreground-hint);
    line-height: 1.5;
    margin: 0 0 1rem 0;
    flex-grow: 1;
    min-height: 8rem;
    display: flex;
    align-items: flex-start;
    justify-content: center;
    text-align: center;
}

.verdict {
    font-size: 0.85rem;
    font-weight: 700;
    padding: 0.4rem 0.8rem;
    border-radius: 8px;
    text-align: center;
    text-transform: uppercase;
    letter-spacing: 0.05em;
}

.verdict.negative {
    background-color: rgba(217, 48, 37, 0.1);
    color: #d93025;
}

/* Dual License Explanation */
.dual-license-explanation {
    display: flex;
    flex-direction: column;
    gap: 2rem;
    margin: 4rem 0;
    align-items: center;
}

@media (min-width: 900px) {
    .dual-license-explanation {
        flex-direction: row;
        align-items: stretch;
        justify-content: center;
    }
}

.license-box {
    border-radius: 12px;
    border: 1px solid var(--neutral-stroke-rest);
    border-top: 3px solid transparent;
    transition: all 0.3s ease;
    padding: 3rem !important;
    box-shadow: 0 4px 12px rgba(0, 0, 0, 0.05);
    flex: 1;
    max-width: 450px;
    display: flex;
    flex-direction: column;
}

.license-box:hover {
    box-shadow: 0 12px 24px rgba(0, 0, 0, 0.08) !important;
}

.license-header {
    display: flex;
    align-items: center;
    gap: 1rem;
    margin-bottom: 1.5rem;
}

.license-box.open-source {
    background: linear-gradient(135deg, var(--neutral-layer-1) 0%, rgba(39, 174, 96, 0.03) 100%);
    border-top-color: #27ae60;
}

.license-box.open-source h3 {
    color: #27ae60;
}

.license-box.open-source .license-audience {
    color: #27ae60;
    border-color: rgba(39, 174, 96, 0.3);
    background: rgba(39, 174, 96, 0.05);
}

.license-box.open-source:hover {
    border-color: #27ae60 !important;
    background: linear-gradient(135deg, var(--neutral-layer-1) 0%, rgba(39, 174, 96, 0.06) 100%) !important;
}

.license-box.commercial {
    background: linear-gradient(135deg, var(--neutral-layer-1) 0%, rgba(243, 156, 18, 0.03) 100%);
    border-top-color: #f39c12;
}

.license-box.commercial h3 {
    color: #f39c12;
}

.license-box.commercial .license-audience {
    color: #f39c12;
    border-color: rgba(243, 156, 18, 0.3);
    background: rgba(243, 156, 18, 0.05);
}

.license-box.commercial:hover {
    border-color: #f39c12 !important;
    background: linear-gradient(135deg, var(--neutral-layer-1) 0%, rgba(243, 156, 18, 0.06) 100%) !important;
}

.license-box h3 {
    margin: 0;
    font-size: 1.5rem;
    font-weight: 700;
}

.license-audience {
    margin-top: 2rem;
    font-weight: 700;
    text-transform: uppercase;
    font-size: 0.85rem;
    letter-spacing: 0.05em;
    color: var(--neutral-foreground-hint);
    padding: 0.5rem 1rem;
    border-radius: 100px;
    background: var(--neutral-fill-stealth-rest);
    border: 1px solid var(--neutral-stroke-rest);
    align-self: flex-start;
}

.license-divider {
    display: flex;
    align-items: center;
    justify-content: center;
}

/* Why Works */
.why-works {
    margin-top: 5rem;
}

.why-works h3 {
    font-size: 1.75rem;
    text-align: center;
    margin-bottom: 3rem;
}

.benefits-list {
    display: flex;
    flex-direction: column;
    gap: 1.5rem;
    max-width: 800px;
    margin: 0 auto;
}

.benefit-item {
    display: flex;
    align-items: flex-start;
    gap: 1rem;
    padding: 0.5rem 0;
}

.benefit-item span {
    font-size: 1rem;
    color: var(--neutral-foreground-rest);
}

/* Permissive Note */
.permissive-note {
    margin-top: 4rem;
    padding: 3rem;
    background: rgba(245, 158, 11, 0.05);
    border: 1px solid rgba(245, 158, 11, 0.2);
    border-radius: 16px;
    max-width: 800px;
    margin-left: auto;
    margin-right: auto;
}

.note-header {
    display: flex;
    align-items: center;
    gap: 1rem;
    margin-bottom: 1rem;
}

.permissive-note h4 {
    margin: 0;
    font-size: 1.2rem;
    font-weight: 700;
    color: var(--neutral-foreground-rest);
}

.permissive-note p {
    margin: 0;
    font-size: 1rem;
    line-height: 1.6;
    color: var(--neutral-foreground-hint);
}

/* Hurdles Grid */
.hurdles-grid {
    display: grid;
    grid-template-columns: repeat(1, 1fr);
    gap: 2rem;
    margin-bottom: 5rem;
}

@media (min-width: 600px) {
    .hurdles-grid {
        grid-template-columns: repeat(2, 1fr);
    }
}

@media (min-width: 1024px) {
    .hurdles-grid {
        grid-template-columns: repeat(4, 1fr);
    }
}

.hurdle-card {
    padding: 2.5rem;
    border-radius: 12px;
    border: 1px solid var(--neutral-stroke-rest);
    background: var(--neutral-layer-1);
    transition: all 0.3s ease;
    box-shadow: 0 4px 12px rgba(0, 0, 0, 0.05);
    text-align: center;
}

.hurdle-card:hover {
    box-shadow: 0 12px 24px rgba(0, 120, 212, 0.08) !important;
    border-color: var(--accent-fill-rest) !important;
    background: linear-gradient(135deg, var(--neutral-layer-1) 0%, rgba(0, 120, 212, 0.02) 100%);
}

.hurdle-icon {
    margin-bottom: 1.5rem;
    color: var(--accent-fill-rest);
}

.hurdle-card h4 {
    margin-top: 0;
    margin-bottom: 1rem;
    font-size: 1.15rem;
    font-weight: 700;
}

.hurdle-card p {
    font-size: 0.95rem;
    color: var(--neutral-foreground-hint);
    line-height: 1.5;
}

/* CodeLibra Solution */
.codelibra-solution {
    background: linear-gradient(135deg, var(--accent-fill-rest) 0%, #007ce9 100%);
    color: white;
    padding: 4rem;
    border-radius: 24px;
}

.solution-header {
    text-align: center;
    margin-bottom: 4rem;
}

.solution-header h3 {
    font-size: 2rem;
    font-weight: 800;
    margin-bottom: 1rem;
}

.solution-header p {
    font-size: 1.2rem;
    max-width: 800px;
    margin: 0 auto;
    opacity: 0.9;
    line-height: 1.6;
}

.features-highlight {
    display: grid;
    grid-template-columns: repeat(1, 1fr);
    gap: 2rem;
}

@media (min-width: 768px) {
    .features-highlight {
        grid-template-columns: repeat(2, 1fr);
    }
}

.feature-item {
    display: flex;
    gap: 1.5rem;
    background: rgba(255, 255, 255, 0.1);
    padding: 2.5rem;
    border-radius: 16px;
    backdrop-filter: blur(10px);
}

.feature-item fluent-icon {
    flex-shrink: 0;
    width: 48px !important;
    height: 48px !important;
}

.feature-item fluent-icon svg {
    width: 48px !important;
    height: 48px !important;
}

.feature-text strong {
    display: block;
    font-size: 1.2rem;
    margin-bottom: 0.5rem;
}

.feature-text span {
    font-size: 1rem;
    opacity: 0.85;
    line-height: 1.4;
}

/* Root Developers Page */
.concept-cards {
    display: flex;
    align-items: stretch;
    justify-content: center;
    gap: 1.5rem;
    flex-wrap: wrap;
    width: 100%;
    max-width: 1000px;
    margin: 0 auto 4rem auto;
    padding: 0 1rem;
    position: relative;
    box-sizing: border-box;
}

@keyframes fadeInLeft {
    from {
        opacity: 0;
        transform: translateX(-30px);
    }
    to {
        opacity: 1;
        transform: translateX(0);
    }
}

.concept-card {
    flex: 1;
    min-width: 250px;
    min-height: 280px;
    text-align: center;
    padding: 2rem 1.5rem 1.5rem 1.5rem;
    display: flex;
    flex-direction: column;
    transition: all 0.3s ease;
    border-top: 3px solid transparent;
    animation: fadeInLeft 0.8s ease-out forwards;
    opacity: 0;
    box-sizing: border-box;
}

@media (max-width: 600px) {
    .concept-card {
        padding: 2rem 1rem 1.5rem 1rem;
    }
}

.concept-card.open-source {
    animation-delay: 0.1s;
    border-top-color: #27ae60;
    background: linear-gradient(to bottom, rgba(39, 174, 96, 0.03), transparent);
}

.concept-card.open-source:hover {
    border-color: #27ae60 !important;
    box-shadow: 0 12px 24px rgba(39, 174, 96, 0.15) !important;
}

.concept-card.commercial {
    animation-delay: 0.8s;
    border-top-color: #f39c12;
    background: linear-gradient(to bottom, rgba(243, 156, 18, 0.03), transparent);
}

.concept-card.commercial:hover {
    border-color: #f39c12 !important;
    box-shadow: 0 12px 24px rgba(243, 156, 18, 0.15) !important;
}

.concept-card.highlight-card {
    animation-delay: 1.5s;
    background: var(--accent-fill-rest) !important;
    color: white !important;
    border-top: none;
    box-shadow: 0 12px 30px rgba(0, 120, 212, 0.2);
}

.concept-card.highlight-card:hover {
    border-color: var(--accent-fill-rest) !important;
    box-shadow: 0 16px 40px rgba(0, 120, 212, 0.3) !important;
}

.concept-icon {
    margin-bottom: 1.5rem;
    display: flex;
    justify-content: center;
}

.concept-card.open-source .concept-icon {
    color: #27ae60;
}

.concept-card.commercial .concept-icon {
    color: #f39c12;
}

.highlight-card .concept-icon {
    color: white;
}

.concept-card h3 {
    margin-bottom: 1rem;
    font-size: 1.35rem;
    font-weight: 700;
    min-height: 3.5rem;
    display: flex;
    align-items: center;
    justify-content: center;
}

.concept-card.open-source h3 {
    color: #27ae60;
}

.concept-card.commercial h3 {
    color: #f39c12;
}

.concept-card p {
    font-size: 0.95rem;
    line-height: 1.6;
    color: inherit;
    margin: 0;
    text-align: center;
    flex-grow: 1;
    display: flex;
    align-items: flex-start;
    justify-content: center;
}

.concept-plus, .concept-equals {
    font-size: 2rem;
    font-weight: bold;
    color: var(--accent-fill-rest);
    display: flex;
    align-items: center;
    animation: fadeInLeft 0.6s ease-out forwards;
    opacity: 0;
}

.concept-plus {
    animation-delay: 0.5s;
}

.concept-equals {
    animation-delay: 1.2s;
}

/* Model Comparison */
.model-comparison {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(350px, 1fr));
    gap: 2rem;
}

.model-card {
    overflow: hidden;
}

.model-header {
    padding: 1.25rem;
    display: flex;
    align-items: center;
    justify-content: space-between;
}

.model-header.classic {
    background: var(--accent-fill-rest);
    color: var(--foreground-on-accent-rest);
}

.model-header.voluntary {
    background: var(--neutral-fill-stealth-rest);
}

.model-header h3 {
    margin: 0;
    font-size: 1.25rem;
}

.model-badge {
    font-size: 0.75rem;
    padding: 0.25rem 0.5rem;
    background: rgba(255,255,255,0.2);
    border-radius: 4px;
}

.model-body {
    padding: 1.5rem 1.5rem;
}

@media (max-width: 600px) {
    .model-body {
        padding: 1.5rem 1rem;
    }
}

.model-description {
    margin-bottom: 1.5rem;
    font-size: 1rem;
}

.model-licenses {
    margin-bottom: 1.5rem;
}

.license-item {
    display: flex;
    align-items: center;
    gap: 0.75rem;
    padding: 0.5rem 0;
}

.model-best-for {
    font-size: 0.9rem;
    color: var(--neutral-foreground-hint);
    padding-top: 1rem;
    border-top: 1px solid var(--neutral-stroke-rest);
}

/* Benefits Grid */
.benefits-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(300px, 1fr));
    gap: 1.5rem;
}

.benefit-card {
    display: flex;
    flex-direction: column;
}

.benefit-card h4 {
    margin-bottom: 0.75rem;
    min-height: 2.5rem;
    display: flex;
    align-items: center;
}

.benefit-card p {
    margin: 0;
    flex-grow: 1;
}

/* Revenue Explainer */
.revenue-explainer {
    display: flex;
    flex-direction: column;
    gap: 2rem;
}

.revenue-diagram {
    display: flex;
    align-items: center;
    justify-content: center;
    flex-wrap: wrap;
    gap: 1rem;
}

.revenue-step {
    display: flex;
    align-items: center;
    gap: 1rem;
    min-width: 200px;
}

.step-circle {
    width: 36px;
    height: 36px;
    background: var(--accent-fill-rest);
    color: var(--foreground-on-accent-rest);
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    font-weight: bold;
    flex-shrink: 0;
}

.step-content h4 {
    margin: 0 0 0.25rem 0;
    font-size: 1rem;
}

.step-content p {
    margin: 0;
    font-size: 0.85rem;
    color: var(--neutral-foreground-hint);
}

.revenue-arrow {
    font-size: 1.5rem;
    color: var(--accent-fill-rest);
}

.revenue-example {
    max-width: 500px;
    margin: 0 auto;
    text-align: center;
}

.revenue-example h4 {
    margin-bottom: 1rem;
}

.revenue-breakdown {
    margin-top: 1rem;
    padding-top: 1rem;
    border-top: 1px solid var(--neutral-stroke-rest);
}

.breakdown-item {
    display: flex;
    justify-content: space-between;
    padding: 0.5rem 0;
}

.breakdown-item .amount {
    font-weight: bold;
    color: var(--accent-fill-rest);
}

.breakdown-item .amount.commission {
    color: var(--neutral-foreground-hint);
}

/* Steps Timeline */
.steps-timeline {
    display: flex;
    align-items: flex-start;
    justify-content: center;
    gap: 0;
    padding: 2rem 0;
}

.timeline-step {
    display: flex;
    flex-direction: column;
    align-items: center;
    text-align: center;
    flex: 1 1 0;
    min-width: 0;
    position: relative;
}

.timeline-number {
    width: 32px;
    height: 32px;
    background: var(--accent-fill-rest);
    color: var(--foreground-on-accent-rest);
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    font-weight: bold;
    font-size: 1rem;
    margin-bottom: 1rem;
    z-index: 2;
}

.timeline-content h4 {
    margin: 0 0 0.25rem 0;
    font-size: 0.95rem;
    font-weight: 600;
}

.timeline-content p {
    margin: 0;
    font-size: 0.8rem;
    color: var(--neutral-foreground-hint);
    line-height: 1.3;
}

.timeline-connector {
    flex: 1 1 0;
    height: 2px;
    background: var(--accent-fill-rest);
    margin-top: 16px; /* Half of timeline-number height */
    opacity: 0.5;
}

/* Dependencies Explainer */
.dependencies-container {
    display: grid;
    grid-template-columns: 3fr 2fr;
    gap: 2rem;
    align-items: stretch;
}

.dependencies-info, .dependencies-automation {
    padding: 2rem 1.5rem;
    display: flex;
    flex-direction: column;
}

@media (max-width: 600px) {
    .dependencies-info, .dependencies-automation {
        padding: 2rem 1rem;
    }
}

.info-header {
    display: flex;
    align-items: center;
    gap: 1rem;
    margin-bottom: 1.5rem;
}

.info-header h3 {
    margin: 0;
    font-size: 1.25rem;
}

.dependency-comparison {
    display: flex;
    flex-direction: column;
    gap: 1rem;
    margin-top: 1.5rem;
}

.dep-type {
    padding: 1.25rem;
    border-radius: 8px;
    background: var(--neutral-fill-stealth-rest);
    border: 1px solid var(--neutral-stroke-rest);
}

.dep-type-header {
    display: flex;
    align-items: center;
    gap: 0.75rem;
    margin-bottom: 0.5rem;
}

.dep-type h4 {
    margin: 0;
    font-size: 1rem;
}

.dep-type p {
    margin: 0.25rem 0;
    font-size: 0.9rem;
    line-height: 1.5;
}

.dep-type .example {
    font-style: italic;
    color: var(--neutral-foreground-hint);
    font-size: 0.85rem;
    margin-top: 0.5rem;
}

.automation-list {
    list-style: none;
    padding: 0;
    margin: 0;
    display: flex;
    flex-direction: column;
    gap: 1.25rem;
    flex-grow: 1;
}

.automation-list li {
    display: flex;
    flex-direction: column;
    gap: 0.25rem;
}

.automation-list li strong {
    font-size: 1rem;
    text-transform: uppercase;
    letter-spacing: 0.05em;
    color: var(--foreground-on-accent-rest);
}

.automation-list li span {
    font-size: 0.9rem;
    color: var(--foreground-on-accent-rest);
}

.dependencies-automation.highlight-card {
    justify-content: center;
    background: var(--accent-fill-rest) !important;
}

.dependencies-automation.highlight-card h3 {
    color: var(--foreground-on-accent-rest);
}

@media (max-width: 992px) {
    .dependencies-container {
        grid-template-columns: 1fr;
    }
}

/* Licensee Rights */
.licensee-rights-grid {
    display: grid;
    grid-template-columns: auto 450px 450px;
    gap: 1.5rem;
    align-items: stretch;
    justify-content: center;
}

.rights-column-title {
    font-weight: 800;
    text-transform: uppercase;
    letter-spacing: 0.1em;
    font-size: 1.25rem;
    color: var(--neutral-foreground-hint);
    text-align: center;
    padding: 1rem;
    background: var(--neutral-fill-stealth-rest);
    border-radius: 8px;
}

.rights-column-title.open-source {
    color: #27ae60;
}

.rights-column-title.commercial {
    color: #f39c12;
}

.rights-card {
    display: flex;
    flex-direction: column;
    transition: all 0.3s ease;
    border-top: 3px solid transparent;
    padding: 2rem 1.5rem;
    box-sizing: border-box;
}

@media (max-width: 600px) {
    .rights-card {
        padding: 1.5rem 1rem;
    }
}

.rights-card.permitted {
    border-top-color: var(--accent-fill-rest);
    background: linear-gradient(to bottom, rgba(0, 120, 212, 0.03), transparent);
}

.rights-card.permitted:hover {
    border-color: var(--accent-fill-rest) !important;
    box-shadow: 0 12px 24px rgba(0, 120, 212, 0.15) !important;
}

.rights-card.not-included {
    border-top: 3px solid var(--error);
    background: linear-gradient(to bottom, rgba(232, 17, 35, 0.03), transparent);
}

.rights-card.not-included:hover {
    border-color: var(--error) !important;
    box-shadow: 0 12px 24px rgba(232, 17, 35, 0.15) !important;
}

.rights-row-title {
    writing-mode: vertical-lr;
    transform: rotate(180deg);
    text-align: center;
    font-weight: bold;
    font-size: 1.25rem;
    color: var(--accent-fill-rest);
    padding: 1rem 0.5rem;
    background: var(--neutral-fill-stealth-rest);
    border-radius: 8px;
    display: flex;
    align-items: center;
    justify-content: center;
    text-transform: uppercase;
    letter-spacing: 0.1em;
    transition: transform 0.2s ease, background 0.2s ease;
}

/* Row titles don't have hover effects */
.rights-row-title.non-included {
    color: #d83b01;
    background: rgba(216, 59, 1, 0.05);
}

.rights-card h4 {
    margin-bottom: 1rem;
    font-size: 1.1rem;
    display: flex;
    align-items: center;
    gap: 0.5rem;
    min-height: 2.5rem;
}

.rights-card ul {
    margin: 0;
    padding-left: 1.25rem;
    flex-grow: 1;
}

.rights-card li {
    margin-bottom: 0.75rem;
    line-height: 1.5;
}

@media (max-width: 768px) {
    .rights-column-title {
        display: none;
    }

    .licensee-rights-grid > div:first-child {
        display: none;
    }

    .rights-row-title {
        writing-mode: horizontal-tb;
        transform: none;
        padding: 0.5rem;
    }
}
.api-content {
    position: relative;
    overflow: hidden;
    min-height: 250px;
    display: flex;
    align-items: center;
    justify-content: center;
    transition: all 0.3s ease;
}

.api-text {
    position: relative;
    z-index: 2;
    padding: 2rem 1.5rem;
    border-radius: 8px;
    width: 100%;
}

@media (max-width: 600px) {
    .api-text {
        padding: 2rem 1rem;
    }
}

.api-text-intro {
    text-align: center;
    margin-bottom: 2rem;
}

.api-links {
    margin-top: 2rem;
    text-align: center;
}

.matrix-canvas {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    z-index: 1;
    opacity: 0.3;
    transition: opacity 0.5s ease;
    pointer-events: none;
}

.api-content:hover .matrix-canvas {
    opacity: 0.6;
}

.api-features {
    display: flex;
    justify-content: center;
    gap: 2rem;
    flex-wrap: wrap;
}

.api-feature {
    display: flex;
    align-items: center;
    gap: 0.5rem;
}

.rights-note {
    margin-top: 1rem;
    padding-top: 1rem;
    border-top: 1px solid var(--neutral-stroke-rest);
    font-size: 0.9rem;
    color: var(--neutral-foreground-hint);
}

.section-link-container {
    grid-column: 2 / span 2;
    display: flex;
    justify-content: center;
    margin-top: 2rem;
}

/* Responsive */
@media (max-width: 1024px) {
    .concept-cards {
        flex-direction: column;
        flex-wrap: wrap;
        width: 100%;
        margin: 2rem 0;
    }

    .concept-plus, .concept-equals {
        transform: none;
        justify-content: center;
        padding: 0.5rem 0;
        animation-name: fadeInLeft;
    }

    .licensee-rights-grid {
        grid-template-columns: 1fr;
    }

    .rights-row-title {
        writing-mode: horizontal-tb;
        transform: none;
        padding: 0.5rem;
        margin-top: 1rem;
    }

    .section-link-container {
        grid-column: 1;
    }

    .model-comparison {
        grid-template-columns: 1fr;
    }

    .revenue-diagram {
        flex-direction: column;
    }

    .revenue-arrow {
        transform: rotate(90deg);
    }

    .steps-timeline {
        flex-direction: column;
        align-items: center;
        gap: 1rem;
    }

    .timeline-step {
        flex: 0 0 auto;
        width: 100%;
    }

    .timeline-connector {
        display: none;
    }

    .dependencies-explainer {
        display: none;
    }

    .licensee-rights {
        grid-template-columns: 1fr;
    }
}

/* Root Home Page */
.root-hero {
    width: 100%;
    max-width: 1200px;
    margin: 0 auto 4rem auto;
    padding: 2rem;
    text-align: center;
    position: relative;
    box-sizing: border-box;
}

.root-hero h1,
.root-hero .hero-title {
    font-size: 2.5rem;
    font-weight: bold;
    color: var(--neutral-foreground-rest);
    margin-bottom: 1.5rem;
    background: linear-gradient(135deg, var(--neutral-foreground-rest) 0%, var(--accent-fill-rest) 100%);
    -webkit-background-clip: text;
    -webkit-text-fill-color: transparent;
    display: inline-block;
    padding-bottom: 0.15em;
}

/* Root Title Styling (standard for all root pages except Home) */
.root-title-container {
    width: 100%;
    max-width: 1200px;
    margin: 0 auto 4rem auto;
    padding: 2rem;
    text-align: center;
    position: relative;
    box-sizing: border-box;
}

.root-title-container h1,
.root-title-container .root-title {
    font-size: 2.5rem;
    font-weight: 600; /* Less bold than hero-title */
    color: var(--neutral-foreground-rest);
    margin-bottom: 1.5rem;
    background: linear-gradient(135deg, var(--neutral-foreground-rest) 0%, var(--accent-fill-rest) 100%);
    -webkit-background-clip: text;
    -webkit-text-fill-color: transparent;
    display: inline-block;
    padding-bottom: 0.15em;
}

@media (max-width: 600px) {
    .root-hero,
    .root-title-container {
        text-align: left;
        padding: 0;
    }
}

/* Specific override for RootHome where hero has a picture and custom layout */
.root-hero:has(.hero-content) {
    text-align: left !important;
}

.root-hero::before {
    content: "";
    position: absolute;
    top: -100px;
    left: 0;
    width: 100%;
    max-width: 1000px;
    height: 800px;
    background: radial-gradient(circle, rgba(0, 120, 212, 0.07) 0%, rgba(0, 120, 212, 0) 60%);
    z-index: -1;
    pointer-events: none;
}

/* h1 styling moved to .root-hero h1 */

.root-hero .hero-subtitle,
.root-hero .hero-description {
    font-size: 1.25rem;
    color: var(--neutral-foreground-rest);
    line-height: 1.6;
}

.root-section {
    width: 100%;
    max-width: 1200px;
    margin: 0 auto 4rem auto;
    padding: 2rem;
    position: relative;
    border-radius: 24px;
    box-sizing: border-box;
}

.root-section:nth-of-type(even) {
    background: radial-gradient(circle at 10% 20%, rgba(0, 120, 212, 0.03) 0%, transparent 40%),
    radial-gradient(circle at 90% 80%, rgba(0, 120, 212, 0.03) 0%, transparent 40%);
}

.root-section-title {
    width: 100%;
    font-size: 2rem;
    text-align: center;
    font-weight: bold;
    color: var(--neutral-foreground-rest);
    margin-bottom: 3.5rem;
    position: relative;
    display: inline-block;
    padding-bottom: 0.15em;
    box-sizing: border-box;
}

.root-section-title::after {
    content: "";
    position: absolute;
    bottom: -12px;
    left: 20%;
    width: 60%;
    height: 4px;
    background: linear-gradient(90deg, transparent, var(--accent-fill-rest), transparent);
    border-radius: 4px;
    opacity: 0.6;
}

.common-questions {
    margin-top: 0;
}

.question-book,
.doc-book-category {
    padding: 1.5rem;
    border-radius: 8px;
    border: 1px solid var(--neutral-stroke-rest);
    border-left: 8px solid var(--accent-fill-rest);
    height: 100%;
    transition: transform 0.2s ease, box-shadow 0.2s ease, border-color 0.2s ease, background 0.2s ease;
    background: linear-gradient(to bottom, rgba(0, 120, 212, 0.02), transparent);
}

.question-book:hover,
.doc-book-category:hover {
    box-shadow: 0 12px 24px rgba(0, 120, 212, 0.15);
    border-color: var(--accent-fill-rest);
    background: linear-gradient(135deg, var(--neutral-layer-1) 0%, rgba(0, 120, 212, 0.02) 100%);
}

.question-book h4,
.doc-book-category h3 {
    margin-top: 0;
    margin-bottom: 1.25rem;
    font-size: 1.25rem;
    font-weight: 600;
    color: var(--neutral-foreground-rest);
    border-bottom: 1px solid var(--neutral-stroke-rest);
    padding-bottom: 0.5rem;
}

.doc-links-list {
    list-style: none;
    padding: 0;
    margin: 0;
}

.doc-links-list li {
    margin-bottom: 0.75rem;
    position: relative;
}

.doc-links-list li::before {
    content: none;
}

.root-cta-section {
    text-align: center;
    padding: 3rem 1rem;
    background: linear-gradient(135deg, var(--neutral-layer-1) 0%, rgba(0, 120, 212, 0.05) 100%);
    border: 2px solid var(--accent-fill-rest);
    border-radius: 12px;
    color: var(--neutral-foreground-rest);
    margin: 0 auto 4rem auto;
    max-width: 1200px;
    box-shadow: 0 8px 24px rgba(0, 120, 212, 0.08);
    transition: transform 0.3s cubic-bezier(0.4, 0, 0.2, 1), box-shadow 0.3s cubic-bezier(0.4, 0, 0.2, 1), border-color 0.3s ease;
    box-sizing: border-box;
}

@keyframes radiating-glow {
    0% { box-shadow: 0 8px 24px rgba(0, 120, 212, 0.08), 0 0 0 0 rgba(0, 120, 212, 0); }
    50% { box-shadow: 0 8px 24px rgba(0, 120, 212, 0.12), 0 0 30px 15px rgba(0, 120, 212, 0.3); border-color: rgba(0, 120, 212, 1); }
    100% { box-shadow: 0 8px 24px rgba(0, 120, 212, 0.08), 0 0 0 0 rgba(0, 120, 212, 0); }
}

.root-cta-section:hover {
    box-shadow: 0 16px 32px rgba(0, 120, 212, 0.2);
    animation: radiating-glow 2s infinite ease-in-out;
}

.root-cta-section h2 {
    color: var(--accent-fill-rest);
    margin-bottom: 1.25rem;
    font-size: 2rem;
    line-height: 1.2;
    padding-bottom: 0.1em;
}

.root-cta-section p {
    color: var(--neutral-foreground-rest);
    font-size: 1.1rem;
    margin-bottom: 2.5rem;
    line-height: 1.6;
}

.root-cta-section a,
.root-cta-section .cta-docs a {
    color: var(--accent-fill-rest);
    text-decoration: underline;
}

.root-cta-section .cta-docs {
    margin-top: 1.5rem;
    margin-bottom: 0;
    font-size: 1rem;
}

.doc-link {
    display: inline-flex;
    align-items: center;
    gap: 0.25rem;
}

.doc-link::before {
    content: "";
    display: inline-block;
    width: 16px;
    height: 16px;
    background-color: currentColor;
    mask: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 32 32'%3E%3Cpath d='M16 26.3287C15.175 27.3482 13.9136 28 12.5 28H4C2.89543 28 2 27.1046 2 26V6C2 4.89543 2.89543 4 4 4H12.5C13.9136 4 15.175 4.65183 16 5.67134C16.825 4.65183 18.0864 4 19.5 4H28C29.1046 4 30 4.89543 30 6V26C30 27.1046 29.1046 28 28 28H19.5C18.0864 28 16.825 27.3482 16 26.3287ZM17 8.5V23.5C17 24.8807 18.1193 26 19.5 26H28V6L19.5 6C18.1193 6 17 7.11929 17 8.5ZM15 8.5C15 7.11929 13.8807 6 12.5 6H4V26H12.5C13.8807 26 15 24.8807 15 23.5V8.5Z'/%3E%3C/svg%3E") no-repeat center;
    -webkit-mask: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 32 32'%3E%3Cpath d='M16 26.3287C15.175 27.3482 13.9136 28 12.5 28H4C2.89543 28 2 27.1046 2 26V6C2 4.89543 2.89543 4 4 4H12.5C13.9136 4 15.175 4.65183 16 5.67134C16.825 4.65183 18.0864 4 19.5 4H28C29.1046 4 30 4.89543 30 6V26C30 27.1046 29.1046 28 28 28H19.5C18.0864 28 16.825 27.3482 16 26.3287ZM17 8.5V23.5C17 24.8807 18.1193 26 19.5 26H28V6L19.5 6C18.1193 6 17 7.11929 17 8.5ZM15 8.5C15 7.11929 13.8807 6 12.5 6H4V26H12.5C13.8807 26 15 24.8807 15 23.5V8.5Z'/%3E%3C/svg%3E") no-repeat center;
    transform: translateY(1px);
}

/* Docs Page */
.docs-container {
    display: flex;
    flex-direction: row;
    justify-content: center;
    width: 100%;
    max-width: 1200px;
    margin: 0 auto auto;
    box-sizing: border-box;
}

.docs-content {
    flex: 1;
    min-width: 0;
    max-width: 800px;
    margin: 0 auto auto;
}

.docs-toc-container {
    width: 250px;
    margin-left: 2rem;
    position: sticky;
    top: 2rem;
    height: fit-content;
    display: none;
}

@media (min-width: 1024px) {
    .docs-toc-container {
        display: block;
    }
}

.docs-toc {
    font-size: 0.9rem;
}

.docs-toc-title {
    font-weight: bold;
    margin-bottom: 0.5rem;
    text-transform: uppercase;
    color: var(--neutral-foreground-hint);
}

.docs-toc ul {
    list-style: none;
    padding: 0;
    margin: 0;
    border-left: 1px solid var(--neutral-stroke-layer-rest);
}

.docs-toc li {
    margin-bottom: 0.25rem;
}

.docs-toc a {
    text-decoration: none;
    color: var(--neutral-foreground-rest);
    display: block;
    padding: 0.25rem 1rem;
    border-left: 2px solid transparent;
    margin-left: -1px;
    white-space: nowrap;
    overflow: hidden;
    text-overflow: ellipsis;
}

.docs-toc a:hover {
    color: var(--accent-fill-rest);
}

.docs-toc li.toc-level-1 {
    font-weight: bold;
    margin-bottom: 0.5rem;
}

.docs-toc li.toc-level-3 {
    padding-left: 1rem;
}

/* ==========================================================================
   UTILITIES
   ========================================================================== */

.desktop-only { display: inherit; }
.desktop-only-spacer { display: inherit; flex: 1; }
.mobile-only { display: none; }

.centered {
    position: fixed;
    left: 50vw;
    top: 50vh;
    transform: translate(-50%, -50%);
    max-width: 50vw;
    max-height: 50vh;
}

.navtab-label {
    gap: 4px;
    margin-right: 16px;
    position: relative; /* Needed for ::after absolute positioning */
}

.navtab-label::after {
    content: '';
    font-weight: 600;
    height: 0;
    visibility: hidden;
    position: absolute;
    left: 0;
    pointer-events: none;
}

.navmenu-icon {
    display: none;
}

/* ==========================================================================
   MEDIA QUERIES (Grouped Responsive Overrides)
   ========================================================================== */

@media (max-width: 600px) {
    /* Layout Overrides */
    .desktop-only { display: none !important; }
    .desktop-only-spacer { display: none !important; }
    .mobile-only { display: inherit !important; }

    .header-gutters {
        margin: 0.5rem 3rem 0.5rem 1.5rem !important;
    }

    [dir="rtl"] .header-gutters {
        margin: 0.5rem 1.5rem 0.5rem 3rem !important;
    }

    .top-navigation {
        display: block !important;
        width: 100%;
        height: 0 !important;
        min-height: 0 !important;
        max-height: 0 !important;
        margin: 0 !important;
        padding: 0 !important;
        line-height: 0 !important;
        border: 0 !important;
        border-bottom: 1px solid #d6d5d5 !important;
        overflow: visible !important;
        flex: 0 0 auto !important;
    }

    .top-navigation * {
        display: none !important;
    }

    .main {
        flex-direction: column !important;
        row-gap: 0 !important;
    }

    .stack-mobile-vertical {
        flex-direction: column !important;
    }

    .organization-sidebar {
        width: 100% !important;
        min-width: 0 !important;
        flex: 1 1 auto !important;
    }

    .content-max-width-800,
    .content-max-width-1000,
    .content-max-width-1200,
    .content-full-width {
        padding: 1rem;
    }

    /* Navigation & Menus */
    nav.sitenav {
        width: 100%;
        height: 100%;
    }

    #main-menu {
        width: 100% !important;
    }

    #main-menu > div:first-child:is(.expander) {
        display: none;
    }

    .navmenu {
        width: 100%;
    }

    #navmenu-toggle {
        appearance: none;
    }

    #navmenu-toggle ~ nav {
        display: none;
    }

    #navmenu-toggle:checked ~ nav {
        display: block;
    }

    .navmenu-icon {
        cursor: pointer;
        z-index: 10;
        display: block;
        position: absolute;
        top: 15px;
        left: unset;
        right: 20px;
        width: 20px;
        height: 20px;
        border: none;
    }

    [dir="rtl"] .navmenu-icon {
        left: 20px;
        right: unset;
    }

    /* Form & Data Grid Overrides */
    fluent-data-grid, .entity-grid {
        overflow-x: auto !important;
        display: block;
    }

    .entity-grid .actions-column {
        min-width: 100px;
    }

    .entity-grid fluent-data-grid-cell {
        min-width: 120px;
        white-space: normal !important;
        height: auto !important;
        padding: 8px !important;
    }

    .entity-grid .actions-column fluent-data-grid-cell {
        min-width: 80px;
    }

    .entity-grid fluent-data-grid-header-cell div.col-resizer,
    .entity-grid fluent-data-grid-header-cell .col-resizer,
    .entity-grid .col-resizer,
    .entity-grid [part="resizer"],
    .entity-grid .fluent-data-grid-header-cell [part="resizer"],
    .entity-grid fluent-data-grid-header-cell::part(resizer) {
        display: none !important;
        width: 0 !important;
        height: 0 !important;
        min-width: 0 !important;
        max-width: 0 !important;
        visibility: hidden !important;
        opacity: 0 !important;
        pointer-events: none !important;
        position: absolute !important;
        left: -9999px !important;
    }

    .entity-grid .desktop-only {
        display: none !important;
    }

    .form-layout-mobile-full-width {
        width: 100% !important;
        max-width: 100% !important;
    }

    .form-row {
        flex-direction: column !important;
        align-items: flex-start !important;
    }

    .form-row .fluent-text-field,
    .form-row .fluent-select,
    .form-row .fluent-number-field,
    .form-row .fluent-text-area,
    .form-row fluent-text-field,
    .form-row fluent-select,
    .form-row fluent-number-field,
    .form-row fluent-text-area {
        width: 100% !important;
        max-width: 100% !important;
    }

    /* Component Overrides */
    .fluent-card {
        height: auto !important;
        min-height: fit-content !important;
    }

    fluent-dialog::part(control) {
        width: 100% !important;
        max-width: 100vw !important;
    }

    .truncate-mobile {
        white-space: nowrap !important;
        overflow: hidden !important;
        text-overflow: ellipsis !important;
        display: block !important;
    }

    .header-object-info {
        margin-left: 1rem;
    }

    .object-info-item {
        margin-top: -0.5rem;
    }

    .root-section {
        padding: 0;
    }

    .root-section-title {
        font-size: 1.5rem;
        margin-bottom: 2rem;
    }
}
