:root {
    --bg: #ffffff;
    --ink: #1a2332;
    --muted: #5b6575;
    --blue: #2f6fed;
    --blue-soft: #e8f0fe;
    --blue-ring: #9bb8f5;
    --line: #e6ebf2;
    --btn-ghost: #f4f6f9;
    --radius: 12px;
    --font-display: "Fraunces", "Iowan Old Style", "Palatino Linotype", serif;
    --font-body: "Manrope", "Segoe UI", sans-serif;
}

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

html {
    scroll-behavior: smooth;
}

body {
    margin: 0;
    background: var(--bg);
    color: var(--ink);
    font-family: var(--font-body);
    font-size: 1.05rem;
    line-height: 1.6;
    -webkit-font-smoothing: antialiased;
}

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

button {
    font: inherit;
    color: inherit;
    background: none;
    border: 0;
    cursor: pointer;
    padding: 0;
}

.site {
    min-height: 100vh;
    background: var(--bg);
}

.site-header {
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 1.5rem;
    padding: 1.35rem clamp(1.25rem, 4vw, 3.5rem);
    border-bottom: 1px solid var(--line);
    position: sticky;
    top: 0;
    background: rgba(255, 255, 255, 0.92);
    backdrop-filter: blur(10px);
    z-index: 10;
}

.logo {
    font-family: var(--font-display);
    font-size: clamp(1.8rem, 3vw, 2.35rem);
    font-weight: 700;
    letter-spacing: -0.03em;
    line-height: 1;
}

.logo-accent {
    color: var(--blue);
}

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

.nav-link {
    display: inline-flex;
    align-items: center;
    gap: 0.45rem;
    padding: 0.55rem 0.9rem;
    border-radius: 999px;
    color: var(--ink);
    font-size: 0.95rem;
    font-weight: 500;
    transition: background 160ms ease, color 160ms ease, box-shadow 160ms ease;
}

.nav-link:hover {
    background: var(--btn-ghost);
}

.nav-link.is-active {
    background: var(--blue-soft);
    color: var(--blue);
    box-shadow: inset 0 0 0 1px var(--blue-ring);
}

.nav-lang {
    border: 1px solid var(--line);
    background: var(--bg);
}

.nav-lang:hover {
    border-color: var(--blue-ring);
    background: var(--blue-soft);
    color: var(--blue);
}

.nav-icon {
    width: 1.05rem;
    height: 1.05rem;
    flex-shrink: 0;
}

main {
    width: min(760px, calc(100% - 2.5rem));
    margin: 0 auto;
    padding: clamp(3.5rem, 9vh, 6.5rem) 0 5rem;
}

.hero {
    padding-bottom: 4rem;
    animation: rise 700ms ease both;
}

.hero-greeting {
    margin: 0 0 0.55rem;
    color: var(--blue);
    font-family: var(--font-display);
    font-style: italic;
    font-size: 1.15rem;
}

.hero-name {
    margin: 0;
    font-family: var(--font-display);
    font-size: clamp(2.8rem, 8vw, 4.6rem);
    font-weight: 700;
    letter-spacing: -0.04em;
    line-height: 1.05;
    color: var(--ink);
}

.hero-tagline {
    margin: 0.85rem 0 1.25rem;
    color: var(--blue);
    font-family: var(--font-display);
    font-style: italic;
    font-size: clamp(1.2rem, 3vw, 1.65rem);
}

.hero-copy {
    margin: 0;
    max-width: 38rem;
    color: var(--muted);
    font-size: 1.05rem;
}

.hero-actions {
    display: flex;
    flex-wrap: wrap;
    gap: 0.85rem;
    margin-top: 1.85rem;
}

.btn {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    min-height: 2.85rem;
    padding: 0.7rem 1.25rem;
    border-radius: var(--radius);
    font-weight: 600;
    font-size: 0.98rem;
    transition: transform 160ms ease, background 160ms ease, box-shadow 160ms ease;
}

.btn:hover {
    transform: translateY(-1px);
}

.btn-primary {
    background: var(--blue);
    color: #fff;
    box-shadow: 0 10px 24px rgba(47, 111, 237, 0.22);
}

.btn-primary:hover {
    background: #245fd4;
}

.btn-secondary {
    background: var(--btn-ghost);
    color: var(--ink);
    box-shadow: inset 0 0 0 1px #d8dee8;
}

.btn-secondary:hover {
    background: #ebeff5;
}

.section {
    padding: 3.25rem 0 0;
    border-top: 1px solid var(--line);
    margin-top: 1rem;
    animation: rise 800ms ease both;
    animation-delay: 80ms;
}

.section-last {
    padding-bottom: 1rem;
}

.section-title {
    margin: 0 0 0.9rem;
    font-family: var(--font-display);
    font-size: clamp(1.7rem, 4vw, 2.2rem);
    letter-spacing: -0.03em;
}

.section-copy {
    margin: 0 0 1.35rem;
    max-width: 38rem;
    color: var(--muted);
}

#blazor-error-ui {
    background: #fff8d6;
    bottom: 0;
    box-shadow: 0 -1px 2px rgba(0, 0, 0, 0.15);
    display: none;
    left: 0;
    padding: 0.6rem 1.25rem;
    position: fixed;
    width: 100%;
    z-index: 1000;
}

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

@keyframes rise {
    from {
        opacity: 0;
        transform: translateY(14px);
    }
    to {
        opacity: 1;
        transform: translateY(0);
    }
}

@media (max-width: 640px) {
    .site-header {
        align-items: flex-start;
        flex-direction: column;
        gap: 1rem;
    }

    .site-nav {
        width: 100%;
        justify-content: flex-start;
    }

    main {
        width: min(100% - 2rem, 760px);
    }
}
