:root {
    --red: #e02020;
    --red-bright: #ff3b30;
    --red-dark: #b00014;
    --black: #0e0e11;
    --ink: #16161a;
    --paper: #ffffff;
    --gray: #6b6b76;
    --gray-light: #a3a3ad;
    --line: #e8e8ec;
    --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(--red);
    text-decoration: none;
}

a:hover {
    color: var(--red-dark);
}

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.25rem;
    font-weight: 800;
    color: var(--ink);
    letter-spacing: -0.02em;
}

.brand:hover {
    color: var(--ink);
}

.brand img {
    height: 38px;
    width: 38px;
}

.brand .dot {
    color: var(--red);
}

.site-nav {
    margin-left: auto;
    display: flex;
    align-items: center;
    gap: 1.75rem;
}

.site-nav a {
    color: var(--ink);
    font-weight: 600;
    font-size: 0.95rem;
}

.site-nav a:hover,
.site-nav a.active {
    color: var(--red);
}

/* ---------- 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(--red);
    color: #fff;
    box-shadow: 0 8px 24px rgba(224, 32, 32, 0.3);
}

.btn-primary:hover {
    background: var(--red-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%, #2a1014 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, 4rem);
    margin-bottom: 1rem;
}

.hero h1 .accent {
    color: var(--red-bright);
}

.hero .lede {
    font-size: 1.2rem;
    color: var(--gray-light);
    max-width: 34rem;
    margin-bottom: 2rem;
}

.hero-actions {
    display: flex;
    gap: 1rem;
    flex-wrap: wrap;
}

.hero-art {
    display: flex;
    justify-content: center;
}

.hero-art img {
    width: min(320px, 60vw);
    filter: drop-shadow(0 24px 60px rgba(224, 32, 32, 0.35));
}

.eyebrow {
    display: inline-block;
    font-size: 0.8rem;
    font-weight: 700;
    letter-spacing: 0.14em;
    text-transform: uppercase;
    color: var(--red-bright);
    margin-bottom: 1rem;
}

/* ---------- sections ---------- */

.section {
    padding: 5.5rem 0;
}

.section-dark {
    background: var(--black);
    color: #fff;
}

.section-head {
    max-width: 38rem;
    margin-bottom: 3rem;
}

.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(224, 32, 32, 0.4);
    box-shadow: 0 16px 40px rgba(14, 14, 17, 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(224, 32, 32, 0.1);
    color: var(--red);
    font-size: 1.2rem;
    margin-bottom: 1rem;
}

/* ---------- engagement ---------- */

.engagement-grid {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 1.5rem;
}

.engagement {
    border-radius: var(--radius);
    padding: 2.25rem;
    background: #17171c;
    border: 1px solid #26262e;
}

.engagement.highlight {
    background: linear-gradient(160deg, var(--red) 0%, var(--red-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.85);
}

.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(--red-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(--red) 0%, var(--red-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.85);
    max-width: 32rem;
    margin: 0 auto 2rem;
}

.cta-band .btn {
    background: #fff;
    color: var(--red-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(--red);
    font-weight: 800;
}

.contact-card {
    border: 1px solid var(--line);
    border-radius: var(--radius);
    padding: 2.25rem;
    box-shadow: 0 24px 60px rgba(14, 14, 17, 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(--red);
    box-shadow: 0 0 0 3px rgba(224, 32, 32, 0.12);
}

.form-field textarea {
    min-height: 160px;
    resize: vertical;
}

.form-field input.invalid,
.form-field textarea.invalid {
    border-color: var(--red);
    outline: none;
}

.validation-message {
    color: var(--red);
    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: var(--red-dark);
    border: 1px solid #f6c7cb;
}

.honeypot {
    position: absolute;
    left: -9999px;
    opacity: 0;
    height: 0;
    overflow: hidden;
}

/* ---------- 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(--red-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(--red-bright);
}

.blazor-error-boundary {
    background: var(--red-dark);
    padding: 1rem;
    color: white;
    border-radius: 10px;
}

.blazor-error-boundary::after {
    content: "An error has occurred.";
}

/* ---------- 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 {
        grid-template-columns: 1fr;
    }

    .site-nav {
        gap: 1.1rem;
    }
}
