* {
    box-sizing: border-box;
}

:root {
    color-scheme: light;
    font-family: Inter, system-ui, -apple-system, BlinkMacSystemFont, "Segoe UI", sans-serif;
    color: #0f172a;
    background: #eaf2ff;
}

body {
    margin: 0;
    min-height: 100vh;
    background: radial-gradient(circle at top left, #85c2ff 0%, transparent 40%),
        radial-gradient(circle at bottom right, #1d4ed8 0%, transparent 35%),
        linear-gradient(180deg, #f8fbff 0%, #e7efff 100%);
}

.page-shell {
    max-width: 1180px;
    margin: 0 auto;
    padding: 24px;
}

.topbar {
    display: flex;
    align-items: center;
    justify-content: left;
    gap: 24px;
    padding: 16px 0;
}

.brand {
    font-size: 2rem;
    font-weight: 700;
    color: #0f172a;
    text-decoration: none;
    display: flex;
    align-items: center;
    gap: 10px;
}

.brand-icon {
    width: 32px;
    height: 32px;
    object-fit: contain;
}

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

.nav-links a {
    color: #334155;
    font-weight: 500;
    text-decoration: none;
}

.status-section {
    margin: 24px 0;
}

.status-shell {
    padding: 24px;
    border-radius: 24px;
    background: white;
    border: 1px solid rgba(148, 163, 184, 0.22);
    box-shadow: 0 20px 60px rgba(15, 23, 42, 0.08);
}

.status-header {
    margin-bottom: 20px;
}

.status-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(250px, 1fr));
    gap: 16px;
}

.status-card {
    padding: 20px;
    border-radius: 16px;
    background: #f8fafc;
    border: 1px solid #e2e8f0;
}

.status-card h3 {
    margin: 0 0 12px;
    font-size: 1.1rem;
    color: #0f172a;
}

.status-card p {
    margin: 8px 0;
    color: #475569;
}

.calculator-section {
    margin: 40px 0;
}

.calculator-shell {
    padding: 32px;
    border-radius: 28px;
    background: white;
    border: 1px solid rgba(148, 163, 184, 0.22);
    box-shadow: 0 20px 60px rgba(15, 23, 42, 0.08);
}

.calculator-header {
    max-width: 660px;
    margin-bottom: 28px;
}

.calculator-grid {
    display: grid;
    grid-template-columns: 320px minmax(0, 1fr);
    gap: 24px;
}

.calculator-panel {
    display: grid;
    gap: 18px;
}

.field-label {
    display: block;
    color: #475569;
    font-weight: 600;
    margin-bottom: 10px;
}

.field-input,
.stat-allocate,
.stat-modifier {
    width: 100%;
    border: 1px solid #cbd5e1;
    border-radius: 16px;
    padding: 12px 14px;
    font-size: 1rem;
    color: #0f172a;
    background: #f8fafc;
}

.field-input:focus,
.stat-allocate:focus,
.stat-modifier:focus {
    outline: none;
    border-color: #2563eb;
    box-shadow: 0 0 0 4px rgba(37, 99, 235, 0.12);
}

.pool-details {
    display: flex;
    justify-content: space-between;
    align-items: center;
    padding: 14px 18px;
    border-radius: 18px;
    background: #f8fafc;
    border: 1px solid #e2e8f0;
}

.calculator-stats {
    padding: 18px;
    border-radius: 24px;
    background: #f8fafc;
    border: 1px solid #e2e8f0;
}

.stat-row {
    display: grid;
    grid-template-columns: 72px 1fr 1fr 96px;
    gap: 12px;
    align-items: center;
    margin-bottom: 14px;
}

.stat-row:last-of-type {
    margin-bottom: 0;
}

.stat-row span {
    font-weight: 700;
    color: #0f172a;
}

.stat-total {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    min-height: 48px;
    padding: 0 12px;
    border-radius: 14px;
    background: white;
    border: 1px solid #cbd5e1;
    color: #0f172a;
    font-weight: 700;
}

.calculator-notice {
    margin-top: 24px;
    padding: 18px 22px;
    border-radius: 20px;
    background: #eff6ff;
    color: #1d4ed8;
    border: 1px solid #bfdbfe;
}

@media (max-width: 900px) {
    .calculator-grid {
        grid-template-columns: 1fr;
    }

    .status-grid {
        grid-template-columns: 1fr;
    }
}

@media (max-width: 560px) {
    .page-shell {
        padding: 18px;
    }

    .topbar {
        flex-direction: column;
        align-items: flex-start;
    }

    .stat-row {
        grid-template-columns: 1fr 1fr;
    }

    .stat-row span,
    .stat-total {
        grid-column: span 2;
    }

    .stat-allocate,
    .stat-modifier {
        width: 100%;
    }
}

.feature-card h2 {
    margin: 0 0 14px;
    font-size: 1.2rem;
    color: #0f172a;
}

.feature-card p {
    margin: 0;
    color: #475569;
    line-height: 1.7;
}

@media (max-width: 900px) {
    .hero {
        grid-template-columns: 1fr;
        padding-top: 48px;
    }

    .feature-grid {
        grid-template-columns: 1fr;
    }
}

@media (max-width: 560px) {
    .page-shell {
        padding: 18px;
    }

    .topbar {
        flex-direction: column;
        align-items: flex-start;
    }

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

    .button {
        width: 100%;
    }
}
