:root {
    --bg: #f4f7fb;
    --surface: rgba(255, 255, 255, 0.78);
    --surface-strong: #ffffff;
    --text: #29343d;
    --muted: #526170;
    --line: #e0e6eb;
    --brand: rgb(99, 91, 255);
    --brand-deep: rgb(78, 71, 210);
    --brand-dim: rgba(99, 91, 255, 0.15);
    --accent: rgb(22, 205, 199);
    --accent-dim: rgba(22, 205, 199, 0.15);
    --warning: #f8c20a;
    --success: #36c76c;
    --shadow: 0 24px 60px rgba(17, 24, 39, 0.10);
    --radius-lg: 28px;
    --radius-md: 20px;
    --container: min(1200px, calc(100vw - 2rem));
}

* {
    box-sizing: border-box;
}

html {
    scroll-behavior: smooth;
}

body {
    margin: 0;
    background:
        radial-gradient(circle at top left, rgba(99, 91, 255, 0.10), transparent 32%),
        radial-gradient(circle at top right, rgba(22, 205, 199, 0.08), transparent 24%),
        var(--bg);
    color: var(--text);
    font-family: var(--font-family, 'Manrope', Arial, sans-serif);
}

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

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

button,
input,
textarea {
    font: inherit;
}

.site-shell {
    display: flex;
    flex-direction: column;
}

.site-header {
    position: sticky;
    top: 0;
    z-index: 20;
    backdrop-filter: blur(20px);
    background: rgba(255, 255, 255, 0.92);
    border-bottom: 1px solid var(--line);
}

.site-header__inner,
.section,
.site-footer__inner {
    width: var(--container);
    margin-inline: auto;
}

.site-header__inner {
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 1.5rem;
    min-height: 70px;
    padding-block: 0;
}

/* ── Brand ─────────────────────────────── */
.brand-mark {
    display: inline-flex;
    align-items: center;
    flex-shrink: 0;
}

.brand-mark__logo {
    height: 32px;
    width: auto;
}

.footer-logo {
    height: 26px;
    width: auto;
    opacity: 0.8;
}

/* ── Navigation ────────────────────────── */
.site-nav {
    display: flex;
    align-items: center;
    gap: 0.25rem;
    flex-wrap: wrap;
}

.site-nav a {
    padding: 0.55rem 1rem;
    font-size: 0.94rem;
    font-weight: 600;
    color: var(--muted);
    transition: color 160ms ease;
}

.site-nav a:hover {
    color: var(--text);
}

.site-nav a.active {
    border-radius: 8px;
    background: var(--brand-dim);
    color: var(--brand);
}

/* ── Language switcher (dropdown) ──────── */
.language-switcher {
    position: relative;
}

.language-switcher__trigger {
    display: inline-flex;
    align-items: center;
    gap: 0.4rem;
    padding: 0.45rem 0.85rem;
    border: none;
    border-radius: 8px;
    background: transparent;
    font: inherit;
    font-size: 0.88rem;
    font-weight: 600;
    color: var(--muted);
    cursor: pointer;
    transition: background 160ms ease;
    white-space: nowrap;
}

.language-switcher__trigger:hover,
.language-switcher__trigger:focus-visible {
    background: var(--brand-dim);
    color: var(--brand);
}

.language-switcher__trigger svg {
    width: 1.15em;
    height: 1.15em;
    flex-shrink: 0;
}

.language-switcher__trigger .chevron {
    width: 0.7em;
    height: 0.7em;
    transition: transform 200ms ease;
}

.language-switcher.open .chevron {
    transform: rotate(180deg);
}

.language-switcher__menu {
    display: none;
    position: absolute;
    top: calc(100% + 6px);
    inset-inline-end: 0;
    min-width: 150px;
    padding: 0.4rem;
    background: white;
    border-radius: 10px;
    box-shadow: 0 4px 20px rgba(0, 0, 0, 0.12);
    border: 1px solid var(--line);
    z-index: 30;
}

/* CSS-only open: works without JS/interactivity */
.language-switcher:focus-within .language-switcher__menu {
    display: block;
    animation: lsDropDown 200ms ease;
}

.language-switcher:focus-within .chevron {
    transform: rotate(180deg);
}

@keyframes lsDropDown {
    from { opacity: 0; transform: translateY(-6px); }
    to   { opacity: 1; transform: translateY(0); }
}

.language-switcher__menu a {
    display: flex;
    align-items: center;
    gap: 0.6rem;
    padding: 0.6rem 0.85rem;
    border-radius: 6px;
    font-size: 0.88rem;
    font-weight: 500;
    color: var(--text);
    transition: background 120ms;
}

.language-switcher__menu a:hover {
    background: #f5f5f5;
}

.language-switcher__menu a.selected {
    background: var(--brand-dim);
    color: var(--brand);
    font-weight: 600;
}

.site-main {
    display: grid;
    gap: 2rem;
}

.section {
    position: relative;
}

.surface-card {
    background: var(--surface);
    border: 1px solid rgba(255, 255, 255, 0.5);
    box-shadow: var(--shadow);
    border-radius: var(--radius-lg);
}

.hero {
    overflow: hidden;
    padding: 3.5rem;
    display: grid;
    gap: 2rem;
    grid-template-columns: 1.1fr 0.9fr;
    align-items: center;
}

.hero::before {
    content: "";
    position: absolute;
    inset: 0;
    background:
        linear-gradient(135deg, rgba(99, 91, 255, 0.08), transparent 42%),
        linear-gradient(315deg, rgba(22, 205, 199, 0.10), transparent 38%);
    pointer-events: none;
}

.hero__content,
.hero__visual {
    position: relative;
    z-index: 1;
}

.eyebrow {
    display: inline-block;
    margin-bottom: 1rem;
    color: var(--brand-deep);
    text-transform: uppercase;
    letter-spacing: 0.12em;
    font-size: 0.78rem;
    font-weight: 700;
}

.hero h1,
.section-heading h2,
.not-found-shell h1 {
    margin: 0;
    line-height: 1.05;
    letter-spacing: -0.04em;
}

.hero h1 {
    font-size: clamp(2.6rem, 5vw, 5rem);
}

.hero p,
.section-heading p,
.contact-method__description,
.form-placeholder__body p {
    color: var(--muted);
    line-height: 1.8;
}

.hero__actions {
    display: flex;
    gap: 0.8rem;
    flex-wrap: wrap;
    margin-top: 1.6rem;
}

.btn {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    min-height: 3rem;
    padding: 0.85rem 1.3rem;
    border-radius: 999px;
    border: 1px solid transparent;
    font-weight: 700;
    transition: transform 160ms ease, background-color 160ms ease, border-color 160ms ease;
}

.btn:hover {
    transform: translateY(-1px);
}

.btn-primary {
    background: var(--brand);
    color: white;
}

.btn-secondary {
    border-color: var(--line);
    background: rgba(255, 255, 255, 0.7);
}

/* ── Hero preview grid (home page) ── */
.hero__preview-grid {
    display: grid;
    grid-template-columns: repeat(2, minmax(0, 1fr));
    gap: 0.75rem;
    margin-bottom: 1rem;
}

.hero__preview-card {
    display: flex;
    align-items: center;
    gap: 0.65rem;
    padding: 0.85rem 1rem;
    border-radius: 14px;
    background: var(--preview-bg);
    border: 1px solid rgba(0, 0, 0, 0.05);
    font-size: 0.85rem;
    font-weight: 600;
    color: var(--preview-color);
}

.hero__preview-card svg {
    width: 1.25rem;
    height: 1.25rem;
    flex-shrink: 0;
    color: var(--preview-color);
}

.hero__preview-card--purple  { --preview-bg: rgba(99, 91, 255, 0.12);  --preview-color: rgb(78, 71, 210);  }
.hero__preview-card--teal    { --preview-bg: rgba(22, 205, 199, 0.12); --preview-color: rgb(14, 165, 160); }
.hero__preview-card--amber   { --preview-bg: rgba(251, 146, 60, 0.12); --preview-color: rgb(180, 90, 10);  }
.hero__preview-card--emerald { --preview-bg: rgba(52, 211, 153, 0.12); --preview-color: rgb(16, 155, 85);  }

.hero__visual-card,
.contact-method,
.form-placeholder__card,
.cta-band {
    border-radius: var(--radius-md);
    background: rgba(255, 255, 255, 0.8);
    border: 1px solid var(--line);
}

.hero__visual-card {
    padding: 1.4rem;
    display: grid;
    gap: 1rem;
}

.hero__stat-grid,
.feature-grid,
.contact-methods {
    display: grid;
    gap: 1rem;
}

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

.hero__stat {
    padding: 1rem;
    border-radius: 1rem;
    background: var(--brand-dim);
}

.hero__stat strong {
    display: block;
    font-size: 1.8rem;
}

.section-heading {
    max-width: 46rem;
    margin-bottom: 1.5rem;
}

.section-heading h2 {
    font-size: clamp(2rem, 3.2vw, 3rem);
}

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

.feature-card {
    padding: 1.4rem;
}

.feature-card h3,
.contact-method h3,
.form-placeholder__card h3,
.cta-band h2 {
    margin-top: 0;
    margin-bottom: 0.6rem;
}

.feature-card p,
.cta-band p {
    margin: 0;
    color: var(--muted);
    line-height: 1.75;
}

.cta-band {
    padding: 2rem;
    display: flex;
    justify-content: space-between;
    align-items: center;
    gap: 1.5rem;
}

.contact-layout {
    display: grid;
    gap: 1.5rem;
    grid-template-columns: 1fr 1fr;
}

.contact-method {
    padding: 1.25rem;
}

.contact-method__value {
    display: inline-block;
    font-weight: 700;
    color: var(--brand-deep);
}

.form-placeholder__card {
    padding: 1.5rem;
}

.form-placeholder__grid {
    display: grid;
    gap: 1rem;
    grid-template-columns: repeat(2, minmax(0, 1fr));
    margin-top: 1.25rem;
}

.form-placeholder__field {
    display: grid;
    gap: 0.4rem;
}

.form-placeholder__field--full {
    grid-column: 1 / -1;
}

.form-placeholder__field input,
.form-placeholder__field textarea {
    width: 100%;
    padding: 0.9rem 1rem;
    border-radius: 1rem;
    border: 1px solid var(--line);
    background: #fff;
}

.site-footer__top {
    background: #0c1929;
    padding: 3.5rem 0 2.5rem;
}

.site-footer__bottom {
    background: #091420;
    border-top: 1px solid rgba(255, 255, 255, 0.06);
    padding: 1.25rem 0;
}

.site-footer__inner {
    display: flex;
    justify-content: space-between;
    gap: 2rem;
    padding: 0 1.75rem;
    flex-wrap: wrap;
}

.site-footer__col {
    min-width: 160px;
}

/* ── Footer brand (column 1 logo + name) ── */
.footer-brand {
    display: inline-flex;
    align-items: center;
    gap: 0.5rem;
    margin-bottom: 1.25rem;
    text-decoration: none;
}

.footer-brand__icon {
    height: 26px;
    width: auto;
}

.footer-brand__accent {
    color: var(--brand);
}

/* ── Footer column titles ── */
.footer-col-title {
    font-size: 0.92rem;
    font-weight: 700;
    color: #ffffff;
    margin: 0 0 1.25rem;
}

/* ── Footer link lists ── */
.footer-links {
    list-style: none;
    margin: 0;
    padding: 0;
    display: grid;
    gap: 0.6rem;
}

.footer-links a {
    font-size: 0.86rem;
    color: rgba(255, 255, 255, 0.55);
    transition: color 160ms ease;
}

.footer-links a:hover {
    color: #ffffff;
}

/* ── Footer social icons ── */
.footer-social {
    display: flex;
    gap: 0.75rem;
}

.footer-social__link {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    width: 2.4rem;
    height: 2.4rem;
    border-radius: 8px;
    background: rgba(255, 255, 255, 0.08);
    color: #ffffff;
    transition: background 160ms ease;
}

.footer-social__link:hover {
    background: var(--brand);
}

.footer-social__link svg {
    width: 1.15rem;
    height: 1.15rem;
}

/* ── Footer bottom bar ── */
.site-footer__bottom .site-footer__inner {
    align-items: center;
}

.footer-copyright {
    font-size: 0.82rem;
    color: rgba(255, 255, 255, 0.5);
}

.footer-legal {
    display: flex;
    align-items: center;
    gap: 0.5rem;
}

.footer-legal a {
    font-size: 0.82rem;
    color: rgba(255, 255, 255, 0.5);
    transition: color 160ms ease;
}

.footer-legal a:hover {
    color: #ffffff;
}

.footer-legal__sep {
    color: rgba(255, 255, 255, 0.2);
    font-size: 0.82rem;
}

.footer-powered {
    display: inline-flex;
    align-items: center;
    gap: 0.35rem;
    font-size: 0.82rem;
    color: rgba(255, 255, 255, 0.5);
}

.footer-powered__brand {
    font-weight: 700;
    color: rgba(255, 255, 255, 0.6);
}

.footer-powered__logo {
    height: 1.1rem;
    width: auto;
}

.footer-logo {
    height: 26px;
    width: auto;
    opacity: 0.8;
}

.site-footer__links {
    display: flex;
    gap: 1rem;
    flex-wrap: wrap;
}

/* ── Card accent colour utilities (used by CardsSection, PartialItemsSection) ── */
.card-accent--purple  { --card-bg: rgba(99, 91, 255, 0.10);  --card-color: rgb(78, 71, 210);  }
.card-accent--teal    { --card-bg: rgba(22, 205, 199, 0.10); --card-color: rgb(14, 165, 160); }
.card-accent--rose    { --card-bg: rgba(244, 63, 94, 0.10);  --card-color: rgb(190, 30, 60);  }
.card-accent--amber   { --card-bg: rgba(251, 146, 60, 0.10); --card-color: rgb(180, 90, 10);  }
.card-accent--indigo  { --card-bg: rgba(99, 102, 241, 0.10); --card-color: rgb(67, 70, 190);  }
.card-accent--emerald { --card-bg: rgba(52, 211, 153, 0.10); --card-color: rgb(16, 155, 85);  }

.not-found-shell {
    padding: 3rem;
}

#blazor-error-ui {
    position: fixed;
    inset-inline: 1rem;
    bottom: 1rem;
    padding: 1rem 1.25rem;
    background: #7f1d1d;
    color: white;
    border-radius: 1rem;
}

#blazor-error-ui .reload {
    margin-inline: 0.8rem;
    color: white;
    text-decoration: underline;
}

#blazor-error-ui .dismiss {
    cursor: pointer;
}

@media (max-width: 960px) {
    .hero,
    .contact-layout,
    .cta-band {
        grid-template-columns: 1fr;
        flex-direction: column;
        align-items: flex-start;
    }

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

    .site-footer__inner {
        gap: 2rem 1.5rem;
    }

    .site-footer__col {
        min-width: calc(50% - 1rem);
    }
}

@media (max-width: 720px) {
    .site-header__inner {
        min-height: auto;
        padding: 0.75rem 0;
        flex-wrap: wrap;
    }

    .site-nav {
        order: 3;
        width: 100%;
        justify-content: center;
    }

    .hero,
    .not-found-shell,
    .cta-band,
    .form-placeholder__card {
        padding: 1.5rem;
    }

    .hero__stat-grid,
    .form-placeholder__grid {
        grid-template-columns: 1fr;
    }

    .site-footer__col {
        min-width: 100%;
    }

    .site-footer__bottom .site-footer__inner {
        flex-direction: column;
        align-items: center;
        text-align: center;
        gap: 0.75rem;
    }
}