:root {
    color-scheme: light;
    --font-base: "Inter", "Segoe UI", "Helvetica Neue", sans-serif;
    --bg: #f4f6f9;
    --panel: #ffffff;
    --panel-alt: #f0f4f8;
    --border: rgba(15, 23, 42, 0.08);
    --border-strong: rgba(15, 23, 42, 0.2);
    --nav-bg: #020f1b;
    --nav-text: #f8fafc;
    --nav-muted: rgba(248, 250, 252, 0.82);
    --accent: #0f62fe;
    --accent-strong: #0043ce;
    --accent-muted: rgba(15, 98, 254, 0.08);
    --text: #0b172a;
    --text-muted: #4b5563;
    --shadow: 0 14px 34px rgba(15, 23, 42, 0.1);
    --shadow-hover: 0 18px 38px rgba(15, 23, 42, 0.14);
}

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

body {
    margin: 0;
    min-height: 100vh;
    font-family: var(--font-base);
    background: var(--bg);
    color: var(--text);
}

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

.container {
    width: min(1120px, 94vw);
    margin: 0 auto;
    padding: 2.6rem 0;
}

.site-header {
    background: var(--nav-bg);
    border-bottom: 1px solid rgba(15, 23, 42, 0.4);
    color: var(--nav-text);
}

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

.site-identity {
    display: flex;
    align-items: center;
    gap: 1rem;
}

.logo-link {
    display: inline-flex;
    align-items: center;
}

.site-logo {
    height: 56px;
    width: auto;
    display: block;
}

.site-title {
    margin: 0;
    font-size: clamp(1.4rem, 3vw, 1.9rem);
    font-weight: 600;
    letter-spacing: 0.02em;
    position: relative;
}

.site-title a {
    color: var(--nav-text);
}

.sr-only {
    position: absolute;
    width: 1px;
    height: 1px;
    padding: 0;
    margin: -1px;
    overflow: hidden;
    clip: rect(0, 0, 0, 0);
    white-space: nowrap;
    border: 0;
}

nav {
    display: flex;
    align-items: center;
    gap: 0.9rem;
}

nav a {
    padding: 0.5rem 0.95rem;
    border-radius: 0.65rem;
    color: var(--nav-muted);
    font-weight: 600;
    transition: background 0.2s ease, color 0.2s ease, border 0.2s ease;
}

nav a:hover,
nav a.active {
    background: rgba(248, 250, 252, 0.14);
    color: #ffffff;
    border: 1px solid rgba(248, 250, 252, 0.2);
}

main {
    padding-bottom: 4rem;
}

.hero {
    background: var(--panel);
    border: 1px solid var(--border);
    border-radius: 1.2rem;
    padding: clamp(2.6rem, 4vw, 3.3rem);
    box-shadow: var(--shadow);
    position: relative;
    overflow: hidden;
}

.hero::before {
    content: "";
    position: absolute;
    inset: 0;
    background: linear-gradient(135deg, rgba(15, 98, 254, 0.08), transparent 65%);
    pointer-events: none;
}

.hero h2 {
    position: relative;
    margin: 0 0 1rem;
    font-size: clamp(2rem, 4vw, 2.8rem);
}

.hero p {
    position: relative;
    margin: 0.4rem 0;
    max-width: 52rem;
    color: var(--text-muted);
    line-height: 1.65;
}

.hero-actions {
    position: relative;
    display: flex;
    flex-wrap: wrap;
    gap: 0.9rem;
    margin-top: 1.8rem;
}

.grid {
    display: grid;
    gap: 1.8rem;
    margin-top: 2.4rem;
    grid-template-columns: repeat(auto-fit, minmax(240px, 1fr));
}

.grid-profiles {
    gap: clamp(2.2rem, 4vw, 3.2rem);
    grid-template-columns: repeat(auto-fit, minmax(300px, 1fr));
}

.grid article {
    background: var(--panel);
    border: 1px solid var(--border);
    border-radius: 1.1rem;
    padding: 1.9rem;
    box-shadow: var(--shadow);
    transition: border-color 0.2s ease, box-shadow 0.2s ease, transform 0.2s ease, background 0.2s ease;
}

.grid article:hover {
    border-color: var(--border-strong);
    box-shadow: var(--shadow-hover);
    transform: translateY(-6px);
    background: linear-gradient(180deg, #ffffff 0%, #f7f9fb 100%);
}

.button {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    padding: 0.85rem 1.9rem;
    border-radius: 999px;
    font-weight: 600;
    border: none;
    cursor: pointer;
    transition: transform 0.15s ease, box-shadow 0.15s ease, background 0.15s ease, border 0.15s ease;
}

.button.primary {
    background: var(--accent);
    color: #ffffff;
    box-shadow: 0 12px 28px rgba(15, 98, 254, 0.24);
}

.button.primary:hover {
    transform: translateY(-2px);
    background: var(--accent-strong);
    box-shadow: 0 16px 30px rgba(15, 98, 254, 0.28);
}

.button.secondary {
    background: transparent;
    border: 1px solid rgba(15, 23, 42, 0.18);
    color: var(--text);
}

.button.secondary:hover {
    border-color: rgba(15, 23, 42, 0.32);
    transform: translateY(-2px);
}

.form {
    background: var(--panel);
    border: 1px solid var(--border);
    border-radius: 1.2rem;
    padding: clamp(2.3rem, 3vw, 2.9rem);
    box-shadow: var(--shadow);
}

.field {
    margin-bottom: 1.35rem;
}

label {
    display: block;
    margin-bottom: 0.45rem;
    font-weight: 600;
    color: #1f2937;
}

input,
textarea {
    width: 100%;
    padding: 0.9rem 1rem;
    border-radius: 0.85rem;
    border: 1px solid rgba(15, 23, 42, 0.2);
    background: #ffffff;
    color: var(--text);
    font-size: 1rem;
    transition: border-color 0.2s ease, box-shadow 0.2s ease;
}

input:focus,
textarea:focus {
    outline: none;
    border-color: rgba(15, 98, 254, 0.55);
    box-shadow: 0 0 0 3px rgba(15, 98, 254, 0.15);
}

textarea {
    resize: vertical;
    min-height: 160px;
}

small {
    display: block;
    margin-top: 0.5rem;
    color: var(--text-muted);
}

.alert {
    padding: 1.1rem 1.35rem;
    border-radius: 1rem;
    border: 1px solid transparent;
    margin-bottom: 1.6rem;
    background: var(--panel-alt);
}

.alert.success {
    border-color: rgba(16, 185, 129, 0.32);
    background: rgba(16, 185, 129, 0.14);
    color: #047857;
}

.alert.warning {
    border-color: rgba(245, 158, 11, 0.32);
    background: rgba(245, 158, 11, 0.16);
    color: #b45309;
}

.alert a {
    color: var(--accent);
    text-decoration: underline;
}

.callout {
    margin-top: 2.4rem;
    background: var(--panel);
    border: 1px solid var(--border);
    border-radius: 1.1rem;
    padding: 1.9rem;
    box-shadow: var(--shadow);
    color: var(--text-muted);
}

.site-footer {
    background: var(--nav-bg);
    color: #d5deed;
    text-align: center;
    padding: 2.1rem 0 2.6rem;
    border-top: 1px solid rgba(15, 23, 42, 0.4);
    font-size: 0.92rem;
}

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

    nav {
        flex-wrap: wrap;
        gap: 0.6rem;
    }

    nav a {
        padding: 0.45rem 0.7rem;
    }

    .hero-actions {
        flex-direction: column;
        align-items: stretch;
    }

    .button.secondary {
        justify-content: center;
    }
}
