@import url('https://fonts.googleapis.com/css2?family=Inter:wght@400;500;600;700&display=swap');

*, *::before, *::after {
    box-sizing: border-box;
}

html, body {
    margin: 0;
    padding: 0;
    font-family: 'Inter', 'Helvetica Neue', Helvetica, Arial, sans-serif;
    background: #000000;
    color: #ffffff;
    -webkit-font-smoothing: antialiased;
}

a {
    color: #00a3ff;
    text-decoration: none;
}

a:hover {
    color: #bd00ff;
}

h1:focus {
    outline: none;
}

/* ---- Layout / header ---- */
.page {
    min-height: 100vh;
    display: flex;
    flex-direction: column;
    background: #000000;
}

.site-header {
    display: flex;
    flex-direction: row;
    align-items: center;
    justify-content: flex-start;
    gap: 1.5rem;
    height: 56px;
    padding: 0 20px;
    background: #000000;
    border-bottom: 1px solid rgba(0, 163, 255, 0.15);
    position: sticky;
    top: 0;
    z-index: 10;
}

.nav-toggle {
    display: none;
    margin-left: auto;
    width: 44px;
    height: 44px;
    padding: 0;
    border-radius: 12px;
    border: 1px solid rgba(0, 163, 255, 0.35);
    background: rgba(255, 255, 255, 0.03);
    box-shadow: 0 0 16px rgba(0, 163, 255, 0.12);
    cursor: pointer;
    flex-direction: column;
    align-items: center;
    justify-content: center;
    gap: 5px;
}

.nav-toggle span {
    display: block;
    width: 18px;
    height: 2px;
    border-radius: 999px;
    background: linear-gradient(135deg, #00a3ff, #bd00ff);
    transition: transform 0.2s ease, opacity 0.2s ease;
}

.nav-toggle.is-open span:nth-child(1) {
    transform: translateY(7px) rotate(45deg);
}

.nav-toggle.is-open span:nth-child(2) {
    opacity: 0;
}

.nav-toggle.is-open span:nth-child(3) {
    transform: translateY(-7px) rotate(-45deg);
}

.site-brand {
    display: inline-flex;
    align-items: center;
    text-decoration: none;
    line-height: 1;
    flex-shrink: 0;
    font-size: 1.15rem;
    font-weight: 700;
    letter-spacing: 0.04em;
    padding: 0.48rem 1.05rem;
    border-radius: 999px;
    background: rgba(255, 255, 255, 0.03);
    border: 1px solid rgba(0, 163, 255, 0.22);
    box-shadow: 0 0 24px rgba(0, 163, 255, 0.08), inset 0 1px 0 rgba(255, 255, 255, 0.06);
    backdrop-filter: blur(10px);
    -webkit-backdrop-filter: blur(10px);
    transition: border-color 0.2s ease, box-shadow 0.2s ease, background 0.2s ease;
}

.site-brand:hover {
    background: linear-gradient(135deg, rgba(0, 163, 255, 0.14), rgba(189, 0, 255, 0.12));
    border-color: rgba(0, 163, 255, 0.45);
    box-shadow: 0 0 18px rgba(0, 163, 255, 0.28), inset 0 1px 0 rgba(255, 255, 255, 0.08);
}

.site-nav {
    display: flex;
    flex-direction: row;
    align-items: center;
    gap: 0.35rem;
    flex-shrink: 0;
    margin-left: 0;
    padding: 0.3rem;
    border-radius: 999px;
    background: rgba(255, 255, 255, 0.03);
    border: 1px solid rgba(0, 163, 255, 0.22);
    box-shadow: 0 0 24px rgba(0, 163, 255, 0.08), inset 0 1px 0 rgba(255, 255, 255, 0.06);
    backdrop-filter: blur(10px);
    -webkit-backdrop-filter: blur(10px);
}

.site-nav a.site-nav-link {
    color: rgba(255, 255, 255, 0.68) !important;
    text-decoration: none !important;
    font-size: 0.92rem;
    font-weight: 600;
    letter-spacing: 0.03em;
    padding: 0.48rem 1.05rem;
    border-radius: 999px;
    border: 1px solid transparent;
    white-space: nowrap;
    transition: color 0.2s ease, border-color 0.2s ease, background 0.2s ease, box-shadow 0.2s ease, transform 0.2s ease;
}

.site-nav a.site-nav-link:hover {
    color: #ffffff !important;
    background: linear-gradient(135deg, rgba(0, 163, 255, 0.18), rgba(189, 0, 255, 0.14));
    border-color: rgba(0, 163, 255, 0.4);
    box-shadow: 0 0 14px rgba(0, 163, 255, 0.2);
}

.site-nav a.site-nav-link.active {
    color: #ffffff !important;
    background: linear-gradient(135deg, rgba(0, 163, 255, 0.32), rgba(189, 0, 255, 0.28));
    border-color: rgba(0, 163, 255, 0.55);
    box-shadow: 0 0 18px rgba(0, 163, 255, 0.35), inset 0 0 12px rgba(0, 163, 255, 0.12);
}

main {
    flex: 1;
}

.site-footer {
    margin-top: auto;
    padding: 1.1rem 1.25rem;
    text-align: center;
    border-top: 1px solid rgba(0, 163, 255, 0.15);
    background: rgba(0, 0, 0, 0.85);
}

.site-footer-copy {
    margin: 0;
    font-size: 0.85rem;
    letter-spacing: 0.03em;
    color: rgba(255, 255, 255, 0.55);
}

.page-section {
    position: relative;
    display: flex;
    flex-direction: column;
    align-items: center;
    text-align: center;
    min-height: calc(100vh - 56px);
    padding: 3rem 1.5rem 4rem;
    max-width: 720px;
    margin: 0 auto;
}

.page-heading {
    font-size: clamp(2rem, 5vw, 3rem);
    font-weight: 700;
    letter-spacing: 0.04em;
    margin: 0 0 1.5rem;
}

.page-lead {
    font-size: clamp(1.05rem, 2.5vw, 1.2rem);
    line-height: 1.7;
    color: rgba(255, 255, 255, 0.75);
    margin: 0;
    max-width: 560px;
}

.page-section .home-block {
    width: 100%;
    max-width: 720px;
    text-align: left;
}

.accent-text {
    background: linear-gradient(135deg, #00a3ff, #bd00ff);
    -webkit-background-clip: text;
    -webkit-text-fill-color: transparent;
    background-clip: text;
    font-weight: 700;
}

.principle-line {
    margin-top: 0.5rem;
    margin-bottom: 0;
    background: linear-gradient(135deg, #ffffff 15%, #00a3ff 65%, #bd00ff 100%);
    -webkit-background-clip: text;
    -webkit-text-fill-color: transparent;
    background-clip: text;
}

a.app-link {
    display: inline-flex;
    align-items: center;
    font-weight: 600;
    letter-spacing: 0.02em;
    color: #00a3ff !important;
    text-decoration: none;
    border-bottom: 1px solid rgba(0, 163, 255, 0.45);
    transition: color 0.2s ease, border-color 0.2s ease;
}

a.app-link:hover {
    color: #bd00ff !important;
    border-bottom-color: rgba(189, 0, 255, 0.6);
}

/* ---- Projects page ---- */
.projects-page {
    position: relative;
    overflow: hidden;
    min-height: calc(100vh - 56px);
    padding: 2.75rem 1.5rem 4rem;
}

.projects-inner {
    position: relative;
    z-index: 1;
    max-width: 820px;
    margin: 0 auto;
    display: flex;
    flex-direction: column;
    align-items: center;
    text-align: center;
}

.projects-intro {
    margin: 0 0 2rem;
    max-width: 560px;
    font-size: clamp(1rem, 2.2vw, 1.15rem);
    line-height: 1.65;
    color: rgba(255, 255, 255, 0.7);
}

.project-card {
    width: 100%;
    text-align: left;
    padding: 2rem 2.25rem;
    border-radius: 20px;
    background: linear-gradient(160deg, rgba(0, 163, 255, 0.08), rgba(189, 0, 255, 0.06) 45%, rgba(0, 0, 0, 0.65));
    border: 1px solid rgba(0, 163, 255, 0.28);
    box-shadow: 0 0 40px rgba(0, 163, 255, 0.1), inset 0 1px 0 rgba(255, 255, 255, 0.06);
    backdrop-filter: blur(14px);
    -webkit-backdrop-filter: blur(14px);
    transition: transform 0.25s ease, border-color 0.25s ease, box-shadow 0.25s ease;
}

.project-card:hover {
    transform: translateY(-4px);
    border-color: rgba(0, 163, 255, 0.5);
    box-shadow: 0 12px 48px rgba(0, 163, 255, 0.18), 0 0 0 1px rgba(189, 0, 255, 0.12);
}

.project-card-top {
    margin-bottom: 1.25rem;
}

.project-badge {
    display: inline-flex;
    align-items: center;
    margin-bottom: 0.85rem;
    padding: 0.35rem 0.8rem;
    border-radius: 999px;
    font-size: 0.75rem;
    font-weight: 700;
    letter-spacing: 0.06em;
    text-transform: uppercase;
    color: rgba(255, 255, 255, 0.9);
    background: linear-gradient(135deg, rgba(0, 163, 255, 0.28), rgba(189, 0, 255, 0.22));
    border: 1px solid rgba(0, 163, 255, 0.4);
    box-shadow: 0 0 16px rgba(0, 163, 255, 0.2);
}

.project-title {
    margin: 0 0 0.55rem;
    font-size: clamp(1.6rem, 4vw, 2.2rem);
    font-weight: 700;
    letter-spacing: 0.03em;
}

.project-tagline {
    margin: 0;
    font-size: 1.05rem;
    line-height: 1.55;
    color: rgba(255, 255, 255, 0.78);
}

.project-features {
    display: flex;
    flex-wrap: wrap;
    gap: 0.55rem;
    margin: 0 0 1.35rem;
}

.project-chip {
    display: inline-flex;
    align-items: center;
    padding: 0.4rem 0.75rem;
    border-radius: 999px;
    font-size: 0.82rem;
    font-weight: 600;
    letter-spacing: 0.02em;
    color: rgba(255, 255, 255, 0.85);
    background: rgba(255, 255, 255, 0.04);
    border: 1px solid rgba(0, 163, 255, 0.25);
    transition: background 0.2s ease, border-color 0.2s ease, box-shadow 0.2s ease, transform 0.2s ease;
}

.project-chip:hover {
    transform: translateY(-1px);
    background: linear-gradient(135deg, rgba(0, 163, 255, 0.16), rgba(189, 0, 255, 0.12));
    border-color: rgba(0, 163, 255, 0.45);
    box-shadow: 0 0 14px rgba(0, 163, 255, 0.18);
}

.project-body {
    margin: 0 0 0.9rem;
    font-size: clamp(0.98rem, 2vw, 1.08rem);
    line-height: 1.75;
    color: rgba(255, 255, 255, 0.72);
}

.project-actions {
    margin: 1.5rem 0 1.25rem;
}

.project-cta {
    display: inline-flex;
    align-items: center;
    gap: 0.65rem;
    padding: 0.8rem 1.35rem;
    border-radius: 999px;
    text-decoration: none !important;
    color: #ffffff !important;
    font-weight: 700;
    letter-spacing: 0.02em;
    background: linear-gradient(135deg, rgba(0, 163, 255, 0.4), rgba(189, 0, 255, 0.35));
    border: 1px solid rgba(0, 163, 255, 0.55);
    box-shadow: 0 0 24px rgba(0, 163, 255, 0.28);
    transition: transform 0.2s ease, box-shadow 0.2s ease, border-color 0.2s ease;
}

.project-cta:hover {
    transform: translateY(-2px);
    border-color: rgba(0, 210, 255, 0.8);
    box-shadow: 0 8px 28px rgba(0, 163, 255, 0.4);
    color: #ffffff !important;
}

.project-cta-arrow {
    transition: transform 0.2s ease;
}

.project-cta:hover .project-cta-arrow {
    transform: translateX(4px);
}

.project-footer-line {
    margin: 0;
    padding-top: 1rem;
    border-top: 1px solid rgba(0, 163, 255, 0.18);
    font-size: 0.98rem;
    font-weight: 600;
    letter-spacing: 0.02em;
    background: linear-gradient(135deg, #ffffff 15%, #00a3ff 65%, #bd00ff 100%);
    -webkit-background-clip: text;
    -webkit-text-fill-color: transparent;
    background-clip: text;
}

@media (max-width: 640px) {
    .project-card {
        padding: 1.5rem;
    }

    .project-cta {
        width: 100%;
        justify-content: center;
    }
}

.contact-form {
    display: flex;
    flex-direction: column;
    gap: 1rem;
    margin-top: 1.5rem;
}

.contact-fieldset {
    border: 0;
    margin: 0;
    padding: 0;
    min-width: 0;
    display: flex;
    flex-direction: column;
    gap: 1rem;
}

.contact-label {
    display: flex;
    flex-direction: column;
    gap: 0.45rem;
    font-size: 0.9rem;
    font-weight: 600;
    letter-spacing: 0.03em;
    color: rgba(255, 255, 255, 0.78);
}

.contact-input {
    width: 100%;
    padding: 0.8rem 1rem;
    border-radius: 12px;
    border: 1px solid rgba(0, 163, 255, 0.28);
    background: rgba(0, 0, 0, 0.45);
    color: #ffffff;
    font: inherit;
    outline: none;
    transition: border-color 0.2s ease, box-shadow 0.2s ease;
}

.contact-input::placeholder {
    color: rgba(255, 255, 255, 0.35);
}

.contact-input:focus {
    border-color: rgba(0, 163, 255, 0.6);
    box-shadow: 0 0 16px rgba(0, 163, 255, 0.2);
}

.contact-textarea {
    resize: vertical;
    min-height: 120px;
}

.contact-submit {
    align-self: flex-start;
    margin-top: 0.25rem;
    padding: 0.7rem 1.4rem;
    border-radius: 999px;
    border: 1px solid rgba(0, 163, 255, 0.45);
    background: linear-gradient(135deg, rgba(0, 163, 255, 0.32), rgba(189, 0, 255, 0.28));
    color: #ffffff;
    font: inherit;
    font-weight: 600;
    letter-spacing: 0.03em;
    cursor: pointer;
    box-shadow: 0 0 18px rgba(0, 163, 255, 0.25);
    transition: box-shadow 0.2s ease, border-color 0.2s ease, transform 0.2s ease;
}

.contact-submit:hover:not(:disabled) {
    border-color: rgba(0, 163, 255, 0.7);
    box-shadow: 0 0 24px rgba(0, 163, 255, 0.4);
}

.contact-submit:disabled {
    opacity: 0.55;
    cursor: not-allowed;
    box-shadow: none;
}

.contact-status {
    margin: 0.25rem 0 0;
    font-size: 0.92rem;
}

.contact-status--success {
    color: rgba(80, 220, 160, 0.95);
}

.contact-status--error {
    color: rgba(255, 120, 140, 0.95);
}

@media (max-width: 860px) {
    .site-header {
        position: sticky;
        flex-wrap: wrap;
        height: auto;
        min-height: 56px;
        gap: 0.75rem;
        padding: 0.65rem 1rem;
    }

    .nav-toggle {
        display: inline-flex;
    }

    .site-nav {
        display: none;
        width: 100%;
        flex-direction: column;
        align-items: stretch;
        gap: 0.4rem;
        margin: 0;
        padding: 0.55rem;
        border-radius: 16px;
    }

    .site-nav.is-open {
        display: flex;
    }

    .site-nav a.site-nav-link {
        width: 100%;
        text-align: center;
        font-size: 0.95rem;
        padding: 0.75rem 1rem;
    }
}

/* ---- Home hero ---- */
.hero {
    position: relative;
    display: flex;
    align-items: flex-start;
    justify-content: center;
    min-height: calc(100vh - 56px);
    padding: 2.5rem 1.5rem 4rem;
    overflow: hidden;
}

.hero-glow {
    position: absolute;
    border-radius: 50%;
    filter: blur(80px);
    pointer-events: none;
}

.hero-glow--left {
    width: 400px;
    height: 400px;
    top: 10%;
    left: -10%;
    background: rgba(0, 163, 255, 0.15);
}

.hero-glow--right {
    width: 350px;
    height: 350px;
    bottom: 5%;
    right: -5%;
    background: rgba(189, 0, 255, 0.12);
}

.hero-bg-logo {
    position: absolute;
    inset: 0;
    z-index: 0;
    pointer-events: none;
    background-image: url("/_content/EvoDapp.Shared/images/evodapp-logo.png");
    background-repeat: no-repeat;
    background-position: center center;
    background-size: min(620px, 78vw);
    opacity: 0.22;
    filter: saturate(1.15) brightness(1.1);
}

.hero-content {
    position: relative;
    display: flex;
    flex-direction: column;
    align-items: center;
    text-align: center;
    max-width: 780px;
    width: 100%;
    z-index: 1;
}

.hero-title {
    display: inline-flex;
    align-items: center;
    font-size: clamp(2rem, 5vw, 3rem);
    font-weight: 700;
    letter-spacing: 0.04em;
    margin: 0 0 1rem;
}

.hero-title-text {
    line-height: 1;
}

.hero-title-evo {
    color: #ffffff;
}

.hero-title-dapp {
    background: linear-gradient(135deg, #00a3ff, #bd00ff);
    -webkit-background-clip: text;
    -webkit-text-fill-color: transparent;
    background-clip: text;
}

.hero-tagline {
    margin: 0 0 2.25rem;
    font-size: clamp(1.05rem, 2.4vw, 1.35rem);
    font-weight: 600;
    letter-spacing: 0.01em;
    line-height: 1.5;
    background: linear-gradient(135deg, #ffffff 20%, #00a3ff 70%, #bd00ff 100%);
    -webkit-background-clip: text;
    -webkit-text-fill-color: transparent;
    background-clip: text;
    max-width: 640px;
}

.vision-card {
    background: rgba(0, 0, 0, 0.55);
    backdrop-filter: blur(12px);
    -webkit-backdrop-filter: blur(12px);
    border: 1px solid rgba(0, 163, 255, 0.2);
    border-radius: 16px;
    padding: 2rem 2.5rem;
    box-shadow: 0 0 40px rgba(0, 163, 255, 0.08), inset 0 1px 0 rgba(255, 255, 255, 0.06);
}

.home-block {
    width: 100%;
    text-align: left;
    margin-bottom: 1.25rem;
}

.home-label {
    font-size: clamp(1.15rem, 2.5vw, 1.45rem);
    font-weight: 700;
    letter-spacing: 0.06em;
    text-transform: uppercase;
    margin: 0 0 1rem;
}

.home-lead {
    font-size: clamp(1.05rem, 2.3vw, 1.25rem);
    font-weight: 600;
    line-height: 1.55;
    color: rgba(255, 255, 255, 0.95);
    margin: 0 0 0.85rem;
}

.home-body {
    font-size: clamp(0.98rem, 2vw, 1.1rem);
    line-height: 1.75;
    color: rgba(255, 255, 255, 0.72);
    margin: 0 0 0.85rem;
}

.home-body:last-child {
    margin-bottom: 0;
}

.believe-list {
    list-style: none;
    margin: 0;
    padding: 0;
    display: flex;
    flex-direction: column;
    gap: 0.75rem;
}

.believe-list li {
    position: relative;
    padding-left: 1.35rem;
    font-size: clamp(0.98rem, 2vw, 1.08rem);
    line-height: 1.6;
    color: rgba(255, 255, 255, 0.78);
}

.believe-list li::before {
    content: "";
    position: absolute;
    left: 0;
    top: 0.55em;
    width: 0.45rem;
    height: 0.45rem;
    border-radius: 50%;
    background: linear-gradient(135deg, #00a3ff, #bd00ff);
    box-shadow: 0 0 10px rgba(0, 163, 255, 0.55);
}

.promise-grid {
    display: grid;
    grid-template-columns: repeat(2, minmax(0, 1fr));
    gap: 0.75rem;
}

.promise-chip {
    display: block;
    text-align: center;
    padding: 0.85rem 1rem;
    border-radius: 12px;
    border: 1px solid rgba(0, 163, 255, 0.28);
    background: linear-gradient(135deg, rgba(0, 163, 255, 0.1), rgba(189, 0, 255, 0.08));
    color: rgba(255, 255, 255, 0.92);
    font-size: 0.98rem;
    font-weight: 600;
    letter-spacing: 0.01em;
    box-shadow: 0 0 18px rgba(0, 163, 255, 0.08);
}

.promise-chip--wide {
    grid-column: 1 / -1;
    background: linear-gradient(135deg, rgba(0, 163, 255, 0.16), rgba(189, 0, 255, 0.14));
    border-color: rgba(189, 0, 255, 0.35);
}

.trust-badge {
    margin-top: 1.75rem;
    color: #00a3ff;
    filter: drop-shadow(0 0 12px rgba(0, 163, 255, 0.5));
}

.trust-badge svg {
    width: 32px;
    height: 32px;
}

@media (max-width: 640px) {
    .vision-card {
        padding: 1.5rem;
    }

    .promise-grid {
        grid-template-columns: 1fr;
    }

    .promise-chip--wide {
        grid-column: auto;
    }
}

#blazor-error-ui {
    background: rgba(20, 0, 40, 0.95);
    color: #fff;
    bottom: 0;
    box-shadow: 0 -1px 8px rgba(0, 163, 255, 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;
    border-top: 1px solid rgba(0, 163, 255, 0.3);
}

#blazor-error-ui .reload {
    color: #00a3ff;
}

#blazor-error-ui .dismiss {
    cursor: pointer;
    position: absolute;
    right: 0.75rem;
    top: 0.5rem;
}

.valid.modified:not([type=checkbox]) {
    outline: 1px solid #26b050;
}

.invalid {
    outline: 1px solid #e50000;
}

.validation-message {
    color: #e50000;
}
