:root {
    --bg: #f7f2e8;
    --ink: #1b242c;
    --muted: #5b6874;
    --line: #d8e0e8;
    --surface: #fffdf8;
    --surface-2: #ffffff;
    --brand: #0b6a94;
    --brand-2: #f49f3a;
    --accent: #0f9ccf;
    --ok: #167a4c;
    --danger: #aa2c2c;
    --radius: 18px;
    --shadow: 0 24px 54px rgba(22, 35, 46, .12);
}

* { box-sizing: border-box; }

body {
    margin: 0;
    color: var(--ink);
    font-family: "Plus Jakarta Sans", "Segoe UI", sans-serif;
    background:
        radial-gradient(900px 380px at 0% 0%, #ffe7bc 0%, transparent 62%),
        radial-gradient(1000px 420px at 100% 0%, #dff1ff 0%, transparent 58%),
        repeating-linear-gradient(135deg, #f7f2e8 0 24px, #f5f0e6 24px 48px);
}

a { color: var(--brand); text-decoration: none; }

a:hover { text-decoration: underline; }

.container {
    width: min(1180px, 92%);
    margin: 0 auto;
}

.topbar {
    display: flex;
    justify-content: space-between;
    align-items: center;
    gap: 1rem;
    padding: .7rem 0;
    font-size: .88rem;
    color: var(--muted);
}

.nav-wrap {
    position: sticky;
    top: 0;
    z-index: 50;
    backdrop-filter: blur(10px);
    background: rgba(247, 242, 232, .75);
    border-top: 1px solid rgba(255, 255, 255, .55);
    border-bottom: 1px solid rgba(145, 162, 178, .28);
}

.nav {
    display: flex;
    justify-content: space-between;
    align-items: center;
    gap: 1rem;
    padding: .9rem 0;
}

.logo {
    font-family: "Fraunces", serif;
    font-weight: 700;
    font-size: 1.35rem;
    color: #12354a;
    letter-spacing: .02em;
}

.nav-links {
    display: flex;
    flex-wrap: wrap;
    align-items: center;
    gap: .55rem;
}

.nav-links a {
    padding: .48rem .75rem;
    border-radius: 999px;
    font-weight: 700;
    color: #21465c;
    transition: .18s ease;
}

.nav-links a:hover {
    background: #e7f1f8;
    text-decoration: none;
}

.page {
    padding: 2.2rem 0 3rem;
}

.btn {
    border: 0;
    cursor: pointer;
    display: inline-flex;
    align-items: center;
    justify-content: center;
    padding: .78rem 1.08rem;
    border-radius: 12px;
    font-weight: 800;
    letter-spacing: .01em;
    transition: transform .15s ease, box-shadow .15s ease;
}

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

.btn-primary {
    background: linear-gradient(135deg, var(--brand), var(--accent));
    color: #fff;
    box-shadow: 0 12px 28px rgba(11, 106, 148, .28);
}

.btn-alt {
    background: linear-gradient(135deg, #c47722, var(--brand-2));
    color: #fff;
    box-shadow: 0 12px 26px rgba(199, 124, 35, .28);
}

.btn-light {
    background: #e7edf3;
    color: #21394b;
}

.hero {
    display: grid;
    grid-template-columns: 1.45fr .9fr;
    gap: 1rem;
    margin-bottom: 1rem;
}

.card {
    background: linear-gradient(180deg, rgba(255, 255, 255, .95), rgba(255, 255, 255, .89));
    border: 1px solid var(--line);
    border-radius: var(--radius);
    padding: 1.25rem;
    box-shadow: var(--shadow);
}

.hero-main {
    padding: 2.1rem;
    background:
        radial-gradient(500px 220px at 0% 0%, rgba(255, 225, 164, .4), transparent 60%),
        radial-gradient(540px 260px at 100% 0%, rgba(162, 225, 255, .38), transparent 58%),
        var(--surface);
}

.kicker {
    margin: 0;
    text-transform: uppercase;
    letter-spacing: .15em;
    font-size: .76rem;
    font-weight: 800;
    color: #9f5b1e;
}

h1, h2, h3 {
    margin: .45rem 0 .7rem;
    font-family: "Fraunces", serif;
    line-height: 1.16;
}

h1 { font-size: clamp(1.8rem, 3.6vw, 3rem); }
h2 { font-size: clamp(1.35rem, 2.4vw, 2rem); }
h3 { font-size: clamp(1.1rem, 2vw, 1.35rem); }

.meta {
    color: var(--muted);
    line-height: 1.62;
    font-size: .98rem;
}

.hero-stats,
.stack,
.form-grid {
    display: grid;
    gap: .8rem;
}

.mini {
    background: #f6fafc;
    border: 1px solid #d8e6f0;
    border-radius: 13px;
    padding: .82rem;
}

.grid { display: grid; gap: 1rem; }
.grid-2 { grid-template-columns: repeat(2, minmax(0, 1fr)); }
.grid-3 { grid-template-columns: repeat(3, minmax(0, 1fr)); }

.panel-stat {
    margin: .15rem 0;
    font-size: 2.05rem;
    font-weight: 800;
    color: #0d4b69;
}

.pill {
    display: inline-block;
    border-radius: 999px;
    padding: .24rem .62rem;
    font-size: .72rem;
    font-weight: 800;
    letter-spacing: .03em;
}

.pill-free { background: #ddf2ff; color: #13506e; }
.pill-member { background: #fff1dc; color: #9d5e18; }
.pill-pro { background: #ebe7ff; color: #4b3e95; }

.badge { display: inline-block; font-size: .75rem; font-weight: 700; padding: .2rem .5rem; border-radius: 999px; }
.badge-ok { background: #dcfce7; color: #166534; }
.badge-bad { background: #fee2e2; color: #991b1b; }

.table {
    width: 100%;
    border-collapse: collapse;
    overflow: hidden;
    border-radius: 12px;
}

.table th,
.table td {
    padding: .72rem;
    text-align: left;
    border-bottom: 1px solid #e2ebf2;
}

.table th {
    font-size: .82rem;
    text-transform: uppercase;
    letter-spacing: .04em;
    color: #486074;
    background: #f1f7fb;
}

.table tr:nth-child(2n) td {
    background: #fcfdff;
}

.alert {
    border-radius: 12px;
    padding: .84rem .98rem;
    margin: .8rem 0;
}

.alert-info {
    border: 1px solid #bbddf4;
    background: #e7f4fc;
    color: #0b4f72;
}

.footer {
    border-top: 1px solid #dbe5ed;
    color: #526270;
    font-size: .92rem;
    display: flex;
    justify-content: space-between;
    gap: .8rem;
    flex-wrap: wrap;
    padding: 1.1rem 0 1.8rem;
}

.input,
select {
    width: 100%;
    padding: .67rem .72rem;
    border-radius: 10px;
    border: 1px solid #c8d6e1;
    background: #fff;
    font: inherit;
}

.input:focus,
select:focus {
    outline: 2px solid rgba(18, 135, 185, .24);
    border-color: #77b9de;
}

.field label {
    display: block;
    font-weight: 700;
    color: #29485c;
    margin-bottom: .36rem;
}

.error { color: var(--danger); font-size: .86rem; margin-top: .3rem; }
.help { color: var(--muted); font-size: .9rem; }
.section-title { margin: 0; }
.auth-wrap { max-width: 560px; margin: 2.2rem auto; }
.auth-head p { color: var(--muted); }
.split { display: flex; justify-content: space-between; align-items: center; gap: .8rem; flex-wrap: wrap; }
.inline-form { display: inline; }

.question {
    padding-bottom: 1rem;
    margin-bottom: 1rem;
    border-bottom: 1px dashed #cfdbe7;
}

.question label {
    display: block;
    margin: .34rem 0;
    padding: .58rem;
    border-radius: 10px;
    border: 1px solid #e0e9f1;
    background: #fff;
}

.diploma {
    padding: 2rem;
    border: 12px double #b8892a;
    border-radius: 15px;
    background: linear-gradient(160deg, #fffdf5 20%, #f6ebc9 100%);
    text-align: center;
}

.muted-link {
    color: #2a5974;
    font-weight: 700;
}

.danger-zone {
    border: 1px solid #f1cece;
    background: linear-gradient(180deg, #fff7f7, #fffdfd);
}

@media (max-width: 930px) {
    .hero, .grid-2, .grid-3 { grid-template-columns: 1fr; }
    .hero-main { padding: 1.3rem; }
    .topbar { display: none; }
}
