:root {
    color-scheme: dark;
    --bg: #061018;
    --bg-alt: #0a1620;
    --surface: #101c28;
    --border: rgba(180, 206, 230, 0.12);
    --text: #f4f8fc;
    --muted: #9eb0c2;
    --accent: #2f6bff;
    --accent-hover: #4b82ff;
    --shadow: 0 24px 60px rgba(0, 0, 0, 0.35);
    --header-bg: rgba(6, 16, 24, 0.82);
    --radius: 18px;
    --font: 'Segoe UI', 'Helvetica Neue', Helvetica, Arial, sans-serif;
    --max: 1120px;
}

[data-theme='light'] {
    color-scheme: light;
    --bg: #f4f7fb;
    --bg-alt: #eef3f8;
    --surface: #ffffff;
    --border: rgba(16, 32, 48, 0.1);
    --text: #102033;
    --muted: #4d6174;
    --accent: #2f6bff;
    --accent-hover: #1d58e8;
    --shadow: 0 18px 40px rgba(16, 32, 48, 0.08);
    --header-bg: rgba(244, 247, 251, 0.86);
}

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

html {
    scroll-behavior: smooth;
}

body {
    margin: 0;
    font-family: var(--font);
    background: var(--bg);
    color: var(--text);
    line-height: 1.6;
}

img {
    max-width: 100%;
    display: block;
}

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

h1,
h2,
h3,
p,
ul,
ol {
    margin: 0;
}

h1,
h2,
h3 {
    letter-spacing: -0.03em;
    line-height: 1.15;
}

h1 {
    font-size: clamp(2.2rem, 5vw, 4.4rem);
    font-weight: 720;
    max-width: 18ch;
}

h2 {
    font-size: clamp(1.8rem, 3.4vw, 2.8rem);
    max-width: 18ch;
}

h3 {
    font-size: 1.1rem;
}

.lede,
.lede-sm {
    color: var(--muted);
    font-size: 1.1rem;
    max-width: 42ch;
}

.container {
    width: min(calc(100% - 2rem), var(--max));
    margin-inline: auto;
}

.skip-link {
    position: absolute;
    left: 1rem;
    top: -4rem;
    z-index: 20;
    padding: 0.6rem 0.9rem;
    background: var(--accent);
    color: #fff;
    border-radius: 999px;
}

.skip-link:focus {
    top: 1rem;
}

.visually-hidden,
.hp {
    position: absolute;
    width: 1px;
    height: 1px;
    padding: 0;
    margin: -1px;
    overflow: hidden;
    clip: rect(0, 0, 0, 0);
    white-space: nowrap;
    border: 0;
}

.site-header {
    position: sticky;
    top: 0;
    z-index: 10;
    background: var(--header-bg);
    backdrop-filter: blur(16px);
    border-bottom: 1px solid var(--border);
}

.header-inner {
    display: flex;
    align-items: center;
    justify-content: space-between;
    min-height: 72px;
    gap: 1rem;
}

.logo {
    display: flex;
    align-items: center;
    flex-shrink: 0;
}

.logo-img {
    display: block;
    height: 52px;
    width: auto;
}

.logo-img-light {
    display: none;
}

[data-theme='light'] .logo-img-dark {
    display: none;
}

[data-theme='light'] .logo-img-light {
    display: block;
}

.site-nav {
    display: flex;
    align-items: center;
    gap: 1.4rem;
}

.site-nav a:not(.btn) {
    color: var(--muted);
    font-size: 0.95rem;
}

.site-nav a:not(.btn):hover {
    color: var(--text);
}

.nav-toggle {
    display: none;
    width: 42px;
    height: 42px;
    border: 1px solid var(--border);
    background: transparent;
    border-radius: 12px;
    padding: 0;
    flex-direction: column;
    justify-content: center;
    align-items: center;
    gap: 6px;
    color: var(--text);
}

.nav-toggle-bar {
    display: block;
    width: 16px;
    height: 1.5px;
    background: currentColor;
}

.theme-toggle {
    width: 38px;
    height: 38px;
    border-radius: 999px;
    border: 1px solid var(--border);
    background: var(--surface);
    color: var(--text);
    display: grid;
    place-items: center;
    padding: 0;
    line-height: 0;
    cursor: pointer;
}

.theme-icon {
    grid-area: 1 / 1;
    display: grid;
    place-items: center;
    line-height: 0;
}

.theme-icon svg {
    display: block;
}

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

[data-theme='light'] .theme-icon-sun {
    display: none;
}

[data-theme='light'] .theme-icon-moon {
    display: grid;
}

.btn {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    min-height: 44px;
    padding: 0.7rem 1.15rem;
    border-radius: 999px;
    border: 1px solid transparent;
    font: inherit;
    font-size: 0.95rem;
    cursor: pointer;
}

.btn-primary {
    background: var(--accent);
    color: #fff;
    gap: 0.45rem;
}

.btn-arrow {
    display: block;
    flex-shrink: 0;
}

.btn-primary:hover {
    background: var(--accent-hover);
}

.hero {
    position: relative;
    isolation: isolate;
    overflow: hidden;
    min-height: calc(100vh - 72px);
    display: grid;
    align-items: start;
    padding: 3.25rem 0 18rem;
}

.hero-art {
    position: absolute;
    inset: auto 0 0 0;
    height: 70%;
    z-index: -1;
    pointer-events: none;
    mask-image: linear-gradient(to bottom, transparent 0%, #000 16%);
}

.hero-mountains {
    position: absolute;
    inset: 0;
    width: 100%;
    height: 100%;
    object-fit: cover;
    object-position: 74% 40%;
}

.hero-mountains-light {
    display: none;
}

[data-theme='light'] .hero-mountains-dark {
    display: none;
}

[data-theme='light'] .hero-mountains-light {
    display: block;
    object-position: 70% bottom;
}

[data-theme='light'] .hero-art {
    mask-image: linear-gradient(
        to bottom,
        transparent 0%,
        rgb(0 0 0 / 0.2) 16%,
        rgb(0 0 0 / 0.55) 34%,
        #000 52%
    );
}

[data-theme='light'] .hero .lede {
    color: var(--text);
}

[data-theme='light'] .hero .pills li {
    color: #243646;
    background: rgb(255 255 255 / 0.92);
    border-color: rgb(16 32 48 / 0.14);
}

.hero-inner {
    display: grid;
    justify-items: start;
    gap: 1.4rem;
}

.hero-actions {
    display: flex;
    flex-wrap: wrap;
    gap: 0.75rem;
}

.pills {
    display: flex;
    flex-wrap: wrap;
    gap: 0.6rem;
    padding: 0;
    list-style: none;
    margin-top: 0.6rem;
}

.pills li {
    padding: 0.45rem 0.85rem;
    border: 1px solid var(--border);
    border-radius: 999px;
    color: var(--muted);
    font-size: 0.88rem;
    background: color-mix(in srgb, var(--bg) 70%, transparent);
}

.band {
    padding: 2rem 0;
    border-block: 1px solid var(--border);
}

.eyebrow {
    color: var(--muted);
    text-transform: uppercase;
    letter-spacing: 0.12em;
    font-size: 0.75rem;
    margin-bottom: 0.75rem;
}

.logo-row {
    display: flex;
    flex-wrap: wrap;
    align-items: center;
    justify-content: flex-start;
    gap: 1.25rem 2rem;
    list-style: none;
    padding: 0;
    margin: 0.35rem 0 0;
}

.logo-row li {
    display: flex;
    align-items: center;
}

.logo-row img {
    display: block;
    height: 28px;
    width: auto;
    filter: brightness(0) invert(1);
    opacity: 0.86;
}

.logo-row img.logo-natwest {
    filter: none;
    opacity: 1;
}

.logo-row img.logo-natwest-light {
    display: none;
}

[data-theme='light'] .logo-row img.logo-natwest-dark {
    display: none;
}

[data-theme='light'] .logo-row img.logo-natwest-light {
    display: block;
}

[data-theme='light'] .logo-row img {
    filter: none;
    opacity: 1;
}

.section,
#home {
    scroll-margin-top: 84px;
}

.section {
    padding: 5.5rem 0;
}

.section-alt {
    background: var(--bg-alt);
}

.section-intro {
    display: grid;
    gap: 0.8rem;
    margin-bottom: 2.2rem;
}

.section-intro p,
.card p {
    color: var(--muted);
}

.card-grid {
    display: grid;
    gap: 1rem;
    list-style: none;
    padding: 0;
}

.card-grid.four,
.card-grid.three,
.tech-grid,
.stats {
    grid-template-columns: 1fr;
}

.card {
    background: var(--surface);
    border: 1px solid var(--border);
    border-radius: var(--radius);
    padding: 1.35rem;
    box-shadow: var(--shadow);
    display: grid;
    gap: 0.6rem;
}

.icon {
    width: 42px;
    height: 42px;
    border-radius: 12px;
    display: grid;
    place-items: center;
    color: #8eb8ff;
    background: color-mix(in srgb, var(--accent) 14%, transparent);
}

.tech-grid {
    display: grid;
    gap: 0.8rem;
    list-style: none;
    padding: 0;
}

.tech-grid li {
    border: 1px solid var(--border);
    border-radius: 16px;
    padding: 1rem 1.1rem;
    background: var(--surface);
}

.split {
    display: grid;
    gap: 2rem;
    align-items: center;
}

.ai-copy {
    display: grid;
    justify-items: start;
    gap: 0.15rem;
}

.ai-copy h2 {
    max-width: none;
    margin-bottom: 0.85rem;
    font-weight: 760;
}

.ai-copy .lede-sm {
    margin-bottom: 1.35rem;
}

.ai-steps {
    list-style: none;
    padding: 0;
    margin: 0;
    display: grid;
    gap: 0.9rem;
}

.ai-step {
    position: relative;
    display: grid;
    grid-template-columns: 4.85rem 2.35rem minmax(0, 1fr);
    align-items: center;
    column-gap: 0.85rem;
    min-height: 96px;
    padding: 0.95rem 1.2rem 0.95rem 0;
    border-radius: 16px;
    overflow: hidden;
    background:
        linear-gradient(180deg, rgb(28 62 108 / 0.55), rgb(8 22 40 / 0.2)),
        #081624;
    border: 1px solid rgb(110 170 230 / 0.18);
    box-shadow: inset 0 1px 0 rgb(255 255 255 / 0.06);
}

.ai-step::before {
    content: '';
    position: absolute;
    inset: 0 auto 0 0;
    width: 5.55rem;
    background: linear-gradient(165deg, #3b84ff 0%, #1e61ee 48%, #154ecc 100%);
    clip-path: polygon(0 0, 70% 0, 100% 50%, 70% 100%, 0 100%);
}

.ai-step-index,
.ai-step-icon,
.ai-step-copy {
    position: relative;
    z-index: 1;
}

.ai-step-index {
    color: #fff;
    font-size: 0.95rem;
    font-weight: 650;
    letter-spacing: 0.04em;
    padding-left: 1.15rem;
}

.ai-step-icon {
    display: grid;
    place-items: center;
    color: #d7e8ff;
}

.ai-step-icon svg {
    display: block;
}

.ai-step-copy {
    display: grid;
    gap: 0.12rem;
    min-width: 0;
}

.ai-step-copy strong {
    font-size: 1.05rem;
    letter-spacing: -0.02em;
}

.ai-step-copy p {
    color: #9eb4c9;
    font-size: 0.92rem;
    line-height: 1.35;
}

[data-theme='light'] .ai-step {
    background: #fff;
    border-color: rgb(16 32 48 / 0.08);
    box-shadow: 0 12px 28px rgb(16 32 48 / 0.06);
}

[data-theme='light'] .ai-step-icon {
    color: #1d5fe0;
}

[data-theme='light'] .ai-step-copy p {
    color: #4d6174;
}

.stats {
    display: grid;
    gap: 1rem;
    list-style: none;
    padding: 0;
}

.stats li {
    border: 1px solid var(--border);
    border-radius: var(--radius);
    padding: 1.3rem;
    background: var(--surface);
}

.stats strong {
    display: block;
    font-size: 2.4rem;
    letter-spacing: -0.04em;
}

.stats span {
    color: var(--muted);
}

.contact-grid {
    display: grid;
    gap: 2rem;
}

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

.field {
    display: grid;
    gap: 0.4rem;
}

.field label {
    font-size: 0.9rem;
}

.field input,
.field textarea {
    width: 100%;
    border: 1px solid var(--border);
    background: var(--surface);
    color: var(--text);
    border-radius: 12px;
    padding: 0.75rem 0.85rem;
    font: inherit;
}

.field input:focus,
.field textarea:focus {
    outline: 2px solid color-mix(in srgb, var(--accent) 70%, white);
    outline-offset: 1px;
}

.form-status {
    margin: 0;
    color: var(--muted);
}

.form-status.is-error {
    color: #e05b5b;
}

.form-status.is-success {
    color: #3fbf86;
}

.site-footer {
    border-top: 1px solid var(--border);
    padding: 1.4rem 0 2rem;
    color: var(--muted);
    font-size: 0.9rem;
}

@media (min-width: 720px) {
    .card-grid.four,
    .card-grid.three,
    .tech-grid,
    .stats {
        grid-template-columns: repeat(2, 1fr);
    }

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

@media (min-width: 1080px) {
    .logo-row {
        justify-content: space-between;
    }
}

@media (min-width: 960px) {
    .card-grid.four,
    .tech-grid {
        grid-template-columns: repeat(4, 1fr);
    }

    .card-grid.three,
    .stats {
        grid-template-columns: repeat(3, 1fr);
    }
}

@media (max-width: 520px) {
    .ai-step {
        grid-template-columns: 3.7rem 1.7rem minmax(0, 1fr);
        column-gap: 0.5rem;
        min-height: 84px;
        padding-right: 0.85rem;
    }

    .ai-step::before {
        width: 4.4rem;
    }

    .ai-step-index {
        padding-left: 0.7rem;
        font-size: 0.85rem;
    }

    .ai-step-icon svg {
        width: 22px;
        height: 22px;
    }
}

@media (max-width: 860px) {
    .hero {
        padding-bottom: 14rem;
    }

    .hero-art {
        height: 70%;
    }

    .nav-toggle {
        display: flex;
    }

    .site-nav {
        display: none;
        position: absolute;
        inset: 72px 1rem auto;
        flex-direction: column;
        align-items: stretch;
        padding: 1rem;
        background: var(--surface);
        border: 1px solid var(--border);
        border-radius: 16px;
        box-shadow: var(--shadow);
    }

    .site-nav.is-open {
        display: flex;
    }

    .nav-cta {
        width: 100%;
    }
}

@media (prefers-reduced-motion: reduce) {
    html {
        scroll-behavior: auto;
    }

    .site-header,
    .card,
    .btn,
    .theme-toggle {
        transition: none;
    }
}
