.nav-toggle {
    display: none;
}

.public-nav {
    margin-left: auto;
}

.public-nav-menu {
    display: flex;
    align-items: center;
    gap: 22px;
}

.litom-home-hero {
    grid-template-columns: minmax(0, 1.02fr) minmax(390px, 0.98fr);
    gap: clamp(32px, 6vw, 72px);
    min-height: min(650px, calc(100vh - 74px));
    padding-top: 54px;
    padding-bottom: 64px;
}

.litom-home-hero h1 {
    max-width: 780px;
}

.home-signal-row {
    display: flex;
    flex-wrap: wrap;
    gap: 8px;
    margin-top: 22px;
}

.home-signal-row span {
    display: inline-flex;
    min-height: 30px;
    align-items: center;
    border: 1px solid rgba(14, 64, 57, 0.16);
    border-radius: 999px;
    padding: 6px 10px;
    color: var(--accent-dark);
    background: rgba(255, 255, 255, 0.72);
    font-size: 0.78rem;
    font-weight: 780;
}

.ai-delivery-card {
    position: relative;
    overflow: hidden;
    border: 1px solid rgba(14, 64, 57, 0.2);
    border-radius: 22px;
    padding: clamp(22px, 3vw, 32px);
    background:
        radial-gradient(circle at 82% 12%, rgba(185, 133, 46, 0.18), transparent 32%),
        linear-gradient(145deg, #ffffff 0%, #eef5f1 100%);
    box-shadow: 0 32px 90px rgba(23, 33, 30, 0.13);
}

.ai-delivery-card::after {
    content: "";
    position: absolute;
    right: -70px;
    bottom: -90px;
    width: 220px;
    height: 220px;
    border: 1px solid rgba(23, 100, 90, 0.14);
    border-radius: 50%;
}

.ai-card-head {
    position: relative;
    z-index: 1;
    display: flex;
    gap: 12px;
    align-items: center;
    margin-bottom: 24px;
}

.ai-card-head .panel-label {
    margin-bottom: 2px;
}

.ai-card-head strong {
    font-size: 1.05rem;
}

.ai-status-dot {
    width: 11px;
    height: 11px;
    flex: 0 0 auto;
    border-radius: 50%;
    background: var(--accent);
    box-shadow: 0 0 0 0 rgba(23, 100, 90, 0.34);
    animation: litom-status-pulse 2.3s ease-out infinite;
}

.ai-flow {
    position: relative;
    z-index: 1;
    display: grid;
    gap: 0;
}

.ai-flow-step {
    display: grid;
    grid-template-columns: 42px 1fr;
    align-items: center;
    min-height: 48px;
    border: 1px solid rgba(14, 64, 57, 0.12);
    border-radius: 12px;
    padding: 8px 12px;
    background: rgba(255, 255, 255, 0.78);
}

.ai-flow-step span {
    color: var(--gold);
    font-size: 0.75rem;
    font-weight: 850;
}

.ai-flow-step strong {
    font-size: 0.92rem;
}

.ai-flow-line {
    width: 1px;
    height: 12px;
    margin-left: 32px;
    background: linear-gradient(var(--accent), rgba(23, 100, 90, 0.18));
}

.ai-card-note {
    position: relative;
    z-index: 1;
    margin: 22px 0 0;
    color: var(--muted);
    font-size: 0.9rem;
}

.compact-heading {
    display: grid;
    grid-template-columns: minmax(180px, 0.32fr) minmax(0, 0.68fr);
    gap: 26px;
    align-items: end;
}

.compact-heading .eyebrow,
.compact-heading h2 {
    margin-bottom: 0;
}

.compact-heading h2 {
    max-width: 760px;
    font-size: clamp(2rem, 4vw, 3.1rem);
}

.home-value-grid {
    display: grid;
    grid-template-columns: repeat(3, minmax(0, 1fr));
    gap: 14px;
}

.home-value-grid article {
    min-height: 250px;
    border: 1px solid var(--line);
    border-radius: 16px;
    padding: 24px;
    background: rgba(255, 255, 255, 0.78);
}

.home-value-grid p {
    margin-bottom: 0;
    color: var(--muted);
}

.value-index {
    display: inline-block;
    margin-bottom: 34px;
    color: var(--gold);
    font-size: 0.78rem;
    font-weight: 850;
}

.mira-vision-section {
    position: relative;
    display: grid;
    grid-template-columns: minmax(0, 1.05fr) minmax(340px, 0.95fr);
    gap: clamp(30px, 7vw, 84px);
    align-items: center;
    overflow: hidden;
    border: 0;
    border-radius: 26px;
    padding: clamp(34px, 6vw, 68px);
    color: #fff;
    background:
        radial-gradient(circle at 78% 25%, rgba(78, 160, 184, 0.18), transparent 26%),
        radial-gradient(circle at 92% 84%, rgba(185, 133, 46, 0.13), transparent 24%),
        #182221;
    box-shadow: 0 32px 90px rgba(23, 33, 30, 0.18);
}

.mira-vision-section .eyebrow {
    color: #d9aa54;
}

.mira-vision-section h2 {
    max-width: 680px;
}

.mira-vision-copy p {
    max-width: 720px;
    color: rgba(255, 255, 255, 0.72);
}

.mira-link {
    margin-top: 12px;
    border-color: rgba(255, 255, 255, 0.48);
    color: #fff;
    background: rgba(255, 255, 255, 0.07);
}

.mira-system-visual {
    position: relative;
    min-height: 360px;
}

.mira-core,
.mira-orbit {
    position: absolute;
    display: grid;
    place-items: center;
    border-radius: 50%;
}

.mira-core {
    top: 50%;
    left: 50%;
    width: 126px;
    height: 126px;
    border: 1px solid rgba(157, 224, 244, 0.5);
    background: radial-gradient(circle, rgba(139, 221, 244, 0.3), rgba(31, 79, 91, 0.18) 58%, transparent 70%);
    box-shadow: 0 0 70px rgba(105, 201, 226, 0.2), inset 0 0 34px rgba(255, 255, 255, 0.12);
    transform: translate(-50%, -50%);
    animation: mira-core-breathe 4s ease-in-out infinite;
}

.mira-core span {
    font-size: 1.04rem;
    font-weight: 900;
    letter-spacing: 0.18em;
}

.mira-system-visual::before,
.mira-system-visual::after {
    content: "";
    position: absolute;
    top: 50%;
    left: 50%;
    border: 1px solid rgba(157, 224, 244, 0.16);
    border-radius: 50%;
    transform: translate(-50%, -50%);
}

.mira-system-visual::before {
    width: 250px;
    height: 250px;
}

.mira-system-visual::after {
    width: 330px;
    height: 330px;
}

.mira-orbit {
    z-index: 2;
    width: 94px;
    height: 38px;
    border: 1px solid rgba(157, 224, 244, 0.2);
    border-radius: 999px;
    color: rgba(255, 255, 255, 0.82);
    background: rgba(255, 255, 255, 0.06);
    backdrop-filter: blur(8px);
    font-size: 0.72rem;
    font-weight: 800;
}

.mira-orbit-one { top: 12%; left: 46%; }
.mira-orbit-two { top: 43%; right: 1%; }
.mira-orbit-three { right: 13%; bottom: 8%; }
.mira-orbit-four { left: 4%; bottom: 23%; }

.home-process-track {
    display: grid;
    grid-template-columns: repeat(4, minmax(0, 1fr));
    margin: 32px 0 20px;
    padding: 0;
    list-style: none;
}

.home-process-track li {
    position: relative;
    display: grid;
    gap: 4px;
    min-height: 120px;
    border-top: 1px solid var(--line);
    padding: 22px 22px 0 0;
}

.home-process-track li:not(:last-child)::after {
    content: "";
    position: absolute;
    top: -4px;
    right: 18px;
    width: 7px;
    height: 7px;
    border-radius: 50%;
    background: var(--accent);
}

.home-process-track span {
    color: var(--gold);
    font-size: 0.78rem;
    font-weight: 850;
}

.home-process-track strong {
    font-size: 1rem;
}

.home-process-track small {
    max-width: 190px;
    color: var(--muted);
    font-size: 0.82rem;
}

.home-process-link {
    display: inline-block;
    margin-top: 4px;
}

.home-final-cta {
    display: flex;
    gap: 32px;
    align-items: end;
    justify-content: space-between;
    padding-bottom: 92px;
}

.home-final-cta h2 {
    max-width: 760px;
    margin-bottom: 0;
    font-size: clamp(2rem, 4vw, 3.2rem);
}

.home-final-cta .button {
    flex: 0 0 auto;
}

@keyframes litom-status-pulse {
    0% { box-shadow: 0 0 0 0 rgba(23, 100, 90, 0.34); }
    65%, 100% { box-shadow: 0 0 0 11px rgba(23, 100, 90, 0); }
}

@keyframes mira-core-breathe {
    0%, 100% { transform: translate(-50%, -50%) scale(1); opacity: 0.92; }
    50% { transform: translate(-50%, -50%) scale(1.07); opacity: 1; }
}

@media (max-width: 1100px) and (min-width: 901px) {
    .public-nav-menu {
        gap: 12px;
        font-size: 0.88rem;
    }
}

@media (max-width: 900px) {
    .site-header {
        position: sticky;
        align-items: center;
        flex-direction: row;
        min-height: 64px;
        gap: 10px;
        padding: 12px 0;
    }

    .site-header::before {
        height: 64px;
    }

    .brand {
        order: 1;
    }

    .language-selector {
        order: 2;
        margin: 0 0 0 auto;
    }

    .public-nav {
        position: static;
        order: 3;
        margin-left: 0;
    }

    .nav-toggle {
        display: grid;
        width: 42px;
        height: 42px;
        place-content: center;
        gap: 5px;
        border: 1px solid rgba(14, 64, 57, 0.18);
        border-radius: 10px;
        padding: 0;
        color: var(--accent-dark);
        background: rgba(255, 255, 255, 0.8);
        cursor: pointer;
    }

    .nav-toggle span {
        display: block;
        width: 19px;
        height: 2px;
        border-radius: 99px;
        background: currentColor;
        transition: transform 160ms ease, opacity 160ms ease;
    }

    .public-nav.is-open .nav-toggle span:nth-child(1) {
        transform: translateY(7px) rotate(45deg);
    }

    .public-nav.is-open .nav-toggle span:nth-child(2) {
        opacity: 0;
    }

    .public-nav.is-open .nav-toggle span:nth-child(3) {
        transform: translateY(-7px) rotate(-45deg);
    }

    .public-nav-menu {
        position: absolute;
        top: calc(100% + 7px);
        right: 0;
        left: 0;
        display: none;
        max-height: calc(100vh - 86px);
        overflow: auto;
        gap: 0;
        border: 1px solid var(--line);
        border-radius: 16px;
        padding: 10px;
        background: rgba(255, 255, 255, 0.98);
        box-shadow: 0 24px 70px rgba(23, 33, 30, 0.18);
        backdrop-filter: blur(18px);
    }

    .public-nav.is-open .public-nav-menu {
        display: grid;
    }

    .public-nav-menu > a,
    .public-nav-menu .nav-logout-form button {
        width: 100%;
        min-height: 48px;
        justify-content: flex-start;
        border-radius: 9px;
        padding: 10px 12px;
    }

    .public-nav-menu > a:hover,
    .public-nav-menu > a:focus-visible {
        background: var(--soft-green);
    }

    .public-nav-menu .nav-cta {
        margin: 5px 0;
        background: var(--accent-dark);
        color: #fff !important;
    }

    .public-nav-menu .nav-logout-form {
        width: 100%;
    }

    .litom-home-hero,
    .mira-vision-section {
        grid-template-columns: 1fr;
    }

    .litom-home-hero {
        gap: 30px;
        min-height: auto;
        padding: 42px 0 48px;
    }

    .ai-delivery-card {
        width: 100%;
        max-width: 620px;
    }

    .compact-heading {
        grid-template-columns: 1fr;
        gap: 8px;
    }

    .home-value-grid {
        grid-template-columns: repeat(3, minmax(280px, 82vw));
        overflow-x: auto;
        gap: 12px;
        margin-right: -14px;
        padding-right: 14px;
        scroll-snap-type: x mandatory;
        scrollbar-width: none;
    }

    .home-value-grid::-webkit-scrollbar {
        display: none;
    }

    .home-value-grid article {
        min-height: 220px;
        scroll-snap-align: start;
    }

    .value-index {
        margin-bottom: 22px;
    }

    .mira-vision-section {
        gap: 12px;
    }

    .mira-system-visual {
        min-height: 300px;
    }

    .home-process-track {
        grid-template-columns: repeat(4, minmax(210px, 68vw));
        overflow-x: auto;
        gap: 0;
        padding-bottom: 8px;
        scroll-snap-type: x mandatory;
        scrollbar-width: none;
    }

    .home-process-track::-webkit-scrollbar {
        display: none;
    }

    .home-process-track li {
        scroll-snap-align: start;
    }

    .home-final-cta {
        align-items: stretch;
        flex-direction: column;
    }
}

@media (max-width: 620px) {
    .litom-home-hero h1 {
        font-size: clamp(2.15rem, 10.6vw, 3rem);
    }

    .litom-home-hero .lead {
        font-size: 1rem;
    }

    .home-signal-row {
        gap: 6px;
    }

    .home-signal-row span {
        font-size: 0.72rem;
    }

    .ai-delivery-card {
        border-radius: 18px;
        padding: 18px;
    }

    .ai-card-head {
        margin-bottom: 18px;
    }

    .ai-flow-step {
        min-height: 42px;
    }

    .home-why-section,
    .home-process-section {
        padding: 52px 0;
    }

    .home-value-grid {
        grid-template-columns: repeat(3, minmax(265px, 86vw));
    }

    .mira-vision-section {
        width: min(100% - 20px, 1120px);
        border-radius: 20px;
        padding: 30px 20px 22px;
    }

    .mira-vision-section h2 {
        font-size: clamp(2rem, 9.4vw, 2.8rem);
    }

    .mira-system-visual {
        min-height: 250px;
        transform: scale(0.92);
    }

    .mira-system-visual::before {
        width: 200px;
        height: 200px;
    }

    .mira-system-visual::after {
        width: 260px;
        height: 260px;
    }

    .mira-core {
        width: 106px;
        height: 106px;
    }

    .mira-orbit-one { top: 4%; left: 40%; }
    .mira-orbit-two { top: 42%; right: -4%; }
    .mira-orbit-three { right: 6%; bottom: 2%; }
    .mira-orbit-four { left: -4%; bottom: 18%; }

    .home-process-track {
        grid-template-columns: repeat(4, minmax(190px, 70vw));
    }

    .home-final-cta {
        padding: 54px 0 78px;
    }
}

@media (prefers-reduced-motion: reduce) {
    .ai-status-dot,
    .mira-core {
        animation: none;
    }

    .nav-toggle span {
        transition: none;
    }
}
