:root {
    --bg: #07111f;
    --bg-soft: #0d1b2f;
    --surface: rgba(13, 27, 47, 0.82);
    --surface-strong: rgba(255, 255, 255, 0.06);
    --text: #f4f7fb;
    --muted: #9caec6;
    --line: rgba(255, 255, 255, 0.1);
    --accent: #39a7ff;
    --accent-soft: rgba(57, 167, 255, 0.16);
    --accent-gold: #d7b56d;
    --shadow: 0 24px 80px rgba(0, 0, 0, 0.28);
    --radius: 28px;
    --container: 1180px;
}

html {
    scroll-behavior: smooth;
}

body {
    margin: 0;
    font-family: "Space Grotesk", "Inter", Arial, sans-serif;
    background:
        radial-gradient(circle at top left, rgba(57, 167, 255, 0.16), transparent 28%),
        radial-gradient(circle at top right, rgba(215, 181, 109, 0.12), transparent 24%),
        linear-gradient(180deg, #08101d 0%, #091522 48%, #07111f 100%);
    color: var(--text);
}

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

h1:focus {
    outline: none;
}

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

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

#app {
    min-height: 100vh;
}

.site-shell {
    width: min(calc(100% - 2rem), var(--container));
    margin: 0 auto;
    padding: 1.25rem 0 2rem;
}

.hero-section,
.content-section,
.site-footer {
    position: relative;
}

.site-header {
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 1rem;
    padding: 0.35rem 0 1.2rem;
}

.brand {
    display: inline-flex;
    align-items: center;
    gap: 0.9rem;
    font-weight: 700;
    letter-spacing: 0.02em;
}

.brand-mark {
    position: relative;
    display: grid;
    place-items: center;
    width: 2.9rem;
    height: 2.9rem;
    border: 1px solid rgba(255, 255, 255, 0.14);
    border-radius: 0.9rem;
    background: linear-gradient(180deg, rgba(255, 255, 255, 0.08), rgba(57, 167, 255, 0.08));
    box-shadow: inset 0 1px 0 rgba(255, 255, 255, 0.08);
}

.brand-mark__beam {
    position: absolute;
    inset: 0.45rem;
    border: 1px solid rgba(215, 181, 109, 0.45);
    border-radius: 0.65rem;
    transform: rotate(45deg);
}

.brand-mark__core {
    position: relative;
    z-index: 1;
    font-size: 1.05rem;
}

.site-nav {
    display: flex;
    gap: 1.25rem;
    color: var(--muted);
    font-size: 0.95rem;
}

.site-nav a,
.site-footer nav a,
.text-link {
    transition: color 180ms ease, opacity 180ms ease;
}

.site-nav a:hover,
.site-footer nav a:hover,
.text-link:hover {
    color: var(--text);
}

.hero-grid {
    display: grid;
    grid-template-columns: 1.1fr 0.9fr;
    gap: 2rem;
    align-items: center;
    min-height: calc(100vh - 6rem);
    padding: 2rem 0 4rem;
}

.eyebrow,
.section-label,
.contact-label,
.step-number {
    text-transform: uppercase;
    letter-spacing: 0.14em;
    font-size: 0.75rem;
}

.eyebrow,
.section-label,
.contact-label {
    color: var(--accent-gold);
}

.hero-copy h1 {
    margin: 0.8rem 0 1rem;
    max-width: 10ch;
    font-size: clamp(3.3rem, 8vw, 6.6rem);
    line-height: 0.95;
    letter-spacing: -0.05em;
}

.hero-subtitle {
    margin: 0;
    font-size: clamp(1.15rem, 2vw, 1.4rem);
    color: #d9e7f6;
}

.hero-description,
.section-copy,
.service-card p,
.site-footer p,
.contact-details p {
    color: var(--muted);
    line-height: 1.7;
}

.hero-description {
    max-width: 38rem;
    margin: 1.4rem 0 0;
    font-size: 1.03rem;
}

.hero-actions {
    display: flex;
    align-items: center;
    gap: 1rem;
    margin-top: 2rem;
}

.cta-button {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    min-height: 3.25rem;
    padding: 0.8rem 1.35rem;
    border: 1px solid transparent;
    border-radius: 999px;
    background: linear-gradient(135deg, var(--accent) 0%, #1a7fe2 100%);
    color: #05101f;
    font-weight: 700;
    box-shadow: 0 12px 30px rgba(57, 167, 255, 0.28);
    transition: transform 180ms ease, box-shadow 180ms ease;
}

.cta-button:hover {
    transform: translateY(-1px);
    box-shadow: 0 18px 36px rgba(57, 167, 255, 0.34);
}

.text-link {
    color: #dce9f6;
}

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

.symbol-frame {
    position: relative;
    width: min(30rem, 100%);
    aspect-ratio: 1 / 1.08;
    border: 1px solid var(--line);
    border-radius: var(--radius);
    background:
        linear-gradient(180deg, rgba(255, 255, 255, 0.06), rgba(255, 255, 255, 0.02)),
        rgba(11, 22, 38, 0.86);
    box-shadow: var(--shadow);
    overflow: hidden;
}

.symbol-grid {
    position: absolute;
    inset: 0;
    background-image:
        linear-gradient(rgba(255, 255, 255, 0.05) 1px, transparent 1px),
        linear-gradient(90deg, rgba(255, 255, 255, 0.05) 1px, transparent 1px);
    background-size: 3rem 3rem;
    mask-image: linear-gradient(180deg, rgba(0, 0, 0, 0.85), transparent);
}

.symbol-a {
    position: absolute;
    inset: 18% 20%;
}

.symbol-a span {
    position: absolute;
    display: block;
    border-radius: 999px;
    background: linear-gradient(180deg, #ffffff, #87c9ff);
}

.symbol-a span:nth-child(1) {
    width: 0.8rem;
    height: 78%;
    left: 25%;
    bottom: 8%;
    transform: rotate(27deg);
}

.symbol-a span:nth-child(2) {
    width: 0.8rem;
    height: 78%;
    right: 25%;
    bottom: 8%;
    transform: rotate(-27deg);
}

.symbol-a span:nth-child(3) {
    width: 38%;
    height: 0.75rem;
    left: 31%;
    top: 46%;
}

.foundation-line {
    position: absolute;
    height: 1px;
    background: linear-gradient(90deg, transparent, rgba(57, 167, 255, 0.92), transparent);
}

.foundation-line--one {
    left: 10%;
    right: 10%;
    bottom: 17%;
}

.foundation-line--two {
    left: 18%;
    right: 18%;
    bottom: 12%;
}

.content-section {
    padding: 3rem 0;
}

.about-section,
.contact-panel {
    padding: 2rem;
    border: 1px solid var(--line);
    border-radius: var(--radius);
    background: var(--surface);
    backdrop-filter: blur(14px);
    box-shadow: var(--shadow);
}

.section-heading {
    margin-bottom: 1.2rem;
}

.section-heading h2 {
    margin: 0.5rem 0 0;
    max-width: 16ch;
    font-size: clamp(2rem, 4vw, 3.25rem);
    line-height: 1.05;
    letter-spacing: -0.04em;
}

.section-copy {
    max-width: 52rem;
    margin: 0;
}

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

.service-card,
.process-step {
    padding: 1.5rem;
    border: 1px solid var(--line);
    border-radius: 1.4rem;
    background: linear-gradient(180deg, rgba(255, 255, 255, 0.045), rgba(255, 255, 255, 0.02));
    transition: transform 180ms ease, border-color 180ms ease, background 180ms ease;
}

.service-card:hover,
.process-step:hover {
    transform: translateY(-4px);
    border-color: rgba(57, 167, 255, 0.38);
    background: linear-gradient(180deg, rgba(57, 167, 255, 0.1), rgba(255, 255, 255, 0.025));
}

.service-card h3,
.process-step h3 {
    margin: 0 0 0.75rem;
    font-size: 1.2rem;
}

.process-step {
    min-height: 14rem;
    display: flex;
    flex-direction: column;
    justify-content: space-between;
}

.step-number {
    color: var(--accent);
}

.industry-list {
    display: flex;
    flex-wrap: wrap;
    gap: 0.8rem;
}

.industry-list span {
    padding: 0.78rem 1rem;
    border: 1px solid var(--line);
    border-radius: 999px;
    background: var(--surface-strong);
    color: #dbe9f7;
}

.contact-details {
    display: grid;
    grid-template-columns: repeat(2, minmax(0, 1fr));
    gap: 1.25rem;
    margin-top: 1.8rem;
}

.contact-details p {
    margin: 0.35rem 0 0;
}

.contact-details a {
    color: #dce9f6;
}

.site-footer {
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 1rem;
    padding: 2rem 0 0.5rem;
    border-top: 1px solid var(--line);
    margin-top: 1rem;
}

.site-footer p {
    margin: 0.35rem 0 0;
}

.site-footer nav {
    display: flex;
    gap: 1.1rem;
    color: var(--muted);
}

.reveal {
    opacity: 0;
    transform: translateY(18px);
    animation: fade-up 700ms ease forwards;
}

.reveal-delay {
    animation-delay: 140ms;
}

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

.invalid {
    outline: 1px solid red;
}

.validation-message {
    color: red;
}

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

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

.blazor-error-boundary {
    background: url(data:image/svg+xml;base64,PHN2ZyB3aWR0aD0iNTYiIGhlaWdodD0iNDkiIHhtbG5zPSJodHRwOi8vd3d3dy53My5vcmcvMjAwMC9zdmciIHhtbG5zOnhsaW5rPSJodHRwOi8vd3d3dy53My5vcmcvMTk5OS94bGluayIgb3ZlcmZsb3c9ImhpZGRlbiI+PGRlZnM+PGNsaXBQYXRoIGlkPSJjbGlwMCI+PHJlY3QgeD0iMjM1IiB5PSI1MSIgd2lkdGg9IjU2IiBoZWlnaHQ9IjQ5Ii8+PC9jbGlwUGF0aD48L2RlZnM+PGcgY2xpcC1wYXRoPSJ1cmwoI2NsaXAwKSIgdHJhbnNmb3JtPSJ0cmFuc2xhdGUoLTIzNSAtNTEpIj48cGF0aCBkPSJNMjYzLjUwNiA1MUMyNjQuNzE3IDUxIDI2NS44MTMgNTEuNDgzNyAyNjYuNjA2IDUyLjI2NThMMjY3LjA1MiA1Mi43OTg3IDI2Ny41MzkgNTMuNjI4MyAyOTAuMTg1IDkyLjE4MzEgMjkwLjU0NSA5Mi43OTUgMjkwLjY1NiA5Mi45OTZDMjkwLjg3NyA5My41MTMgMjkxIDk0LjA4MTUgMjkxIDk0LjY3ODIgMjkxIDk3LjA2NTEgMjg5LjAzOCA5OSAyODYuNjE3IDk5TDI0MC4zODMgOTlDMjM3Ljk2MyA5OSAyMzYgOTcuMDY1MSAyMzYgOTQuNjc4MiAyMzYgOTQuMzc5OSAyMzYuMDMxIDk0LjA4ODYgMjM2LjA4OSA5My44MDcyTDIzNi4zMzggOTMuMDE2MiAyMzYuODU4IDkyLjEzMTQgMjU5LjQ3MyA1My42Mjk0IDI1OS45NjEgNTIuNzk4NSAyNjAuNDA3IDUyLjI2NThDMjYxLjIgNTEuNDgzNyAyNjIuMjk2IDUxIDI2My41MDYgNTFaTTI2My41ODYgNjYuMDE4M0MyNjAuNzM3IDY2LjAxODMgMjU5LjMxMyA2Ny4xMjQ1IDI1OS4zMTMgNjkuMzM3IDI1OS4zMTMgNjkuNjEwMiAyNTkuMzMyIDY5Ljg2MDggMjU5LjM3MSA3MC4wODg3TDI2MS43OTUgODQuMDE2MSAyNjUuMzggODQuMDE2MSAyNjcuODIxIDY5Ljc0NzVDMjY3Ljg2IDY5LjczMDkgMjY3Ljg3OSA2OS41ODc3IDI2Ny44NzkgNjkuMzE3OSAyNjcuODc5IDY3LjExODIgMjY2LjQ0OCA2Ni4wMTgzIDI2My41ODYgNjYuMDE4M1pNMjYzLjU3NiA4Ni4wNTQ3QzI2MS4wNDkgODYuMDU0NyAyNTkuNzg2IDg3LjMwMDUgMjU5Ljc4NiA4OS43OTIxIDI1OS43ODYgOTIuMjgzNyAyNjEuMDQ5IDkzLjUyOTUgMjYzLjU3NiA5My41Mjk1IDI2Ni4xMTYgOTMuNTI5NSAyNjcuMzg3IDkyLjI4MzcgMjY3LjM4NyA4OS43OTIxIDI2Ny4zODcgODcuMzAwNSAyNjYuMTE2IDg2LjA1NDcgMjYzLjU3NiA4Ni4wNTQ3WiIgZmlsbD0iI0ZGRTUwMCIgZmlsbC1ydWxlPSJldmVub2RkIi8+PC9nPjwvc3ZnPg==) no-repeat 1rem/1.8rem, #b32121;
    color: white;
    padding: 1rem 1rem 1rem 3.7rem;
}

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

.loading-container {
    position: absolute;
    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: center;
    inset: 0;
    min-height: 100vh;
}

.loading-logo {
    width: 4.5rem;
    height: 4.5rem;
    animation: logo-pulse 1.6s ease-in-out infinite;
}

@keyframes logo-pulse {
    0%, 100% { opacity: 0.5; transform: scale(0.95); }
    50% { opacity: 1; transform: scale(1.05); }
}

.loading-progress-text {
    margin-top: 1rem;
    font-weight: 700;
    text-align: center;
    color: var(--muted);
    font-size: 0.85rem;
}

.loading-progress-text::after {
    content: var(--blazor-load-percentage-text, "Loading");
}

code {
    color: #c02d76;
}

.form-floating > .form-control-plaintext::placeholder,
.form-floating > .form-control::placeholder {
    color: var(--bs-secondary-color);
    text-align: end;
}

.form-floating > .form-control-plaintext:focus::placeholder,
.form-floating > .form-control:focus::placeholder {
    text-align: start;
}

@keyframes fade-up {
    to {
        opacity: 1;
        transform: translateY(0);
    }
}

@media (max-width: 960px) {
    .hero-grid,
    .card-grid,
    .process-grid,
    .contact-details {
        grid-template-columns: 1fr;
    }

    .hero-grid {
        min-height: auto;
        padding-top: 1.5rem;
    }

    .hero-copy h1,
    .section-heading h2 {
        max-width: none;
    }

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

@media (max-width: 640px) {
    .site-shell {
        width: min(calc(100% - 1.25rem), var(--container));
        padding-top: 0.75rem;
    }

    .site-nav,
    .hero-actions,
    .site-footer nav {
        flex-wrap: wrap;
    }

    .about-section,
    .contact-panel,
    .service-card,
    .process-step {
        padding: 1.25rem;
    }

    .hero-copy h1 {
        font-size: clamp(2.7rem, 16vw, 4.1rem);
    }
}
