:root {
    --primary: #154ea0;
    --accent-red: #d4191e;
    --accent-green: #14994f;
    --surface: rgba(255, 255, 255, 0.9);
}

* {
    box-sizing: border-box;
    margin: 0;
    padding: 0;
}

body {
    font-family: "Inter", system-ui, -apple-system, sans-serif;
    min-height: 100vh;
    color: #0f172a;
    background: radial-gradient(circle at 20% 20%, rgba(21, 78, 160, 0.18), transparent 30%),
                radial-gradient(circle at 78% 6%, rgba(212, 25, 30, 0.14), transparent 28%),
                radial-gradient(circle at 80% 0%, rgba(20, 153, 79, 0.18), transparent 25%),
                #f6f8fb;
}

.hero {
    position: relative;
    display: grid;
    place-items: center;
    min-height: 100vh;
    padding: 3rem 1.5rem;
    isolation: isolate;
    overflow: hidden;
}

.hero::before {
    content: "";
    position: absolute;
    inset: 0;
    background-image: url('../images/klein-background.svg');
    background-size: contain;
    background-repeat: no-repeat;
    background-position: center;
    opacity: 0.18;
    filter: drop-shadow(0 25px 35px rgba(0, 0, 0, 0.1));
    z-index: -2;
}

.hero::after {
    content: "";
    position: absolute;
    inset: 0;
    background: linear-gradient(135deg, rgba(255, 255, 255, 0.85), rgba(255, 255, 255, 0.55));
    z-index: -1;
}

.page {
    position: relative;
    min-height: 100vh;
    display: grid;
    place-items: center;
    padding: 2.5rem 1.5rem;
    overflow: hidden;
    isolation: isolate;
}

.page::before {
    content: "";
    position: absolute;
    inset: 0;
    background-image: url('../images/klein-background.svg');
    background-size: contain;
    background-repeat: no-repeat;
    background-position: center;
    opacity: 0.16;
    filter: drop-shadow(0 20px 30px rgba(0, 0, 0, 0.08));
    z-index: -2;
}

.page::after {
    content: "";
    position: absolute;
    inset: 0;
    background: linear-gradient(135deg, rgba(255, 255, 255, 0.9), rgba(255, 255, 255, 0.72));
    z-index: -1;
}

.card {
    width: min(1100px, 100%);
    background: var(--surface);
    border-radius: 28px;
    padding: 3rem;
    box-shadow: 0 30px 70px rgba(0, 0, 0, 0.1);
    border: 1px solid rgba(21, 78, 160, 0.1);
    display: grid;
    gap: 1.5rem;
    backdrop-filter: blur(6px);
}

.hero .card {
    max-width: 900px;
}

.card.grid-auto {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(320px, 1fr));
    gap: 1.5rem;
    padding: 2.5rem;
    border-radius: 26px;
}

.badge {
    display: inline-flex;
    align-items: center;
    gap: 0.6rem;
    padding: 0.6rem 1rem;
    border-radius: 999px;
    background: rgba(21, 78, 160, 0.08);
    color: var(--primary);
    font-weight: 700;
    letter-spacing: 0.02em;
}

.badge span {
    display: inline-block;
    width: 10px;
    height: 10px;
    border-radius: 50%;
    background: var(--accent-red);
    box-shadow: 0 0 0 6px rgba(212, 25, 30, 0.15);
}

h1 {
    font-size: clamp(2.6rem, 4vw, 3.6rem);
    color: #0b2455;
    line-height: 1.1;
}

h1 strong {
    color: var(--primary);
}

p {
    font-size: 1.05rem;
    line-height: 1.7;
    color: #334155;
}

.meta {
    font-size: 0.95rem;
    color: #475569;
}

.cta-group {
    display: flex;
    flex-wrap: wrap;
    gap: 1rem;
    margin-top: 1rem;
}

.table {
    display: grid;
    gap: 0.5rem;
    padding: 0.5rem;
    border: 1px solid rgba(15, 23, 42, 0.08);
    border-radius: 12px;
    background: rgba(255, 255, 255, 0.7);
}

.table-row {
    display: grid;
    grid-template-columns: repeat(3, minmax(0, 1fr));
    gap: 0.75rem;
    padding: 0.75rem 0.5rem;
    align-items: center;
    border-bottom: 1px solid rgba(15, 23, 42, 0.05);
}

.table-row:last-child {
    border-bottom: none;
}

.table-head {
    font-weight: 700;
    color: #0b2455;
    background: rgba(15, 23, 42, 0.03);
    border-radius: 10px;
    padding: 0.85rem 0.5rem;
}

.table-cell {
    color: #0f172a;
    word-break: break-word;
}

.table-empty {
    grid-column: 1 / -1;
    text-align: center;
    color: #64748b;
}

.btn {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    padding: 0.95rem 1.4rem;
    border-radius: 14px;
    font-weight: 700;
    text-decoration: none;
    letter-spacing: 0.02em;
    border: 1px solid transparent;
    transition: transform 150ms ease, box-shadow 150ms ease, opacity 150ms ease;
    background: linear-gradient(135deg, var(--primary), #1b5fbf);
    color: #fff;
    box-shadow: 0 15px 35px rgba(21, 78, 160, 0.35);
}

.btn-secondary {
    background: #fff;
    color: #0f172a;
    border-color: rgba(21, 78, 160, 0.12);
    box-shadow: 0 15px 35px rgba(0, 0, 0, 0.05);
}

.btn:hover {
    transform: translateY(-1px);
    box-shadow: 0 20px 40px rgba(0, 0, 0, 0.1);
}

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

.feature {
    padding: 1.25rem 1.35rem;
    border-radius: 16px;
    background: rgba(255, 255, 255, 0.8);
    border: 1px solid rgba(15, 23, 42, 0.04);
    box-shadow: inset 0 1px 0 rgba(255, 255, 255, 0.6);
}

.feature strong {
    display: inline-flex;
    align-items: center;
    gap: 0.5rem;
    color: var(--primary);
    letter-spacing: 0.01em;
}

.feature span {
    display: block;
    margin-top: 0.35rem;
    color: #475569;
    line-height: 1.5;
}

footer {
    margin-top: 1rem;
    text-align: center;
    color: #64748b;
    font-size: 0.95rem;
}

.footer-links {
    margin-top: 0.5rem;
    display: inline-flex;
    gap: 0.75rem;
}

.footer-links a {
    color: var(--primary);
    font-weight: 700;
    text-decoration: none;
}

.intro,
.forms {
    display: grid;
    gap: 1rem;
}

.panel {
    padding: 1.6rem;
    border-radius: 18px;
    background: rgba(255, 255, 255, 0.9);
    border: 1px solid rgba(15, 23, 42, 0.06);
    box-shadow: inset 0 1px 0 rgba(255, 255, 255, 0.7);
    display: grid;
    gap: 1rem;
}

.panel h2 {
    font-size: 1.2rem;
    color: #0b2455;
}

label {
    display: grid;
    gap: 0.45rem;
    font-weight: 600;
    color: #0f172a;
    font-size: 0.95rem;
}

input[type="text"],
input[type="email"],
input[type="password"] {
    width: 100%;
    padding: 0.9rem 1rem;
    border-radius: 12px;
    border: 1px solid rgba(21, 78, 160, 0.16);
    background: rgba(255, 255, 255, 0.95);
    font-size: 1rem;
    color: #0f172a;
    transition: border-color 120ms ease, box-shadow 120ms ease;
}

input:focus {
    outline: none;
    border-color: var(--primary);
    box-shadow: 0 0 0 3px rgba(21, 78, 160, 0.15);
}

.actions {
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 0.75rem;
    flex-wrap: wrap;
}

.link {
    color: var(--primary);
    font-weight: 700;
    text-decoration: none;
}

.switch {
    display: inline-flex;
    align-items: center;
    gap: 0.45rem;
}

.checkbox {
    width: 16px;
    height: 16px;
    accent-color: var(--primary);
}

@media (max-width: 640px) {
    .actions {
        flex-direction: column;
        align-items: stretch;
    }

    .btn {
        width: 100%;
        justify-content: center;
    }
}
