:root {
    --ink: #182033;
    --muted: #5c667a;
    --line: #dde5f1;
    --surface: rgba(255, 255, 255, 0.86);
    --surface-strong: #ffffff;
    --blue: #2563eb;
    --cyan: #06b6d4;
    --green: #10b981;
    --violet: #7c3aed;
    --shadow: 0 24px 70px rgba(24, 32, 51, 0.14);
}

* {
    box-sizing: border-box;
}

body {
    margin: 0;
    min-height: 100vh;
    font-family: -apple-system, BlinkMacSystemFont, "Segoe UI", Roboto, Oxygen, Ubuntu, Cantarell, sans-serif;
    color: var(--ink);
    background:
        radial-gradient(circle at 12% 18%, rgba(6, 182, 212, 0.20), transparent 28rem),
        radial-gradient(circle at 85% 6%, rgba(124, 58, 237, 0.18), transparent 25rem),
        linear-gradient(145deg, #f8fbff 0%, #edf6f8 48%, #f7f3ff 100%);
}

.page-shell {
    width: min(1120px, calc(100% - 32px));
    margin: 0 auto;
    padding: 28px 0 56px;
}

/*
----------------------------------------------------
 Slim Navigation
----------------------------------------------------
*/
.slim-navbar {
    position: static;
    z-index: 30;
    display: grid;
    grid-template-columns: auto 1fr auto;
    align-items: center;
    margin-bottom: 5px;
    padding: 6px 10px;
    border-radius: 12px;
    background: rgba(255, 255, 255, 0.9);
    border: 1px solid rgba(37, 99, 235, 0.18);
    backdrop-filter: blur(10px);
    box-shadow: 0 12px 24px rgba(24, 32, 51, 0.10);
}

.slim-navbar > * {
    align-self: center;
}

.slim-brand {
    display: inline-flex;
    align-items: center;
    color: #174ea6;
    text-decoration: none;
    font-weight: 800;
    letter-spacing: 0.02em;
    font-size: 0.9rem;
    padding: 4px 6px;
    line-height: 1;
    border-radius: 10px;
}

.slim-brand:hover {
    background: rgba(37, 99, 235, 0.08);
}

.slim-burger {
    display: none;
    align-items: center;
    justify-content: center;
    width: 34px;
    height: 34px;
    border: 1px solid rgba(37, 99, 235, 0.2);
    border-radius: 10px;
    background: #ffffff;
    color: #174ea6;
    font-size: 1.15rem;
    cursor: pointer;
}

.slim-burger:hover {
    background: rgba(37, 99, 235, 0.08);
}

.slim-menu {
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 4px;
    overflow-x: auto;
    scrollbar-width: thin;
}

.slim-menu a {
    display: inline-flex;
    align-items: center;
    white-space: nowrap;
    color: #334155;
    text-decoration: none;
    font-size: 0.78rem;
    font-weight: 700;
    padding: 5px 8px;
    line-height: 1;
    border-radius: 999px;
    border: 1px solid transparent;
}

.slim-menu a:hover {
    color: #174ea6;
    background: rgba(37, 99, 235, 0.08);
    border-color: rgba(37, 99, 235, 0.18);
}

.slim-language {
    display: inline-flex;
    align-items: center;
    gap: 6px;
    margin-left: auto;
}

.slim-language label {
    font-size: 0.76rem;
    font-weight: 700;
    color: #475569;
}

/*
----------------------------------------------------
 Top Bar, Hero, and Primary Actions
----------------------------------------------------
*/
.topbar {
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 16px;
    margin-bottom: 34px;
}

.brand {
    display: inline-flex;
    align-items: center;
    gap: 12px;
    text-decoration: none;
    color: var(--ink);
    font-weight: 800;
    letter-spacing: 0.01em;
}

.brand img {
    width: 46px;
    height: 46px;
    object-fit: contain;
    border-radius: 12px;
    background: var(--surface-strong);
    box-shadow: 0 10px 28px rgba(37, 99, 235, 0.16);
}

.back-link {
    display: inline-flex;
    align-items: center;
    gap: 8px;
    color: #174ea6;
    background: var(--surface);
    border: 1px solid rgba(37, 99, 235, 0.18);
    border-radius: 999px;
    padding: 10px 14px;
    text-decoration: none;
    font-weight: 650;
    box-shadow: 0 10px 26px rgba(24, 32, 51, 0.08);
}

.topbar-controls {
    display: inline-flex;
    align-items: center;
    gap: 10px;
    background: var(--surface);
    border: 1px solid rgba(37, 99, 235, 0.18);
    border-radius: 999px;
    padding: 8px 12px;
    box-shadow: 0 10px 26px rgba(24, 32, 51, 0.08);
}

.topbar-controls label {
    font-size: 0.9rem;
    font-weight: 700;
    color: #174ea6;
}

.topbar-language-selector {
    border: 1px solid rgba(37, 99, 235, 0.24);
    border-radius: 999px;
    background: #ffffff;
    color: var(--ink);
    font-weight: 600;
    padding: 4px 8px;
    font-size: 0.78rem;
}

.hero {
    display: block;
    margin-bottom: 28px;
}

.hero-copy,
.hero-panel,
.section {
    background: var(--surface);
    border: 1px solid rgba(255, 255, 255, 0.72);
    box-shadow: var(--shadow);
    backdrop-filter: blur(18px);
}

.hero-copy {
    border-radius: 28px;
    padding: clamp(30px, 5vw, 58px);
}

.hero-copy.loading-style {
    text-align: center;
    color: #ffffff;
    background: linear-gradient(135deg, #667eea 0%, #764ba2 100%);
    border: 0;
    box-shadow: 0 18px 42px rgba(102, 126, 234, 0.35);
}

.hero-copy.loading-style .eyebrow {
    color: #ffffff;
    background: rgba(255, 255, 255, 0.14);
    border-color: rgba(255, 255, 255, 0.35);
}

.hero-copy.loading-style .lead {
    color: rgba(255, 255, 255, 0.92);
    max-width: 60ch;
    margin: 0 auto;
}

.hero-copy.loading-style .app-name {
    font-size: clamp(1.9rem, 3.1vw, 2.8rem);
    margin-bottom: 18px;
    letter-spacing: 0.01em;
}

.hero-copy.loading-style .hero-actions {
    display: flex;
    justify-content: center;
}

.hero-copy.loading-style .cta-button {
    background: rgba(255, 255, 255, 0.18);
    border-color: rgba(255, 255, 255, 0.48);
    box-shadow: none;
}

/*
----------------------------------------------------
 Typography and Hero Media
----------------------------------------------------
*/
.eyebrow {
    display: inline-flex;
    align-items: center;
    gap: 8px;
    margin-bottom: 18px;
    color: #075985;
    background: rgba(6, 182, 212, 0.12);
    border: 1px solid rgba(6, 182, 212, 0.22);
    border-radius: 999px;
    padding: 8px 12px;
    font-size: 0.9rem;
    font-weight: 750;
}

h1 {
    margin: 0 0 18px;
    font-size: clamp(1.7rem, 3vw, 2.8rem);
    line-height: 1.02;
    letter-spacing: -0.035em;
}

.lead {
    margin: 0;
    color: var(--muted);
    font-size: clamp(1.06rem, 2vw, 1.28rem);
    line-height: 1.62;
    max-width: 64ch;
}

.hero-brand {
    margin-bottom: 16px;
}

.hero-brand img {
    width: clamp(110px, 16vw, 170px);
    height: clamp(110px, 16vw, 170px);
    object-fit: contain;
    border-radius: 26px;
    background: var(--surface-strong);
    border: 1px solid rgba(37, 99, 235, 0.2);
    box-shadow: 0 16px 34px rgba(37, 99, 235, 0.16);
}

.hero-copy.loading-style .hero-brand img {
    box-shadow: 0 12px 28px rgba(0, 0, 0, 0.22);
}

/*
----------------------------------------------------
 Metrics, Cards, and Content Sections
----------------------------------------------------
*/
.hero-actions,
.section-actions {
    margin-top: 22px;
}

.cta-button {
    display: inline-flex;
    align-items: center;
    gap: 10px;
    border-radius: 999px;
    border: 1px solid transparent;
    text-decoration: none;
    padding: 12px 18px;
    font-weight: 750;
    color: #ffffff;
    background: linear-gradient(135deg, #2563eb, #0891b2);
    box-shadow: 0 14px 26px rgba(37, 99, 235, 0.25);
}

.cta-button.secondary {
    color: #174ea6;
    background: rgba(37, 99, 235, 0.1);
    border-color: rgba(37, 99, 235, 0.24);
    box-shadow: none;
}

.cta-button:hover {
    filter: brightness(1.03);
}

@media (min-width: 841px) {
    #hero-start-link {
        width: 220px;
        justify-content: center;
    }
}

.hero-panel {
    border-radius: 28px;
    padding: 28px;
    display: flex;
    flex-direction: column;
    justify-content: space-between;
    overflow: hidden;
    position: relative;
}

.hero-panel::before {
    content: "";
    position: absolute;
    inset: 0;
    background:
        linear-gradient(135deg, rgba(37, 99, 235, 0.12), transparent 46%),
        linear-gradient(315deg, rgba(16, 185, 129, 0.15), transparent 40%);
    pointer-events: none;
}

.panel-content {
    position: relative;
    display: grid;
    gap: 16px;
}

.metric {
    background: rgba(255, 255, 255, 0.78);
    border: 1px solid rgba(221, 229, 241, 0.8);
    border-radius: 18px;
    padding: 18px;
}

.metric strong {
    display: block;
    font-size: 1.65rem;
    line-height: 1;
    color: #0f766e;
    margin-bottom: 8px;
}

.metric span {
    color: var(--muted);
    line-height: 1.45;
}

.section-grid {
    display: grid;
    grid-template-columns: repeat(2, minmax(0, 1fr));
    gap: 20px;
}

.section {
    border-radius: 22px;
    padding: 28px;
}

.section.full {
    grid-column: 1 / -1;
}

.section-icon {
    width: 44px;
    height: 44px;
    display: inline-grid;
    place-items: center;
    border-radius: 14px;
    color: #ffffff;
    background: linear-gradient(135deg, var(--blue), var(--cyan));
    margin-bottom: 18px;
    font-size: 1.25rem;
}

.section:nth-child(2) .section-icon { background: linear-gradient(135deg, var(--green), var(--cyan)); }
.section:nth-child(3) .section-icon { background: linear-gradient(135deg, var(--violet), var(--blue)); }
.section:nth-child(4) .section-icon { background: linear-gradient(135deg, #f59e0b, #10b981); }
.section:nth-child(5) .section-icon { background: linear-gradient(135deg, #0f766e, #2563eb); }

h2 {
    margin: 0 0 14px;
    font-size: clamp(1.35rem, 2vw, 1.85rem);
    letter-spacing: -0.02em;
}

p {
    color: var(--muted);
    line-height: 1.68;
    margin: 0 0 14px;
}

p:last-child {
    margin-bottom: 0;
}

.chips {
    display: flex;
    flex-wrap: wrap;
    gap: 10px;
    margin-top: 18px;
}

.chip {
    color: #174ea6;
    background: rgba(37, 99, 235, 0.10);
    border: 1px solid rgba(37, 99, 235, 0.18);
    border-radius: 999px;
    padding: 8px 11px;
    font-size: 0.92rem;
    font-weight: 700;
}

.flow {
    display: grid;
    grid-template-columns: repeat(2, minmax(0, 1fr));
    gap: 12px;
    margin-top: 20px;
}

.flow-step {
    border: 1px solid var(--line);
    border-radius: 16px;
    padding: 16px;
    background: rgba(255, 255, 255, 0.68);
}

.flow-step strong {
    display: block;
    color: var(--ink);
    margin-bottom: 8px;
}

.flow-step span {
    color: var(--muted);
    font-size: 0.95rem;
    line-height: 1.45;
}
.flow-step ul {
    padding-inline-start: 20px;

}

.role-agent-note {
    display: flex;
    align-items: center;
    justify-content: flex-start;
    gap: 10px;
    margin-top: 14px;
    text-align: left;
}

.role-agent-note .role-agent-icon {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    padding: 6px;
    border-radius: 999px;
    background: #f59e0b;
    color: #ffffff;
    font-size: 1rem;
    line-height: 1;
}

.rag-left {
    text-align: left;
}

.rag-left .section-icon {
    margin-left: 0;
    margin-right: 0;
}

/*
----------------------------------------------------
 Phases Accordion and Contact Footer
----------------------------------------------------
*/
.phases-accordion {
    border: 1px solid var(--line);
    border-radius: 14px;
    background: rgba(255, 255, 255, 0.62);
    overflow: hidden;
}

.phases-accordion-summary {
    list-style: none;
    cursor: pointer;
    padding: 14px 16px;
    font-weight: 700;
    color: #1d4ed8;
    background: rgba(37, 99, 235, 0.08);
    display: flex;
    align-items: center;
    justify-content: space-between;
}

.phases-accordion-summary::-webkit-details-marker {
    display: none;
}

.phases-accordion-summary::after {
    content: "+";
    font-size: 1.15rem;
    line-height: 1;
    color: #174ea6;
}

.phases-accordion[open] .phases-accordion-summary::after {
    content: "-";
}

.phases-accordion-content {
    padding: 16px;
}

.contact-footer {
    margin-top: 22px;
    padding: 24px 28px;
    border-radius: 22px;
    background: linear-gradient(135deg, rgba(24, 32, 51, 0.92), rgba(15, 118, 110, 0.88));
    color: #ffffff;
    text-align: center;
    box-shadow: var(--shadow);
}

.contact-footer p {
    color: rgba(255, 255, 255, 0.86);
    margin: 0;
}

.contact-footer a {
    color: #a7f3d0;
    font-weight: 750;
    text-decoration: none;
}

.contact-footer a:hover {
    text-decoration: underline;
}

/*
----------------------------------------------------
 Responsive Layout Adjustments
----------------------------------------------------
*/
@media (max-width: 840px) {
    .slim-navbar {
        grid-template-columns: 1fr auto;
        grid-template-areas:
            "brand burger"
            "menu menu";
        align-items: center;
    }

    .slim-brand {
        grid-area: brand;
    }

    .slim-burger {
        display: inline-flex;
        grid-area: burger;
    }

    .slim-menu {
        grid-area: menu;
        align-self: stretch;
        display: none;
        flex-direction: column;
        align-items: stretch;
        justify-content: flex-start;
        overflow: visible;
        min-width: 100%;
        border: 1px solid rgba(37, 99, 235, 0.18);
        border-radius: 10px;
        background: rgba(255, 255, 255, 0.95);
        padding: 6px;
    }

    .slim-navbar.menu-open .slim-menu {
        display: flex;
    }

    .slim-menu a {
        text-align: left;
    }

    .slim-language {
        margin-left: 0;
        margin-top: 4px;
        padding-top: 6px;
        border-top: 1px solid rgba(37, 99, 235, 0.14);
        justify-content: flex-start;
    }

    .section-grid,
    .flow {
        grid-template-columns: 1fr;
    }

    .topbar {
        align-items: flex-start;
        flex-direction: column;
    }

    .hero-copy,
    .hero-panel,
    .section {
        border-radius: 20px;
    }

    .cta-button {
        width: 100%;
        justify-content: center;
    }
}
