:root {
    --chaos-bg: #08142f;
    --chaos-bg-deep: #040a1a;
    --chaos-panel: rgba(11, 24, 58, 0.72);
    --chaos-panel-strong: rgba(10, 22, 53, 0.9);
    --chaos-text: #f6f8ff;
    --chaos-muted: #d8ddff;
    --chaos-cyan: #73ecff;
    --chaos-pink: #ff5bd3;
    --chaos-violet: #9c6bff;
    --chaos-gold: #ffd15c;
    --chaos-lime: #8cf9b5;
    --chaos-border: rgba(255, 255, 255, 0.15);
    --chaos-shadow: 0 24px 60px rgba(5, 10, 30, 0.45);
    --chaos-rainbow: linear-gradient(110deg, #ff6b6b 0%, #ff9c42 16%, #ffe45c 32%, #6ef2b8 50%, #66d9ff 68%, #8a7dff 84%, #ff66d1 100%);
}

html, body {
    margin: 0;
    min-height: 100%;
    font-family: "Segoe UI", Inter, system-ui, -apple-system, BlinkMacSystemFont, sans-serif;
    color: var(--chaos-text);
    background:
        radial-gradient(circle at top left, rgba(255, 90, 211, 0.35), transparent 30%),
        radial-gradient(circle at 85% 18%, rgba(115, 236, 255, 0.28), transparent 22%),
        radial-gradient(circle at bottom center, rgba(132, 78, 255, 0.35), transparent 30%),
        linear-gradient(180deg, #1649ca 0%, #0a2a7a 22%, var(--chaos-bg) 54%, var(--chaos-bg-deep) 100%);
    background-attachment: fixed;
}

body::before,
body::after {
    content: "";
    position: fixed;
    pointer-events: none;
    z-index: 0;
}

body::before {
    width: 28rem;
    height: 28rem;
    top: 6rem;
    right: -8rem;
    background: radial-gradient(circle, rgba(255, 209, 92, 0.28), transparent 62%);
    filter: blur(10px);
}

body::after {
    left: -8rem;
    bottom: 5rem;
    width: 36rem;
    height: 16rem;
    border-radius: 50%;
    background: var(--chaos-rainbow);
    opacity: 0.3;
    filter: blur(28px);
    transform: rotate(-12deg);
}

.chaos-body {
    position: relative;
}

a, .btn-link, .text-link {
    color: var(--chaos-cyan);
    text-decoration: none;
}

a:hover, .text-link:hover {
    color: white;
}

.site-shell,
#blazor-error-ui {
    position: relative;
    z-index: 1;
}

.shell-container {
    width: min(1180px, calc(100% - 2rem));
    margin: 0 auto;
}

.site-header {
    position: sticky;
    top: 0;
    z-index: 10;
    backdrop-filter: blur(18px);
    background: rgba(5, 11, 28, 0.55);
    border-bottom: 1px solid rgba(255, 255, 255, 0.08);
}

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

.brand-lockup {
    display: flex;
    align-items: center;
    gap: 0.9rem;
    color: var(--chaos-text);
}

.brand-lockup:hover {
    color: white;
}

.brand-icon {
    width: 3.5rem;
    height: 3.5rem;
    flex-shrink: 0;
    border-radius: 50%;
    background:
        radial-gradient(circle at center, white 0 8%, rgba(255, 255, 255, 0.4) 8%, rgba(255, 255, 255, 0.03) 35%, transparent 36%),
        conic-gradient(from 210deg, #ff60ce, #ffaa44, #ffe25b, #7ef8c7, #71ddff, #7f77ff, #ff60ce);
    box-shadow: 0 0 30px rgba(255, 110, 215, 0.35);
    position: relative;
}

.brand-icon::after {
    content: "✦";
    position: absolute;
    inset: 0;
    display: grid;
    place-items: center;
    color: white;
    font-size: 1.2rem;
}

.brand-copy {
    display: flex;
    flex-direction: column;
}

.brand-name {
    font-size: 1.45rem;
    font-weight: 800;
    letter-spacing: 0.03em;
}

.brand-tagline {
    color: var(--chaos-muted);
    font-size: 0.92rem;
}

.site-nav {
    display: flex;
    align-items: center;
    justify-content: flex-end;
    flex-wrap: wrap;
    gap: 0.65rem;
}

.site-nav-shell {
    display: flex;
    align-items: center;
    justify-content: center;
}

.site-nav-toggle {
    display: none;
    align-items: center;
    gap: 0.7rem;
    padding: 0.7rem 1rem;
    border-radius: 999px;
    border: 1px solid rgba(255, 255, 255, 0.16);
    background: rgba(255, 255, 255, 0.08);
    color: var(--chaos-text);
    font-weight: 700;
    letter-spacing: 0.02em;
    transition: background 0.2s ease, border-color 0.2s ease, transform 0.2s ease;
}

.site-nav-toggle:hover {
    background: rgba(255, 255, 255, 0.14);
    border-color: rgba(255, 255, 255, 0.22);
    color: white;
    transform: translateY(-1px);
}

.site-nav-toggle:focus-visible {
    outline: 2px solid rgba(115, 236, 255, 0.85);
    outline-offset: 3px;
}

.site-nav-toggle-icon {
    position: relative;
    width: 1.2rem;
    height: 0.95rem;
    display: inline-block;
}

.site-nav-toggle-line {
    position: absolute;
    left: 0;
    width: 100%;
    height: 2px;
    border-radius: 999px;
    background: currentColor;
    transition: transform 0.2s ease, opacity 0.2s ease, top 0.2s ease;
}

.site-nav-toggle-line:nth-child(1) {
    top: 0;
}

.site-nav-toggle-line:nth-child(2) {
    top: calc(50% - 1px);
}

.site-nav-toggle-line:nth-child(3) {
    top: calc(100% - 2px);
}

.site-nav-toggle.is-open .site-nav-toggle-line:nth-child(1) {
    top: calc(50% - 1px);
    transform: rotate(45deg);
}

.site-nav-toggle.is-open .site-nav-toggle-line:nth-child(2) {
    opacity: 0;
}

.site-nav-toggle.is-open .site-nav-toggle-line:nth-child(3) {
    top: calc(50% - 1px);
    transform: rotate(-45deg);
}

.site-nav-link {
    padding: 0.65rem 1rem;
    border-radius: 999px;
    color: var(--chaos-text);
    background: rgba(255, 255, 255, 0.06);
    border: 1px solid transparent;
    transition: transform 0.2s ease, background 0.2s ease, border-color 0.2s ease;
}

.site-nav-link:hover,
.site-nav-link.active {
    background: rgba(255, 255, 255, 0.14);
    border-color: rgba(255, 255, 255, 0.12);
    transform: translateY(-1px);
}

.site-main {
    padding: 2rem 0 4rem;
}

.content {
    padding-top: 1rem;
}

.hero-panel,
.page-hero,
.story-card,
.feature-card,
.flow-card,
.gallery-card,
.product-card,
.quote-card {
    background: linear-gradient(180deg, rgba(15, 28, 63, 0.88), rgba(6, 13, 34, 0.88));
    border: 1px solid var(--chaos-border);
    box-shadow: var(--chaos-shadow);
}

.hero-panel {
    position: relative;
    overflow: hidden;
    display: grid;
    grid-template-columns: 1.1fr 0.9fr;
    gap: 2rem;
    padding: clamp(2rem, 5vw, 4rem);
    border-radius: 2rem;
}

.hero-panel::before {
    content: "";
    position: absolute;
    inset: auto auto -2rem -4rem;
    width: 28rem;
    height: 10rem;
    border-radius: 999px;
    background: var(--chaos-rainbow);
    opacity: 0.48;
    filter: blur(18px);
    transform: rotate(-10deg);
}

.hero-panel::after {
    content: "";
    position: absolute;
    top: 1.2rem;
    right: 1.2rem;
    width: 8rem;
    height: 8rem;
    background:
        radial-gradient(circle, rgba(255, 255, 255, 0.95) 0 4%, transparent 5%),
        radial-gradient(circle at 22% 35%, rgba(255, 255, 255, 0.9) 0 2%, transparent 3%),
        radial-gradient(circle at 70% 78%, rgba(255, 209, 92, 0.9) 0 2.4%, transparent 3.4%),
        radial-gradient(circle at 82% 18%, rgba(255, 91, 211, 0.9) 0 1.8%, transparent 3%);
    opacity: 0.7;
}

.hero-copy,
.hero-visual,
.gallery-caption {
    position: relative;
    z-index: 1;
}

.eyebrow {
    display: inline-flex;
    align-items: center;
    gap: 0.4rem;
    margin-bottom: 0.9rem;
    font-size: 0.82rem;
    font-weight: 700;
    letter-spacing: 0.14em;
    text-transform: uppercase;
    color: var(--chaos-gold);
}

h1, h2, h3 {
    margin-top: 0;
    line-height: 1.05;
}

h1 {
    font-size: clamp(2.7rem, 6vw, 4.9rem);
    max-width: 12ch;
}

h2 {
    font-size: clamp(1.6rem, 3vw, 2.35rem);
}

h3 {
    font-size: 1.2rem;
}

.hero-lead,
.story-card p,
.feature-card p,
.flow-card p,
.gallery-card p,
.product-card p,
.quote-card p,
.footer-copy {
    color: var(--chaos-muted);
    font-size: 1.04rem;
    line-height: 1.7;
}

.hero-actions {
    display: flex;
    flex-wrap: wrap;
    gap: 0.85rem;
    margin: 1.75rem 0 1.5rem;
}

.chaos-button {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    gap: 0.5rem;
    margin-top: 1rem;
    padding: 0.9rem 1.35rem;
    border: 0;
    border-radius: 999px;
    font-weight: 700;
    color: #08142f;
    background: linear-gradient(120deg, #fff4a3, #7ef8c7 40%, #71ddff 68%, #ff75da);
    box-shadow: 0 12px 30px rgba(113, 221, 255, 0.28);
}

.chaos-button:hover {
    color: #08142f;
    transform: translateY(-1px);
}

.chaos-button-secondary {
    color: var(--chaos-text);
    background: rgba(255, 255, 255, 0.08);
    border: 1px solid rgba(255, 255, 255, 0.16);
    box-shadow: none;
}

.chaos-button-secondary:hover {
    color: white;
}

.hero-highlights,
.product-card ul,
.check-list {
    margin: 0;
    padding-left: 1.1rem;
    color: var(--chaos-text);
}

.hero-highlights li,
.product-card li,
.check-list li {
    margin-bottom: 0.55rem;
    line-height: 1.55;
}

.hero-visual {
    display: grid;
    align-content: center;
    gap: 1rem;
}

.floating-card {
    border-radius: 1.6rem;
    overflow: hidden;
}

.brand-preview-card {
    background: rgba(255, 255, 255, 0.05);
    border: 1px solid rgba(255, 255, 255, 0.18);
    box-shadow: 0 30px 70px rgba(0, 0, 0, 0.35);
}

.brand-preview-card img {
    width: 100%;
    display: block;
    object-fit: cover;
}

.detail-card {
    margin-left: auto;
    width: min(24rem, 92%);
    padding: 1.2rem 1.3rem;
    background: rgba(255, 255, 255, 0.1);
    backdrop-filter: blur(18px);
    border: 1px solid rgba(255, 255, 255, 0.14);
}

.detail-kicker,
.product-badge {
    display: inline-flex;
    margin-bottom: 0.6rem;
    padding: 0.35rem 0.7rem;
    border-radius: 999px;
    background: rgba(255, 255, 255, 0.12);
    color: var(--chaos-gold);
    font-size: 0.78rem;
    font-weight: 700;
    letter-spacing: 0.08em;
    text-transform: uppercase;
}

.story-grid,
.feature-grid,
.flow-grid,
.gallery-grid,
.product-grid,
.quote-layout,
.login-layout {
    display: grid;
    gap: 1.25rem;
    margin-top: 1.5rem;
}

.story-grid {
    grid-template-columns: repeat(2, minmax(0, 1fr));
    margin-top: 1.75rem;
}

.story-card,
.feature-card,
.flow-card,
.gallery-card,
.product-card,
.quote-card,
.page-hero {
    border-radius: 1.6rem;
    padding: 1.5rem;
}

.story-card.accent {
    background:
        linear-gradient(135deg, rgba(255, 91, 211, 0.15), transparent 38%),
        linear-gradient(180deg, rgba(15, 28, 63, 0.88), rgba(6, 13, 34, 0.88));
}

.section-block {
    margin-top: 1.75rem;
}

.section-heading {
    max-width: 42rem;
}

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

.feature-card,
.flow-card,
.product-card {
    min-height: 100%;
}

.feature-icon,
.flow-step {
    display: inline-grid;
    place-items: center;
    width: 2.5rem;
    height: 2.5rem;
    margin-bottom: 1rem;
    border-radius: 50%;
    background: rgba(255, 255, 255, 0.1);
    color: var(--chaos-gold);
    font-weight: 800;
}

.page-hero.compact {
    padding: 1.8rem;
}

.gallery-grid {
    grid-template-columns: 1.4fr repeat(2, minmax(0, 1fr));
}

.gallery-card-large {
    grid-row: span 2;
    padding: 0;
    overflow: hidden;
}

.gallery-card-large img {
    width: 100%;
    height: 100%;
    min-height: 28rem;
    object-fit: cover;
}

.gallery-caption {
    padding: 1.5rem;
}

.gradient-panel {
    display: flex;
    flex-direction: column;
    justify-content: flex-end;
    min-height: 16rem;
    background:
        linear-gradient(135deg, rgba(255, 91, 211, 0.3), transparent 55%),
        linear-gradient(180deg, rgba(15, 28, 63, 0.88), rgba(6, 13, 34, 0.88));
}

.gradient-panel.alt {
    background:
        linear-gradient(135deg, rgba(115, 236, 255, 0.26), transparent 55%),
        linear-gradient(180deg, rgba(15, 28, 63, 0.88), rgba(6, 13, 34, 0.88));
}

.gradient-panel.soft {
    background:
        linear-gradient(135deg, rgba(140, 249, 181, 0.24), transparent 55%),
        linear-gradient(180deg, rgba(15, 28, 63, 0.88), rgba(6, 13, 34, 0.88));
}

.gradient-panel.cosmic {
    background:
        linear-gradient(135deg, rgba(156, 107, 255, 0.28), transparent 55%),
        linear-gradient(180deg, rgba(15, 28, 63, 0.88), rgba(6, 13, 34, 0.88));
}

.quote-layout {
    grid-template-columns: 1.4fr 0.8fr;
}

.login-layout {
    grid-template-columns: 1fr 0.8fr;
}

.quote-card h2,
.login-card h2 {
    margin-bottom: 0.75rem;
}

.form-grid {
    display: grid;
    grid-template-columns: repeat(2, minmax(0, 1fr));
    gap: 1rem;
}

.full-span {
    grid-column: 1 / -1;
}

label {
    display: block;
    margin-bottom: 0.45rem;
    color: var(--chaos-text);
    font-weight: 600;
}

.chaos-input {
    width: 100%;
    padding: 0.85rem 1rem;
    border-radius: 1rem;
    border: 1px solid rgba(255, 255, 255, 0.15);
    background: rgba(255, 255, 255, 0.08);
    color: white;
}

.chaos-input:focus {
    border-color: rgba(115, 236, 255, 0.6);
    box-shadow: 0 0 0 0.2rem rgba(115, 236, 255, 0.18);
    background: rgba(255, 255, 255, 0.1);
}

.chaos-textarea {
    min-height: 8rem;
}

.status-banner {
    margin-bottom: 1rem;
    padding: 0.95rem 1rem;
    border-radius: 1rem;
    background: rgba(126, 248, 199, 0.15);
    border: 1px solid rgba(126, 248, 199, 0.3);
    color: #dcfff0;
}

.validation-message {
    display: block;
    margin-top: 0.4rem;
    color: #ffc2c2;
    font-size: 0.92rem;
}

.site-footer {
    padding: 0 0 3rem;
}

.footer-grid {
    display: grid;
    grid-template-columns: repeat(3, minmax(0, 1fr));
    gap: 1rem;
    padding: 1.6rem;
    border-radius: 1.6rem;
    border: 1px solid var(--chaos-border);
    background: rgba(6, 13, 34, 0.86);
    box-shadow: var(--chaos-shadow);
}

.footer-heading {
    margin-bottom: 0.7rem;
    font-weight: 800;
    color: white;
}

.site-footer a {
    display: block;
    margin-bottom: 0.45rem;
}

h1:focus {
    outline: none;
}

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

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

#blazor-error-ui {
    position: fixed;
    right: 1rem;
    bottom: 1rem;
    left: 1rem;
    display: none;
    padding: 1rem 1rem 1rem 3.7rem;
    border-radius: 1rem;
    color: white;
    background:
        url(data:image/svg+xml;base64,PHN2ZyB3aWR0aD0iNTYiIGhlaWdodD0iNDkiIHhtbG5zPSJodHRwOi8vd3d3LnczLm9yZy8yMDAwL3N2ZyIgeG1sbnM6eGxpbms9Imh0d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iA2OS43MzA5IDI2Ny44NzkgNjkuNTg3NyAyNjcuODc5IDY5LjMxNzkgMjY3Ljg3OSA2Ny4xMTgyIDI2Ni40NDggNjYuMDE4MyAyNjMuNTg2IDY2LjAxODNaTTI2My41NzYgODYuMDU0N0MyNjEuMDQ5IDg2LjA1NDcgMjU5Ljc4NiA4Ny4zMDA1IDI1OS43ODYgODkuNzkyMSAyNTkuNzg2IDkyLjI4MzcgMjYxLjA0OSA5My41Mjk1IDI2My41NzYgOTMuNTI5NSAyNjYuMTE2IDkzLjUyOTUgMjY3LjM4NyA5Mi4yODM3IDI2Ny4zODcgODkuNzkyMSAyNjcuMzg3IDg3LjMwMDUgMjY2LjExNiA4Ni4wNTQ3IDI2My41NzYgODYuMDU0N1oiIGZpbGw9IiNGRkU1MDAiIGZpbGwtcnVsZT0iZXZlbm9kZCIvPjwvZz48L3N2Zz4=) no-repeat 1rem/1.8rem,
        linear-gradient(135deg, #a62b63, #4d1859);
    box-shadow: var(--chaos-shadow);
}

#blazor-error-ui .dismiss,
#blazor-error-ui .reload {
    color: white;
    margin-left: 0.75rem;
}

.darker-border-checkbox.form-check-input {
    border-color: #929292;
}

@media (max-width: 960px) {
    .header-inner,
    .hero-panel,
    .story-grid,
    .feature-grid,
    .flow-grid,
    .gallery-grid,
    .product-grid,
    .quote-layout,
    .login-layout,
    .footer-grid {
        grid-template-columns: 1fr;
    }

    .header-inner {
        display: grid;
        gap: 1rem;
    }

    .site-nav-shell {
        width: 100%;
        display: grid;
        justify-items: center;
    }

    .site-nav-toggle {
        display: inline-flex;
        justify-content: center;
        justify-self: center;
        min-width: 10.5rem;
    }

    .site-nav {
        display: none;
        width: 100%;
        justify-self: stretch;
        margin-top: 1rem;
        padding: 1rem;
        gap: 0.75rem;
        /* flex-direction: column; */
        align-items: stretch;
        justify-content: flex-start;
        background:
            linear-gradient(135deg, rgba(115, 236, 255, 0.12), rgba(255, 91, 211, 0.08) 48%, rgba(4, 10, 26, 0.96)),
            rgba(4, 10, 26, 0.94);
        border: 1px solid rgba(255, 255, 255, 0.1);
        border-radius: 1.25rem;
        box-shadow: 0 22px 45px rgba(5, 10, 30, 0.35);
        backdrop-filter: blur(18px);
    }

    .site-nav.is-open {
        display: flex;
    }

    .site-nav-link {
        width: 100%;
        display: flex;
        align-items: center;
        justify-content: center;
        padding-block: 0.8rem;
        text-align: center;
    }

    h1 {
        max-width: 100%;
    }

    .detail-card {
        width: 100%;
    }

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

@media (max-width: 640px) {
    .shell-container {
        width: min(100% - 1rem, 1180px);
    }

    .site-main {
        padding-top: 1rem;
    }

    .hero-panel,
    .story-card,
    .feature-card,
    .flow-card,
    .gallery-card,
    .product-card,
    .quote-card,
    .page-hero,
    .footer-grid {
        border-radius: 1.25rem;
    }
}
