:root {
    --bg: #050910;
    --bg-alt: #0c1523;
    --surface: #121f33;
    --surface-2: #0d1828;
    --line: #29405f;
    --line-soft: rgba(151, 178, 207, 0.3);
    --text: #f3f8ff;
    --muted: #9fb7d2;
    --accent: #2de2e6;
    --accent-2: #8ddf9f;
    --accent-3: #ffcf77;
    --danger: #ff8e8e;
    --radius: 1.05rem;
    --radius-sm: 0.82rem;
    --max-width: 1180px;
    --space-1: clamp(0.65rem, 0.5rem + 0.32vw, 0.9rem);
    --space-2: clamp(0.85rem, 0.72rem + 0.42vw, 1.2rem);
    --space-3: clamp(1.1rem, 0.95rem + 0.58vw, 1.55rem);
    --space-4: clamp(1.35rem, 1.15rem + 0.9vw, 2.2rem);
    --space-5: clamp(1.85rem, 1.5rem + 1.35vw, 3.1rem);
    --space-6: clamp(2.4rem, 1.9rem + 2vw, 4.2rem);
}

*,
*::before,
*::after {
    box-sizing: border-box;
}

html,
body {
    margin: 0;
    padding: 0;
}

body {
    min-height: 100vh;
    font-family: "Outfit", sans-serif;
    color: var(--text);
    text-rendering: optimizeLegibility;
    -webkit-font-smoothing: antialiased;
    background:
        radial-gradient(42rem 31rem at 85% 7%, rgba(45, 226, 230, 0.13), transparent 72%),
        radial-gradient(31rem 23rem at 6% 90%, rgba(141, 223, 159, 0.1), transparent 72%),
        linear-gradient(172deg, #040810 2%, #091120 44%, #0d1a2d 100%);
}

img {
    max-width: 100%;
    height: auto;
}

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

[hidden] {
    display: none !important;
}

.site-shell {
    min-height: 100vh;
    display: flex;
    flex-direction: column;
}

.site-header {
    position: sticky;
    top: 0.65rem;
    z-index: 40;
    width: min(var(--max-width), calc(100% - 1.5rem));
    margin: 0.7rem auto 0;
    padding: 0.78rem 1rem;
    border: 1px solid var(--line-soft);
    border-radius: 999px;
    backdrop-filter: blur(11px);
    background: rgba(8, 13, 23, 0.84);
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 0.9rem;
    transition: border-color 0.3s ease, box-shadow 0.3s ease;
}

.site-header.is-scrolled {
    border-color: rgba(45, 226, 230, 0.35);
    box-shadow: 0 12px 28px rgba(0, 0, 0, 0.22);
}

.logo {
    display: inline-flex;
    align-items: center;
    gap: 0.62rem;
    min-width: 0;
}

.logo-image {
    width: 2.05rem;
    height: 2.2rem;
    object-fit: contain;
    display: block;
    flex-shrink: 0;
    transform: translateY(0.02rem);
}

.logo-copy {
    display: grid;
    gap: 0.1rem;
    min-width: 0;
}

.logo-name {
    margin: 0;
    font-size: 1.05rem;
    letter-spacing: 0.01em;
    font-weight: 700;
    line-height: 1;
}

.logo-name span {
    color: var(--accent);
}

.desktop-nav {
    display: inline-flex;
    gap: 1.15rem;
    align-items: center;
}

.nav-link {
    color: #c9d9ea;
    font-size: 0.86rem;
    padding: 0.36rem 0.62rem;
    border-radius: 999px;
    border: 1px solid transparent;
    transition: color 0.2s ease, border-color 0.2s ease, background 0.2s ease;
}

.nav-link:hover,
.nav-link:focus-visible {
    color: #f8fcff;
    border-color: rgba(154, 176, 202, 0.38);
    background: rgba(255, 255, 255, 0.03);
}

.nav-link.is-active {
    border-color: rgba(45, 226, 230, 0.45);
    color: #e9ffff;
    background: rgba(45, 226, 230, 0.08);
}

.btn,
.ghost-btn {
    border-radius: 999px;
    display: inline-flex;
    align-items: center;
    justify-content: center;
    gap: 0.35rem;
    font-weight: 700;
    text-transform: uppercase;
    letter-spacing: 0.08em;
    font-size: 0.74rem;
    line-height: 1;
    padding: 0.82rem 1.28rem;
    cursor: pointer;
    position: relative;
    isolation: isolate;
    overflow: hidden;
    transition: transform 0.26s cubic-bezier(0.2, 0.7, 0.2, 1), box-shadow 0.3s ease, border-color 0.24s ease, background 0.24s ease;
    will-change: transform;
}

.btn::before,
.ghost-btn::before,
.proof-link::before {
    content: "";
    position: absolute;
    inset: -2px;
    border-radius: inherit;
    background: linear-gradient(115deg, transparent 25%, rgba(255, 255, 255, 0.4) 47%, transparent 68%);
    transform: translateX(-140%) skewX(-18deg);
    transition: transform 0.62s cubic-bezier(0.2, 0.7, 0.2, 1);
    pointer-events: none;
}

.btn::after,
.ghost-btn::after,
.proof-link::after {
    content: "";
    position: absolute;
    inset: 0;
    border-radius: inherit;
    box-shadow: inset 0 0 0 1px rgba(231, 246, 255, 0);
    transition: box-shadow 0.24s ease;
    pointer-events: none;
}

.btn {
    background: linear-gradient(135deg, #f1f8ff 0%, #cee8ff 40%, #79f6f8 100%);
    color: #081524;
    border: 1px solid #9fbbd3;
    box-shadow: 0 8px 18px rgba(113, 217, 227, 0.18);
}

.btn:hover,
.btn:focus-visible {
    transform: translateY(-3px) scale(1.01);
    box-shadow: 0 16px 30px rgba(113, 217, 227, 0.28);
}

.ghost-btn {
    color: #d1e3f6;
    border: 1px solid #3a587a;
    background: linear-gradient(140deg, rgba(255, 255, 255, 0.03), rgba(18, 34, 53, 0.46));
    box-shadow: 0 8px 16px rgba(6, 14, 24, 0.24);
}

.ghost-btn:hover,
.ghost-btn:focus-visible {
    border-color: #7ea8d5;
    transform: translateY(-3px) scale(1.01);
    box-shadow: 0 16px 30px rgba(31, 91, 140, 0.24);
}

.btn:hover::before,
.btn:focus-visible::before,
.ghost-btn:hover::before,
.ghost-btn:focus-visible::before,
.proof-link:hover::before,
.proof-link:focus-visible::before {
    transform: translateX(140%) skewX(-18deg);
}

.btn:hover::after,
.btn:focus-visible::after {
    box-shadow: inset 0 0 0 1px rgba(239, 250, 255, 0.62);
}

.ghost-btn:hover::after,
.ghost-btn:focus-visible::after {
    box-shadow: inset 0 0 0 1px rgba(183, 221, 255, 0.42);
}

.btn:active,
.ghost-btn:active,
.proof-link:active {
    transform: translateY(0) scale(0.985);
}

.btn:focus-visible,
.ghost-btn:focus-visible,
.proof-link:focus-visible {
    outline: 2px solid rgba(141, 223, 159, 0.55);
    outline-offset: 2px;
}

.menu-btn {
    display: none;
    width: 2.75rem;
    height: 2.34rem;
    border-radius: 999px;
    border: 1px solid #3a4f68;
    background: transparent;
    flex-direction: column;
    justify-content: center;
    align-items: center;
    gap: 0.3rem;
    padding: 0;
}

.menu-btn span {
    display: block;
    width: 1rem;
    height: 2px;
    background: #d6e6f4;
    transition: transform 0.2s ease, opacity 0.2s ease;
}

.menu-btn[aria-expanded="true"] span:first-child {
    transform: translateY(4px) rotate(45deg);
}

.menu-btn[aria-expanded="true"] span:last-child {
    transform: translateY(-4px) rotate(-45deg);
}

.mobile-menu {
    width: min(var(--max-width), calc(100% - 1.5rem));
    margin: 0.72rem auto 0;
    border: 1px solid #2f4764;
    border-radius: var(--radius);
    background: rgba(8, 14, 25, 0.97);
    padding: 0.9rem;
    display: grid;
    gap: 0.55rem;
    box-shadow: 0 18px 34px rgba(0, 0, 0, 0.28);
}

.mobile-link {
    padding: 0.74rem 0.82rem;
    border-radius: var(--radius-sm);
    border: 1px solid #2a3f59;
    color: #cfe0f3;
}

.mobile-link.is-active {
    border-color: rgba(45, 226, 230, 0.5);
    background: rgba(45, 226, 230, 0.08);
}

.page {
    flex: 1;
    width: min(var(--max-width), calc(100% - 1.5rem));
    margin: 0 auto;
    padding-bottom: var(--space-6);
}

.hero {
    padding: clamp(4.7rem, 7vw, 5.9rem) 0 var(--space-5);
}

.hero-kicker {
    margin: 0;
    text-transform: uppercase;
    letter-spacing: 0.18em;
    color: var(--muted);
    font-size: 0.7rem;
}

.hero-title {
    margin: 0.95rem 0 1rem;
    font-size: clamp(2rem, 6.2vw, 4.8rem);
    line-height: 0.96;
    letter-spacing: -0.03em;
    max-width: 13ch;
}

.hero-title em {
    display: block;
    font-family: "Bodoni Moda", serif;
    font-style: italic;
    font-weight: 600;
    color: var(--accent-2);
    letter-spacing: -0.015em;
}

.hero-subtitle {
    margin: 0;
    max-width: 66ch;
    color: #bfd2e8;
    font-size: clamp(0.98rem, 0.91rem + 0.3vw, 1.08rem);
}

.hero-actions {
    margin-top: 1.6rem;
    display: flex;
    gap: 0.72rem;
    flex-wrap: wrap;
}

.trust-strip {
    margin-top: var(--space-4);
    display: grid;
    grid-template-columns: repeat(3, minmax(0, 1fr));
    gap: 0.85rem;
}

.trust-item {
    border: 1px solid var(--line-soft);
    border-radius: var(--radius-sm);
    background: linear-gradient(164deg, rgba(15, 24, 38, 0.94), rgba(10, 17, 29, 0.94));
    padding: 0.85rem 1rem;
}

.trust-item strong {
    display: block;
    font-size: 0.96rem;
    letter-spacing: -0.01em;
}

.trust-item span {
    display: block;
    margin-top: 0.2rem;
    color: #b0c5dd;
    font-size: 0.84rem;
}

.stat-grid,
.panel-grid,
.service-grid,
.case-grid,
.value-grid,
.team-grid,
.metric-grid,
.proof-grid {
    display: grid;
    gap: 1rem;
}

.stat-grid {
    grid-template-columns: repeat(3, minmax(0, 1fr));
    margin-top: var(--space-4);
}

.stat-card,
.panel,
.service-card,
.case-card,
.value-card,
.team-card,
.contact-card,
.form-wrap,
.timeline,
.case-study,
.metric-card,
.proof-card {
    border-radius: var(--radius);
    border: 1px solid #2d425d;
    background: linear-gradient(164deg, rgba(16, 25, 40, 0.94), rgba(12, 21, 35, 0.94));
}

.stat-card,
.panel,
.service-card,
.case-card,
.value-card,
.team-card,
.contact-card,
.metric-card,
.proof-card {
    padding: var(--space-3);
}

.stat-label {
    margin: 0;
    color: var(--muted);
    font-size: 0.72rem;
    text-transform: uppercase;
    letter-spacing: 0.15em;
}

.stat-value {
    margin: 0.45rem 0 0;
    font-size: clamp(1.3rem, 3.3vw, 2.2rem);
    letter-spacing: -0.03em;
}

.section {
    padding: var(--space-3) 0 var(--space-5);
    content-visibility: auto;
    contain-intrinsic-size: 640px;
}

.section-head {
    display: flex;
    justify-content: space-between;
    align-items: end;
    gap: 1rem;
    margin-bottom: 1.1rem;
}

.section-head p {
    margin: 0;
    color: var(--muted);
    text-transform: uppercase;
    letter-spacing: 0.13em;
    font-size: 0.72rem;
}

.section-head h2 {
    margin: 0;
    font-size: clamp(1.55rem, 4.3vw, 2.95rem);
    letter-spacing: -0.03em;
}

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

.panel h3,
.service-card h3,
.value-card h3,
.team-card h3,
.case-card h3,
.contact-card h3,
.metric-card h3,
.proof-card h3,
.case-study h3 {
    margin: 0 0 0.62rem;
    font-size: 1.14rem;
}

.panel p,
.service-card p,
.value-card p,
.team-card p,
.case-card p,
.contact-card p,
.metric-card p,
.proof-card p {
    margin: 0;
    color: #b9cde2;
}

.pill-list {
    margin: 0.82rem 0 0;
    padding: 0;
    list-style: none;
    display: flex;
    flex-wrap: wrap;
    gap: 0.45rem;
}

.pill-list li {
    border: 1px solid #355475;
    border-radius: 999px;
    padding: 0.42rem 0.62rem;
    font-size: 0.72rem;
    color: #d9e8f8;
    background: rgba(255, 255, 255, 0.02);
}

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

.service-badge,
.case-type {
    margin: 0 0 0.62rem;
    color: var(--accent);
    text-transform: uppercase;
    letter-spacing: 0.16em;
    font-size: 0.67rem;
}

.timeline {
    margin-top: var(--space-3);
    padding: var(--space-3);
}

.timeline-row {
    display: grid;
    grid-template-columns: 56px minmax(0, 1fr);
    gap: 0.86rem;
    padding: 0.84rem 0;
    border-bottom: 1px solid #27405b;
}

.timeline-row:last-child {
    border-bottom: none;
}

.timeline-step {
    margin: 0;
    color: var(--accent-2);
    font-weight: 700;
    letter-spacing: 0.06em;
}

.timeline-copy h4 {
    margin: 0 0 0.25rem;
    font-size: 0.98rem;
}

.timeline-copy p {
    margin: 0;
    color: #b8cadd;
}

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

.case-card img {
    display: block;
    width: 100%;
    height: 210px;
    object-fit: cover;
    border-radius: var(--radius-sm);
    margin-bottom: 0.92rem;
    filter: saturate(0.92) contrast(1.04);
}

.case-card .metric-row {
    margin-top: 0.8rem;
    display: flex;
    flex-wrap: wrap;
    gap: 0.4rem;
}

.metric-badge {
    font-size: 0.72rem;
    color: #112238;
    background: linear-gradient(150deg, #c5f0f1, #8ef2f5);
    border-radius: 999px;
    padding: 0.32rem 0.52rem;
    font-weight: 700;
}

.case-study-wrap {
    display: grid;
    gap: var(--space-4);
}

.case-study {
    overflow: clip;
}

.case-study-grid {
    display: grid;
    grid-template-columns: 0.95fr 1.05fr;
    gap: var(--space-3);
    padding: var(--space-3);
}

.case-study-visual img {
    width: 100%;
    height: clamp(240px, 35vw, 360px);
    object-fit: cover;
    border-radius: var(--radius-sm);
}

.case-study-visual figcaption {
    margin-top: 0.58rem;
    color: #9ab2cc;
    font-size: 0.8rem;
}

.case-meta {
    display: flex;
    flex-wrap: wrap;
    gap: 0.46rem;
    margin-bottom: 0.72rem;
}

.case-meta span {
    border: 1px solid #2f4e6f;
    border-radius: 999px;
    padding: 0.34rem 0.56rem;
    font-size: 0.7rem;
    color: #cde0f4;
    background: rgba(255, 255, 255, 0.02);
}

.case-copy p {
    margin: 0 0 0.85rem;
    color: #bad0e6;
}

.case-points {
    margin: 0;
    padding: 0;
    list-style: none;
    display: grid;
    gap: 0.55rem;
}

.case-points li {
    border: 1px solid #335171;
    border-radius: var(--radius-sm);
    padding: 0.58rem 0.72rem;
    background: rgba(255, 255, 255, 0.02);
    color: #d6e7f8;
    font-size: 0.9rem;
}

.proof-row {
    margin-top: 0.95rem;
    display: flex;
    flex-wrap: wrap;
    align-items: center;
    gap: 0.56rem;
}

.proof-link {
    display: inline-flex;
    align-items: center;
    gap: 0.3rem;
    font-size: 0.78rem;
    text-transform: uppercase;
    letter-spacing: 0.11em;
    color: #041b2f;
    font-weight: 700;
    border: 1px solid #a6d3e1;
    border-radius: 999px;
    padding: 0.6rem 0.88rem;
    background: linear-gradient(140deg, #ecf7ff, #c7e8ff);
    position: relative;
    isolation: isolate;
    overflow: hidden;
    will-change: transform;
    transition: transform 0.26s cubic-bezier(0.2, 0.7, 0.2, 1), box-shadow 0.28s ease, border-color 0.24s ease, background 0.24s ease;
    box-shadow: 0 8px 16px rgba(97, 162, 201, 0.2);
}

.proof-link:hover,
.proof-link:focus-visible {
    transform: translateY(-3px) scale(1.01);
    box-shadow: 0 16px 30px rgba(97, 162, 201, 0.27);
    border-color: #c3e6f5;
}

.proof-link:hover::after,
.proof-link:focus-visible::after {
    box-shadow: inset 0 0 0 1px rgba(247, 253, 255, 0.75);
}

.source-note {
    margin: 0;
    font-size: 0.76rem;
    color: #a7bfd8;
}

.source-note a {
    color: #d8f2ff;
    text-decoration: underline;
    text-underline-offset: 0.12em;
}

.result-list {
    margin: var(--space-3) 0 0;
    padding: 0;
    list-style: none;
    border-top: 1px solid #2a405d;
}

.result-list li {
    display: grid;
    grid-template-columns: auto 1fr;
    gap: 0.95rem;
    padding: 0.82rem 0;
    border-bottom: 1px solid #2a405d;
}

.result-list strong {
    color: var(--accent-2);
    font-weight: 700;
}

.value-grid,
.team-grid,
.metric-grid,
.proof-grid {
    grid-template-columns: repeat(3, minmax(0, 1fr));
}

.team-role {
    margin: 0 0 0.44rem;
    color: var(--accent);
    letter-spacing: 0.13em;
    text-transform: uppercase;
    font-size: 0.66rem;
}

.metric-card strong {
    display: block;
    margin: 0 0 0.48rem;
    font-size: clamp(1.2rem, 2.6vw, 1.8rem);
    letter-spacing: -0.03em;
    color: #ecf6ff;
}

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

.contact-stack {
    display: grid;
    gap: 1rem;
}

.form-wrap {
    padding: var(--space-3);
}

.contact-form {
    display: grid;
    gap: 0.82rem;
}

.contact-form label {
    display: grid;
    gap: 0.42rem;
    color: #cbdbec;
    letter-spacing: 0.06em;
    font-size: 0.75rem;
    text-transform: uppercase;
}

.contact-form input,
.contact-form textarea,
.contact-form select {
    border-radius: 0.78rem;
    border: 1px solid #345272;
    background: #0f1a2c;
    color: #eef7ff;
    padding: 0.78rem 0.85rem;
    font: inherit;
    min-height: 2.8rem;
}

.contact-form textarea {
    min-height: 7.5rem;
    resize: vertical;
}

.contact-form input:focus,
.contact-form textarea:focus,
.contact-form select:focus {
    outline: 2px solid rgba(45, 226, 230, 0.55);
    outline-offset: 1px;
}

.contact-form .btn[disabled] {
    opacity: 0.7;
    cursor: wait;
    transform: none;
    box-shadow: none;
}

.contact-form .btn[disabled]::before,
.contact-form .btn[disabled]::after {
    display: none;
}

.form-status {
    min-height: 1.25rem;
    margin: 0.2rem 0 0;
    font-size: 0.86rem;
}

.form-status.is-success {
    color: var(--accent-2);
}

.form-status.is-error {
    color: var(--danger);
}

.contact-meta {
    margin-top: 0.8rem;
    color: #a9bed6;
    font-size: 0.87rem;
}

.site-footer {
    width: min(var(--max-width), calc(100% - 1.5rem));
    margin: 0 auto 1.9rem;
    padding-top: 1.22rem;
    border-top: 1px solid #27405d;
    display: flex;
    justify-content: space-between;
    align-items: center;
    gap: 1rem;
    color: #a7bdd4;
    font-size: 0.8rem;
}

.footer-links {
    display: inline-flex;
    align-items: center;
    gap: 0.7rem;
    flex-wrap: wrap;
}

.reveal {
    opacity: 0;
    transform: translateY(18px);
    transition: opacity 0.55s ease, transform 0.55s ease;
    transition-delay: var(--delay, 0ms);
}

.reveal.is-visible {
    opacity: 1;
    transform: translateY(0);
}

.not-found {
    display: grid;
    place-items: center;
    min-height: 100vh;
    text-align: center;
    padding: 1.5rem;
}

.not-found h1 {
    margin: 0 0 0.55rem;
    font-size: clamp(2.2rem, 7vw, 4.5rem);
}

.not-found p {
    margin: 0 0 1.3rem;
    color: var(--muted);
}

@media (max-width: 1100px) {
    .panel-grid,
    .case-grid,
    .value-grid,
    .team-grid,
    .metric-grid,
    .proof-grid {
        grid-template-columns: repeat(2, minmax(0, 1fr));
    }

    .case-study-grid {
        grid-template-columns: 1fr;
    }
}

@media (max-width: 880px) {
    .desktop-nav,
    .desktop-cta {
        display: none;
    }

    .menu-btn {
        display: inline-flex;
    }

    .hero {
        padding-top: 4.9rem;
    }

    .hero-title {
        max-width: 15ch;
    }

    .stat-grid,
    .panel-grid,
    .service-grid,
    .case-grid,
    .value-grid,
    .team-grid,
    .metric-grid,
    .proof-grid,
    .trust-strip {
        grid-template-columns: 1fr;
    }

    .contact-layout {
        grid-template-columns: 1fr;
    }

    .section-head {
        flex-direction: column;
        align-items: flex-start;
    }

    .site-footer {
        flex-direction: column;
        align-items: flex-start;
    }
}

@media (max-width: 560px) {
    .site-header,
    .page,
    .mobile-menu,
    .site-footer {
        width: calc(100% - 1rem);
    }

    .site-header {
        top: 0.5rem;
        margin-top: 0.45rem;
        padding-inline: 0.78rem;
    }

    .btn,
    .ghost-btn {
        width: 100%;
    }

    .hero-actions {
        width: 100%;
    }

    .timeline-row {
        grid-template-columns: 42px minmax(0, 1fr);
    }

    .case-study-grid {
        padding: 0.95rem;
    }

    .case-points li {
        font-size: 0.84rem;
    }
}

@media (prefers-reduced-motion: reduce) {
    *,
    *::before,
    *::after {
        animation-duration: 0.01ms !important;
        animation-iteration-count: 1 !important;
        transition-duration: 0.01ms !important;
        scroll-behavior: auto !important;
    }

    .reveal {
        opacity: 1;
        transform: none;
    }

    .btn:hover,
    .btn:focus-visible,
    .ghost-btn:hover,
    .ghost-btn:focus-visible,
    .proof-link:hover,
    .proof-link:focus-visible,
    .btn:active,
    .ghost-btn:active,
    .proof-link:active {
        transform: none;
    }
}
