/* Public website. Uses the design tokens of site.css, with deeper and lighter shades for large areas. */
.site {
    --primary-deep: #163d78;
    --primary-glow: #8cc8f0;
    --site-text: #4a5470;
    --site-tint: #f2f8fe;
    --site-footer: #1b2440;
    --site-radius: 18px;
    --site-shadow: 0 18px 45px rgba(22, 61, 120, .12);
    --site-header-h: 76px;
    --site-bg: #fff;
    --site-surface: #fff;
    --site-header-bg: rgba(255, 255, 255, .94);
    font-size: 16px;
    line-height: 1.75;
    color: var(--site-text);
    background: var(--site-bg);
    overflow-x: clip;
}
:root[data-theme="dark"] .site {
    --primary-deep: #9ccff3;
    --site-text: #b6c1da;
    --site-tint: #101a31;
    --site-footer: #070e1e;
    --site-shadow: 0 18px 45px rgba(0, 0, 0, .4);
    --site-bg: #0b1428;
    --site-surface: #131e36;
    --site-header-bg: rgba(11, 20, 40, .94);
}
html:has(.site) { scroll-behavior: smooth; scroll-padding-top: 84px; }
.site h1, .site h2, .site h3, .site h4 { color: var(--ink); line-height: 1.35; margin: 0 0 .6rem; font-weight: 700; }
.site img { max-width: 100%; display: block; }
.site-wrap { width: min(1200px, 100% - 2.5rem); margin-inline: auto; }
.site-wrap.narrow { width: min(860px, 100% - 2.5rem); }

/* ---------- Buttons ---------- */
.site-btn {
    display: inline-flex; align-items: center; justify-content: center; gap: .4rem; white-space: nowrap;
    padding: .7rem 1.4rem; border-radius: 999px; font-weight: 600; font-size: .98rem;
    background: linear-gradient(135deg, #2f7bd0, #1d4f96); color: #fff;
    border: 2px solid transparent; box-shadow: 0 8px 20px rgba(47, 123, 208, .28);
    transition: transform .2s ease, box-shadow .2s ease, background .2s ease;
}
.site-btn:hover { color: #fff; text-decoration: none; transform: translateY(-2px); box-shadow: 0 12px 26px rgba(47, 123, 208, .36); }
.site-btn.sm { padding: .42rem 1.05rem; font-size: .9rem; }
.site-btn.lg { padding: .85rem 1.9rem; font-size: 1.05rem; }
.site-btn.light, .site-btn.light:hover { background: #fff; color: #1d4f96; box-shadow: 0 10px 25px rgba(0, 0, 0, .12); }
.site-btn.outline-light, .site-btn.outline-light:hover { background: transparent; border-color: rgba(255, 255, 255, .75); color: #fff; box-shadow: none; }
.site-btn.outline-light:hover { background: rgba(255, 255, 255, .12); }

.site-eyebrow { display: inline-block; font-size: .85rem; font-weight: 700; color: var(--primary-dark); background: var(--primary-soft); padding: .25rem .85rem; border-radius: 999px; margin-bottom: .9rem; }
.site-eyebrow.light { background: rgba(255, 255, 255, .18); color: #fff; backdrop-filter: blur(4px); }

/* ---------- Header ---------- */
.site-header { position: fixed; inset-inline: 0; top: 0; z-index: 1030; height: var(--site-header-h); transition: background .3s ease, box-shadow .3s ease; }
.site-header.scrolled { background: var(--site-header-bg); backdrop-filter: blur(10px); box-shadow: 0 6px 24px rgba(44, 54, 84, .07); }
.site-header-row { height: 100%; display: flex; align-items: center; gap: 1rem; }
.site-brand { display: inline-flex; align-items: center; gap: .65rem; color: var(--ink); flex-shrink: 0; }
.site-brand:hover { color: var(--ink); text-decoration: none; }
.site-brand-mark { display: inline-block; flex-shrink: 0; width: 50px; height: 40px; background: url("/brand/logo-mark.svg") center / contain no-repeat; }
.site-brand-text { display: flex; flex-direction: column; line-height: 1.25; }
.site-brand-text strong { font-size: 1.08rem; }
.site-brand-text small { font-size: .74rem; color: var(--muted); white-space: nowrap; }
.site-header:not(.scrolled) .site-brand { color: #fff; }
.site-header:not(.scrolled) .site-brand-mark { filter: brightness(1.5) drop-shadow(0 2px 6px rgba(0, 0, 0, .25)); }
.site-header:not(.scrolled) .site-brand-text small { color: rgba(255, 255, 255, .8); }

.site-nav { display: flex; align-items: center; gap: .1rem; flex: 1; justify-content: center; white-space: nowrap; }
.site-nav a { padding: .4rem .7rem; border-radius: 999px; color: var(--ink); font-weight: 500; font-size: .94rem; transition: color .2s, background .2s; }
.site-nav a:hover { background: var(--primary-softer); color: var(--primary-dark); text-decoration: none; }
.site-nav a.active { color: var(--primary-dark); background: var(--primary-soft); }
.site-header:not(.scrolled) .site-nav a { color: #fff; }
.site-header:not(.scrolled) .site-nav a:hover, .site-header:not(.scrolled) .site-nav a.active { background: rgba(255, 255, 255, .16); color: #fff; }
.site-tools { display: flex; align-items: center; gap: .45rem; flex-shrink: 0; }
.site-header:not(.scrolled) .site-tools .site-btn { background: #fff; color: #1d4f96; }
.site-header:not(.scrolled) .lang-menu > summary, .site-header:not(.scrolled) .theme-toggle { background: rgba(255, 255, 255, .12); color: #fff; border-color: rgba(255, 255, 255, .35); }
.site-menu-toggle { position: absolute; opacity: 0; pointer-events: none; width: 1px; height: 1px; }
.site-burger { display: none; width: 42px; height: 42px; border-radius: 12px; cursor: pointer; place-content: center; gap: 5px; background: var(--primary-soft); margin: 0; order: 3; }
.site-burger span { display: block; width: 20px; height: 2px; border-radius: 2px; background: var(--primary-dark); }

/* ---------- Hero ---------- */
.site-hero {
    position: relative; min-height: 100vh; min-height: 100svh; display: flex; align-items: center; color: #fff; isolation: isolate; overflow: hidden;
    padding: calc(var(--site-header-h) + 2.5rem) 0 4rem;
    background: linear-gradient(120deg, #163d78 0%, #2f7bd0 58%, #7db9ea 100%);
}
:root[data-theme="dark"] .site-hero { background: linear-gradient(120deg, #0b1428 0%, #13366a 60%, #1d4f96 100%); }
.site-hero::before { content: ""; position: absolute; inset: 0; z-index: -1; opacity: .1; background-image: radial-gradient(circle at 1px 1px, #fff 1px, transparent 0); background-size: 24px 24px; }
.site-hero-shape { position: absolute; border-radius: 50%; z-index: -1; filter: blur(2px); }
.site-hero-shape.a { width: 520px; height: 520px; inset-inline-end: -160px; top: -140px; background: radial-gradient(circle, rgba(255, 255, 255, .22), transparent 70%); }
.site-hero-shape.b { width: 380px; height: 380px; inset-inline-start: -120px; bottom: -160px; background: radial-gradient(circle, rgba(242, 248, 254, .25), transparent 70%); }
.site-hero-grid { display: grid; grid-template-columns: minmax(0, 1fr) minmax(0, 1.08fr); gap: clamp(2rem, 4vw, 3.5rem); align-items: center; }
.site-hero h1 { color: #fff; font-size: clamp(2.1rem, 4.2vw, 3.3rem); margin-bottom: 1rem; }
.site-hero .lead { font-size: clamp(1.02rem, 1.5vw, 1.18rem); color: rgba(255, 255, 255, .92); margin: 0 0 1.8rem; }
.site-actions { display: flex; flex-wrap: wrap; gap: .8rem; }
.site-hero-chips { list-style: none; padding: 0; margin: 2rem 0 0; display: flex; flex-wrap: wrap; gap: .6rem; }
.site-hero-chips li { display: inline-flex; align-items: center; gap: .45rem; padding: .4rem .95rem; border-radius: 999px; font-size: .9rem; background: rgba(255, 255, 255, .14); border: 1px solid rgba(255, 255, 255, .28); backdrop-filter: blur(6px); }
.site-hero-chips .nav-icon { width: 17px; height: 17px; }
.site-frame { border-radius: 14px; overflow: hidden; background: #fff; box-shadow: 0 34px 70px rgba(8, 24, 56, .42); border: 1px solid rgba(255, 255, 255, .3); }
.site-frame img { width: 100%; }
.site-frame-bar { display: flex; gap: 6px; padding: 9px 12px; background: #e7edf6; direction: ltr; }
.site-frame-bar i { width: 10px; height: 10px; border-radius: 50%; background: #b6c3d6; }

/* ---------- Sections ---------- */
.site-section { padding: clamp(4rem, 8vw, 6rem) 0; }
.site-section.tinted { background: linear-gradient(180deg, var(--site-tint), var(--site-bg)); }
.site-head { text-align: center; max-width: 680px; margin: 0 auto 3rem; }
.site-head h2 { font-size: clamp(1.7rem, 3.2vw, 2.4rem); position: relative; padding-bottom: .9rem; }
.site-head h2::after { content: ""; position: absolute; bottom: 0; left: 50%; translate: -50% 0; width: 64px; height: 4px; border-radius: 4px; background: linear-gradient(90deg, #8cc8f0, #1d4f96); }
.site-head p { color: var(--muted); font-size: 1.05rem; margin: .4rem 0 0; }

.site-split { display: grid; grid-template-columns: 1fr 1fr; gap: clamp(2rem, 5vw, 4.5rem); align-items: center; }
.site-split-text h2 { font-size: clamp(1.6rem, 3vw, 2.2rem); }
.site-split-media { position: relative; }
.site-split-media::before { content: ""; position: absolute; inset: 1.2rem -1.2rem -1.2rem 1.2rem; border-radius: var(--site-radius); background: linear-gradient(135deg, var(--primary-soft), #8cc8f0); z-index: 0; }
.site-split-media img { position: relative; z-index: 1; width: 100%; aspect-ratio: 4 / 3; object-fit: cover; object-position: top; border-radius: var(--site-radius); box-shadow: var(--site-shadow); border: 1px solid var(--line); }
.site-checks { list-style: none; padding: 0; margin: 1.2rem 0 1.8rem; display: grid; grid-template-columns: 1fr 1fr; gap: .7rem 1.2rem; }
.site-checks li { display: flex; gap: .55rem; align-items: flex-start; font-weight: 500; color: var(--ink); line-height: 1.5; }
.site-checks li::before { content: "✓"; flex-shrink: 0; display: inline-grid; place-items: center; width: 24px; height: 24px; border-radius: 50%; font-size: .8rem; color: #fff; background: #2f7bd0; }

.site-cards { display: grid; grid-template-columns: repeat(auto-fill, minmax(290px, 1fr)); gap: 1.5rem; }
.site-card { position: relative; background: var(--site-surface); border: 1px solid var(--line); border-radius: var(--site-radius); padding: 1.9rem 1.7rem; overflow: hidden; transition: transform .3s ease, box-shadow .3s ease, border-color .3s ease, opacity .6s ease; }
.site-card::after { content: ""; position: absolute; inset-inline: 0; bottom: 0; height: 4px; transform: scaleX(0); background: linear-gradient(90deg, #8cc8f0, #1d4f96); transition: transform .35s ease; }
.site-card:hover { transform: translateY(-6px); box-shadow: var(--site-shadow); border-color: transparent; }
.site-card:hover::after { transform: scaleX(1); }
.site-card h3 { font-size: 1.18rem; }
.site-card p { margin: 0; }
.site-card-icon { display: grid; place-items: center; width: 60px; height: 60px; border-radius: 18px; margin-bottom: 1.1rem; color: var(--primary); background: linear-gradient(135deg, var(--primary-softer), var(--primary-soft)); transition: transform .3s ease; }
.site-card-icon .nav-icon { width: 28px; height: 28px; }
.site-card:hover .site-card-icon { transform: rotate(-6deg) scale(1.06); }

.site-stats { padding: clamp(3.5rem, 7vw, 5rem) 0; color: #fff; text-align: center; position: relative; overflow: hidden; background: linear-gradient(120deg, #163d78, #2f7bd0 55%, #8cc8f0); }
:root[data-theme="dark"] .site-stats { background: linear-gradient(120deg, #0b1428, #13366a 60%, #1d4f96); }
.site-stats::before { content: ""; position: absolute; inset: 0; opacity: .14; background-image: radial-gradient(circle at 1px 1px, #fff 1px, transparent 0); background-size: 22px 22px; }
.site-stats h2 { color: #fff; font-size: clamp(1.5rem, 2.8vw, 2rem); margin-bottom: 2.2rem; position: relative; }
.site-stats-grid { position: relative; display: grid; grid-template-columns: repeat(auto-fit, minmax(190px, 1fr)); gap: 1.5rem; }
.site-stat { padding: 1.4rem 1rem; border-radius: var(--site-radius); background: rgba(255, 255, 255, .1); border: 1px solid rgba(255, 255, 255, .2); }
.site-stat-value { font-size: clamp(2.2rem, 4vw, 3rem); font-weight: 700; line-height: 1.2; }
.site-stat-label { color: rgba(255, 255, 255, .9); }

.site-steps { list-style: none; padding: 0; margin: 0; display: grid; grid-template-columns: repeat(4, minmax(0, 1fr)); gap: 1.5rem; }
.site-steps li { position: relative; text-align: center; padding: 0 .6rem; }
.site-steps li:not(:last-child)::after { content: ""; position: absolute; top: 34px; inset-inline-start: calc(50% + 46px); width: calc(100% - 92px + 1.5rem); height: 2px; background: repeating-linear-gradient(90deg, #8cc8f0 0 8px, transparent 8px 14px); }
.site-step-num { display: inline-grid; place-items: center; width: 68px; height: 68px; border-radius: 50%; font-size: 1.5rem; font-weight: 700; margin-bottom: 1rem; color: #fff; background: linear-gradient(135deg, #8cc8f0, #1d4f96); box-shadow: 0 0 0 8px var(--primary-softer), 0 10px 22px rgba(47, 123, 208, .3); }
.site-steps h3 { font-size: 1.12rem; }
.site-steps p { margin: 0; color: var(--muted); }

.site-gallery { display: grid; grid-template-columns: repeat(4, 1fr); grid-auto-rows: 200px; grid-auto-flow: dense; gap: 1rem; }
.site-gallery-item { position: relative; border-radius: 14px; overflow: hidden; display: block; border: 1px solid var(--line); background: var(--site-surface); }
.site-gallery-item:nth-child(6n + 1) { grid-column: span 2; grid-row: span 2; }
.site-gallery-item:nth-child(6n + 4) { grid-column: span 2; grid-row: span 2; }
.site-gallery-item img { width: 100%; height: 100%; object-fit: cover; object-position: top; transition: transform .6s ease; }
.site-gallery-item span { position: absolute; inset-inline: 0; bottom: 0; padding: 2.2rem 1rem .75rem; color: #fff; font-weight: 600; background: linear-gradient(transparent, rgba(22, 48, 96, .88)); }
.site-gallery-item:hover img { transform: scale(1.05); }
.site-lightbox { border: 0; padding: 0; background: transparent; width: min(1200px, 94vw); max-width: none; max-height: 94vh; overflow: visible; }
.site-lightbox::backdrop { background: rgba(8, 16, 34, .86); backdrop-filter: blur(3px); }
.site-lightbox img { width: 100%; max-height: 78vh; object-fit: contain; border-radius: 12px; }
.site-lightbox p { color: #fff; text-align: center; margin: .6rem 0 0; }
.site-lightbox .btn-close { position: absolute; top: -2.5rem; inset-inline-end: 0; z-index: 1; padding: .6rem; border-radius: 50%; background-color: rgba(20, 32, 60, .85); opacity: 1; }

.site-code { border-radius: var(--site-radius); overflow: hidden; background: #111a30; box-shadow: var(--site-shadow); border: 1px solid #2a3a5e; text-align: left; }
.site-code .site-frame-bar { background: #1b2743; }
.site-code .site-frame-bar i { background: #43537a; }
.site-code pre { margin: 0; padding: 1.2rem 1.3rem; overflow-x: auto; font-size: .82rem; line-height: 1.65; color: #d4def2; }
.site-code b { color: #8cc8f0; }
.site-code em { color: #4fc283; font-style: normal; }

.site-faq { display: grid; gap: .8rem; }
.site-faq details { background: var(--site-surface); border: 1px solid var(--line); border-radius: 14px; padding: 0 1.25rem; transition: box-shadow .2s, opacity .6s ease, transform .6s ease; }
.site-faq details[open] { box-shadow: var(--site-shadow); }
.site-faq summary { display: flex; align-items: center; justify-content: space-between; gap: 1rem; padding: 1rem 0; list-style: none; cursor: pointer; font-weight: 600; color: var(--ink); }
.site-faq summary::-webkit-details-marker { display: none; }
.site-faq p { margin: 0 0 1.1rem; }

.site-cta-wrap { padding-top: 0; }
.site-cta { display: flex; flex-wrap: wrap; align-items: center; justify-content: space-between; gap: 1.5rem; padding: clamp(2rem, 4vw, 3rem); border-radius: 22px; color: #fff; background: linear-gradient(120deg, #163d78, #2f7bd0); box-shadow: var(--site-shadow); }
.site-cta h2 { color: #fff; font-size: clamp(1.4rem, 2.6vw, 1.9rem); }
.site-cta p { margin: 0; color: rgba(255, 255, 255, .9); }

.site-footer { background: var(--site-footer); color: rgba(255, 255, 255, .72); padding: 3.5rem 0 1.5rem; font-size: .95rem; }
.site-footer-grid { display: grid; grid-template-columns: 2fr 1fr 1fr; gap: 2.5rem; }
.site-footer h4 { color: #fff; font-size: 1rem; margin-bottom: .8rem; }
.site-footer a:not(.site-brand) { display: block; color: rgba(255, 255, 255, .72); padding: .15rem 0; }
.site-footer a:hover { color: #fff; }
.site-footer p { margin: .8rem 0 0; max-width: 430px; }
.site-brand.on-footer { color: #fff; }
.site-brand.on-footer .site-brand-text small { color: rgba(255, 255, 255, .65); }
.site-brand.on-footer .site-brand-mark { filter: brightness(1.5); }
.site-footer-bottom { margin-top: 2.2rem; padding-top: 1.2rem; border-top: 1px solid rgba(255, 255, 255, .12); text-align: center; font-size: .85rem; }

.site-to-top { position: fixed; bottom: 1.2rem; inset-inline-end: 1.2rem; z-index: 1020; display: grid; place-items: center; width: 44px; height: 44px; border: 0; border-radius: 50%; color: #fff; background: #2f7bd0; box-shadow: 0 10px 22px rgba(47, 123, 208, .35); opacity: 0; visibility: hidden; transition: opacity .25s, visibility .25s; cursor: pointer; }
.site-to-top.show { opacity: 1; visibility: visible; }
.site-to-top .nav-chev { width: 18px; height: 18px; transform: rotate(180deg); opacity: 1; }

/* Reveal on scroll, only when the script is there to bring things back. */
.site-js .reveal { opacity: 0; translate: 0 22px; transition: opacity .6s ease, translate .6s ease, transform .3s ease, box-shadow .3s ease, border-color .3s ease; }
.site-js .reveal.in { opacity: 1; translate: 0 0; }
@media (prefers-reduced-motion: reduce) {
    html:has(.site) { scroll-behavior: auto; }
    .site-js .reveal { opacity: 1; translate: none; transition: none; }
}

/* ---------- Smaller screens ---------- */
@media (max-width: 1160px) {
    .site-brand-text small { display: none; }
    .site-burger { display: grid; }
    .site-header:not(.scrolled) .site-burger { background: rgba(255, 255, 255, .16); }
    .site-header:not(.scrolled) .site-burger span { background: #fff; }
    .site-tools { margin-inline-start: auto; }
    .site-nav {
        position: fixed; top: var(--site-header-h); inset-inline: 0; flex-direction: column; align-items: stretch; gap: .2rem; padding: .8rem 1.25rem 1.2rem;
        background: var(--site-bg); box-shadow: 0 18px 30px rgba(13, 27, 56, .16); visibility: hidden; opacity: 0; transition: opacity .2s, visibility .2s;
    }
    .site-menu-toggle:checked ~ .site-nav { visibility: visible; opacity: 1; }
    .site-header .site-nav a, .site-header:not(.scrolled) .site-nav a { color: var(--ink); padding: .65rem .9rem; border-radius: 10px; }
    .site-header .site-nav a.active, .site-header:not(.scrolled) .site-nav a.active { background: var(--primary-soft); color: var(--primary-dark); }
    .site-header:not(.scrolled) .site-nav a:hover { background: var(--primary-softer); color: var(--primary-dark); }
}
@media (max-width: 960px) {
    .site-hero { min-height: 0; }
    .site-hero-grid, .site-split { grid-template-columns: minmax(0, 1fr); }
    .site-split-media::before { inset: .7rem -.5rem -.7rem .5rem; }
    .site-steps { grid-template-columns: repeat(2, minmax(0, 1fr)); row-gap: 2.5rem; }
    .site-steps li::after { display: none; }
    .site-gallery { grid-template-columns: repeat(2, 1fr); grid-auto-rows: 170px; }
    .site-footer-grid { grid-template-columns: 1fr 1fr; }
    .site-footer-grid > :first-child { grid-column: 1 / -1; }
}
@media (max-width: 560px) {
    .site-header-row { gap: .5rem; }
    .site-brand-text { display: none; }
    .lang-code { display: none; }
    .site-checks { grid-template-columns: 1fr; }
    .site-steps { grid-template-columns: minmax(0, 1fr); }
    .site-gallery { grid-template-columns: 1fr; grid-auto-rows: 200px; }
    .site-gallery-item:nth-child(6n + 1), .site-gallery-item:nth-child(6n + 4) { grid-column: auto; grid-row: auto; }
    .site-actions .site-btn { flex: 1 1 100%; }
    .site-cta .site-btn { width: 100%; }
}
