:root {
    --ink: #0b1320;
    --ink-soft: #273548;
    --muted: #697789;
    --line: #dfe5ec;
    --paper: #ffffff;
    --paper-soft: #f5f7fa;
    --blue: #1459d9;
    --blue-dark: #0c377e;
    --red: #d9362b;
    --navy: #071426;
    --navy-2: #0d213b;
    --container: 1180px;
    --radius: 24px;
}

* {
    box-sizing: border-box;
    margin: 0;
    padding: 0;
}

html {
    scroll-behavior: smooth;
}

body {
    font-family: Inter, ui-sans-serif, system-ui, -apple-system, BlinkMacSystemFont, "Segoe UI", Arial, sans-serif;
    color: var(--ink);
    background: var(--paper);
    line-height: 1.6;
    -webkit-font-smoothing: antialiased;
}

body.menu-open {
    overflow: hidden;
}

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

button,
input,
select,
textarea {
    font: inherit;
}

.container {
    width: min(calc(100% - 40px), var(--container));
    margin-inline: auto;
}

/* Header */

.header {
    position: sticky;
    top: 0;
    z-index: 1000;
    border-bottom: 1px solid rgba(11, 19, 32, 0.08);
    background: rgba(255, 255, 255, 0.93);
    backdrop-filter: blur(15px);
}

.nav {
    height: 82px;
    display: flex;
    align-items: center;
    justify-content: space-between;
}

.logo-area {
    display: inline-flex;
    align-items: center;
}

.logo-slot {
    min-width: 180px;
    height: 48px;
    display: flex;
    align-items: center;
}

.logo-slot span {
    font-size: 1rem;
    font-weight: 800;
    letter-spacing: 0.12em;
}

.logo-slot img {
    width: auto;
    max-width: 200px;
    max-height: 48px;
    object-fit: contain;
}

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

.nav-menu a {
    color: var(--ink-soft);
    font-size: 0.9rem;
    font-weight: 600;
}

.nav-menu a:hover {
    color: var(--blue);
}

.contact-link {
    padding: 10px 17px;
    border: 1px solid var(--ink);
    border-radius: 999px;
}

.menu-button {
    display: none;
    width: 44px;
    height: 44px;
    border: 1px solid var(--line);
    border-radius: 50%;
    background: var(--paper);
}

.menu-button span {
    display: block;
    width: 18px;
    height: 2px;
    margin: 4px auto;
    background: var(--ink);
    transition: 0.25s ease;
}

/* Hero */

.hero {
    position: relative;
    overflow: hidden;
    padding: 105px 0 120px;
    border-bottom: 1px solid var(--line);
}

.hero::before {
    content: "";
    position: absolute;
    top: -260px;
    right: -240px;
    width: 660px;
    height: 660px;
    border: 1px solid #d9e3f4;
    border-radius: 50%;
}

.hero::after {
    content: "";
    position: absolute;
    top: -110px;
    right: -80px;
    width: 400px;
    height: 400px;
    border: 1px solid #e5eaf0;
    border-radius: 50%;
}

.hero-layout {
    position: relative;
    z-index: 1;
    display: grid;
    grid-template-columns: 1.05fr 0.95fr;
    gap: 80px;
    align-items: center;
}

.kicker,
.eyebrow {
    color: var(--blue);
    font-size: 0.73rem;
    font-weight: 800;
    letter-spacing: 0.12em;
    text-transform: uppercase;
}

.hero h1 {
    max-width: 760px;
    margin-top: 24px;
    font-size: clamp(3rem, 5.8vw, 5.7rem);
    line-height: 0.98;
    letter-spacing: -0.06em;
}

.hero h1 span {
    display: block;
    color: var(--blue);
}

.hero-copy > p {
    max-width: 650px;
    margin-top: 27px;
    color: var(--muted);
    font-size: 1.06rem;
}

.hero-buttons {
    display: flex;
    flex-wrap: wrap;
    gap: 18px;
    margin-top: 35px;
}

.btn {
    min-height: 52px;
    display: inline-flex;
    align-items: center;
    justify-content: center;
    gap: 9px;
    border-radius: 999px;
    padding: 0 22px;
    font-size: 0.9rem;
    font-weight: 700;
    transition: 0.2s ease;
}

.btn-primary {
    color: #fff;
    background: var(--ink);
}

.btn-primary:hover {
    background: var(--blue);
    transform: translateY(-2px);
}

.btn-text {
    color: var(--ink);
}

.btn-text span {
    color: var(--red);
    font-size: 1.15rem;
}

/* Hero visual */

.hero-visual {
    position: relative;
    min-height: 500px;
}

.visual-main {
    position: absolute;
    inset: 25px 0 25px 50px;
    border: 1px solid #cfd8e4;
    border-radius: 32px;
    background:
        linear-gradient(145deg, #f8fafc, #edf2f7);
    box-shadow: 0 32px 80px rgba(20, 89, 217, 0.12);
    overflow: hidden;
}

.visual-top {
    height: 66px;
    display: flex;
    align-items: center;
    justify-content: space-between;
    padding: 0 26px;
    border-bottom: 1px solid #d7dfe9;
    color: #657387;
    font-size: 0.73rem;
    font-weight: 700;
    letter-spacing: 0.08em;
    text-transform: uppercase;
}

.visual-dot {
    width: 10px;
    height: 10px;
    border-radius: 50%;
    background: var(--red);
}

.visual-grid {
    height: calc(100% - 66px);
    display: grid;
    grid-template-columns: repeat(2, 1fr);
    gap: 1px;
    background: #d9e1eb;
}

.metric {
    display: flex;
    flex-direction: column;
    justify-content: flex-end;
    padding: 28px;
    background: #fff;
}

.metric.wide {
    grid-column: 1 / -1;
}

.metric small {
    color: var(--blue);
    font-size: 0.72rem;
    font-weight: 800;
    letter-spacing: 0.08em;
    text-transform: uppercase;
}

.metric strong {
    margin-top: 5px;
    font-size: 2.5rem;
    line-height: 1;
    letter-spacing: -0.05em;
}

.metric p {
    max-width: 300px;
    margin-top: 13px;
    color: var(--muted);
    font-size: 0.8rem;
}

.floating-card {
    position: absolute;
    width: 145px;
    padding: 18px;
    border-radius: 18px;
    color: #fff;
    box-shadow: 0 20px 45px rgba(11,19,32,0.16);
}

.floating-card span {
    font-size: 0.7rem;
    opacity: 0.7;
}

.floating-card p {
    margin-top: 13px;
    font-size: 0.88rem;
    font-weight: 700;
}

.floating-blue {
    top: 0;
    left: 0;
    background: var(--blue);
}

.floating-red {
    right: -15px;
    bottom: 0;
    background: var(--red);
}

/* Intro */

.intro-strip {
    padding: 38px 0;
    background: var(--paper-soft);
    border-bottom: 1px solid var(--line);
}

.intro-grid {
    display: grid;
    grid-template-columns: 0.28fr 1fr;
    gap: 50px;
    align-items: start;
}

.intro-label {
    color: var(--red);
    font-size: 0.75rem;
    font-weight: 800;
    text-transform: uppercase;
    letter-spacing: 0.1em;
}

.intro-text {
    max-width: 890px;
    font-size: clamp(1.25rem, 2.5vw, 2rem);
    line-height: 1.35;
    letter-spacing: -0.025em;
}

/* Sections */

.section {
    padding: 110px 0;
}

.section-top {
    display: grid;
    grid-template-columns: 0.2fr 1fr;
    gap: 55px;
    margin-bottom: 60px;
}

.section-index {
    color: #a1adba;
    font-size: 0.78rem;
    font-weight: 800;
}

.section-index.light,
.eyebrow.light {
    color: #7691b4;
}

.section-top h2,
.approach-heading h2,
.contact-copy h2 {
    max-width: 800px;
    margin-top: 12px;
    font-size: clamp(2.3rem, 4.5vw, 4.3rem);
    line-height: 1.05;
    letter-spacing: -0.045em;
}

/* Services */

.service-list {
    border-top: 1px solid var(--ink);
}

.service-row {
    display: grid;
    grid-template-columns: 0.9fr 1.1fr 0.9fr;
    gap: 55px;
    padding: 38px 0;
    border-bottom: 1px solid var(--line);
}

.service-title {
    display: flex;
    gap: 22px;
    align-items: flex-start;
}

.service-title span {
    margin-top: 5px;
    color: var(--red);
    font-size: 0.72rem;
    font-weight: 800;
}

.service-title h3 {
    font-size: 1.35rem;
    line-height: 1.25;
    letter-spacing: -0.03em;
}

.service-row > p {
    color: var(--muted);
    font-size: 0.91rem;
}

.service-row ul {
    display: grid;
    gap: 8px;
    list-style: none;
}

.service-row li {
    position: relative;
    padding-left: 17px;
    color: var(--ink-soft);
    font-size: 0.84rem;
}

.service-row li::before {
    content: "";
    width: 5px;
    height: 5px;
    position: absolute;
    top: 9px;
    left: 0;
    border-radius: 50%;
    background: var(--blue);
}

/* Approach */

.approach {
    color: #fff;
    background: var(--navy);
}

.approach-grid {
    display: grid;
    grid-template-columns: 0.85fr 1.15fr;
    gap: 100px;
}

.approach-heading h2 {
    color: #fff;
}

.approach-content {
    padding-top: 55px;
}

.approach-content > p {
    max-width: 650px;
    margin-bottom: 22px;
    color: #aabbd0;
    font-size: 1rem;
}

.approach-cards {
    display: grid;
    grid-template-columns: repeat(3, 1fr);
    gap: 1px;
    margin-top: 55px;
    border: 1px solid rgba(255,255,255,0.1);
    background: rgba(255,255,255,0.1);
}

.approach-cards div {
    min-height: 170px;
    display: flex;
    flex-direction: column;
    justify-content: flex-end;
    padding: 22px;
    background: var(--navy-2);
}

.approach-cards strong {
    font-size: 0.95rem;
}

.approach-cards span {
    margin-top: 7px;
    color: #8ea5c1;
    font-size: 0.78rem;
}

/* Process */

.process-grid {
    display: grid;
    grid-template-columns: repeat(4, 1fr);
    gap: 16px;
}

.process-step {
    min-height: 280px;
    display: flex;
    flex-direction: column;
    padding: 26px;
    border: 1px solid var(--line);
    border-radius: 18px;
    background: var(--paper);
}

.process-step span {
    color: var(--red);
    font-size: 0.72rem;
    font-weight: 800;
}

.process-step h3 {
    margin-top: auto;
    font-size: 1.08rem;
}

.process-step p {
    margin-top: 10px;
    color: var(--muted);
    font-size: 0.82rem;
}

/* Contact */

.contact {
    background: var(--paper-soft);
}

.contact-shell {
    display: grid;
    grid-template-columns: 0.8fr 1.2fr;
    gap: 80px;
    padding: 65px;
    border-radius: 34px;
    color: #fff;
    background:
        linear-gradient(135deg, #071426, #0b2441);
}

.contact-copy > p {
    max-width: 520px;
    margin-top: 22px;
    color: #a7b8cc;
}

.contact-meta {
    display: flex;
    flex-direction: column;
    margin-top: 45px;
    padding-top: 22px;
    border-top: 1px solid rgba(255,255,255,0.1);
}

.contact-meta strong {
    letter-spacing: 0.1em;
}

.contact-meta span {
    margin-top: 7px;
    color: #8398b2;
    font-size: 0.75rem;
}

.contact-form {
    padding: 34px;
    border-radius: 22px;
    background: #fff;
    color: var(--ink);
}

.field-grid {
    display: grid;
    grid-template-columns: repeat(2, 1fr);
    gap: 16px;
}

.field {
    margin-bottom: 18px;
}

.field label {
    display: block;
    margin-bottom: 7px;
    color: var(--ink-soft);
    font-size: 0.76rem;
    font-weight: 700;
}

.field input,
.field select,
.field textarea {
    width: 100%;
    border: 1px solid #d9e0e8;
    border-radius: 10px;
    outline: 0;
    padding: 13px 14px;
    color: var(--ink);
    background: #fafbfc;
}

.field input,
.field select {
    height: 50px;
}

.field textarea {
    min-height: 150px;
    resize: vertical;
}

.field input:focus,
.field select:focus,
.field textarea:focus {
    border-color: var(--blue);
    background: #fff;
    box-shadow: 0 0 0 4px rgba(20,89,217,0.08);
}

.submit-button {
    width: 100%;
    min-height: 54px;
    position: relative;
    border: 0;
    border-radius: 999px;
    color: #fff;
    background: var(--blue);
    font-weight: 800;
    cursor: pointer;
}

.submit-button:hover {
    background: var(--blue-dark);
}

.submit-button.is-loading .submit-text {
    opacity: 0;
}

.loader {
    width: 20px;
    height: 20px;
    position: absolute;
    left: calc(50% - 10px);
    top: calc(50% - 10px);
    display: none;
    border: 2px solid rgba(255,255,255,0.35);
    border-top-color: #fff;
    border-radius: 50%;
    animation: spin 0.7s linear infinite;
}

.submit-button.is-loading .loader {
    display: block;
}

.form-message {
    min-height: 22px;
    margin-top: 13px;
    text-align: center;
    font-size: 0.8rem;
}

.form-message.success {
    color: #1c874d;
}

.form-message.error {
    color: var(--red);
}

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

/* Footer */

.footer {
    background: #fff;
    border-top: 1px solid var(--line);
}

.footer-inner {
    min-height: 180px;
    display: grid;
    grid-template-columns: 1fr auto;
    gap: 28px;
    align-items: center;
    padding-top: 35px;
    padding-bottom: 35px;
}

.footer-brand {
    display: flex;
    flex-direction: column;
}

.footer-brand strong {
    letter-spacing: 0.1em;
}

.footer-brand span {
    margin-top: 5px;
    color: var(--muted);
    font-size: 0.75rem;
}

.footer-nav {
    display: flex;
    gap: 24px;
    font-size: 0.8rem;
    font-weight: 600;
}

.footer-inner > p {
    grid-column: 1 / -1;
    padding-top: 20px;
    border-top: 1px solid var(--line);
    color: #8b97a6;
    font-size: 0.72rem;
}

/* Responsive */

@media (max-width: 1000px) {
    .hero-layout,
    .approach-grid,
    .contact-shell {
        grid-template-columns: 1fr;
    }

    .hero-layout {
        gap: 65px;
    }

    .hero-visual {
        min-height: 480px;
    }

    .service-row {
        grid-template-columns: 0.8fr 1.2fr;
    }

    .service-row ul {
        grid-column: 2;
    }

    .approach-grid {
        gap: 35px;
    }

    .approach-content {
        padding-top: 0;
    }

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

    .contact-shell {
        gap: 50px;
        padding: 50px;
    }
}

@media (max-width: 780px) {
    .nav {
        height: 72px;
    }

    .menu-button {
        display: block;
    }

    .nav-menu {
        position: fixed;
        inset: 72px 0 auto 0;
        height: calc(100vh - 72px);
        display: flex;
        flex-direction: column;
        align-items: stretch;
        gap: 0;
        padding: 24px 20px;
        background: #fff;
        transform: translateX(100%);
        transition: transform 0.25s ease;
    }

    .nav-menu.open {
        transform: translateX(0);
    }

    .nav-menu a {
        padding: 17px 8px;
        border-bottom: 1px solid var(--line);
        font-size: 1rem;
    }

    .contact-link {
        margin-top: 18px;
        text-align: center;
        border-radius: 999px;
    }

    .menu-button.active span:first-child {
        transform: translateY(6px) rotate(45deg);
    }

    .menu-button.active span:nth-child(2) {
        opacity: 0;
    }

    .menu-button.active span:last-child {
        transform: translateY(-6px) rotate(-45deg);
    }

    .hero {
        padding-top: 80px;
    }

    .hero h1 {
        font-size: clamp(2.9rem, 13vw, 4.8rem);
    }

    .intro-grid,
    .section-top {
        grid-template-columns: 1fr;
        gap: 18px;
    }

    .service-row {
        grid-template-columns: 1fr;
        gap: 20px;
    }

    .service-row ul {
        grid-column: auto;
    }

    .approach-cards {
        grid-template-columns: 1fr;
    }

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

    .field-grid {
        grid-template-columns: 1fr;
        gap: 0;
    }

    .contact-shell {
        padding: 35px 24px;
    }

    .footer-inner {
        grid-template-columns: 1fr;
    }

    .footer-inner > p {
        grid-column: auto;
    }
}

@media (max-width: 560px) {
    .container {
        width: min(calc(100% - 28px), var(--container));
    }

    .hero {
        padding-bottom: 85px;
    }

    .hero-buttons {
        flex-direction: column;
        align-items: stretch;
    }

    .hero-visual {
        min-height: 440px;
    }

    .visual-main {
        inset: 20px 0;
    }

    .floating-card {
        width: 125px;
    }

    .floating-blue {
        left: -5px;
    }

    .floating-red {
        right: -5px;
    }

    .metric {
        padding: 20px;
    }

    .metric strong {
        font-size: 2rem;
    }

    .section {
        padding: 80px 0;
    }

    .section-top h2,
    .approach-heading h2,
    .contact-copy h2 {
        font-size: 2.3rem;
    }

    .contact-form {
        padding: 24px 18px;
    }
}
