:root {
    --brand-50: #ecfbff;
    --brand-100: #cff5fc;
    --brand-200: #9beaf8;
    --brand-300: #5bd7ef;
    --brand-400: #26bedc;
    --brand-500: #0f9dbd;
    --brand-600: #0681a4;
    --brand-700: #0b607b;
    --slate-50: #f8fafc;
    --slate-100: #f1f5f9;
    --slate-200: #e2e8f0;
    --slate-300: #cbd5e1;
    --slate-400: #94a3b8;
    --slate-500: #64748b;
    --slate-600: #475569;
    --slate-900: #0f172a;
    --slate-950: #020617;
    --page-ink: #08141b;
    --max-page: 80rem;
    --shadow-glow: 0 24px 60px rgba(6, 129, 164, 0.22);
}

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

html {
    color-scheme: dark;
    scroll-behavior: smooth;
    overflow-x: hidden;
}

body {
    margin: 0;
    background: var(--slate-950);
    color: var(--slate-100);
    font-family: "Manrope", sans-serif;
    overflow-x: hidden;
    -webkit-font-smoothing: antialiased;
    text-rendering: optimizeLegibility;
}

::selection {
    background: var(--brand-300);
    color: var(--slate-950);
}

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

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

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

.skip-link:focus {
    clip: auto;
    width: auto;
    height: auto;
    margin: 0;
    left: 1rem;
    top: 1rem;
    z-index: 50;
    border-radius: 9999px;
    background: #fff;
    padding: 0.5rem 1rem;
    color: var(--slate-950);
    box-shadow: 0 0 0 4px var(--brand-300);
}

.page-shell {
    position: relative;
    isolation: isolate;
    overflow: hidden;
    width: 100%;
    max-width: 100%;
}

.page-bg,
.page-glow {
    position: absolute;
    pointer-events: none;
}

.page-bg {
    inset: 0;
    z-index: -20;
    background:
        radial-gradient(circle at top left, rgba(6, 129, 164, 0.35), transparent 40%),
        linear-gradient(180deg, #0b2835 0%, var(--page-ink) 44%, var(--slate-50) 44%, var(--slate-50) 100%);
}

.page-glow {
    left: 50%;
    top: 0;
    z-index: -10;
    width: 28rem;
    height: 28rem;
    transform: translateX(-50%);
    border-radius: 9999px;
    background: rgba(38, 190, 220, 0.2);
    filter: blur(48px);
}

.site-header,
.hero-section,
.section-container,
.contact-grid,
.footer-main,
.footer-bottom > div {
    width: calc(100% - 3rem);
    max-width: var(--max-page);
    margin: 0 auto;
}

.site-header {
    padding-top: 1.5rem;
    padding-bottom: 1.5rem;
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 1.5rem;
    min-width: 0;
}

.brand-lockup {
    display: inline-flex;
    align-items: center;
    gap: 0.875rem;
    width: 100%;
    min-width: 0;
    max-width: 100%;
    padding: 0.875rem;
    border-radius: 1.5rem;
    border: 1px solid rgba(100, 116, 139, 0.2);
    background: linear-gradient(135deg, rgba(15, 23, 42, 0.94), rgba(30, 41, 59, 0.9) 48%, rgba(10, 18, 28, 0.96) 100%);
    box-shadow: 0 24px 80px rgba(2, 6, 23, 0.45);
    transition: border-color 0.2s ease, box-shadow 0.2s ease;
}

.brand-lockup:hover {
    border-color: rgba(91, 215, 239, 0.2);
    box-shadow: 0 28px 90px rgba(2, 6, 23, 0.52);
}

.brand-badge {
    width: 3.5rem;
    height: 3.5rem;
    flex: none;
    display: flex;
    align-items: center;
    justify-content: center;
    border-radius: 1.35rem;
    border: 1px solid rgba(203, 213, 225, 0.15);
    background: linear-gradient(145deg, rgba(51, 65, 85, 0.95), rgba(15, 23, 42, 0.98));
    box-shadow:
        inset 0 1px 0 rgba(255, 255, 255, 0.14),
        inset 0 -10px 30px rgba(2, 6, 23, 0.55),
        0 10px 24px rgba(2, 6, 23, 0.35);
}

.brand-symbol {
    width: 2.25rem;
    height: 2.25rem;
    object-fit: contain;
    filter: drop-shadow(0 1px 0 rgba(255, 255, 255, 0.1));
}

.brand-copy {
    flex: 1 1 auto;
    min-width: 0;
    overflow: hidden;
}

.brand-name,
.brand-title,
.hero-section h1,
.hero-stats dd,
.value-title,
.services-section h2,
.contact-section h2,
.service-card h3 {
    font-family: "Space Grotesk", sans-serif;
}

.brand-name {
    display: block;
    font-size: 1.25rem;
    line-height: 1.08;
    font-weight: 700;
    letter-spacing: 0;
    color: #fff;
    overflow-wrap: anywhere;
}

.brand-name span {
    color: var(--brand-300);
}

.brand-tagline {
    display: block;
    margin-top: 0.375rem;
    font-size: 0.68rem;
    line-height: 1.45;
    font-weight: 600;
    letter-spacing: 0.12em;
    text-transform: uppercase;
    color: var(--slate-300);
    overflow-wrap: anywhere;
    white-space: normal;
}

.site-nav {
    display: none;
    align-items: center;
    gap: 0.75rem;
}

.nav-link {
    padding: 0.5rem 1rem;
    border-radius: 9999px;
    font-size: 0.875rem;
    font-weight: 500;
    color: var(--slate-200);
    transition: color 0.2s ease;
}

.nav-link:hover {
    color: #fff;
}

.nav-cta,
.button {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    gap: 0.5rem;
    border-radius: 9999px;
    font-weight: 600;
    transition: transform 0.2s ease, background-color 0.2s ease, border-color 0.2s ease, box-shadow 0.2s ease;
}

.nav-cta {
    padding: 0.625rem 1.25rem;
    background: var(--brand-600);
    color: #fff;
    font-size: 0.875rem;
    box-shadow: 0 18px 40px rgba(11, 40, 53, 0.3);
}

.button {
    padding: 0.75rem 1.5rem;
    font-size: 1rem;
    min-width: 0;
    max-width: 100%;
    text-align: center;
}

.button-primary {
    background: var(--brand-600);
    color: #fff;
}

.hero-actions .button-primary {
    box-shadow: var(--shadow-glow);
}

.button-secondary {
    border: 1px solid var(--slate-300);
    background: transparent;
    color: var(--slate-900);
}

.button-on-dark {
    border-color: rgba(255, 255, 255, 0.2);
    background: rgba(255, 255, 255, 0.1);
    color: #fff;
    backdrop-filter: blur(10px);
}

.button svg {
    width: 1.25rem;
    height: 1.25rem;
    flex: none;
    fill: currentColor;
}

.nav-cta:hover,
.button-primary:hover {
    background: var(--brand-500);
    transform: translateY(-2px);
}

.button-secondary:hover {
    border-color: var(--brand-400);
    background: var(--brand-50);
    transform: translateY(-2px);
}

.button-on-dark:hover {
    background: rgba(255, 255, 255, 0.15);
}

.brand-lockup:focus-visible,
.site-nav a:focus-visible,
main a:focus-visible,
.site-footer a:focus-visible,
.floating-contact:focus-visible {
    outline: none;
    box-shadow: 0 0 0 4px rgba(91, 215, 239, 0.7);
}

.hero-section {
    display: grid;
    gap: 3rem;
    padding-top: 2rem;
    padding-bottom: 5rem;
}

.hero-copy,
.section-intro,
.hero-panel,
.services-grid,
.service-card,
.hero-actions,
.cta-row {
    min-width: 0;
    max-width: 100%;
}

.hero-copy,
.section-intro {
    max-width: 48rem;
}

.hero-pill {
    display: inline-flex;
    align-items: center;
    border: 1px solid rgba(91, 215, 239, 0.25);
    background: rgba(255, 255, 255, 0.1);
    padding: 0.25rem 1rem;
    border-radius: 9999px;
    font-size: 0.875rem;
    font-weight: 500;
    color: var(--brand-100);
    backdrop-filter: blur(10px);
}

.hero-section h1 {
    margin: 1.5rem 0 0;
    max-width: 48rem;
    font-size: 1.95rem;
    line-height: 1.05;
    font-weight: 700;
    letter-spacing: 0;
    text-wrap: balance;
    overflow-wrap: break-word;
}

.lead,
.section-lead {
    margin-top: 1.5rem;
    max-width: 42rem;
    font-size: 1rem;
    line-height: 1.8;
    overflow-wrap: break-word;
}

.lead {
    color: var(--slate-200);
}

.hero-actions,
.cta-row {
    display: flex;
    flex-direction: column;
    gap: 1rem;
    margin-top: 2rem;
}

.hero-stats {
    margin: 2.5rem 0 0;
    padding-top: 2rem;
    border-top: 1px solid rgba(255, 255, 255, 0.1);
    display: grid;
    gap: 1.5rem;
}

.hero-stats dt {
    color: var(--slate-400);
    font-size: 0.875rem;
}

.hero-stats dd {
    margin: 0.5rem 0 0;
    font-size: 1.125rem;
    font-weight: 700;
    letter-spacing: 0;
    color: #fff;
}

.hero-panel > div {
    min-width: 0;
    border-radius: 2rem;
    border: 1px solid rgba(255, 255, 255, 0.1);
    background: rgba(15, 23, 42, 0.8);
    padding: 1.5rem;
    box-shadow: 0 24px 60px rgba(11, 40, 53, 0.4);
    backdrop-filter: blur(10px);
}

.eyebrow,
.footer-title {
    margin: 0;
    font-size: 0.875rem;
    font-weight: 600;
    letter-spacing: 0.2em;
    text-transform: uppercase;
}

.hero-panel .eyebrow {
    color: var(--brand-200);
}

.stack {
    margin-top: 1.25rem;
    display: grid;
    gap: 1rem;
}

.value-card {
    min-width: 0;
    padding: 1rem;
    border-radius: 1rem;
    border: 1px solid rgba(255, 255, 255, 0.05);
    background: rgba(255, 255, 255, 0.05);
}

.value-label {
    margin: 0;
    font-size: 0.875rem;
    color: var(--slate-400);
}

.value-title {
    margin: 0.5rem 0 0;
    font-size: 1rem;
    font-weight: 700;
    letter-spacing: 0;
    color: #fff;
    overflow-wrap: anywhere;
}

.services-section,
.contact-section {
    background: var(--slate-50);
    color: var(--slate-900);
}

.services-section,
.contact-section {
    padding: 5rem 0;
}

.services-section .eyebrow,
.contact-section .eyebrow,
.aside-box .eyebrow {
    color: var(--brand-700);
}

.services-section h2,
.contact-section h2 {
    margin: 1rem 0 0;
    font-size: 1.65rem;
    line-height: 1.1;
    font-weight: 700;
    letter-spacing: 0;
    text-wrap: balance;
    overflow-wrap: anywhere;
}

.section-lead {
    color: var(--slate-600);
}

.services-grid {
    margin-top: 3rem;
    display: grid;
    gap: 1.5rem;
}

.service-card {
    min-width: 0;
    max-width: 100%;
    overflow: hidden;
    border-radius: 1.75rem;
    border: 1px solid var(--slate-200);
    background: #fff;
    box-shadow: 0 1px 2px rgba(15, 23, 42, 0.06);
    transition: transform 0.3s ease, box-shadow 0.3s ease, opacity 0.6s ease;
}

.service-card:hover {
    transform: translateY(-4px);
    box-shadow: 0 24px 60px rgba(155, 234, 248, 0.3);
}

.service-card img {
    width: 100%;
    height: 14rem;
    object-fit: cover;
}

.service-card .content {
    padding: 1.5rem;
}

.service-card h3 {
    margin: 0;
    font-size: 1.5rem;
    font-weight: 700;
    letter-spacing: 0;
    color: var(--slate-900);
    overflow-wrap: break-word;
}

.service-card p {
    margin: 1rem 0 0;
    color: var(--slate-600);
    font-size: 1rem;
    line-height: 1.75;
    overflow-wrap: anywhere;
}

.service-link {
    display: inline-flex;
    align-items: center;
    margin-top: 1rem;
    font-weight: 600;
    color: var(--brand-700);
}

.service-link:hover {
    color: var(--brand-600);
}

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

.aside-box {
    border-radius: 2rem;
    border: 1px solid var(--slate-200);
    background: var(--slate-50);
    padding: 1.5rem;
}

.aside-box ul {
    margin: 1.25rem 0 0;
    padding-left: 1rem;
    color: var(--slate-600);
    line-height: 1.75;
}

.site-footer {
    background: var(--slate-950);
    color: var(--slate-300);
}

.footer-main {
    display: grid;
    gap: 2.5rem;
    padding-top: 3rem;
    padding-bottom: 3rem;
}

.footer-brand {
    max-width: 28rem;
}

.brand-row {
    display: flex;
    gap: 1rem;
    align-items: center;
}

.site-footer .brand-badge {
    width: 3.5rem;
    height: 3.5rem;
    border-radius: 1.2rem;
}

.site-footer .brand-symbol {
    width: 2.25rem;
    height: 2.25rem;
}

.brand-title {
    margin: 0;
    font-size: 1.5rem;
    font-weight: 700;
    letter-spacing: 0;
    color: #fff;
}

.brand-subtitle {
    margin: 0.25rem 0 0;
    font-size: 0.875rem;
    letter-spacing: 0.2em;
    text-transform: uppercase;
    color: var(--slate-400);
}

.summary {
    margin-top: 1.25rem;
    font-size: 0.875rem;
    line-height: 1.75;
    color: var(--slate-400);
}

.footer-title,
.site-footer li {
    color: var(--slate-400);
}

.site-footer ul {
    list-style: none;
    padding: 0;
    margin: 1rem 0 0;
}

.site-footer li {
    margin-top: 0.75rem;
    font-size: 0.875rem;
    line-height: 1.6;
}

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

.footer-bottom {
    border-top: 1px solid rgba(255, 255, 255, 0.1);
}

.footer-bottom > div {
    padding-top: 1.25rem;
    padding-bottom: 1.25rem;
    display: flex;
    flex-direction: column;
    gap: 0.75rem;
    color: var(--slate-500);
    font-size: 0.875rem;
}

.footer-bottom p {
    margin: 0;
}

.floating-contact {
    position: fixed;
    left: calc(1rem + env(safe-area-inset-left));
    right: calc(1rem + env(safe-area-inset-right));
    bottom: calc(1rem + env(safe-area-inset-bottom));
    z-index: 40;
    display: inline-flex;
    align-items: center;
    justify-content: center;
    gap: 0.5rem;
    padding: 0.75rem 1.25rem;
    border-radius: 1rem;
    background: #10b981;
    color: #052e16;
    font-size: 0.875rem;
    font-weight: 600;
    box-shadow: 0 20px 40px rgba(6, 78, 59, 0.2);
    transition: transform 0.2s ease, background-color 0.2s ease;
}

.floating-contact:hover {
    transform: translateY(-2px);
    background: #34d399;
}

.floating-contact svg {
    width: 1.25rem;
    height: 1.25rem;
    fill: currentColor;
}

.translate-y-6 {
    transform: translateY(1.5rem);
}

.opacity-0 {
    opacity: 0;
}

@media (min-width: 640px) {
    .site-nav {
        display: flex;
    }

    .brand-lockup {
        width: auto;
        gap: 1.25rem;
        padding: 1rem 1.25rem;
        border-radius: 2rem;
    }

    .brand-badge {
        width: 4.5rem;
        height: 4.5rem;
    }

    .brand-symbol {
        width: 2.75rem;
        height: 2.75rem;
    }

    .brand-name {
        font-size: 1.9rem;
    }

    .brand-tagline {
        font-size: 0.78rem;
        letter-spacing: 0.22em;
    }

    .hero-section h1 {
        font-size: 2.5rem;
        line-height: 0.98;
    }

    .lead,
    .section-lead {
        font-size: 1.125rem;
    }

    .services-section h2,
    .contact-section h2 {
        font-size: 1.875rem;
    }

    .hero-actions,
    .cta-row {
        flex-direction: row;
    }

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

    .footer-bottom > div {
        flex-direction: row;
        align-items: center;
        justify-content: space-between;
    }

    .floating-contact {
        left: auto;
        right: calc(1rem + env(safe-area-inset-right));
        border-radius: 9999px;
    }
}

@media (min-width: 1024px) {
    .site-header,
    .hero-section,
    .section-container,
    .contact-grid,
    .footer-main,
    .footer-bottom > div {
        width: 100%;
        padding-left: 2rem;
        padding-right: 2rem;
    }

    .hero-section {
        grid-template-columns: minmax(0, 1.15fr) minmax(22rem, 0.85fr);
        align-items: center;
        padding-top: 3rem;
        padding-bottom: 7rem;
    }

    .hero-section h1 {
        font-size: 4.5rem;
    }

    .services-section h2,
    .contact-section h2 {
        font-size: 2.5rem;
    }

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

    .contact-grid {
        grid-template-columns: minmax(0, 1fr) 24rem;
    }

    .footer-main {
        grid-template-columns: minmax(0, 1.2fr) repeat(3, minmax(0, 0.7fr));
    }
}

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

    *,
    *::before,
    *::after {
        animation: none !important;
        transition: none !important;
    }
}
