﻿html, body {
    font-family: 'Helvetica Neue', Helvetica, Arial, sans-serif;
}

h1:focus {
    outline: none;
}

a, .btn-link {
    color: #0071c1;
}

.btn-primary {
    color: #fff;
    background-color: #1b6ec2;
    border-color: #1861ac;
}

.btn:focus, .btn:active:focus, .btn-link.nav-link:focus, .form-control:focus, .form-check-input:focus {
  box-shadow: 0 0 0 0.1rem white, 0 0 0 0.25rem #258cfb;
}

.content {
    padding-top: 1.1rem;
}

.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 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 {
    background: url(data:image/svg+xml;base64,PHN2ZyB3aWR0aD0iNTYiIGhlaWdodD0iNDkiIHhtbG5zPSJodHRwOi8vd3d3LnczLm9yZy8yMDAwL3N2ZyIgeG1sbnM6eGxpbms9Imh0dHA6Ly93d3cudzMub3JnLzE5OTkveGxpbmsiIG92ZXJmbG93PSJoaWRkZW4iPjxkZWZzPjxjbGlwUGF0aCBpZD0iY2xpcDAiPjxyZWN0IHg9IjIzNSIgeT0iNTEiIHdpZHRoPSI1NiIgaGVpZ2h0PSI0OSIvPjwvY2xpcFBhdGg+PC9kZWZzPjxnIGNsaXAtcGF0aD0idXJsKCNjbGlwMCkiIHRyYW5zZm9ybT0idHJhbnNsYXRlKC0yMzUgLTUxKSI+PHBhdGggZD0iTTI2My41MDYgNTFDMjY0LjcxNyA1MSAyNjUuODEzIDUxLjQ4MzcgMjY2LjYwNiA1Mi4yNjU4TDI2Ny4wNTIgNTIuNzk4NyAyNjcuNT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3IDI2My41NzYgODYuMDU0N1oiIGZpbGw9IiNGRkU1MDAiIGZpbGwtcnVsZT0iZXZlbm9kZCIvPjwvZz48L3N2Zz4=) no-repeat 1rem/1.8rem, #b32121;
    padding: 1rem 1rem 1rem 3.7rem;
    color: white;
}

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

.loading-progress {
    position: relative;
    display: block;
    width: 8rem;
    height: 8rem;
    margin: 20vh auto 1rem auto;
}

    .loading-progress circle {
        fill: none;
        stroke: #e0e0e0;
        stroke-width: 0.6rem;
        transform-origin: 50% 50%;
        transform: rotate(-90deg);
    }

        .loading-progress circle:last-child {
            stroke: #1b6ec2;
            stroke-dasharray: calc(3.141 * var(--blazor-load-percentage, 0%) * 0.8), 500%;
            transition: stroke-dasharray 0.05s ease-in-out;
        }

.loading-progress-text {
    position: absolute;
    text-align: center;
    font-weight: bold;
    inset: calc(20vh + 3.25rem) 0 auto 0.2rem;
}

    .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;
}

body, html {
    margin: 0;
    padding: 0;
    font-family: 'Inter', 'Segoe UI', Arial, sans-serif;
    background: #f4f4f7;
    color: #23242b;
}

.sticky-navbar {
    position: sticky;
    top: 0;
    z-index: 100;
    background: #f4f4f7;
    box-shadow: 0 1px 8px rgba(100,100,120,0.04);
}

.navbar {
    display: flex;
    align-items: center;
    justify-content: space-between;
    padding: 1.4rem 2.5vw 1.2rem 2.5vw;
    max-width: 1200px;
    margin: 0 auto;
}

.logo-link {
    display: flex;
    align-items: center;
    text-decoration: none;
}
.logo-svg {
    display: block;
    height: 48px;
    width: 48px;
}

.nav-links {
    display: flex;
    align-items: center;
    gap: 2.2rem;
}
.nav-links a, .nav-links .login-btn {
    font-size: 1.1rem;
    color: #23242b;
    text-decoration: none;
    background: none;
    border: none;
    cursor: pointer;
    font-family: inherit;
    transition: color 0.2s, background 0.2s;
    padding: 0.4rem 1.2rem;
    border-radius: 2rem;
}
.nav-links a.active, .nav-links a:hover {
    color: #4962e6;
    background: #e5e8f1;
}
.login-btn {
    background: #23242b;
    color: #fff;
    margin-left: 1.5rem;
    font-weight: 500;
    transition: background 0.2s;
}
.login-btn:hover {
    background: #4962e6;
    color: #fff;
}

.main-content {
    min-height: 90vh;
    display: flex;
    flex-direction: column;
}

.home-hero {
    min-height: 68vh;
    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: center;
    padding: 5rem 2vw 2rem 2vw;
    text-align: center;
      background: url('/img/home-bg.png') center center/cover no-repeat;
    background-color: #f4f4f7; /* fallback for slow load */
    border-radius: 0.6rem;
    min-height: 68vh;
}
.brand-title {
    font-size: 3rem;
    font-weight: 400;
    margin: 0 0 0.8rem 0;
}
.subtitle {
    font-size: 1.5rem;
    color: #888b95;
    margin-bottom: 1.5rem;
}
.hero-description {
    font-size: 2rem;
    font-weight: 300;
    color: #23242b;
    max-width: 750px;
    margin: 0 auto;
    line-height: 1.22;
}
.hero-description strong {
    font-weight: 600;
    color: #23242b;
}

@media (max-width: 700px) {
    .brand-title { font-size: 2rem; }
    .hero-description { font-size: 1.05rem; }
    .nav-links { gap: 1rem; }
    .main-content, .home-hero { padding: 2rem 1vw; }
    .navbar { flex-direction: column; align-items: flex-start; }
}


.site-footer {
    width: 100%;
    background: #f0f1f5;
    border-top: 1px solid #e3e4ea;
    padding: 2rem 0 1.2rem 0;
    font-size: 1.08rem;
    color: #36373a;
    margin-top: 2rem;
}
.footer-content {
    max-width: 1200px;
    margin: 0 auto;
    padding: 0 2vw;
    display: flex;
    flex-direction: column;
    align-items: center;
    gap: 1rem;
}
.footer-brand {
    display: flex;
    align-items: center;
    gap: 0.75rem;
    font-weight: 600;
    font-size: 1.22rem;
    color: #36373a;
    margin-bottom: 0.3rem;
}
.footer-logo {
    height: 32px;
    width: 32px;
}
.footer-links {
    display: flex;
    gap: 2rem;
    margin-bottom: 0.4rem;
}
.footer-links a {
    color: #36373a;
    text-decoration: none;
    transition: color 0.18s;
    font-weight: 400;
}
.footer-links a:hover {
    color: #4962e6;
}
.footer-meta {
    font-size: 0.95rem;
    color: #8a8b98;
}
@media (max-width: 600px) {
    .footer-links {
        gap: 1rem;
        flex-wrap: wrap;
    }
    .footer-content {
        font-size: 1rem;
    }
}

/* Center the section and give it room to breathe */
.why-wrap {
    display: flex;
    justify-content: center;
    padding: 2.5rem 1rem 3.5rem; /* top / sides / bottom */
    background: #f3f4f8; /* subtle band different from hero */
}

/* Card that holds the content */
.why-card {
    width: 100%;
    max-width: 980px; /* keeps it readable on wide screens */
    background: #fff; /* or rgba(255,255,255,.92) if over an image */
    border-radius: 14px;
    box-shadow: 0 10px 30px rgba(40,60,120,.08);
    padding: 1.5rem 1.75rem 1.9rem;
}

    /* Title */
    .why-card h2 {
        margin: .2rem 0 1.1rem;
        font-size: clamp(1.3rem, 2.2vw, 1.8rem);
        font-weight: 700;
        letter-spacing: .2px;
        color: #23242b;
    }

/* Your existing animated list (keep your fade-in rules) */
.why-list {
    list-style: none;
    margin: 0;
    padding: 0;
}

    .why-list li {
        font-size: clamp(1rem, 1.3vw, 1.15rem);
        color: #2f3137;
        margin: .8rem 0;
        position: relative;
        padding-left: 1.4rem;
        line-height: 1.55;
        opacity: 0;
        transform: translateY(8px);
        animation: fadeInUp .6s forwards;
    }

        .why-list li::before {
            content: "•";
            position: absolute;
            left: 0;
            top: 0;
            color: #e33b3b;
            font-weight: 700;
        }

@keyframes fadeInUp {
    to {
        opacity: 1;
        transform: translateY(0);
    }
}

.why-list li:nth-child(1) {
    animation-delay: .10s;
}

.why-list li:nth-child(2) {
    animation-delay: .25s;
}

.why-list li:nth-child(3) {
    animation-delay: .40s;
}

.why-list li:nth-child(4) {
    animation-delay: .55s;
}

.why-list li:nth-child(5) {
    animation-delay: .70s;
}

.why-list li:nth-child(6) {
    animation-delay: .85s;
}

.why-list li:nth-child(7) {
    animation-delay: 1.00s;
}

.why-list li:nth-child(8) {
    animation-delay: 1.15s;
}

.why-list li:nth-child(9) {
    animation-delay: 1.30s;
}

.why-list li:nth-child(10) {
    animation-delay: 1.45s;
}

.why-list li:nth-child(11) {
    animation-delay: 1.60s;
}

@media (max-width: 720px) {
    .why-card {
        padding: 1.1rem 1rem 1.3rem;
        border-radius: 12px;
    }
}
.why-wrap::before {
    content: "";
    position: absolute;
    left: 0;
    right: 0;
    height: 1px;
    background: linear-gradient(90deg,transparent,#e7e9f2,transparent);
    transform: translateY(-1.2rem);
}
.why-card {
    transition: transform .18s ease, box-shadow .18s;
}

    .why-card:hover {
        transform: translateY(-2px);
        box-shadow: 0 14px 40px rgba(40,60,120,.10);
    }


/* Full‑screen overlay just for the loader */
#tevalon-loader {
    position: fixed;
    inset: 0;
    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: center;
    gap: .6rem;
    background: transparent;
    z-index: 9999;
    pointer-events: none;
}

#dot-grid circle {
    fill: #23242b;
    opacity: .35;
    transition: fill .25s, opacity .25s, transform .25s;
}

    #dot-grid circle.filled {
        fill: #dc2626;
        opacity: 1;
    }

    #dot-grid circle.pulse {
        transform: scale(1.15);
    }

.tevalon-progress-text {
    font-family: system-ui,Inter,Segoe UI,Arial,sans-serif;
    font-size: 14px;
    color: #333;
    opacity: .9;
}

/* fade out and then remove */
.loader-done {
    animation: fadeOut .35s ease forwards;
}

@keyframes fadeOut {
    to {
        opacity: 0;
        visibility: hidden;
    }
}

