:root {
    --brand: #0072FF;
    --navy: #00193A;
}

html {
    scroll-behavior: smooth;
}

body {
    font-feature-settings: "ss01" on, "cv11" on;
}

h1, h2, h3, h4, h5, h6 {
    font-family: Outfit, ui-sans-serif, system-ui, sans-serif;
}

.status-dot {
    position: relative;
    display: inline-flex;
    width: 8px;
    height: 8px;
    border-radius: 9999px;
    background: #00193A;
    flex-shrink: 0;
}

.status-dot::after {
    content: "";
    position: absolute;
    inset: 0;
    border-radius: inherit;
    background: #00193A;
    animation: status-blink 1.6s ease-out infinite;
}

@keyframes status-blink {
    0% {
        transform: scale(1);
        opacity: 0.7;
    }
    70% {
        transform: scale(2.4);
        opacity: 0;
    }
    100% {
        transform: scale(2.4);
        opacity: 0;
    }
}

@media (prefers-reduced-motion: reduce) {
    .status-dot::after {
        animation: none;
    }
}

.hero-pattern {
    background-color: #fbfcfe;
    background-image:
        radial-gradient(circle at 78% 46%, rgba(0, 114, 255, 0.06), transparent 34%);
}

.hero-rings {
    pointer-events: none;
    position: absolute;
    width: 720px;
    height: 720px;
    right: -8%;
    top: 50%;
    transform: translateY(-48%);
    background:
        repeating-radial-gradient(
            circle at 50% 50%,
            transparent 0,
            transparent 46px,
            rgba(0, 114, 255, 0.09) 47px,
            rgba(0, 114, 255, 0.09) 48px
        );
    mask-image: radial-gradient(circle at center, black 20%, transparent 72%);
    -webkit-mask-image: radial-gradient(circle at center, black 20%, transparent 72%);
}

@media (max-width: 1023px) {
    .hero-rings {
        opacity: 0.45;
        right: -30%;
        width: 520px;
        height: 520px;
    }
}

.process-track {
    display: grid;
    gap: 2rem 1.5rem;
}

.process-step-head {
    position: relative;
    display: flex;
    align-items: center;
}

.process-step-icon {
    position: relative;
    z-index: 1;
    display: flex;
    align-items: center;
    justify-content: center;
    width: 3.5rem;
    height: 3.5rem;
    border-radius: 9999px;
    background: #eef5ff;
    color: #0072FF;
    box-shadow: 0 0 0 6px #fff;
}

.process-step-num {
    margin-top: 1.25rem;
    font-size: 11px;
    font-weight: 700;
    letter-spacing: 0.14em;
    text-transform: uppercase;
    color: #0072FF;
}

.process-step-title {
    margin-top: 0.25rem;
    font-size: 1.125rem;
    font-weight: 700;
    color: #00193A;
}

.process-step-text {
    margin-top: 0.5rem;
    font-size: 0.875rem;
    line-height: 1.625;
    color: #475569;
}

@media (min-width: 1024px) {
    .process-track {
        grid-template-columns: repeat(5, minmax(0, 1fr));
        gap: 1.75rem;
    }

    .process-step-head::after {
        content: "";
        position: absolute;
        left: 3.5rem;
        right: -1.75rem;
        top: 50%;
        height: 0;
        border-top: 2px dashed #c5d4e8;
    }

    .process-step:last-child .process-step-head::after {
        display: none;
    }
}

@media (max-width: 1023px) {
    .process-step {
        display: grid;
        grid-template-columns: 3.5rem 1fr;
        column-gap: 1rem;
        align-items: start;
    }

    .process-step-head {
        grid-row: 1 / span 4;
        justify-content: center;
        min-height: 100%;
    }

    .process-step-head::after {
        content: "";
        position: absolute;
        top: 3.5rem;
        bottom: -2rem;
        left: 50%;
        width: 0;
        border-left: 2px dashed #c5d4e8;
    }

    .process-step:last-child .process-step-head::after {
        display: none;
    }

    .process-step-num {
        margin-top: 0;
    }
}

.reveal {
    opacity: 0;
    transform: translateY(18px);
    animation: rise 0.7s ease forwards;
}

.reveal-delay-1 { animation-delay: 0.08s; }
.reveal-delay-2 { animation-delay: 0.16s; }
.reveal-delay-3 { animation-delay: 0.24s; }
.reveal-delay-4 { animation-delay: 0.32s; }

@keyframes rise {
    to {
        opacity: 1;
        transform: none;
    }
}

.partner-track {
    animation: marquee 32s linear infinite;
}

@keyframes marquee {
    from { transform: translateX(0); }
    to { transform: translateX(-50%); }
}

input[aria-invalid="true"],
select[aria-invalid="true"],
textarea[aria-invalid="true"] {
    border-color: #f87171;
    box-shadow: 0 0 0 3px rgba(248, 113, 113, 0.16);
}

.field-error {
    display: none;
    margin-top: 0.4rem;
    font-size: 0.75rem;
    line-height: 1.4;
    color: #b91c1c;
}

.field-error.is-visible {
    display: block;
}

.site-toast {
    position: fixed;
    top: 6rem;
    right: 1.25rem;
    z-index: 80;
    display: flex;
    align-items: flex-start;
    gap: 0.75rem;
    max-width: 22rem;
    padding: 1rem 1.1rem;
    background: #fff;
    border: 1px solid #bbf7d0;
    border-radius: 1rem;
    box-shadow: 0 12px 32px rgba(0, 25, 58, 0.12);
    opacity: 0;
    visibility: hidden;
    transform: translateY(-10px);
    transition: opacity 0.28s ease, transform 0.28s ease, visibility 0.28s ease;
}

.site-toast.is-visible {
    opacity: 1;
    visibility: visible;
    transform: none;
}

.site-toast-icon {
    display: flex;
    align-items: center;
    justify-content: center;
    width: 2.25rem;
    height: 2.25rem;
    border-radius: 9999px;
    background: #dcfce7;
    color: #15803d;
    flex-shrink: 0;
}

.site-toast-title {
    font-weight: 700;
    color: #00193A;
    font-size: 0.9rem;
}

.site-toast-text {
    margin-top: 0.15rem;
    font-size: 0.8rem;
    line-height: 1.45;
    color: #475569;
}

.site-toast-close {
    margin-left: 0.25rem;
    color: #64748b;
    flex-shrink: 0;
    padding: 0.15rem;
    border-radius: 9999px;
}

.site-toast-close:hover {
    color: #00193A;
    background: #f1f5f9;
}

@media (max-width: 640px) {
    .site-toast {
        left: 1rem;
        right: 1rem;
        max-width: none;
    }
}

a,
button,
select,
label,
summary,
[role="button"] {
    cursor: pointer;
}

input[type="text"],
input[type="email"],
input[type="tel"],
textarea {
    cursor: text;
}

input,
select,
textarea {
    transition: border-color 0.2s ease, box-shadow 0.2s ease;
}

input:hover,
select:hover,
textarea:hover {
    border-color: #4da3ff;
}

a.bg-brand-500,
button[type="submit"] {
    border: 2px solid transparent;
    box-shadow: none;
    transition: background-color 0.2s ease, border-color 0.2s ease;
}

a.bg-brand-500:hover,
button[type="submit"]:hover {
    background-color: #005EE6;
    border-color: #d6e8ff;
    box-shadow: none;
    transform: none;
}

a.shadow-card,
.project-card {
    transition: transform 0.25s ease, box-shadow 0.25s ease, border-color 0.25s ease;
}

a.shadow-card:hover,
.project-card:hover {
    transform: translateY(-3px);
    border-color: rgba(0, 114, 255, 0.35);
    box-shadow: 0 0 0 1px rgba(0, 114, 255, 0.08), 0 18px 40px rgba(0, 25, 58, 0.08);
}

.img-zoom {
    overflow: hidden;
    border-radius: 1rem;
    border: 1px solid #f1f5f9;
    box-shadow: 0 1px 2px rgba(15, 15, 15, 0.04), 0 8px 24px rgba(15, 15, 15, 0.04);
    background: #f5f8fc;
}

.img-zoom img {
    display: block;
    width: 100%;
    transition: transform 0.55s cubic-bezier(0.22, 1, 0.36, 1);
    will-change: transform;
}

.img-zoom:hover img {
    transform: scale(1.1) rotate(2deg);
}

article:nth-child(even) .img-zoom:hover img {
    transform: scale(1.1) rotate(-2deg);
}

.img-zoom-logo {
    transition: transform 0.45s cubic-bezier(0.22, 1, 0.36, 1);
    transform-origin: center center;
    will-change: transform;
}

.img-zoom-logo:hover,
.group:hover .img-zoom-logo {
    transform: scale(1.12) rotate(-3deg);
}

a span[aria-hidden="true"] {
    display: inline-block;
    transition: transform 0.2s ease;
}

a:hover span[aria-hidden="true"],
button:hover span[aria-hidden="true"] {
    transform: translateX(4px);
}

.header-logo img {
    transition: transform 0.35s cubic-bezier(0.22, 1, 0.36, 1);
    transform-origin: left center;
}

.header-logo:hover img {
    transform: scale(1.05);
}

footer a img {
    transition: opacity 0.2s ease;
}

footer a:hover img {
    opacity: 0.82;
}

#menu-toggle {
    cursor: pointer;
    transition: background-color 0.2s ease, border-color 0.2s ease, color 0.2s ease;
}

#menu-toggle:hover {
    background: #f5f8fc;
    border-color: #b3d4ff;
    color: #0072FF;
}

.theme-toggle {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    width: 2.5rem;
    height: 2.5rem;
    border-radius: 9999px;
    border: 1px solid #e4e4e7;
    color: #0072FF;
    background: #fff;
    cursor: pointer;
    transition: background-color 0.2s ease, border-color 0.2s ease, color 0.2s ease;
}

.theme-toggle:hover {
    background: #f5f8fc;
    border-color: #b3d4ff;
    color: #00193A;
}

.theme-icon-moon {
    display: inline-flex;
}

.theme-icon-sun {
    display: none;
}

[data-theme="dark"] .theme-icon-moon {
    display: none;
}

[data-theme="dark"] .theme-icon-sun {
    display: inline-flex;
}

.scroll-top {
    position: fixed;
    right: 1.25rem;
    bottom: 1.25rem;
    z-index: 40;
    width: 3.25rem;
    height: 3.25rem;
    border-radius: 9999px;
    display: flex;
    align-items: center;
    justify-content: center;
    background: #fff;
    color: #0072FF;
    border: none;
    box-shadow: 0 10px 24px rgba(0, 25, 58, 0.14);
    cursor: pointer;
    opacity: 0;
    visibility: hidden;
    pointer-events: none;
    transform: translateY(10px);
    transition: opacity 0.25s ease, transform 0.25s ease, visibility 0.25s ease, background-color 0.2s ease, color 0.2s ease, box-shadow 0.25s ease;
}

.scroll-top.is-visible {
    opacity: 1;
    visibility: visible;
    pointer-events: auto;
    transform: none;
}

.scroll-top-ring {
    position: absolute;
    inset: 0;
    width: 100%;
    height: 100%;
    transform: rotate(-90deg);
}

.scroll-top-track,
.scroll-top-bar {
    fill: none;
    stroke-width: 3;
}

.scroll-top-track {
    stroke: #d6e8ff;
}

.scroll-top-bar {
    stroke: #0072FF;
    stroke-linecap: round;
    stroke-dasharray: 125.664;
    stroke-dashoffset: 125.664;
    transition: stroke-dashoffset 0.08s linear, stroke 0.2s ease;
}

.scroll-top.is-visible:hover .scroll-top-bar {
    stroke: #00193A;
}

.scroll-top > svg:not(.scroll-top-ring) {
    position: relative;
    z-index: 1;
}

#mobile-menu a {
    transition: background-color 0.15s ease, color 0.15s ease;
}

#mobile-menu a:hover {
    background: #eef5ff;
    color: #005EE6;
}

@media (prefers-reduced-motion: reduce) {
    a.bg-brand-500:hover,
    button[type="submit"]:hover,
    a.shadow-card:hover,
    .project-card:hover {
        transform: none;
        box-shadow: none;
    }

    a:hover span[aria-hidden="true"],
    button:hover span[aria-hidden="true"] {
        transform: none;
    }

    .page-loader-ring {
        animation: none;
        border-color: #0072FF;
    }

    .site-toast {
        transition: none;
        transform: none;
    }

    .img-zoom img,
    .img-zoom:hover img,
    article:nth-child(even) .img-zoom:hover img,
    .img-zoom-logo,
    .img-zoom-logo:hover,
    .group:hover .img-zoom-logo,
    .header-logo img,
    .header-logo:hover img {
        transition: none;
        transform: none;
    }

    .scroll-top,
    .scroll-top.is-visible,
    .scroll-top.is-visible:hover {
        transition: none;
        transform: none;
    }
}

.page-loader {
    position: fixed;
    inset: 0;
    z-index: 9999;
    display: flex;
    align-items: center;
    justify-content: center;
    background: #fff;
    transition: opacity 0.45s ease, visibility 0.45s ease;
}

.page-loader.is-done {
    opacity: 0;
    visibility: hidden;
    pointer-events: none;
}

.page-loader-mark {
    position: relative;
    width: 96px;
    height: 96px;
    display: flex;
    align-items: center;
    justify-content: center;
}

.page-loader-logo {
    position: relative;
    z-index: 1;
    width: 86px;
    height: 86px;
    object-fit: cover;
    border-radius: 50%;
}

.page-loader-ring {
    position: absolute;
    inset: 0;
    border-radius: 9999px;
    border: 2px solid #e8f1ff;
    border-top-color: #0072FF;
    animation: page-loader-spin 0.85s linear infinite;
}

@keyframes page-loader-spin {
    to {
        transform: rotate(360deg);
    }
}

:root {
    color-scheme: light;
}

[data-theme="dark"] {
    color-scheme: dark;
}

[data-theme="dark"] body {
    background-color: #000c1a;
    color: #94a3b8;
}

[data-theme="dark"] .bg-white {
    background-color: #001327;
}

[data-theme="dark"] .bg-white\/95 {
    background-color: rgba(0, 19, 39, 0.92);
}

[data-theme="dark"] .bg-mist {
    background-color: #000f20;
}

[data-theme="dark"] .bg-brand-50 {
    background-color: rgba(0, 114, 255, 0.16);
}

[data-theme="dark"] .text-navy,
[data-theme="dark"] .text-zinc-800 {
    color: #e8eef6;
}

[data-theme="dark"] .text-navy\/80 {
    color: rgba(232, 238, 246, 0.82);
}

[data-theme="dark"] .text-navy\/70 {
    color: rgba(232, 238, 246, 0.72);
}

[data-theme="dark"] .text-slate-600,
[data-theme="dark"] .text-zinc-600,
[data-theme="dark"] .text-zinc-700,
[data-theme="dark"] .text-slate-700 {
    color: #9fb0c5;
}

[data-theme="dark"] .text-slate-400 {
    color: #64748b;
}

[data-theme="dark"] .border-slate-100,
[data-theme="dark"] .border-zinc-100,
[data-theme="dark"] .border-slate-200,
[data-theme="dark"] .border-zinc-200 {
    border-color: rgba(148, 180, 220, 0.14);
}

[data-theme="dark"] .hero-pattern {
    background-color: #000c1a;
    background-image: radial-gradient(circle at 78% 46%, rgba(0, 114, 255, 0.14), transparent 34%);
}

[data-theme="dark"] .hero-rings {
    background: repeating-radial-gradient(
        circle at 50% 50%,
        transparent 0,
        transparent 46px,
        rgba(0, 114, 255, 0.16) 47px,
        rgba(0, 114, 255, 0.16) 48px
    );
}

[data-theme="dark"] .status-dot,
[data-theme="dark"] .status-dot::after {
    background: #4da3ff;
}

[data-theme="dark"] .process-step-icon {
    background: rgba(0, 114, 255, 0.16);
    box-shadow: 0 0 0 6px #000c1a;
}

[data-theme="dark"] .process-step-title {
    color: #e8eef6;
}

[data-theme="dark"] .process-step-text {
    color: #9fb0c5;
}

[data-theme="dark"] .process-step-head::after {
    border-color: #1e3a5f;
}

[data-theme="dark"] header {
    border-color: rgba(148, 180, 220, 0.14);
}

[data-theme="dark"] .theme-toggle,
[data-theme="dark"] #menu-toggle {
    background: #001327;
    border-color: rgba(148, 180, 220, 0.2);
    color: #e8eef6;
}

[data-theme="dark"] .theme-toggle:hover,
[data-theme="dark"] #menu-toggle:hover {
    background: rgba(0, 114, 255, 0.12);
    border-color: #0072FF;
    color: #4da3ff;
}

[data-theme="dark"] .theme-logo {
    filter: brightness(0) invert(1);
}

[data-theme="dark"] .brand-mark {
    background: #fff;
    border-radius: 0.5rem;
    padding: 0.4rem 0.65rem;
}

[data-theme="dark"] .img-zoom {
    border-color: rgba(148, 180, 220, 0.14);
    background: #000f20;
}

[data-theme="dark"] a.shadow-card:hover,
[data-theme="dark"] .project-card:hover {
    box-shadow: 0 0 0 1px rgba(0, 114, 255, 0.28), 0 18px 40px rgba(0, 0, 0, 0.28);
}

[data-theme="dark"] .hover\:bg-brand-50:hover,
[data-theme="dark"] .group:hover .group-hover\:bg-brand-50 {
    background-color: rgba(0, 114, 255, 0.14);
}

[data-theme="dark"] #mobile-menu a:hover {
    background: rgba(0, 114, 255, 0.12);
    color: #4da3ff;
}

[data-theme="dark"] input,
[data-theme="dark"] select,
[data-theme="dark"] textarea {
    background-color: #000c1a;
    color: #e8eef6;
    border-color: rgba(148, 180, 220, 0.22);
}

[data-theme="dark"] input:hover,
[data-theme="dark"] select:hover,
[data-theme="dark"] textarea:hover {
    border-color: #4da3ff;
}

[data-theme="dark"] .scroll-top {
    background: #001327;
    color: #4da3ff;
    box-shadow: 0 10px 24px rgba(0, 0, 0, 0.35);
}

[data-theme="dark"] .scroll-top-track {
    stroke: #1e3a5f;
}

[data-theme="dark"] .scroll-top.is-visible:hover .scroll-top-bar {
    stroke: #b3d4ff;
}

[data-theme="dark"] .site-toast {
    background: #001327;
    border-color: #14532d;
    box-shadow: 0 12px 32px rgba(0, 0, 0, 0.35);
}

[data-theme="dark"] .site-toast-title {
    color: #e8eef6;
}

[data-theme="dark"] .site-toast-text {
    color: #9fb0c5;
}

[data-theme="dark"] .site-toast-close {
    color: #94a3b8;
}

[data-theme="dark"] .site-toast-close:hover {
    color: #e8eef6;
    background: rgba(255, 255, 255, 0.06);
}

[data-theme="dark"] .bg-red-50 {
    background-color: rgba(127, 29, 29, 0.35);
}

[data-theme="dark"] .border-red-100 {
    border-color: rgba(248, 113, 113, 0.35);
}

[data-theme="dark"] .text-red-800 {
    color: #fecaca;
}

[data-theme="dark"] .page-loader {
    background: #000c1a;
}

[data-theme="dark"] .page-loader-ring {
    border-color: #1e3a5f;
    border-top-color: #0072FF;
}
