@import url('open-iconic/font/css/open-iconic-bootstrap.min.css');
@import url('https://fonts.googleapis.com/css2?family=Inter:wght@400;500;600;700;800&display=swap');

:root {
    --ink: #182434;
    --muted: #5d6e7d;
    --line: #d9e1e8;
    --paper: #ffffff;
    --surface: #f7f9fb;
    --teal: #0b6574;
    --teal-dark: #073f49;
    --amber: #c7852a;
    --green: #6b8f4e;
    --shadow: 0 24px 70px rgba(18, 32, 47, 0.12);
}

html {
    scroll-behavior: smooth;
}

html,
body {
    margin: 0;
    font-family: Inter, "Segoe UI", Arial, sans-serif;
    color: var(--ink);
    background: var(--surface);
}

body {
    overflow-x: hidden;
}

#app {
    min-height: 100vh;
}

.app-loading {
    min-height: 100vh;
    display: grid;
    place-items: center;
    background:
        radial-gradient(circle at 50% 44%, rgba(11, 101, 116, 0.08), transparent 34%),
        #f7f9fb;
}

.app-loading img {
    width: min(180px, 52vw);
    animation: logoPulse 1.8s ease-in-out infinite;
}

* {
    box-sizing: border-box;
}

a {
    color: inherit;
}

h1,
h2,
h3,
p {
    margin-top: 0;
}

h1:focus {
    outline: none;
}

.hero,
.service-band,
.approach-section,
.contact-section,
.site-footer {
    width: min(1160px, calc(100% - 40px));
    margin: 0 auto;
}

.hero {
    display: grid;
    grid-template-columns: minmax(0, 0.9fr) minmax(420px, 1.1fr);
    align-items: center;
    gap: 54px;
    padding: 52px 0 24px;
}

.hero-copy {
    max-width: 620px;
}

.eyebrow {
    margin-bottom: 14px;
    color: var(--amber);
    font-size: 0.78rem;
    font-weight: 800;
    letter-spacing: 0;
    text-transform: uppercase;
}

.hero h1 {
    margin-bottom: 24px;
    color: #14202e;
    font-size: clamp(2.55rem, 4.6vw, 4.25rem);
    line-height: 1.01;
    letter-spacing: 0;
}

.hero-lede {
    margin-bottom: 32px;
    color: var(--muted);
    font-size: 1.16rem;
    line-height: 1.75;
}

.hero-actions {
    display: flex;
    flex-wrap: wrap;
    gap: 12px;
}

.button {
    display: inline-flex;
    min-height: 48px;
    align-items: center;
    justify-content: center;
    border: 1px solid transparent;
    border-radius: 6px;
    padding: 12px 18px;
    font-weight: 800;
    text-decoration: none;
    cursor: pointer;
}

.button.primary {
    color: #ffffff;
    background: var(--teal);
    box-shadow: 0 12px 26px rgba(11, 101, 116, 0.22);
}

.button.primary:hover,
.button.primary:focus {
    background: var(--teal-dark);
}

.button.secondary {
    color: var(--ink);
    border-color: var(--line);
    background: #ffffff;
}

.button.secondary:hover,
.button.secondary:focus {
    border-color: #b7c6d1;
    background: #f1f6f7;
}

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

.hero-visual img {
    position: relative;
    z-index: 2;
    width: 100%;
    height: 500px;
    display: block;
    object-fit: cover;
    border-radius: 8px;
    box-shadow: var(--shadow);
}

.automation-field {
    position: absolute;
    inset: -48px -38px;
    z-index: 1;
    pointer-events: none;
    overflow: hidden;
    border-radius: 14px;
    filter: drop-shadow(0 18px 40px rgba(10, 104, 119, 0.16));
}

.automation-field svg {
    position: absolute;
    inset: 0;
    width: 100%;
    height: 100%;
    opacity: 0.95;
}

.flow-path {
    fill: none;
    stroke: rgba(21, 174, 190, 0.66);
    stroke-width: 2.3;
    stroke-linecap: round;
    stroke-dasharray: 18 20;
    animation: pathTravel 3.8s linear infinite;
}

.path-two {
    stroke: rgba(199, 133, 42, 0.7);
    stroke-width: 2;
    animation-duration: 4.8s;
    animation-direction: reverse;
}

.path-three {
    stroke: rgba(107, 143, 78, 0.62);
    stroke-width: 1.8;
    animation-duration: 5.6s;
}

.automation-field::before,
.automation-field::after {
    content: "";
    position: absolute;
    inset: 8% 3% auto;
    height: 72px;
    border-radius: 999px;
    background: linear-gradient(90deg, transparent, rgba(21, 174, 190, 0.32), rgba(255, 255, 255, 0.3), transparent);
    mix-blend-mode: screen;
    animation: scanLine 4.4s linear infinite;
}

.automation-field::after {
    inset: auto 3% 7%;
    height: 58px;
    background: linear-gradient(90deg, transparent, rgba(199, 133, 42, 0.26), rgba(255, 255, 255, 0.24), transparent);
    animation-delay: -2.2s;
}

.automation-field span {
    position: absolute;
    width: 16px;
    height: 16px;
    border-radius: 50%;
    background: #15aebe;
    box-shadow: 0 0 0 12px rgba(21, 174, 190, 0.14), 0 0 44px rgba(21, 174, 190, 0.74);
    animation: driftNode 6.4s ease-in-out infinite, nodePulse 2.4s ease-in-out infinite;
}

.automation-field span:nth-child(1) {
    top: 18%;
    left: 9%;
}

.automation-field span:nth-child(2) {
    top: 28%;
    right: 7%;
    width: 18px;
    height: 18px;
    background: var(--amber);
    box-shadow: 0 0 0 13px rgba(199, 133, 42, 0.16), 0 0 48px rgba(199, 133, 42, 0.7);
    animation-delay: -2s;
}

.automation-field span:nth-child(3) {
    bottom: 18%;
    left: 18%;
    animation-delay: -4.1s;
}

.automation-field span:nth-child(4) {
    right: 18%;
    bottom: 10%;
    background: var(--green);
    box-shadow: 0 0 0 13px rgba(107, 143, 78, 0.16), 0 0 46px rgba(107, 143, 78, 0.66);
    animation-delay: -5.2s;
}

.automation-field i {
    position: absolute;
    width: 76px;
    height: 76px;
    border: 1px solid rgba(21, 174, 190, 0.5);
    border-radius: 8px;
    background: rgba(255, 255, 255, 0.12);
    box-shadow: inset 0 0 24px rgba(21, 174, 190, 0.14);
    animation: orbitPanel 7.5s ease-in-out infinite;
}

.automation-field i:nth-of-type(1) {
    top: 12%;
    left: 22%;
}

.automation-field i:nth-of-type(2) {
    right: 14%;
    bottom: 16%;
    border-color: rgba(199, 133, 42, 0.48);
    box-shadow: inset 0 0 24px rgba(199, 133, 42, 0.14);
    animation-delay: -3.6s;
}

.metric-card {
    position: absolute;
    z-index: 3;
    width: min(235px, 44%);
    padding: 18px;
    border: 1px solid rgba(255, 255, 255, 0.56);
    border-radius: 8px;
    color: #ffffff;
    background: rgba(9, 33, 46, 0.76);
    backdrop-filter: blur(12px);
}

.metric-card strong {
    display: block;
    margin-bottom: 6px;
    font-size: 1.1rem;
}

.metric-card span {
    color: rgba(255, 255, 255, 0.78);
    font-size: 0.86rem;
    line-height: 1.45;
}

.metric-card.delivery {
    left: -22px;
    bottom: 38px;
}

.metric-card.support {
    right: -18px;
    top: 42px;
    background: rgba(199, 133, 42, 0.88);
}

.service-band {
    padding: 42px 0 106px;
}

.section-heading {
    max-width: 680px;
    margin-bottom: 36px;
}

.section-heading h2,
.approach-section h2,
.contact-section h2 {
    margin-bottom: 0;
    color: #172534;
    font-size: clamp(2rem, 4vw, 3.25rem);
    line-height: 1.08;
    letter-spacing: 0;
}

.focus-grid {
    display: grid;
    grid-template-columns: repeat(3, minmax(0, 1fr));
    gap: 16px;
}

.focus-card {
    min-height: 260px;
    padding: 28px;
    border: 1px solid var(--line);
    border-radius: 8px;
    background: var(--paper);
    box-shadow: 0 16px 36px rgba(28, 41, 54, 0.05);
}

.focus-card span {
    display: inline-flex;
    margin-bottom: 28px;
    color: var(--green);
    font-size: 0.78rem;
    font-weight: 800;
}

.focus-card h3 {
    margin-bottom: 14px;
    color: #1d2c3d;
    font-size: 1.22rem;
    line-height: 1.25;
}

.focus-card p {
    margin-bottom: 0;
    color: var(--muted);
    font-size: 0.98rem;
    line-height: 1.62;
}

.approach-section {
    display: grid;
    grid-template-columns: minmax(0, 0.95fr) minmax(360px, 1.05fr);
    gap: 54px;
    padding: 82px 0;
    border-top: 1px solid var(--line);
    border-bottom: 1px solid var(--line);
}

.approach-list {
    display: grid;
    gap: 16px;
}

.approach-list div {
    padding: 24px;
    border-left: 4px solid var(--teal);
    border-radius: 0 8px 8px 0;
    background: #ffffff;
}

.approach-list div:nth-child(2) {
    border-left-color: var(--amber);
}

.approach-list div:nth-child(3) {
    border-left-color: var(--green);
}

.approach-list h3 {
    margin-bottom: 8px;
    font-size: 1.08rem;
}

.approach-list p {
    margin-bottom: 0;
    color: var(--muted);
    line-height: 1.65;
}

.contact-section {
    display: grid;
    grid-template-columns: minmax(0, 0.85fr) minmax(360px, 1.15fr);
    gap: 52px;
    padding: 96px 0;
}

.contact-copy > p:not(.eyebrow) {
    max-width: 520px;
    margin: 22px 0 34px;
    color: var(--muted);
    font-size: 1.04rem;
    line-height: 1.7;
}

.contact-details {
    display: grid;
    gap: 12px;
}

.contact-details a,
.contact-details p {
    display: block;
    margin: 0;
    padding: 18px 20px;
    border: 1px solid var(--line);
    border-radius: 8px;
    color: var(--ink);
    background: #ffffff;
    text-decoration: none;
}

.contact-details span {
    display: block;
    margin-bottom: 6px;
    color: var(--muted);
    font-size: 0.76rem;
    font-weight: 800;
    text-transform: uppercase;
}

.contact-form {
    display: grid;
    gap: 16px;
    padding: 28px;
    border: 1px solid var(--line);
    border-radius: 8px;
    background: #ffffff;
    box-shadow: var(--shadow);
}

.contact-form label {
    display: grid;
    gap: 8px;
    color: #334354;
    font-size: 0.9rem;
    font-weight: 800;
}

.contact-form input,
.contact-form textarea {
    width: 100%;
    border: 1px solid #cfd9e1;
    border-radius: 6px;
    padding: 12px 13px;
    color: var(--ink);
    font: inherit;
    font-weight: 500;
    background: #fbfcfd;
}

.contact-form textarea {
    resize: vertical;
}

.contact-form input:focus,
.contact-form textarea:focus {
    outline: 3px solid rgba(11, 101, 116, 0.14);
    border-color: var(--teal);
    background: #ffffff;
}

.contact-form .button {
    width: fit-content;
    min-width: 154px;
}

.contact-form .button:disabled {
    cursor: progress;
    opacity: 0.72;
}

.form-status {
    margin: 0;
    padding: 12px 14px;
    border-radius: 6px;
    font-size: 0.92rem;
    font-weight: 700;
    line-height: 1.45;
}

.form-status.success {
    color: #194c2e;
    background: #e7f5eb;
    border: 1px solid #b9dfc5;
}

.form-status.error {
    color: #7c241e;
    background: #fff0ee;
    border: 1px solid #f2c4bd;
}

.validation-message {
    color: #a32920;
    font-size: 0.82rem;
    font-weight: 700;
}

.site-footer {
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 20px;
    padding: 28px 0 42px;
    color: #617180;
    border-top: 1px solid var(--line);
}

.site-footer p {
    margin: 0;
}

.site-footer div {
    display: flex;
    flex-wrap: wrap;
    gap: 16px;
}

.site-footer a {
    color: #304355;
    text-decoration: none;
    font-weight: 700;
}

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

.invalid {
    outline: 1px solid red;
}

#blazor-error-ui {
    background: #fff8d1;
    bottom: 0;
    box-shadow: 0 -1px 2px rgba(0, 0, 0, 0.2);
    display: none;
    left: 0;
    padding: 0.6rem 1.25rem 0.7rem 1.25rem;
    position: fixed;
    width: 100%;
    z-index: 1000;
}

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

.blazor-error-boundary {
    padding: 1rem;
    color: #ffffff;
    background: #b32121;
}

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

@keyframes logoPulse {
    0%,
    100% {
        opacity: 0.72;
        transform: scale(0.98);
    }

    50% {
        opacity: 1;
        transform: scale(1.02);
    }
}

@keyframes scanLine {
    0% {
        transform: translateX(-78%) translateY(0) rotate(-7deg);
        opacity: 0;
    }

    16%,
    82% {
        opacity: 1;
    }

    100% {
        transform: translateX(78%) translateY(56px) rotate(-7deg);
        opacity: 0;
    }
}

@keyframes pathTravel {
    to {
        stroke-dashoffset: -76;
    }
}

@keyframes driftNode {
    0%,
    100% {
        transform: translate3d(0, 0, 0) scale(1);
    }

    50% {
        transform: translate3d(18px, -14px, 0) scale(1.12);
    }
}

@keyframes nodePulse {
    0%,
    100% {
        opacity: 0.72;
    }

    50% {
        opacity: 1;
    }
}

@keyframes orbitPanel {
    0%,
    100% {
        transform: translate3d(0, 0, 0) rotate(0deg);
        opacity: 0.46;
    }

    50% {
        transform: translate3d(22px, 18px, 0) rotate(8deg);
        opacity: 0.88;
    }
}

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

    .hero {
        min-height: auto;
        padding-top: 54px;
    }

    .hero-visual {
        min-height: auto;
    }

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

@media (max-width: 640px) {
    .hero,
    .service-band,
    .approach-section,
    .contact-section,
    .site-footer {
        width: min(100% - 28px, 1160px);
    }

    .hero {
        gap: 34px;
        padding: 44px 0 34px;
    }

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

    .hero-actions {
        flex-direction: column;
    }

    .button,
    .contact-form .button {
        width: 100%;
    }

    .hero-visual img {
        height: 300px;
    }

    .automation-field {
        display: none;
    }

    .metric-card {
        display: none;
    }

    .service-band,
    .contact-section {
        padding: 68px 0;
    }

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

    .focus-card {
        min-height: auto;
    }

    .approach-section {
        padding: 66px 0;
    }

    .contact-form {
        padding: 20px;
    }

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

@media (prefers-reduced-motion: reduce) {
    .app-loading img,
    .automation-field::before,
    .automation-field::after,
    .automation-field span,
    .automation-field i,
    .flow-path {
        animation: none;
    }
}
