:root {
    --blue: #006df0;
    --blue-bright: #4da3ff;
    --blue-dark: #0050b3;
    --black: #0e0f12;
    --ink: #14161a;
    --paper: #ffffff;
    --gray: #6b6f76;
    --gray-light: #a4a8b0;
    --line: #e6e6ea;
    --radius: 14px;
    --font: "Inter", ui-sans-serif, system-ui, -apple-system, "Segoe UI", Roboto, sans-serif;
}

* {
    box-sizing: border-box;
}

html {
    scroll-behavior: smooth;
}

body {
    margin: 0;
    font-family: var(--font);
    font-size: 16px;
    line-height: 1.6;
    color: var(--ink);
    background: var(--paper);
    -webkit-font-smoothing: antialiased;
}

h1, h2, h3, h4 {
    line-height: 1.15;
    letter-spacing: -0.02em;
    margin: 0 0 0.5em;
    font-weight: 800;
}

h1:focus {
    outline: none;
}

p {
    margin: 0 0 1em;
}

a {
    color: var(--blue-dark);
    text-decoration: none;
}

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

img {
    max-width: 100%;
}

.container {
    width: min(1120px, 92vw);
    margin-inline: auto;
}

/* ---------- header ---------- */

.site-header {
    position: sticky;
    top: 0;
    z-index: 50;
    background: rgba(255, 255, 255, 0.92);
    backdrop-filter: blur(10px);
    border-bottom: 1px solid var(--line);
}

.site-header .container {
    display: flex;
    align-items: center;
    gap: 2rem;
    height: 72px;
}

.brand {
    display: flex;
    align-items: center;
    gap: 0.6rem;
    font-size: 1.2rem;
    font-weight: 800;
    color: var(--ink);
    letter-spacing: -0.02em;
    white-space: nowrap;
}

.brand:hover {
    color: var(--ink);
}

.brand img {
    height: 38px;
    width: 38px;
}

.brand .dot {
    color: var(--blue-dark);
}

.site-nav {
    margin-left: auto;
    display: flex;
    align-items: center;
    gap: 1.6rem;
}

.site-nav a,
.site-nav .nav-btn {
    color: var(--ink);
    font-weight: 600;
    font-size: 0.95rem;
    background: none;
    border: none;
    cursor: pointer;
    font-family: var(--font);
    padding: 0;
}

.site-nav a:hover,
.site-nav a.active,
.site-nav .nav-btn:hover {
    color: var(--blue-dark);
}

.site-nav .nav-divider {
    width: 1px;
    height: 22px;
    background: var(--line);
}

@media (max-width: 900px) {
    .site-nav .nav-label-full {
        display: none;
    }
}

/* ---------- buttons ---------- */

.btn {
    display: inline-block;
    padding: 0.7rem 1.5rem;
    border-radius: 999px;
    font-weight: 700;
    font-size: 0.95rem;
    border: 2px solid transparent;
    cursor: pointer;
    transition: transform 0.15s ease, box-shadow 0.15s ease, background 0.15s ease;
    font-family: var(--font);
}

.btn:hover {
    transform: translateY(-1px);
}

.btn-primary {
    background: var(--blue);
    color: #fff;
    box-shadow: 0 8px 24px rgba(0, 109, 240, 0.32);
}

.btn-primary:hover {
    background: var(--blue-dark);
    color: #fff;
}

.btn-outline-light {
    border-color: rgba(255, 255, 255, 0.35);
    color: #fff;
}

.btn-outline-light:hover {
    border-color: #fff;
    color: #fff;
}

.btn:disabled {
    opacity: 0.6;
    cursor: not-allowed;
    transform: none;
}

/* ---------- hero ---------- */

.hero {
    background: radial-gradient(1200px 600px at 80% -10%, #0a1e33 0%, var(--black) 55%);
    color: #fff;
    padding: 6.5rem 0 6rem;
    overflow: hidden;
}

.hero .container {
    display: grid;
    grid-template-columns: 1.2fr 0.8fr;
    align-items: center;
    gap: 3rem;
}

.hero h1 {
    font-size: clamp(2.4rem, 5.2vw, 3.8rem);
    margin-bottom: 1rem;
}

.hero h1 .accent {
    color: var(--blue-bright);
}

.hero .lede {
    font-size: 1.2rem;
    color: var(--gray-light);
    max-width: 36rem;
    margin-bottom: 2rem;
}

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

.hero-art {
    display: flex;
    justify-content: center;
}

.hero-art img {
    width: min(300px, 60vw);
    filter: drop-shadow(0 24px 60px rgba(0, 109, 240, 0.35));
}

.eyebrow {
    display: inline-block;
    font-size: 0.8rem;
    font-weight: 700;
    letter-spacing: 0.14em;
    text-transform: uppercase;
    color: var(--blue-bright);
    margin-bottom: 1rem;
}

/* ---------- trusted-by strip ---------- */

.trusted {
    padding: 3rem 0;
    border-bottom: 1px solid var(--line);
}

.trusted .trusted-label {
    text-align: center;
    font-size: 0.8rem;
    font-weight: 700;
    letter-spacing: 0.14em;
    text-transform: uppercase;
    color: var(--gray);
    margin-bottom: 1.75rem;
}

.client-wall {
    display: flex;
    flex-wrap: wrap;
    justify-content: center;
    align-items: center;
    gap: 1.75rem 2.5rem;
}

.client-wall img {
    height: 34px;
    max-width: 120px;
    width: auto;
    object-fit: contain;
    filter: grayscale(100%);
    opacity: 0.65;
    transition: filter 0.15s ease, opacity 0.15s ease;
}

.client-wall img:hover {
    filter: grayscale(0%);
    opacity: 1;
}

.section-more {
    text-align: center;
    margin-top: 2rem;
}

.section-more a {
    font-weight: 700;
    font-size: 0.95rem;
}

/* ---------- clients page ---------- */

.clients-hero {
    padding-bottom: 2rem;
}

.client-grid-section {
    padding-top: 1rem;
}

.services-hero {
    padding-bottom: 2rem;
}

.services-grid-section {
    padding-top: 1rem;
}

.client-grid {
    display: grid;
    grid-template-columns: repeat(5, 1fr);
    gap: 1.25rem;
}

.client-tile {
    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: center;
    gap: 0.9rem;
    border: 1px solid var(--line);
    border-radius: var(--radius);
    background: #fff;
    padding: 1.75rem 1.25rem;
    text-align: center;
    transition: transform 0.15s ease, box-shadow 0.15s ease, border-color 0.15s ease;
}

.client-tile:hover {
    transform: translateY(-3px);
    border-color: rgba(0, 109, 240, 0.4);
    box-shadow: 0 16px 40px rgba(14, 15, 18, 0.08);
}

.client-tile img {
    height: 48px;
    max-width: 100%;
    width: auto;
    object-fit: contain;
}

.client-tile-name {
    font-size: 0.82rem;
    font-weight: 600;
    color: var(--gray);
}

/* ---------- sections ---------- */

.section {
    padding: 5.5rem 0;
}

.section-dark {
    background: var(--black);
    color: #fff;
}

.section-tint {
    background: #f2f7fc;
}

.section-head {
    max-width: 40rem;
    margin-bottom: 3rem;
}

.section-head.center {
    max-width: 42rem;
    margin-inline: auto;
    text-align: center;
}

.section-head h2 {
    font-size: clamp(1.8rem, 3.4vw, 2.6rem);
}

.section-head p {
    color: var(--gray);
    font-size: 1.05rem;
}

.section-dark .section-head p {
    color: var(--gray-light);
}

/* ---------- cards ---------- */

.card-grid {
    display: grid;
    grid-template-columns: repeat(3, 1fr);
    gap: 1.25rem;
}

.card {
    border: 1px solid var(--line);
    border-radius: var(--radius);
    padding: 1.75rem;
    background: #fff;
    transition: transform 0.15s ease, box-shadow 0.15s ease, border-color 0.15s ease;
}

.card:hover {
    transform: translateY(-3px);
    border-color: rgba(0, 109, 240, 0.4);
    box-shadow: 0 16px 40px rgba(14, 15, 18, 0.08);
}

.card h3 {
    font-size: 1.1rem;
    margin-bottom: 0.4rem;
}

.card p {
    color: var(--gray);
    font-size: 0.95rem;
    margin: 0;
}

.card .icon {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    width: 42px;
    height: 42px;
    border-radius: 10px;
    background: rgba(0, 109, 240, 0.12);
    color: var(--blue-dark);
    font-size: 1.2rem;
    margin-bottom: 1rem;
}

/* ---------- hosting band ---------- */

.hosting-band {
    display: grid;
    grid-template-columns: 1.1fr 0.9fr;
    gap: 3rem;
    align-items: center;
    background: var(--ink);
    color: #fff;
    border-radius: 20px;
    padding: 3rem;
}

.hosting-band h2 {
    font-size: clamp(1.6rem, 3vw, 2.2rem);
}

.hosting-band p {
    color: var(--gray-light);
}

.hosting-points {
    list-style: none;
    margin: 0;
    padding: 0;
}

.hosting-points li {
    padding-left: 1.75rem;
    position: relative;
    margin-bottom: 0.9rem;
}

.hosting-points li::before {
    content: "✓";
    position: absolute;
    left: 0;
    color: var(--blue-bright);
    font-weight: 700;
}

/* ---------- engagement ---------- */

.engagement-grid {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 1.5rem;
}

.engagement {
    border-radius: var(--radius);
    padding: 2.25rem;
    background: #17181c;
    border: 1px solid #26262e;
}

.engagement.highlight {
    background: linear-gradient(160deg, var(--blue) 0%, var(--blue-dark) 100%);
    border-color: transparent;
}

.engagement h3 {
    font-size: 1.4rem;
}

.engagement p {
    color: var(--gray-light);
}

.engagement.highlight p {
    color: rgba(255, 255, 255, 0.88);
}

.engagement ul {
    margin: 1.25rem 0 0;
    padding: 0;
    list-style: none;
}

.engagement li {
    padding-left: 1.5rem;
    position: relative;
    margin-bottom: 0.6rem;
    font-size: 0.95rem;
}

.engagement li::before {
    content: "✓";
    position: absolute;
    left: 0;
    color: var(--blue-bright);
    font-weight: 700;
}

.engagement.highlight li::before {
    color: #fff;
}

/* ---------- tech strip ---------- */

.tech-strip {
    display: flex;
    flex-wrap: wrap;
    gap: 0.6rem;
}

.tech-strip span {
    padding: 0.45rem 1rem;
    border-radius: 999px;
    border: 1px solid var(--line);
    font-size: 0.88rem;
    font-weight: 600;
    color: var(--ink);
}

/* ---------- CTA band ---------- */

.cta-band {
    background: linear-gradient(135deg, var(--blue) 0%, var(--blue-dark) 100%);
    color: #fff;
    text-align: center;
    padding: 4.5rem 0;
}

.cta-band h2 {
    font-size: clamp(1.8rem, 3.4vw, 2.6rem);
}

.cta-band p {
    color: rgba(255, 255, 255, 0.88);
    max-width: 32rem;
    margin: 0 auto 2rem;
}

.cta-band .btn {
    background: #fff;
    color: var(--blue-dark);
}

.cta-band .btn:hover {
    background: var(--black);
    color: #fff;
}

/* ---------- contact ---------- */

.contact-wrap {
    display: grid;
    grid-template-columns: 0.9fr 1.1fr;
    gap: 4rem;
    align-items: start;
}

.contact-aside h1 {
    font-size: clamp(2rem, 4vw, 3rem);
}

.contact-aside p {
    color: var(--gray);
    font-size: 1.05rem;
}

.contact-points {
    margin: 2rem 0 0;
    padding: 0;
    list-style: none;
}

.contact-points li {
    display: flex;
    gap: 0.75rem;
    margin-bottom: 1rem;
    color: var(--ink);
    font-weight: 500;
}

.contact-points .mark {
    color: var(--blue-dark);
    font-weight: 800;
}

.contact-card {
    border: 1px solid var(--line);
    border-radius: var(--radius);
    padding: 2.25rem;
    box-shadow: 0 24px 60px rgba(14, 15, 18, 0.06);
}

.form-field {
    margin-bottom: 1.25rem;
}

.form-field label {
    display: block;
    font-weight: 600;
    font-size: 0.9rem;
    margin-bottom: 0.4rem;
}

.form-field input,
.form-field textarea {
    width: 100%;
    padding: 0.75rem 1rem;
    border: 1.5px solid var(--line);
    border-radius: 10px;
    font-family: var(--font);
    font-size: 1rem;
    color: var(--ink);
    background: #fff;
    transition: border-color 0.15s ease, box-shadow 0.15s ease;
}

.form-field input:focus,
.form-field textarea:focus {
    outline: none;
    border-color: var(--blue);
    box-shadow: 0 0 0 3px rgba(0, 109, 240, 0.14);
}

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

.validation-message {
    color: #c0392b;
    font-size: 0.85rem;
    margin-top: 0.3rem;
}

.form-alert {
    border-radius: 10px;
    padding: 1rem 1.25rem;
    margin-bottom: 1.25rem;
    font-weight: 500;
    font-size: 0.95rem;
}

.form-alert.success {
    background: #ecfdf3;
    color: #156134;
    border: 1px solid #b7eccb;
}

.form-alert.error {
    background: #fdeced;
    color: #a3281d;
    border: 1px solid #f6c7cb;
}

.honeypot {
    position: absolute;
    left: -9999px;
    opacity: 0;
    height: 0;
    overflow: hidden;
}

/* ---------- account / identity pages ---------- */

.auth-section {
    padding: 4rem 0;
}

.auth-container {
    max-width: 640px;
}

.auth-container h1 {
    font-size: clamp(1.8rem, 3.4vw, 2.4rem);
}

.auth-container .row {
    margin: 0;
}

.auth-container hr {
    border: none;
    border-top: 1px solid var(--line);
    margin: 1.25rem 0;
}

.form-control:focus {
    border-color: var(--blue) !important;
    box-shadow: 0 0 0 0.2rem rgba(0, 109, 240, 0.18) !important;
}

.form-check-input:checked {
    background-color: var(--blue) !important;
    border-color: var(--blue) !important;
}

/* ---------- footer ---------- */

.site-footer {
    background: var(--black);
    color: var(--gray-light);
    padding: 3rem 0;
}

.site-footer .container {
    display: flex;
    align-items: center;
    gap: 1rem;
    flex-wrap: wrap;
}

.site-footer .brand {
    color: #fff;
    font-size: 1.05rem;
}

.site-footer .brand img {
    height: 30px;
    width: 30px;
}

.site-footer .meta {
    margin-left: auto;
    font-size: 0.9rem;
}

.site-footer a {
    color: #fff;
}

.site-footer a:hover {
    color: var(--blue-bright);
}

/* ---------- blazor error ui ---------- */

#blazor-error-ui {
    background: var(--black);
    color: #fff;
    bottom: 0;
    box-shadow: 0 -2px 16px rgba(0, 0, 0, 0.3);
    display: none;
    left: 0;
    padding: 0.8rem 1.5rem;
    position: fixed;
    width: 100%;
    z-index: 1000;
}

#blazor-error-ui .dismiss {
    cursor: pointer;
    position: absolute;
    right: 1rem;
    top: 0.8rem;
}

#blazor-error-ui a {
    color: var(--blue-bright);
}

.blazor-error-boundary {
    background: var(--blue-dark);
    padding: 1rem;
    color: white;
    border-radius: 10px;
}

.blazor-error-boundary::after {
    content: "An error has occurred.";
}

.valid.modified:not([type=checkbox]) {
    outline: 1px solid #26b050;
}

.invalid {
    outline: 1px solid #e50000;
}

/* ---------- responsive ---------- */

@media (max-width: 900px) {
    .hero .container {
        grid-template-columns: 1fr;
        text-align: center;
    }

    .hero .lede {
        margin-inline: auto;
    }

    .hero-actions {
        justify-content: center;
    }

    .hero-art {
        order: -1;
    }

    .hero-art img {
        width: 180px;
    }

    .card-grid,
    .engagement-grid,
    .contact-wrap,
    .hosting-band {
        grid-template-columns: 1fr;
    }

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

    .hosting-band {
        padding: 2rem;
        text-align: center;
    }

    .hosting-points li {
        text-align: left;
    }

    .site-nav {
        gap: 1.1rem;
    }
}

@media (max-width: 640px) {
    .card-grid {
        grid-template-columns: 1fr;
    }

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