body {
    margin: 0;
    font-family: 'Inter', system-ui, sans-serif;
    color: #212121;
    background: linear-gradient(180deg, #f4f7ff 0%, #eef2ff 100%);
}

* {
    box-sizing: border-box;
}

a {
    color: #3f65ff;
    text-decoration: none;
}

a:hover {
    text-decoration: underline;
}

.container {
    width: min(1180px, calc(100% - 40px));
    margin: 0 auto;
    padding: 30px 0;
}

.topbar {
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 18px;
    padding: 24px 0;
}

.brand {
    font-size: 1.5rem;
    font-weight: 800;
    letter-spacing: -.02em;
    color: #1c1f3a;
}

.nav-links {
    display: flex;
    gap: 16px;
    flex-wrap: wrap;
}

.nav-links a.button,
.button {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    gap: 8px;
    padding: 12px 18px;
    border-radius: 999px;
    border: none;
    font-weight: 600;
    cursor: pointer;
    transition: transform .15s ease, box-shadow .15s ease;
}

.button.primary {
    background: linear-gradient(135deg, #4751ff, #63a4ff);
    color: white;
}

.button.secondary {
    background: #ffffff;
    color: #3f65ff;
    border: 1px solid rgba(63, 101, 255, 0.16);
}

.button:hover {
    transform: translateY(-1px);
    box-shadow: 0 18px 40px rgba(63, 101, 255, 0.14);
}

.hero {
    background: radial-gradient(circle at top left, rgba(99, 164, 255, 0.18), transparent 35%),
                radial-gradient(circle at bottom right, rgba(71, 81, 255, 0.16), transparent 28%),
                linear-gradient(180deg, #ffffff 0%, #eef2ff 100%);
    border-radius: 32px;
    padding: 48px;
    margin-bottom: 32px;
    box-shadow: 0 24px 80px rgba(55, 63, 163, 0.08);
}

.hero h1 {
    font-size: clamp(2.4rem, 3.5vw, 4rem);
    margin: 0 0 16px;
    line-height: 1.02;
}

.hero p {
    max-width: 730px;
    margin: 0 0 24px;
    color: #4b5563;
    font-size: 1.05rem;
}

.cards {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(250px, 1fr));
    gap: 20px;
    margin-bottom: 32px;
}

.card {
    background: white;
    border-radius: 24px;
    padding: 24px;
    box-shadow: 0 18px 40px rgba(41, 48, 95, 0.08);
}

.card h2 {
    margin: 0 0 16px;
    font-size: 1.05rem;
    color: #0f172a;
}

.card p {
    margin: 0;
    color: #475569;
}

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

.stat {
    background: linear-gradient(180deg, #fbfbff 0%, #e5ecff 100%);
    border-radius: 24px;
    padding: 22px;
}

.stat .value {
    font-size: 2.15rem;
    font-weight: 700;
    margin-bottom: 10px;
}

.grid-2 {
    display: grid;
    grid-template-columns: 1.2fr .8fr;
    gap: 24px;
}

.panel {
    background: white;
    border-radius: 24px;
    padding: 24px;
    box-shadow: 0 18px 40px rgba(41, 48, 95, 0.08);
}

.form-card {
    max-width: 640px;
    margin: 0 auto;
}

.form-group {
    display: grid;
    gap: 8px;
    margin-bottom: 16px;
}

label {
    font-weight: 600;
    color: #1f2937;
}

input, select, textarea {
    border: 1px solid #d1d5db;
    border-radius: 16px;
    padding: 14px 16px;
    font-size: 1rem;
    background: #fff;
    width: 100%;
}

input:focus, select:focus, textarea:focus {
    outline: none;
    border-color: #3f65ff;
    box-shadow: 0 0 0 4px rgba(99, 164, 255, 0.16);
}

.table {
    width: 100%;
    border-collapse: collapse;
    margin-top: 16px;
}

.table th,
.table td {
    padding: 14px 16px;
    text-align: left;
    border-bottom: 1px solid #e5e7eb;
}

.table th {
    color: #475569;
    font-weight: 700;
}

.table tr:hover {
    background: #f8fafc;
}

.alert {
    padding: 18px 20px;
    border-radius: 18px;
    margin-bottom: 20px;
}

.alert.success {
    background: #ecfdf5;
    color: #166534;
}

.alert.error {
    background: #fef2f2;
    color: #b91c1c;
}

.footer {
    padding: 30px 0;
    text-align: center;
    color: #64748b;
}

@media (max-width: 900px) {
    .grid-2 {
        grid-template-columns: 1fr;
    }
    .topbar {
        flex-direction: column;
        align-items: flex-start;
    }
}
