:root {
    --sn-bg: #f6f7fb;
    --sn-panel: rgba(255, 255, 255, 0.86);
    --sn-panel-solid: #ffffff;
    --sn-border: rgba(148, 163, 184, 0.28);
    --sn-text: #0f172a;
    --sn-muted: rgba(15, 23, 42, 0.62);
    --sn-primary: #2563eb;
    --sn-primary-2: #0ea5e9;
    --sn-shadow: 0 16px 50px rgba(15, 23, 42, 0.12);
    /* Public pages should feel crisp; keep rounding minimal. */
    --sn-radius: 12px;
    --sn-radius-sm: 8px;
}

body {
    margin: 0;
    font-family: ui-sans-serif, system-ui, -apple-system, "Segoe UI", Roboto, Arial, "Noto Sans", "Liberation Sans", sans-serif;
    font-size: 15px;
    font-weight: 500;
    letter-spacing: 0.01em;
    min-height: 100vh;
    display: flex;
    flex-direction: column;
    color: var(--sn-text);
    background:
        radial-gradient(1000px 600px at 15% 10%, rgba(37, 99, 235, 0.16), transparent 55%),
        radial-gradient(900px 650px at 85% 80%, rgba(14, 165, 233, 0.12), transparent 60%),
        linear-gradient(180deg, #ffffff 0%, var(--sn-bg) 60%, #ffffff 120%);
    -webkit-font-smoothing: antialiased;
    text-rendering: optimizeLegibility;
}

.sn-container {
    width: min(1100px, calc(100% - 40px));
    margin: 0 auto;
}

.top-ribbon {
    width: calc(100% - 40px);
    background: linear-gradient(135deg, #0f172a, #1e293b, #0b1220);
    color: #fff;
    padding: 15px 20px;
    font-size: 17px;
    font-weight: 700;
    letter-spacing: 0.08em;
    position: fixed;
    top: 0;
    left: 0;
}

.container {
    width: min(920px, calc(100% - 40px));
    margin: 110px auto 30px;
    background: var(--sn-panel);
    border: 1px solid var(--sn-border);
    border-radius: var(--sn-radius);
    box-shadow: var(--sn-shadow);
    backdrop-filter: blur(10px);
    padding: 28px;
}

.title {
    margin: 0 0 8px;
    color: var(--sn-text);
    font-family: ui-sans-serif, system-ui, -apple-system, "Segoe UI", Roboto, Arial, sans-serif;
    font-size: clamp(1.8rem, 2.4vw, 2.15rem);
    line-height: 1.15;
    letter-spacing: -0.01em;
}

.subtitle {
    margin: 0 0 20px;
    color: var(--sn-muted);
    font-size: 0.96rem;
    font-weight: 500;
    line-height: 1.6;
}

.content h2 {
    margin: 24px 0 8px;
    color: #1f2937;
    font-family: "Manrope", "Inter", "Segoe UI", sans-serif;
    font-size: 1.25rem;
    font-weight: 700;
    letter-spacing: -0.01em;
}

.content p,
.content li {
    color: #374151;
    line-height: 1.7;
}

.content ul {
    margin-top: 8px;
}

.sn-careers-roles {
    margin-top: 18px;
}

.sn-careers-grid {
    margin-top: 12px;
    display: grid;
    grid-template-columns: repeat(2, minmax(0, 1fr));
    gap: 12px;
}

.sn-career-card {
    appearance: none;
    border: 1px solid var(--sn-border);
    background: rgba(255, 255, 255, 0.86);
    border-radius: 8px;
    padding: 14px;
    text-align: left;
    cursor: pointer;
    transition: transform 140ms ease, border-color 140ms ease, box-shadow 140ms ease, background 140ms ease;
    box-shadow: 0 10px 30px rgba(15, 23, 42, 0.08);
    position: relative;
    overflow: hidden;
}

.sn-career-card::after {
    content: "";
    position: absolute;
    inset: 0;
    background:
        radial-gradient(480px 220px at 30% -20%, rgba(37, 99, 235, 0.10), transparent 55%),
        radial-gradient(420px 240px at 120% 20%, rgba(14, 165, 233, 0.08), transparent 60%);
    opacity: 0;
    transition: opacity 160ms ease;
    pointer-events: none;
}

.sn-career-card:hover {
    transform: translateY(-2px);
    border-color: rgba(37, 99, 235, 0.35);
    box-shadow: 0 18px 52px rgba(15, 23, 42, 0.12);
}

.sn-career-card:hover::after { opacity: 1; }

.sn-career-card.is-opening {
    transform: translateY(-2px) scale(0.99);
}

.sn-career-card-title {
    font-size: 15px;
    font-weight: 800;
    letter-spacing: -0.01em;
    color: #0f172a;
}

.sn-career-card-sub {
    margin-top: 6px;
    font-size: 12.5px;
    color: rgba(15, 23, 42, 0.68);
    line-height: 1.5;
}

.sn-career-card-cta {
    margin-top: 12px;
    display: inline-flex;
    align-items: center;
    gap: 8px;
    font-size: 12px;
    font-weight: 800;
    color: #1d4ed8;
    text-transform: uppercase;
    letter-spacing: 0.06em;
}

.sn-career-modal.sn-modal {
    background: rgba(15, 23, 42, 0.54);
    backdrop-filter: blur(6px);
}

.sn-career-modal-content {
    width: min(860px, 100%);
    background: var(--sn-panel-solid);
    border: 1px solid var(--sn-border);
    border-radius: var(--sn-radius);
    box-shadow: 0 40px 140px rgba(0, 0, 0, 0.26);
    padding: 16px;
    position: relative;
}

.sn-career-modal-close {
    position: absolute;
    top: 10px;
    right: 12px;
    width: 38px;
    height: 38px;
    border-radius: var(--sn-radius-sm);
    border: 1px solid rgba(148, 163, 184, 0.34);
    background: rgba(255, 255, 255, 0.86);
    cursor: pointer;
    font-size: 22px;
    font-weight: 900;
    color: rgba(15, 23, 42, 0.70);
}

.sn-career-modal-close:hover {
    color: rgba(15, 23, 42, 0.90);
    background: #ffffff;
}

.sn-career-flip {
    perspective: 1200px;
    margin-top: 6px;
}

.sn-career-flip-inner {
    position: relative;
    transform-style: preserve-3d;
    transform: rotateY(0deg);
    transition: transform 520ms cubic-bezier(0.2, 0.8, 0.2, 1);
    min-height: 360px;
    will-change: transform;
}

.sn-career-flip-inner.is-flipped {
    transform: rotateY(180deg);
}

.sn-career-face {
    backface-visibility: hidden;
    -webkit-backface-visibility: hidden;
    border-radius: var(--sn-radius);
    border: 1px solid rgba(148, 163, 184, 0.28);
    background: rgba(255, 255, 255, 0.92);
    padding: 18px;
    position: absolute;
    inset: 0;
    overflow: auto;
    transform: translateZ(0);
}

.sn-career-front {
    transform: rotateY(0deg) translateZ(0);
}

.sn-career-back {
    transform: rotateY(180deg);
}

@media (prefers-reduced-motion: reduce) {
    .sn-career-card,
    .sn-career-card::after,
    .sn-career-flip-inner {
        transition: none !important;
    }
}

.sn-career-modal-title {
    margin: 0 0 10px;
    font-size: 20px;
    font-weight: 900;
    letter-spacing: -0.02em;
}

.sn-career-modal-summary {
    margin: 0 0 16px;
    color: rgba(15, 23, 42, 0.70);
    line-height: 1.6;
}

.sn-career-modal-details {
    margin: 0;
    white-space: pre-wrap;
    word-break: break-word;
    color: rgba(15, 23, 42, 0.82);
    font-family: ui-sans-serif, system-ui, -apple-system, "Segoe UI", Roboto, Arial, sans-serif;
    line-height: 1.6;
    font-size: 13.5px;
}

.sn-career-modal-actions {
    margin-top: 18px;
    display: flex;
    flex-wrap: wrap;
    gap: 10px;
}

.dev-page {
    width: min(1140px, calc(100% - 40px));
}

.dev-header {
    margin-bottom: 18px;
}

.dev-actions-rail {
    margin-top: 12px;
    display: flex;
    flex-wrap: wrap;
    gap: 10px;
}

.dev-layout {
    display: grid;
    grid-template-columns: 240px minmax(0, 1fr);
    gap: 20px;
    align-items: start;
}

.dev-sidebar {
    position: sticky;
    top: 96px;
    background: rgba(255, 255, 255, 0.72);
    border: 1px solid var(--sn-border);
    border-radius: var(--sn-radius);
    padding: 12px;
}

.dev-sidebar-title {
    font-size: 12px;
    font-weight: 700;
    text-transform: uppercase;
    letter-spacing: 0.08em;
    color: #1f2937;
    margin-bottom: 8px;
}

.dev-nav {
    display: flex;
    flex-direction: column;
    gap: 6px;
}

.dev-nav a,
.dev-nav button {
    display: block;
    text-decoration: none;
    color: #1f2937;
    font-size: 13px;
    font-weight: 600;
    border-radius: var(--sn-radius-sm);
    padding: 8px 10px;
    border: 1px solid rgba(148, 163, 184, 0.34);
    background: rgba(255, 255, 255, 0.86);
    text-align: left;
    cursor: pointer;
}

.dev-nav a:hover,
.dev-nav button:hover {
    background: #eef2ff;
}

.dev-nav a.is-active,
.dev-nav button.is-active {
    background: linear-gradient(135deg, var(--sn-primary), var(--sn-primary-2));
    color: #fff;
    border-color: rgba(37, 99, 235, 0.4);
    font-weight: 700;
}

.dev-nav button {
    font: inherit;
    line-height: inherit;
}

.dev-content {
    margin: 0;
}

.dev-section {
    padding: 14px;
    border: 1px solid var(--sn-border);
    border-radius: var(--sn-radius);
    background: rgba(255, 255, 255, 0.86);
    margin-bottom: 14px;
}

.dev-view {
    display: none;
}

.dev-view.is-active {
    display: block;
}

.dev-section h2 {
    margin-top: 0;
}

.dev-section h3 {
    margin: 0 0 8px;
    color: #1f2937;
    font-family: "Manrope", "Inter", "Segoe UI", sans-serif;
    font-size: 1rem;
    font-weight: 700;
}

.dev-section ol,
.dev-section ul {
    margin: 8px 0 0;
    padding-left: 18px;
}

.dev-grid {
    margin-top: 10px;
    display: grid;
    grid-template-columns: repeat(2, minmax(0, 1fr));
    gap: 10px;
}

.dev-card {
    border: 1px solid var(--sn-border);
    border-radius: var(--sn-radius);
    background: rgba(255, 255, 255, 0.75);
    padding: 12px;
}

.square-grid .dev-card {
    min-height: 170px;
    display: flex;
    flex-direction: column;
    justify-content: flex-start;
}

.dev-card p {
    margin: 0;
}

.card-head {
    display: flex;
    justify-content: space-between;
    align-items: center;
    gap: 8px;
    margin-bottom: 8px;
}

.badge {
    display: inline-flex;
    align-items: center;
    border-radius: 0;
    padding: 3px 8px;
    font-size: 11px;
    font-weight: 700;
    line-height: 1;
}

.badge.live {
    background: #dcfce7;
    color: #166534;
}

.badge.beta {
    background: #fef3c7;
    color: #92400e;
}

.chip-row {
    display: flex;
    flex-wrap: wrap;
    gap: 6px;
    margin-top: 10px;
}

.chip {
    display: inline-flex;
    align-items: center;
    border: 1px solid #d1d5db;
    border-radius: 0;
    padding: 3px 8px;
    font-size: 11px;
    font-weight: 600;
    color: #374151;
    background: #fff;
}

.dev-tools-tabs {
    margin-top: 10px;
    display: flex;
    flex-wrap: wrap;
    gap: 8px;
}

.dev-tab {
    border: 1px solid #d1d5db;
    background: #fff;
    color: #1f2937;
    border-radius: 0;
    padding: 7px 12px;
    cursor: pointer;
    font-size: 12px;
    font-weight: 700;
    letter-spacing: 0.02em;
}

.dev-tab.is-active {
    background: #1d4ed8;
    border-color: #1d4ed8;
    color: #fff;
}

.dev-tab-panel {
    margin-top: 12px;
}

.example-block {
    margin-top: 10px;
    border: 1px solid #e5e7eb;
    border-radius: 0;
    background: #fff;
    overflow: hidden;
}

.example-block summary {
    cursor: pointer;
    padding: 10px 12px;
    font-weight: 600;
    font-size: 13px;
    color: #1f2937;
    background: #f8fafc;
}

.example-block pre {
    margin: 0;
    padding: 12px;
    background: #0f172a;
    color: #e5e7eb;
    font-size: 11px;
    line-height: 1.6;
    overflow: auto;
}

.copy-btn {
    margin: 10px 12px 12px;
    border: 1px solid #cbd5e1;
    background: #fff;
    color: #1f2937;
    border-radius: 0;
    padding: 6px 10px;
    font-size: 11px;
    font-weight: 600;
    cursor: pointer;
}

.copy-btn:hover {
    background: #eff6ff;
    border-color: #93c5fd;
}

.actions {
    margin-top: 24px;
    display: flex;
    gap: 12px;
    flex-wrap: wrap;
}

.btn {
    background: linear-gradient(135deg, var(--sn-primary), var(--sn-primary-2));
    color: #fff;
    text-decoration: none;
    border-radius: var(--sn-radius-sm);
    padding: 10px 14px;
    font-size: 13px;
    font-weight: 700;
    letter-spacing: 0.02em;
}

.btn.secondary {
    background: rgba(255, 255, 255, 0.86);
    color: var(--sn-text);
    border: 1px solid rgba(148, 163, 184, 0.34);
}

.sn-footer {
    margin-top: auto;
    width: calc(100% - 40px);
    padding: 24px 20px;
    text-align: center;
    color: var(--sn-muted);
    font-size: 13px;
    border-top: 1px solid rgba(148, 163, 184, 0.22);
    background:
        radial-gradient(900px 360px at 50% 0%, rgba(37, 99, 235, 0.06), transparent 70%),
        transparent;
}

.sn-footer-links {
    margin-bottom: 12px;
    display: flex;
    flex-wrap: wrap;
    justify-content: center;
    gap: 6px 12px;
}

.sn-footer-languages {
    margin-bottom: 8px;
    display: flex;
    flex-wrap: wrap;
    justify-content: center;
    gap: 6px 8px;
}

.sn-footer-languages a {
    cursor: pointer;
    padding: 4px 8px;
    border-radius: var(--sn-radius-sm);
    transition: background 140ms ease, color 140ms ease;
}

.sn-footer-languages a:hover {
    background: rgba(15, 23, 42, 0.06);
}

.sn-footer-languages a.more {
    color: rgba(15, 23, 42, 0.82);
}

.sn-footer a {
    color: var(--sn-muted);
    text-decoration: none;
}

.sn-footer a:hover {
    text-decoration: underline;
}

.sn-footer-copy {
    margin-top: 8px;
    font-size: 12px;
    color: rgba(15, 23, 42, 0.56);
}

/* Language modal (shared with the public landing page) */
.sn-modal {
    position: fixed;
    inset: 0;
    background: rgba(15, 23, 42, 0.48);
    display: grid;
    place-items: center;
    z-index: 9999;
    padding: 18px;
}

.sn-modal.hide {
    /* Force-hide even when other bundles define `.sn-modal { display: ... !important; }`. */
    display: none !important;
    opacity: 0 !important;
    pointer-events: none !important;
}

.sn-modal-content {
    width: min(980px, 100%);
    background: var(--sn-panel-solid);
    border: 1px solid var(--sn-border);
    border-radius: var(--sn-radius);
    overflow: hidden;
    box-shadow: 0 30px 120px rgba(0, 0, 0, 0.25);
    display: grid;
    grid-template-columns: 280px 1fr;
    position: relative;
}

.sn-modal-regions {
    padding: 18px;
    background: linear-gradient(180deg, rgba(37, 99, 235, 0.10), rgba(255, 255, 255, 0));
    border-right: 1px solid var(--sn-border);
}

.sn-modal-regions h3,
.sn-modal-languages h3 {
    margin: 0 0 10px;
    font-size: 13px;
}

.sn-modal-regions ul {
    list-style: none;
    padding: 0;
    margin: 0;
    display: grid;
    gap: 8px;
}

.sn-modal-regions li {
    padding: 10px 12px;
    border-radius: var(--sn-radius-sm);
    cursor: pointer;
    font-weight: 700;
    color: rgba(15, 23, 42, 0.78);
    border: 1px solid rgba(148, 163, 184, 0.26);
    background: rgba(255, 255, 255, 0.86);
}

.sn-modal-regions li.active,
.sn-modal-regions li:hover {
    border-color: rgba(37, 99, 235, 0.35);
    background: rgba(37, 99, 235, 0.10);
    color: rgba(15, 23, 42, 0.90);
}

.sn-modal-languages {
    padding: 18px;
}

#sn-language-list {
    display: grid;
    grid-template-columns: repeat(2, minmax(0, 1fr));
    gap: 10px;
}

#sn-language-list a {
    display: block;
    padding: 10px 12px;
    border-radius: 12px;
    border: 1px solid rgba(148, 163, 184, 0.26);
    background: rgba(255, 255, 255, 0.86);
    color: rgba(15, 23, 42, 0.82);
    text-decoration: none;
    font-weight: 700;
}

#sn-language-list a:hover {
    border-color: rgba(37, 99, 235, 0.35);
    background: rgba(37, 99, 235, 0.08);
}

.sn-modal-close {
    position: absolute;
    top: 10px;
    right: 12px;
    width: 36px;
    height: 36px;
    border-radius: 12px;
    display: grid;
    place-items: center;
    font-size: 22px;
    cursor: pointer;
    color: rgba(15, 23, 42, 0.75);
}

.sn-modal-close:hover {
    background: rgba(15, 23, 42, 0.06);
}

@media (max-width: 480px) {
    .container {
        width: calc(100% - 24px);
        margin-top: 88px;
        padding: 20px;
    }
}

@media (max-width: 980px) {
    .dev-layout {
        grid-template-columns: 1fr;
    }

    .dev-sidebar {
        position: static;
    }

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

    .dev-actions-rail {
        width: 100%;
    }

    .dev-actions-rail .btn {
        flex: 1 1 auto;
        text-align: center;
    }

    .sn-modal-content {
        grid-template-columns: 1fr;
    }

    .sn-careers-grid {
        grid-template-columns: 1fr;
    }
}
